C# Serial Port reading HEX data
问题 I am writing a C# application to read from several serial COM ports at the same time to analyze the data communication of an IPOD. The data being sent needs to be interpreted as HEX bytes. For example, 0xFF 0x55 0x01 0x00 0x04 0xC3 0xFF 0x55 ... I want to be able to read this and display it in a rich textbox, for example 0xFF 0x55 0x01 0x00 0x04 0xC3 0xFF 0x55 ... The start of a command includes a header (0xFF 0x55) and the rest is is the command + parameters + checksum. What is the best way