Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-charging-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d4fb639
authored
Nov 07, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]计算模型设置
1 parent
21e56eb4
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
358 additions
and
0 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/login/ModelSetReqData.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/login/ModelSetRspData.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/setup/ModelSetReqData.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/setup/ModelSetRspData.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/setup/ModelSetReq.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/setup/ModelSetRsp.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/login/ModelSetReqData.java
0 → 100644
View file @
3d4fb63
package
cn
.
com
.
glsx
.
charging
.
modules
.
gbt
.
ocpp16
.
tcp
.
data
.
login
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpData
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* 计费模型验证请求
* 68(起始标志)0D(数据长度)0002(序列号域)00(加密标志)05(类型)32010200000001
* (桩编码)0001(计费模型编码)9C00(帧校验域)
*
* @author zhouhb
* @date 2023年11月06日
*/
@Getter
@Setter
public
class
ModelSetReqData
extends
TcpData
{
/**
* 充电桩id: BCD 码 ,不足 7 位补 0
*/
private
byte
[]
pointId
=
new
byte
[
7
];
/**
* 计费模型编号:固定值:01 00
*/
private
byte
modelCode
;
/**
* 尖费电费费率
*/
private
byte
[]
topEleRate
=
new
byte
[
4
];
/**
* 尖服务费费率
*/
private
byte
[]
topDreRate
=
new
byte
[
4
];
/**
* 峰电费费率
*/
private
byte
[]
peakEleRate
=
new
byte
[
4
];
/**
* 峰服务费费率
*/
private
byte
[]
peakDreRate
=
new
byte
[
4
];
/**
* 平电费费率
*/
private
byte
[]
flatEleRate
=
new
byte
[
4
];
/**
* 平服务费费率
*/
private
byte
[]
flatDreRate
=
new
byte
[
4
];
/**
* 谷电费费率
*/
private
byte
[]
valleyEleRate
=
new
byte
[
4
];
/**
* 谷服务费费率
*/
private
byte
[]
valleyDreRate
=
new
byte
[
4
];
/**
* 计损比例
*/
private
byte
lossCalRatio
;
/**
* 0:00~0:30 时段费率号---- 23:30~0:00
*/
private
byte
periodRate1
;
private
byte
periodRate2
;
private
byte
periodRate3
;
private
byte
periodRate4
;
private
byte
periodRate5
;
private
byte
periodRate6
;
private
byte
periodRate7
;
private
byte
periodRate8
;
private
byte
periodRate9
;
private
byte
periodRate10
;
private
byte
periodRate11
;
private
byte
periodRate12
;
private
byte
periodRate13
;
private
byte
periodRate14
;
private
byte
periodRate15
;
private
byte
periodRate16
;
private
byte
periodRate17
;
private
byte
periodRate18
;
private
byte
periodRate19
;
private
byte
periodRate20
;
private
byte
periodRate21
;
private
byte
periodRate22
;
private
byte
periodRate23
;
private
byte
periodRate24
;
private
byte
periodRate25
;
private
byte
periodRate26
;
private
byte
periodRate27
;
private
byte
periodRate28
;
private
byte
periodRate29
;
private
byte
periodRate30
;
private
byte
periodRate31
;
private
byte
periodRate32
;
private
byte
periodRate33
;
private
byte
periodRate34
;
private
byte
periodRate35
;
private
byte
periodRate36
;
private
byte
periodRate37
;
private
byte
periodRate38
;
private
byte
periodRate39
;
private
byte
periodRate40
;
private
byte
periodRate41
;
private
byte
periodRate42
;
private
byte
periodRate43
;
private
byte
periodRate44
;
private
byte
periodRate45
;
private
byte
periodRate46
;
private
byte
periodRate47
;
/**
* 0:00~0:30 时段费率号---- 23:30~0:00
*/
private
byte
periodRate48
;
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/login/ModelSetRspData.java
0 → 100644
View file @
3d4fb63
package
cn
.
com
.
glsx
.
charging
.
modules
.
gbt
.
ocpp16
.
tcp
.
data
.
login
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpData
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* 计费模型设置应答
* 68(起始标志)0C(数据长度)0009(序列号域)00(加密标志)57(类型)32010200000001
* (桩编码)01(设置结果)C1A9(桢校验域)
*
* @author zhouhb
* @date 2023年11月06日
*/
@Getter
@Setter
public
class
ModelSetRspData
extends
TcpData
{
/**
* 充电桩id: BCD 码 ,不足 7 位补 0
*/
private
byte
[]
pointId
=
new
byte
[
7
];
/**
* 0x00 失败 0x01 成功
*/
private
byte
setResult
;
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/setup/ModelSetReqData.java
0 → 100644
View file @
3d4fb63
package
cn
.
com
.
glsx
.
charging
.
modules
.
gbt
.
ocpp16
.
tcp
.
data
.
setup
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpData
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* 计费模型验证请求
* 68(起始标志)0D(数据长度)0002(序列号域)00(加密标志)05(类型)32010200000001
* (桩编码)0001(计费模型编码)9C00(帧校验域)
*
* @author zhouhb
* @date 2023年11月06日
*/
@Getter
@Setter
public
class
ModelSetReqData
extends
TcpData
{
/**
* 充电桩id: BCD 码 ,不足 7 位补 0
*/
private
byte
[]
pointId
=
new
byte
[
7
];
/**
* 计费模型编号:固定值:01 00
*/
private
byte
modelCode
;
/**
* 尖费电费费率
*/
private
byte
[]
topEleRate
=
new
byte
[
4
];
/**
* 尖服务费费率
*/
private
byte
[]
topDreRate
=
new
byte
[
4
];
/**
* 峰电费费率
*/
private
byte
[]
peakEleRate
=
new
byte
[
4
];
/**
* 峰服务费费率
*/
private
byte
[]
peakDreRate
=
new
byte
[
4
];
/**
* 平电费费率
*/
private
byte
[]
flatEleRate
=
new
byte
[
4
];
/**
* 平服务费费率
*/
private
byte
[]
flatDreRate
=
new
byte
[
4
];
/**
* 谷电费费率
*/
private
byte
[]
valleyEleRate
=
new
byte
[
4
];
/**
* 谷服务费费率
*/
private
byte
[]
valleyDreRate
=
new
byte
[
4
];
/**
* 计损比例
*/
private
byte
lossCalRatio
;
/**
* 0:00~0:30 时段费率号---- 23:30~0:00
*/
private
byte
periodRate1
;
private
byte
periodRate2
;
private
byte
periodRate3
;
private
byte
periodRate4
;
private
byte
periodRate5
;
private
byte
periodRate6
;
private
byte
periodRate7
;
private
byte
periodRate8
;
private
byte
periodRate9
;
private
byte
periodRate10
;
private
byte
periodRate11
;
private
byte
periodRate12
;
private
byte
periodRate13
;
private
byte
periodRate14
;
private
byte
periodRate15
;
private
byte
periodRate16
;
private
byte
periodRate17
;
private
byte
periodRate18
;
private
byte
periodRate19
;
private
byte
periodRate20
;
private
byte
periodRate21
;
private
byte
periodRate22
;
private
byte
periodRate23
;
private
byte
periodRate24
;
private
byte
periodRate25
;
private
byte
periodRate26
;
private
byte
periodRate27
;
private
byte
periodRate28
;
private
byte
periodRate29
;
private
byte
periodRate30
;
private
byte
periodRate31
;
private
byte
periodRate32
;
private
byte
periodRate33
;
private
byte
periodRate34
;
private
byte
periodRate35
;
private
byte
periodRate36
;
private
byte
periodRate37
;
private
byte
periodRate38
;
private
byte
periodRate39
;
private
byte
periodRate40
;
private
byte
periodRate41
;
private
byte
periodRate42
;
private
byte
periodRate43
;
private
byte
periodRate44
;
private
byte
periodRate45
;
private
byte
periodRate46
;
private
byte
periodRate47
;
/**
* 0:00~0:30 时段费率号---- 23:30~0:00
*/
private
byte
periodRate48
;
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/setup/ModelSetRspData.java
0 → 100644
View file @
3d4fb63
package
cn
.
com
.
glsx
.
charging
.
modules
.
gbt
.
ocpp16
.
tcp
.
data
.
setup
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpData
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* 计费模型设置应答
* 68(起始标志)0C(数据长度)0009(序列号域)00(加密标志)57(类型)32010200000001
* (桩编码)01(设置结果)C1A9(桢校验域)
*
* @author zhouhb
* @date 2023年11月06日
*/
@Getter
@Setter
public
class
ModelSetRspData
extends
TcpData
{
/**
* 充电桩id: BCD 码 ,不足 7 位补 0
*/
private
byte
[]
pointId
=
new
byte
[
7
];
/**
* 0x00 失败 0x01 成功
*/
private
byte
setResult
;
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/setup/ModelSetReq.java
0 → 100644
View file @
3d4fb63
package
cn
.
com
.
glsx
.
charging
.
modules
.
gbt
.
ocpp16
.
tcp
.
protocol
.
setup
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpMapper
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpReq
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.login.ModelValReqData
;
/**
* 计算模型验证
*
* @author zhouhb
* @date 2023年11月6日
*/
public
class
ModelSetReq
extends
TcpReq
<
ModelValReqData
>
{
public
ModelSetReq
()
{
super
(
TcpMapper
.
CMD_REQ_MODEL_CHECK
.
getType
());
}
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/setup/ModelSetRsp.java
0 → 100644
View file @
3d4fb63
package
cn
.
com
.
glsx
.
charging
.
modules
.
gbt
.
ocpp16
.
tcp
.
protocol
.
setup
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpMapper
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpRsp
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.login.ModelValRspData
;
/**
* 计算模型验证应答
*
* @author zhouhb
* @date 2023年11月6日
*/
public
class
ModelSetRsp
extends
TcpRsp
<
ModelValRspData
>
{
public
ModelSetRsp
()
{
super
(
TcpMapper
.
CMD_RSP_MODEL_CHECK
.
getType
());
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment