|Perl: the Markov chain saw|
Serial Buffer Overrunby ccherri (Acolyte)
|on Dec 19, 2012 at 22:38 UTC||Need Help??|
ccherri has asked for the
wisdom of the Perl Monks concerning the following question:
I am opening a serial port to a device that is already streaming data at 9600B. Occasionally I get a "Buffer Overrun detected" message, which I do not know how to get out of and so have to ^C and start over.
I have tried the 'lookclear' and 'purge_all' method (both return a '1') and it still happens.
Even when I read part of the buffer, kill the program, and restart (with data still in the buffer) it may still happen
I will get a print of $result, but often get a buffer overrun as soon as I get to 'input'
Since starting this post, I tried changing '->input' to '->read(4096)' which SEEMS to have solved the problem so far, but would be happy to hear what the Monks have to say!