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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

877 次查看
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.
标签 (1)
0 项奖励
回复
2 回复数

818 次查看
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 项奖励
回复

818 次查看
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 项奖励
回复