mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 09:59:55 +08:00
修改BMS中止信息命名规范
BMS通信报文国标:http://c.gb688.cn/bzgk/gb/showGb?type=online&hcno=6ECF725CD2BCCA2819082279F6B2E243
This commit is contained in:
@@ -97,6 +97,6 @@ public interface PileProtocolService {
|
||||
/**
|
||||
* 充电阶段BMS中止
|
||||
*/
|
||||
void bmsAbortDuringCharging(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
||||
void onBmsAbort(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
||||
|
||||
}
|
||||
@@ -6,8 +6,6 @@
|
||||
*/
|
||||
package sanbing.jcpp.app.service.impl;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonParser;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -322,7 +320,7 @@ public class DefaultPileProtocolService implements PileProtocolService {
|
||||
log.info("充电桩与 BMS 充电错误上报 {}", uplinkQueueMessage);
|
||||
}
|
||||
|
||||
public void bmsAbortDuringCharging(UplinkQueueMessage uplinkQueueMessage, Callback callback) {
|
||||
public void onBmsAbort(UplinkQueueMessage uplinkQueueMessage, Callback callback) {
|
||||
log.info("接收到充电阶段BMS中止报文 {}", uplinkQueueMessage);
|
||||
// TODO 处理相关业务逻辑
|
||||
callback.onSuccess();
|
||||
|
||||
@@ -204,9 +204,9 @@ public class ProtocolUplinkConsumerService extends AbstractConsumerService imple
|
||||
|
||||
pileProtocolService.onBmsCharingInfo(uplinkQueueMsg, callback);
|
||||
|
||||
} else if (uplinkQueueMsg.hasBmsAbortDuringChargingRequest()) {
|
||||
} else if (uplinkQueueMsg.hasBmsAbortProto()) {
|
||||
|
||||
pileProtocolService.bmsAbortDuringCharging(uplinkQueueMsg, callback);
|
||||
pileProtocolService.onBmsAbort(uplinkQueueMsg, callback);
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user