Can We Send Data to Multiple Devices Using P2P Mode for RAK3172?

I want to communicate between three devices using P2P mode. However, both the transmitter and receiver are receiving some garbage values. I am sending data as a JSON-converted string and receiving it as JSON as well.

Can you help correct this issue?

Hi @rushi_5029 ,

I’ve looked on your code. Some ideas I have.

  1. Test first raw payload without Json formatting. This way you can check if the LoRa connections on your devices are ok.
  2. You can try to send on lower spreading factor. You send a couple of bytes and the faster you can transmit the payload, less chance that it will be corrupted in the airwave (in terms of RF). SF12 are likely to be impacted than SF7.
  3. Once you confirm that the LoRa P2P in your setup is fine. Can you start with small Json payload first? Maybe just one key-value pair. Then send it for a few times, if the received payload is the same even if not in ascii format, then the payload you got is not garbage by not correctly formatted.
  4. Sending json format payload via LoRa is not advisable. It is not efficient use of the free bnnd. I highly suggest not to do this but just send raw bytes. If your payload format are fixed, then just create a standard formatting for your payload. You can add CRC for data validation.
1 Like

The discussion highlights challenges in sending data to multiple devices in P2P mode with the RAK3172, particularly concerning payload corruption. Some solutions include testing raw payloads, adjusting the spreading factor, and using raw byte transmission for reliability. These methods can help troubleshoot or improve the data delivery process

1 Like