Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: wii hangs in demo_console  (Read 2205 times)

slorenzo

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
wii hangs in demo_console
« on: September 30, 2008, 07:03:23 PM »

I'm trying to access the wii remote from OIS, so I compiled the package with the wii support enabled: so far so good. The problem is that when I run the Demo_console, the app loops inside "ReadCalibrationData" calling HeartBeat again and again with no successful result from the ReadFile sentence. The result is that the application hangs.

The bluetooth stack and the hardware seem to be working OK because I managed to use the wii remote from the GlovePie application. Trying to discover a solution I installed two different versions of the BlueSoleil stack (supposed to be the best) but I couldn't even keep the device connected, so I decided to uninstall both versions.

I guess that I made some mistake in the building process, so these are my questions:

1) Can I take the fact that I managed to run glovepie successfully as a guarantee that the device drivers are OK ?
2) Is there any available binary (precompiled) version of the Demo_console in the net? I want to discard a bad compiling process.
3) Any precompiled version of OIS+wiimote available ?
4) Any hint about the loop at ReadCalibrationData ?

Vista32 + sony VAIO + VC++ express 2005.

Regards,
Sebastian Lorenzo
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: wii hangs in demo_console
« Reply #1 on: October 01, 2008, 06:20:36 AM »

I doubt it is compile issue. From what I've seen, the wiimote lib code is very fickle, and depends a lot on the bluetooth stack. I just looked at the cWiimote website (lib OIS uses), and very little has been done at all. I suspect there is probably a better wiimote library out there that OIS could use. Might be worth looking into replacing that code with something else that is currently worked on.
Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: wii hangs in demo_console
« Reply #2 on: October 01, 2008, 09:09:22 AM »

"Not all Bluetooth Stacks were created equal."

Literally though, bluetooth driver quality varies from royally suck to half-decent (and none are 'great').  OIS' code works for my Wiimotes for example.
Logged

slorenzo

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
Re: wii hangs in demo_console
« Reply #3 on: October 01, 2008, 03:14:00 PM »

Thanks very much, I can't wait to use the wii remote !!!

I'll probably post the question in a cWiimote forum, if any.

Any recommended driver? Any recommended hardware for a notebook ? (like USB bluetooth adapter)
Can bluetooth be stacked ? I mean, the last one is the only active or I have to disable the previous one?

Thanks again,
Sebastian Lorenzo
Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: wii hangs in demo_console
« Reply #4 on: October 01, 2008, 03:19:07 PM »

The Soleil(sp?) driver I heard was pretty good.  I have one of the rare IOGear Bluetooth dongles that actually works with the normal Windows Microsoft stack with the Wiimote (I got lucky, it was a random buy).  Best thing is just look on Wiimote library sites and see what has been confirmed to work.  The Bluetooth protocol never become popular because too many people thought it was a 'fancy cell phone thing' instead of a standardized low-energy wireless encrypted protocol.
Logged

slorenzo

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
Re: wii hangs in demo_console
« Reply #5 on: October 04, 2008, 05:53:08 AM »

pjcast  said:
Quote
Might be worth looking into replacing that code with something else that is currently worked on.

I downloaded the Wiiyourself! package, and it seems to be working OK with my bluetooth stack. It shares some part of the code with cWiimote, so maybe it is not that difficult to interface OIS with this one. (Easy to say, isn't it?) Looking at the code, it has some references to different stacks so I asume that this development is more updated. Have you seen it ?

Thnks again,
Sebastian Lorenzo
Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: wii hangs in demo_console
« Reply #6 on: October 04, 2008, 11:08:18 AM »

Yea, probably putting in a newer cWiimote would work with more things.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: wii hangs in demo_console
« Reply #7 on: October 04, 2008, 12:42:06 PM »

pjcast  said:
Quote
Might be worth looking into replacing that code with something else that is currently worked on.

I downloaded the Wiiyourself! package, and it seems to be working OK with my bluetooth stack. It shares some part of the code with cWiimote, so maybe it is not that difficult to interface OIS with this one. (Easy to say, isn't it?) Looking at the code, it has some references to different stacks so I asume that this development is more updated. Have you seen it ?

Thnks again,
Sebastian Lorenzo

If the backend is the same or similar, replacing it would be pretty easy. I do not have any time for such things, but would appreciate a patch if you are able to mange it.
Logged

slorenzo

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
Re: wii hangs in demo_console
« Reply #8 on: October 08, 2008, 06:29:34 PM »

PJCast,
a beta version of the patch is ready. I'll send a ZIP to your mailbox.

Regards,
SL
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: wii hangs in demo_console
« Reply #9 on: October 08, 2008, 07:58:31 PM »

Nice. So you were able to find a working fix for the cWiiMote lib?

Would probably be best if you could upload it to the patch tracker here: http://sourceforge.net/tracker/?atid=775955&group_id=149835&func=browse
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: wii hangs in demo_console
« Reply #10 on: October 08, 2008, 08:17:42 PM »

hmm, looking at the patch and the WiiYourself lib license, I'm not so sure if we can use it. Specifically, the license states:

Quote
4) Don't use the code to produce a competing library
   unless you rewrite it considerably (eg. to convert it
   to another language, but contact me first).

Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: wii hangs in demo_console
« Reply #11 on: October 21, 2008, 07:55:39 PM »

OIS seems more encompassing then the Wiimote stuff.  Besides, you could write the bindings for the Wiimote, but have it disabled by default with a macro, and the user can enable it if they download the whatever Wiimote library you are using now anyway.
Logged