Can usbser.sys be used for modem class?

Hi,

I am writing inf file for modem class.I am using usbser.sys and serenum.sys.
After the driver has installed, I am getting the below error in device
manager:
“This device cannot start. (Code 10)”

Below is the inf file snippet:

********************************************************************************************
[Version]
Signature=“$Windows NT$”
Class=Modem
ClassGuid={4d36e96d-e325-11ce-bfc1-08002be10318}
;LayoutFile=layout.inf
Provider=%PROVIDER%

DriverVer=07/11/2013,5.2.0.0

[Manufacturer]
%DEVICE_DESCRIPTION%=DeviceList, NTia64, NTamd64

[DeviceList.NTia64]
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0001&MI_00
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0002&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0003&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0004&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0005&MI_01
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0006&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0007&MI_01

[DeviceList.NTamd64]
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0005&MI_00
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0006&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0007&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0002&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0001&MI_01
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0003&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0010&MI_01

;------------------------------------------------------------------------------
; Installation Configuration
;------------------------------------------------------------------------------

[DriverInstall]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=DriverInstall.AddReg

[DriverInstall.NT.Services]
include=mdmcpq.inf
AddService=usbser, 0x00000000, LowerFilter_Service_Inst

[DriverInstall.NT.HW]
include=mdmcpq.inf
AddReg=LowerFilterAddReg

[DriverInstall.AddReg]
HKR,EnumPropPages32,“MsPorts.dll,SerialPortPropPageProvider”

[DriverInstall.HW.AddReg]
HKR,NTMPDriver,*ntkern
HKR,NTMPDriver,usbser.sys
HKR,PortSubClass,1,01
HKR,“UpperFilters”,0x00010000,“serenum”

[DriverInstall.Services]
AddService=usbser, 0x00000002, UsbserService
AddService=Serenum,SerenumService

;------------------------------------------------------------------------------
; Usbser Service
;------------------------------------------------------------------------------

[UsbserService]
DisplayName=%USBSER.DESC%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys
LoadOrderGroup = Base

;------------------------------------------------------------------------------
; Serenum Service
;------------------------------------------------------------------------------

[SerenumService]
DisplayName = %SERENUM.DESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\serenum.sys
LoadOrderGroup = PNP Filter

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

****************************************************************************************

Please let me know if I can use usbser.sys and serenum for modem class.

Thanks,
Shruthi

Usbser can be used in the modem class. Why are you installing serenum as well? Serenum is used to detect devices in the other end of the com port, you appear to already know the com port is a modem.

Usbser might have an issue with being a part of a composite device. What os version are you installing on?

d

Bent from my phone


From: shruthi klmailto:xxxxx
Sent: ?12/?2/?2013 2:40 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] Can usbser.sys be used for modem class?

Hi,

I am writing inf file for modem class.I am using usbser.sys and serenum.sys.
After the driver has installed, I am getting the below error in device manager:
“This device cannot start. (Code 10)”

Below is the inf file snippet:

********************************************************************************************
[Version]
Signature=“$Windows NT$”
Class=Modem
ClassGuid={4d36e96d-e325-11ce-bfc1-08002be10318}
;LayoutFile=layout.inf
Provider=%PROVIDER%

DriverVer=07/11/2013,5.2.0.0

[Manufacturer]
%DEVICE_DESCRIPTION%=DeviceList, NTia64, NTamd64

[DeviceList.NTia64]
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0001&MI_00
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0002&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0003&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0004&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0005&MI_01
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0006&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0007&MI_01

[DeviceList.NTamd64]
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0005&MI_00
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0006&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0007&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0002&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0001&MI_01
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0003&MI_02
%DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0010&MI_01

;------------------------------------------------------------------------------
; Installation Configuration
;------------------------------------------------------------------------------

[DriverInstall]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=DriverInstall.AddReg

[DriverInstall.NT.Services]
include=mdmcpq.inf
AddService=usbser, 0x00000000, LowerFilter_Service_Inst

[DriverInstall.NT.HW]
include=mdmcpq.inf
AddReg=LowerFilterAddReg

[DriverInstall.AddReg]
HKR,EnumPropPages32,“MsPorts.dll,SerialPortPropPageProvider”

[DriverInstall.HW.AddReg]
HKR,NTMPDriver,ntkern
HKR,NTMPDriver,usbser.sys
HKR,PortSubClass,1,01
HKR,“UpperFilters”,0x00010000,“serenum”

[DriverInstall.Services]
AddService=usbser, 0x00000002, UsbserService
AddService=Serenum,SerenumService

;------------------------------------------------------------------------------
; Usbser Service
;------------------------------------------------------------------------------

[UsbserService]
DisplayName=%USBSER.DESC%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys
LoadOrderGroup = Base

;------------------------------------------------------------------------------
; Serenum Service
;------------------------------------------------------------------------------

[SerenumService]
DisplayName = %SERENUM.DESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\serenum.sys
LoadOrderGroup = PNP Filter

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

***************************************************************************************

Please let me know if I can use usbser.sys and serenum for modem class.

Thanks,
Shruthi

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

I am installing in Windows 7 64 bit OS.
Can you also let me know the difference between DriverInstall section,
DefaultInstall
section and DDInstall section.

Thanks,
Shruthi

On Mon, Dec 2, 2013 at 7:51 PM, Doron Holan wrote:

> Usbser can be used in the modem class. Why are you installing serenum as
> well? Serenum is used to detect devices in the other end of the com port,
> you appear to already know the com port is a modem.
>
> Usbser might have an issue with being a part of a composite device. What
> os version are you installing on?
>
> d
>
> Bent from my phone
> ------------------------------
> From: shruthi kl
> Sent: 12/2/2013 2:40 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Can usbser.sys be used for modem class?
>
> Hi,
>
> I am writing inf file for modem class.I am using usbser.sys and
> serenum.sys.
> After the driver has installed, I am getting the below error in device
> manager:
> “This device cannot start. (Code 10)”
>
> Below is the inf file snippet:
>
>
> ********************************************************************************************
> [Version]
> Signature=“$Windows NT$”
> Class=Modem
> ClassGuid={4d36e96d-e325-11ce-bfc1-08002be10318}
> ;LayoutFile=layout.inf
> Provider=%PROVIDER%
>
> DriverVer=07/11/2013,5.2.0.0
>
> [Manufacturer]
> %DEVICE_DESCRIPTION%=DeviceList, NTia64, NTamd64
>
>
> [DeviceList.NTia64]
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0001&MI_00
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0002&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0003&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0004&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0005&MI_01
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0006&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0007&MI_01
>
>
> [DeviceList.NTamd64]
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0005&MI_00
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0006&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0007&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0002&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0001&MI_01
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0003&MI_02
> %DEVICE_DESCRIPTION%=DriverInstall,USB\VID_abcd&PID_0010&MI_01
>
>
>
>
>
> ;------------------------------------------------------------------------------
> ; Installation Configuration
>
> ;------------------------------------------------------------------------------
>
> [DriverInstall]
> include=mdmcpq.inf
> CopyFiles=FakeModemCopyFileSection
> AddReg=DriverInstall.AddReg
>
> [DriverInstall.NT.Services]
> include=mdmcpq.inf
> AddService=usbser, 0x00000000, LowerFilter_Service_Inst
>
> [DriverInstall.NT.HW]
> include=mdmcpq.inf
> AddReg=LowerFilterAddReg
>
> [DriverInstall.AddReg]
> HKR,EnumPropPages32,“MsPorts.dll,SerialPortPropPageProvider”
>
>
> [DriverInstall.HW.AddReg]
> HKR,NTMPDriver,ntkern
> HKR,NTMPDriver,usbser.sys
> HKR,PortSubClass,1,01
> HKR,“UpperFilters”,0x00010000,“serenum”
>
> [DriverInstall.Services]
> AddService=usbser, 0x00000002, UsbserService
> AddService=Serenum,SerenumService
>
>
> ;------------------------------------------------------------------------------
> ; Usbser Service
>
> ;------------------------------------------------------------------------------
>
> [UsbserService]
> DisplayName=%USBSER.DESC%
> ServiceType=1
> StartType=3
> ErrorControl=1
> ServiceBinary=%12%\usbser.sys
> LoadOrderGroup = Base
>
>
> ;------------------------------------------------------------------------------
> ; Serenum Service
>
> ;------------------------------------------------------------------------------
>
> [SerenumService]
> DisplayName = %SERENUM.DESC%
> ServiceType = 1 ; SERVICE_KERNEL_DRIVER
> StartType = 3 ; SERVICE_DEMAND_START
> ErrorControl = 1 ; SERVICE_ERROR_NORMAL
> ServiceBinary = %12%\serenum.sys
> LoadOrderGroup = PNP Filter
>
>
> ;------------------------------------------------------------------------------
> ; String Definitions
>
> ;------------------------------------------------------------------------------
>
>
>
***************************************************************************************
>
> Please let me know if I can use usbser.sys and serenum for modem class.
>
> Thanks,
> Shruthi
>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

shruthi kl wrote:

I am installing in Windows 7 64 bit OS.
Can you also let me know the difference between DriverInstall
section, DefaultInstall section and DDInstall section.

An INF that uses [DefaultInstall] is not a plug-and-play INF. It is an
entirely different type of beast. That section is what gets invoked
when you right-click on an INF file and pick “Install”. It is,
essentially, a batch file. You can copy files and make registry
entries, but no devices are created and nothing gets copied to the
driver store.

PnP INF files use manufacturer and model sections:

[Version]
Provider = xxxxxx

[Manufacturer]
xxxxxx = yyyyyy, NTamd64

[yyyyyy]
; This is the Models section
“Description 1” = aaaaa, PnP\HardwareID\1
“Description 2” = bbbbb, PnP\HardwareID\2

[aaaaa]
; This is a DDInstall section
CopyFiles=…
AddReg=…

[bbbbb]
; This is also a DDInstall section
CopyFiles=…
AddReg=…

“DDInstall” is a generic name for the individual device description
sections. In my example above, “yyyyyy” is the Models section, and
“aaaaa” and “bbbbb” are the DDInstall section.

There’s no such thing as a [DriverInstall] section.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

>There’s no such thing as a [DriverInstall] section.

To clarify that, [DriverInstall] is a legal name that you can use for a DDInstall section. It’s not a pre-defined section name.

Thanks for clarifying the inf section.I have another doubt.Can you let me
know the difference between Modem class and Port class?
Currently I am using CDC ACM drivers as port class.Will there be any
advantage of changing the port class to Modem class?

Thanks,
Shruthi

On Thu, Dec 5, 2013 at 11:36 PM, wrote:

> >There’s no such thing as a [DriverInstall] section.
>
> To clarify that, [DriverInstall] is a legal name that you can use for a
> DDInstall section. It’s not a pre-defined section name.
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Port class exposes a raw com.port, modem class installs the modem driver on the top of the stack, so a cooked com port with a modem interface

d

Bent from my phone


From: shruthi klmailto:xxxxx
Sent: ?12/?5/?2013 10:22 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: Re: [ntdev] Can usbser.sys be used for modem class?

Thanks for clarifying the inf section.I have another doubt.Can you let me know the difference between Modem class and Port class?
Currently I am using CDC ACM drivers as port class.Will there be any advantage of changing the port class to Modem class?

Thanks,
Shruthi

On Thu, Dec 5, 2013 at 11:36 PM, > wrote:
>There’s no such thing as a [DriverInstall] section.

To clarify that, [DriverInstall] is a legal name that you can use for a DDInstall section. It’s not a pre-defined section name.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Does it mean that modem.sys is automatically added in the device stack by
mere mentioning of

Class=Modem

ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318} in inf file?

Regards,
Shruthi

On Fri, Dec 6, 2013 at 11:59 AM, Doron Holan wrote:

> Port class exposes a raw com.port, modem class installs the modem driver
> on the top of the stack, so a cooked com port with a modem interface
>
>
> d
>
> Bent from my phone
> ------------------------------
> From: shruthi kl
> Sent: 12/5/2013 10:22 PM
>
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Can usbser.sys be used for modem class?
>
> Thanks for clarifying the inf section.I have another doubt.Can you let
> me know the difference between Modem class and Port class?
> Currently I am using CDC ACM drivers as port class.Will there be any
> advantage of changing the port class to Modem class?
>
> Thanks,
> Shruthi
>
>
> On Thu, Dec 5, 2013 at 11:36 PM, wrote:
>
>> >There’s no such thing as a [DriverInstall] section.
>>
>> To clarify that, [DriverInstall] is a legal name that you can use for a
>> DDInstall section. It’s not a pre-defined section name.
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

On 06-Dec-2013 13:23, shruthi kl wrote:

Does it mean that modem.sys is automatically added in the device stack
by mere mentioning of

Class=Modem

ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318} in inf file?

The “HKR,PortSubClass,1,02” line the INF seems to do the trick.
It tells the modem class installer that the underlying device is a
serial port.
– pa

Thanks Pavel.Can you le tme know then what is advantage of using
Class=Modem

ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318} in inf file?

Regards,
Shruthi

On Fri, Dec 6, 2013 at 5:21 PM, Pavel A. wrote:

> On 06-Dec-2013 13:23, shruthi kl wrote:
>
>> Does it mean that modem.sys is automatically added in the device stack
>> by mere mentioning of
>>
>> Class=Modem
>>
>> ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318} in inf file?
>>
>
> The “HKR,PortSubClass,1,02” line the INF seems to do the trick.
> It tells the modem class installer that the underlying device is a serial
> port.
> – pa
>
>
>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

As Doron pointed out, the modem class installs the modem-handling
stuff over the COM port. I do not know what should be
value of PortSubClass for usbser, or whether the Modem class installer
supports it at all.
– pa

On 06-Dec-2013 13:56, shruthi kl wrote:

Thanks Pavel.Can you le tme know then what is advantage of using
Class=Modem

ClassGUID={4D36E96D-E325-11CE-__BFC1-08002BE10318} in inf file?

Regards,
Shruthi

On Fri, Dec 6, 2013 at 5:21 PM, Pavel A. > mailto:xxxxx> wrote:
>
> On 06-Dec-2013 13:23, shruthi kl wrote:
>
> Does it mean that modem.sys is automatically added in the device
> stack
> by mere mentioning of
>
> Class=Modem
>
> ClassGUID={4D36E96D-E325-11CE-__BFC1-08002BE10318} in inf file?
>
>
> The “HKR,PortSubClass,1,02” line the INF seems to do the trick.
> It tells the modem class installer that the underlying device is a
> serial port.
> – pa</mailto:xxxxx>

what is the advantage of using Modem class over Port class?

On Fri, Dec 6, 2013 at 9:11 PM, Pavel A. wrote:

> As Doron pointed out, the modem class installs the modem-handling
> stuff over the COM port. I do not know what should be
> value of PortSubClass for usbser, or whether the Modem class installer
> supports it at all.
> – pa
>
>
> On 06-Dec-2013 13:56, shruthi kl wrote:
>
>> Thanks Pavel.Can you le tme know then what is advantage of using
>> Class=Modem
>>
>> ClassGUID={4D36E96D-E325-11CE- BFC1-08002BE10318} in inf file?
>>
>>
>> Regards,
>> Shruthi
>>
>>
>> On Fri, Dec 6, 2013 at 5:21 PM, Pavel A. >> mailto:xxxxx> wrote:
>>
>> On 06-Dec-2013 13:23, shruthi kl wrote:
>>
>> Does it mean that modem.sys is automatically added in the device
>> stack
>> by mere mentioning of
>>
>> Class=Modem
>>
>> ClassGUID={4D36E96D-E325-11CE-
BFC1-08002BE10318} in inf file?
>>
>>
>>
>> The “HKR,PortSubClass,1,02” line the INF seems to do the trick.
>> It tells the modem class installer that the underlying device is a
>> serial port.
>> – pa
>>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
></mailto:xxxxx>

Port and modem are different class of devices. Port class provides RS232 kind of communication (might be emulated, like in case of USB). If you want to use application like DUN(Dialup) or other application that need modem then you should go for modem class. You can observe the differences in the device stack of both.

shruthi wrote:

what is the advantage of using Modem class over Port class?

One thing to keep in mind also is that if you use Modem class, the system will assume to some degree that you support a Hayes-style command set. There are AT commands hard coded into the class installer which will be issued to your device at setup time, and if you don’t respond to them, device installation will hang.

There are also subtle differences during operation, I think Modem.sys will issue you a few IOCTLs as soon as you open a handle, whereas this won’t happen in Ports. And so on.

Thank you all.I would like to know if anyone has tried to set dial up
connection using Samsung handset(Note).

On Mon, Dec 9, 2013 at 10:14 PM, wrote:

> shruthi wrote:
>
> > what is the advantage of using Modem class over Port class?
>
> One thing to keep in mind also is that if you use Modem class, the system
> will assume to some degree that you support a Hayes-style command set.
> There are AT commands hard coded into the class installer which will be
> issued to your device at setup time, and if you don’t respond to them,
> device installation will hang.
>
> There are also subtle differences during operation, I think Modem.sys will
> issue you a few IOCTLs as soon as you open a handle, whereas this won’t
> happen in Ports. And so on.
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

I have done that using LG and Nokia mobiles.

Can you let me know how to do it?

Thanks,
Shruthi

On Tue, Dec 10, 2013 at 2:22 PM, wrote:

> I have done that using LG and Nokia mobiles.
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>