Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

coTfsSDODownloadUploadAndCompare (Level 2)

Feature availability for your product: CANoe DE • CANoe:lite DE • CANoe4SW DE

Function Syntax

long coTfsSDODownloadUploadAndCompare( dword index, dword subIndex, dword size, qword downloadValue ); // form 1
long coTfsSDODownloadUploadAndCompare( dword index, dword subIndex, dword size, byte downloadValueBuf[], dword valueBufSize ); // form 2

Description

This function executes a complete SDO download to write the object value and after that a SDO upload to read the written value. Depending on the number of data, this is either an expedited upload (up to 4 bytes) or a segmented transfer. Afterwards the received data is compared against the data supplied. It is not possible to fetch the received data using coTfsGetSdoUploadData after this function was called. (2) can be used for maximum 4 byte objects only.

Parameters

  • index: Object index
  • subIndex: Object subindex
  • size: Expected data length.
  • downloadValue: Value that is to be written.
  • downloadValueBuf[]: Data pointer for data to be written.
  • valueBufSize: Buffer size in byte of downloadValueBuf.

Return Values

  • error code or
    • 0: data mismatch
    • 1: supplied data matches received data
    • 2: data length mismatch

Example