STM32 program only read data from sensor once and then freezes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-11 10:38 PM
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.
Solved! Go to Solution.
- Labels:
-
LoRa
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-12 8:47 PM
Turns out the delay messed everything up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-12 8:47 PM
Turns out the delay messed everything up
