Quote:
shall this data("AA BB 01 FF 01 80") change to hex? because micro controller just read hex!
Probably (very probably, indeed) the microcontroller 'understands'
binary data
(
hexadecimal is just a textual representation of numbers, that is, binary data).
As already suggested by
Richard you have to write (and read) byte buffers, e.g.
byte[] buf = { 0xAA, 0xBB, 0x80, 0x01, 0xFF, 0x01, 0x80 };
serialPort1.Write(buf, 0, buf.Length);