示例#1
0
 def payload(self):
     a = 0x01
     a = 0x43 + a * 0x100
     a = 0x01 + a * 0x100
     a = 0x44 + a * 0x100
     a = 0x01 + a * 0x100
     a = 0x52 + a * 0x100
     return hex_to_str(a, 12)
示例#2
0
 def payload(self):
     a = 0x01
     a = 0x43 + a * 0x100
     a = 0x01 + a * 0x100
     a = 0x44 + a * 0x100
     a = 0x01 + a * 0x100
     a = 0x52 + a * 0x100
     return hex_to_str(a, 12)
示例#3
0
 def payload(self):
     rpm = self.car.getRPM()
     return hex_to_str(rpm*4, 4)
示例#4
0
 def payload(self):
     rpm = self.car.getRPM()
     return hex_to_str(rpm * 4, 4)
示例#5
0
 def payload(self):
     return hex_to_str(0x0000, 4) # 4 bytes sure?!
示例#6
0
 def payload(self):
     pids_supported = self.car.getPIDsSupported()
     return hex_to_str(pids_supported, 8)
示例#7
0
 def payload(self):
     return hex_to_str(None)
示例#8
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data1 = 50 * 0x100
     data2 = 50
     return hex_to_str(data1+data2, 4)
示例#9
0
 def payload(self):
     return hex_to_str(None)
示例#10
0
 def response(self):
     msg = hex_to_str(0x40 + self.getService(), 2)
     msg += hex_to_str(self.getPID(), 2)
     msg += self.payload()
     return msg
示例#11
0
 def payload(self):
     return hex_to_str(0x06, 2)
示例#12
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data1 = 50 * 0x100
     data2 = 50
     return hex_to_str(data1 + data2, 4)
示例#13
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data = 99
     return hex_to_str(data, 2)
示例#14
0
 def payload(self):
     vss = self.car.getVSS()
     return hex_to_str(vss, 2)
示例#15
0
 def payload(self):
     vss = self.car.getVSS()
     return hex_to_str(vss, 2)
示例#16
0
 def payload(self):
     return hex_to_str(0x014400000000, 12)
示例#17
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data = 99
     return hex_to_str(data, 2)
示例#18
0
 def payload(self):
     pids_supported = self.car.getPIDsSupported()
     return hex_to_str(pids_supported, 8)
示例#19
0
 def payload(self):
     return hex_to_str(0x06, 2)
示例#20
0
 def payload(self):
     return hex_to_str(0x8307E500, 8)
示例#21
0
 def response(self):
     msg =  hex_to_str(0x40 + self.getService(), 2)
     msg += hex_to_str(self.getPID(), 2)
     msg += self.payload()
     return msg
示例#22
0
 def payload(self):
     return hex_to_str(0x0000, 4)  # 4 bytes sure?!
示例#23
0
 def payload(self):
     return hex_to_str(0x014400000000, 12)
示例#24
0
 def payload(self):
     return hex_to_str(0x0100, 4)
示例#25
0
 def payload(self):
     return hex_to_str(0x8307E500, 8)
示例#26
0
 def payload(self):
     return hex_to_str(0x51, 4)
示例#27
0
 def payload(self):
     return hex_to_str(0x0100, 4)
示例#28
0
 def payload(self):
     return hex_to_str(0x51, 4)