2024-10-08 09:38:54 +08:00
|
|
|
|
/**
|
2025-03-04 10:42:17 +08:00
|
|
|
|
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
|
|
|
|
|
|
* 微信:mohan_88888
|
|
|
|
|
|
* 抖音:程序员三丙
|
|
|
|
|
|
* 付费课程知识星球:https://t.zsxq.com/aKtXo
|
2024-10-08 09:38:54 +08:00
|
|
|
|
*/
|
|
|
|
|
|
package sanbing.jcpp.app.service;
|
|
|
|
|
|
|
|
|
|
|
|
import sanbing.jcpp.infrastructure.queue.Callback;
|
2025-04-14 20:54:20 +08:00
|
|
|
|
import sanbing.jcpp.proto.gen.ProtocolProto.SetPricingRequest;
|
2024-10-08 09:38:54 +08:00
|
|
|
|
import sanbing.jcpp.proto.gen.ProtocolProto.UplinkQueueMessage;
|
|
|
|
|
|
|
2024-10-24 15:41:26 +08:00
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
|
2024-10-08 09:38:54 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @author baigod
|
|
|
|
|
|
*/
|
|
|
|
|
|
public interface PileProtocolService {
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 桩登录
|
|
|
|
|
|
*/
|
|
|
|
|
|
void pileLogin(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 充电桩心跳
|
|
|
|
|
|
*/
|
|
|
|
|
|
void heartBeat(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 校验计费模型
|
|
|
|
|
|
*/
|
|
|
|
|
|
void verifyPricing(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 查询计费策略
|
|
|
|
|
|
*/
|
|
|
|
|
|
void queryPricing(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 上报电桩运行状态
|
|
|
|
|
|
*/
|
|
|
|
|
|
void postGunRunStatus(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 上报充电进度
|
|
|
|
|
|
*/
|
|
|
|
|
|
void postChargingProgress(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 费率下发反馈
|
|
|
|
|
|
*/
|
|
|
|
|
|
void onSetPricingResponse(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 远程启动反馈
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param uplinkQueueMessage
|
|
|
|
|
|
* @param callback
|
|
|
|
|
|
*/
|
|
|
|
|
|
void onRemoteStartChargingResponse(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 远程停止反馈
|
|
|
|
|
|
*/
|
|
|
|
|
|
void onRemoteStopChargingResponse(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 交易记录上报
|
|
|
|
|
|
*/
|
|
|
|
|
|
void onTransactionRecord(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
2024-10-24 15:41:26 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 启动充电
|
|
|
|
|
|
*/
|
|
|
|
|
|
void startCharge(String pileCode, String gunCode, BigDecimal limitYuan, String orderNo);
|
2025-04-14 20:54:20 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 下发计费
|
|
|
|
|
|
*/
|
|
|
|
|
|
void setPricing(String pileCode, SetPricingRequest setPricingRequest);
|
2025-08-01 03:00:50 +00:00
|
|
|
|
|
2025-08-01 06:36:31 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* 充电桩与 BMS 充电错误上报
|
|
|
|
|
|
*/
|
|
|
|
|
|
void onBmsChargingErrorProto(UplinkQueueMessage uplinkQueueMsg, Callback callback);
|
|
|
|
|
|
|
2025-08-01 03:00:50 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* 充电桩与 BMS 参数配置阶段报文
|
|
|
|
|
|
*/
|
|
|
|
|
|
void onBmsParamConfigReport(UplinkQueueMessage uplinkQueueMsg, Callback callback);
|
2025-08-01 07:20:12 +00:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 充电过程BMS信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
void onBmsCharingInfo(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
2024-10-08 09:38:54 +08:00
|
|
|
|
}
|