Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Detect STX and ETX hex in received string

by jmlynesjr (Hermit)
on Nov 28, 2012 at 23:08 UTC ( #1006125=note: print w/replies, xml ) Need Help??

in reply to Detect STX and ETX hex in received string

Timely post as I am planning to do something similar using Device::Serialport::Arduino. I plan to process the message one character at a time probably using encode/decode. To allow variable length packets, add a data character count in the payload in case your data contains something that looks like an ETX and to help in detecting framing errors sooner rather than later.

I am I the only one old enough to remember SYNSYNSYNSTXDATAETXCRC as IBM Bi-Sync protocol from the 70's? In this context STX and ETX are ASCII character codes.


There's never enough time to do it right, but always enough time to do it over...

  • Comment on Re: Detect STX and ETX hex in received string

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006125]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2018-03-19 15:44 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (241 votes). Check out past polls.