My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
RecordIDs  
data identifier for read write data services
Updated Mar 22, 2011 by s179309...@wehebrink.net

Reprogramming IDs (0xFExx)

Erase Flash Memory (0xFE10)

Erases the flash memory of a selected block.

Parameters:

D0 D1 D2 D3 D4 D5
block number

Program Flash Memory (0xFE20)

Initiates flash programming for a selected block. The parameter block number addresses the block within the flash memory.

Parameters:

D0 D1 D2 D3 D4 D5
block number

Finalize Flash Download (0xFE21)

Verifies the consistency of programmed data and enables the requeste block.

Parameters:

D0 D1 D2 D3 D4 D5
block number

Program Hardware Identification(0xFE28)

Initiates flash programming for the hardware identification block. This programming service does not have parameters. The block can not be erased and only be written once.

Parameters:



D0 D1 D2 D3 D4 D5

System IDs (0xFFxx)

Protocol Reset (0xFF00)

Reset the current protocol session. This incldes includes:

  • TransferData up- and download state machine

Parameters: none

Start Transfer Download Session (0xFF10)

Set the transfer data download session state machine to 'init'. After this command the ECU expects the raw data block via transfer download.

Parameters:

D0 D1 D2 D3 D4 D5
len-hi len-lo encoding

length

  • length of downloaded data block

encoding

  • 0x00 - none
  • 0x01 - RLE

Response:

D0 D1 D2 D3 D4 D5
len-hi len-lo

length

  • Maximum allowed size of a transfer data block. If the data size exceeds this limit a data segmentation is required.

Finalize Transfer Download Session (0xFF11)

Finalize the transfer data download session. The protocol state machine will be switched to finished and the transfer status will be returned.

Parameters: none

Start Transfer Upload Session (0xFF20)

Start the transfer data upload session, after this command the ECU will start uploading the data on the bus until all data is sent. Parameter encoding has values:

  • 0x00 - none
  • 0x01 - RLE

Parameters:

D0 D1 D2 D3 D4 D5
encoding

Finalize Transfer Upload Session (0xFF21)

Finalize the transfer upload session, pending uploads will be stopped. The result of the upload will be returned.

Parameters: none

Switch Application Mode (0xFF80)

Change the application mode. The parameter mode sets which mode is selected. The switch is performed after a reboot. Values for mode:

  • 0x00 for Bootblock
  • 0x01 for Application

Parameters:

D0 D1 D2 D3 D4 D5
mode

System Reset (0xFF88)

Resets the system after performing a clean shutdown of all functions. This means all volatile data will be written, the outputs are switched to a safe state, etc...

Parameters: none

Read VID/UID (0xFFFE)

The node will send its unique ID.

Parameters: none

Response:

D0 D1 D2 D3 D4 D5
VID0 VID1 UID0 UID1 UID2 UID3

  • VID is the ID of the vendor providing the node's hardware/software.
  • UID is the unique ID of the node. Usually this is a serial number and/or the production date of the hardware.

NegativeResponseFlag (0xFFFF)

Used only for error response messages. Please see the wiki page CanCommunicationProtocol for more informations about the layout of the NegativeResponse message.

Decoding of global used NegativeResponseCode:

  • COM_RID_SYS_E_SEQUENCE (0x01) - Sequence error usually in the command order for TransferData requests.
  • COM_RID_SYS_E_UNKNOWN_ID (0x02) - RecordID unknown.
  • COM_RID_SYS_E_DATA_LEN (0x10) - Request frame oder TransferData block have an invalid size.
  • COM_RID_SYS_E_SEGMENTATION (0x11) - TransferData download frames have a invalid segmentation.
  • COM_RID_SYS_E_PENDING (0x7F) - Requested operation not finished in time. Final response or further 'pending' responses required.
  • COM_RID_SYS_E_SERVICE_SPECIFIC (0xFE) - Service specific NegativeResponseCode, the next data byte contains the service specific code of the NegativeResponse.
  • COM_RID_SYS_E_GENERAL (0xFF) - Unspecified error.

Powered by Google Project Hosting