public void Hello() { SerialPort port = new SerialPort( "COM1", 9600, Parity.None, 8, StopBits.One); port.Open(); port.Write("Hello"); port.Write(new byte[] { 0x0A, 0xE2, 0xFF }, 0, 3); Thread.Sleep(2000); port.Write("Tjosilosan"); port.Write(new byte[] { 0x0A, 0xE2, 0xFF }, 0, 3); port.Close(); } public void World() { SerialPort port = new SerialPort( "COM1", 9600, Parity.None, 8, StopBits.One); port.Open(); port.Write("World"); port.Write(new byte[] { 0x0A, 0xE2, 0xFF }, 0, 3); port.Close(); }