Use two USB Device CDC (Virtual COM) at same time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use two USB Device CDC (Virtual COM) at same time

874 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by phbfonseca on Tue Jan 13 08:42:30 MST 2015
Hi there.

My name is Fonseca and I have some doubts about USB on LPC18XX. Would anyone clear up my doubts please?

I´ve a development kit based on LPC1857 microcontroller. As I read on User Manual, this microcontroller has two USBs (both are available in my kit), and I want to use both as Device USBS, working as CDC (I mean, I want to use these two USBs as two Virtual COM Ports). I have spent some time reseaching about it and I found a library called RL-USB library, but it seems unable to do what I want. I´ve got success managing one USB Device CDC, but I coudn´t find a way to connect, disconnect, get data and put data in both USBs (like two virtual COM ports).

Do anyone know another way for USBs management on LPC18XX (another library or code)? If yes, would anyone show me a library/code for working with two USBs as Virtual COM ports?



Best Regards.
Labels (1)
0 Kudos
Reply
2 Replies

815 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by phbfonseca on Tue Jan 13 12:41:14 MST 2015
First of all, thanks for the reply!

Sorry if I didn´t make myself clear. I need 2 USBs working as Device CDC (Virtual COM). I need to communicate microcontroller with two different equipments using USBs Device CDC at same time.
Do you think is it possible?
0 Kudos
Reply

815 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Tue Jan 13 12:35:25 MST 2015
Do you need just 2 serial ports with 1 USB port? To connect 1 PC, but have 2 serial ports.
( Then have a look at http://msdn.microsoft.com/en-us/library/windows/hardware/ff540054%28v=vs.85%29.aspx
or search for "USB IAD")

Or do you want 1 serial port with USB port x and 1 serial port with port y? To connect to two PC or one PC, but different USB ports.


0 Kudos
Reply