Bi-CAN I/O gateway
User's Guide
27/09/2006
DUT-MUX-0199E /V1.13
Written by:
Brice ORLANDINI
Approved by:
Christian ANDAGNOTTO
Page intentionally left blank
Bi-CAN I/O gateway - User's Guide
I. Contents
I. CONTENTS ............................................................................................................................ 1
II. WARNINGS .......................................................................................................................... 3
III. PURPOSE OF THE DOCUMENT.................................................................................... 4
IV. GENERAL DESCRIPTION............................................................................................... 5
IV.1 Description of unit ........................................................................................................ 5
IV.2 Connectors .................................................................................................................... 6
IV.3 Characteristics............................................................................................................... 9
IV.3.1 Dimensions / Weight ........................................................................................ 9
IV.3.2 Power supply / Consumption............................................................................ 9
IV.3.3 Inputs / Outputs ................................................................................................ 9
V. OPERATION......................................................................................................................... 11
V.1 Block diagram ................................................................................................................ 11
V.2 Principle ......................................................................................................................... 11
V.2.1 Input variables.................................................................................................... 12
V.2.1.1 Analog input variables ........................................................................ 12
V.2.1.2 Logical input variables........................................................................ 12
V.2.1.3 Frequency input variables ................................................................... 12
V.2.1.4 CAN input variables............................................................................ 12
V.2.2 Internal variables................................................................................................ 13
V.2.3 Output variables................................................................................................. 15
V.2.3.1 Analog output variables ...................................................................... 15
V.2.3.2 High-side logical output variables ...................................................... 15
V.2.3.3 Low-side logical output variables ....................................................... 15
V.2.3.4 CAN output variables.......................................................................... 16
V.2.4 CAN gateway..................................................................................................... 16
V.2.5 Transmission of periodic frames........................................................................ 17
V.2.6 Setting the CAN channel baud rate.................................................................... 17
V.3 Example of use ............................................................................................................... 18
V.3.1 Requirement....................................................................................................... 18
V.3.2 Solution.............................................................................................................. 18
V.3.3 Block diagram:................................................................................................... 19
VI. UPDATING AND SETUP................................................................................................... 20
VI.1 Description.................................................................................................................... 20
VI.2 Files required ................................................................................................................ 20
VI.3 Wiring ........................................................................................................................... 20
VI.3.1 Connection........................................................................................................ 20
VI.3.2 Parameter setting .............................................................................................. 21
VI.4 Using DataMUX ........................................................................................................... 22
VI.5 Using CANape (Vector) ............................................................................................... 23
VI.5.1 Creating a CANapé setup ................................................................................. 23
VI.5.2 Updating the application................................................................................... 25
VI.5.2.1 Forced downloading .......................................................................... 25
VI.5.2.2 Downloading the application............................................................. 26
VI.5.3 Modifying the setup parameters ....................................................................... 28
September 2006
DUT-MUX-0199E /V1.13
-1-
Bi-CAN I/O gateway - User's Guide
VI.6 Using INCA V5.2 (ETAS) for the Bi-CAN I/O configuration..................................... 30
VI.6.1 Installing Files for the configuration of the Bi-CAN I/O ................................. 30
VI.6.2 Import new datasets / *.hex files ...................................................................... 31
VI.6.3 Hardware Configuration................................................................................... 33
VI.6.4 Select and open a dataset before changing it.................................................... 35
VI.6.5 Changing parameter values in an INCA experimentation................................ 37
VI.6.6 Upload a Dataset from the Bi-CAN I/O Gateway............................................ 39
VI.6.7 *.hex file creation with a new Bi-CAN I/O configuration. .............................. 40
VI.6.8 Download a dataset in the Bi-CAN I/O (in the flash memory) ........................ 41
VI.6.9 User options to check in INCA PC................................................................... 42
-2-
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
II. Warnings
The information given in this document is for guidance only. It may be subject to
modification without notice and shall in no case be taken as binding on Société Anonyme
NSI.
Société Anonyme NSI shall in no case be held liable for any error contained in this document
or any consequences of such an error.
No part of this document shall be reproduced for any purpose other than the purchaser's
personal use without the specific written consent of Société Anonyme NSI.
September 2006
DUT-MUX-0199E /V1.13
-3-
Bi-CAN I/O gateway - User's Guide
III. Purpose of the document
The purpose of this document is to provide the user with all the information required for the
installation and utilisation of the Bi-CAN I/O gateway.
-4-
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
IV. General description
IV.1 Description of unit
The Bi-CAN I/O gateway is fitted with three connectors and three indicator lamps:
Indicator lamps (x3):
• Power supply/Operating mode
• Status of CAN channel 1
• Status of CAN channel 2
Connector for
analog
inputs/outputs
Connector for power
supply and CAN
Bus (x2).
Connector for logical
inputs/outputs (low
side and high side).
Indicator lamps are used as follows :
•
•
Power supply/Operating mode :
•
Slow blinking : Boot mode
•
Static on : Parametrizing mode
•
Long/short alternated blinking : Normal mode
CAN status (1 or 2) :
•
Off : No bus traffic
•
Fast blinking : Bus errors (speed, Bi-CAN I/O Tx frame acknowledgement, …)
•
Slow blinking : Normal bus activity
September 2006
DUT-MUX-0199E /V1.13
-5-
Bi-CAN I/O gateway - User's Guide
IV.2 Connectors
The three connectors are of LEMO type.
•
CAN and power supply connector: 14 pin
Connector labelled "SUPPLY BUS" on Bi-CAN I/O front face
•
ODU reference: G52LOC-T14QF00-A000
•
LEMO reference: FGG.2B.314.CLAD99Z
Pin 1
Pin No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Type of signal
CAN 1 L (High Speed)
CAN 1 H (High Speed)
Power GND
Power GND
CAN 2 L **
CAN 2 H **
+BAT
+BAT
+BAT
Signal /PROG
EXT_WAKE signal
Power GND
Power GND
+BAT
** : According to the model of Bi-CAN I/O, the channel CAN 2 is either High Speed, or Low
Speed.
The reading of the front face Bi-CAN I/O makes it possible to know the type of Bi-CAN I/O
- “Bi-CAN I/O HS/HS”: 2 CAN High Speed channels
- “Bi-EDGE I/O HS/LS”: the CAN 1 channel is High Speed, the CAN 2 channel is Low
Speed
-6-
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
•
Digital input / output connector: 30 pin
Connector labelled "DIGITAL I/O" on Bi-CAN I/O front face and keyed with red ring.
•
ODU reference: G53LOC-T30QF00-A000
•
LEMO reference: FGG.3B.330.CLAD10Z
Pin No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Pin 1
September 2006
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DUT-MUX-0199E /V1.13
Type of signal
Low side output 5 (or PWM
frequency output 3)
Low side output 6 (or PWM
frequency output 4)
Low side output 7
Low side output 8
High side output 1
High side output 2
High side output 3
High side output 4
High side output 5
High side output 6
High side output 7
High side output 8
Low side output 1
Low side output 2
Low side output 3 (or PWM
frequency output 1)
Low side output 4 (or PWM
frequency output 2)
Digital input 1
Digital input 2
Digital input 3
Digital input 4
Digital input 5
Digital input 6
Digital input 7
Digital input 8
Frequency input 1
Frequency input 2
Frequency input 3
GND
Frequency input 4
GND
-7-
Bi-CAN I/O gateway - User's Guide
•
Analog input / output connectors: 26 pin
Connector marked "ANALOG I/O" on Bi-CAN I/O front face and keyed with yellow
ring.
•
ODU reference: G53LOC-T26QF00-A000
•
LEMO reference: FGG.3B.326.CLAD92Z
Pin 1
-8-
Pin No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DUT-MUX-0199E /V1.13
Type of signal
Sensor pwr supply +5 V
Sensor pwr supply +5 V
GND
GND
Analog output 1
Analog output 2
Analog output 3
Analog output 4
Analog output 5
Analog output 6
Analog output 7
Analog output 8
Sensor pwr supply +10 V
Sensor pwr supply +10 V
GND
GND
GND
GND
Analog input 1
Analog input 2
Analog input 3
Analog input 4
Analog input 5
Analog input 6
Analog input 7
Analog input 8
September 2006
Bi-CAN I/O gateway - User's Guide
IV.3 Characteristics
IV.3.1 Dimensions / Weight
•
Length x Height x Depth:
111 x 48 x 180 mm
•
Weight:
640 g
IV.3.2 Power supply / Consumption
•
Power supply range:
•
Max. power consumption (with no load): 23 W
8 V to 32 V
IV.3.3 Inputs / Outputs
All inputs / outputs are protected against short-circuits to ground and to +BAT.
•
Analog inputs:
•
8 inputs
•
Input range: 0 V / 10 V or 0 V / 50 V.
•
Resolution : 12 bits
•
Input impedance
•
0 V / 10 V: 100 kΩ
•
0 V / 50 V: 25 kΩ
•
Logical inputs:
•
•
•
•
8 inputs
•
Input range: 0 V / +BAT or 0 V / 5 V
Frequency inputs:
•
4 inputs
•
Input range: 0 V / +BAT
•
Measuring range: from 0 to 5 kHz with switching threshold at +BAT/2
Analog outputs:
•
8 outputs
•
Output range: 0 V / 10 V
•
Accuracy: 12 bits
•
Max. current: 10 mA dc
Low side logic outputs:
September 2006
DUT-MUX-0199E /V1.13
-9-
Bi-CAN I/O gateway - User's Guide
•
8 outputs including 4 PWMs with frequency adjustable from 0 to 4 kHz and duty
cycle from 0 to 100% (high level duration / period)
•
Rated output current per channel:
•
1 A dc at 25°C*
•
0.6 A dc at 85°C*
•
High side logic outputs:
•
8 outputs
•
Output voltage: +Bat
•
Rated output current per channel:
•
1.5 A dc at 25°C
•
0.87 A dc at 85°C
•
Sensor power supply outputs:
•
2 outputs 5 V, 1%
•
2 outputs 10 V, 1%
(*): The current on all the outputs must not exceed the rated current.
- 10 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
V. Operation
V.1 Block diagram
From
physical
inputs
Analog,
logical and
frequency
input variables
Analog,
logical and
PWM output
variables
To
physical
outputs
Internal
variables
CAN input
variables
CAN output
variables
Periodic
CAN
frames
To CAN
CAN
From
CAN
gateway
V.2 Principle
The Bi-CAN I/O gateway converts digital, Analog, frequency or CAN inputs to digital,
Analog, PWM or CAN outputs. This conversion is performed by means of internal variables
which apply a transfer function to the input values.
The operation of the Bi-CAN I/O gateway is based on three types of variables that can be
modified with a tool using CCP protocol (CAN Calibration Protocol).
These variables are described with PC software, using databases in ASAP2 format. The three
types of variables are as follows:
•
input variables which are a copy of the input information (voltage, logical status,
frequency or value of a CAN signal);
•
internal variables which create a value from an input value and a transfer function;
•
output variables which give the status of physical outputs or CAN signals, using the
values calculated by the internal variables.
September 2006
DUT-MUX-0199E /V1.13
- 11 -
Bi-CAN I/O gateway - User's Guide
V.2.1 Input variables
V.2.1.1 Analog input variables
There are 8 Analog input variables (one for each input). Only the input voltage range can be
parameterised, e.g.: either " 0/10 V ANA input" or " 0/50 V ANA input".
The index of Analog inputs is between 0 and 7.
V.2.1.2 Logical input variables
There are 8 logical input variables (one for each input). Only the input voltage range can be
parameterised, e.g.: either "0 / 5 V input" or "0 / +Battery input".
The index of Analog inputs is between 0 and 7.
V.2.1.3 Frequency input variables
There are 4 frequency input variables. An operating mode parameter can be modified. At
present, this parameter is not taken into account and the frequency inputs operate as frequency
inputs only.
The index of frequency inputs is between 0 and 3.
V.2.1.4 CAN input variables
There are 64 CAN input variables. The index of CAN input variables is between 0 and 63.
Each variable contains 7 parameters, as follows:
•
« Reseau_signal_entree_CAN_x » : Number of the CAN channel on which the
information is recovered,
•
« Identifier_signal_entree_CAN_x » : Identifier of the frame in which the information is
recovered,
•
« Position_signal_entree_CAN_x » : Position (in bits) of the information,
•
« Longueur_signal_entree_CAN_x » : Length (in bits) of the information,
•
« Codage_signal_entree_CAN_x » : Type of information encoding. Three formats are
available :
•
Intel : Classic Intel format.
•
Motorola for ascendanding compatibility: the same numbering way as in old version
of software (until version 1.4).
•
Motorola : Classic Motorola format.
Remark:
1. The bits are numbered as follows :
- 12 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
(Signal 1)
Byte 0
7
(Signal2)
(Signal3)
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
0 15
8 23
16 31 25 24 39
32 47 45 40 55 54 48 63 60 56
2. In Motorola format (MOTOROLA) , the Signal 1 (the first two bytes signal) will be
defined as follows :
•
Position : bit 7.
•
Size : 16 bits.
And the Signal 2 as follows :
•
Position : bit 25.
•
Size : 13 bits.
3. In
« Motorola
for
ascending
compatibility »
format
(MOTOROLA_COMPATIBILITE_ASC) , the Signal 1 (the first two bytes signal) will be
defined as follows :
•
Position : bit 0.
•
Size : 16 bits.
The Signal 2 can not be defined in the old version of the gateway software so with the
MOTOROLA_COMPATIBILITE_ASC.
4. In Intel format, the Signal 1 will be defined as follows :
•
Position : bit 0.
•
Size : 16 bits.
And the Signal 3 as follows :
•
Position : bit 54.
•
Size : 7 bits.
V.2.2 Internal variables
There are 128 internal variables (index 0 to 127). These variables can be used to perform
operations on the inputs and generate values for the outputs. Each variable contains 11
parameters which can be used to define the operation to be performed and as from which
input or inputs.
•
« Choix_type_entrée_1_Variable_x » : Type of first input variable used. The possible
values are « Variable interne », « Entrée logique », « Entrée analogique », « Entrée
fréquence », « Entrée signal CAN » and « Pas utilisée » ("Internal variable", "Logical
input", "Analog input", "Frequency input", "CAN signal input" and "Not used").
•
« Signal_Entrée_X1_Variable_x »: Index
« Choix_type_entrée_1_Variable_x ».
•
« Choix_type_entrée_2_Variable_x » : Type of second input variable used. The only
possible values are « Variable interne » or « Pas utilisee ».
September 2006
of
input
DUT-MUX-0199E /V1.13
1
among
inputs
of
type
- 13 -
Bi-CAN I/O gateway - User's Guide
•
« Signal_Entrée_X2_Variable_x » : Index of input 2 among inputs of type
« Choix_type_entrée_2_Variable_x ».
•
« Choix_de_calcul_Variable_x » : Type of calculation to be performed. The following
calculations are available:
•
« Variable = aX + b en long »,
•
« Variable = aX2 + bX + c en long »,
•
« Variable = (aX + b) / (cX +d) en long »,
•
« Variable = aX + b en float »,
•
« Variable = aX2+ bX + c en float »,
•
« Variable = (aX + b) / (cX +d) en float,
•
« Variable = aX1 + bX2 en long »,
•
« Variable = aX1 + bX2 en float ».
The last two calculations allow combinations between several inputs. The second variable
(X2) must be configured as an internal variable. It cannot be an input variable in any
circumstances.
For example, if two voltages have to be added, three internal variables will be required: two to
recover the voltages in the two input variables (each being a transfer function) and one to add
the two voltages.
If X is a variable using an analog input, the corresponding unit is Volt. If it is a variable using
a frequency input, the unit is Hertz.
Using “long” functions allows to convert a decimal result (float) into an integer.
Remark:
Due to processing time requirements, the depth of calculations of internal variables is limited
to 3. It is impossible to perform an operation of the type "aX1 + bX2" with the internal
variable X2 using a calculation of type "aX3 + bX4".
•
« COEF_A_VARIABLE_x » : Value of coefficient "a" for the various types of
calculation. (Must always be configured).
•
« COEF_B_VARIABLE_x » : Value of coefficient "b" for the various types of
calculation. (Must always be configured).
•
« COEF_C_VARIABLE_x » : Value of coefficient "c" for the various types of
calculation. (Must be configured for some operations).
•
« COEF_D_VARIABLE_x » : Value of coefficient "d" for the various types of
calculation. (Must be configured for some operations).
•
« Valeur_Max_Variable_x » : Upper limit for the internal variable. The result will be
limited to this maximum if the calculated value exceeds it.
•
« Valeur_Min_Variable_x » : Lower limit for the internal variable. The result will be
limited to this minimum if the calculated value is lower.
- 14 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
Remark: Coefficients and limits are always expressed as floating-point values. The Bi-CAN
I/O gateway may or may not convert them according to whether the calculation is performed
in integer mode or floating point mode (decimal).
V.2.3 Output variables
V.2.3.1 Analog output variables
There are 8 Analog output variables (one for each output). The following two parameters can
be set:
•
« Mode_sortie_ANA_x » : parameter not processed,
•
« Variable_pilotage_ANA_x » : Index of internal variable associated with the output.
V.2.3.2 High-side logical output variables
There are 8 high-side logical output variables (one for each output). Only the corresponding
internal variable can be configured with the « Variable_sortie_logique_HS_x». parameter.
The level of the logical output will be defined by the parity of the value of the associated
internal variable (less significant bit):
•
Even
Æ
Low level (0),
•
Odd
Æ
High level (1).
V.2.3.3 Low-side logical output variables
There are 8 low-side logical output variables (one for each output). The following parameters
can be set:
•
« Utilisation_PWM_Sortie_LS_x» : Utilisation of the low-side output in PWM mode.
This parameter is only active for the first 4 low-side outputs.
•
« Variable_sortie_logique_LS_x » : Index of the internal variable associated with the
output.
•
« Rapport_cyclique_LS_x » : Duty cycle of the low-side output if configured as PWM.
The value of the associated internal variable will be interpreted as the frequency of the
PWM signal.
If the PWM parameter is active and has been set, the value of the internal variable will be
interpreted as the frequency of the PWM low-side output. The duty factor will be as defined
by the « Rapport_cyclique_LS_x » parameter.
If the PWM parameter is inactive or has not been set, the level of the logical output will be
defined by the parity of the value of the associated internal variable:
•
Even
Æ
Low level,
•
Odd
Æ
High level.
September 2006
DUT-MUX-0199E /V1.13
- 15 -
Bi-CAN I/O gateway - User's Guide
V.2.3.4 CAN output variables
There are 64 CAN output variables. A variable of this type contains an index on an internal
variable and information defining a CAN signal: ident, transmission channel, position, size,
etc..
A CAN output variable does not imply that the frame defined in the CAN output variable will
be transmitted but that if the frame defined in the output variable (same transmission channel
and same identifier) is transmitted, then the information contained in the output variable will
be included in the frame's data field.
CAN output variables are applicable to all types of transmitted frames (periodic and gateway).
Each variable contains 6 parameters, as follows:
•
« Reseau_signal_sortie_CAN_x » : Channel number of the frame in which the value of
the output variable is to be included.
•
« Identifier_signal_sortie_CAN_x » : Identifier of the frame in which the information is to
be sent.
•
« Position_signal_ sortie _CAN_x » : Position (in bits) of the information.
•
« Longueur_signal_sortie_CAN_x » : Length (in bits) of the information.
•
« Codage_signal_sortie_CAN_x » : Type of information encoding. Three formats are
available :
•
•
Intel : Classic Intel format.
•
Motorola for ascendanding compatibility: the same numbering way as in old version
of software (until version 1.4).
•
Motorola : Classic Motorola format.
« Variable_Sortie_CAN_x » : Index of the internal variable associated with the output.
V.2.4 CAN gateway
The Bi-CAN I/O unit can provide a CAN gateway between two CAN networks. The frame
retransmission time is less than 2 ms.
The two CAN channels can be set to different baud rates. The following configurations are
possible:
•
Transfer a frame from one CAN channel to another with the same identifier,
•
Transfer a frame from one CAN channel to another with a different identifier,
•
Transfer a frame from one CAN channel to another with a data field of different length,
•
Modify the contents of a frame by using CAN output variables,
•
Transmit a frame on the same channel on receiving a given identifier.
It is possible to configure up to 16 gateway frames. The following parameters can be set:
- 16 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
•
« Canal_CAN_Reception_x » : Channel on which the source frame is received.
•
« IDentifier_Rx_x » : Identifier of source frame.
•
« Canal_CAN_transmission_x » : Channel on which the target frame is transmitted.
•
« IDentifier_Tx_x » : Identifier of the target frame.
•
« DLC_Tx_x » : Size of target frame data field.
V.2.5 Transmission of periodic frames
The Bi-CAN I/O unit can transmit up to 16 periodic frames. The minimum period is 5 ms.
The data fields of frames are made up using the corresponding CAN output variables. If no
variable is linked to a frame, the data field will be null.
5 parameters are required to configure a periodic frame, as follows:
•
« Canal_Trame_CAN_x » : CAN channel on which the frame is transmitted,
•
« DLC_trame_CAN_transmission_x » : DLC of the frame to be transmitted,
•
« Format_Trame_CAN_x » : Format of the identifier (standard or extended),
•
« Identifier_Trame_CAN_x » : Identifier of the frame to be transmitted,
•
« Periode_trame_CAN_transmission_x » : Frame transmission period ( ≥ 5 ms).
V.2.6 Setting the CAN channel baud rate
Two parameters are used to configure the baud rates of high-speed CAN channel 0 (CAN1)
and high-speed CAN channel 1 (CAN2) respectively. These parameters are as follows:
•
« Vitesse_CAN_Canal_0 » : Baud rate of CAN1,
•
« Vitesse_CAN_Canal_1 » : Baud rate of CAN2.
The available baud rates are 250 and 500 kbit/s.
The available baud rates are 250 and 500 kbit/s, until version 1.8 of firmware and version 3.0
of a2L file.
With creation of a Bi-CAN I/O which CAN2 is Low-speed, some baudrates have been added :
10, 20 , 33.33, 50, 83.33, 95.238, 100, 125.
The baudrate High - speed 1Mbits/s has also been added.
September 2006
DUT-MUX-0199E /V1.13
- 17 -
Bi-CAN I/O gateway - User's Guide
V.3 Example of use
V.3.1 Requirement
To transmit frame 0x200 on channel 2 on reception of identifier frame 0x100 on channel 1
and, also, to insert the Analog voltage of Analog input 1 in the signal, positioned as from bit 5
and 16 bits long in frame 0x200.
V.3.2 Solution
•
Configure an internal variable storing Analog channel 1.
•
Configure a CAN output variable redirected to the previous internal variable, positioning
the information on bit 5 with a size of 16 bits in frame 0x200 transmitted on channel 2.
•
Configure a gateway frame where the reception parameters are frame 0x100 on channel 1
and the transmission parameters are frame 0x200 on channel 2 with a data field size of 32
(for example).
- 18 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
Analog input 1
V.3.3 Block diagram:
Internal variable 1:
Frame 0x100
reception on
channel 1
•
•
•
Gateway frame 1
• « Canal_CAN_Reception_1 » : 1
• « IDentifier_Rx_1 » : 0x100
• « Canal_CAN_transmission_1 » : 2
• « IDentifier_Tx_1 » : 0x200
• « DLC_Tx_1 » : 16
Frame 0x200
transmission
on channel 2
modified by
CAN output
variable
September 2006
•
•
•
•
•
•
•
« Choix_type_entrée_1_Variable_1 » :
« Entrée analogique »
« Signal_Entrée_X1_Variable_1 » : 1
« Choix_type_entrée_2_Variable_1 » :
« Pas utilisee ».
« Signal_Entrée_X2_Variable_1 » : 0
« Choix_de_calcul_Variable_1 » :
« Variable = aX + b en long »
« COEF_A_VARIABLE_1 » : 1
« COEF_B_VARIABLE_1 » : 0
« COEF_C_VARIABLE_1 » : 0
« COEF_D_VARIABLE_1 » : 0
« Valeur_Max_Variable_1 » : 100
CAN output variable
• « Reseau_signal_sortie_CAN_1 » : 2
• « Identifier_signal_sortie_CAN_1 » :
0x200
• « Position_signal_ sortie _CAN_1 » : 5
• « Longueur_signal_sortie_CAN_1 » :
16
• « Codage_signal_sortie_CAN_1 » :
Intel.
DUT-MUX-0199E /V1.13
- 19 -
Bi-CAN I/O gateway - User's Guide
VI. Updating and setup
VI.1 Description
The Bi-CAN I/O gateway can be configured by any software handling ASAP2 type databases
and using the CCP 2.1 protocol for calibration. At present, parameters can be set with the
following software: DataMUX, Vector CANapé and ETAS Inca PC 5.2.
VI.2 Files required
The files required for setup and downloading are:
•
The ASAP2 database (.a2l files): there are two a2l files, one for DataMUX & CANape
and one for INCA PC 3.2.
•
A memory map file (.mps file): required for CANape.
•
The application's compiled code (.s file): used only with DataMUX or CANape to update
the application.
•
A reference data set (.hex file): required to set up INCA PC 5.2.
The files are obtained by decompressing the self-extracting archive contained on the CD
supplied with the Bi-CAN I/O gateway.
VI.3 Wiring
VI.3.1 Connection
Connection between a NSI CAN interface, a Vector CANcardX or an ETAS ES690.1 unit and
the Bi-CAN I/O gateway is made using two DB9 connectors. The following connections must
be made:
•
For CAN channel 1:
CAN H
CAN L
Ground
- 20 -
DB9
7
2
3
DUT-MUX-0199E /V1.13
Bi-CAN I/O cables
2
1
3
September 2006
Bi-CAN I/O gateway - User's Guide
•
For CAN channel 2:
DB9
7
2
3
CAN H
CAN L
Ground
Bi-CAN I/O cables
6
5
4
In both cases, in a High-speed network, don’t forget to add 60Ω terminal resistors on cable
end between CAN H and CAN L.
Remark: When wiring the Bi-CAN I/O gateway in an existing high-speed network, this
terminal resistor must not be added.
VI.3.2 Parameter setting
When using DataMUX, simply follow the wizard instructions.
For the other tools, the process is as follows :
•
•
In order to start the Bi-CAN I/O gateway in parameter setting mode (to modify its setup
parameters), the following operations must be performed:
•
Disconnect the unit's power supply.
•
Tie the "/PROG" signal (pin 10 on the 14-pin connector) to the ground.
•
Power on to the unit (with the short-circuit maintained).
After this operation, the unit switches to parameters setting mode and the red indicator
lamp stays on. It is then possible to start a setup phase with CANape or INCA PC 5.2.
September 2006
DUT-MUX-0199E /V1.13
- 21 -
Bi-CAN I/O gateway - User's Guide
VI.4 Using DataMUX
The NSI DataMUX wizard is especially designed to setup and download the Bi-CAN I/O
configurations as well as to upgrade the firmware.
Refer to the software user’s guide reference DUT-MUX-0244 (DataMUX Bi-CAN I/O user’s
guide)
- 22 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
VI.5 Using CANape (Vector)
VI.5.1 Creating a CANapé setup
•
Start CANape.
•
In the "Display" menu, select "Device Window". A window appears.
•
Right click the window and select "New Device…".
•
Then set the parameters as follows.
•
Name the equipment:
•
Select the type of driver for communication: CCP:
September 2006
DUT-MUX-0199E /V1.13
- 23 -
Bi-CAN I/O gateway - User's Guide
•
Configure the driver and Flash mapping :
•
Select the ASAP2 database:
- 24 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
•
Select the memory map file:
VI.5.2 Updating the application
VI.5.2.1 Forced downloading
Downloading of the application can be forced by the reception of a CAN frame transmitted in
padding mode (by CANalyzer, for example). The frame parameters are as follows:
•
Baud rate :
•
CAN channel : 1
•
Ident :
0xfe (Standard)
•
Period :
1 ms
•
DLC :
8
• Data :
0x30
0x12
1,000 kbit/s
0x00
0x00
0x00
0x00
0x00
This frame must be received as soon as the unit is switched on. When this frame has been
received, the unit switches to CAN download standby mode (CCP protocol) and the red
indicator lamp flashes slowly. When the unit is in this state, cut off the transmission of the
frame while leaving the Bi-CAN I/O gateway powered on and switch to CANapé.
Remark: Only switch the unit on after having started the periodic transmission of the forcing
frame.
September 2006
DUT-MUX-0199E /V1.13
- 25 -
Bi-CAN I/O gateway - User's Guide
VI.5.2.2 Downloading the application
•
Switch the format of the ECU to Motorola. Modify the CAN network setup so that the
baud rate is equal to 1,000 kbit/s: right click "CCP Offline" and then "Driver
Configuration…". The following window appears:
•
Select "Baudrate".
•
Set the baud rate to 1,000 kbit/s and then select the sampling parameters after clicking
"Calculate bustiming register". Select "OK" until all the windows are closed.
- 26 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
•
Connect to the Bi-CAN I/O gateway: Right click on the "CCP offline" module in the
"Device window" window.
Driver status
Unit
•
Select "Device Active" and then "Online". In this way, the Bi-CAN I/O gateway is
connected. (The diagram switches to dark and then the connection is made between the
unit and the driver).
•
In the "Calibration" menu, select "Download file to Flash".
•
Select the ".s" file corresponding to the application to be downloaded and start the
download.
•
After the download completion, modify the loaded application download flag. To modify
this flag, go into direct calibration mode ("Calibration" menu and then select "Direct
calibration") and then select "Calibration window" in the "Display" menu.
Application flag loaded
September 2006
DUT-MUX-0199E /V1.13
- 27 -
Bi-CAN I/O gateway - User's Guide
•
Double-click the "Flag_Appli" parameter. A new window appears allowing direct edition
of the variable.
•
Set the variable to 13,330 in decimal mode or 0x3412.
•
Disconnect the unit by right clicking the "CCP ONLINE" module in the "Device window"
(devalidate "Online" and then "Device Active") and then switch it off.
VI.5.3 Modifying the setup parameters
•
Set the ECU format to Motorola/ASAP and set the CAN baud rate to 500 kbit/s (see
VI.3.2.2 Downloading the application).
•
Connect to the Bi-CAN I/O gateway: In the "Device window", right click the "CCP
offline" module. (Note: the gateway must be wired so as to be in parameter setting mode).
•
Select "Device Active" and then "Online". In this way, the Bi-CAN I/O gateway is
connected.
- 28 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
•
In the "Display" menu, select "Group Calibration window". The following window
appears:
•
Select the group to be configured and modify the values directly in the open windows.
Example:
•
Group of parameters for gateway frame No. 10:
•
Group of parameters for periodic frame No. 7:
September 2006
DUT-MUX-0199E /V1.13
- 29 -
Bi-CAN I/O gateway - User's Guide
VI.6 Using INCA
configuration
V5.2
(ETAS)
for
the
Bi-CAN
I/O
To configure the Bi-CAN I/O Gateway, you have to install the software INCA PC© which
installation program is on the ETAS CD-ROM. This software is not supplied with the BiCAN I/O and its license protected.
Some people may have used INCA PC for other tasks like calibration or tuning and should
have already installed it. For the other ones, please refer to the installation manual delivered
with the CD.
VI.6.1 Installing Files for the configuration of the Bi-CAN I/O
Extract files from the archiv « config_INCA_BicanIO.zip » in a directory.
As default, we advice to use the directory « export » created during the installation of INCA
PC. For exemple : « D:\ETASData\INCA5.2\export »
The file extracted is from the type « export » ( *.exp ) : We will import it in INCA to access
the different files it is made of (menu « Edition/import »).
- 30 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
Here is a description of the different types of files :
the “experimentations” are some pre-defined windows, where you can display and
modify some parameters and variables of the *.a2l files (tables, variables, etc…).
the “projects” are made of one *.a2l file (this file describes the memory mapping
for the different parameters in the ECU) and one *.hex file containing the values of those
parameters and sometime the software.
in the “workspaces”, you can choose the hardware configuration you will use (for
us, either the OFFLINE mode: no Hardware connected, or the ONLINE mode: we will use
for example a PCMCIA card and the CCP communication), the project which parameters
have to be modified and the experimentation you will see to reach those parameters.
VI.6.2 Import new datasets / *.hex files
The values of the parameters of the Bi-CAN I/O are contained in the *.hex file; the *.a2l file
(linked with the software Version of the Bi-CAN I/O) describes the memory mapping of the
Bi-CAN I/O. It means that *a2l and *.hex files have to be compatible. In an other case
modified values should be written in the wrong space (wrong memory Adress) and the
software won’t work correctly.
In the INCA Software, this association of files *.a2l / *.hex is called project (green Icon)
.
To open a new project : right click, then « Add / ECU project (A2L) » in the left window “1
elements” of the main window of INCA PC. In this example a configuration and a project are
already given.
September 2006
DUT-MUX-0199E /V1.13
- 31 -
Bi-CAN I/O gateway - User's Guide
But a project may accept several datasets if they are all compatible with the .a2l file defined
during the opening of the project.
So in the right window « 4 elements » of the main window of INCA PC, you may add
datasets in two ways:
Right click, and « Read HEX file»
Right click, and « Import datasets »
- 32 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
VI.6.3 Hardware Configuration
•
Connect the Bi-CAN I/O gateway in parameter setting mode (Look in the VI.3.2 Chapter)
•
Link up the channel CAN_1 to the transceiver ETAS, which is also linked up to the
PCMCIA ETAS Card or to a ES690 Box for example and launch INCA PC.
•
There are 2 Workspaces in the directory « Config_BiCanIO » :
•
•
the workspace named « Bi-CANIO(offline) » gives the possibility to modify the
parameters of the Data sets only on the PC (there is no connection with any hardware
part)
•
the other one named « Bi-CANIO(online) » gives the possibility to modify the
parameters of the Data sets on the PC and to download these changes through the CCP
CAN in the Bi-CAN I/O. The Hardware ETAS interface should be configured (ES
580, ES690, etc…).
If you want modify the hardware configuration of the Online Mode, you have to click on
the chosen workspace and then on the green icon « Hardware »: the following window
will appear (the following settings are shown as default if no other Hardware has been
detected) :
September 2006
DUT-MUX-0199E /V1.13
- 33 -
Bi-CAN I/O gateway - User's Guide
•
Click on the « binoculars » icon on the left top corner to detect all Hardware connected to
the PC ( you may choose the ports to scan…)
•
When the hardware has been found, you may choose the communication type to be
initialized
- 34 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
•
Select the Hardware ES580/CAN/CCP.
•
Then select the Working Data Set (“Demo” for example).
•
Make the CCP connection with the blue button representing a vertical arrow
"Yes" in the dialog box suggesting a change of memory page).
•
Your INCA configuration is done now, you can change the value of the Bi-CAN I/O
parameters
•
Close the hardware management windows and in the Main window of INCA PC. Save
your Database
(Answer
VI.6.4 Select and open a dataset before changing it
September 2006
DUT-MUX-0199E /V1.13
- 35 -
Bi-CAN I/O gateway - User's Guide
First Click on the workspace Icon in the left window « 1 elements » of the main user
interface.
Then in the right window « 4 elements » of the main user interface, you can change the
experimentation you will use by clicking on the icon with 2 arrows .
Note : before choosing your experimentation, you can select each of them to see which
parameters they are containing :
When you will click on the icon with the cross
, the field near the icon will be cleared and
by opening you will get an empty experimentation window. Note : when the user works like
this he will have to find the parameters he needs by himself by clicking on the icon
experimentation window or with the shortcut SHIFT+ F4 (see next paragraph).
of the
In the part of the window « 5 Project/data », it’s also possible to choose the « reference »
Dataset you want to use.
Finally, you have to click on the yellow icon
to open the experimentation window.
NOTE : the following message may appear many times during the opening of the
experimentation :
- 36 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
When a value given to a parameter is out of the description range (in the *A2L File) , INCA
PC indicates this warning to you with this window .
VI.6.5 Changing parameter values in an INCA experimentation.
The datasets management works in INCA PC as follows :
Some datasets are protected and as read only file (framed in red). The others ones should be
modified.
In an experimentation the reference and working pages are assigned to 2 different datasets.
The reference page is automatically write-protected, which gives the possibility to get back to
the initial values from the *.hex file you are using. The working page should be modified,
that’s you to switch on it as follows (“WP” button)::
Note that the names of the used datasets are written on the right. When you show the
Reference Page, all the parameters are greyed and you can’t edit them. With the Working
Page you can modify them
•
In the test window That has opened, select the working page (« WP »).
•
The experiments already contains the variables/parameters you will need. If you want to
select other ones, click the
opens :
September 2006
icon (« Select the variables… »). The following page
DUT-MUX-0199E /V1.13
- 37 -
Bi-CAN I/O gateway - User's Guide
•
Select a group of variables corresponding to the name of the test (in this case, the periodic
CAN frames). Then select all the variables in the group and click "Use by default". Select
"New: Calibration window" in the following window:
•
Once the window has been created, its name can be modified for easier configuration by
right clicking in the selected window :
- 38 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
In this specific case, it is always the group of variables defining the parameters of a
periodic CAN frame.
•
Repeat this operation for all the groups of variables for the test and proceed in the same
way for the other tests. Be sure to save the test before quitting.
VI.6.6 Upload a Dataset from the Bi-CAN I/O Gateway
To get the dataset from the Bi-CAN I/O, follow the below procedure :
(This step is not necessary if you don’t want to start with the Bi-CAN I/O existing
configuration.)
•
Start the management of memory pages in your experimentation (
•
Select the "Advanced" tab.
•
Select "Receive" in the "Action" dropdown menu.
•
Start downloading the Dataset.
•
Give a name to the reference data set that will be uploaded: « ConfigactuelleBiCanIO»
for example.
•
Answer "Yes" to the question of whether to create a data set and give it the name
proposed by INCA 5.2. (Also, answer "Yes" to any other question).
•
Close the memory page management window.
icon).
So, you get the values saved in the Bi-CAN I/O, you can now work with these values or
save them by closing the experimentation and by using the different datasets of the project
in the main window of INCA PC.
September 2006
DUT-MUX-0199E /V1.13
- 39 -
Bi-CAN I/O gateway - User's Guide
VI.6.7 *.hex file creation with a new Bi-CAN I/O configuration.
When you did all the changes you want in the dataset, you will have to save it. You may:
Freeze the dataset : it means that the Working Page datasets will be writing protected
and will automatically take the place of the Reference Page. You may do that by clicking in
the menu « Datasets / freeze the working datasets »
Directly save the modified Dataset as another Name : You may do that by clicking in
the menu « Datasets /Save working datasets as… »
You may use this procedure in every experimentation where you want to save parameters.
Then you can close the experimentation window and you come back in the main window of
INCA PC.
There you can select the actual project in the left window « 1 éléments » and in the right part
« 4 éléments » you can select the dataset containing the new configuration. With a right click,
« Create HEX file », you will generate a new *.hex file which should be downloaded later in
the Bi-CAN I/O Gateway (with DataMUX for example…).
ATTENTION ! VERY IMPORTANT !!: the filename must not contain « spaces » nor
« tabs ».
- 40 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
VI.6.8 Download a dataset in the Bi-CAN I/O (in the flash memory)
To update the configuration of the Bi-CAN I/O, you have to send first the modified dataset
from the « Online project » of the PC (your PC have to be already good configured to connect
the PCMCIA ES580 card to the Bi-CAN I/O, using the CCP protocol) in the RAM of the BiCAN I/O and then after a second command on the CCP from the RAM to the FLASH
memory.
Procedure to be followed :
•
•
Connect to the Bi-CAN I/O gateway (if you are not in the experimentation anymore).
•
After selecting "Workspaces / BicanIO (Online)", right click " BicanIO (Online)" and
then "Hardware setup..." or right click the green "Hardware" icon directly.
•
Switch on the Bi-CAN I/O unit. Make the CCP connection with the blue button
showing a vertical arrow
(Answer "Yes" in the dialog box suggesting a change of
memory page).
•
Close the hardware management window and launch an experimentation
Download the data set loaded in the Bi-CAN I/O (on the working page (RAM)) :
•
Start the management of memory pages (
•
Select the "Standard" tab.
•
Select " Action/Send " in the "Action" dropdown menu FROM “datasets” TO
“Working Page”.
•
Start downloading the setup by clicking “Execute”.
September 2006
icon).
DUT-MUX-0199E /V1.13
- 41 -
Bi-CAN I/O gateway - User's Guide
•
Copy the Working Page (RAM) in the Reference Page (Flash) :
•
In the "Standard" tab, select « Action/Copy » FROM « Working Page » TO
« Reference Page ».
•
Start copying the setup by clicking “Execute”.
•
Answer « OK » in the dialog box about the working Datasets freeze.
•
when this window appears, wait 2 minutes and then click on: « connect again »
ATTENTION : if you don’t wait enough time the download should abort !
VI.6.9 User options to check in INCA PC
In order to insure a goog work during the configuration of the Bi-CAN I/O, please check
the following points in the menu option / user options
- 42 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
September 2006
DUT-MUX-0199E /V1.13
- 43 -
Bi-CAN I/O gateway - User's Guide
And in the hardware management window
- 44 -
DUT-MUX-0199E /V1.13
September 2006
Bi-CAN I/O gateway - User's Guide
Click the button « additionnal… »
September 2006
DUT-MUX-0199E /V1.13
- 45 -
Bi-CAN I/O gateway - User's Guide
History
Version
Author
Date
Modifications made
1.8
-
21/04/05
Initial version, translated from DUT-MUX-0199
V1.8
1.9
PDM
17/05/05
Correction of pinout of analog outputs
1.10
BOR
30/05/05
Correction of pinout of analog outputs.
Type « Motorola for ascending compatibility ».
1.11
JBA
1/06/06
Low-speed baudrates added
1.12
DLE
10/07/06
Modification of the chapter which describes the
use of INCA PC V5.2 (ETAS) to configure the BiCAN I/O using the CCP.
1.13
CGA
27/09/06
Addition of the model of Bi-CAN I/O HS/LS
- 46 -
DUT-MUX-0199E /V1.13
September 2006
© Copyright 2026 Paperzz