Xinyuan-LilyGO / LilyGo-LoRa-Series

LILYGO LoRa Series examples
603 stars 169 forks source link

No packets from another T-Beam can be received. #33

Closed FazerTom closed 3 years ago

FazerTom commented 3 years ago

There may be an error in the Receive Mode function (File AllFunction.ino). No packets from another T-Beam can be received. The function "radio.startReceive()" uses DIO0 as interup output. (Quote "Interrupt-driven receive method. DIO0 will be activated when full valid packet is received")

After the following change in the following lines the reception of LoRa packets works.

Line 45: original: RADIO_TYPE radio = new Module(LORA_SS, LORA_DIO1, LORA_RST, LORA_BUSY); change: RADIO_TYPE radio = new Module(LORA_SS, LORA_DI0, LORA_RST, LORA_BUSY);

line 271: original: radio.setDio1Action(setFlag); change: radio.setDio0Action(setFlag);

Translated with www.DeepL.com/Translator (free version)

axpaul commented 3 years ago

Thank, yes the interrup functiannate now with your correction. Thank !

lewisxhe commented 3 years ago

The problem has been inactive for a long time and will be closed