cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 program only read data from sensor once and then freezes

Wtuya.1
Associate

The given example on LoRaWAN_End_Node software pack is transmit temperature, humidity, and pressure data. My main objective is to do the same thing but instead of send those three datas, I want to send the parsed GNSS data like how the SimOsGetPos did.

My attempt

I've replaces the SendTxData functinon with my own approach to replicate how SimOsGetPos works. Called both CUSTOM_GNSS_Init and GNSS_PARSER_Init and then set up a loop that will stop once the received data is valid.

Result

The program only done one data parsing and then it just stops (image attached).

Questions

Why did my program stops after the first iteration and how do I fix that?

I've attached my main.c and lora_app.c. I also attached the app_gnss.c that I used as reference to modify my lora_app.c file.

Thank you.

0693W00000aIihJQAS.png

1 ACCEPTED SOLUTION

Accepted Solutions
Wtuya.1
Associate

Turns out the delay messed everything up

View solution in original post

1 REPLY 1
Wtuya.1
Associate

Turns out the delay messed everything up