Skip to main content
Wtuya.1
Associate
March 12, 2023
Solved

STM32 program only read data from sensor once and then freezes

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

This topic has been closed for replies.
Wtuya.1
Wtuya.1Best answer
Associate
March 13, 2023

Turns out the delay messed everything up

1 reply

Wtuya.1
Wtuya.1AuthorBest answer
Associate
March 13, 2023

Turns out the delay messed everything up