cancel
Showing results for 
Search instead for 
Did you mean: 

USB *Host* for VCP?

st3
Associate II
Posted on August 01, 2009 at 14:18

USB *Host* for VCP?

14 REPLIES 14
st3
Associate II
Posted on May 17, 2011 at 13:18

Is there a ready example for any of the USB-host equipped parts for a ''virtual com port'' ?

eg, so that it could host a USB-to-serial converter.

I had a quick look at the USB on-the-go (OTG) FS library, but didn't see anything obvious.

The reason is that I want to log data from a device that's intended to plug into a PC's USB port, and appears as a COM port on the PC.

(the device does actually have an FTDI USB-to-UART chip inside)

Using a PC to do the logging is not convenient.

[ This message was edited by: st7 on 28-07-2009 10:14 ]

[ This message was edited by: st7 on 29-07-2009 13:16 ]

st3
Associate II
Posted on May 17, 2011 at 13:18

Quote:

might it be simpler to hack/bypass the FTDI device - and simply communicate Uart to Uart?

Yes, it would - but that would void my warranty on the device!!

jj
Associate II
Posted on May 17, 2011 at 13:18

I like your application.

Borrowing from ''your'' past posts - might it be simpler to hack/bypass the FTDI device - and simply communicate Uart to Uart? (USB protocol may disallow - but we have heard of this working in some cases...)

jj
Associate II
Posted on May 17, 2011 at 13:18

From my read/recall of your posts perhaps you could use STM32 (with the possible addition of a higher res. ADC) and eliminate the acquisition/logger device all together. Completely agree with you that use of PC is often inconvenient/overkill...

st3
Associate II
Posted on May 17, 2011 at 13:18

No, the device is a diagnostic interface to other equipment.

Eventually the aim is to implement the full interface, but for now I just want some quick and simple way to capture the data from this 3rd party device.

If the UART interface were accessible, it'd be simple...

But it strikes me that UART/RS232 interfaces are becoming rapidly rarer - so the need for this kind of thing can only increase...

st3
Associate II
Posted on May 17, 2011 at 13:18

Apparently not, then?

:(

But this looks like just what I'm after:

http://www.ghielectronics.com/products

It uses an NXP

http://www.nxp.com/pip/LPC2388_1.html

- ARM7 with 512 kB flash with ISP/IAP, Ethernet, USB 2.0 device/host/OTG, CAN, and 10-bit ADC/DAC

NXP said:

Quote:

The LPC2388 is ideal for multi-purpose serial communication applications.

Sounds ideal, then!

Unless someone can suggest an STM32 alternative...

st3
Associate II
Posted on May 17, 2011 at 13:18

It appears that Atmel managed do it a couple of years ago for the 8-bit AVR:

Atmel wrote:

Quote:

AVR280 USB Host CDC Demonstration (Application Note, 14 pages, revision A, updated 09/07)

The aim of this document is to describe how to start and implement a Host CDC application using the STK525 or USBKEY starter kit, and finally introduces a simple example of dual USB-UART bridge between two PCs.

See:

http://www.atmel.com/dyn/resources/prod_documents/doc7727.pdf

So, surely, ST must be able to come up with something equivalent for an STM32... :o

16-32micros
Associate III
Posted on May 17, 2011 at 13:18

Hi,

We already provide a CDC Virtual Com Port Example in our pages, refer to

Example Virtual Com Port :

http://www.st.com/stonline/products/support/micro/files/um0424.zip

http://www.st.com/stonline/products/literature/um/13465.pdf

Hope this helps you. Cheers,

STOne-32.

st3
Associate II
Posted on May 17, 2011 at 13:18

Quote:

We already provide a CDC Virtual Com Port Example

But that's a CDC device, isn't it - not a *Host*.

I am specifically after a *Host* :-W

Quote:

Hope this helps you.

Not in the least, I'm afraid.

[ This message was edited by: st7 on 31-07-2009 23:01 ]