How to connect wii balance board with android

流过昼夜 提交于 2019-11-27 15:20:14

问题


How to connect Wii balance board with android?

Is there are any useful Library in android and how to use it?

My goal now is to connect it together and can receive data from it.

I'm new with android and Bluetooth development


回答1:


I found this answer useful: Is it possible for an android device to read information from the wii controller and nunchuck? (quoted below with thanks to @Ben Mordue)

Have a look at this open source project: http://code.google.com/p/android-bluez-ime/


Update:

I first installed the APK file on Galaxy Nexus and it works. I have checked the code out of the repo, and it builds fine, and it relatively easy to understand.

It comes in 3 projects - to use Wiimote, you need to install all 3 projects. The one is just used as a flag to allow the service to try for a Wiimote (considering not all ROMs support that level of HID interaction).


I also found these resources on WiiBrew.org:

  • http://wiibrew.org/wiki/Wiimote

  • http://wiibrew.org/wiki/Wii_Balance_Board

I used the Wiimote link to understand the Bluez-IME code.


Update 2:

Last night I got the board to communicate with my Android phone correctly. I did this by starting with the Bluez-IME code linked above, and modifying it based on the wiibrew.org info.

The trick is that the Balance Board is like a wiimote with an Extension. So its like a Nunchuk or Classic Controller, but just with a different device ID to look for.

For my initial demo, I just searched for all code that uses a Nunchuk, and duplicated it for a Balance Board. Then to initialise the MODE to use channel 0x32, as per the wiibrew Balance Board page.


Update 3:

I just stumbled across this app on the store: FitScales

And the developer has shared his code on github: paulburton / fitscales



来源:https://stackoverflow.com/questions/14660159/how-to-connect-wii-balance-board-with-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!