USB to Virtual COM port

Started by ghoshraju_m April 2, 2010
Hi all,

My application currently communicates with Instrument through COM port(serial communication). Now the instrument manufacturer is going to support USB in place of COM port and the PC application will communicate to instrument through USB using virtual com port (VCP).

1. Should i have to write a driver to convert USB to VCP?

Please help me and put your suggestion.

Thanks in advance.

Regards,

raju Ghosh

Hello,

A virtual com port through USB looks just like a real com port to your
application so you don't need to change anything.

This is true for windows software that plays nicely with the com port (not
accessing the hardware directly).

I don't know about Mac or Linux.

/Ruben

> Hi all,
>
> My application currently communicates with Instrument through COM port(serial
> communication). Now the instrument manufacturer is going to support USB in place
> of COM port and the PC application will communicate to instrument through USB
> using virtual com port (VCP).
>
> 1. Should i have to write a driver to convert USB to VCP?
>
> Please help me and put your suggestion.
>
> Thanks in advance.
>
> Regards,
>
> raju Ghosh
>
FTDI Serial UART to USB. Very easy to use. You won't need to change your
code at all.

http://www.ftdichip.com/Products/FT232R.htm
ghoshraju_m wrote:
>
> Hi all,
>
> My application currently communicates with Instrument through COM
> port(serial communication). Now the instrument manufacturer is going
> to support USB in place of COM port and the PC application will
> communicate to instrument through USB using virtual com port (VCP).
>
> 1. Should i have to write a driver to convert USB to VCP?
>
> Please help me and put your suggestion.
>
> Thanks in advance.
>
> Regards,
>
> raju Ghosh
>
> Jeff McKnight writes on 10:24 AM 4/2/2010
>FTDI Serial UART to USB. Very easy to use. You won't need to change your
>code at all.

With one note to add: If your code depends in any way of the timing
of the hardware handshake signals the timing will not be the same as
the timing using a real UART. This also means that hardware
handshaking delays may allow a few more characters to come in than
with non-USB. For simple serial sending and receiving with no
hardware handshaking or dependencies on the signal timing it will
work without problems.

Bill

It's the same for Macs and Linux, and also Windows (and Linux) virtual machines on Macs.

Tom Almy
Tualatin, Oregon USA
Internet: t...@almy.us
Website: almy.us

On Apr 2, 2010, at 6:22 AM, Ruben Jsson wrote:

> Hello,
>
> A virtual com port through USB looks just like a real com port to your
> application so you don't need to change anything.
>
> This is true for windows software that plays nicely with the com port (not
> accessing the hardware directly).
>
> I don't know about Mac or Linux.
>
> /Ruben
>