2024-07-10 12:52 AM
What is the default public network mode in LoRa ping pong example? There is a function of RadioSetPublicNetwork which can be configured, but if we do not configure it at all, what will be the default mode? Public or Private?
Also, how can I set my own private syncword? I thought it doing like this, but compiler is generating implicit declaration error in SUBGRF_WriteRegister() function
Thank you
Solved! Go to Solution.
2024-07-11 07:06 AM
2024-07-10 08:43 AM
Hello @pho3nix
the default network mode in LoRa ping pong example is the LoRa private network.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-10 08:58 AM
The Ping-Pong example doesn't use a public network - it's just two devices send messages to each other.
2024-07-10 09:11 AM
Exactly but the default setting of the SYNCWORD is LoRa private network as indicated on the RM0453.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-10 10:36 PM
Thanks for your response, but how can I set my own sync word, default is 0x1424, but let's say I want to set 0x1122, how can I do that? Should I include radio_driver.h file and call SUBGRF_WriteRegister() directly, or there is any other better alternative out there?
2024-07-11 03:04 AM
Hello @pho3nix
To set the SyncWords values you have to use the function "uint8_t SUBGRF_SetSyncWord( uint8_t *syncWord );" available on the radio_driver.h.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-11 03:37 AM
Thanks, but I have a confusion, what are the difference between these two register addresses
is REG_LR_SYNCWORD only used for LoRa, and REG_LR_SYNCWORDBASEADDRESS is generic, like is it common for LoRa, FSK and other modulation techniques?
2024-07-11 06:48 AM - edited 2024-07-11 07:09 AM
Exactly.
More details available on the register definition of the Chapter 5 of the RM0453.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-11 07:06 AM
That is what the RM says: