try { serialPort1.PortName = "COM4"; serialPort1.BaudRate = 9600; serialPort1.Open(); byte[] data = Encoding.Unicode.GetBytes(textBox1.Text); string str = Convert.ToUInt64(data); serialPort1.W