Perl: the Markov chain saw | |
PerlMonks |
Re^4: r/w attached infrared head on /dev/ttyUSB0by stoerti (Novice) |
on May 26, 2019 at 07:36 UTC ( [id://11100548]=note: print w/replies, xml ) | Need Help?? |
I tried different versions of Ubuntu. Now I have installed the actual image from volkszaehler.org It runs on a raspberry pi The "cat /dev/ttyUSB0&" makes no difference if started before or after the stty settings. The stty arguments are from a documentation, I tried your style and it seems to be running the same as before. The meter system giving the commands "/?!" and "000" back, when I send it to him. Every line ends with "\r\n". I changed my code: And you see in strace my problem: (only last lines of output)
After "read(4," the script waits endless The only way it works, when I send the sequence (stty setting, then /?!\r\n, then 000\r\n) directly into a shell So I can not understand what the problem could be.
In Section
Seekers of Perl Wisdom
|
|