mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 02:19:56 +08:00
!9 充电桩与 BMS 充电错误报文更新
* 测试用例修改 * Merge remote-tracking branch 'refs/remotes/upstream/master' into feat_15bmserror * 充电桩与 BMS 充电错误报文更新 * 充电桩与 BMS 充电错误报文更新 * 充电桩与 BMS 充电错误报文更新
This commit is contained in:
@@ -79,6 +79,11 @@ public interface PileProtocolService {
|
||||
*/
|
||||
void setPricing(String pileCode, SetPricingRequest setPricingRequest);
|
||||
|
||||
/**
|
||||
* 充电桩与 BMS 充电错误上报
|
||||
*/
|
||||
void onBmsChargingErrorProto(UplinkQueueMessage uplinkQueueMsg, Callback callback);
|
||||
|
||||
/**
|
||||
* 充电桩与 BMS 参数配置阶段报文
|
||||
*/
|
||||
|
||||
@@ -314,6 +314,14 @@ public class DefaultPileProtocolService implements PileProtocolService {
|
||||
downlinkCallService.sendDownlinkMessage(downlinkRequestMessageBuilder, pileCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBmsChargingErrorProto(UplinkQueueMessage uplinkQueueMessage, Callback callback) {
|
||||
log.info("充电桩与 BMS 充电错误上报 {}", uplinkQueueMessage);
|
||||
|
||||
// TODO 处理相关业务逻辑
|
||||
|
||||
callback.onSuccess();
|
||||
}
|
||||
|
||||
private static Period createPeriod(int sn, LocalTime beginTime, LocalTime endTime, PricingModelFlag flag) {
|
||||
Period period = new Period();
|
||||
|
||||
@@ -192,6 +192,10 @@ public class ProtocolUplinkConsumerService extends AbstractConsumerService imple
|
||||
|
||||
pileProtocolService.onTransactionRecord(uplinkQueueMsg, callback);
|
||||
|
||||
} else if (uplinkQueueMsg.hasBmsChargingErrorProto()) {
|
||||
|
||||
pileProtocolService.onBmsChargingErrorProto(uplinkQueueMsg, callback);
|
||||
|
||||
} else if (uplinkQueueMsg.hasBmsParamConfigReport()) {
|
||||
|
||||
pileProtocolService.onBmsParamConfigReport(uplinkQueueMsg, callback);
|
||||
|
||||
Reference in New Issue
Block a user