Page 1 of 1
VCOM with USB-CDC
Posted: Sun Aug 11, 2019 9:03 am
by sabdulqadir
Hi,
Had a rookie question about having multiple vcom ports using CDC. Can I combine the interrupt endpoints for 2 vcom ports to save an end-point?
thanks,
aQ
Re: VCOM with USB-CDC
Posted: Sun Aug 11, 2019 9:10 am
by Giovanni
Hi,
Not sure, you should try and see how the host takes it.
The demo STM32F4xx-USB_CDC_IAD should allow to test it quickly in usbcfg.h.
Giovanni
Re: VCOM with USB-CDC
Posted: Fri Dec 20, 2019 3:32 pm
by sabdulqadir
Ok,
I was able to get 3 vitural com ports. Just for anyone who may need it

AQ
Re: VCOM with USB-CDC
Posted: Fri Dec 20, 2019 9:04 pm
by FXCoder
Hi,
Looks useful.
What host OS did you try this with?
--
Bob
Re: VCOM with USB-CDC
Posted: Fri Jan 10, 2020 12:29 am
by sabdulqadir
FXCoder wrote:Hi,
Looks useful.
What host OS did you try this with?
--
Bob
Win10. I think also works with Win7. I remember testing with one of the PC that had Win7.
Re: VCOM with USB-CDC
Posted: Fri Jan 10, 2020 8:21 am
by FXCoder
Thanks.
My experience with a config for 2 x VCP was that Win10, Mac and Linux were good. However, Win7 VCP driver only saw one com port.
I may try your single interrupt endpoint approach and see if Win7 behaves differently.
Care to post you usbcfg.c & .h ?
Re: VCOM with USB-CDC
Posted: Fri Jan 10, 2020 4:09 pm
by sabdulqadir
FXCoder wrote:Thanks.
My experience with a config for 2 x VCP was that Win10, Mac and Linux were good. However, Win7 VCP driver only saw one com port.
I may try your single interrupt endpoint approach and see if Win7 behaves differently.
Care to post you usbcfg.c & .h ?
Sure.
BTW, I have used two com ports with Win7 without any issues. My comment was for 3 com ports on Win7.
AQ
I could not attach files here. Webpage complained about invalid file formats. Ill try to send them through private msg.
Re: VCOM with USB-CDC
Posted: Fri Jan 10, 2020 9:37 pm
by FXCoder
Hi AQ,
Files retrieved OK.
FYI to post attachments on the forum use a zip.
I'll try out your configs later today on an F413 and see how I go getting additional VCPs, Win versus Win10 etc.
Thanks.
--
Bob