mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 09:59:55 +08:00
绿能3.4 gunCode用int接收
This commit is contained in:
@@ -96,7 +96,7 @@ public class LvnengV340LoginAckDLCmd extends LvnengDownlinkCmdExe {
|
||||
|
||||
private void registerSyncTimeTask(TcpSession tcpSession, byte[] pileCodeBytes, LvnengUplinkMessage requestData) {
|
||||
tcpSession.addSchedule(SCHEDULE_KEY_AUTO_SYNC_TIME, k -> {
|
||||
log.info("{} 云快充3.4开始注册定时对时任务", tcpSession);
|
||||
log.info("{} 绿能3.4开始注册定时对时任务", tcpSession);
|
||||
return PROTOCOL_SESSION_SCHEDULED.scheduleAtFixedRate(() ->
|
||||
syncTime(tcpSession, pileCodeBytes, requestData),
|
||||
0, RandomUtil.randomInt(420, 480), TimeUnit.MINUTES);
|
||||
|
||||
@@ -67,7 +67,7 @@ public class LvnengV340RealTimeDataULCmd extends LvnengUplinkCmdExe {
|
||||
additionalInfo.put("充电枪数量", gunsNum);
|
||||
|
||||
//5 充电枪口
|
||||
byte gunCode = byteBuf.readByte();
|
||||
int gunCode = byteBuf.readByte();
|
||||
additionalInfo.put("充电枪口", gunCode);
|
||||
|
||||
//6 充电枪类型
|
||||
@@ -272,7 +272,7 @@ public class LvnengV340RealTimeDataULCmd extends LvnengUplinkCmdExe {
|
||||
realTimeDataAck(tcpSession, gunCode);
|
||||
}
|
||||
|
||||
private void realTimeDataAck(TcpSession tcpSession, byte gunCode) {
|
||||
private void realTimeDataAck(TcpSession tcpSession, int gunCode) {
|
||||
ByteBuf pingAckMsgBody = Unpooled.buffer(5);
|
||||
pingAckMsgBody.writeShortLE(0);
|
||||
pingAckMsgBody.writeShortLE(0);
|
||||
|
||||
@@ -69,7 +69,7 @@ public class LvnengV340TransactionRecordULCmd extends LvnengUplinkCmdExe {
|
||||
additionalInfo.put("充电枪位置类型", gunType);
|
||||
|
||||
//5 充电枪口
|
||||
byte gunCode = byteBuf.readByte();
|
||||
int gunCode = byteBuf.readByte();
|
||||
additionalInfo.put("充电枪口", gunCode);
|
||||
|
||||
//6 卡号
|
||||
|
||||
Reference in New Issue
Block a user