Hi all,
I must try to write a USB modem driver and I don’t know how to do it. My problem is that the modem expects a virtual serial port (COM-port). So my driver must work in a similar way as the windows driver usbser.sys. Anyone know how to do this? I have written usb-drivers before with Windows Driver Kit and also a Serial modem driver. But I can’t understand how to write a virtual COM-port modem driver.
I’m sorry for my bad english and my bad description but this link pretty much explain what I want to do:
http://supp.iar.com/Support/?note=15729&from=search+result
So anyone know how to do it or know where to read about how to do it?
Please help me! 
Why can’t you use usbser.sys?
d
dent from a phpne with no keynoard
-----Original Message-----
From: xxxxx@hotmail.com
Sent: June 22, 2010 5:05 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] USB Modem Driver
Hi all,
I must try to write a USB modem driver and I don’t know how to do it. My problem is that the modem expects a virtual serial port (COM-port). So my driver must work in a similar way as the windows driver usbser.sys. Anyone know how to do this? I have written usb-drivers before with Windows Driver Kit and also a Serial modem driver. But I can’t understand how to write a virtual COM-port modem driver.
I’m sorry for my bad english and my bad description but this link pretty much explain what I want to do:
http://supp.iar.com/Support/?note=15729&from=search+result
So anyone know how to do it or know where to read about how to do it?
Please help me! 
—
NTDEV is sponsored by OSR
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 just can’t. 
No, but first of all, I want to learn how to do it.
Second, usbser.sys does not work that good for my device it have thinks i need to fix.
Do you know how to do it?
Hmmm … and you think you can re-write UsbSer.sys and do a better job?
Well, we all are a bit arrogant at times. Just can’t because your pointy
haired boss won’t let you use UsbSer.sys and therefore is willing to commit
his/her department to a multi-man-year, multi-developer project, that will
NOT be any better than UsbSer.sys?
Now why can’t you use UsbSer.sys? This, “how to re-write UsbSer.sys and do a
better job” has been discussed here MANY times. Sounds to me like it’s your
device that is broken and needs to be fixed. So what is it that you think is
broken in UsbSer.sys?
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Tuesday, June 22, 2010 9:53 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB Modem Driver
I just can’t. 
No, but first of all, I want to learn how to do it.
Second, usbser.sys does not work that good for my device it have thinks i
need to fix.
Do you know how to do it?
NTDEV is sponsored by OSR
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
Fredrik H wrote:
No, but first of all, I want to learn how to do it.
No, believe me, you don’t.
Second, usbser.sys does not work that good for my
device it have thinks i need to fix.
In what ways does it not work “good” for your device?
I never said or thought that I can write a better driver then usbser.sys, but I want to write it more specified for my device.
And why do you care what I want it for? Can you help me, tell me, and can you notn then I have to try to find out how to do it elsewhere.
The point is that you can save yourself time and heartache by using usbser.sys. but you said you can’t. so we are asking why to see if we can help you see time and heartache by getting usbser.sys to work.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Tuesday, June 22, 2010 10:38 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB Modem Driver
I never said or thought that I can write a better driver then usbser.sys, but I want to write it more specified for my device.
And why do you care what I want it for? Can you help me, tell me, and can you notn then I have to try to find out how to do it elsewhere.
NTDEV is sponsored by OSR
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
It sounds like this guy have done the same thing I want to do.
http://www.osronline.com/showthread.cfm?link=145419
I too have looked at the fakemodem and the modem-part of the driver shouldn’t be any problem. But the thread stops when he comes to the usb-part. That is what I want to get help with.
How to implement the USB part acting lika a serial port.
Anyone know how to do it?
Just to understand this, your usb device does not in fact implement usb comm
class and is not in compliance with
http://www.usb.org/developers/devclass_docs/usbcdc11.pdf ?
This is not unusual, there are piles of cheap usb<->serial devices out there
that cannot be bothered with the specs and require a custom device on top of
them.
So you have to implement a virtual serial port to provide standard serial
port devices that the system understands and a translation layer to your
custom usb device. You could, for example implement a custom usb device that
acts as a bus driver that enumerates virtual serial ports. Other design
choices also exist.
Other than the basic framework of ‘how to move bits back and forth to usb
devices’ you are pretty much on your own with the details of your custom usb
device implementation. Virtual serial ports are discussed here on this list
and you have the serial driver and a virtualserial sample in the WDK and
lots of sample usb drivers, get to work.
Mark Roddy
On Wed, Jun 23, 2010 at 7:56 AM, wrote:
> It sounds like this guy have done the same thing I want to do.
> http://www.osronline.com/showthread.cfm?link=145419
>
> I too have looked at the fakemodem and the modem-part of the driver
> shouldn’t be any problem. But the thread stops when he comes to the
> usb-part. That is what I want to get help with.
> How to implement the USB part acting lika a serial port.
>
> Anyone know how to do it?
>
> —
> NTDEV is sponsored by OSR
>
> 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
>
Fredrik H wrote:
It sounds like this guy have done the same thing I
want to do.
http://www.osronline.com/showthread.cfm?link=145419
Funny you mention that link. It’s a classic case of someone trying to reimplement something they clearly did not understand, and received a well-warranted berating as a result.
Like Mark said, your device seems to not conform to USB CDC, so how can we possibly help you? The upper edge of the driver is fully documented (well, almost…), and it’s up to you to implement the bottom half.