MC ECU Connect.vi
- Updated2023-02-21
- 4 minute(s) read
MC ECU Connect.vi
Purpose
Establishes the communication to the selected ECU through the CCP protocol. After a successful ECU Connect you can create a Measurement Task or read/write a Characteristic.
Format
Input
![]() |
ECU ref in is the task reference which links to the selected ECU. This reference is originally returned from MC ECU Open.vi or MC ECU Select.vi, and then wired through subsequent VIs. | ||||||
![]() |
Mode is a parameter for the CONNECT command, used only with XCP, user-defined. The default is 0 (normal mode). | ||||||
![]() |
Error in is a cluster which describes error conditions occurring before the VI executes. If an error has already occurred, the VI returns the value of the error in cluster to error out.
|
Output
![]() |
ECU ref out is the same as ECU ref in. Wire the task reference to subsequent VIs for this task. | ||||||
![]() |
Error out describes error conditions. If the Error in cluster indicated an error, the Error out cluster contains the same information. Otherwise, Error out describes the error status of this VI.
|
Description
If you are using the CCP protocol, MC ECU Connect.vi implements the CCP CONNECT command. If you are using the XCP protocol, MC ECU Connect.vi implements the XCP command CONNECT. It establishes a logical connection to an ECU, using the provided ECU Reference handle. Unless a slave device (ECU) is disconnected, it must not execute or respond to any command sent by the application. Only one CCP slave can be connected to the application at a time from a set of CCP slaves sharing identical CRO and DTO identifiers.
MC ECU Connect.vi is an optional function and is automatically performed before MC Characteristic Read.vi, MC Characteristic Write.vi, MC DAQ Initialize.vi, any MC CCP xxx command, or any MC XCP xxx command is performed.