On Mon, 2003-09-08 at 16:22, Brad Hards wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, 09 Sep 2003 02:01 am, William L. Thomson Jr. wrote:
> > On Mon, 2003-09-08 at 07:52, Brad Hards wrote:
> > > I think that the drawer will have to use hiddev.
> >
> > I have no problem with that but I am not able to access the drawer under
> > /dev/usb/hiddev*
> >
> > I am not sure if there is something I must do to get the drawer
> > accessible under one of those devices.
> Probably upgrade your kernel, turning on HIDDEV support in the process. You 
> should see hiddev0 entry in your logs.

I am running the lastest kernel from RedHat, as part of the RH 9 distro.
I can try with a generic kernel straight from kernel.org.

I tried both with the kernel and modules that RH ships, and with my own
custom kernel from the RH kernel sources. I do have HIDDEV support and
it and others were enabled in the kernel I compiled.

> > >  Input events won't work
> > > because of the Application page for POS. I've posted a little
> > > information, but it isn't very good.
> > > Try http://www.frogmouth.net/hid-doco/examples/hiddev-misc/dump-events.c
> > > and http://www.frogmouth.net/hid-doco/examples/hiddev-misc/write-events.c
> > > as examples.
> >
> > Examples of what? Should I be looking at the code or compiling and
> > running it to see the output? I apologize if I am asking the obvious.
> Its a basic example. The write code plays with a keyboard (if you turn off HID 
> input support - so you need a non-USB keyboard as well, or a remote login).

Ok

> > > I definitely recommend against writing a HID parser (in C or Java - its
> > > still HIDeous).
> >
> > I am not sure what you mean by that. For some reason I am still thinking
> > I will need a driver?
> I mean, do not try to write a HID parser. Use the one in the kernel through 
> the hiddev interface.

Ok

> > I have am building a driver based on the usb-skeleton driver.
> >
> > So far I am able to map the device to my driver and to a character
> > device which I made an entry for in /dev/usb/apgcd. However I do not
> > know how to access the Report Descriptor via my driver. Nor do I know
> > how to send or receive data from the cash drawer.
> Read the HID specification a few times. Realise how hard it is.

I am realizing it now.

>  Then come back 
> and re-read what I've written above.

Will do

> > It would be nice to do this in user space, but I do not know how to
> > access to drawer when it is not available via any device in /dev?
> Thats a kernel configuration issue most likely, assuming that the device 
> really is HID. Make sure your .config file is showing CONFIG_USB_HIDDEV is 
> set to Y

It is supposed to be HID compliant device. My .config is set to Y

> Brad
> 
> BTW: you should have posted this to the list. Next time, I'll just drop your 
> email.

I tried. In Evolution reply to sender does not always reply to the
group. Nor does reply to all so I end up having to remember to change
the recipient. Usually when I notice this I send a copy to the list. I
did with the last email and for some reason it did not arrive. I will
send it again.

-- 
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