예제 #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)