Comments (2)
I'm getting closer on this. I switched to a different driver for the xDot that exposes low level access to the radio and turn off the explicit header. I am configuring the radio as shown below, which I understand is a supported configuration:
int main()
{
(...)
radio.set_frf_MHz(915.5);
lora.enable();
lora.setBw_KHz(500);
lora.setSf(8);
lora.setHeaderMode(false);
lora.setCodingRate(4);
lora.setRxPayloadCrcOn(false);
(...)
/* constant payload length of four bytes */
lora.RegPayloadLength = 1;
radio.write_reg(REG_LR_PAYLOADLENGTH, lora.RegPayloadLength);
for (;;) {
radio.tx_buf[0] = 0x00; /* set payload */
lora.start_tx(lora.RegPayloadLength); /* begin transmission */
while (lora.service() != SERVICE_TX_DONE) /* wait for transmission to complete */
;
radio.set_opmode(RF_OPMODE_STANDBY);
wait(1); /* throttle sending rate */
logInfo("waiting for 1s");
}
}
As shown above, the payload is one byte (0
) and now I'm receiving. If I change the payload to 0xff, the first nibble of the third byte changes from 0
to f
.
***********************************
* MESSAGE DEBUG PRINT PDU VERBOSE *
()
pdu_length = 7
contents =
0000: ef f6 0f c7 f2 24 22
***********************************
* MESSAGE DEBUG PRINT PDU VERBOSE *
()
pdu_length = 7
contents =
0000: ef f6 0f 47 72 2c 22
***********************************
* MESSAGE DEBUG PRINT PDU VERBOSE *
()
pdu_length = 7
contents =
0000: ef f6 0f e7 f2 2c 22
***********************************
* MESSAGE DEBUG PRINT PDU VERBOSE *
()
pdu_length = 7
contents =
0000: ef f6 0f c7 f2 b4 22
***********************************
from gr-lora.
I was finally able to get this to work by changing
lora.setHeaderMode(false);
with
lora.setHeaderMode(true);
I had incorrectly assumed that setHeaderMode
to true would add the explicit header, when it is the opposite.
After changing that I can send small payloads (<3 bytes) without errors. Yay!
from gr-lora.
Related Issues (20)
- gr-lora decode faild HOT 2
- about the gray coding HOT 1
- tr_usrp.grc not transmitting via usrp HOT 8
- B200 HOT 1
- SX1272 - SF6, Implicit header, CR4/5, LDR enabled HOT 1
- Receive incorrect data on Pycom LoPy LoRa
- low data rate opt set to 0 will not work
- Error in the modulator block
- Error on tx_usrp example
- Dragino setup > no documentation
- UDP stream
- Can this code run in 2.4GHz? HOT 1
- Import LoRa Error
- Ettus E313 SDR module' object has no attribute βdemod' HOT 1
- Decode data from RN2483 HOT 2
- Issue with Decoding!! HOT 7
- Deinterleaved codewords incorrect order
- Port gr-lora from GR3.7 to GR3.8
- the ralationship between spread factor and header?
- Can the decoded data packet be sent to the network server intact HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gr-lora.