CANConfiguration / ConfiguringTheCANReception

Configuring the CAN reception

For each CAN data channel which is to be stored or transmitted on the serial port the data logger needs the relevant configuration information to enable decoding of the information. This is done from the 'CAN data input' icon on the main configuration software. When clicked the following screen will appear:

On the DL1 PRO and DL1 WP there are two CAN ports available, make sure that the correct port is chosen and that the baud rate is set correctly.
Before a CAN channel can be configured it must be enabled. Click on the 'Enabled/Disabled' box for the relevant channel and then click 'Configure..' to bring up the configuration screen.

CAN Address (Hex) and (Decimal)

The address can be set either in hex or in decimal.

Data format

Here the start bit, data length, value type and byte order are set. These factors together describe how the data is decoded from the CAN data.

There are six different methods which can be used to describe the CAN byte order, these have an effect on which bit the start bit refers to, as some point to the least significant bit (lsb) and some to the most significant bit (msb). For more information on how these systems work look here.

The data format is always shown graphically at the bottom of the screen, this can be invaluable for checking that the data format is correct.

The value type can be set to Unsigned or Signed. If the value is signed then the data is treated as being encoded using two’s complement arithmetic. This affects the input range of the data and must be set according to the specification in the output configuration of the device the data is being read from . It does not relate whether or not the output data is signed. For example. The input data could be unsigned with an input range of 0-127 but have an offset of -127 applied giving an output range of -127 to 128. The data is still unsigned when read from the CAN interface.

The maximum and minimum values of the decoded data are shown just underneath where the data format is set.

Scaling

When the data has been decoded it can have a scale and offset applied to it. This is usually done to convert the raw CAN values in to standard units for storage. When stored internally in the Race Technology data format channels should be scaled to the following types.

Channel type

Storage unit

resolution

Min value

Max value

Angles

degrees

0.1degree

-3276.8

3276.7

Temperatures

degrees C

0.1 degree

-3276.8

3276.7

Auxilary

1

0.1

-3276.8

3276.7

Pressure*

mbar

1mbar

0

65535

Time

ms

1ms 0

65535

Analogue

mV

1mV

0

65.535V

For further information on other specific channels please see the detailed channel information here.

Data filtering

In some CAN data streams messages are only valid when a particular byte or bit has a certain value. For example the first byte in a message might be used to say which cylinder exhaust temperature data relates to. By applying a filter the message can be decoded when these conditions are true.

Filter location

This is the byte which is used for the filtering, filtering is only possible based on a maximum of one byte of data

Value

This is the value which the byte must have

AND

This is used to filter the byte so that only certain bits are included in the calculations. The value of the byte when logically ANDed with this value must equal the the value set.

Example:

A data validity bit exists in bit 7 of byte 1, the data is only valid when this bit is set.