RFIDRtnPkg.cs
968 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Versioning;
using System.Text;
using System.Threading.Tasks;
namespace Mushiny.Model
{
/// <summary>
/// RCS->AGV
/// RFID信息回复包:收到RFID信息包时回复一次,超时时间内没有回复则机器人会重发
/// </summary>
internal class RFIDRtnPkg : PkgData
{
public RFIDRtnPkg() : base()
{
FrameHead = 0xbb;
CmdWord = 0xf2;
}
/// <summary>
/// 预留
/// </summary>
public byte[] Reserved { get; set; } = new byte[4];
public override byte[] ToBytes()
{
List<byte> bytes = new List<byte>(base.ToBytes())
{
};
bytes.AddRange(Reserved);
calSendCrc(bytes);
bytes.Add(CRC16Low);
bytes.Add(CRC16Upper);
return bytes.ToArray();
}
}
}