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.

System.Object
   serial.SerialCpy

[Visual Basic]
Public Class SerialCpy
[C#]
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.

Remarks

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

Example

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

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

Requirements

Namespace: serial

Assembly: scpy (in scpy.exe)

See Also

SerialCpy Members | serial Namespace