Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Detect STX and ETX hex in received string

by jmlynesjr (Friar)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2015-11-25 00:18 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (666 votes), past polls