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 ]
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...)
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...
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...
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:
Regarding USB Host and OTG stacks for the STM32 Connectivity Line, we are working with many partners and third parties to give you the choice for your application requirements and preferred partners : HCC-Embedded: HCC's EUSBH (Embedded USB Host Stack) is a full-featured host stack designed for embedded applications IAR : PowerPac , USB Host, Add-on option to IAR PowerPac for ARM. It implements full USB host functionality and enables developers to easily add this functionality to embedded systems. Micrium : µC/USB-Host is a compact, reliable USB host stack. Built to be portable, scalable and robust, µC/USB-Host enables the rapid integration of support for connection of USB devices to your embedded system, thereby minimizing your time to market. Micro Digital : smxUSBH host stack permits connecting USB devices, such as USB thumb drives, USB printers, and USB HIDs (Human Interface Devices) to embedded units Quadros Systems : The RTXCusb host system has been developed specifically to support the unique requirements of USB host implementation in embedded systems. This powerful solution complies with the USB Implementers Forum requirements for Embedded Hosts Segger : Segger’s USB host software stack implements full USB host functionality, including external hub support, and optionally provides device class drivers. It enables developers to easily add USB host functionality to embedded systems and also others are coming. Cheers, STOne-32.