Using A Raptor as USB host to a ST Virtual COM port (STM32F105)

Hi Guys,
I am building a Raptor based test unit that will have to be a USB serial host to a ST Virtual com port. So I will be connecting a micro USB connector from a STM32F105 to the Raptor host. Any idea if the .netmf will have a driver to allow this to work? I need to connect at 115200 baud.
I test the STM32F105 on Linux and it seemed to work with a generic driver:-
[em]cdc_acm 2-2.1:1.0: ttyACM0: USB ACM device
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core[/em]

I am wondering if I catch the UnknownDeviceConnected event and force it to a serial port would it work?

Here is the details for a Win7 PC ST VCOM inf driver file.

;------------------------------------------------------------------------------
; STMicroelectronics Comunication Device Class driver (CDC) INF FILE
; ©2010 Copyright STMicroelectronics
;------------------------------------------------------------------------------

[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%PRVDR%
CatalogFile=stmcdc.cat
DriverVer=04/25/2010,1.3.1

[SourceDisksNames]
1=%DriversDisk%,

[SourceDisksFiles]

[Manufacturer]
%MFGNAME%=DeviceList,NT,NTamd64

[DestinationDirs]
DefaultDestDir = 12

;------------------------------------------------------------------------------
; VID/PID Settings
;------------------------------------------------------------------------------
[DeviceList.NT]
%DESCRIPTION%=DriverInstall,USB\VID_0483&PID_5740

[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall,USB\VID_0483&PID_5740

[DriverInstall.NT]
Include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=DriverInstall.NT.AddReg

[DriverInstall.NT.AddReg]
HKR,DevLoader,*ntkern
HKR,NTMPDriver,usbser.sys
HKR,EnumPropPages32,“MsPorts.dll,SerialPortPropPageProvider”

[DriverInstall.NT.Services]
AddService=usbser, 0x00000002, DriverServiceInst

[DriverServiceInst]
DisplayName=%SERVICE%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary= %12%\usbser.sys
LoadOrderGroup = Base

;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------

[Strings]
PRVDR = "STMicroelectronics"
MFGNAME = "STMicroelectronics."
DESCRIPTION = "STMicroelectronics Virtual COM Port"
SERVICE = "STM Virtual COM Port"
DriversDisk = “STM Drivers Disk”

@ GhostwindUK - It is likely that you will have to catch UnknownDeviceConnected and force it to a serial device.

@ John -
Thanks John. My problem is do I buy a Raptor before know that it will work, or do I go for a Raspberry 2 with mono which I just proved works. I have an old Fez Panda somewhere would it be possible to test on that?

@ GhostwindUK - The USBizi that the Panda was based on does support USB host, but it does not have a connector on board.

Is there a good chance that the CDC (VCOM) serial device will work when I force it to a serial port on the Raptor? You must know if there is a CDC host driver in there?

@ GhostwindUK - We do support serial over USB host. FTDI devices usually work the best. Whether your specific device will work or not is hard to say until you try it out. We haven’t tested your specific scenario before.

OK John, I will put a order in for a Raptor and give it a go.
Thanks
Colin

@ John -
It works! No extra force required.
:slight_smile:

@ GhostwindUK - We’re happy to hear that