mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-06 02:49:57 +08:00
* Merge branch 'master' into Feat_BMS_Charging_Info * 修改实体名称 * Merge branch 'master' into Feat_BMS_Charging_Info * 充电过程BMS信息 * 充电过程BMS信息 * 充电过程BMS信息
96 lines
2.5 KiB
Java
96 lines
2.5 KiB
Java
/**
|
||
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
|
||
* 微信:mohan_88888
|
||
* 抖音:程序员三丙
|
||
* 付费课程知识星球:https://t.zsxq.com/aKtXo
|
||
*/
|
||
package sanbing.jcpp.app.service;
|
||
|
||
import sanbing.jcpp.infrastructure.queue.Callback;
|
||
import sanbing.jcpp.proto.gen.ProtocolProto.SetPricingRequest;
|
||
import sanbing.jcpp.proto.gen.ProtocolProto.UplinkQueueMessage;
|
||
|
||
import java.math.BigDecimal;
|
||
|
||
/**
|
||
* @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);
|
||
|
||
/**
|
||
* 启动充电
|
||
*/
|
||
void startCharge(String pileCode, String gunCode, BigDecimal limitYuan, String orderNo);
|
||
|
||
/**
|
||
* 下发计费
|
||
*/
|
||
void setPricing(String pileCode, SetPricingRequest setPricingRequest);
|
||
|
||
/**
|
||
* 充电桩与 BMS 充电错误上报
|
||
*/
|
||
void onBmsChargingErrorProto(UplinkQueueMessage uplinkQueueMsg, Callback callback);
|
||
|
||
/**
|
||
* 充电桩与 BMS 参数配置阶段报文
|
||
*/
|
||
void onBmsParamConfigReport(UplinkQueueMessage uplinkQueueMsg, Callback callback);
|
||
|
||
/**
|
||
* 充电过程BMS信息
|
||
*/
|
||
void onBmsCharingInfo(UplinkQueueMessage uplinkQueueMessage, Callback callback);
|
||
} |