greg k-h wrote:
> As a side note, who makes this cash drawer?
IBM.

And no, I am not going to attach it to my laptop. :)

About control pipes. It doesn't work. This idea
is stopped until I get more information from IBM.

I am quite new to USB programming so please be patient
and answer some newbie questions.

1. creating pipes

 I have enpoint settings (usbview):
     Endpoint Address: 81
     Direction: in
     Attribute: 3
     Type: Int.
     Max Packet Size: 8
     Interval:  32ms

Can I write to this endpoint or only read (Direction: in)? 
How to create pipe?
usb_sndintpipe(dev, endpoint="Endpoint Address") - (Type: Int.)?

But in [1] we can read that endpoint is between 1 and 15.

2. EMSGSIZE
When I try to submit URB filled with:

FILL_INT_URB(purb, data.dev, usb_sndintpipe(data.dev, data.ep_A),
          buff, 8, drawer_complete, &data, data.int_A*HZ);

where data.{ep,int}_A is address and interval of the endpoint then
I am getting -EMSGSIZE. In [1] we can read that we get it when
"Endpoint message size is zero" and "do interface/alternate setting".
Should I use usb_set_interface? But I have only one alternate setting
which is current alternate setting so it is set, right?

Please help!

  wrobell <[EMAIL PROTECTED]>

[1] "Programming Guide for Linux USB Device Drivers"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to