mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
638 stars 208 forks source link

Can't receive downlink messages #930

Open HunterStilp opened 1 year ago

HunterStilp commented 1 year ago

Hey guys,

I am using an RFM95CW radio with a BluePill Dev board. This is for a school project which I am required to use the STM32 Cube IDE for. Consequently, I edited the hal.cpp file to work with the stm32f103c8t6. I am trying to send and receive payloads but am having some difficulty. My join request messages always make it to my helium console and join accept messages are always sent down. However, my device only receives the accept message ~20% of the time. When it finally does connect it can send uplink messages with a perfect success rate but it can not receive any downlink messages (or they at least do not trigger a EV_RXCOMPLETE event). I read that there are fixes for this board that involve editing the hal_enableIRQs and the hal_disableIRQs functions but this did not help me. I feel like I have tried everything and I'm pretty desperate now. I also tried with a arduino uno in the arduino IDE and everything worked fine. I attached my modified hal file below.

Thanks so much for your help. I appreciate it more than you know!

hal file.zip