| | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取查询指令(开机) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static byte[] GetControlMsg开机() |
| | | { |
| | | return new byte[] { 0x01, 0x06, 0x00, 0x0F, 0x00, 0x01, 0x78, 0x09 }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取查询指令(关机) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static byte[] GetControlMsg关机() |
| | | { |
| | | return new byte[] { 0x01, 0x06, 0x00, 0x10, 0x00, 0x01, 0x49, 0xCF }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取控制指令(调频) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static byte[] GetControlMsg调频(double frequece) |
| | | public byte[] GetControlMsg调频(double frequece) |
| | | { |
| | | var iFrequece = (int)(frequece * 10); |
| | | |
| | |
| | | /// 获取查询指令(监控值) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static byte[] GetMonitorMsg监控值() |
| | | public byte[] GetMonitorMsg监控值() |
| | | { |
| | | return new byte[] { 0x01, 0x03, 0x00, 0x19, 0x00, 0x19, 0x55, 0xC7 }; |
| | | } |
| | |
| | | /// 获取查询指令(状态值) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static byte[] GetMonitorMsg状态值() |
| | | public static byte[] GetMonitorMsg状态值() |
| | | { |
| | | return new byte[] { 0x01, 0x03, 0x00, 0x19, 0x00, 0x23, 0xD5, 0xD4 }; |
| | | } |