Commit 909bef1d authored by duanruiming's avatar duanruiming

[update] 查询设备基本信息

parent 8a26fc40
...@@ -33,7 +33,8 @@ public class HeartBeatService implements CommandResponseService { ...@@ -33,7 +33,8 @@ public class HeartBeatService implements CommandResponseService {
String body = String.format("%02x", Constants.COMMAND_HEARTBEAT.length() / 2).concat(Constants.COMMAND_HEARTBEAT); String body = String.format("%02x", Constants.COMMAND_HEARTBEAT.length() / 2).concat(Constants.COMMAND_HEARTBEAT);
String crc16HexStr = CRC16Utils.getCRC16HexStr(body); String crc16HexStr = CRC16Utils.getCRC16HexStr(body);
String heartBeatRequest = Constants.buildMessageBody(body, crc16HexStr); String heartBeatRequest = Constants.buildMessageBody(body, crc16HexStr);
String str = "55ac00000000000017050f11060b0000000000000000000000000000000000"; // String str = "55ac00000000000017050f11060b0000000000000000000000000000000000";
String str = "0x7e00120001010000000101011001000501030000005CB40x7d";
MessageResultPojo resultPojo = NettyClient.sendMsg("10.102.1.204", 5050, str, "80", 300); MessageResultPojo resultPojo = NettyClient.sendMsg("10.102.1.204", 5050, str, "80", 300);
log.info("信号返回字符串:{}", resultPojo); log.info("信号返回字符串:{}", resultPojo);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment