The mbed usb host can only parse some generic devices.
If a usb device is pluged in, the host is reading bytes from the device - the descriptors.
I'dont know if the mbed code is working with composite devices. (more than one usb function in one device).
The name of the device is recognized, but after that all descriptors has to be parsed.
If your modem has more than one CDC - you have to add code to enumerate this devices one after another.
Pick up the devices you need and set up two CDC's. This will end in 2 * 4 endpoints.
USBSnoop will also help to identify things.
You will have to dig into the usb protocol :-(
Debugging a USB host is easyer than debugging a usb slave. Most time you have a bug in a usb slave the PC host will crash and you have to reboot...
Hi all,
I want to use my mbed as a usb host for a serial device, to which I want to read and write.
I have tried with BlueUSB, USBHostLite, and USBHostShield, which all look rather similar.
They all recognize my device but I cannot figure out how to write to the USB device and read out its answer.
Can anyone help?
Thomas