Re:[ntdev] Virtual Com port for USB

Yes, it’s right. But I’ve referenced CCPORT.SYS and WDMMDMLD.VXD in my INF
files. Do you mean it’s not enough or impossible to do it with existing
CCPORT.SYS and WDMMDMLD.VXD, you have to write your own VxD file to achieve
this? Thanks.

Best Regards

Bill McKenzie:

The serial stack on 98 is VxD based. While it may be possible to bridge a
WDM driver via a VxD to implement this, it is not possible straight up with
just a WDM driver. If you Google this topic it has been discussed before.


Bill McKenzie
Software Engineer - Prism 802.11 Wireless Solutions
Conexant Systems, Inc.

“Phoenix Chang” wrote in message
news:xxxxx@ntdev…
>> Hi,
>> I’ve been looking for references to create a USB virtual COM port
>interface on
>> Windows 98 SE for a pretty long time. I was told that it’s possible to
>> implement it in WDM form. And I created the INF files to drive it. The
>devices
>> pointed out in the INF files were created successfully(that means,
without
>> question mark or excalmatory mark). But to check the details of the
device
>in
>> device manager, you’ll find that there is no COMx in it, so you couldn’t
>find
>> an item to select in HyperTerminal.
>>
>> The inf files are as follows, please point me in the right direction.
>> Thanks.
>> ---------------file 1: WDMPORTS.inf begin --------------------
>>
>> ; Windows USB Modem Setup File
>> ; Copyright (c) 2000 Microsoft Corporation
>> ; Manufacturer: Microsoft Corporation
>>
>> [Version]
>> DriverVer=03/19/2000,5.00.2207.1
>> Signature=$CHICAGO$
>> Class=WDM
>> Provider=%String0%
>>
>> [ClassInstall]
>> Addreg=WDMClassInstall
>>
>> [WDMClassInstall]
>> HKR,%Enumerator%
>>
>> [DestinationDirs]
>> DefaultDestDir=10
>> WDM.Drvrs=10,SYSTEM32\DRIVERS
>> WDM.Vxd=11
>>
>> [Manufacturer]
>> %String0%=Microsoft
>>
>> [Strings]
>> String0=“Microsoft Corporation”
>> String1=“tel WDM MODEM ENUMERATOR”
>> String3=“tel USB Modem”
>> Enumerator = “WDM Modem Enumerator”
>> ;DiskName_Desc=“Microsoft WDM Modem Installation Disk”
>>
>> [Microsoft]
>> %String3%=MicrosoftUSB,USB\VID_05C6&PID_3197&MI_01
>> %String3%=MicrosoftUSB,USB\VID_05C6&PID_6000&MI_01
>> %String3%=MicrosoftUSB,USB\VID_05C6&PID_6000&MI_02
>>
>> [MicrosoftUSB]
>> CopyFiles=WDM.Drvrs,WDM.VxD
>> AddReg=MicrosoftUSB.AddReg
>>
>> [WDM.Drvrs]
>> telport.sys
>> ccport.sys
>>
>> [WDM.Vxd]
>> wdmmdmld.vxd
>>
>> [MicrosoftUSB.AddReg]
>> HKR,DevLoader,0,*ntkern
>> HKR,NTMPDriver,“telport.sys,ccport.sys”
>>
>> [MicrosoftUSB.HW]
>> AddReg=MicrosoftUSBAddReg.HW
>>
>> [MicrosoftUSBAddReg.HW]
>> HKR,ChildID,2,“USB\USR0022”
>>
>> [PreCopySection]
>> HKR,NoSetupUI,1
>>
>> ;[SourceDisksNames]
>> ;1=%DiskName_Desc%,WDM1,0
>>
>> ;[SourceDisksFiles]
>> ;usbser.sys=1
>> ;ccport.sys=1
>> ;wdmmdmld.vxd=1
>> ------------------End--------------------------------
>>
>> -----------------file 2: PORTS.inf------------------------------
>> [version]
>> LayoutFile= Layout.inf, Layout1.inf, Layout2.inf
>> signature=“$CHICAGO$”
>> Class=Ports
>> ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
>> Provider=%MS%
>> DriverVer=06/08/2000
>>
>> [DestinationDirs]
>> DefaultDestDir = 11
>>
>> [ClassInstall]
>> AddReg=PortsClass.AddReg
>> ClassOrder=CLASS_ORDER_PORTS
>>
>> [PortsClass.AddReg]
>> HKR,%PortsClassName%
>> HKR,Icon,-23
>>
>> [ControlFlags]
>>
>> [Manufacturer]
>> %Std%=Std
>>
>> [Std]
>> %*PNP0500.DeviceDesc% = ComPort, USB\USR0022
>>
>>
>> [ComPort]
>> CopyFiles=ComPort.Copy
>> AddReg=ComPort.AddReg
>> LogConfig=c14,c1a,c23,c2a,c34,c3a,c43,c4a,caa
>> DriverVer=06/08/2000
>>
>> [ComPort.Copy]
>> ;serial.vxd
>> serenum.vxd
>> serialui.dll
>>
>> [ComPort.AddReg]
>> HKR,DevLoader,*vcomm
>> HKR,Enumerator,serenum.vxd
>> ;HKR,PortDriver,2,serial.vxd
>> HKR,PortDriver,wdmmdmld.vxd
>> HKR,Contention,*vcd
>> HKR,ConfigDialog,serialui.dll
>> HKR,DCB,3,1C,00,00,00, 80,25,00,00, 11,33,00,00, 00,00, 0a,00, 0a,00,
08,
>00,
>> 00, 11, 13, 00, 00, 00
>> HKR,PortSubClass,1,01
>> HKR,EnumPropPages,“serialui.dll,EnumPropPages”
>>
>> [c14]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=3f8-3ff(3ff::slight_smile:
>> IRQConfig=S:4
>>
>> [c1a]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=3f8-3ff(3ff::slight_smile:
>> IRQConfig=S:3,4,5,7,9,10,11,12,14,15
>>
>> [c23]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=2f8-2ff(3ff::slight_smile:
>> IRQConfig=S:3
>>
>> [c2a]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=2f8-2ff(3ff::slight_smile:
>> IRQConfig=S:3,4,5,7,9,10,11,12,14,15
>>
>> [c34]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=3e8-3ef(3ff::slight_smile:
>> IRQConfig=S:4
>>
>> [c3a]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=3e8-3ef(3ff::slight_smile:
>> IRQConfig=S:3,4,5,7,9,10,11,12,14,15
>>
>> [c43]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=2e8-2ef(3ff::slight_smile:
>> IRQConfig=S:3,5
>>
>> [c4a]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=2e8-2ef(3ff::slight_smile:
>> IRQConfig=S:3,4,5,7,9,10,11,12,14,15
>>
>> [caa]
>> ConfigPriority=HARDRECONFIG
>> IOConfig=8@100-ffff%fff8(3ff::slight_smile:
>> IRQConfig=S:3,4,5,7,9,10,11,12,14,15
>>
>> [ComPort.PosDup]
>> *PNP0500,*PNP0501
>>
>> [DevMap.AddReg]
>> ;HKLM,hardware\devicemap\serialcomm,COM1,COM1
>> ;HKLM,hardware\devicemap\serialcomm,COM2,COM2
>>
>> [Strings]
>> MS = “Microsoft”
>> Std = “(±ê×¼¶Ë¿ÚÀàÐÍ)”
>> PortsClassName = “¶Ë¿Ú (COM & LPT)”
>> *PNP0500.DeviceDesc = “ͨѶ¶Ë¿Ú”
>>
>> -------------------------End-----------------------
>>
>>
>>
>>
>>
>> –http://www.eyou.com
>> --Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ Òƶ¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢…ÒÚÓÊδ¾¡
>>
>> –http://vip.eyou.com
>> --¿ì¿ìµÇ¼ÒÚÓÊVIPÐÅÏä ×¢²áÄúÖÐÒâµÄÓû§Ãû
>>
>>
>>
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@eyou.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>

http://www.eyou.com
–Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ Òƶ¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢…ÒÚÓÊδ¾¡

http://vip.eyou.com
–¿ì¿ìµÇ¼ÒÚÓÊVIPÐÅÏä ×¢²áÄúÖÐÒâµÄÓû§Ãû