Hi,


this is not really on topic for libusbx but since I know the
people who hang there are very well versed in this I figured
this is one of the places to ask, since this has been
discussed before [1].

Of course tried to google for this but could not really
find a definite answer.

Background

I'm writing a small cross platform library in Java to access
HID devices, similar to HIDAPI, but with JNA so that C-tool
chain and non-OS native libraries are not needed.

I've got the prototype working in Mac OS X and Windows and
I'm working on the Linux next.

The problem

I would like offer to the library users a 'path' to the HID
device that persists from run to run unless the device is
plugged to a different port.

I windows I think the path I pass to CreateFile() is the
what I want and can use but on OS X the penny has not
yet dropped. I see that HIDAPI uses kIOHIDTransportKey
retrieved fromt the IOHIDDevice but that seems to
change from run to run.

I have not looked into the Linux yet but I expect that could be easy.


Of course it would be great if the path would be human
readable so that it can be displayed (after formatting perhaps)
on the UI and be intelligible to users.


This can't be very unique question and I was sure somewhere
some one has published a solution but I can't find it....

br Kusti







[1] http://sourceforge.net/mailarchive/message.php?msg_id=29300228



This e-mail may contain confidential or privileged information. If you are not 
the intended recipient (or have received this e-mail in error) please notify 
the sender immediately and destroy this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly 
forbidden. We will not be liable for direct, indirect, special or consequential 
damages arising from alteration of the contents of this message by a third 
party or as a result of any virus being passed on or as of transmission of this 
e-mail in general.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to