Replies: 1 comment 2 replies
-
This is one of, perhaps even THE greatest "gotcha" in SX126x documentation. The LoRa sync word does not have an MSB and LSB. As a matter of fact, the sync word does not translate into any bits, as one would expect e.g. with FSK. LoRa sync word are a few chirps sent after preamble, and the commonly used In case of SX126x, the single "byte" of the sync word spread accross two different registers - why was it done in this way, I have no idea. To make matters worse, the extra bits that are not taken up by the sync word, are used for some undocumented purpose, and so setting them to anything other than 0x44 will likely significantly impact the performance, or prevent it from working altogether (speaking from experience here). So I would suggest to stick to the recommended |
Beta Was this translation helpful? Give feedback.
-
The Semtech SX1262 data sheet shows both a LoRa Sync Word MSB and LoRa Sync Word LSB. But the RadioLib LoRa library begin call has a parameter uint8_t syncWord. Is there some fixed mapping between the one->two byte values? The library call setSyncWord takes two bytes meanwhile, with a comment that the second parameter should be 0x44 "for compatibility". N.B. My usage may be a special case, since I am using only SX1262 to SX1262 communications and no other device types and has no LoRaWAN functionality, working elsewhere in the US 900 Mhz ISM band.
Beta Was this translation helpful? Give feedback.
All reactions