|
|
Line 168: |
Line 168: |
| | | |
| = Balance Board = | | = Balance Board = |
− | The Balance Board extension-side is identified by the 16-bit constant 0x2A2C (0x0402 encrypted) at register address 0xa400fe. It provides four 16-bit pressure sensors. '''None of the values coming from the extension reports or register area for the Balance Board are encrypted'''. | + | The Balance Board extension is identified by the 16-bit constant 0x2A2C (0x0402 encrypted) at register address 0xa400fe. This extension is only found connected to the [[Wii Balance Board]] device, and is documented on that page. |
− | == Data Format ==
| |
− | The Balance Board reports its information as at least 8 bytes of data, readable at 0xa40008 and streamable using Data Reporting Modes that include Extension bytes (unused bytes are filled with 0x00). The data in the first 8 bytes is as follows:
| |
− | | |
− | {| style="border-collapse: collapse; padding: 0.2em 0.2em 0.2em 0.2em; text-align: center;"
| |
− | |- style="background-color: #ddd;"
| |
− | | style="background-color: #fff;" |
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; text-align: center;" colspan="8"| '''Bit'''
| |
− | |- style="background-color: #cdc;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | '''Byte'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''7'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''6'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''5'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''4'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''3'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''2'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''1'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''0'''
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 0
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 1
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 2
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 3
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 4
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 5
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 6
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 7
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | |}
| |
− | | |
− | The next byte and the byte after the byte after that also appear to have values, although of unknown utility.
| |
− | | |
− | == Calibration Data ==
| |
− | | |
− | Calibration Data for the Balance Board sensors is found unencrypted in the 24 bytes from 0xa40024 to 0xa4003a, as follows:
| |
− | | |
− | {| style="border-collapse: collapse; padding: 0.2em 0.2em 0.2em 0.2em; text-align: center;"
| |
− | |- style="background-color: #ddd;"
| |
− | | style="background-color: #fff;" |
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; text-align: center;" colspan="8"| '''Bit'''
| |
− | |- style="background-color: #cdc;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | '''Byte'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''7'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''6'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''5'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''4'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''3'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''2'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''1'''
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; width:3.3em;" | '''0'''
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 0
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right 0kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 1
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right 0kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 2
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right 0kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 3
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right 0kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 4
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left 0kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 5
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left 0kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 6
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left 0kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 7
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left 0kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 8
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right 17kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 9
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right 17kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 10
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right 17kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 11
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right 17kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 12
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left 17kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 13
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left 17kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 14
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left 17kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 15
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left 17kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 16
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right 34kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 17
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Right 34kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 18
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right 34kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 19
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Right 34kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 20
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left 34kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 21
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Top Left 34kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 22
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left 34kg value'''<span style="color: #777;"><<span style="color: #c00;">15:8</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | | style="border: 1px solid #ccc; padding: 0.2em; background-color: #eee;" | 23
| |
− | | style="border: 1px solid #ccc; padding: 0.2em;" colspan="8" | '''Bottom Left 34kg value'''<span style="color: #777;"><<span style="color: #c00;">7:0</span>></span>
| |
− | |- style="background-color: #ded;"
| |
− | |}
| |
− | | |
− | Calculating the weight on each sensor simply involves interpolating between the two calibration values your reading falls between (or using the higher two values if your reading exceeds the highest calibration value), and the total weight on the board is the sum of these values.
| |
− | | |
− | There's still a few more bytes unknown (four following, and four preceeding) in the range 0xa40020 to 0xa4003f.
| |
| | | |
| [[Category:Hardware]] | | [[Category:Hardware]] |