Esempio n. 1
0
        public void PowerOn()
        {
            //5830303158
            byte[] sendBytes = new byte[] { 0x0D, 0x2A, 0x70, 0x6F, 0x77, 0x3D, 0x6F, 0x6E, 0x23, 0x0D };

            // byte[] sendBytes = new byte[] { 0x06, 0x14, 0x00, 0x03, 0x00, 0x34, 0x11, 0x00, 0x5C };
            ILiveDebug.Instance.WriteLine("BenqOn");
            //string data = Encoding.GetEncoding(28591).GetString(sendBytes, 0, sendBytes.Length);
            port.Send(sendBytes);
        }
Esempio n. 2
0
 public void PowerOn()
 {
     byte[] sendBytes = new byte[] { 0x4D, 0x21, 0x20, 0x50, 0x44, 0x4D, 0x20, 0x31, 0x0D };
     //string data = Encoding.GetEncoding(28591).GetString(sendBytes,0,sendBytes.Length);
     port.Send(sendBytes);
 }