Serial port and GPS

SerialCpy Class

Copies data from one port to another

For a list of all members of this type, see SerialCpy Members.


[Visual Basic]
Public Class SerialCpy
public class SerialCpy

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Trnasparently copies data from one serial port to another in both directions.


The following example copies data between serial port COM1 and COM2, both ports using current or default baud, number of databits, stopbits and parity.

using System;
using serial;
public static void portCopy() {
  SerialCpy s;
  s = new SerialCpy();
  s.PortName1 = "COM1"; s.PortName2 = "COM2";
  Console.Write("Hit ENTER to close"); Console.ReadLine();


Namespace: serial

Assembly: scpy (in scpy.exe)

See Also

SerialCpy Members | serial Namespace