[question post] about the serial port module serial of python, I'd like to ask all the bosses.

ser.write (chr (0x80). Encode ())-sharp sends data to the serial port
when I have sent this command to the serial debugging assistant, the hexadecimal I received is C280, which means that whenever the data I send is greater than 0X80, there will be more C2 in front of the data. If the data sent is greater than 255, there will be more C4, and so on
ser.write (80)-sharp sends data to the serial port
when I send decimal 80. Received is 80 00, how much to send is the same amount of 00
check the information on the network is said to have something to do with coding, but I still do not understand, please give advice!

May.23,2022
Menu