Beispiel #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)
Beispiel #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)
Beispiel #3
0
 def payload(self):
     rpm = self.car.getRPM()
     return hex_to_str(rpm*4, 4)
Beispiel #4
0
 def payload(self):
     rpm = self.car.getRPM()
     return hex_to_str(rpm * 4, 4)
Beispiel #5
0
 def payload(self):
     return hex_to_str(0x0000, 4) # 4 bytes sure?!
Beispiel #6
0
 def payload(self):
     pids_supported = self.car.getPIDsSupported()
     return hex_to_str(pids_supported, 8)
Beispiel #7
0
 def payload(self):
     return hex_to_str(None)
Beispiel #8
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data1 = 50 * 0x100
     data2 = 50
     return hex_to_str(data1+data2, 4)
Beispiel #9
0
 def payload(self):
     return hex_to_str(None)
Beispiel #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
Beispiel #11
0
 def payload(self):
     return hex_to_str(0x06, 2)
Beispiel #12
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data1 = 50 * 0x100
     data2 = 50
     return hex_to_str(data1 + data2, 4)
Beispiel #13
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data = 99
     return hex_to_str(data, 2)
Beispiel #14
0
 def payload(self):
     vss = self.car.getVSS()
     return hex_to_str(vss, 2)
Beispiel #15
0
 def payload(self):
     vss = self.car.getVSS()
     return hex_to_str(vss, 2)
Beispiel #16
0
 def payload(self):
     return hex_to_str(0x014400000000, 12)
Beispiel #17
0
 def payload(self):
     # Temporary implemented as an uniform variable
     data = 99
     return hex_to_str(data, 2)
Beispiel #18
0
 def payload(self):
     pids_supported = self.car.getPIDsSupported()
     return hex_to_str(pids_supported, 8)
Beispiel #19
0
 def payload(self):
     return hex_to_str(0x06, 2)
Beispiel #20
0
 def payload(self):
     return hex_to_str(0x8307E500, 8)
Beispiel #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
Beispiel #22
0
 def payload(self):
     return hex_to_str(0x0000, 4)  # 4 bytes sure?!
Beispiel #23
0
 def payload(self):
     return hex_to_str(0x014400000000, 12)
Beispiel #24
0
 def payload(self):
     return hex_to_str(0x0100, 4)
Beispiel #25
0
 def payload(self):
     return hex_to_str(0x8307E500, 8)
Beispiel #26
0
 def payload(self):
     return hex_to_str(0x51, 4)
Beispiel #27
0
 def payload(self):
     return hex_to_str(0x0100, 4)
Beispiel #28
0
 def payload(self):
     return hex_to_str(0x51, 4)