Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Telnet.pm and Negative Values for Modbus

by thundergnat (Deacon)
on Feb 24, 2012 at 15:52 UTC ( [id://955943]=note: print w/replies, xml ) Need Help??


in reply to Telnet.pm and Negative Values for Modbus

Regarding your update. Character 255 is the Telnet IAC (Interpret as Command) escape character. Telnet commands are two byte sequences with the IAC as the first byte and the command character as the second byte. You may be able to get away with just doubling the IAC character whenever you want send it (\xff) as data. If that doesn't work, you'll probably need to not use Telnet and just set up your own raw TCP connections using IO::Socket or an equivalent.

  • Comment on Re: Telnet.pm and Negative Values for Modbus

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found