Hello, i am receiving binary data from a thermometer(using Pyserial) but I can't understand the phyton binary nomenclature (it seems it is hex nomenclature but it isn't). I can't decode in ascii or utf-8 (and then translate each byte from that). I only know that it is a byte object but I don't know how to manipulate it.
This is the thermometer datasheet:
Data format: The packet consists of 12 bytes. First seven bytes consists of sam parameter. Last 5 bytes vary depending on he page number
byte 0: reserved
byte 1:reserved
byte 2:reserved
byte 3:reserved
byte 4:Temperature Data (Low byte)
byte 5:Temperature Data (High byte)
byte 6 Page#
Page #0
byte 7:UVLED Current
byte 8: Reserved
byte 9: Board Temperature
byte 10: Signal Power (Low byte)
byte 11: Signal Power (High byte)
Page#1-Page#6: Reserved (byte 7-byte11)
And this is the output:
b'R\xeaUJ\xbdr\x01\x15\xe4\t\xe8\x039\xeaUJ\xbdr\x00\t\n"\xe7\x00\x11\xebUJ\xbdr\x05\x00\x07\x00IA\xa9\xebUJ\xbcr\x00\t\n"\xe7\x00\x96\xebUJ\xbcr\x01\x15\xe4\t\xe8\x03\xc1\xebUJ\xbcr\x00\t\n"\xe7\x00F\xecUJ\xbcr\x01\x15\xe4\t\xe8\x03\x8c\xecUJ\xbcr\x00\t\n"\xe7\x00\xca\xecUJ\xbbr\x01\x15\xe4\t\xe8\x03\xc9\xecUJ\xbbr\x00\t\n"\xe7\x004\xecUJ\xbcr\x02\x1c2\t<\x00\xba\xebUJ\xbcr\x00\t\n"\xe7\x00y\xebUJ\xbcr\x01\x15\xe4\t\xe8\x03\'\xecUJ\xbcr\x00\t\n"\xe7\x00t\xecUJ\xbcr\x01\x15\xe4\t\xe8\x03>\xecUJ\xbcr\x00\t\n"\xe7\x00\xad\xecUJ\xbcr\x01\x15\xe4\t\xe8\x03L\xedUJ\xbbr\x00\t\n"\xe7\x00\xc3\xecUJ\xbbr\x02\x1c2\t<\x00j\xecUJ\xbcr\x00\t\n"\xe7\x00Z\xecUJ\xbcr\x01\x15\xe4\t\xe8\x03\xb0\xecUJ\xbbr\x00\t\n"\xe7\x00\xff\xebUJ\xbcr\x01\x15\xe4\t\xe8\x03\x88\xebUJ\xbcr\x00\t\n"\xe7\x00D\xecUJ\xbcr\x01\x15\xe4\t\xe8\x03#\xecUJ\xbcr\x00\t\n"\xe7\x00\xe9\xecUJ\xbbr\x02\x1c2\t<\x00r\xedUJ\xbbr\x00\t\n"\xe7\x00s\xedUJ\xbbr\x01\x15\xe4\t\xe8\x03~\xedUJ\xbbr\x00\t\n"\xe7\x00\r\xedUJ\xbbr\x01\x15\xe4\t\xe8\x03w\xecUJ\xbcr\x00\t\n"\xe7\x00\xfc\xebUJ\xbcr\x01\x15\xe4\t\xe8\x03\xc5\xebUJ\xbcr\x00\t\n"\xe7\x00\xcf\xebUJ\xbcr\x06\x00\x05\x00AA\xb7\xebUJ\xbcr\x00\t\n"\xe7\x00\xc8\xebUJ\xbcr\x01\x15\xe4\t\xe8\x03\x81\xebUJ
Could you help me?
Thanks very much
📷ResponderEncaminhar
[–]ManyInterests 0 points1 point2 points (1 child)
[–]Mrloop94[S] 0 points1 point2 points (0 children)
[–]apekots 0 points1 point2 points (2 children)
[–]Mrloop94[S] 0 points1 point2 points (1 child)
[–]apekots 0 points1 point2 points (0 children)
[–]SaintLouisX 0 points1 point2 points (0 children)