Difference between revisions of "FMB641 CAN adapters"

From Wiki Knowledge Base | Teltonika GPS
m
Line 23: Line 23:
 
====Installation steps====
 
====Installation steps====
 
# Be ready with a vehicle '''connection scheme''' that you have received from a Teltonika Sales Representative.
 
# Be ready with a vehicle '''connection scheme''' that you have received from a Teltonika Sales Representative.
# '''Check the scheme''' for the current vehicle connection. Look for connectors matching '''PINs numbers''' and colors (maybe different) according to connection scheme.
+
# '''Check the scheme''' for the current vehicle connection. Look for connectors matching '''PINs numbers''' and colors (maybe different) according to the connection scheme.
# Connect CAN adapter with {{{model|FMB640}}}:
+
# Connect CAN adapter with FMB641:
## Connect CAN adapter's RS232 to RJ45 of {{{model|FMB640}}}.
+
## Connect CAN adapter's RS232 to RJ45 of FMB641.
# Connect CAN adapter '''CAN wires (CAN L, CAN H)''' as specified in connection scheme.<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap CAN L and CAN H lines.<br />Not all CAN adapter wires may be used in vehicle.</b></td></table></p>
+
# Connect CAN adapter '''CAN wires (CAN L, CAN H)''' as specified in connection scheme.<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap CAN L and CAN H lines.<br />Not all CAN adapter wires may be used in the vehicle.</b></td></table></p>
 
# Connect CAN adapter '''positive''' and '''ground''' wires to the vehicle power supply lines or near FMB641 power wires.<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap power supply lines.<br />Make sure that voltage does not exceed 30V.</b></td></table></p>
 
# Connect CAN adapter '''positive''' and '''ground''' wires to the vehicle power supply lines or near FMB641 power wires.<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap power supply lines.<br />Make sure that voltage does not exceed 30V.</b></td></table></p>
 
# Switch vehicle '''ignition to ACC''' position. CAN adapter '''LED diode''' on the back should start '''blinking'''.
 
# Switch vehicle '''ignition to ACC''' position. CAN adapter '''LED diode''' on the back should start '''blinking'''.
# Configure CAN adapter to read CAN bus data or control vehicle by setting its '''program number''' - [[{{{model|FMB640}}}_CAN_adapters#CAN_Adapter_Configuration|CAN Adapter configuration]]
+
# Configure CAN adapter to read CAN bus data or control vehicle by setting its '''program number''' - [[FMB641_CAN_adapters#CAN_Adapter_Configuration|CAN Adapter configuration]]
 
<br />
 
<br />
 
[[File:FMX641lvall.png|1000px|none|thumb|LV-CAN200/ALL-CAN300 connection example. This is not a connection diagram for your vehicle. Every vehicle has a specific scheme.]]
 
[[File:FMX641lvall.png|1000px|none|thumb|LV-CAN200/ALL-CAN300 connection example. This is not a connection diagram for your vehicle. Every vehicle has a specific scheme.]]
Line 48: Line 48:
  
 
====Installation steps====
 
====Installation steps====
# Follow the same '''1, 2, 3''' installation steps as with [[{{{model|FMB640}}}_CAN_adapters#Installation_steps| LV-CAN200/ALL-CAN300/CAN-CONTROL installation]].
+
# Follow the same '''1, 2, 3''' installation steps as with [[FMB641_CAN_adapters#Installation_steps| LV-CAN200/ALL-CAN300/CAN-CONTROL installation]].
# Connect the appropriate CAN bus pair of wires between CAN adapter and [[SIMPLE-CAN]] / [[MINI-CAN]]:
+
# Connect the appropriate CAN bus pair of wires between the CAN adapter and [[SIMPLE-CAN]] / [[MINI-CAN]]:
 
#: If '''CAN1 line''' need to be connected as specified in the connection scheme:
 
#: If '''CAN1 line''' need to be connected as specified in the connection scheme:
 
## Connect CAN adapter <span style="color:brown;">'''CAN1 L'''</span> to <span style="color:brown;">'''CAN L'''</span> of [[SIMPLE-CAN]] / [[MINI-CAN]].
 
## Connect CAN adapter <span style="color:brown;">'''CAN1 L'''</span> to <span style="color:brown;">'''CAN L'''</span> of [[SIMPLE-CAN]] / [[MINI-CAN]].
Line 55: Line 55:
 
#: If '''CAN2 line''' need to be connected as specified in the connection scheme:
 
#: If '''CAN2 line''' need to be connected as specified in the connection scheme:
 
## Connect CAN adapter <span style="color:green;">'''CAN2 L'''</span> to <span style="color:brown;">'''CAN L'''</span> of [[SIMPLE-CAN]] / [[MINI-CAN]].
 
## Connect CAN adapter <span style="color:green;">'''CAN2 L'''</span> to <span style="color:brown;">'''CAN L'''</span> of [[SIMPLE-CAN]] / [[MINI-CAN]].
## Connect CAN adapter <span style='color:white;text-decoration:line-through'><span style="color:green;">'''CAN2 H'''</span></span> to <span style='color:white;text-decoration:line-through'><span style="color:brown;">'''CAN H'''</span></span> of [[SIMPLE-CAN]] / [[MINI-CAN]].<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap CAN L and CAN H lines.<br />Not all CAN adapter wires may be used in vehicle.</b></td></table></p>
+
## Connect CAN adapter <span style='color:white;text-decoration:line-through'><span style="color:green;">'''CAN2 H'''</span></span> to <span style='color:white;text-decoration:line-through'><span style="color:brown;">'''CAN H'''</span></span> of [[SIMPLE-CAN]] / [[MINI-CAN]].<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap CAN L and CAN H lines.<br />Not all CAN adapter wires may be used in the vehicle.</b></td></table></p>
# Fasten [[SIMPLE-CAN]] / [[MINI-CAN]] '''between vehicle CAN bus wires''' according to the connection scheme. '''It doeasn't matter which wire is on which side.'''<p>[[File:SIMPLE-CAN_connection.gif|none]]</p>
+
# Fasten [[SIMPLE-CAN]] / [[MINI-CAN]] '''between vehicle CAN bus wires''' according to the connection scheme. '''It doesn't matter which wire is on which side.'''<p>[[File:SIMPLE-CAN_connection.gif|none]]</p>
 
# Connect CAN adapter '''positive''' and '''ground''' wires to the vehicle power supply lines or near FMB641 power wires.<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap power supply lines.<br />Make sure that voltage does not exceed 30V.</b></td></table></p>
 
# Connect CAN adapter '''positive''' and '''ground''' wires to the vehicle power supply lines or near FMB641 power wires.<p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>Do not swap power supply lines.<br />Make sure that voltage does not exceed 30V.</b></td></table></p>
 
# Switch vehicle '''ignition to ACC''' position.
 
# Switch vehicle '''ignition to ACC''' position.
# [[SIMPLE-CAN]] / [[MINI-CAN]] '''LED will shine continously''' so device awaits for '''calibration'''.<div><ul><li style="display: inline-block;">[[File:SIMPLE-CAN_calibration.gif|none|thumb|'''Press the switch shortly''' and wait for the LED to start blinking '''every one second'''.<br /><br /><br />]]</li><li style="display: inline-block;">[[File:SIMPLE-CAN after calibration.gif|none|thumb|Automatic calibration process takes up to 10 seconds depending on the vehicle model. Device is calibrated properly then the LED is blinking '''every 2 seconds'''.]]</li></ul></div><p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>If after calibration process LED shines continuously, it means that device is not calibrated yet, CAN-BUS transmission has failed or ignition during calibration was not ON.</b></td></table></p>
+
# [[SIMPLE-CAN]] / [[MINI-CAN]] '''LED will shine continously''' so device awaits for '''calibration'''.<div><ul><li style="display: inline-block;">[[File:SIMPLE-CAN_calibration.gif|none|thumb|'''Press the switch shortly''' and wait for the LED to start blinking '''every one second'''.<br /><br /><br />]]</li><li style="display: inline-block;">[[File:SIMPLE-CAN after calibration.gif|none|thumb|Automatic calibration process takes up to 10 seconds depending on the vehicle model. The device is calibrated properly then the LED is blinking '''every 2 seconds'''.]]</li></ul></div><p><table><td>[[File:Alert.png|50px|left|link=]]</td><td><b>If after calibration process LED shines continuously, it means that device is not calibrated yet, CAN-BUS transmission has failed or ignition during calibration was not ON.</b></td></table></p>
# Configure CAN adapter to read CAN bus data by setting its '''program number''' - [[{{{model|FMB640}}}_CAN_adapters#CAN_Adapter_Configuration|CAN Adapter configuration]]
+
# Configure CAN adapter to read CAN bus data by setting its '''program number''' - [[FMB641_CAN_adapters#CAN_Adapter_Configuration|CAN Adapter configuration]]
 
<br />
 
<br />
  
Line 67: Line 67:
 
===CAN Adapter program number selection===
 
===CAN Adapter program number selection===
 
----
 
----
CAN Adapter must be set to program number which depends on the vehicle model. '''Needed program number is always written on CAN Adapter mounting scheme.''' In order to be able to enter program number in adapter '''Software date of CAN adapter must be newer than connection scheme date'''.
+
CAN Adapter must be set to the program number which depends on the vehicle model. '''Needed program number is always written on CAN Adapter mounting scheme.''' In order to be able to enter the program number in the adapter '''Software date of the CAN adapter must be newer than the connection scheme date'''.
 
CAN adapter Software date can be checked:  
 
CAN adapter Software date can be checked:  
* Via [[{{{model|FMB640}}}_Status_info#CAN_Adapter_Info|Teltonika Configurator→Status→CAN Adapter]]
+
* Via [[FMB641_Status_info#CAN_Adapter_Info|Teltonika Configurator→Status→CAN Adapter]]
 
* Via SMS command - [[FMB_lvcangetinfo|lvcangetinfo]]
 
* Via SMS command - [[FMB_lvcangetinfo|lvcangetinfo]]
  
The number of digits required to enter correct Program No. may vary depending on the Software and manufacture date of your CAN Adapter:
+
The number of digits required to enter the correct Program No. may vary depending on the Software and manufacture date of your CAN Adapter:
 
* [[LV-CAN200#Adapter_changes|LV-CAN200 adapter changes]]
 
* [[LV-CAN200#Adapter_changes|LV-CAN200 adapter changes]]
 
* [[ALL-CAN300#Adapter_changes|ALL-CAN300 adapter changes]]
 
* [[ALL-CAN300#Adapter_changes|ALL-CAN300 adapter changes]]
Line 81: Line 81:
 
* CAN adapter properly connected to FMB641 device
 
* CAN adapter properly connected to FMB641 device
  
CAN adapter program number can be set remotely, using SMS command.
+
CAN adapter program number can be set remotely, using an SMS command.
 
Send following '''SMS command''' to FMB641 device:  
 
Send following '''SMS command''' to FMB641 device:  
 
* If you have set SMS login and password: <code>login pass lvcansetprog X</code>
 
* If you have set SMS login and password: <code>login pass lvcansetprog X</code>
* If SMS login and password are not set leave two spaces before command: <code>&nbsp;&nbsp;lvcansetprog X</code>
+
* If SMS login and password are not set leave two spaces before the command: <code>&nbsp;&nbsp;lvcansetprog X</code>
 
Command example: <code>&nbsp;&nbsp;lvcansetprog 11434</code><br />
 
Command example: <code>&nbsp;&nbsp;lvcansetprog 11434</code><br />
 
SMS response: <code>LVCAN ProgNum: 11434</code>
 
SMS response: <code>LVCAN ProgNum: 11434</code>
  
If during SMS command FMB641 was in following Sleep mode:
+
If during SMS command FMB641 was in the following Sleep mode:
* [[{{{model|FMB640}}}_Sleep_modes#GPS_Sleep_mode|GPS Sleep]] - Program No. will be set immediately.
+
* [[FMB641_Sleep_modes#GPS_Sleep_mode|GPS Sleep]] - Program No. will be set immediately.
* [[{{{model|FMB640}}}_Sleep_modes#Deep_Sleep_mode|Deep Sleep]] - Program No. will be set after device wake up.
+
* [[FMB641_Sleep_modes#Deep_Sleep_mode|Deep Sleep]] - Program No. will be set after the device wakes up.
* [[{{{model|FMB640}}}_Sleep_modes#Online_Deep_Sleep_mode|Online Deep Sleep]] - Program No. will be set immediately.
+
* [[FMB641_Sleep_modes#Online_Deep_Sleep_mode|Online Deep Sleep]] - Program No. will be set immediately.
  
 
====Entering via Teltonika Configurator====
 
====Entering via Teltonika Configurator====
Line 98: Line 98:
 
* CAN adapter properly connected to FMB641 device
 
* CAN adapter properly connected to FMB641 device
  
CAN adapter program number can be set via '''[[Teltonika Configurator]] → LVCAN → Program Number'''. When program number is entered press [[File:Save_to_device.png|25px|link=]] '''Save to device''' button that saves the entered program number into {{{model|FMB640}}}.
+
CAN adapter program number can be set via '''[[Teltonika Configurator]] → LVCAN → Program Number'''. When the program number is entered press [[File:Save_to_device.png|25px|link=]] '''Save to device''' button that saves the entered program number into FMB641.
 
<br/><br/>
 
<br/><br/>
 
[[file:Fmx640.gif]]
 
[[file:Fmx640.gif]]
Line 119: Line 119:
 
| rowspan="6" style="border: 1px solid #0054A6; background: white; color: #0054A6; text-align: center; width:10%;" | For<br/>ALL-CAN300<br/>LV-CAN200<br/>4 digit
 
| rowspan="6" style="border: 1px solid #0054A6; background: white; color: #0054A6; text-align: center; width:10%;" | For<br/>ALL-CAN300<br/>LV-CAN200<br/>4 digit
 
| rowspan="7" style="border: 1px solid #0054A6; background: white; color: #0054A6; text-align: center; width:11%;" | For<br/>LV-CAN200<br/>CAN-CONTROL<br/>5 digit
 
| rowspan="7" style="border: 1px solid #0054A6; background: white; color: #0054A6; text-align: center; width:11%;" | For<br/>LV-CAN200<br/>CAN-CONTROL<br/>5 digit
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white; width:38%;" |1. Hold SWITCH down until LED stars blinking.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white; width:38%;" |1. Hold SWITCH down until LED stars blink.
 
|-
 
|-
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |2. Release the SWITCH.
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |2. Release the SWITCH.
 
|-
 
|-
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |3. Then LED starts blinking and counting first digit of program number (one blink means digit 1, two blinks mean digit 2 etc). To stop counter, push SWITCH.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |3. Then the LED starts blinking and counting the first digit of the program number (one blink means digit 1, two blinks mean digit 2, etc). To stop the counter, push SWITCH.
 
|-
 
|-
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |4. Release the SWITCH, then LED starts blinking and counting second digit of program number. To stop counter, push SWITCH.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |4. Release the SWITCH, then the LED starts blinking and counting the second digit of the program number. To stop the counter, push SWITCH.
 
|-
 
|-
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |5. Release the SWITCH, then LED starts blinking and counting third digit on program number. To stop counter, push SWITCH.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |5. Release the SWITCH, then the LED starts blinking and counting the third digit on the program number. To stop the counter, push SWITCH.
 
|-
 
|-
 
| rowspan="2" style="border: 1px solid white; border-bottom: 1px solid #0054A6; background: white;" |
 
| rowspan="2" style="border: 1px solid white; border-bottom: 1px solid #0054A6; background: white;" |
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |6. Release the SWITCH, then LED starts blinking and counting fourth digit on program number. To stop counter, push SWITCH.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |6. Release the SWITCH, then the LED starts blinking and counting the fourth digit on the program number. To stop the counter, push SWITCH.
 
|-
 
|-
 
| style="border: 1px solid white; border-bottom: 1px solid #0054A6; background: white;" |  
 
| style="border: 1px solid white; border-bottom: 1px solid #0054A6; background: white;" |  
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |7. Release the SWITCH, then LED starts blinking and counting fifth digit on program number. To stop counter, push SWITCH.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" |7. Release the SWITCH, then the LED starts blinking and counting the fifth digit on the program number. To stop the counter, push SWITCH.
 
|-
 
|-
 
| colspan="3" style="border: 1px solid #0054A6; background: white; color: #0054A6; text-align: center;" | All Devices
 
| colspan="3" style="border: 1px solid #0054A6; background: white; color: #0054A6; text-align: center;" | All Devices
Line 139: Line 139:
 
|}
 
|}
 
----
 
----
=====Send data with 0, if ignition is off=====
+
=====Send data with 0 if the ignition is off=====
 
----
 
----
Depending on CAN Adapter I/O parameters and ignition status, FMB641 can send locked (last known) CAN Adapter I/O and active (real time) parameters values or reset values to 0. When ignition is off, CAN Adapter I/O parameters values sent to server are:
+
Depending on CAN Adapter I/O parameters and ignition status, FMB641 can send locked (last known) CAN Adapter I/O and active (real-time) parameter values or reset values to 0. When the ignition is off, CAN Adapter I/O parameters values sent to the server are:
  
 
{| class="wikitable" style="width:40%;"
 
{| class="wikitable" style="width:40%;"
Line 306: Line 306:
 
SMS command [[FMB lvcangetinfo|lvcangetinfo]] example:
 
SMS command [[FMB lvcangetinfo|lvcangetinfo]] example:
 
* If you have set SMS login and password: <code>login pass lvcangetinfo</code>
 
* If you have set SMS login and password: <code>login pass lvcangetinfo</code>
* If SMS login and password are not set leave two spaces before command: <code><span style="color:#f8f9fa">aa</span>lvcangetinfo</code>
+
* If SMS login and password are not set leave two spaces before the command: <code><span style="color:#f8f9fa">aa</span>lvcangetinfo</code>
 
<br />
 
<br />
 
GPRS commands require [[Codec|Codec 12]] protocol.
 
GPRS commands require [[Codec|Codec 12]] protocol.
  
For more SMS commands please see [[{{{model|FMB640}}} SMS/GPRS command list|SMS/GPRS command list]]
+
For more SMS commands please see [[FMB641 SMS/GPRS command list|SMS/GPRS command list]]
  
 
{| class="wikitable" style="width:80%;"
 
{| class="wikitable" style="width:80%;"
Line 319: Line 319:
 
|-
 
|-
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | lvcansetprog #
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | lvcansetprog #
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Set program number to CAN Adapter that is connected to {{{model|FMB640}}}.<br/># - three digit number that identity vehicle.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Set program number to CAN Adapter that is connected to FMB641.<br/># - three digit number that identity vehicle.
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Yes
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Yes
 
|-
 
|-
Line 327: Line 327:
 
|-
 
|-
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | lvcangetprog  
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | lvcangetprog  
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Get program number from CAN Adapter that is connected to {{{model|FMB640}}}.
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Get program number from CAN Adapter that is connected to FMB641.
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Yes
 
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: center; background: white;" | Yes
 
|-
 
|-
Line 372: Line 372:
 
===CAN Adapter State Flags===
 
===CAN Adapter State Flags===
 
----
 
----
CAN Adapters receive data about the states of various systems within the vehicle, and send them as flags to {{{model|FMB640}}}. FMB641 device stores these flags in hexadecimal format, as one variable. Below is a list of kept flags and how to retrieve them.<br /> The full list of state flags is stored only by:
+
CAN Adapters receive data about the states of various systems within the vehicle, and send them as flags to FMB641. FMB641 device stores these flags in hexadecimal format, as one variable. Below is a list of kept flags and how to retrieve them.<br /> The full list of state flags is stored only by:
 
* [[ALL-CAN300]]
 
* [[ALL-CAN300]]
 
Only '''security state flags''' are stored by:
 
Only '''security state flags''' are stored by:
Line 504: Line 504:
 
<span style=color:#339A6C>0x08</span> – Charging cable connected<br/>
 
<span style=color:#339A6C>0x08</span> – Charging cable connected<br/>
 
<span style=color:#339A6C>0x10</span> – Vehicle working mode, 1- business mode, 0 - private mode<br/>
 
<span style=color:#339A6C>0x10</span> – Vehicle working mode, 1- business mode, 0 - private mode<br/>
<span style=color:#339A6C>0x20</span> – Bit appears when any operate button in car was put. This bit is reset if the button is released<br/>
+
<span style=color:#339A6C>0x20</span> – Bit appears when any operating button in the car was put on. This bit is reset if the button is released<br/>
 
<span style=color:#339A6C>0x40</span> – Bit appears when immobilizer is in service mode<br/>
 
<span style=color:#339A6C>0x40</span> – Bit appears when immobilizer is in service mode<br/>
<span style=color:#339A6C>0x80</span> – Immobiliser, bit appears during introduction of a programmed sequence of keys in the car<br/><br/>
+
<span style=color:#339A6C>0x80</span> – Immobiliser, bit appears during the introduction of a programmed sequence of keys in the car<br/><br/>
 
Byte3:<br/>
 
Byte3:<br/>
 
<span style=color:#0000FF>0x01</span> – The key is in ignition lock<br/>
 
<span style=color:#0000FF>0x01</span> – The key is in ignition lock<br/>
Line 520: Line 520:
 
<span style=color:#9DCD00>0x10</span> – Handbrake is actuated (information available only with ignition on)<br/>
 
<span style=color:#9DCD00>0x10</span> – Handbrake is actuated (information available only with ignition on)<br/>
 
<span style=color:#9DCD00>0x20</span> – Footbrake is actuated (information available only with ignition on)<br/>
 
<span style=color:#9DCD00>0x20</span> – Footbrake is actuated (information available only with ignition on)<br/>
<span style=color:#9DCD00>0x40</span> – Engine is working (information available only when the ignition on)<br/>
+
<span style=color:#9DCD00>0x40</span> – Engine is working (information available only when the ignition is on)<br/>
 
<span style=color:#9DCD00>0x80</span> – Reverse is on<br/><br/>
 
<span style=color:#9DCD00>0x80</span> – Reverse is on<br/><br/>
 
Byte5:<br/>
 
Byte5:<br/>
Line 568: Line 568:
 
==LV-CAN200/ALL-CAN300 Important Information==
 
==LV-CAN200/ALL-CAN300 Important Information==
 
===Program Number logic change===
 
===Program Number logic change===
Due to the growing number of supported cars, program numbers have exceeded "999". In order to maintain one number format, we are moving from 3-digit to 4-digit program numbers.<br/>In new LV-CAN200/ALL-CAN300 firmware (from 2017-09-01) all program numbers that were up to 999 are changed to start from 1000. So that further program numbers would continue the counting with 4-digit numbers.<br/>However, all existing program numbers stay the same, but "1" is added to the front. The device still understands the entered 3-digit program number (via SMS/GPRS), it will automatically add "1" before it. If you enter "247" - device number will turn into "1247". In Bootloader only 4-digit format is available, just add "1" to the front of the needed program number.
+
Due to the growing number of supported cars, program numbers have exceeded "999". In order to maintain one number format, we are moving from 3-digit to 4-digit program numbers.<br/>In new LV-CAN200/ALL-CAN300 firmware (from 2017-09-01) all program numbers that were up to 999 are changed to start from 1000. So that further program numbers would continue the counting with 4-digit numbers.<br/>However, all existing program numbers stay the same, but "1" is added to the front. If the device still understands the entered 3-digit program number (via SMS/GPRS), it will automatically add "1" before it. If you enter "247" - the device number will turn into "1247". In Bootloader only a 4-digit format is available, just add "1" to the front of the needed program number.
 
-->
 
-->
  
 
<!--
 
<!--
 
===Example===
 
===Example===
When using older connection schemes where the program number displayed as 3-digit program number:
+
When using older connection schemes where the program number is displayed as a 3-digit program number:
 
[[Image:Fmb120_can_prog_number.png|600px|none]]
 
[[Image:Fmb120_can_prog_number.png|600px|none]]
  
Line 601: Line 601:
 
*Please press the switch briefly and wait for the LED to start blinking every second.  
 
*Please press the switch briefly and wait for the LED to start blinking every second.  
 
* Automatic calibration process takes up to 10 seconds depending on the vehicle's model.  
 
* Automatic calibration process takes up to 10 seconds depending on the vehicle's model.  
*Correct calibration process is confirmed by LED starting to blink every 2 seconds (when the CAN-BUS is active).  
+
*Correct calibration process is confirmed by the LED starting to blink every 2 seconds (when the CAN-BUS is active).  
*When the CAN-BUS enters sleep mode, the SIMPLE-CAN device also enters sleep mode and takes 1.6mA @ 12V. In the sleep mode LED does not shine.  
+
*When the CAN-BUS enters sleep mode, the SIMPLE-CAN device also enters sleep mode and takes 1.6mA @ 12V. In sleep mode, LED does not shine.  
*If after calibration process LED shines continuously, it means that the device is not calibrated yet, CAN-BUS transmission has failed or ignition during calibration was not ON.-->
+
*If after the calibration process LED shines continuously, it means that the device is not calibrated yet, CAN-BUS transmission has failed or ignition during calibration was not ON.-->
 
[[Category:FMB641 Manual|  8]]
 
[[Category:FMB641 Manual|  8]]

Revision as of 12:06, 5 January 2023

Main Page > EOL Products > FMB641 > FMB641 Manual > FMB641 CAN adapters
Alert.png

FMB641 supports CAN adapters over RS232 connection. CAN adapter support is added from 02.02.11.Rev.00 firmware
Easy steps to install and configure following CAN adapters on FMB641 device:


Installing CAN adapter with FMB641 device

Installing LV-CAN200/ALL-CAN300/CAN-CONTROL

You can watch LV-CAN200/ALL-CAN300 installation video in our YouTube channel here or follow connection instructions below.

Tools needed for installation

  • LV-CAN200/ALL-CAN300/CAN-CONTROL
  • Connection scheme (Please contact Teltonika Sales Representative and provide information about vehicle manufacturer, model and year.
  • FMB641 device
  • Pliers
  • Quick splice connectors (If vehicle CAN bus wires are very thin CAN adapter wires should be connected directly)
  • Plastic pry tool
  • Zip ties

Installation steps

  1. Be ready with a vehicle connection scheme that you have received from a Teltonika Sales Representative.
  2. Check the scheme for the current vehicle connection. Look for connectors matching PINs numbers and colors (maybe different) according to the connection scheme.
  3. Connect CAN adapter with FMB641:
    1. Connect CAN adapter's RS232 to RJ45 of FMB641.
  4. Connect CAN adapter CAN wires (CAN L, CAN H) as specified in connection scheme.

    Alert.png
    Do not swap CAN L and CAN H lines.
    Not all CAN adapter wires may be used in the vehicle.

  5. Connect CAN adapter positive and ground wires to the vehicle power supply lines or near FMB641 power wires.

    Alert.png
    Do not swap power supply lines.
    Make sure that voltage does not exceed 30V.

  6. Switch vehicle ignition to ACC position. CAN adapter LED diode on the back should start blinking.
  7. Configure CAN adapter to read CAN bus data or control vehicle by setting its program number - CAN Adapter configuration


LV-CAN200/ALL-CAN300 connection example. This is not a connection diagram for your vehicle. Every vehicle has a specific scheme.


Installing LV-CAN200/ALL-CAN300 + SIMPLE-CAN / MINI-CAN


You can watch LV-CAN200/ALL-CAN300 + SIMPLE-CAN / MINI-CAN installation video in our YouTube channel here or follow connection instructions below.

Tools needed for installation

  • LV-CAN200/ALL-CAN300
  • Connection scheme (Please contact Teltonika Sales Representative and provide information about vehicle manufacturer, model and year.
  • SIMPLE-CAN / MINI-CAN (Used for contactless connection. If two CAN lines need to be connected, two SIMPLE-CAN's / MINI-CAN's must be used.)
  • FMB641 device
  • Pliers
  • Quick splice connectors (If vehicle CAN bus wires are very thin CAN adapter wires should be connected directly)
  • Plastic pry tool
  • Zip ties

Installation steps

  1. Follow the same 1, 2, 3 installation steps as with LV-CAN200/ALL-CAN300/CAN-CONTROL installation.
  2. Connect the appropriate CAN bus pair of wires between the CAN adapter and SIMPLE-CAN / MINI-CAN:
    If CAN1 line need to be connected as specified in the connection scheme:
    1. Connect CAN adapter CAN1 L to CAN L of SIMPLE-CAN / MINI-CAN.
    2. Connect CAN adapter CAN1 H to CAN H of SIMPLE-CAN / MINI-CAN.
    If CAN2 line need to be connected as specified in the connection scheme:
    1. Connect CAN adapter CAN2 L to CAN L of SIMPLE-CAN / MINI-CAN.
    2. Connect CAN adapter CAN2 H to CAN H of SIMPLE-CAN / MINI-CAN.

      Alert.png
      Do not swap CAN L and CAN H lines.
      Not all CAN adapter wires may be used in the vehicle.

  3. Fasten SIMPLE-CAN / MINI-CAN between vehicle CAN bus wires according to the connection scheme. It doesn't matter which wire is on which side.

    SIMPLE-CAN connection.gif

  4. Connect CAN adapter positive and ground wires to the vehicle power supply lines or near FMB641 power wires.

    Alert.png
    Do not swap power supply lines.
    Make sure that voltage does not exceed 30V.

  5. Switch vehicle ignition to ACC position.
  6. SIMPLE-CAN / MINI-CAN LED will shine continously so device awaits for calibration.
    • Press the switch shortly and wait for the LED to start blinking every one second.


    • Automatic calibration process takes up to 10 seconds depending on the vehicle model. The device is calibrated properly then the LED is blinking every 2 seconds.

    Alert.png
    If after calibration process LED shines continuously, it means that device is not calibrated yet, CAN-BUS transmission has failed or ignition during calibration was not ON.

  7. Configure CAN adapter to read CAN bus data by setting its program number - CAN Adapter configuration


CAN Adapter Configuration

CAN Adapter program number selection


CAN Adapter must be set to the program number which depends on the vehicle model. Needed program number is always written on CAN Adapter mounting scheme. In order to be able to enter the program number in the adapter Software date of the CAN adapter must be newer than the connection scheme date. CAN adapter Software date can be checked:

The number of digits required to enter the correct Program No. may vary depending on the Software and manufacture date of your CAN Adapter:

Entering via SMS command


Required conditions:

  • CAN adapter properly connected to FMB641 device

CAN adapter program number can be set remotely, using an SMS command. Send following SMS command to FMB641 device:

  • If you have set SMS login and password: login pass lvcansetprog X
  • If SMS login and password are not set leave two spaces before the command:   lvcansetprog X

Command example:   lvcansetprog 11434
SMS response: LVCAN ProgNum: 11434

If during SMS command FMB641 was in the following Sleep mode:

Entering via Teltonika Configurator


Required conditions:

  • CAN adapter properly connected to FMB641 device

CAN adapter program number can be set via Teltonika Configurator → LVCAN → Program Number. When the program number is entered press Save to device.png Save to device button that saves the entered program number into FMB641.

Fmx640.gif

Entering manually


Required conditions:

  • CAN adapter properly connected to FMB641 device
  • Vehicle ignition must be ON

Depending on the used CAN Adapter, the length of the setup sequence will vary.

Steps to set program number:

LV-CAN200, ALL-CAN300 back
CAN-CONTROL back
For
ALL-CAN300
LV-CAN200
3 digit
For
ALL-CAN300
LV-CAN200
4 digit
For
LV-CAN200
CAN-CONTROL
5 digit
1. Hold SWITCH down until LED stars blink.
2. Release the SWITCH.
3. Then the LED starts blinking and counting the first digit of the program number (one blink means digit 1, two blinks mean digit 2, etc). To stop the counter, push SWITCH.
4. Release the SWITCH, then the LED starts blinking and counting the second digit of the program number. To stop the counter, push SWITCH.
5. Release the SWITCH, then the LED starts blinking and counting the third digit on the program number. To stop the counter, push SWITCH.
6. Release the SWITCH, then the LED starts blinking and counting the fourth digit on the program number. To stop the counter, push SWITCH.
7. Release the SWITCH, then the LED starts blinking and counting the fifth digit on the program number. To stop the counter, push SWITCH.
All Devices 8. Release SWITCH, if programming is successful LED will blink 10 times.

Send data with 0 if the ignition is off

Depending on CAN Adapter I/O parameters and ignition status, FMB641 can send locked (last known) CAN Adapter I/O and active (real-time) parameter values or reset values to 0. When the ignition is off, CAN Adapter I/O parameters values sent to the server are:

CAN Adapter I/O element Status
Vehicle Speed reset
Accelerator pedal position reset
Total fuel used lock
Fuel level (liters) lock
Engine RPM reset
Total mileage lock
Fuel level (%) lock
Program number lock
Module ID lock
Engine Work Time lock
Engine Work Time (counted) lock
Total Mileage (counted) lock
Fuel Consumed (counted) lock
Fuel Rate reset
Program number lock
AdBlue Level (%) lock
AdBlue Level (liters) lock
Engine Load reset
Engine Temperature active
Axle 1 Load lock
Axle 2 Load lock
Axle 3 Load lock
Axle 4 Load lock
Axle 5 Load lock
Control State Flags active
Agricultural Machinery Flags active
Harvesting Time lock
Area of Harvest reset
Mowing Efficiency active
Grain Mown Volume active
Grain Moisture active
Harvesting Drum RPM reset
Gap Under Harvesting Drum active
Security State Flags active
Tachograph Total Vehicle Distance lock
Trip Distance reset
Tachograph Vehicle Speed reset
Tachograph Driver Card Presence active
Driver1 States active
Driver2 States active
Driver1 Continuous Driving Time active
Driver2 Continuous Driving Time active
Driver1 Cumulative Break Time active
Driver2 Cumulative Break Time active
Driver1 Selected Activity Duration active
Driver2 Selected Activity Duration active
Driver1 Cumulative Driving Time active
Driver2 Cumulative Driving Time active


SMS Configuration


All CAN Adapter IO elements can be configured remotely via SMS commands.

SMS/GPRS Commands

CAN Adapters have several dedicated SMS/GPRS commands.
SMS command structure:

<SMS login><space><SMS password><space><command><space><value>

SMS command lvcangetinfo example:

  • If you have set SMS login and password: login pass lvcangetinfo
  • If SMS login and password are not set leave two spaces before the command: aalvcangetinfo


GPRS commands require Codec 12 protocol.

For more SMS commands please see SMS/GPRS command list

COMMAND DESCRIPTION RESPONSE
lvcansetprog # Set program number to CAN Adapter that is connected to FMB641.
# - three digit number that identity vehicle.
Yes
lvcansimpletacho # Add or remove simpletacho start byte.
# - 0 or 1 (0 – don’t add start byte, 1 – add start byte).
No
lvcangetprog Get program number from CAN Adapter that is connected to FMB641. Yes
lvcangetinfo Get information about connected CAN Adapter Yes
lvcanclear # Clear Total Mileage (counted), Engine Work Time (counted), Fuel Consumed (counted) parameters values.
# - parameter (0 – Engine work time (counted), 1 – Fuel Consumed (counted), 2 – Vehicle Mileage (counted)).
Yes
lvcanfaultcodes Read DTC fault codes Yes
CAN-CONTROL specific commands
lvcanopenalldoors Open [unlock] all doors Yes
lvcanclosealldoors Close [lock] all doors Yes
lvcanopentrunk Open [unlock] trunk Yes
lvcanturninglights One flash of all turn lights ordered trough accidental / blinking turn light switch Yes

CAN Adapter State Flags


CAN Adapters receive data about the states of various systems within the vehicle, and send them as flags to FMB641. FMB641 device stores these flags in hexadecimal format, as one variable. Below is a list of kept flags and how to retrieve them.
The full list of state flags is stored only by:

Only security state flags are stored by:

Property name Size, bytes Value bitmasks
Control state flags 4 Byte0 (LSB):

0x01 – STOP
0x02 – Oil pressure / level
0x04 – Coolant liquid temperature / level
0x08 – Handbrake system
0x10 – Battery not charging
0x20 – AIRBAG
0x40 – EPS (Electric power steering)
0x80 – ESP (Electronic Stability Program)

Byte1:
0x01 – CHECK ENGINE
0x02 – Lights failure
0x04 – Low tire pressure
0x08 – Wear of brake pads
0x10 – Warning
0x20 – ABS
0x40 – Low Fuel
0x80 – Maintenance required

Byte2:
0x01 – ESP
0x02 – Glow plug indicator
0x04 – FAP
0x08 – Electronics pressure control
0x10 – Parking lights
0x20 – Dipped headlights
0x40 – Full beam headlights
0x80 – Front foglights

Byte3:
0x01 – Ready to drive
0x02 – Cruise control
0x04 – Automatic Retarder
0x08 – Manual retarder
0x10 – Air Conditioning
0x20 – Rear foglights
0x40 – Passenger's seat belt
0x80 – Driver's seat belt

Agricultural machinery flags 8 Byte0 (LSB):

0x01 – Mowing
0x02 – Grain release from hopper
0x04 – First front hydraulic turned on
0x08 – Rear Power Take-Off turned on

Byte1:
0x01 – Excessive play under the threshing drum
0x02 – Grain tank is open
0x04 – 100% of Grain tank
0x08 – 70% of Grain tank
0x10 – Drain filter in hydraulic system of drive cylinders is plugged
0x20 – Pressure filter of drive cylinders hydraulic system is plugged
0x40 – Alarm oil level in oil tank
0x80 – Pressure filter of brakes hydraulic system is plugged

Byte2:
0x01 – Oil filter of engine is plugged
0x02 – Fuel filter is plugged
0x04 – Air filter is plugged
0x08 – Alarm oil temperature in hydraulic system of chassis
0x10 – Alarm oil temperature in hydraulic system of drive cylinders
0x20 – Alarm oil pressure in engine
0x40 – Alarm coolant level
0x80 – Overflow chamber of hydraulic unit

Byte3:
0x01 – Unloader drive is ON. Unloading tube pivot is in idle position
0x02 – No operator!
0x04 – Straw walker is plugged
0x08 – Water in fuel
0x10 – Cleaning fan RPM
0x20 – Trashing drum RPM
0x40 – Pouring chemicals turned on
0x80 – Conveyor belt turned on

Byte4:
0x01 – Salt spreaders drive wheel turned on
0x02 – Low water level in the tank
0x04 – First rear hydraulic turned on
0x08 – Standalone engine working
0x10 – Right joystick moved right
0x20 – Right joystick moved left
0x40 – Right joystick moved front
0x80 – Right joystick moved back

Byte5:
0x01 – Brushes turned on
0x02 – Water supply turned on
0x04 – Vacuum cleaner
0x08 – Unloading from the hopper
0x10 – High Pressure washer (Karcher)
0x20 – Salt (sand) disperser ON
0x40 – Low salt (sand) level

Byte6:
0x01 – Second front hydraulic turned on
0x02 – Third front hydraulic turned on
0x04 – Fourth front hydraulic turned on
0x08 – Second rear hydraulic turned on
0x10 – Third rear hydraulic turned on
0x20 – Fourth rear hydraulic turned on
0x40 – Front three-point Hitch turned on
0x80 – Rear three-point Hitch turned on

Byte7:
0x01 – Left joystick moved right
0x02 – Left joystick moved left
0x04 – Left joystick moved front
0x08 – Left joystick moved back
0x10 – Front Power Take-Off turned on
0x20 – Liquid pump turned on
0x40 – Light signal turned on

Security state flags 8 Byte0 (LSB):

0x01 – CAN1 not connected, require connection
0x02 – CAN1 not connected, require connection
0x03 – CAN1 connected
0x04 – CAN2 not connected, require connection
0x08 – CAN2 not connected, require connection
0x0C – CAN2 connected
0x10 – CAN3 not connected, require connection
0x20 – CAN3 not connected, require connection
0x30 – CAN3 connected

Byte2:
0x04 – Battery charging
0x08 – Charging cable connected
0x10 – Vehicle working mode, 1- business mode, 0 - private mode
0x20 – Bit appears when any operating button in the car was put on. This bit is reset if the button is released
0x40 – Bit appears when immobilizer is in service mode
0x80 – Immobiliser, bit appears during the introduction of a programmed sequence of keys in the car

Byte3:
0x01 – The key is in ignition lock
0x02 – Ignition on
0x04 – Dynamic ignition on
0x08 – Webasto
0x10 – Car closed
0x20 – Car closed by factory's remote control
0x40 – Factory-installed alarm system is actuated (is in panic mode)
0x80 – Factory-installed alarm system is emulated by module

Byte4:
0x01 – Parking activated (automatic gearbox)
0x10 – Handbrake is actuated (information available only with ignition on)
0x20 – Footbrake is actuated (information available only with ignition on)
0x40 – Engine is working (information available only when the ignition is on)
0x80 – Reverse is on

Byte5:
0x01 – Front left door opened
0x02 – Front right door opened
0x04 – Rear left door opened
0x08 – Rear right door opened
0x10 – Engine cover opened
0x20 – Trunk door opened

Byte6:
– Low nibble (mask 0x0F value)
0x01 – Car was closed by the factory's remote control
0x02 – Car was opened by the factory's remote control
0x03 – Trunk cover was opened by the factory's remote control
0x04 – Module has sent a rearming signal
0x05 – Car was closed three times by the factory's remote control
– High nibble (mask 0xF0 bit)
0x80 – CAN module goes to sleep mode

Tachograph driver card presence 1 0x00 – No driver card

0x01 – Driver1 card presence
0x02 – Driver2 card presence
0x03 – Driver1 and driver2 cards present

Driver 1 states 1 0xX0 – Break/rest

0xX1 – Availability
0xX2 – Work
0xX3 – Driving
0x0X – No time-related warning detected
0x1X – Limit #1: 15 min before 4 1/2 h
0x2X – Limit #2: 4 1/2 h reached (continuous driving time exceeded)
0x3X – Limit #3: 15 minutes before optional warning 1
0x4X – Limit #4: optional warning 1 reached
0x5X – Limit #5: 15 min before optional warning
0x6X – Limit #6: optional warning 2 reached

Driver 2 states 1