Post Go back to editing

Missing The Mark for Ending of a Measurement Loop

Category: Hardware
Product Number: emStat pico

Hello

I try to control emstat pico module with stm32 processor. When I check the capturing data, I recognized that there is no '*\n" command in the recording data. Do you what it can be reason for that?

Here is the recorded data, "e\nM0007\nPda8061B74u;ba8030F9Dn,12,28\n", '\0' <repeats 62 times>

Parents Reply
  • Hi , 

    For a number of reasons, I don't want to discuss, I am not allowed to go in depth regarding programming.

    I can give you some tips though which I think will help:

    • Keep the ISR (Callback) as small as possible, so I would suggest implementing a ringbuffer that is pushed in the callback and popped in the mainloop.
    • Do al the parsing in the mainloop and not in the callback.
    • Also retransmitting the characters to the other uart can also be performed in the mainloop.
    • Be aware that HAL functions can be time consuming

    I am convinced these will help.

    Regards,

    Walter

Children