Re: How to reset the USB CDC device through an application or from command prompt?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Alan,

On Tue, Apr 19, 2011 at 7:29 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, 19 Apr 2011, Ramya Desai wrote:
>
>> > You can reset a device via libusb.
>>
>> I am using Linux on embedded device, which has very small memory.
>> So, any alternate to reset the USB device without using libusb?
>
> Here is a program that does what you want:
>
>        http://marc.info/?l=linux-usb&m=126944503308931&w=2

Thanks for your information.

We have written an application with the mentioned IOCTL. Then we are
able to reset our device with this application. However, we are not
able to see the required behavior after reset the device through
application. The complete scenario is as follows.

We have a USB CDC device and boot loader application for it. The boot
loader application loads the firmware into the device through a serial
communication. To load another firmware (or modified one), we need to
disconnect the device from the Linux box and re-connecting it back.
Every time, whenever, we modify the firmware, we are disconnecting and
re-connecting it back to load the modified firmware onto the device.
Instead of doing so, we want to simulate the same behavior using some
commands either through an application or from command prompt.

So, we developed a new application for resetting the USB CDC device
through application using mentioned IOCTL. After running this
application, we are not able to load the modified firmware on to the
device. However, if we disconnect and connect it back, then we are
able to load the modified firmware.

I think, there is some difference between 1) disconnect and connect it
back and 2) resetting the device through IOCTL from an application.

How  can I get the same behavior that I am getting with device
disconnect and connect it back with some commands?

FYI: I am able to see reset command and enumeration of the device in
the Ellisys analyzer when we reset the device through an application
with an IOCTL.

Please let me know, if you need any additional information. I will provide.

Sorry for such a big email, but, I want to explain it clearly.

Thanks in advance.

Regards,
Ramya.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux