|
It means that if the hex representation is 41 42 43 31 32 33 you should really send these values on the RS232 meaning that ABC123 would be transferred (41 maps to A etc.)
See eg. Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion but be aware that for values above 0x80 the mapping to viewable characters is depending on regional settings on your machine.
The best would be if you could write a small program that would take the hex string as input and write the binaries to the serial line. In C# etc you could write something like
byte[] SwitchToDP = {0xA6, 0x01, 0x00, 0x00, 0x00, 0x07, 0x01, 0xAC, 0x09, 0x04, 0x00, 0x00, 0x00};
SerialPort _serialPort =new SerialPort()
{
PortName = "COM2",
Handshake =Handshake.None,
RtsEnable =true,
DtrEnable =false,
NewLine ="\r\n",
StopBits =StopBits.One,
Parity =Parity.None,
DataBits =8,
BaudRate = 9600,
ReadTimeout =2000,
ReadBufferSize =10240
};
_serialPort.Write(SwitchToDP,0,SwitchToDP.Length);
_serialPort.Close();
Claus |
|