Copies data from one port to another
For a list of all members of this type, see SerialCpy Members.
System.Object
serial.SerialCpy
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.
[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();
}
Namespace: serial
Assembly: scpy (in scpy.exe)
SerialCpy Members | serial Namespace