Wiimote Project

Hardware Support => Bluetooth & Connectivity Help Center => Topic started by: CoffmanRocks on August 18, 2010, 12:09:41 PM

Title: Can't Connect My Wiimote to Mac using Wiimote Whiteboard
Post by: CoffmanRocks on August 18, 2010, 12:09:41 PM
I have decided to create an interactive whiteboard using the wiimote and an infrared pen for my classroom. The program I'm using to connect the controller to my computer and communicate with my infrared pen is called WiimoteWhiteboard. During the summer I set up everything and it worked perfectly. Now that we're back to school, this is not the case. While searching for the wiimote, the program runs into errors and it seems like they stem from there being a lot of computers in the school transmitting bluetooth signals. I need help, because I know that this is possible, and I know how valuable of a tool it can be in the classroom. Thanks for the help all!
Title: Re: Can't Connect My Wiimote to Mac using Wiimote Whiteboard
Post by: boonjin on August 18, 2010, 07:27:18 PM
Hi,

As the Bluetooth's range is not very far, interference from devices far away may not be an issue. Do you have many Bluetooth devices in your classroom and neighbouring classrooms?

It would be better if you post the errors found here.

Regards,
Boon Jin
Title: Re: Can't Connect My Wiimote to Mac using Wiimote Whiteboard
Post by: CoffmanRocks on August 18, 2010, 08:41:10 PM
Thanks for the input. I am not a computer programmer by any means, so I must admit to not totally understanding what the errors were saying. I was just taking an educated guess. I'll be in the classroom tomorrow morning and I'll run the program and then copy and paste the error message into this board. Thanks for the help and your time. I greatly appreciate it and I know the kids will be excited to get it working.

Thanks!

CoffmanRocks
Title: Re: Can't Connect My Wiimote to Mac using Wiimote Whiteboard
Post by: CoffmanRocks on August 19, 2010, 08:41:36 AM
Here is what my computer keeps outputting to me. Thanks!



   INFO     09:40:55  Calibration Event: SCREEN_CHANGED
   INFO     09:40:55  Calibration Event: LOADED
   FINE     09:40:56  WiiRemoteJ: Found Nintendo RVL-CNT-01 (E0E751AFE516)
   FINE     09:40:56  WiiRemoteJ: Nintendo RVL-CNT-01 is a Wii Remote.
   INFO     09:40:57  WiiRemoteJ: btl2cap://E0E751AFE516
  FINER     09:40:57  WiiRemoteJ: Initial connection complete.
  FINER     09:40:57  WiiRemoteJ: Calibrating accelerometer...
  FINER     09:40:57  WiiRemoteJ: Accelerometer successfully calibrated
  FINER     09:40:57  WiiRemoteJ: Initialization complete.
 FINEST     09:40:57  WiiRemoteJ: Data write finished.
 FINEST     09:40:58  WiiRemoteJ: Data write finished.
 FINEST     09:40:58  WiiRemoteJ: Data write finished.
 FINEST     09:40:58  WiiRemoteJ: Data write finished.
 FINEST     09:40:58  WiiRemoteJ: Data write finished.
 FINEST     09:40:58  WiiRemoteJ: Data write finished.
 FINEST     09:40:58  WiiRemoteJ: Data write finished.
   INFO     09:40:58  (Re-)Setting IR sensor of Wiimote 1: done
 SEVERE     09:40:58  Error on configuring Wii Remote
java.io.IOException: Error sending data!
   at wiiremotej.WiiRemote.sendCommand(WiiRemote.java:613)
   at wiiremotej.WiiRemote.setLEDLights(WiiRemote.java:937)
   at wiiremotej.WiiRemote.setLEDIlluminated(WiiRemote.java:918)
   at org.uweschmidt.wiimote.whiteboard.WiimoteDataHandler.addRemote(WiimoteDataHandler.java:103)
   at org.uweschmidt.wiimote.whiteboard.WiimoteDataHandler.wiiDeviceDiscovered(WiimoteDataHandler.java:253)
   at wiiremotej.WiiRemoteJ$1.run(WiiRemoteJ.java:434)
   at java.lang.Thread.run(Thread.java:613)
Caused by: java.io.IOException: Failed to write [0xe00002bc]
   at com.intel.bluetooth.BluetoothStackOSX.l2Send(Native Method)
   at com.intel.bluetooth.BluetoothL2CAPConnection.send(BluetoothL2CAPConnection.java:130)
   at wiiremotej.WiiRemote.sendCommand(WiiRemote.java:609)
   ... 6 more
WARNING     09:40:58  Error on requesting status from Wii Remote
java.io.IOException: Error sending data!
   at wiiremotej.WiiRemote.sendCommand(WiiRemote.java:613)
   at wiiremotej.WiiRemote.requestStatus(WiiRemote.java:904)
   at org.uweschmidt.wiimote.whiteboard.WiimoteDataHandler$1.run(WiimoteDataHandler.java:125)
   at java.lang.Thread.run(Thread.java:613)
Caused by: java.io.IOException: Connection closed
   at com.intel.bluetooth.BluetoothStackOSX.l2Send(Native Method)
   at com.intel.bluetooth.BluetoothL2CAPConnection.send(BluetoothL2CAPConnection.java:130)
   at wiiremotej.WiiRemote.sendCommand(WiiRemote.java:609)
   ... 3 more
Title: Re: Can't Connect My Wiimote to Mac using Wiimote Whiteboard
Post by: teacherdude on August 19, 2010, 04:34:40 PM
This has happened to me a few times.  A simple fix for my mac is to go to system preferences, then to bluetooth, and then uninstall previously installed wii remotes.  You do this by highlighting the installed wii remotes (if any) and then clicking the minus (-) button at the bottom of the listing of installed components.  It will ask you to confirm the deletion and select remove.

Hope this works!

You may also want to make sure you've updated to the most current version of wiimote whiteboard.  It is found at: http://www.uweschmidt.org/wiimote-whiteboard

Title: Re: Can't Connect My Wiimote to Mac using Wiimote Whiteboard
Post by: CoffmanRocks on August 20, 2010, 06:18:45 AM
Thanks for the help. Unfortunately I have already tried both things, and it's still not working. If anyone else has any ideas, please let me know.

Thanks,

CoffmanRocks
Title: Re: Can't Connect My Wiimote to Mac using Wiimote Whiteboard
Post by: ujs on August 24, 2010, 09:49:48 AM
Hi,

your problem could be caused by the app looking for a second Wiimote in the background, and errors may occur when it finds other devices like cellphones.
For now, you can turn that off by setting the runtime option "org.uweschmidt.wiimote.whiteboard.wiimotes" to "1"; please see the wiki at http://wiki.uweschmidt.org/WiimoteWhiteboard/Preferences.

Uwe