16,235
社区成员
发帖
与我相关
我的任务
分享
const uchar DLE = 0x10;
const uchar STX = 0x02;
const uchar DST = 0x01;
const uchar SRC = 0x00;
const uchar STS = 0x00;
const uchar CMD = 0x0F;
const uchar RFUNC = 0xA2;
const uchar WFUNC = 0xAA;
const uchar ETX = 0x03;
ushort TNS = 0x0000;
const ushort CRCPolyNomial = 0xA001;
ushort CRCValue = 0x0000;
pFrameArray->append(DLE);
pFrameArray->append(STX);
pFrameArray->append(DST);
const uchar ddd = 0x10;
QByteArray dd;
dd.append(ddd);
上面的代码我试了,没问题呀。