Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: How to Format Serial Port Output Format

by user2829 (Acolyte)
on Dec 09, 2010 at 17:39 UTC ( [id://876289]=note: print w/replies, xml ) Need Help??


in reply to Re: How to Format Serial Port Output Format
in thread How to Format Serial Port Output Format

ok I guess pack function in perl works for me :).. @input=(0x04,0x0e,0x04,0x01,0x03,0x0c,0x00); $ascii = pack("C*", @input); print "the value is $ascii"; $PortObj->write($ascii)|| die "Can't write to $PortName: $^E\n";; Thanks, -USER2829
  • Comment on Re^2: How to Format Serial Port Output Format

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found