Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
new-socketemulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
new-socketemulator
Commits
c9fa1e49
Commit
c9fa1e49
authored
Apr 30, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
M500 协议,修改了事件上报页面1
parent
2adbecfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/protocol/report/EventReport_protocol.py
lib/protocol/report/EventReport_protocol.py
+2
-2
No files found.
lib/protocol/report/EventReport_protocol.py
View file @
c9fa1e49
...
@@ -250,7 +250,7 @@ class EventReport_protocol(ProtocolBase):
...
@@ -250,7 +250,7 @@ class EventReport_protocol(ProtocolBase):
int
(
eventData
[
"0021"
][
"allSharpSlowdownCount"
]),
int
(
eventData
[
"0021"
][
"allSharpSlowdownCount"
]),
int
(
eventData
[
"0021"
][
"allSharpTurn"
]),
int
(
eventData
[
"0021"
][
"allSharpTurn"
]),
int
(
eventData
[
"0021"
][
"dataProperty"
]))
int
(
eventData
[
"0021"
][
"dataProperty"
]))
data
=
data
+
"002
0
"
+
self
.
int2hexStringByBytes
(
int
((
len
(
theData
)
/
2
)),
2
)
+
theData
data
=
data
+
"002
1
"
+
self
.
int2hexStringByBytes
(
int
((
len
(
theData
)
/
2
)),
2
)
+
theData
if
(
"0022"
in
eventData
.
keys
()):
#急转弯
if
(
"0022"
in
eventData
.
keys
()):
#急转弯
eventObj
=
EventClass
()
eventObj
=
EventClass
()
eventObj
.
setGPSpkg
(
self
.
GPSPkg
)
eventObj
.
setGPSpkg
(
self
.
GPSPkg
)
...
@@ -260,7 +260,7 @@ class EventReport_protocol(ProtocolBase):
...
@@ -260,7 +260,7 @@ class EventReport_protocol(ProtocolBase):
int
(
eventData
[
"0022"
][
"allSharpTurn"
]),
int
(
eventData
[
"0022"
][
"allSharpTurn"
]),
int
(
eventData
[
"0022"
][
"direction"
]),
int
(
eventData
[
"0022"
][
"direction"
]),
int
(
eventData
[
"0022"
][
"dataProperty"
]))
int
(
eventData
[
"0022"
][
"dataProperty"
]))
data
=
data
+
"002
0
"
+
self
.
int2hexStringByBytes
(
int
((
len
(
theData
)
/
2
)),
2
)
+
theData
data
=
data
+
"002
2
"
+
self
.
int2hexStringByBytes
(
int
((
len
(
theData
)
/
2
)),
2
)
+
theData
if
(
"0036"
in
eventData
.
keys
()):
#低档高速报警
if
(
"0036"
in
eventData
.
keys
()):
#低档高速报警
eventObj
=
EventClass
()
eventObj
=
EventClass
()
theData
=
eventObj
.
lowGearHighSpeedAlarm
(
int
(
eventData
[
"0036"
][
"alarmType"
]),
int
(
eventData
[
"0036"
][
"durationTime"
]))
theData
=
eventObj
.
lowGearHighSpeedAlarm
(
int
(
eventData
[
"0036"
][
"alarmType"
]),
int
(
eventData
[
"0036"
][
"durationTime"
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment