Lora-net / LoRaMac-node

Reference implementation and documentation of a LoRa network node.
Other
1.88k stars 1.09k forks source link

Sleep mode #390

Closed gnob417 closed 6 years ago

gnob417 commented 6 years ago

Hi, can i stop RX mode or TX mode by using Radio.Sleep() ? and can i stop triggering interrupt by using TimerStop()?

@nestorayuso please help me.

mluis1 commented 6 years ago

Yes for both questions.

gnob417 commented 6 years ago

Did you do experiment about what i ask? I use TimerStop() for rx1, rx2 before rx1 or rx2 starts, however, listen mode still triggered..

and when i do radio.sleep() while a node transmits some data, it will be an error on receiver side?

mluis1 commented 6 years ago

We are sorry but we don't really understand the issue that you are encountering or what you are trying to achieve.

As this issue is not really related to this project I would recommend that you try to ask your questions on the LoRa Community portal.

But, trying to answer your question at least what we understand, if you set the radio to sleep mode in the middle of a transmission then it is normal that the frame is not received on the other side (the frame isn't received completely). The radio should be put in sleep mode only once you have either a TxDone, RxDone, RxTimeout, RxError or TxTimeout.