Page 1 of 1

Receiving a simple bulk message on my device

Posted: Sat Nov 05, 2011 12:49 pm
by tommy
Hi, my Linux driver on host side sends a bulk message with the following USB subsystem call:

usb_bulk_msg(...)
1. param: usb_dev
2. param: pipe 1
3. param: data 0x5
4. param: len 1
5. param: actual len: pointer of int
6. param: timeout 200

In the kernel documentary I found regarding to the usb_bulk_msg function: "This function sends a simple bulk message to a specified endpoint and waits for the message to complete, or timeout. If successful, it returns 0, otherwise a negative error number."

What I want to do is receiving this bulk message on my device in any way that usb_bulk_msg returns 0. Because otherwise my driver initialization fails at all. And I am not able to remove this call at the moment.

Can anybody help me? I don't know what really to do on the device side to make it work.

Thanks in advance,

Tommy