scapy.contrib.automotive.xcp.cto_commands_slave
- class scapy.contrib.automotive.xcp.cto_commands_slave.CalPagePositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED 1 | RESERVED 2 |LOGICAL DATA PA| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. CalPagePositiveResponse
CalPagePositiveResponse fields reserved_1
0
reserved_2
0
logical_data_page_number
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ChecksumPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
Packet
- aliastypes
- checksum_type_dict = {1: 'XCP_ADD_11', 2: 'XCP_ADD_12', 3: 'XCP_ADD_14', 4: 'XCP_ADD_22', 5: 'XCP_ADD_24', 6: 'XCP_ADD_44', 7: 'XCP_CRC_16', 8: 'XCP_CRC_16_CITT', 9: 'XCP_CRC_32', 255: 'XCP_USER_DEFINED'}
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHECKSUM TYPE | RESERVED | CHECKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ChecksumPositiveResponse
ChecksumPositiveResponse fields checksum_type
0
reserved
0
checksum
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.CommonModeInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED1 |COMM MODE OPTIO| RESERVED2 | MAX BS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MIN ST | QUEUE SIZE |XCP DRIVER VERS| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. CommonModeInfoPositiveResponse
CommonModeInfoPositiveResponse fields reserved1
0
comm_mode_optional
<Flag 0 ()>
reserved2
0
max_bs
0
min_st
0
queue_size
0
xcp_driver_version_number
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ConnectPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESOURCE |COMM MODE BASIC| MAX CTO | MAX DTO | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | MAX DTO LE |XCP PROTOCOL LA| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |XCP TRANSPORT L| +-+-+-+-+-+-+-+-+ Fig. ConnectPositiveResponse
ConnectPositiveResponse fields resource
<Flag 0 ()>
comm_mode_basic
<Flag 0 ()>
max_cto
0
max_dto
ShortField
(Cond)0
max_dto_le
LEShortField
(Cond)0
xcp_protocol_layer_version_number_msb
1
xcp_transport_layer_version_number_msb
1
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQClockListPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RECEIVE TIMESTAMP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. DAQClockListPositiveResponse
DAQClockListPositiveResponse fields reserved
0
receive_timestamp
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQEventInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |DAQ EVENT PROPE| MAX DAQ LIST |EVENT CHANNEL N|EVENT CHANNEL T| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |EVENT CHANNEL T|EVENT CHANNEL P| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. DAQEventInfoPositiveResponse
DAQEventInfoPositiveResponse fields daq_event_properties
<Flag 0 ()>
max_daq_list
0
event_channel_name_length
0
event_channel_time_cycle
0
event_channel_time_unit
0
event_channel_priority
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQListInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |DAQ LIST PROPER| MAX ODT |MAX ODT ENTRIES| FIXED EVENT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. DAQListInfoPositiveResponse
DAQListInfoPositiveResponse fields daq_list_properties
<Flag 0 ()>
max_odt
0
max_odt_entries
0
fixed_event
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQListModePositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CURRENT MODE | RESERVED |CURRENT EVENT C| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |CURRENT PRESCAL|CURRENT DAQ LIS| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. DAQListModePositiveResponse
DAQListModePositiveResponse fields current_mode
<Flag 0 ()>
reserved
0
current_event_channel_number
0
current_prescaler
0
current_daq_list_priority
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQProcessorInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DAQ PROPERTIES| MAX DAQ |MAX EVENT CHANN| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | MIN DAQ | DAQ KEY BYTE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. DAQProcessorInfoPositiveResponse
DAQProcessorInfoPositiveResponse fields daq_properties
<Flag 0 ()>
max_daq
0
max_event_channel
0
min_daq
0
daq_key_byte
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQResolutionInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |GRANULARITY ODT|MAX ODT ENTRY S|GRANULARITY ODT|MAX ODT ENTRY S| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TIMESTAMP MODE| TIMESTAMP TICKS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. DAQResolutionInfoPositiveResponse
DAQResolutionInfoPositiveResponse fields granularity_odt_entry_size_daq
0
max_odt_entry_size_daq
0
granularity_odt_entry_size_stim
0
max_odt_entry_size_stim
0
timestamp_mode
<Flag 0 ()>
timestamp_ticks
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.EvPacket(*args: Any, **kargs: Any)[source]
Bases:
Packet
Event packet
- aliastypes
- event_code_enum = {0: 'EV_RESUME_MODE', 1: 'EV_CLEAR_DAQ', 2: 'EV_STORE_DAQ', 3: 'EV_STORE_CAL', 5: 'EV_CMD_PENDING', 6: 'EV_DAQ_OVERLOAD', 7: 'EV_SESSION_TERMINATED', 254: 'EV_USER', 255: 'EV_TRANSPORT'}
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | EVENT CODE | EVENT INFORMATION DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. EvPacket
EvPacket fields event_code
0
event_information_data
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.GenericResponse(*args: Any, **kargs: Any)[source]
Bases:
Packet
Command Response 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COMMAND RESPONSE DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GenericResponse
GenericResponse fields command_response_data
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.IdPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MODE | RESERVED | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | ELEMENT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. IdPositiveResponse
IdPositiveResponse fields mode
0
reserved
0
length
None
element
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.NegativeResponse(*args: Any, **kargs: Any)[source]
Bases:
Packet
Error Packet
- aliastypes
- error_code_enum = {0: 'ERR_CMD_SYNCH', 16: 'ERR_CMD_BUSY', 17: 'ERR_DAQ_ACTIVE', 18: 'ERR_PGM_ACTIVE', 32: 'ERR_CMD_UNKNOWN', 33: 'ERR_CMD_SYNTAX', 34: 'ERR_OUT_OF_RANGE', 35: 'ERR_WRITE_PROTECTED', 36: 'ERR_ACCESS_DENIED', 37: 'ERR_ACCESS_LOCKED', 38: 'ERR_PAGE_NOT_VALID', 39: 'ERR_MODE_NOT_VALID', 40: 'ERR_SEGMENT_NOT_VALID', 41: 'ERR_SEQUENCE', 42: 'ERR_DAQ_CONFIG', 48: 'ERR_MEMORY_OVERFLOW', 49: 'ERR_GENERIC', 50: 'ERR_VERIFY'}
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ERROR CODE | ERROR INFO | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. NegativeResponse
NegativeResponse fields error_code
0
error_info
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.PagProcessorInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MAX SEGMENT | PAG PROPERTIES| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PagProcessorInfoPositiveResponse
PagProcessorInfoPositiveResponse fields max_segment
0
pag_properties
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.PageInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |PAGE PROPERTIES| INIT SEGMENT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PageInfoPositiveResponse
PageInfoPositiveResponse fields page_properties
<Flag 0 ()>
init_segment
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.PgmProcessorPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PGM PROPERTIES| MAX SECTOR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PgmProcessorPositiveResponse
PgmProcessorPositiveResponse fields pgm_properties
<Flag 0 ()>
max_sector
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ProgramStartPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | COMM MODE PGM | MAX CTO PGM | MAX BS PGM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MIN BS PGM | QUEUE SIZE PGM| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ProgramStartPositiveResponse
ProgramStartPositiveResponse fields reserved
0
comm_mode_pgm
<Flag 0 ()>
max_cto_pgm
0
max_bs_pgm
0
min_bs_pgm
0
queue_size_pgm
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ReadDAQPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | BIT OFFSET |SIZE DAQ ELEMEN|ADDRESS EXTENSI|DAQ ELEMENT ADD| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ReadDAQPositiveResponse
ReadDAQPositiveResponse fields bit_offset
0
size_daq_element
0
address_extension_daq_element
0
daq_element_address
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SectorInfoPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |CLEAR SEQUENCE |PROGRAM SEQUENC|PROGRAMMING MET| SECTOR INFO | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SectorInfoPositiveResponse
SectorInfoPositiveResponse fields clear_sequence_number
0
program_sequence_number
0
programming_method
0
sector_info
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SeedPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEED LENGTH | SEED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SeedPositiveResponse
SeedPositiveResponse fields seed_length
None
seed
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode0PositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | BASIC INFO | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SegmentInfoMode0PositiveResponse
SegmentInfoMode0PositiveResponse fields reserved
0
basic_info
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode1PositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MAX PAGES |ADDRESS EXTENSI| MAX EXTENSION |COMPRESSION MET| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |ENCRYPTION METH| +-+-+-+-+-+-+-+-+ Fig. SegmentInfoMode1PositiveResponse
SegmentInfoMode1PositiveResponse fields max_pages
0
address_extension
0
max_extension
0
compression_method
0
encryption_method
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode2PositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MAPPING INFO | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SegmentInfoMode2PositiveResponse
SegmentInfoMode2PositiveResponse fields reserved
0
mapping_info
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentModePositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | MODE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SegmentModePositiveResponse
SegmentModePositiveResponse fields reserved
0
mode
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.ServPacket(*args: Any, **kargs: Any)[source]
Bases:
Packet
Service Request 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |SERVICE REQUEST| COMMAND RESPONSE DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ServPacket
ServPacket fields service_request_code
0
command_response_data
b''
- service_request_code_enum = {0: 'SERV_RESET', 1: 'SERV_TEXT'}
- class scapy.contrib.automotive.xcp.cto_commands_slave.ShortUploadPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ALIGNMENT | ELEMENT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ShortUploadPositiveResponse
ShortUploadPositiveResponse fields alignment
StrLenField
(Cond)b''
element
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.StartStopDAQListPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.automotive.xcp.cto_commands_slave.StatusPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |CURRENT SESSION|CURRENT RESOURC| RESERVED |SESSION CONFIGU| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. StatusPositiveResponse
StatusPositiveResponse fields current_session_status
<Flag 0 ()>
current_resource_protection_status
<Flag 0 ()>
reserved
0
session_configuration_id
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.TransportLayerCmdGetDAQIdResponse(*args: Any, **kargs: Any)[source]
Bases:
Packet
- aliastypes
- can_id_fixed_enum = {0: 'configurable', 1: 'fixed'}
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CAN ID FIXED | RESERVED | CAN IDENTIFIER| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TransportLayerCmdGetDAQIdResponse
TransportLayerCmdGetDAQIdResponse fields can_id_fixed
254
reserved
0
can_identifier
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.TransportLayerCmdGetSlaveIdResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | POSITION 1 | POSITION 2 | POSITION 3 | CAN IDENTIFIER| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TransportLayerCmdGetSlaveIdResponse
TransportLayerCmdGetSlaveIdResponse fields position_1
88
position_2
67
position_3
80
can_identifier
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.UnlockPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |CURRENT RESOURC| +-+-+-+-+-+-+-+-+ Fig. UnlockPositiveResponse
UnlockPositiveResponse fields current_resource_protection_status
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.UploadPositiveResponse(*args: Any, **kargs: Any)[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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ALIGNMENT | ELEMENT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. UploadPositiveResponse
UploadPositiveResponse fields alignment
StrLenField
(Cond)b''
element
b''