Generic Serial mixed ASCII and Hex

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
DynamoBen
Member
Posts: 3
Joined: Tue Sep 02, 2003 12:37 pm

Generic Serial mixed ASCII and Hex

Post by DynamoBen »

I'm trying to send a serial string to a device that requires a Hex Wrapper with ASCII string for the data.



The Start, Length, Command, ID, Protocol, and CRC are all Hex commands. The Data is ASCII.



I see that you can either do ASCII or HEX not a mix of both.

Ideas?
ScottBot
Site Admin
Posts: 2787
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

You could do a couple of things. You can translate the ASCII data into its HEX values and send it all as one HEX string.



Or you can break the single command into multiple (hex and ascii) commands. Then when assigning the command(s) to the Property Values, select the HEX command, then ASCII command (you can have a single Property Value execute multiple commands).
Post Reply