Difference between revisions of "FMB640 Manual CAN IO"

From Wiki Knowledge Base | Teltonika GPS
(→‎General description: Removed information about USB, as it is outdated infomration about FM53)
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__TOC__
 
 
==Introduction==
 
 
Controller Area Network (CAN or CAN-bus) is a computer network protocol and bus standard designed to allow microcontrollers and devices to communicate with each other and without a host computer. It was designed specifically for automotive applications but is now also used in other areas.
 
Controller Area Network (CAN or CAN-bus) is a computer network protocol and bus standard designed to allow microcontrollers and devices to communicate with each other and without a host computer. It was designed specifically for automotive applications but is now also used in other areas.
  
 
SAE J1939 and J1708* is the vehicle bus standard used for communication and diagnostics among vehicle components. Based on the same architecture FMS protocol dedicated to telematics systems is available. It has certain standardized parameters available, such as fuel consumption, engine work-hours, etc. Please visit http://www.fms-standard.com/ for more information and message structure.
 
SAE J1939 and J1708* is the vehicle bus standard used for communication and diagnostics among vehicle components. Based on the same architecture FMS protocol dedicated to telematics systems is available. It has certain standardized parameters available, such as fuel consumption, engine work-hours, etc. Please visit http://www.fms-standard.com/ for more information and message structure.
  
The FMS-interface is an optional interface of different truck manufacturers. Supporting information is dependent upon vehicle equipment. For the full information set, additional Electronic Control Units (ECU) may be required. Please contact the manufacturer or your dealer for more details.
+
The FMS-interface is an optional interface of different truck manufacturers. Supported information is dependent upon vehicle equipment. For the full information set, additional Electronic Control Units (ECU) may be required. Please contact the manufacturer or your dealer for more details.
  
 
Vehicle brands supported:<br />
 
Vehicle brands supported:<br />
* Mercedes Benz<br />
+
Mercedes Benz<br />
* Volvo<br />
+
Volvo<br />
* MAN<br />
+
MAN<br />
* DAF<br />
+
DAF<br />
* Iveco<br />
+
Iveco<br />
* Scania<br />
+
Scania<br />
* Renault<br />
+
Renault<br />
  
 
Available parameters: <br />
 
Available parameters: <br />
* Total Fuel <br />
+
Total Fuel <br />
* Total Distance <br />
+
Total Distance <br />
* Status of brake pedal *<br />
+
Status of brake pedal *<br />
* Engine Torque *<br />
+
Engine Torque *<br />
* Actual fuel <br />
+
Actual fuel <br />
* Accelerator pedal position *<br />
+
Accelerator pedal position *<br />
* Status engine brake <br />
+
Status engine brake <br />
* Speed *<br />
+
Speed *<br />
* RPM <br />
+
RPM <br />
* Engine hours <br />
+
Engine hours <br />
* Vehicle Weight *<br />
+
Vehicle Weight *<br />
* Fuel level <br />
+
Fuel level <br />
* Tachograph data *<br />
+
Tachograph data *<br />
  
''*Availability of parameter depends on vehicle’s model and configuration of the FMS interface of the truck.''
+
''Availability of parameter depends on vehicle’s model and configuration of FMS interface of the truck.''
 +
''J1708 is additional FMS protocol used by some vehicle manufacturers. If your vehicle supports J1939 and J1708 both protocols then you must disable J1708 in configuration to receive fuel data. ''
  
''J1708 is an additional FMS protocol used by some vehicle manufacturers. If your vehicle supports J1939 and J1708 both protocols then you must disable J1708 in configuration to receive fuel data. ''
 
  
==General description==
+
==General description:==
 +
* CAN works if no USB cable is inserted and isn’t in deep sleep mode;
 
* Uses six different speeds: 50 kbps, 100 kbps, 125 kbps, 250 kbps, 500 kbps, 1000kbps;
 
* Uses six different speeds: 50 kbps, 100 kbps, 125 kbps, 250 kbps, 500 kbps, 1000kbps;
 
* Auto Baud rate detection;
 
* Auto Baud rate detection;
Line 44: Line 42:
  
 
==Configuration==
 
==Configuration==
[[{{{model|FMB640}}}]] has 70 configurable Manual CAN elements.
+
Manual CAN data can be configured using “Manual CAN” in CAN tab.
  
 
{{{image1|[[Image:FMB640_Manual_CAN.png|700px|none]]}}}
 
{{{image1|[[Image:FMB640_Manual_CAN.png|700px|none]]}}}
  
CAN message ID type: Message ID type two types according to SAEJ1939 standard: Standard ID (value: <code>0</code> to <code>0x7FFh</code>) and Extended ID (value: <code>0</code> to <code>0x1FFFFFFFh</code>).
+
CAN message ID type: Message ID type two types according to SAEJ1939 standard: Standard ID (value: 0 to 0x7FFh) and Extended ID (value: 0 to 0x1FFFFFFFh).
  
 
{{{image2|[[Image:FMB640_Manual_CAN1.png|200px|none]]}}}
 
{{{image2|[[Image:FMB640_Manual_CAN1.png|200px|none]]}}}
  
  
Message ID value is entered in HEX format. This parameter is used to configure the hardware message filter. All messages contain 8 bytes of data, to select particular data/bytes “Output Data Mask” is used, it’s done by ticking the required bytes, only selected bytes are sent to the server.
+
Message ID value is entered in hex format. This parameter is used to configure hardware message filter. All messages contain 8 bytes of data, to select particular data/bytes “Output Data Mask” is used, it’s done by ticking required bytes, only selected bytes are sent to server.
  
  
'''Example:'''
+
{{{image3|[[Image:FMB630_manual_CAN2.png|500px|none]]}}}
A sample CAN message has the following structure: <code>X18FEE9018FFFFFFFF23840300</code>, where essential parts are <code>FEE9</code> – identifier and <code>FFFFFFFF23840300</code> – data bytes.
 
  
 +
Example
 +
A sample CAN message has the following structure: X18FEE9018FFFFFFFF23840300, where essential parts are ‘FEE9’ – identifier and ‘FFFFFFFF23840300’ – data bytes.
 +
CAN messages are configured like any other I/O parameters. They consist of 4 identifier bytes and 8 data bytes. Below you will find a sample configuration for fuel consumption parameter:
 +
ID type – is always 29 bits.
 +
Output data mask – defines which data bytes are sent to the server (sometimes not all data bytes are necessary).
 +
CAN ID – this is 4 byte identifier. Messages use 4 bytes, but the first and last bytes may differ in different vehicle models while the middle four bytes are the same for all vehicles. The first and last bytes may have any value. Because of this reason it is recommended to write FF in the first byte and the same in the last byte.
  
CAN messages are configured like any other I/O parameters. They consist of 4 identifier bytes and 8 data bytes. Below you will find a sample configuration for fuel consumption parameter:
 
* '''ID type''' – is always 29 bits.
 
* '''Output data mask''' – defines which data bytes are sent to the server (sometimes not all data bytes are necessary).
 
* '''CAN ID''' – this is 4 byte identifier. Messages use 4 bytes, but the first and last bytes may differ in different vehicle models while the middle four bytes are the same for all vehicles. The first and last bytes may have any value. Because of this reason, it is recommended to write <code>FF</code> in the first byte and the same in the last byte.
 
  
==Example==
+
This information is provided only as an example and Teltonika
All Mercedes Benz Actros 2 models with Vehicle Identification Number (VIN) starting with WDB93 have a possibility to connect [[{{{model|FMB640}}}]] module to the CAN bus. This can be done by connecting to a special PSM module (which may or may not be included in the truck) or ground module of the vehicle. For the CAN signal to be available, parameter 520 must be enabled in “kommunikationsschnittstelle” in the vehicle with Mercedes Stardiagnose.
+
takes no responsibility for information accuracy or damage that may be done to the vehicle or {{{model|FMB640}}} module while integrating it.
  
CAN wires can be found on the X5 connector located in the fuse box:
+
Example:
* PIN 5: CAN Low signal (yellow wire)
+
All Mercedes Benz Actros 2 models with Vehicle Identification Number (VIN) starting with WDB93 have a possibility to connect {{{model|FMB640}}} module to CAN bus. This can be done by connecting to special PSM module (which may or may not be included in the truck) or ground module of the vehicle. For CAN signal to be available, parameter 520 must be enabled in “kommunikationsschnittstelle” in the vehicle with Mercedes Stardiagnose.
* PIN 2: CAN High signal (blue wire)
+
CAN wires can be found on X5 connector located in the fuse box:
 +
Pin 5: CAN Low signal (yellow wire)
 +
Pin 2: CAN High signal (blue wire)
  
 
{{{image4|[[Image:FMB630_manual_CAN4.png|500px|none]]}}}  
 
{{{image4|[[Image:FMB630_manual_CAN4.png|500px|none]]}}}  
  
In the example [[{{{model|FMB640}}}]] will filter all CAN messages with identifier FFFEE9FF (fuel consumption).
+
In the example {{{model|FMB640}}} will filter all CAN messages with identifier FFFEE9FF (fuel consumption).
  
{{{image5|[[Image:FMB640_Manual_CAN5.png|600px|none]]}}}
+
{{{image5|[[Image:FMB630_manual_CAN5.png|600px|none]]}}}
  
'''Note:''' Averaging constant cannot be used with CAN data, because this information comes in digital format. So in order to prevent data loss, set Averaging constant parameter to 1.
+
CAN parameter configuration example
  
Most parameters have a certain resolution. <code>FEE9</code> parameter has 0.5L/bit gain, so the value that is sent to the server has to be multiplied by 0.5.
+
Note: Averaging constant cannot be used with CAN data, because this information comes in digital format. So in order to prevent data loss, set Averaging constant parameter to 1.
  
Data parsing is preceded by selecting the correct message from all available on the CAN bus. FMS standard interface description indicates that fuel consumption is a parameter with ID <code>FEE9</code>:
+
Most parameters have certain resolution. FEE9 parameter has 0.5L/bit gain, so value that is sent to server has to be multiplied by 0.5.
 +
Data parsing is preceded by selecting correct message from all available on CAN bus. FMS standard interface description indicates that fuel consumption is parameter with ID FEE9:
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 140: Line 142:
 
|}
 
|}
  
'''Note:''' This information is provided only as an example and Teltonika takes no responsibility for information accuracy or damage that may be done to the vehicle or [[{{{model|FMB640}}}]] module while integrating it.
 
  
[[Category:FMB640 Configuration]]
+
The example indicates how fuel consumption message is selected and how configuration impacts this selection.
 +
 
 +
{{{image6|[[Image:FMB630_manual_CAN6.png|450px|none]]}}}
 +
 
 +
When certain message is filtered, {{{model|FMB640}}} checks which data bytes should be sent to server. Document indicates that 5-8 bytes are used in FMS standard.
 +
 
 +
{| class="wikitable"
 +
|+
 +
! style="background: black; color: white;" colspan=8 rowspan=1 |''Data Byte 5''
 +
! style="background: black; color: white;" colspan=8 rowspan=1 |''Data Byte 6''
 +
! style="background: black; color: white;" colspan=8 rowspan=1 |''Data Byte 7''
 +
! style="background: black; color: white;" colspan=8 rowspan=1 |''Data Byte 8''
 +
! style="background: black; color: white;" rowspan=1 |'''Byte No.'''
 +
|-
 +
! style=" background: black; color: white;" rowspan=1 |'''8'''
 +
! style=" background: black; color: white;" rowspan=1 |'''7'''
 +
! style=" background: black; color: white;" rowspan=1 |'''6'''
 +
! style=" background: black; color: white;" rowspan=1 |'''5'''
 +
! style=" background: black; color: white;" rowspan=1 |'''4'''
 +
! style=" background: black; color: white;" rowspan=1 |'''3'''
 +
! style=" background: black; color: white;" rowspan=1 |'''2'''
 +
! style=" background: black; color: white;" rowspan=1 |'''1'''
 +
! style=" background: black; color: white;" rowspan=1 |'''8'''
 +
! style=" background: black; color: white;" rowspan=1 |'''7'''
 +
! style=" background: black; color: white;" rowspan=1 |'''6'''
 +
! style=" background: black; color: white;" rowspan=1 |'''5'''
 +
! style=" background: black; color: white;" rowspan=1 |'''4'''
 +
! style=" background: black; color: white;" rowspan=1 |'''3'''
 +
! style=" background: black; color: white;" rowspan=1 |'''2'''
 +
! style=" background: black; color: white;" rowspan=1 |'''1'''
 +
! style=" background: black; color: white;" rowspan=1 |'''8'''
 +
! style=" background: black; color: white;" rowspan=1 |'''7'''
 +
! style=" background: black; color: white;" rowspan=1 |'''6'''
 +
! style=" background: black; color: white;" rowspan=1 |'''5'''
 +
! style=" background: black; color: white;" rowspan=1 |'''4'''
 +
! style=" background: black; color: white;" rowspan=1 |'''3'''
 +
! style=" background: black; color: white;" rowspan=1 |'''2'''
 +
! style=" background: black; color: white;" rowspan=1 |'''1'''
 +
! style=" background: black; color: white;" rowspan=1 |'''8'''
 +
! style=" background: black; color: white;" rowspan=1 |'''7'''
 +
! style=" background: black; color: white;" rowspan=1 |'''6'''
 +
! style=" background: black; color: white;" rowspan=1 |'''5'''
 +
! style=" background: black; color: white;" rowspan=1 |'''4'''
 +
! style=" background: black; color: white;" rowspan=1 |'''3'''
 +
! style=" background: black; color: white;" rowspan=1 |'''2'''
 +
! style=" background: black; color: white;" rowspan=1 |'''1'''
 +
! style=" background: black; color: white;" rowspan=1 |'''Bit no'''
 +
|-
 +
! style=" background: black; color: white;" rowspan=1 colspan=8 |'''Total fuel used'''
 +
| style=" background: black; color: white;" rowspan=1 colspan=8 |'''Total fuel used'''
 +
| style=" background: black; color: white;" rowspan=1 colspan=8 |'''Total fuel used'''
 +
| style=" background: black; color: white;" rowspan=1 colspan=8 |'''Total fuel used'''
 +
| style=" background: black; color: white;" rowspan=1 colspan=1 |'''Name'''
 +
|-
 +
! rowspan=1 colspan=8 |0,5 L/Bit gain
 +
| rowspan=1 colspan=8 |0,5 L/Bit gain
 +
| rowspan=1 colspan=8 |0,5 L/Bit gain
 +
| rowspan=1 colspan=8 |0,5 L/Bit gain
 +
| Values
 +
|-
 +
| rowspan=1 colspan=8 | 0 L offset
 +
| rowspan=1 colspan=8 | 0 L offset
 +
| rowspan=1 colspan=8 | 0 L offset
 +
| rowspan=1 colspan=8 | 0 L offset
 +
| Values
 +
|-
 +
| rowspan=1 colspan=8 | 5.2.5.66
 +
| rowspan=1 colspan=8 | 5.2.5.66
 +
| rowspan=1 colspan=8 | 5.2.5.66
 +
| rowspan=1 colspan=8 | 5.2.5.66
 +
| SAE ref
 +
|-
 +
| rowspan=1 colspan=8 |'''SPN 250'''
 +
| rowspan=1 colspan=8 |'''SPN 250'''
 +
| rowspan=1 colspan=8 |'''SPN 250'''
 +
| rowspan=1 colspan=8 |'''SPN 250'''
 +
| SPN
 +
|-
 +
|}
 +
 
 +
 
 +
{{{image7|[[Image:FMB630_manual_CAN7.png|400px|none]]}}}
 +
 
 +
Data bytes are filtered by selecting the checkboxes in Output data mask. Note, that configurator has them listed starting with MSB.
 +
After message is filtered it is attached to the data packet and sent to the server. Values are returned in HEX. 00 03 84 23(HEX) = 230435(DEC). Notice, that data resolution is 0.5L/bit gain – value has to be multiplied by 0.5, therefore vehicle used a total 115217,5 liters of fuel.

Revision as of 07:19, 10 July 2019

Main Page > EOL Products > FMB640 > FMB640 Configuration > FMB640 Manual CAN IO

Controller Area Network (CAN or CAN-bus) is a computer network protocol and bus standard designed to allow microcontrollers and devices to communicate with each other and without a host computer. It was designed specifically for automotive applications but is now also used in other areas.

SAE J1939 and J1708* is the vehicle bus standard used for communication and diagnostics among vehicle components. Based on the same architecture FMS protocol dedicated to telematics systems is available. It has certain standardized parameters available, such as fuel consumption, engine work-hours, etc. Please visit http://www.fms-standard.com/ for more information and message structure.

The FMS-interface is an optional interface of different truck manufacturers. Supported information is dependent upon vehicle equipment. For the full information set, additional Electronic Control Units (ECU) may be required. Please contact the manufacturer or your dealer for more details.

Vehicle brands supported:
• Mercedes Benz
• Volvo
• MAN
• DAF
• Iveco
• Scania
• Renault

Available parameters:
• Total Fuel
• Total Distance
• Status of brake pedal *
• Engine Torque *
• Actual fuel
• Accelerator pedal position *
• Status engine brake
• Speed *
• RPM
• Engine hours
• Vehicle Weight *
• Fuel level
• Tachograph data *

Availability of parameter depends on vehicle’s model and configuration of FMS interface of the truck. J1708 is additional FMS protocol used by some vehicle manufacturers. If your vehicle supports J1939 and J1708 both protocols then you must disable J1708 in configuration to receive fuel data.


General description:

  • CAN works if no USB cable is inserted and isn’t in deep sleep mode;
  • Uses six different speeds: 50 kbps, 100 kbps, 125 kbps, 250 kbps, 500 kbps, 1000kbps;
  • Auto Baud rate detection;
  • Filtering messages (StId, ExtId) according to configuration;
  • Using mask, filters required bytes;
  • Different CAN configurations.

Configuration

Manual CAN data can be configured using “Manual CAN” in CAN tab.

FMB640 Manual CAN.png

CAN message ID type: Message ID type two types according to SAEJ1939 standard: Standard ID (value: 0 to 0x7FFh) and Extended ID (value: 0 to 0x1FFFFFFFh).

FMB640 Manual CAN1.png


Message ID value is entered in hex format. This parameter is used to configure hardware message filter. All messages contain 8 bytes of data, to select particular data/bytes “Output Data Mask” is used, it’s done by ticking required bytes, only selected bytes are sent to server.


FMB630 manual CAN2.png

Example A sample CAN message has the following structure: X18FEE9018FFFFFFFF23840300, where essential parts are ‘FEE9’ – identifier and ‘FFFFFFFF23840300’ – data bytes. CAN messages are configured like any other I/O parameters. They consist of 4 identifier bytes and 8 data bytes. Below you will find a sample configuration for fuel consumption parameter: ID type – is always 29 bits. Output data mask – defines which data bytes are sent to the server (sometimes not all data bytes are necessary). CAN ID – this is 4 byte identifier. Messages use 4 bytes, but the first and last bytes may differ in different vehicle models while the middle four bytes are the same for all vehicles. The first and last bytes may have any value. Because of this reason it is recommended to write FF in the first byte and the same in the last byte.


This information is provided only as an example and Teltonika takes no responsibility for information accuracy or damage that may be done to the vehicle or FMB640 module while integrating it.

Example: All Mercedes Benz Actros 2 models with Vehicle Identification Number (VIN) starting with WDB93 have a possibility to connect FMB640 module to CAN bus. This can be done by connecting to special PSM module (which may or may not be included in the truck) or ground module of the vehicle. For CAN signal to be available, parameter 520 must be enabled in “kommunikationsschnittstelle” in the vehicle with Mercedes Stardiagnose. CAN wires can be found on X5 connector located in the fuse box: Pin 5: CAN Low signal (yellow wire) Pin 2: CAN High signal (blue wire)

FMB630 manual CAN4.png

In the example FMB640 will filter all CAN messages with identifier FFFEE9FF (fuel consumption).

FMB630 manual CAN5.png

CAN parameter configuration example

Note: Averaging constant cannot be used with CAN data, because this information comes in digital format. So in order to prevent data loss, set Averaging constant parameter to 1.

Most parameters have certain resolution. FEE9 parameter has 0.5L/bit gain, so value that is sent to server has to be multiplied by 0.5. Data parsing is preceded by selecting correct message from all available on CAN bus. FMS standard interface description indicates that fuel consumption is parameter with ID FEE9:

00FEE9 PGN HEX
65,257 PGN
1000 ms Rep. Rate
Data Byte 1 Data Byte 2 Data Byte 3 Data Byte 4 Data Byte 5 Data Byte 6 Data Byte 7 Data Byte 8 Byte No.
Not used for
FMS-
Standard
Not used for
FMS-
Standard
Not used for
FMS-
Standard
Not used for
FMS-
Standard
Total fuel used

0,5 L/Bit gain
0 L offset
5.2.5.66
SPN 250

Total fuel used

0,5 L/Bit gain
0 L offset
5.2.5.66
SPN 250

Total fuel used

0,5 L/Bit gain
0 L offset
5.2.5.66
SPN 250

Total fuel used

0,5 L/Bit gain
0 L offset
5.2.5.66
SPN 250

Name

Values
Values
Values
SAE ref
SPN


The example indicates how fuel consumption message is selected and how configuration impacts this selection.

FMB630 manual CAN6.png

When certain message is filtered, FMB640 checks which data bytes should be sent to server. Document indicates that 5-8 bytes are used in FMS standard.

Data Byte 5 Data Byte 6 Data Byte 7 Data Byte 8 Byte No.
8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 Bit no
Total fuel used Total fuel used Total fuel used Total fuel used Name
0,5 L/Bit gain 0,5 L/Bit gain 0,5 L/Bit gain 0,5 L/Bit gain Values
0 L offset 0 L offset 0 L offset 0 L offset Values
5.2.5.66 5.2.5.66 5.2.5.66 5.2.5.66 SAE ref
SPN 250 SPN 250 SPN 250 SPN 250 SPN


FMB630 manual CAN7.png

Data bytes are filtered by selecting the checkboxes in Output data mask. Note, that configurator has them listed starting with MSB. After message is filtered it is attached to the data packet and sent to the server. Values are returned in HEX. 00 03 84 23(HEX) = 230435(DEC). Notice, that data resolution is 0.5L/bit gain – value has to be multiplied by 0.5, therefore vehicle used a total 115217,5 liters of fuel.