On Mon, Apr 1, 2013 at 2:05 PM, Kustaa Nyholm <kustaa.nyh...@planmeca.com> wrote: > So my thinking is that the next step, if any, > for me is to move from my present CDC ACM solution, > which is (almost) driverless and requires > no native libraries with JNA and my PureJavaComm, > to a HID solution. > > HID would seem to be good enough for what I need to do > and would solve the driver issue. > > I've had a preliminary peek at the > signal11 hidapi code and while not a trivial task > it seems feasible to re-code that in pure Java > using JNA.
I do not know much about Java but I do not quite understand your "pure Java" terminology. Anyway, as per Wiki, the native library will still be requred, right? http://en.wikipedia.org/wiki/Java_Native_Access "Java Native Access provides Java programs easy access to native shared libraries without using the Java Native Interface. JNA's design aims to provide native access in a natural way with a minimum of effort. No boilerplate or generated glue code is required." > That would be a driverless, cross platform, > Pure Java solution for many, many applications. > > On the face of it, that looks like a winner to me. > > We'll see if I ever get round to that or if someone > else picks up the ball before me. Like this? The code seems to be a bit old though. https://github.com/setter/hid4j Or this one? https://github.com/BodyTrack/AirBot-Uploader/tree/master/java/lib/HIDAPI -- Xiaofan ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel