Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Pages: [1]
  Print  
Author Topic: Device id  (Read 908 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 29
Offline Offline
View Profile WWW
« on: June 01, 2009, 07:57:04 AM »

Hello again,

This time I come with a rather programming question. I am after the way to identify each Wii Remote device by its ID, should such a thing exist. What for? I want to save settings of Wii Remotes locally on a computer rather than in the memory of Wii Remote.

Motivation: I want to leave Wii Remote space absolutely free for other stuff. Perhaps it is just my caprice, but still that's the way I would like it to be. For now I noticed that to each device is given an address of six hex numbers, separated with colons (':'), but I am still unsure whether every device receives the same address every time it connects on any computer. (that is a question) I didn't get around to acquiring this number inside of the application yet, but I will go for it, in case this number is unique for each device.

So, basically, my question is, whether there is any way to identify a certain Wii Remote on a PC. In case you care to know, I work in C++.
« Last Edit: June 01, 2009, 07:58:50 AM by Misha » Logged

++
Support Admin
*
Karma: +48/-0
Posts: 1172
Offline Offline
downriverpaddler@tpg.com.au View Profile WWW Email
« Reply #1 on: June 01, 2009, 10:43:37 PM »

Misha
As I understand it, identification occurs through its position in the HID list (1st, 2nd or 3rd). Check with boonjin.

benpaddlejones Smiley
Logged

*
Karma: +0/-0
Posts: 29
Offline Offline
View Profile WWW
« Reply #2 on: June 28, 2009, 10:29:29 AM »

Thanks for the reply. Smiley

If I am getting it right that you are referring to the order that the Wii Remotes take in the list while the application initializes, that's not something I can use, because the numbers of Wii Remotes connected doesn't have to the same always.

Here I need to find an invariant parameter that has unique value for each Wii Remote. So far I tried to identify Wii Remotes through the HID interface, but none of the following functions gave me something I could hook on:

HidD_GetManufacturerString - "UnKnownh"
HidD_GetPhysicalDescriptor - ""
HidD_GetProductString - "UnKnown2 Optical Mouse"
HidD_GetSerialNumberString - "UnKnownh"
HidD_GetAttributes - VID, PID, VersionNumber that are apparently same for many Wii Remotes

For now it remained a mystery to me how to obtain even the device address.

So, dead end for now. :|
Logged

++
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Clicky Web Analytics