mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 21:15:06 +08:00
commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package com.jsowell.netty.handler;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
|
||||
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
|
||||
import com.jsowell.common.util.YKCUtils;
|
||||
import com.jsowell.netty.factory.YKCOperateFactory;
|
||||
import io.netty.channel.Channel;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 离线卡数据查询
|
||||
*
|
||||
* 离线卡数据查询由平台主动向桩发起的查询请求, 平台在充电桩在线时会按需下发此数据帧到充电桩,
|
||||
* 桩接收到该报文后进行查询桩本地是否存在对应的离线卡
|
||||
*
|
||||
* @author JS-ZZA
|
||||
* @date 2022/9/27 10:18
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class OfflineCardDataQueryHandler extends AbstractHandler{
|
||||
private final String type = YKCUtils.frameType2Str(YKCFrameTypeCode.OFFLINE_CARD_DATA_QUERY_CODE.getBytes());
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
YKCOperateFactory.register(type, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, Channel channel) {
|
||||
log.info("[===离线卡数据查询===] param:{}, channel:{}", JSONObject.toJSONString(ykcDataProtocol), channel.toString());
|
||||
// 下发
|
||||
// 桩编码
|
||||
|
||||
// 查询的离线卡个数
|
||||
|
||||
// 第一个物理卡号
|
||||
|
||||
// 第N个物理卡号
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user