Radoslaw Garbacz wrote:

>     data   is urb_s->transfer_buffer
>     answer is sending to urb->complete function in urb structure, but in
> which field ???

not quit.
Depends on this being a control OUT or control IN...
If you are using a control out, there is no real reply, the only 'status' is
in urb_s->status being 0 (=success) or not (=error).

The usb_s->tranfer_buffer contains the data transferred, this is OR the data
you send if this is a control OUT OR the data the device sends back if this is
a control IN.

> I have been developed driver for MicroTouch USB Touchscreen device.
> When I register my driver with allocation interface 0, endpoint 0x81
> (FILL_INT_URB),
> the irq_function isn't executed. Should I initialize device to get irq ?

This depends on the device I presume.
If it does not 'raise' an interrupt, your function will not be called.
(I'm only guessing: Before your device is 'activated' ?)
 
> I also allocate control endpoint (OUT direction 0x00 address), and send
> to device
> <R> command ( <reset> from "Touch Controllers Reference Guide",
> unfortunately this book hasn't any word seems like "USB"). Next I try to
> receive data from device (endpoint 0x80, FILL_CONTROL_URB) and then
> appears something like this:

> --May 12 10:12:31 kasaIBM kernel: usb-uhci.c: ENXIO 80400a80, flags 0,
> urb ceda1bb4, --burb ceda1bb4

The only place usb-uhci returns this is when you submit an urb to an endpoint
when another urb is still active on that endpoint...
Do you wait until your first control message has been completed ?

> Could I hope that commands from "Touch Controllers Reference Guide"
> for non USB controllers will work with my usb device?

hmmm.
I am unfamiliar with any of those devices, but i doubt it... maybe with some
modifications, yes, but the messages you send still need to be usb commands...

hope this helps,

        J.

-- 
                                  ________
/---------------------------------\      /--------------------\
|  Johan Verrept                   \    /  Alcatel            |
|  Software Development Engineer    \  /   De Villermontstr 38|
|  xDSL Customer Premises Equipment  \/    B-2550 Kontich     |
|  http://www.alcateldsl.com/     ALC/\TEL Belgium            |
|  mailto:[EMAIL PROTECTED]    Phone: +32 3 450 3506   |
\-------------------------------------------------------------/

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

Reply via email to