On Fri, 2003-08-22 at 13:29, David Brownell wrote: > William L. Thomson Jr. wrote: > > > > At this point I do not seem to have a choice but to develop a driver and > > Java API on my own. I am hoping some one out there has some kernel > > driver experience, hopefully with the USB HID interface. If not could > > anyone point me in the direction of a how to, so I have a starting > > point. > > Brad Hards has posted some information on how to use the standard > input event support from user-mode Linux programs. I'd certainly > suggest you look at wrapping that support in a thin Java wrapper, > rather than trying to write a HID driver in Java.
The driver I would write in C. I figured there was no choice there. would then either make calls from Java to that .so or use entries in the /proc file system made by the driver during runtime. Java could would wrap around and/or use the functionality of the driver. Like have a file in /proc that would hold a number for states of the drawer. 0 for closed, 1 for open. Of course I would need to be able to make a call from Java to open the cash drawer. > There are certainly Java USB APIs; jusb.sf.net is the original, > LGPL; and there's something Sun blessed via JCP. (Which process > is still antagonistic to Free software.) But using one of those > would be overkill if all you need is HID access. I imagine I will need very little in Java since I would basically be wrapping around C code. Using the driver. Not sure exactly if I would use the HID interface or my own from Java. It's all about how I make the driver. Or how the driver is if a cash drawer exists that I can use with Linux and access/control via Java. -- Sincerely, William L. Thomson Jr. Support Group Obsidian-Studios, Inc. http://www.obsidian-studios.com ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
