On Fri, 2003-08-22 at 15:31, David Brownell wrote:
> You can get significant functionality just by opening the
> /dev/input/* files from Java and using them directly.
> 
> But I'd not be surprised to know you also need ioctls of
> some kind.
>
> Ideally it would be as simple as writing a HID report to the
> /dev/input device ... but I don't know how it actually works.
> 

Off hand do you know what device file in /dev would represent the USB
port(s)? On my laptop I only have one USB. On the PC I will be using for
the POS there are two.

I looked in /dev/input, but I am not sure which one I need to work with.

> I thought you were talking about a Java app that needed to access
> the cash drawer, system not revolving around driver.  If that's the
> case, then why pick an approach (kernel driver) that needs much
> C code at all?

The cash drawer is supposed to be full HID compliant. I would love to be
able to access the cash drawer directly from Java and not touch C at
all. That would be great if I do not need a driver.

I may at some point port the POS to GTK using C++. For now getting the
cash drawer to open via Java on Linux would really save my butt.

I really do not know how to proceed from here. Other than to do research
on HID compliant devices and how HID in general works with in Linux.

Any input, links, comments, etc. are greatly appreciated.

-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to