« Return to Thread: Programming a new serial protocol

Re: Programming a new serial protocol

by Pilfos :: Rate this Message:

| View in Thread

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.

Thanks!

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.

Joel
--
Joel Davidson
Austin, TX

 « Return to Thread: Programming a new serial protocol