7 years, 3 months ago.

How can I enable CAD in LoRa PingPong demo code ?

'Cause my budge for LoRa is very limted. I can afford for expensive boards, I have to reuse resources at hand, so my project is built upon with one NUCLEO-F103RB and one STM32F103RC mini board to interface two or more custom SX1278 modules for peer to peer testing. The code running inside F103RB/RC is PingPong demo code from Semtech/mbed.

I used trigger to toggle LED with different rates. 5Hz for error, 1Hz for normal mode, as soon as received any data payload.

The test result is wired. They can not talk to each other as I expected, sometimes they can build a pingpong loop for hours, most of times they failed to setup loop. I guess they may have issues on timing, conflict on air or something.

I have checked up the pdf of SX127X, it seems RSSI also works in Carrier Sensing in Lora mode as well, with extra notes for RegPktRsst and RegPckSnr. While CAD will try to capture LoRa preamble for 0b1010101010....

Among RSSI and CAD, Which one is better for LoRa CSMA/CA? Is there any demo code which has enabled CAD or RSSI detection?

Be the first to answer this question.