USB client (p31,p32) as a virtual serial and flash drive at the same time?

28 Mar 2012

So I have 2 tasks for my design: 1. USB client for serial (virtual com) for connecting to PC 2. USB client for emulating USB memory stick (emulate USB memory with SPI flash memory) for connecting to picture frame

So, is there a way to detect the host computer (PC or picture frame), and act accordingly to it?

Or it could emulate both at the same time, so the host would choose operation (virtual COM or external drive)?

28 Mar 2012

Hello, You are looking for composite USB device with CDC & MSC USB classes. Such device can at the same time act as different USB devices.

I think You have to look here on work of Suga koubou here http://mbed.org/users/okini3939/notebook/USB_Device/

It is based on official USB device stack and examples published by mbed team at end of last year.

There are also .inf files (driver for Windows) for each example.

13 Apr 2012

Alto it is in japanese, I will try it. Thank you...

What is the diference inbetween USBSerial (http://mbed.org/users/samux/libraries/USBDevice/m1g6da/docs/classUSBSerial.html) and USBcdc?