mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-04 14:08:01 +08:00
打印心跳日志
This commit is contained in:
@@ -55,7 +55,7 @@ public class YKCUtils {
|
|||||||
|
|
||||||
// 如果是0x03帧,则不进行crc校验
|
// 如果是0x03帧,则不进行crc校验
|
||||||
if (0x03 == frameType[0]) {
|
if (0x03 == frameType[0]) {
|
||||||
log.info("0x03帧,则不进行crc校验");
|
log.debug("0x03帧,则不进行crc校验");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public class TimeCheckSettingResponseHandler extends AbstractYkcHandler {
|
|||||||
length = 7;
|
length = 7;
|
||||||
byte[] currentTimeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
byte[] currentTimeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
||||||
Date date = Cp56Time2aUtil.byte2Hdate(currentTimeByteArr);
|
Date date = Cp56Time2aUtil.byte2Hdate(currentTimeByteArr);
|
||||||
log.info("对时设置应答, pileSn:{}, channelId:{}, 充电桩当前时间:{}", pileSn, channel.channel().id().asShortText(), DateUtils.formatDateTime(date));
|
log.info("[对时设置充电桩应答], pileSn:{}, channelId:{}, 充电桩当前时间:{}", pileSn, channel.channel().id().asShortText(), DateUtils.formatDateTime(date));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
|
|||||||
*/
|
*/
|
||||||
private static final ConcurrentHashMap<ChannelId, ChannelHandlerContext> CHANNEL_MAP = new ConcurrentHashMap<>();
|
private static final ConcurrentHashMap<ChannelId, ChannelHandlerContext> CHANNEL_MAP = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
private final List<String> notPrintFrameTypeList = Lists.newArrayList("0x03");
|
private final List<String> notPrintFrameTypeList = Lists.newArrayList(); // "0x03"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 有客户端连接服务器会触发此函数
|
* 有客户端连接服务器会触发此函数
|
||||||
|
|||||||
Reference in New Issue
Block a user