Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: How to get right data from COM1 using Win32::SerialPort

by Anonymous Monk
on Sep 20, 2017 at 13:19 UTC ( [id://1199738]=note: print w/replies, xml ) Need Help??


in reply to Re^5: How to get right data from COM1 using Win32::SerialPort
in thread How to get right data from COM1 using Win32::SerialPort

Hi,

I had the same pb.
solution: suppress 0D0A when appears :
($countIn, $binData) = $portCom1->read (1); $binData =~ s(\x0D\x0A)(\x0A)g;
As the problem does not appear when 0D is sent, there is no risk to destroy "good" 0D

bye

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1199738]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found