2017-11-10 01:43 AM - edited 2023-11-20 09:38 AM
Hi all?
I am using F413 nucleo to acquir water level datas from aquatrak model 4110.
The sensor is 1 Hz and data is fixed length.
I use timer 6(1Hz) to process the received datas.
But I almost lost one record every 90 second.
Is there any method to resolve it?
Thank you in advance.
2017-11-13 12:57 PM
The sensor is 1 Hz and data is fixed length.
I use timer 6(1Hz) to process the received datas.
There may be a slight mismatch between the sensor's clock and the mcu's clock.
You should be processing the data as they arrive, rather than based on a regular timer tick.
JW
2017-11-13 01:59 PM
Have a GPIO indicate your pacing, and review that along with the data stream on a logic analyzer. Determine if there is an issue with the data, or your handling of it.
Code seems unnecessarily convoluted, wouldn't it be better just to use an IRQ for single byte data reception?
2017-11-14 06:37 PM
Thank you all for reply.
I had resolved it. It's just a timing issue.