LoRa Node based on STM32F103C8 is hanging

Post here first, or if you can't find a relevant section!
Post Reply
parradan
Posts: 1
Joined: Wed Nov 17, 2021 8:53 pm

LoRa Node based on STM32F103C8 is hanging

Post by parradan »

Hi!

We are having a problem in our node that is hanging in the joining proccedure.
We are using a STM32F103C8 with a RFM95W module.
STM32duino core. Library: Beelan-LoRaWAN https://github.com/BeelanMX/Beelan-LoRaWAN/.
Frequency plan: AU915
GW: RAK2245 (Chirpstack GatewayBridge+Network Server+App Server all runnning in the same Rpi).

The problem happens randomly after restarting the node by software, and trying to do the join process. We tried to use timeout interrupts within the join process and it was not useful either.
It is as if the micro was completely left frozen even the timers.

I attached images of the JoinRequest payload and the payload error and a script with the main code.
Image
Image
Code: https://drive.google.com/file/d/1XxzYuG ... ZBvMA/view

I´m really stuck and I don´t know how to proceed.

Thanks a lot in advance!

Parradan.
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: LoRa Node based on STM32F103C8 is hanging

Post by mrburnette »

parradan wrote: Wed Nov 17, 2021 9:06 pm ...
The problem happens randomly after restarting the node by software, and trying to do the join process....
Intermittent software (or hardware) problems are the worst to diagnose. I would suggest stripping the code to a bare-minimum just to get to and beyond the failing point, the join. Then repeat the snipped code repeatedly to determine if it still fails randomly. Working with a bare sketch often gives the programmer a better insight into the issue(s.)


Good luck.

Update:

Try checking your module like this:
https://create.arduino.cc/projecthub/no ... ino-22aafc

If all works as expected with no lockups, then look at the uC parameters like setup BAUD, hand-shaking, error identification, etc.
Post Reply

Return to “General discussion”