Difference between revisions of "Template:FMB Blue-tooth settings"
Atabasnikov (talk | contribs) m (Atabasnikov moved page FMB120 Bluetooth settings to Template:FMB Bluetooth settings) |
|||
(85 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ==General functionality== | |
+ | |||
+ | [[Image:Fmb120_bt_general.png|300px|right]] | ||
+ | General functionality configures Bluetooth to work in slave mode. This mode allows any external device to connect to FMB120.<br/>Parameter ''BT Radio'' allows enabling or disabling Bluetooth. There are three different scenarios: | ||
+ | # <span style=color:#F6A83E>Disabled</span> – Bluetooth functionality will be disabled. | ||
+ | # <span style=color:#F6A83E>Enable (hidden)</span> – Bluetooth functionality will be enabled, external devices will be able to connect to FMB120, but no devices will be able to detect it. | ||
+ | # <span style=color:#F6A83E>Enable (visible)</span> – Bluetooth functionality will be enabled and any external device will be able to detect and connect to FMB120.<br/>''Local Name'' parameter lets user to declare visible name of FMB120 to external devices.<br/>''Local PIN'' parameter lets user to configure Bluetooth PIN of FMB120 device.<br/> | ||
+ | FMB120 Bluetooth has several different ''Security Modes': | ||
+ | * <span style=color:#F6A83E>PIN only</span> – only Local PIN will be reacquired to complete connection to FMB120. | ||
+ | * <span style=color:#F6A83E>PIN + MAC list</span> – PIN and Authorized Devices MAC List will be checked against to allow connection to FMB120. If the external device MAC ID is in the list and correct ''Local PIN'' is entered then connection will be established, otherwise FMB120 will reject connection. | ||
+ | * <span style=color:#F6A83E>MAC list only</span> – only ''Authorized Devices MAC List'' will be checked when trying to connect to FMB120. If external device MAC ID is in the list then connection will be established, otherwise FMB120 will reject connection. | ||
+ | * <span style=color:#F6A83E>None</span> – neither ''Local PIN'' nor ''Authorized Device MAC List'' will be checked. | ||
+ | |||
+ | Auto connection functionality configures FMB120 as master device, which allows connecting FMB120 to an external device. FMB120 currently supports these modes: | ||
+ | * <span style=color:#F6A83E>None</span> – disables auto connection functionality. | ||
+ | * <span style=color:#F6A83E>Hands Free</span> or <span style=color:#F6A83E>OBDII</span> – FMB120 starts searching for an external hands free headset. If FMB120 finds a device which matches user defined ''External MAC'' or ''External Name'' then FMB120 will try to pair with that external device. If the external device asks for PIN then FMB120 will send user defined ''External PIN''. After successfully pairing FMB120 will connect to paired device. | ||
+ | * <span style=color:#F6A83E>Data Link</span> – BT Data link mode is enabled by Configurator ''Data Link'' parameter: when ''Data Link'' is configured and FMB has a link with the server, paired device can send messages via Bluetooth SPP profile directly to the server. Messages will be encoded by codec12. | ||
+ | |||
+ | {| class="wikitable" style="border-style: solid; border-width: 0px" | ||
+ | |+ | ||
+ | |- | ||
+ | | style="text-align: left; background: #F6F6FB;" | [[Image:Bw_nb.png|50px]] | ||
+ | | style="text-align: left; background: #F6F6FB;" | FMB120 supports ONE connection at a time.<br/>FMB001 can see up to 10 available devices. If there are more than 10 devices, the list may change with each new scan. | ||
+ | |} | ||
+ | |||
+ | ''External Name'' parameter works as a substring, which allows user to enter a part of the full external device name. For example, if external device name is "HandsFreeHeadset" and user enters "HandsFree" in External Name parameter window, then FMB120 will be allowed to connect to an external device named "HandsFreeHeadset". | ||
+ | |||
+ | ==How to connect Bluetooth Hands Free adapter to FMB device== | ||
+ | |||
+ | [[Image:Fmb120_bt_settings.png|thumb|300px|right|Bluetooth settings]] | ||
+ | [[Image:Fmb120_inc_call_action_settings.png|thumb|300px|right|Incoming Call Action settings under SMS\Call Settings]] | ||
+ | ===Bluetooth settings configuration=== | ||
− | + | These are instructions on how to easily create a connection between a Bluetooth Hands Free device and an FMB device. First the FMB device Bluetooth settings need to be configured. These are the required steps: | |
− | + | * Press <span style=color:#F6A83E>Bluetooth</span> settings (position 1). | |
+ | * Turn on BT Radio by pressing <span style=color:#F6A83E>Enable (visible)</span> (position 2). ''Local name'' (position 3) will be "FMB120_last 7 imei digits" by default, which can be changed. | ||
+ | * Set Security Mode (position 4) to <span style=color:#F6A83E>PIN only</span> or <span style=color:#F6A83E>None</span>. <span style=color:#F6A83E>PIN + MAC list</span> or <span style=color:#F6A83E>MAC list only</span> security modes could also be selected, but in that case external device MAC address is required to be entered to ''Authorized Devices MAC List'' (position 7). | ||
+ | * Set connection mode to <span style=color:#F6A83E>Hands Free</span> (position 5). | ||
+ | * Set ''External Name'' (position 6) as your Hands Free device name for proper identification. In the given example Hands Free headset name is "DMH10" but at least 2 characters are required to recognize it and connect to it. For better and quicker adapter identification on the network you could enter a full device name. You could check your Hands Free adapter Bluetooth name by scanning nearby Bluetooth devices using mobile phone or computer with Bluetooth adapter. | ||
+ | * Go to <span style=color:#F6A83E>SMS/Call Settings</span> in main menu and set ''Incoming Call Action'' to <span style=color:#F6A83E>Do Nothing</span> as shown on next figure. | ||
+ | * After all these steps press <span style=color:#F6A83E>Save to device</span> to save configuration. | ||
+ | * Now FMB device can be disconnected from the configurator. | ||
+ | <br/><br/><br/><br/><br/><br/><br/> | ||
− | If you | + | ===Connecting Bluetooth Hands Free adapter=== |
− | + | ---- | |
+ | Turn on Hands Free device and then turn on its Bluetooth connection for pairing following your model instructions. Hands Free adapter should make a specific sound in the speakers or its LED identification should inform about a successful connection. To check if the adapter is successfully connected, dial the FMB device phone number and the Hands Free device should start ringing. If you later restart FMB device it will automatically reconnect to this adapter. | ||
+ | <br/><br/><br/><br/> | ||
− | + | ==Logging the FMB120 device using your mobile phone== | |
− | |||
− | + | Bluetooth starts automatically when the FMB device is on. Take your mobile phone, go to Settings->Bluetooth and turn it on. Scan for nearby devices, find the device in list, distinguish the device by last IMEI digits on device module. Press pair, wait until device will ask to enter pairing password, type: ''"5555"'' (as in the example on the figure). Paired device will show up in the paired device list. Download a terminal for Bluetooth e.g. BlueTerm from Play Store/App store. Run app, click Find->Connect to your paired device. Now we need to send a command to FMB120 from Bluetooth terminal, type: ''".log:1"''<br/>Device will respond with ''"Debug enabled"'' and FMB120 log will show up. Do not forget to save the log file to mobile phone. | |
− | |||
− | |||
− | + | ==Device debug over Android smartphone== | |
− | + | [[Image:Fmb120_bt_general_vis.png|300px|right]] | |
− | |||
− | + | In order to pair FMB device with Android smartphone, make sure that BT radio is enabled (visible) in device configuration. It can be checked via SMS command too:<br/>''"getparam 800"''<br/>The answer has to be ''"2"'', which means ''Enabled and visible''. | |
− | < | + | <br/><br/><br/><br/><br/><br/><br/><br/><br/> |
− | |||
− | + | [[Image:Android_bt.png|300px|right]] | |
− | |||
− | |||
− | < | + | * Scan for visible BT devices using your Android smartphone and connect to your FMB device.<br/>Default FMB BT name: ''"MB1YX_last_7_imei_digits"''.<br/>Default PIN code: ''"5555"''. |
− | |||
− | + | <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | |
− | |||
− | |||
− | |||
− | |||
− | |||
+ | * Download "Bluetooth Terminal" application. Following link can be used: https://play.google.com/store/apps/details?id=com.hatflabs.btt | ||
− | + | [[Image:Android_bt_serial.png|300px|right]] | |
− | * | + | * Run "Bluetooth Terminal", in menu press "Connect" and select paired FMB device. To start log check "CR" and enter the command in terminal: ''".log:1"''. |
− | |||
− | |||
− | |||
− | + | * Wait ~10 minutes and press "Save" button in menu. You will find saved log file in device folder (My Files/Bluetooth Terminal), select log files and press "Share via Email" and send them to Teltonika support. | |
− | + | <br/><br/> | |
− | |||
− | + | <gallery widths=100px perrow=3 caption="Saving and sharing the log"> | |
− | + | Image:Android_bt_log1.png | |
+ | Image:Android_bt_log2.png | ||
+ | Image:Android_bt_log3.png | ||
+ | </gallery> | ||
− | + | <br/><br/><br/><br/><br/> | |
− | |||
− | |||
{| class="wikitable" style="border-style: solid; border-width: 0px" | {| class="wikitable" style="border-style: solid; border-width: 0px" | ||
− | |+ | + | |+ |
|- | |- | ||
− | | style="text-align: left; background: #F6F6FB;" |[[Image:Bw_nb.png|50px]] | + | | style="text-align: left; background: #F6F6FB;" | [[Image:Bw_nb.png|50px]] |
− | | style="text-align: left; background: #F6F6FB;" | | + | | style="text-align: left; background: #F6F6FB;" | Unfortunately it is not possible to perform debug the same way on iPhone, because there is no native SPP Bluetooth profile support on iPhone. |
|} | |} | ||
− | '' | + | ==How to connect OBD II Bluetooth Dongle to FMB device== |
+ | ===Bluetooth settings configuration=== | ||
+ | |||
+ | [[Image:Fmb120_bt_odbii_settings.png|300px|right]] | ||
+ | These are instructions on how to easily prepare Bluetooth Dongle connection to the FMB device. First we need to configure FMB device Bluetooth settings. These are the required steps: | ||
+ | * Go to <span style=color:#F6A83E>Bluetooth</span> section similarly to as shown in the figure to the right (position 1). | ||
+ | * Turn on BT Radio by pressing <span style=color:#F6A83E>Enable (visible)</span> (position 2). "Local name" (position 3) will automatically be "FMB120_last 7 imei digits", you can leave it or type your own name. | ||
+ | * Set ''Security Mode'' (position 4) to <span style=color:#F6A83E>PIN only</span> or <span style=color:#F6A83E>None</span> (you could select <span style=color:#F6A83E>PIN + MAC list</span> or <span style=color:#F6A83E>MAC list only</span> security mode but in this case you need to type external device MAC address in <span style=color:#F6A83E>Authorized Devices MAC List</span> (position 7). | ||
+ | * Set connection mode to <span style=color:#F6A83E>OBDII</span> (position 5). | ||
+ | * Set <span style=color:#F6A83E>External Name</span> as your Bluetooth OBD II device name for proper device identification and connection to it. In this example OBD II device name is "DONGLE" but at least 2 characters are needed to recognize it and connect to it. For better and faster adapter identification in network you could enter a full device name. You could check your OBD II adapter Bluetooth name by scanning nearby Bluetooth devices using mobile phone or computer with Bluetooth adapter. | ||
+ | * Go to <span style=color:#F6A83E>OBD II (Bluetooth)</span> in main menu and select priority and others parameters visible in the following figure. | ||
+ | |||
+ | [[Image:Fmb120_odbii_settings.png|800px|center]] | ||
+ | |||
+ | * After all these steps press <span style=color:#F6A83E>Save to device</span> to save configuration (position 8 in the top right hand figure). | ||
+ | * Now you can disconnect FMB device from the configurator. | ||
+ | |||
+ | ===Connecting to Bluetooth OBD II dongle=== | ||
+ | ---- | ||
+ | After this configuration you can connect your OBD II dongle to FMB device. Turn on ignition, then turn on its Bluetooth connection. For pairing follow your dongle instructions. OBDII device notification about paired Bluetooth connection depends on the specific model. If you later restart FMB device it will automatically reconnect to this dongle. | ||
− | === | + | ===Supported Bluetooth OBD II dongles=== |
+ | ---- | ||
+ | FMB module works with Bluetooth OBD II dongles which are based on ELM327 or STN1110 chips.<br/>Comparison of these chips is presented in the image below: | ||
− | + | [[Image:Elm317_stn1110_comp.png|400px|center]] | |
− | |||
− |
Revision as of 08:04, 26 April 2018
General functionality
General functionality configures Bluetooth to work in slave mode. This mode allows any external device to connect to FMB120.
Parameter BT Radio allows enabling or disabling Bluetooth. There are three different scenarios:
- Disabled – Bluetooth functionality will be disabled.
- Enable (hidden) – Bluetooth functionality will be enabled, external devices will be able to connect to FMB120, but no devices will be able to detect it.
- Enable (visible) – Bluetooth functionality will be enabled and any external device will be able to detect and connect to FMB120.
Local Name parameter lets user to declare visible name of FMB120 to external devices.
Local PIN parameter lets user to configure Bluetooth PIN of FMB120 device.
FMB120 Bluetooth has several different Security Modes':
- PIN only – only Local PIN will be reacquired to complete connection to FMB120.
- PIN + MAC list – PIN and Authorized Devices MAC List will be checked against to allow connection to FMB120. If the external device MAC ID is in the list and correct Local PIN is entered then connection will be established, otherwise FMB120 will reject connection.
- MAC list only – only Authorized Devices MAC List will be checked when trying to connect to FMB120. If external device MAC ID is in the list then connection will be established, otherwise FMB120 will reject connection.
- None – neither Local PIN nor Authorized Device MAC List will be checked.
Auto connection functionality configures FMB120 as master device, which allows connecting FMB120 to an external device. FMB120 currently supports these modes:
- None – disables auto connection functionality.
- Hands Free or OBDII – FMB120 starts searching for an external hands free headset. If FMB120 finds a device which matches user defined External MAC or External Name then FMB120 will try to pair with that external device. If the external device asks for PIN then FMB120 will send user defined External PIN. After successfully pairing FMB120 will connect to paired device.
- Data Link – BT Data link mode is enabled by Configurator Data Link parameter: when Data Link is configured and FMB has a link with the server, paired device can send messages via Bluetooth SPP profile directly to the server. Messages will be encoded by codec12.
FMB120 supports ONE connection at a time. FMB001 can see up to 10 available devices. If there are more than 10 devices, the list may change with each new scan. |
External Name parameter works as a substring, which allows user to enter a part of the full external device name. For example, if external device name is "HandsFreeHeadset" and user enters "HandsFree" in External Name parameter window, then FMB120 will be allowed to connect to an external device named "HandsFreeHeadset".
How to connect Bluetooth Hands Free adapter to FMB device
Bluetooth settings configuration
These are instructions on how to easily create a connection between a Bluetooth Hands Free device and an FMB device. First the FMB device Bluetooth settings need to be configured. These are the required steps:
- Press Bluetooth settings (position 1).
- Turn on BT Radio by pressing Enable (visible) (position 2). Local name (position 3) will be "FMB120_last 7 imei digits" by default, which can be changed.
- Set Security Mode (position 4) to PIN only or None. PIN + MAC list or MAC list only security modes could also be selected, but in that case external device MAC address is required to be entered to Authorized Devices MAC List (position 7).
- Set connection mode to Hands Free (position 5).
- Set External Name (position 6) as your Hands Free device name for proper identification. In the given example Hands Free headset name is "DMH10" but at least 2 characters are required to recognize it and connect to it. For better and quicker adapter identification on the network you could enter a full device name. You could check your Hands Free adapter Bluetooth name by scanning nearby Bluetooth devices using mobile phone or computer with Bluetooth adapter.
- Go to SMS/Call Settings in main menu and set Incoming Call Action to Do Nothing as shown on next figure.
- After all these steps press Save to device to save configuration.
- Now FMB device can be disconnected from the configurator.
Connecting Bluetooth Hands Free adapter
Turn on Hands Free device and then turn on its Bluetooth connection for pairing following your model instructions. Hands Free adapter should make a specific sound in the speakers or its LED identification should inform about a successful connection. To check if the adapter is successfully connected, dial the FMB device phone number and the Hands Free device should start ringing. If you later restart FMB device it will automatically reconnect to this adapter.
Logging the FMB120 device using your mobile phone
Bluetooth starts automatically when the FMB device is on. Take your mobile phone, go to Settings->Bluetooth and turn it on. Scan for nearby devices, find the device in list, distinguish the device by last IMEI digits on device module. Press pair, wait until device will ask to enter pairing password, type: "5555" (as in the example on the figure). Paired device will show up in the paired device list. Download a terminal for Bluetooth e.g. BlueTerm from Play Store/App store. Run app, click Find->Connect to your paired device. Now we need to send a command to FMB120 from Bluetooth terminal, type: ".log:1"
Device will respond with "Debug enabled" and FMB120 log will show up. Do not forget to save the log file to mobile phone.
Device debug over Android smartphone
In order to pair FMB device with Android smartphone, make sure that BT radio is enabled (visible) in device configuration. It can be checked via SMS command too:
"getparam 800"
The answer has to be "2", which means Enabled and visible.
- Scan for visible BT devices using your Android smartphone and connect to your FMB device.
Default FMB BT name: "MB1YX_last_7_imei_digits".
Default PIN code: "5555".
- Download "Bluetooth Terminal" application. Following link can be used: https://play.google.com/store/apps/details?id=com.hatflabs.btt
- Run "Bluetooth Terminal", in menu press "Connect" and select paired FMB device. To start log check "CR" and enter the command in terminal: ".log:1".
- Wait ~10 minutes and press "Save" button in menu. You will find saved log file in device folder (My Files/Bluetooth Terminal), select log files and press "Share via Email" and send them to Teltonika support.
Unfortunately it is not possible to perform debug the same way on iPhone, because there is no native SPP Bluetooth profile support on iPhone. |
How to connect OBD II Bluetooth Dongle to FMB device
Bluetooth settings configuration
These are instructions on how to easily prepare Bluetooth Dongle connection to the FMB device. First we need to configure FMB device Bluetooth settings. These are the required steps:
- Go to Bluetooth section similarly to as shown in the figure to the right (position 1).
- Turn on BT Radio by pressing Enable (visible) (position 2). "Local name" (position 3) will automatically be "FMB120_last 7 imei digits", you can leave it or type your own name.
- Set Security Mode (position 4) to PIN only or None (you could select PIN + MAC list or MAC list only security mode but in this case you need to type external device MAC address in Authorized Devices MAC List (position 7).
- Set connection mode to OBDII (position 5).
- Set External Name as your Bluetooth OBD II device name for proper device identification and connection to it. In this example OBD II device name is "DONGLE" but at least 2 characters are needed to recognize it and connect to it. For better and faster adapter identification in network you could enter a full device name. You could check your OBD II adapter Bluetooth name by scanning nearby Bluetooth devices using mobile phone or computer with Bluetooth adapter.
- Go to OBD II (Bluetooth) in main menu and select priority and others parameters visible in the following figure.
- After all these steps press Save to device to save configuration (position 8 in the top right hand figure).
- Now you can disconnect FMB device from the configurator.
Connecting to Bluetooth OBD II dongle
After this configuration you can connect your OBD II dongle to FMB device. Turn on ignition, then turn on its Bluetooth connection. For pairing follow your dongle instructions. OBDII device notification about paired Bluetooth connection depends on the specific model. If you later restart FMB device it will automatically reconnect to this dongle.
Supported Bluetooth OBD II dongles
FMB module works with Bluetooth OBD II dongles which are based on ELM327 or STN1110 chips.
Comparison of these chips is presented in the image below: