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 f870e67b
authored
Nov 07, 2023
by
tiger
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
命名更新
1 parent
930dc6bc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/req/ShutdownMachineReq.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/req/StartMachineReq.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/resp/ShutdownMachineResp.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/resp/StartMachineResp.java
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/CrcTest.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/req/ShutdownMachineReq.java
View file @
f870e67
...
...
@@ -12,6 +12,6 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.interactive.ShutdownMach
*/
public
class
ShutdownMachineReq
extends
TcpReq
<
ShutdownMachineReqData
>
{
public
ShutdownMachineReq
()
{
super
(
TcpMapper
.
FTCD_REQ_REMOTE_SHUTDOWN
.
getType
());
super
(
TcpMapper
.
CMD_REQ_STOP_CHARGING
.
getType
());
}
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/req/StartMachineReq.java
View file @
f870e67
...
...
@@ -12,6 +12,6 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.interactive.StartMachine
*/
public
class
StartMachineReq
extends
TcpReq
<
StartMachineReqData
>
{
public
StartMachineReq
()
{
super
(
TcpMapper
.
CMD_REQ_START_CHARGING
.
getType
());
super
(
TcpMapper
.
CMD_REQ_START_CHARGING
.
getType
());
}
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/resp/ShutdownMachineResp.java
View file @
f870e67
...
...
@@ -12,6 +12,6 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.interactive.ShutdownMach
*/
public
class
ShutdownMachineResp
extends
TcpReq
<
ShutdownMachineRespData
>
{
public
ShutdownMachineResp
()
{
super
(
TcpMapper
.
FTCD_RSP_REMOTE_SHUTDOWN
.
getType
());
super
(
TcpMapper
.
CMD_RSP_STOP_CHARGING
.
getType
());
}
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/protocol/interactive/resp/StartMachineResp.java
View file @
f870e67
...
...
@@ -12,6 +12,6 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.interactive.StartMachine
*/
public
class
StartMachineResp
extends
TcpRsp
<
StartMachineRspData
>
{
public
StartMachineResp
()
{
super
(
TcpMapper
.
CMD_RSP_START_CHARGING
.
getType
());
super
(
TcpMapper
.
CMD_RSP_START_CHARGING
.
getType
());
}
}
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/CrcTest.java
View file @
f870e67
...
...
@@ -9,7 +9,7 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.login.HeartbeatReq;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.login.HeartbeatRsp
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.login.LoginReq
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.login.LoginRsp
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.
login.TimeNotify
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.
time.TimeSettingReq
;
import
cn.com.glsx.charging.util.ByteUtils
;
import
cn.com.glsx.charging.util.CrcUtils
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -107,7 +107,7 @@ public class CrcTest {
String
hex
=
"68120002005655031412782305F055020E070B178676"
;
log
.
info
(
hex
);
byte
[]
bytes
=
ByteUtils
.
fromHex
(
hex
);
Time
Notify
protocol
=
Ocpp16Helper
.
parse
(
bytes
);
Time
SettingReq
protocol
=
Ocpp16Helper
.
parse
(
bytes
);
log
.
info
(
"expect: "
+
protocol
.
getCrc
());
byte
[]
data
=
ByteUtils
.
getBytes
(
bytes
,
2
,
bytes
.
length
-
4
);
...
...
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