Tech Support > Microsoft Windows > Drivers > rs232 to USB adapter
rs232 to USB adapter
Posted by sukumar on May 27th, 2008


Hi............
i need rs232 to USB adapter source code...can any one tell URL to
get information about this..i searched for a long time.. but i didn,t get

Posted by chris.aseltine@gmail.com on May 27th, 2008


On May 27, 8:15 am, sukumar <suku...@discussions.microsoft.com> wrote:

I don't know that example code for this is readily available. It
would depend on how your device is implemented.

Posted by Ben Voigt [C++ MVP] on May 27th, 2008


sukumar wrote:
For what platform?



Posted by sukumar on May 28th, 2008




"Ben Voigt [C++ MVP]" wrote:


Posted by Ben Voigt [C++ MVP] on May 28th, 2008


sukumar wrote:
Ok, you are _totally_ in the wrong place, being that this group is operated
by Microsoft.

But I was asking about the hardware platform, so maybe we can at least send
you in the right direction for more help.



Posted by chris.aseltine@gmail.com on May 28th, 2008


On May 27, 11:11 pm, sukumar <suku...@discussions.microsoft.com>
wrote:

Look in /usr/src/linux/drivers/usb/serial.

Posted by Ben Voigt [C++ MVP] on May 28th, 2008


chris.aseltine@gmail.com wrote:
That would be the source code for the host driver, not the adapter...
however despite what the OP asked for it probably is what he is looking for.

OTOH, a lot of rs232 to USB adapters are actually programmable
microcontrollers, in which case the firmware source code for the adapter is
quite important. But we'd need to know which uC.



Posted by sukumar on May 29th, 2008




"Ben Voigt [C++ MVP]" wrote:

a software this allows us to select the COM port to use and set the
parameters to match the h/w rs232 settings..now the h/w is upgraded to USB so
we need to dvelop anothe com drive which will identify the h/w usb settings
and acts as a adapterb/w usb and rs232....can any one help me about this....

Posted by chris.aseltine@gmail.com on May 29th, 2008


On May 29, 2:06 am, sukumar <suku...@discussions.microsoft.com> wrote:

Yes, you will need to develop a driver that 1) exposes the serial
interface on its upper edge and 2) communicates to your device (using
URBs) on its lower edge.

If you have the ability to control the device's firmware/interface,
there are already USB <==> serial drivers available that can do this
for you.

Posted by Ben Voigt [C++ MVP] on May 29th, 2008


sukumar wrote:
Ok, so I understand you have

[ PC ] [Peripheral]
[Windows] --------- [Linux]
(USB host) (USB device)

So far so good. But linux is NOT hardware. What hardware are you using for
the USB interface in the peripheral? It might be part of a system-on-chip
which is running Linux, or it might be a separate interface chip, in which
case it would also be good to know the bus. The CPU architecture
(instruction set) of the embedded processor will also be important to your
driver code. Example code showing how to talk to one device using DMA won't
help you much if you have memory-mapped I/O.