scapy.contrib.automotive.xcp.cto_commands_slave
- class scapy.contrib.automotive.xcp.cto_commands_slave.CalPagePositiveResponse(_pkt, /, *, reserved_1=0, reserved_2=0, logical_data_page_number=0)[源代码]
基类:
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(_pkt, /, *, checksum_type=0, reserved=0, checksum=0)[源代码]
基类:
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(_pkt, /, *, reserved1=0, comm_mode_optional=<Flag 0 ()>, reserved2=0, max_bs=0, min_st=0, queue_size=0, xcp_driver_version_number=0)[源代码]
基类:
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(_pkt, /, *, resource=<Flag 0 ()>, comm_mode_basic=<Flag 0 ()>, max_cto=0, max_dto=0, max_dto_le=0, xcp_protocol_layer_version_number_msb=1, xcp_transport_layer_version_number_msb=1)[源代码]
基类:
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(_pkt, /, *, reserved=0, receive_timestamp=0)[源代码]
基类:
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(_pkt, /, *, 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)[源代码]
基类:
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(_pkt, /, *, daq_list_properties=<Flag 0 ()>, max_odt=0, max_odt_entries=0, fixed_event=0)[源代码]
基类:
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(_pkt, /, *, current_mode=<Flag 0 ()>, reserved=0, current_event_channel_number=0, current_prescaler=0, current_daq_list_priority=0)[源代码]
基类:
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(_pkt, /, *, daq_properties=<Flag 0 ()>, max_daq=0, max_event_channel=0, min_daq=0, daq_key_byte=<Flag 0 ()>)[源代码]
基类:
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(_pkt, /, *, 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)[源代码]
基类:
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(_pkt, /, *, event_code=0, event_information_data=b'')[源代码]
基类:
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(_pkt, /, *, command_response_data=b'')[源代码]
基类:
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(_pkt, /, *, mode=0, reserved=0, length=None, element=b'')[源代码]
基类:
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(_pkt, /, *, error_code=0, error_info=b'')[源代码]
基类:
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(_pkt, /, *, max_segment=0, pag_properties=<Flag 0 ()>)[源代码]
基类:
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(_pkt, /, *, page_properties=<Flag 0 ()>, init_segment=0)[源代码]
基类:
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(_pkt, /, *, pgm_properties=<Flag 0 ()>, max_sector=0)[源代码]
基类:
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(_pkt, /, *, reserved=0, comm_mode_pgm=<Flag 0 ()>, max_cto_pgm=0, max_bs_pgm=0, min_bs_pgm=0, queue_size_pgm=0)[源代码]
基类:
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(_pkt, /, *, bit_offset=0, size_daq_element=0, address_extension_daq_element=0, daq_element_address=0)[源代码]
基类:
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(_pkt, /, *, clear_sequence_number=0, program_sequence_number=0, programming_method=0, sector_info=0)[源代码]
基类:
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(_pkt, /, *, seed_length=None, seed=b'')[源代码]
基类:
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(_pkt, /, *, reserved=0, basic_info=0)[源代码]
基类:
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(_pkt, /, *, max_pages=0, address_extension=0, max_extension=0, compression_method=0, encryption_method=0)[源代码]
基类:
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(_pkt, /, *, reserved=0, mapping_info=0)[源代码]
基类:
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(_pkt, /, *, reserved=0, mode=<Flag 0 ()>)[源代码]
基类:
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(_pkt, /, *, service_request_code=0, command_response_data=b'')[源代码]
基类:
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(_pkt, /, *, alignment=b'', element=b'')[源代码]
基类:
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(_pkt, /, *, first_pid=0)[源代码]
基类:
Packet- aliastypes
- class scapy.contrib.automotive.xcp.cto_commands_slave.StatusPositiveResponse(_pkt, /, *, current_session_status=<Flag 0 ()>, current_resource_protection_status=<Flag 0 ()>, reserved=0, session_configuration_id=0)[源代码]
基类:
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(_pkt, /, *, can_id_fixed=254, reserved=0, can_identifier=0)[源代码]
基类:
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(_pkt, /, *, position_1=88, position_2=67, position_3=80, can_identifier=0)[源代码]
基类:
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(_pkt, /, *, current_resource_protection_status=<Flag 0 ()>)[源代码]
基类:
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(_pkt, /, *, alignment=b'', element=b'')[源代码]
基类:
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''