scapy.contrib.automotive.obd.services
- class scapy.contrib.automotive.obd.services.OBD_DTC(_pkt, /, *, location=0, code1=0, code2=0, code3=0, code4=0)[source]
Bases:
OBD_Packet
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |LOC|COD| CODE2 | CODE3 | CODE4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. OBD_DTC
location
0
code1
XBitField
(2 bits)0
code2
XBitField
(4 bits)0
code3
XBitField
(4 bits)0
code4
XBitField
(4 bits)0
- locations = {0: 'Powertrain', 1: 'Chassis', 2: 'Body', 3: 'Network'}
- class scapy.contrib.automotive.obd.services.OBD_NR(_pkt, /, *, request_service_id=0, response_code=0)[source]
Bases:
Packet
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |REQUEST SERVICE| RESPONSE CODE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. OBD_NR
request_service_id
0
response_code
0
- responses = {16: 'generalReject', 17: 'serviceNotSupported', 18: 'subFunctionNotSupported-InvalidFormat', 33: 'busy-RepeatRequest', 34: 'conditionsNotCorrectOrRequestSequenceError', 120: 'requestCorrectlyReceived-ResponsePending'}
- class scapy.contrib.automotive.obd.services.OBD_S01(_pkt, /, *, pid=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S02(_pkt, /, *, requests=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S02_Record(_pkt, /, *, pid=0, frame_no=0)[source]
Bases:
OBD_Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S03_PR(_pkt, /, *, count=None, dtcs=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S06(_pkt, /, *, mid=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S07_PR(_pkt, /, *, count=None, dtcs=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S08(_pkt, /, *, tid=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S09(_pkt, /, *, iid=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.obd.services.OBD_S0A_PR(_pkt, /, *, count=None, dtcs=[])[source]
Bases:
Packet
- aliastypes