Page 1 of 2

sc_usb and driver for different OS

Posted: Mon Oct 31, 2011 5:31 am
by lilltroll
OK, many have been longing for a VCOM on Windows using the L series and XTAG2, instead of the FTDI, for dual way communication.

Here is a starting point
Enhetshanteraren.png
Windows has support for USB CDC (Communications Device Class) and drivers for it, but they are not "activated by default"

But it still need some fix to work.
Someone here that is used to write drivers/inf files for Windows ?

Code: Select all

; For XMOS USB\VID_20B1&PID_0401&REV_0200
[Version] 
Signature="$Windows NT$" 
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} 
; This class includes serial and parallel port devices. See also the MultiportSerial class.
Provider = %XMOS%
 ;;; LayoutFile=layout.inf ;; not supported in Vista and later
DriverVer = 10/30/2011,0.0.0.8
[Manufacturer]
%XMOS% = DeviceList,NTx86,NTamd64
[DeviceList.NTx86] ; device ID match
%XMOSCompositeDevice%=Vcom.Device, USB\VID_20B1&PID_0401&REV_0200
%XMOSVcomDevice%=Vcom.Device, USB\VID_20B1&PID_0401&REV_0200&MI_00
 
[DeviceList.ntamd64] ; device ID match
%XMOSCompositeDevice%=Vcom.Device, USB\VID_20B1&PID_0401&REV_0200
%XMOSVcomDevice%=Vcom.Device, USB\VID_20B1&PID_0401&REV_0200&MI_00
 
 [Vcom.Device.NTx86] ; what to do when you have match to "Vcom.Device"
 include=mdmcpq.inf
 CopyFiles=FakeModemCopyFileSection
 AddReg=Vcom.Device.AddReg 
 
[Vcom.Device.AddReg] ; specify devloader and driver stack
HKR,,DevLoader,,*ntkern 
HKR,,NTMPDriver,,usbser.sys 
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 
 
[Vcom.Device.NTx86.Services] 
AddService=usbser, 0x00000002, VComDriverService
 
[VComDriverService] 
DisplayName=%DRIVER.SVC% 
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys 

[SourceDisksNames]
 ;;; this blank section satisfies chkinf
 
[SourceDisksFiles]
 ;;; this blank section satisfies chkinf
 
[DestinationDirs] 
 FakeModemCopyFileSection=12
 DefaultDestDir = 12
 
[Strings] 
XMOS = "XMOS Developer Community"
XMOSCompositeDevice = "XMOS Gadget with multiple configurations"
XMOSVcomDevice= "XMOS Serial Virtual COM-port"
DRIVER.SVC="XMOS Virtual COM-port USB RS-232 Emulation Driver"

Re: sc_usb and driver for different OS

Posted: Fri Nov 11, 2011 8:09 am
by lilltroll
With some help from Henk, the VCOM and VEthernet is now working on both Ubuntu and Mac.
A little driver twist -> and hopefully it will run on Windows 32-bit as well.

Re: sc_usb and driver for different OS

Posted: Fri Nov 11, 2011 3:43 pm
by Folknology
This is interesting is there any info/documentation etc..

Do we have to install any proprietary drivers or can it all be done open source?

regards
Al

Re: sc_usb and driver for different OS

Posted: Fri Nov 11, 2011 8:42 pm
by lilltroll
Everything is open source, or at least freeware.

If you click on the examples you will get more info, for VCOM and ECM
https://github.com/xcore/sc_usb

In linux the driver is already there.
Just plug it in and do a
> lsusb


The really exiting question is if you can fit the VCOM in the XTAG2!

Re: sc_usb and driver for different OS

Posted: Sat Nov 12, 2011 11:48 am
by Folknology
OK I was just browsing through the code examples which leads to more questions:

Regarding the usb over ethernet example what is FemptoIP/TCP/UDP etc.. is this something contrived pourely for the usb over ethernet example or is this an attempt to create a smaller xmos TCP/IP lib? And whats with the 'burn()' threads is this just to test with a given number of threads or am I missing something?

For the Vcom does it require a minimum of 4 threads and are their any limits regarding what happens in any other threads that one might add?

Could any of these examples be run on the Xtag or an L1 device?

regards
Al

Re: sc_usb and driver for different OS

Posted: Tue Nov 15, 2011 6:18 pm
by lilltroll
VCOM2.png
It is working now on Win in CDC & Interupt transfer mode. There is also an faster bulk mode, but that is not ready yet.

And it runs on any L device with the USB chip, and maybe maybe also on the XTAG2 in the future - but no promises as all.

Re: sc_usb and driver for different OS

Posted: Wed Nov 16, 2011 1:29 pm
by Folknology
Hey nice one Mika - Maybe this provides some ideas for this months competition

regards
Al

Re: sc_usb and driver for different OS

Posted: Wed Nov 16, 2011 4:02 pm
by lilltroll
Folknology wrote:Hey nice one Mika - Maybe this provides some ideas for this months competition

regards
Al
The winner of last month (me), also get the price to have suggestions which next packages should be. I will see if I can make an influence on that. I know you have been thinking of VCOM, USB and Ethernet for a long time as well.

Re: sc_usb and driver for different OS

Posted: Thu Aug 09, 2018 7:36 am
by deepmadan
Is USB over Ethernet working on Windows 32 and 64 bit now ??
I have not been able to get any working drivers to work. I have implemented the whole USB CDC ECM Stack, but i am stuck at which driver to install or how to write a .inf file for my driver. If any open source driver or inf file is available for USB CDC ECM, please share the same with descriptor details

Thanks in advance

Deepak Madan

Re: sc_usb and driver for different OS

Posted: Mon Aug 13, 2018 11:09 pm
by mon2
Hi Deepak.

From:

https://www.xmos.com/support/appnotes/AN00131


These guys are advertising a solution and offer a trial driver for your testing:

https://www.thesycon.de/eng/usb_network.shtml