Windows USB Driver
Company  
ST Home | Microcontrollers

Index  »  USB  »  Windows USB Driver
     
   Windows USB Driver
 Moderated by :   »  aNt  -  AnisAS  -  AnisAS

Author
beginning argument    ( Replies received: 9 )
Janvi   Posted 30-04-2003 at 16:01   



Registered on :
11-13-2002

Messages : 23

 OFF-Line

Like to set up the communication between Windows USB host and a F651 full speed USB device.

Up on now, I do not have any own driver for my device. I examined the virtual COM Port driver from www.ftdichip.com . They say that they can use the isochron mode but there is no documentation available for the endpoints or kind of pipes in use for that device.

This way, my plan is try to use any of the build in Windows drivers and I heard that it should be possible to install a CDC-modem as Comunication Class Device what opens a virtual COM Port. After that a change in the INF File could force windows to use usbser.sys to change this to a Port Class to communicate to any own USB Device by virtual COM port.

Is there any step by step instruction on how to move data from COM port to any USB endpoint in a device? Is there any other generic driver from ST or others to recommend? (I wont use the quite complicated ST mass storage drivers and there is no bulk mode requierd for the first approach)




 Profile   Quote  
DCa   Posted 30-04-2003 at 21:46   



Registered on :
09-24-2002

From Lexington, MA

Messages : 20

 OFF-Line

Hi Janvi,

I have no experience on Virtual Com Port and PC drivers, but the one thing I am sure about is that the ST7265x series do NOT support Isochronous transfer type. Only Control, Interrupt and Bulk are supported.
So I believe you have to use another concept for your application

Good luck !


 Profile   Quote  
Janvi   Posted 02-05-2003 at 00:24   



Registered on :
11-13-2002

Messages : 23

 OFF-Line

Isochronous mode is not requiered for this project,
but I have to walk through this points to get a
COM Port access:

1) Read the Communication Class Spec
additional to ST7 datasheet and USB spec.

2) Implemt firmware for a CDC/ACM.
(ACM=Abstract Communication Model,
EP0 plus bulk-in and bulk-out)

3) Try this INF:
[Version]
DriverVer=22/07/2002,5.0.2195.4858
Signature=$CHICAGO$
Class=Ports
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Provider=%String0%
; Port Class Install
[ClassInstall]
AddReg=USBClassInstall
[USBClassInstall]
HKR,,,,%Enumerator%
HKR,,Icon,,"-23"
HKR,,Installer32,,"MsPorts.Dll,PortsClassInstaller"
[Manufacturer]
%String0%=Microsoft
[Microsoft]
%String1%=MicrosoftUSB,USB\VID_1150&PID_0100
; Win 2000
[MicrosoftUSB]
;CopyFiles=WDM.Drvrs
AddReg=MicrosoftUSB.AddReg
;[WDM.Drvrs]
;usbser.sys,,,0x00000020
[MicrosoftUSB.AddReg]
HKR,,DevLoader,0,*ntkern
HKR,,NTMPDriver,,"usbser.sys"
[MicrosoftUSB.HW]
AddReg=MicrosoftUSBAddReg.HW
[MicrosoftUSB.Services]
AddService=usbser, 0x00000002, FuncDrv_Service_Inst
[FuncDrv_Service_Inst]
DisplayName=%USBFilterString%
ServiceType= 1
StartType = 3
ErrorControl = 0
ServiceBinary = %12%\usbser.sys
[MicrosoftUSBAddReg.HW]
[Strings]
String0="Microsoft Corporation"
String1="USB SERIAL ENUMERATOR"
Enumerator = "USB Serial Enumerator"
%USBFilterString% = "USB Serial Service"


[ This message was edited by: Janvi on 04-05-2003 15:42 ]

[ This message was edited by: Janvi on 04-05-2003 15:45 ]

[ This message was edited by: Janvi on 06-05-2003 19:24 ]

[ This message was edited by: Janvi on 06-05-2003 19:25 ]


 Profile   Quote  
LoloST   Posted 12-05-2003 at 13:13   



Registered on :
11-28-2002

Messages : 20

 OFF-Line

Hi Janvi,

what I understand from your mail is that you need a kind of "Virtual COM port", ie having a way to open a COM port and the data to be sent or received through USB. Correct ?

I think your idea could work, but I'm not so sure... In fact I saw may people on forums trying to adapt the usbser made for modems to virtual com port. But nobody seemed to succeed yet... Many people propose their own driver...

Could you tell us more about your application ?


 Profile  Email   Quote  
Janvi   Posted 12-05-2003 at 14:02   



Registered on :
11-13-2002

Messages : 23

 OFF-Line

Virtual Com Port is usefull for many applications what already access a RS232 device (now replaced by USB) and the same can be done for virtual LPT simulation for applications with the printer class.

The main disadvantage seems to be the poor data throughput for data with the host to pc bulk pipe. Opposite direction is well. This can be assumed as a disadvantage of Micro$oft but not a bug becouse speed requierements for ISDN or analog Modem is much below the 12 Mbit full speed. Out of this reason FTDI seems to need a custom driver. Furthermore there seems several unknown requests to the target what are not announced or allowed and dummy reply is requiered to continue and avoid blue screens. I have ordered a www.ellisys.com for more detailed examination but at the moment I go on to be a HID. I am going to update this thread if success with CDC/ACM or virtual LPT



 Profile   Quote  
LoloST   Posted 13-05-2003 at 17:42   



Registered on :
11-28-2002

Messages : 20

 OFF-Line

Jungo has a solution named WinDriver that allows one to access a USB device and so send or receive data on pipes directly from User mode.

ST and Jungo have a partnership so ST devices should be handled correctly by the Jungo tool.

have a look to www.jungo.com

Rgds



 Profile  Email   Quote  
Ruslik   Posted 12-11-2003 at 08:13   



Registered on :
06-02-2003

From Israel

Messages : 14

 OFF-Line

Try to use the windriver generator available at www.jungo.com


 Profile  Email   Quote  
Holi   Posted 12-10-2004 at 12:56   



Registered on :
10-11-2004

From Switzerland

Messages : 1

 OFF-Line

I'm facing the same problem now.

On Win2k it works well (with the INF file), but on the other Wins (9x/ME/XP) I still have problems.

Have you had success meanwhile?

Thanks for help

Holi


 Profile   Quote  
il_renato   Posted 19-10-2004 at 15:29   



Registered on :
10-19-2004

From Netherlands

Messages : 1

 OFF-Line

Quote:

On 2004-10-12 12:56, Holi wrote:
I'm facing the same problem now.

On Win2k it works well (with the INF file), but on the other Wins (9x/ME/XP) I still have problems.

Have you had success meanwhile?

Thanks for help

Holi


Yes I had succes, look in microsoft.public.development.device.drivers posts by holi, answer by me on 18 okt.

You have to use a wdm driver, followed by a modem driver, then it works.
But CDC must be working in 2000/XP first.


 Profile  Email   Quote  
Anonymous





The user doesn't exist in database
Microsh*t have already done this for their new 18Fxxxx USB 2.0 device, When you plug the device into Windows XP it loads the standard windows CDC driver and creates a virtual COM port.




  Quote  
On Top

Search in the forums
 
Jump To