I don't know how check_for_generic_serial_data() exactly works, but my device is continuously sending messages, and NO CR/LF appears between them.
I think I'll need some kind of queue to store the bytes I receive, and process them each time I detect a final message byte.
Let's see if check_for_generic_serial_data() is good for me.
Joel Davidson wrote:
I don't think you need to add a delay. I used
&main::check_for_generic_serial_data() in the Omnistat driver and as I
understand it, it doesn't return until it's got data. Take a look in
Omnistat.pm. Hope this helps.