Skip to content

Report 0x81 Device ID and Calibration

mungewell edited this page Nov 15, 2016 · 3 revisions

Device ID

The serial number and other details can be read from the Processing unit via Command 0x81. The serial number is encoded as an ASCII string.

Device ID request

ep.write('\x81\x00\xaa\x08\x80\x00\x00\x00\x00\x00\x00\x00')

Example Response

8000aa30
0a 00 32 01 00 00 00 02 00 00 53 10 4d 50 31 36
4d 50 30 30 36 38 33 30 31 31 36 38 b1 1f 00 00
b1 1f 00 00 24 08 00 00 00 00 00 00 00 00 00 00

Device Calibration

The Processing Unit will return a block of data, that we believe is calibration data related to Accelerometers and Gyroscopes on a per-unit basis. The data is read sequentially in a series of 5 'pages'. It is unknown at present what the data actually means.

Device Calibration request (byte after 0x86 increases 0x00, 0x01, to 0x4)

ep.write('\x81\x00\xaa\x08\x86\x00\x00\x00\x00\x00\x00\x00')

Example Response(s)

8600aa3c
fc 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 83 bf f0 3a e4 70 86 bd 8d 65 e0 bc 00 00
00 00 c8 70 7e 3f 4c 52 80 3f c9 31 80 3f 00 00
00 00 45 1d 62 3b 7a ac a8 bb 1f c4

8601aa3c
fc 00 85 b9 00 00 00 00 65 a1 7e 3f 5f ce 7e 3f
b2 88 7f 3f 00 00 00 00 2e dd cb 3c 78 01 88 3f
f2 fd 72 3c 00 00 00 00 b4 ec 80 bf 43 0b ce 3d
3b df 39 3c 00 00 00 00 2a 87 e2 bc

8602aa3c
fc 00 4a 7c 6e bf 5d 8f 2a 3d 00 00 00 00 0c 72
80 3f 76 be f7 3c 52 b8 3b 3d 00 00 00 00 c0 ca
94 3c 7f ea 9d 3d d2 45 83 3f 00 00 00 00 79 14
af bc 32 08 5c 3d 43 8b 78 bf 00 00

8603aa3c
fc 00 00 00 b8 c6 9b be 06 01 4a c1 9b 8d 24 3e
00 00 00 00 b4 24 4a 41 ee a8 95 be 26 62 92 bd 
00 00 00 00 b6 93 2b be 1e 34 12 be ba 6d 49 c1
00 00 00 00 45 1d 62 bb 7a ac a8 3b

8604aa3c
fc 00 1f c4 85 39 00 00 00 00 55 55 a3 41 00 00
a4 41 ae 07 a0 41 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00

Unknown reads

Responses to reading 0x81, 0x82, 0x84, 0x88

a000aa3c
81044669656c643a2042616420522d49 -> Field Bad R-ID
44203831000000000000000000000000
00000000000000000000000000000000
000000000000000000000000

8200aa20
000000bf0000a8c0000000be000080c0
01000000000000000000000000000000

8400aa08
0838020000000000

8800aa10
00005003000000000000000000000000