How can we expose an USB port as a serial port

Hi guys,

Can we expose a usb port as serial port and how to interact with
it.Please help me.

With Regards
Ganesh

Yes its possible… Look at the serial samples in the ddk (and
driver::works if you have that). Its pretty straightforward really.

BR,

Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ganesh
Sent: 27 January 2006 14:37
To: Windows System Software Devs Interest List
Subject: [ntdev] How can we expose an USB port as a serial port

Hi guys,

Can we expose a usb port as serial port and how to interact with
it.Please help me.

With Regards
Ganesh


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com

(1) The serial sample has all the api’s for a serial port. All the ioctls
for setting baud rate, line control, event masks and timeouts etc.
(2) You will have to also develop a USB miniport driver for your device that
gets plugged into the USB stack. Plug this in and Found new Hardware should
install is driver.
(3) The serial driver that you varied above in (1) would then have to open
this USB stack and send your IRPs to do serial emulation. How you send
packets is the hardware design.
(4) A thought: Now if this is a small dongle is USB to serial say. You may
have all the RS-232 pins as endpoints for streams or better map the pins to
be like the UART LSR, MCR etc as endpoints.

Hope this helps.

Regards,
William Michael Jones “Mike”

“Ganesh” wrote in message news:xxxxx@ntdev…
> Hi guys,
>
> Can we expose a usb port as serial port and how to interact with
> it.Please help me.
>
> With Regards
> Ganesh
>
>
>
>

You must have some hardware for this.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Ganesh”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Friday, January 27, 2006 5:37 PM
Subject: [ntdev] How can we expose an USB port as a serial port

> Hi guys,
>
> Can we expose a usb port as serial port and how to interact with
> it.Please help me.
>
> With Regards
> Ganesh
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

I coudnt get it.Here i have a USB-2.0 card connected to a machine.Just i ll
have to make up my driver and driver related files so as to make the os
recognize the USB port installed with my driver as a serial port with a port
ID, So that it may be used for data interface in any platforms.Basically i
need to do this so as to communicate the hardware that i have from .net.

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> You must have some hardware for this.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Ganesh”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Friday, January 27, 2006 5:37 PM
> Subject: [ntdev] How can we expose an USB port as a serial port
>
>
>> Hi guys,
>>
>> Can we expose a usb port as serial port and how to interact with
>> it.Please help me.
>>
>> With Regards
>> Ganesh
>>
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>

Ganesh wrote:

I coudnt get it.Here i have a USB-2.0 card connected to a machine.Just i ll
have to make up my driver and driver related files so as to make the os
recognize the USB port installed with my driver as a serial port with a port
ID, So that it may be used for data interface in any platforms.Basically i
need to do this so as to communicate the hardware that i have from .net.

By “USB-2.0 card”, do you mean that you have a PCI card with USB ports
on it? That isn’t enough. To expose a USB port as a serial port, you
need to have a USB-to-serial adapter. This is a device that plugs into
a USB port and has an RS-232 connector on the other end. Such a device
will necessarily come with a driver that handles the software end.

USB is not just a pair of empty wires, like RS-232. USB uses a
packet-based protocol, and there must be some hardware on the other end
that is listening to the protocol and handling the packets.


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

At 09:16 AM 1/30/2006, you wrote:

Ganesh wrote:

>I coudnt get it.Here i have a USB-2.0 card connected to a machine.Just i ll
>have to make up my driver and driver related files so as to make the os
>recognize the USB port installed with my driver as a serial port with a
port
>ID, So that it may be used for data interface in any platforms.Basically i
>need to do this so as to communicate the hardware that i have from .net.
>
>

By “USB-2.0 card”, do you mean that you have a PCI card with USB ports
on it? That isn’t enough. To expose a USB port as a serial port, you
need to have a USB-to-serial adapter. This is a device that plugs into
a USB port and has an RS-232 connector on the other end. Such a device
will necessarily come with a driver that handles the software end.

USB is not just a pair of empty wires, like RS-232. USB uses a
packet-based protocol, and there must be some hardware on the other end
that is listening to the protocol and handling the packets.

Correct. I have used a couple different USB to serial adapters, and they
seem to work well. The driver they provided makes the port(s) look just
like standard com ports. Usually you can select which com port number you
want them to be (in the driver properties).

Russ Poffenberger
Credence Systems Corp.
xxxxx@credence.com