I'm trying to write an usb cdc driver program. its cummunicate between pc and arduino due.actually my aim is reciveing the data form arduino and I read in visual c++ (command prompt).how to suppose i read the data in vc++. I don't the flow(sequence of the process) of cdc driver porgram . please explain me ?...........
Hi Andrew , still i'm confusing between USB CDC host and device program . Because i'm trying to send the ADC data from MCU(Arduino due) to pc . So i'm choosing USB CDC host program. because my MCU has a host.....so my question Why can't i choose USB CDC device program ?
If your MCU has a USB host it means it can communicate with USB devices.
But a PC is already a USB host in which case I can't understand why you want to try to run the embedded device as a host too - you think you can get two USB hosts to communicate?
Then you need to take some time to study the basics of USB!
USB always works with a Host (or "master") controlling a number of Devices (or "slaves").
The PC will be a Host.
You can't connect two Hosts directly together - that's why you can't directly connect two PCs with a simple USB cable!
http://janaxelson.com/usb.htm
en.wikipedia.org/.../USB
http://www.keil.com/books/usbbooks.asp
electronics.stackexchange.com/.../what-exactly-are-the-difference-between-a-usb-host-and-device
www.computer-solutions.co.uk/.../usb_tutorial.htm