I am try create python base Socket Server to Connect GT06N Device

Sajjat a year ago

i created python base socket server get date from GT06N Device i got on data like this -> b'xx\x11\x01\x03U\x13\x90\x82cP\x84\x00\x00%\x82\x00\x02\x81\x90\r\n'

how to decode bytes to str

Anton Tananaeva year ago

Check the protocol documentation.

Sajjat a year ago

I don't understand this documentation can you explain me how to decode

Sajjat a year ago

Start Bit (2 bytes): 0x78 0x78
Packet Length (1 byte): 0x0D
Protocol Number (1 byte): 0x01
Terminal ID (8 bytes): 0x01 0x23 0x45 0x67 0x89 0x01 0x23 0x45
Information Serial Number (2 bytes): 0x00 0x01
Error Check (2 bytes): 0x8C 0xDD
Stop Bit (2 bytes): 0x0D 0x0