This topic created in 2855 days ago, the information mentioned may be changed or developed.
QByteArray getstatus;
getstatus[0] = 0xA0;
getstatus[1] = 0x04;
getstatus[2] = 0x00;
getstatus[3] = 0x03;
getstatus[4] = 0x01;
getstatus[5] = 0x00;
m_socket->write(getstatus);
第六位是校验和(第二位至第五位相加取反加一)目前遇到瓶颈了,麻烦前辈指点。
2 replies • 2018-07-13 09:59:32 +08:00
 |
|
1
May725 Jul 13, 2018
是指如何位运算? 那直接搜索位操作相关资料了解下
|
 |
|
2
Via1225 Jul 13, 2018
@ May725 谢谢,目前已解决,定义一个 char 变量用作中转,遍历 getstatus 中的元素直接相加
|