Author Topic: IR connection problem  (Read 5498 times)

Offline akermen

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
on: July 18, 2008, 07:35:19 PM
hi everyone,

I could not run WiiWhiteboard on my XP desktop.

wiimote connects without any difficulty.
the problem arises after the WiiWhiteboard application starts.
a few seconds later wiimote disconnects. no error
message is displayed. with different versions of WiiWhiteboard
and WiimoteLib, and other applications using WiimoteLib (with IR
functionality) give the same result. the application starts
but does not work, hangs or crashes.

there're a lot of forum-posts saying bluetooth device and stack
may cause this type of connection problems. I tried seven different
bluetooth adapters with different bluetooth stacks.
two of the adapters are (Asus WL-BTD201M, Billionton GUBTCR42)
listed as working on this page:
http://www.wiili.org/index.php/Compatible_Bluetooth_Devices
others not listed, so they may work with wiimote.

any suitable pair from one of bluesoleil, widcomm, toshiba, microsoft
stacks (with any available versions) and one of the adapters did not
change the behaviour.

I suspected the problem may caused by the WiimoteLib code. interestingly
when I disabled IR-camera in the code, everything started working;
buttons, rumble, accelerometer. this is the change in the application code:

Code: [Select]
//SetReportType(InputReport.IRAccel, true);
SetReportType(InputReport.ButtonsAccel, true);


after a few debugging sessions, I found that the first "WriteReport" call
in "EnableIR" functions causes the connection end. I suspected that the
data values sent to wiimote may be in wrong order or there are missing
parts. after some googling I found different wiimote libraries, each using
different procedure to enable IR-camera. I tested most of these libraries'
IR-camera enabling procedure, but no luck.

if there's anyone experienced same problem, please help me.

------------------
akermen



Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #1 on: July 18, 2008, 08:01:41 PM
akerman
You are dealing with so many variables, could be anything. So I suggest you start by simplyfying:
1. Remove all bluetooth drivers & devices
2. Connect 1 only and load the widcomm stack (most stable)
3. Check it works by connecting & communicating with a mobile or other bluetooth device
4. Run a full update of Windows, ensure you select optional and select all avaibale updates
4. Load Boonjin's Whiteboard App: http://www.boonjin.com/wp/
      Boonjin has fixed many issues and added some awesome functionality
      Boonjin has also integrated the latest wiimotelib, into the program, so no wiimotelib conflicts between versions
5. Close all programs
6. Connect wiimote using this proceedure: http://www.wiimoteproject.com/wiimote-and-bluetooth-connectivity/success!-non-bluesolei-stack!/ (hold buttons 1 & 2 through whole process)
7. Release button's 1&2
5. Run Boonjin's app

Advise of the result  ;D

Benpaddlejones


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline akermen

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #2 on: July 19, 2008, 01:14:45 AM
thank your for your quick reply.
I'm going to try the method as you suggested,
and post results here.



Offline akermen

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #3 on: July 22, 2008, 01:33:09 AM
still disconnecting at same point  :(



Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #4 on: July 22, 2008, 02:09:02 AM
Akerman

Complete the following:
XP: 32/64bit
XP: SP?
Computer Manufacturer:
Bluetooth Adaptor:
Bluetooth Stack: Microsoft/Widcomm/BlueSoliel/Other(??)
Connection Process:
Wiimote Whiteboard Application:
Other applications running at same time:

Benpaddlejones :)
« Last Edit: July 22, 2008, 02:12:37 AM by benpaddlejones »


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline boonjin

  • *
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #5 on: July 23, 2008, 08:51:55 AM
If you(or friends) have an actual Wii console, you should try pairing it up with the console and test the usage of the IR to rule out whether this is a fault of the Wiimote.

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url