CCS Standardfunction K2000Ini [] |
Target_Address 5Baud_Stimulation [INT]
Initializes and establishes communication via the diagnosis interface for the KW2000 protocol. In contrast with the function
ComInit
IDH_ComInit
, which applies to all protocols (but does not permit any protocol-specific parameter settings), the function K2000Ini specifies all parameters that are required to establish serial communication. For KWP2000 communication via the CAN, the function CAN2000Ini can be used.
This function only supports physical addressing.
This function does not return a value.
Caution! The timing parameters to be specified in the testing function apply to the tester and are generally different from the settings programmed on the control unit.
Specifies the KW2000 address of the control unit. Permissible values are 0 ... 255.
Specifies the type of initialization (stimulation)
0 Æ No initialization
(This mode is used to set/alter communication parameters for the tester without re-establishing communication or interrupting communication in progress.)
Specifies the lines on which initialization (stimulation) is to take place.
0 Æ K + L lead
1 Æ L lead
2 Æ K lead
Default setting: 0
Timing parameters for communication between tester and control unit (parameters P1 .. P4 as per Keyword Protocol 2000; for explanations, refer to Diagram TimingParameter1 with the same title. The suffix min or max is appended to the parameter name in order to indicate that either the minimum or maximum figure is to be specified).
Specifies the maximum time the tester must wait between the receipt of 2 bytes.
Default value: 20
Specifies the maximum time the tester must wait for a response from the control unit.
Default value for normal timing: 50 ms
Default value for extended timing: 1000 ms
Resolution: 25 ms (to 6 s; beyond that, the resolution becomes coarser; refer to Keyword Protocol 2000 documentation).
Specifies the time the tester has to wait after a response from the control unit before it can start a new query.
Default value for normal timing: 55 ms
Default value for extended timing: 0 ms
Resolution: 0.5 ms
Specifies the maximum period that is allowed to elapse after a response from the control unit before the tester has to start a new query (to prevent communication breaking down). (Special case: P3Max = 0 ms is interpreted as no time limit, i.e. P3Max = ·.)
Default value: 5000 ms
Resolution: 250 ms
Specifies the minimum time the tester must wait between sending 2 bytes.
Default value: 5 ms
Resolution: 0.5 ms
Timing parameters for 5-baud initialization (parameters W1 .. P4 as per Keyword Protocol 2000; for explanations, refer to Diagram TimingParameter2 with the same title. The suffix min or max is appended to the parameter in order to indicate that either the minimum or maximum figure is to be specified).
Specifies the maximum period the tester must wait during 5-baud initialization for the synchronization word from the control unit after sending the address.
Default value: 300 ms
Specifies the maximum period the tester must wait for KB1 during 5-baud initialization after receipt of the synchronization word.
Default value: 20 ms
Specifies the maximum period the tester must wait for KB2 during 5-baud initialization after receipt of KB1.
Default value: 20 ms
Specifies the maximum period the tester must wait during 5-baud initialization after receiving KB2 before it can send the inverted KB2 back to the control unit.
Default value: 25 ms
Specifies the maximum period the tester must wait during 5-baud initialization for the response from the control unit (inverted control unit address) after sending the inverted KB2.
Default value: 50 ms
Specifies the minimum period the tester must wait (after control unit is switched on) before it can start establishing communication (sending the address byte). This figure applies both to 5-baud initialization and to quick initialization.
Default value: 300 ms
Timing parameters for quick initialization (Parameters TiniL and TWuP as per Keyword Protocol 2000; for explanation see diagram TimingParameter3 of the same name.
Specifies Low period for the wake-up pattern.
Default value: 25 ms
Specifies total duration of wake-up pattern (Low phase + High phase).
Default value: 50 ms
Specifies the baud rate for communication.
Default value: 10400
Specifies whether the tester should send Tester Present messages to the control unit of its own accord to prevent communication breaking down.
The following values are allowed:
|
Automatically send Tester Present message if the period specified by P3max has elapsed since the last communication. |
Target_Address 5Baud_Stimulation [Dec]
Target address for 5-baud stimulation.
Timing parameters for communication between tester and control unit (excerpt from Keyword Protocol 2000 Part 2)
|
Time between client (tester) request and server (ECU) response or two server (ECU) responses |
|
|
Time between end of server (ECU) responses and start of new client (tester) request |
|
Timing parameters for 5-baud initialization (excerpt from Keyword Protocol 2000 Part 2)