Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Anonymous Monk
on Sep 20, 2017 at 13:19 UTC ( #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
Node Status?
node history
Node Type: note [id://1199738]
help
Chatterbox?
and the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2017-12-17 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (459 votes). Check out past polls.

    Notices?