Ticket #92 (assigned defect)

Opened 4 years ago

Last modified 3 years ago

Balance Board state type Unknown Extension Attached

Reported by: dolphindream Owned by: dsmith
Priority: major Milestone: Version 0.6.00
Component: build system Version: 0.6.00
Keywords: Balance Board Cc: victor@…

Description

The trunk-r197 does not work with the Balance Board. The wmdemo (and my application using the libcwiid) connects fine to the balance board (and is able to recognize the button states) however it does not read the sensor data since the state type reports an UNKNOWN type. The wmdemo has "Unknown extension attached" (extension reporting on and print the current state). Here's the output:

./wmdemo
Put Wiimote in discoverable mode now (press 1+2)... Note: To demonstrate the new API interfaces, wmdemo no longer enables messages by default. Output can be gathered through the new state-based interface (s), or by enabling the messages interface (m).

1: toggle LED 1
2: toggle LED 2
3: toggle LED 3
4: toggle LED 4
5: toggle rumble
a: toggle accelerometer reporting
b: toggle button reporting
e: toggle extension reporting
i: toggle ir reporting
m: toggle messages
p: print this menu
r: request status message ((t) enables callback output)
s: print current state
t: toggle status reporting
x: exit
e
m
s
Report Mode: NUNCHUK CLASSIC BALANCE
Active LEDs:
Rumble: Off
Battery: 91%
Buttons: 0
Acc: x=0 y=0 z=0
IR: no sources detected
Unknown extension attached

Change History

Changed 4 years ago by dsmith

  • status changed from new to assigned

The code seems to match the debugging data at wiibrew.org, but I don't have a Balance Board to verify with. Can you post the contents of your 0xA40F0-0xA40FF?

Changed 4 years ago by bogado

  • cc victor@… added

Using the latest svn version the wmdemo.py seems to think that the balanceboard is a motionplus attachment.

a
s
Report Mode: ACC NUNCHUK CLASSIC BALANCE MOTIONPLUS
Active LEDs:
Rumble: Off
Battery: 90
Acc: x=41 y=41 z=41
MotionPlus: angle_rate=(4227,3752,10437)

How can I get the contents of those addresses?

Changed 4 years ago by dsmith

Use wmgui, under the View menu, choose the Memory Read/Write? option.

Changed 3 years ago by kyleanderson

I'm using r201 (Package from Ubuntu 10.04) and I have the same problem, it detects my balance board as a MOTIONPLUS attachment.

I altered the wmdemo.py to print out the raw state if it helps: s Report Mode: Active LEDs: Rumble: Off Battery: 89 {'led': 0, 'rpt_mode': 0, 'ext_type': 4, 'rumble': 0, 'error': 0, 'battery': 186}

I cant get wmgui to read the data. Can you confirm that I have the right settings? Under Memory Read/Write?, I have the offset as 0xA40F0, length as 0x0000F ? And are we reading an eeprom or register? Either way I get "Wiimote Read Error" and:

Non-successful handshake Report send error (read)

at the console.

Changed 3 years ago by kyleanderson

Ah, I got it, just a typo on the address and you want a register:

0x00A400F0: FF FF 00 00 FF FF 00 00  00 00 00 00 A4 20 04 

Changed 3 years ago by kyleanderson

I just installed and compiled trunk, and this is fixed. I would mark this as closed, but I'm kind new here :)

Note: See TracTickets for help on using tickets.