Author Topic: using wiimotes in adjacent classrooms = grabbing each others -help!  (Read 15193 times)

Offline jcrick1

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Hi everyone-

I just did this great training and handed out 24 wiimotes and pens...4 teachers left and tried to get them going in adjacent classrooms, which ended up being a mess.

The first one would connect fine. When they fired up the laptop and wiimote in the next room, it saw its own and also tried to grab the first one, which caused the first one to drop it's connection, and the first tried to resync, grabbed the other...and, well, you get the idea.

So, how have people dealt with having multiple wiimotes running in close proximity to each other? We love these, and want to use a bunch of them, but need to solve this problem.

We use Macs, iBooks and some MacBooks, most running 10.5.x, some 10.4, and we're using Uwe Schmidt's Wiimote Whiteboard app.

Any thoughts and ideas would be a huge help.

Thanks!!

Jim



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Hi Jim,

you can configure my application to only connect to specific Wiimotes. See "Runtime Options" at http://wiki.uweschmidt.org/WiimoteWhiteboard/Preferences
I know this is a bit complicated right now, but it has to be done only once. I guess I'll make this easier in the next release due to "popular demand".

Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline mystre

  • *
  • Posts: 69
  • Karma: +2/-0
    • View Profile
    • Mystr E
I'm going to run into this problem in the next few weeks.

What and where is the area that  needs to be changed in the application bundle (windows version)?

thanks
Dale   



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Hi Dale,

What and where is the area that  needs to be changed in the application bundle (windows version)?

The part about the application bundle is Mac-specific. This is relevant for you:

Quote from: http://wiki.uweschmidt.org/WiimoteWhiteboard/Preferences
In case you're running the cross-platform JAR-file, you can set the properties like this:
java -Dname=value -jar WiimoteWhiteboard.jar

Hence, you would start the app like that: java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=001E351309C2 -jar WiimoteWhiteboard.jar
Just replace the Bluetooth address with your own.

Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline mystre

  • *
  • Posts: 69
  • Karma: +2/-0
    • View Profile
    • Mystr E
Sorry-I not clear where I need to put  java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=(mywiimoteaddres) -jar WiimoteWhiteboard.jar.  Am I just renaming the WiimoteWhiteboard.jar  or am I opening the jar file with some kind of program and making a change, or is there a document that I'm altering.   

Thanks
Dale



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Sorry-I not clear where I need to put  java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=(mywiimoteaddres) -jar WiimoteWhiteboard.jar.  Am I just renaming the WiimoteWhiteboard.jar  or am I opening the jar file with some kind of program and making a change, or is there a document that I'm altering.   

You need to type that into the command line to start the application each time. Since this is not very convenient, you can put the command into a batch file which can then be started by double-clicking like any other app.

In a nutshell:

1. Go to the folder with the WiimoteWhiteboard.jar
2. Create a new text file and put the command in it
3. Change the text file's extension from .txt to .bat
4. Double-click the .bat-file to start the app

Uwe



Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline mystre

  • *
  • Posts: 69
  • Karma: +2/-0
    • View Profile
    • Mystr E
Thank you for all the help. I really appreciate it

So mine would look like this-based on image I included.
java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=00:22:aa:84:b3:8d -jar WiimoteWhiteboard.jar

I think I'm going to do a quick video on this when school resumes after spring break and post it on this thread.

Has anyone seen this type of issue using the smoothboard software?
Dale
« Last Edit: April 04, 2009, 01:40:43 AM by mystre »



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
So mine would look like this-based on image I included.
java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=00:22:aa:84:b3:8d -jar WiimoteWhiteboard.jar

Like my example above, remove all colons and better use uppercase:

java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=0022AA84B38D -jar WiimoteWhiteboard.jar


Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Dale

Has anyone seen this type of issue using the smoothboard software?

No becuase one you connect the MAC address is saved in the HID list. You can then connect to a specific device from your BT devices list.

But because Uwe can use the Bluetooth API, connection is no doubt simpler. You can use Java White board with the Widcomm V4 stack but then the library has a problem (I think its the library, but Uwe will inform better) and doesn't track IR at a distance very well.

But Widcomm is no longer supporting V4 or the API so its is increasingly becoming obsolete.

benpaddlejones :)


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


Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Hi Ben,

I personally haven't run my app on Windows in months, so I don't know about the current situation in terms of Bluetooth stacks and such.

But because Uwe can use the Bluetooth API, connection is no doubt simpler. You can use Java White board with the Widcomm V4 stack but then the library has a problem (I think its the library, but Uwe will inform better) and doesn't track IR at a distance very well.
I have no idea what you're talking about :). Which "Bluetooth API" and "library" are you talking about?
I remember you told me that IR sensitivity is worse on Windows, although I haven't a clue why that should be.

But Widcomm is no longer supporting V4 or the API so its is increasingly becoming obsolete.
What is becoming obsolete?


Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
ujs
The BT API you use requires winsock, the only stack that uses winsock in Windows OS environment is Widcomm v4. Since v4, new version of Widdcomm are just re-interfaced MS BT which does not use winsock. Which is why v4 is becoming obsolete. Its really hard to buy a BT device with Widcomm v4. Even newer Laptops with XP & Widcomm have V5 which does not use winsock and is extremely problematic with connecting to a Wiimote as its HID profiles are too secure and won't allow connection without a sync code.

As we have discussed for some time the IR-Tracking in Windows for Java Whiteboard is not as good as the .net versions. I read a few posts on your site some time ago to the effect it maybe library problem but because one library is closed source you cannot compare.

benpaddlejones :)




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


Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
The BT API you use requires winsock, the only stack that uses winsock in Windows OS environment is Widcomm v4.
In fact, my app doesn't work with winsock since it uses the Java Bluetooth library BlueCove. Click here for the list of supported stacks by BlueCove.
As far I thought, winsock and WIDCOMM are different stacks.

As we have discussed for some time the IR-Tracking in Windows for Java Whiteboard is not as good as the .net versions. I read a few posts on your site some time ago to the effect it maybe library problem but because one library is closed source you cannot compare.
I can personally neither confirm or refute that claim. I'd also think it's unlikely a problem with the library WiiRemoteJ.

Honestly, this Bluetooth hardware/software mess is a good example of why I'm not using PCs/Windows anymore.


Uwe


Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline mystre

  • *
  • Posts: 69
  • Karma: +2/-0
    • View Profile
    • Mystr E
Quote
Like my example above, remove all colons and better use uppercase:

java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=0022AA84B38D -jar WiimoteWhiteboard.jar

Thanks for your help Uwe-I'm going to start installing software in the building classrooms this week.   Another question, should the new .bat file replace the existing one and keep the same name?  If so, should I include the text from the existing bat file in the new bat file like i have below?

Quote
java -jar WiimoteWhiteboard.jar

java -Dorg.uweschmidt.wiimote.whiteboard.wiimoteAddresses=0022AA84B38D -jar WiimoteWhiteboard.jar

Thanks
Dale
« Last Edit: April 12, 2009, 08:17:53 AM by mystre »



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Thanks for your help Uwe-I'm going to start installing software in the building classrooms this week.   Another question, should the new .bat file replace the existing one and keep the same name?

The new .bat file replaces the old one, the file's name isn't important at all.

Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
In fact, my app doesn't work with winsock since it uses the Java Bluetooth library BlueCove. Click here for the list of supported stacks by BlueCove.
As far I thought, winsock and WIDCOMM are different stacks.
I must have been half asleep when I typed that, I meant as you said doesn't use winsock and the main Windows based stack that doesn't is Widcomm.

I can personally neither confirm or refute that claim. I'd also think it's unlikely a problem with the library WiiRemoteJ.
I tested again today on two machines (both different to the ones I have experience this problem with before?

Honestly, this Bluetooth hardware/software mess is a good example of why I'm not using PCs/Windows anymore.
I'm with you apprently Windows 7 is even worse. I'm meeting the head of MS education next week as my NSWDET has just signed a major contract with them. I will be dicussing this with him, as the whole point of BT has been destroyed by MS. Its supposed to unify communication yet it has clearly divided them.

benpaddlejones


Uwe


[/quote]


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