update 算法应用平台Service

This commit is contained in:
Lemon
2024-12-11 11:23:40 +08:00
parent 05cf609297
commit c321ca9ffc
6 changed files with 225 additions and 24 deletions

View File

@@ -185,6 +185,11 @@ public class CacheConstants {
*/
public static final String BMS_CHARGE_INFO_BY_TRANSACTION_CODE = "bms_charge_info_by_transaction_code:";
/**
* 0x15缓存key
*/
public static final String CHARGING_HANDSHAKE_DATA_BY_TRANSACTION_CODE = "charging_handshake_data_by_transaction_code:";
/**
* 充电桩状态前缀
*/

View File

@@ -0,0 +1,123 @@
package com.jsowell.common.core.domain.ykc;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 0x15充电握手Data
*
* @author Lemon
* @Date 2024/12/11 10:34:53
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ChargingHandshakeData {
/**
* 交易流水号
*/
private String transactionCode;
/**
* 桩编码
*/
private String pileSn;
/**
* 枪号
*/
private String connectorCode;
/**
* BMS 通信协议版本号 当前版本为 V1.1 表示为: byte3 byte2—0001Hbyte1—01H
*/
private String bmsCommunicationVersion;
/**
* BMS 电池类型
*
* 01H:铅酸电池;
* 02H:氢电池;
* 03H:磷酸铁锂电池;
* 04H:锰酸锂电池;
* 05H:钴酸锂电池;
* 06H:三元材料电池;
* 07H:聚合物锂离子电池;
* 08H:钛酸锂电池;
* FFH:其他
*/
private String bmsBatteryType;
/**
* BMS 整车动力蓄电池系统额定容量
* 0.1 Ah /位, 0 Ah 偏移量
*/
private String bmsBatteryCapacity;
/**
* BMS 整车动力蓄电池系统额定总电压
* 0.1V/位, 0V 偏移量
*/
private String bmsBatteryVoltage;
/**
* BMS 电池生产厂商名称
*/
private String bmsBatteryFactory;
/**
* BMS 电池组序号
*/
private String bmsBatteryNum;
/**
* BMS 电池组生产日期年
* 1985 年偏移量,
* 数据范围: 1985 2235 年
*/
private String bmsProductionDateYear;
/**
* BMS 电池组生产日期月
* 0 月偏移量,
* 数据范围: 112 月
*/
private String bmsProductionDateMonth;
/**
* BMS 电池组生产日期日
* 0 日偏移量,
* 数据范围: 131 日
*/
private String bmsProductionDateDay;
/**
* BMS 电池组充电次数
* 1 次/位, 0 次偏移量,
* 以 BMS 统 计为准
*/
private String bmsChargingTimes;
/**
* BMS 电池组产权标识 <0> =租赁; <1> =车自有)
*/
private String BMSPropertyIdentificationByteArr;
/**
* BMS 预留位
*/
private String BMSReservePosition;
/**
* BMS 车辆识别码
*/
private String vinCode;
/**
* BMS 软件版本号
*/
private String BMSSoftwareVersionByteArr;
}