> You could always reserve another character (say 254) as an escape character, > and then esc/255 means you are sending 255 instead of start of packet, and > esc/esc means you are sending the value of the escape character. Even better: Assign 254 as your escape character. Then use 254/0 to replace the 255 within a packet and 254/1 to replace a 254 within a packet This results in no occurances of the 255 in the body of the packet, and eliminates the chance of misunderstanding a 254 in the packet. Bob Ammerman RAm Systems -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads