|Problems? Is your data what you think it is?|
r/w attached infrared head on /dev/ttyUSB0by stoerti (Novice)
|on May 25, 2019 at 15:43 UTC||Need Help??|
stoerti has asked for the wisdom of the Perl Monks concerning the following question:
Hi there. I tried thousand ways the last weeks and I am desparing.
I need to write and read to /dev/ttyUSB0 where a infrared head is attached to read an electric meter.
The settings are 300 baud 7E1, no handshake
If I do this from shell in that way:
I get an answer as expected:
Now I try to realize in perl to catch this output but all ways I have gone, nothing comes back to perl.
Only using Device::SerialPort I receive the first line "/LOG4LK13BD202015" but not more.
One of many examples:
I tried system calls in different way, different ways to open an file handle on the device, some perl modules - nothing worked for me.
Has anyone an idea or realized something like that in the past and can give me some help?
2019-05-28 Athanasius added code tags