Go Down

Topic: What is Sync Word LoRa (Read 858 times) previous topic - next topic

ZebH

Jan 06, 2020, 04:12 am Last Edit: Jan 06, 2020, 04:13 am by ZebH
Hi all,

I am playing around with LoRa and I see in this article that it talks about "Sync Word":
https://github.com/sandeepmistry/arduino-LoRa/blob/master/API.md
Code: [Select]
LoRa.setSyncWord(syncWord);


So I am wondering what is a "Sync Word"? Can it be set to anything?

Thanks,

Zeb
One of the most common programming problems is a misplaced/missing bracket.

spycatcher2k

Quote
Sync Word

Change the sync word of the radio.

LoRa.setSyncWord(syncWord);

    syncWord - byte value to use as the sync word, defaults to 0x12
So any BYTE will work.
Mrs Drew
-=-
UK Based PCB Manufacturing - PM for details
I will design & code for you, but I will also charge you (PM me)
Use Google or search this site BEFORE asking!

ZebH

So a Sync Word can be "A" or "6"?

Thanks,

Zeb
One of the most common programming problems is a misplaced/missing bracket.

jremington

#3
Jan 07, 2020, 12:57 am Last Edit: Jan 07, 2020, 03:37 am by jremington
The beauty of Arduino is that you can try things and see what happens, in the comfort of your own home.

Note that "A" is a two byte C-string, or character array. 'A' is the ASCII character A; a single byte.

srnet

#4
Jan 07, 2020, 10:24 am Last Edit: Jan 07, 2020, 10:26 am by srnet
I am playing around with LoRa and I see in this article that it talks about "Sync Word":

So I am wondering what is a "Sync Word"? Can it be set to anything?
It can be set to anything, but some values wont interoperate with other LoRa devices such as the SX126X series and some values will loose you receive sensitivity.

The syncword can be used to isolate networks of LoRa devices. A receiver using one syncword will not (mostly) receive packets from a transmitter using a different Syncword.

Its pretty much Voodoo, there is no full explanation from Semtech, apart from providing the examples for public and private networks.

I would suggest sticking to the standard values unless you have the experience and knowledge on how to check the limits of sensitivity and reliability of reception.
http://www.50dollarsat.info/
http://www.loratracker.uk/

srnet

The default private syncwords are 0x12 for SX127x devices and 0x1424 for SX126x devices.

The syncwords used for public networks such as LoRaWAN\TTN are 0x34 for SX127x devices and 0x3444 for SX126x devices.

http://www.50dollarsat.info/
http://www.loratracker.uk/

ZebH

Excellent that's very helpful, thank you!

Thanks again for your help!

Zeb
One of the most common programming problems is a misplaced/missing bracket.

Go Up