I wish to write to the serialport com1
01 00 00 02 37 30 04
That's the command for initialization..
When i write a char array or byte array
c[0] = (char)01;//
c[1] = (char)00;
c[2] = (char)00;
c[3] = (char)02;
c[4] = (char)37;
c[5] = (char)30;
c[6] = (char)04;
serialPort 1.Write(c, 0, c.Length);
byte[] bb1 = System.Text.Encoding.Default.GetBytes(c);
I can see in the serial port monitor: 01 00 00 02 25 1E 04 obviously 37 is converted to 25 and 30 to 1E... How do i pass 37 and 30 and not hex values... i tried various ways...