陈嘉乐
2020-12-01 e08a444a9d7acea0cf39f50d22d29179f6a59292
HDL_ON/DAL/DriverLayer/Target.cs
File was renamed from HDL_ON/DriverLayer/Target.cs
@@ -3,10 +3,11 @@
using System.Text;
using HDL_ON.Entity;
namespace HDL_ON
namespace HDL_ON.DriverLayer
{
    /// <summary>
    /// 控制数据
    /// 控制数据包头
    /// bus数据包头
    /// </summary>
    public class Target
    {
@@ -71,7 +72,7 @@
                    bytes [15] = 0xAA;
                    bytes [16] = (byte)(11 + AddData.Length);
                    bytes [17] = 252; //源子网号
                    bytes [17] = 0; //源子网号
                    bytes [18] = 252; //源设备号
                    bytes [19] = (byte)(deviceType/256);
                    bytes [20] = (byte)(deviceType%256);
@@ -113,7 +114,7 @@
                    bytes [15] = 0xAA;
                    bytes [16] = 0xFF;//数据包长度
                    bytes [17] = 252;//源子网号
                    bytes [17] = 0;//源子网号
                    bytes [18] = 252;//源设备号
                    bytes [19] = (byte)(deviceType/256);
                    bytes [20] = (byte)(deviceType%256);