public void SetPower(int powerType)//0 off,1 on { try { if (powerType == 1)//power on { _serialPortHelper.Send0x("55 01 12 00 00 00 01 69"); } else { _serialPortHelper.Send0x("55 01 11 00 00 00 01 68"); } LogHelper.GetInstance().ShowMsg("Set power:" + powerType); } catch (Exception e) { LogHelper.GetInstance().ShowMsg("Set Power fail:" + e.Message); } }