This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author 福永陽平
Recipients 福永陽平
Date 2020-02-17.13:51:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581947498.56.0.86314760045.issue39662@roundup.psfhosted.org>
In-reply-to
Content
Hex data is garbled when displaying received data from serial.

--- code ---
recvMessage = serialPort.readline()
print(recvMessage, end="\r\n")
------------

--- result ---
b'ERXUDP FE80:0000:0000:0000:0280:8700:3015:64F5 FE80:0000:0000:0000:021D:1290:0003:8331 0E1A 0E1A 00808700301564F5 1 0012 \x10\x81\x00\x01\x02\x88\x01\x05\xff\x01r\x01\xe7\x04\x00\x00\x02\x04\r\n'
--------------

Mysterious value of 0x01r.
When the corresponding value is judged, it becomes 0x72.

The correct behavior is...
--- correct result ---
b'ERXUDP FE80:0000:0000:0000:0280:8700:3015:64F5 FE80:0000:0000:0000:021D:1290:0003:8331 0E1A 0E1A 00808700301564F5 1 0012 \x10\x81\x00\x01\x02\x88\x01\x05\xff\x72\x01\xe7\x04\x00\x00\x02\x04\r\n'
--------------
History
Date User Action Args
2020-02-17 13:51:38福永陽平setrecipients: + 福永陽平
2020-02-17 13:51:38福永陽平setmessageid: <1581947498.56.0.86314760045.issue39662@roundup.psfhosted.org>
2020-02-17 13:51:38福永陽平linkissue39662 messages
2020-02-17 13:51:38福永陽平create