sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.61k stars 619 forks source link

Sync Word defaults to 0x12 #163

Closed giampiero7 closed 5 years ago

giampiero7 commented 6 years ago

Hi, I was trying this library on an Arduino MKR WAN 1300 to communicate with a Pycom board. It wouldn't work until I explicitly called LoRa.setSyncWord(0x34); The default sync word seems to be 0x12, as opposed to what is stated in the documentation (0x34). Cheers

morganrallen commented 5 years ago

Unless I'm reading the datasheet wrong, 0x34 is the LoRaWAN sync word.

From page 115 **Reg:* RegSyncWord (0x39) Bits: 0-7 Name: SyncWord Mode: rw Reset: 0x12 Description:** LoRa Sync. Word Value 0x34 is reserved for LoRaWAN networks

giampiero7 commented 5 years ago

Yes, but the documentation of this library (https://github.com/sandeepmistry/arduino-LoRa/blob/master/API.md#sync-word) says the default sync word is 0x34

morganrallen commented 5 years ago

Ah! I see, thanks for catching this, it's incorrect and should be fixed.

morganrallen commented 5 years ago

PR #175

sandeepmistry commented 5 years ago

Closed via #175.