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
30876794
Commit
30876794
authored
Oct 29, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复M500故障码最多只能发送9的的问题
parent
bfb189d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lib/protocol/message/DataUpstreamTransport_msg.py
lib/protocol/message/DataUpstreamTransport_msg.py
+1
-1
templates/protocolTools/report/M_carSimulater_page.html
templates/protocolTools/report/M_carSimulater_page.html
+7
-1
No files found.
lib/protocol/message/DataUpstreamTransport_msg.py
View file @
30876794
...
@@ -362,7 +362,7 @@ class DataUpstreamTransport_msg(MessageBase):
...
@@ -362,7 +362,7 @@ class DataUpstreamTransport_msg(MessageBase):
# troubleCode = troubleCode + self.int2hexStringByBytes(i,4)
# troubleCode = troubleCode + self.int2hexStringByBytes(i,4)
tbc0
=
systemId
tbc0
=
systemId
tbc1
=
self
.
int2hexStringByBytes
(
0
)
tbc1
=
self
.
int2hexStringByBytes
(
0
)
tbc2
=
self
.
int2hexStringByBytes
(
i
)
tbc2
=
self
.
int2hexStringByBytes
(
i
+
1
)
tbc3
=
self
.
int2hexStringByBytes
(
0
)
tbc3
=
self
.
int2hexStringByBytes
(
0
)
troubleCode
=
troubleCode
+
tbc0
+
tbc1
+
tbc2
+
tbc3
troubleCode
=
troubleCode
+
tbc0
+
tbc1
+
tbc2
+
tbc3
data
=
infoTime
+
latitude
+
longitude
+
troubleCodeNumsHex
+
troubleCode
data
=
infoTime
+
latitude
+
longitude
+
troubleCodeNumsHex
+
troubleCode
...
...
templates/protocolTools/report/M_carSimulater_page.html
View file @
30876794
...
@@ -1265,11 +1265,17 @@ function sendTroubleCode(){
...
@@ -1265,11 +1265,17 @@ function sendTroubleCode(){
var
systemId
=
$
(
"
#systemId
"
).
val
()
var
systemId
=
$
(
"
#systemId
"
).
val
()
var
status
=
$
(
"
#status
"
).
val
()
var
status
=
$
(
"
#status
"
).
val
()
var
troubleCode
=
[]
var
troubleCode
=
[]
var
conTemp
=
""
for
(
var
i
=
0
;
i
<
troubleCodeNum
;
i
++
){
for
(
var
i
=
0
;
i
<
troubleCodeNum
;
i
++
){
var
temp
=
{}
var
temp
=
{}
temp
[
"
systemId
"
]
=
systemId
temp
[
"
systemId
"
]
=
systemId
temp
[
"
content1
"
]
=
"
00
"
temp
[
"
content1
"
]
=
"
00
"
temp
[
"
content2
"
]
=
"
0
"
+
(
i
+
1
)
conTemp
=
(
i
+
1
).
toString
(
16
);
if
(
conTemp
.
length
==
1
){
temp
[
"
content2
"
]
=
"
0
"
+
conTemp
}
else
{
temp
[
"
content2
"
]
=
conTemp
}
temp
[
"
status
"
]
=
status
temp
[
"
status
"
]
=
status
troubleCode
.
push
(
temp
)
troubleCode
.
push
(
temp
)
}
}
...
...
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