Hi,I've got a device with an STM32 micro in USB device mode with a program of virtual com, that communicates fine with the PC and let me send and receive from the device commands by virtual COM.Now I want to develop another device which has to communicate with the first device using the USB port (like if the new device was the PC). I'm using a connectivity line micro in these case in order to make it as a host, but I don't know where I could find an example of this type of communication between the devices.Any one could give an idea for the most similar example for what I'm trying to do?
Start with ST's example on USB Host lib on mass-storage & HID. See UM1021 and the firmware. you will need to make changes for CDC class.btw, why is Vcom host needed ? what is the application ?
Thanks for the answer, this will hepl me to startAbout your doubts I see I haven't explained it right. Our company designed an audio preamplifier (controlled by STM32F103 ARM) which has an USB input with 'virtual com' used to receive comands and ask states from PC. But now our customer asked us for a ''tester device'' which would do everything what the PC did but automatically (for production). So that we designed it with the connectivity line micro, as they are host USB in order to make the same that the PC do.I'm looking to the information given and I supose I will find the way it works, thanks.
After looking a lot about I've found this that had helped me: h
You asking on a thread that is 2 years old - very unlikely they will answer you!You need a STM32 that supports the USB OTG libraries (Or the STM32Cube equivalent).