Commit c9fa1e49 authored by liyuanhong's avatar liyuanhong

M500 协议,修改了事件上报页面1

parent 2adbecfa
...@@ -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 + "0020" + self.int2hexStringByBytes(int((len(theData) / 2)), 2) + theData data = data + "0021" + 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 + "0020" + self.int2hexStringByBytes(int((len(theData) / 2)), 2) + theData data = data + "0022" + 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"]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment