scapy.contrib.automotive.xcp.cto_commands_slave
- class scapy.contrib.automotive.xcp.cto_commands_slave.CalPagePositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. CalPagePositiveResponseCalPagePositiveResponse fields reserved_1
0reserved_2
0logical_data_page_number
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ChecksumPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. ChecksumPositiveResponseChecksumPositiveResponse fields checksum_type
0reserved
0checksum
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.CommonModeInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. CommonModeInfoPositiveResponseCommonModeInfoPositiveResponse fields reserved1
0comm_mode_optional
<Flag 0 ()>reserved2
0max_bs
0min_st
0queue_size
0xcp_driver_version_number
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ConnectPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. ConnectPositiveResponseConnectPositiveResponse fields resource
<Flag 0 ()>comm_mode_basic
<Flag 0 ()>max_cto
0max_dto
ShortField(Cond)0max_dto_le
LEShortField(Cond)0xcp_protocol_layer_version_number_msb
1xcp_transport_layer_version_number_msb
1
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQClockListPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. DAQClockListPositiveResponseDAQClockListPositiveResponse fields reserved
0receive_timestamp
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQEventInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. DAQEventInfoPositiveResponseDAQEventInfoPositiveResponse fields daq_event_properties
<Flag 0 ()>max_daq_list
0event_channel_name_length
0event_channel_time_cycle
0event_channel_time_unit
0event_channel_priority
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQListInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. DAQListInfoPositiveResponseDAQListInfoPositiveResponse fields daq_list_properties
<Flag 0 ()>max_odt
0max_odt_entries
0fixed_event
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQListModePositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. DAQListModePositiveResponseDAQListModePositiveResponse fields current_mode
<Flag 0 ()>reserved
0current_event_channel_number
0current_prescaler
0current_daq_list_priority
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQProcessorInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. DAQProcessorInfoPositiveResponseDAQProcessorInfoPositiveResponse fields daq_properties
<Flag 0 ()>max_daq
0max_event_channel
0min_daq
0daq_key_byte
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.DAQResolutionInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. DAQResolutionInfoPositiveResponseDAQResolutionInfoPositiveResponse fields granularity_odt_entry_size_daq
0max_odt_entry_size_daq
0granularity_odt_entry_size_stim
0max_odt_entry_size_stim
0timestamp_mode
<Flag 0 ()>timestamp_ticks
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.EvPacket(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.PacketEvent 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. EvPacketEvPacket fields event_code
0event_information_data
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.GenericResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.PacketCommand 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. GenericResponseGenericResponse fields command_response_data
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.IdPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. IdPositiveResponseIdPositiveResponse fields mode
0reserved
0length
Noneelement
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.NegativeResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.PacketError 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. NegativeResponseNegativeResponse fields error_code
0error_info
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.PagProcessorInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. PagProcessorInfoPositiveResponsePagProcessorInfoPositiveResponse fields max_segment
0pag_properties
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.PageInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. PageInfoPositiveResponsePageInfoPositiveResponse fields page_properties
<Flag 0 ()>init_segment
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.PgmProcessorPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. PgmProcessorPositiveResponsePgmProcessorPositiveResponse fields pgm_properties
<Flag 0 ()>max_sector
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ProgramStartPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. ProgramStartPositiveResponseProgramStartPositiveResponse fields reserved
0comm_mode_pgm
<Flag 0 ()>max_cto_pgm
0max_bs_pgm
0min_bs_pgm
0queue_size_pgm
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.ReadDAQPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. ReadDAQPositiveResponseReadDAQPositiveResponse fields bit_offset
0size_daq_element
0address_extension_daq_element
0daq_element_address
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SectorInfoPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. SectorInfoPositiveResponseSectorInfoPositiveResponse fields clear_sequence_number
0program_sequence_number
0programming_method
0sector_info
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SeedPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. SeedPositiveResponseSeedPositiveResponse fields seed_length
Noneseed
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode0PositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. SegmentInfoMode0PositiveResponseSegmentInfoMode0PositiveResponse fields reserved
0basic_info
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode1PositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. SegmentInfoMode1PositiveResponseSegmentInfoMode1PositiveResponse fields max_pages
0address_extension
0max_extension
0compression_method
0encryption_method
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode2PositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. SegmentInfoMode2PositiveResponseSegmentInfoMode2PositiveResponse fields reserved
0mapping_info
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.SegmentModePositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. SegmentModePositiveResponseSegmentModePositiveResponse fields reserved
0mode
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.ServPacket(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.PacketService 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. ServPacketServPacket fields service_request_code
0command_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:
scapy.packet.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. ShortUploadPositiveResponseShortUploadPositiveResponse fields alignment
StrLenField(Cond)b''element
b''
- class scapy.contrib.automotive.xcp.cto_commands_slave.StartStopDAQListPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.Packet- aliastypes
- class scapy.contrib.automotive.xcp.cto_commands_slave.StatusPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. StatusPositiveResponseStatusPositiveResponse fields current_session_status
<Flag 0 ()>current_resource_protection_status
<Flag 0 ()>reserved
0session_configuration_id
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.TransportLayerCmdGetDAQIdResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. TransportLayerCmdGetDAQIdResponseTransportLayerCmdGetDAQIdResponse fields can_id_fixed
254reserved
0can_identifier
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.TransportLayerCmdGetSlaveIdResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. TransportLayerCmdGetSlaveIdResponseTransportLayerCmdGetSlaveIdResponse fields position_1
88position_2
67position_3
80can_identifier
0
- class scapy.contrib.automotive.xcp.cto_commands_slave.UnlockPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. UnlockPositiveResponseUnlockPositiveResponse fields current_resource_protection_status
<Flag 0 ()>
- class scapy.contrib.automotive.xcp.cto_commands_slave.UploadPositiveResponse(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.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. UploadPositiveResponseUploadPositiveResponse fields alignment
StrLenField(Cond)b''element
b''