Difference between revisions of "How to debug FMB device over Android smartphone?"

From Wiki Knowledge Base | Teltonika GPS
(FMx640 devices can not pair with Bluetooth, hence they cannot be debugged this way.)
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
===Solution applies for these FM devices===
 
===Solution applies for these FM devices===
[[FMB001]] [[FMM001]] [[FMC001]] [[FMB002]] [[FMB010]] [[FMB020]] [[FM3001]] [[FMB110]] [[FMB120]] [[FMB122]] [[FMB125]] [[FMU125]] [[FMC125]] [[FMM125]] [[FMU126]] [[FMB130]] [[FMU130]] [[FMC130]] [[FMM130]] [[FMB140]] [[FMB202|FMB202]] [[FMB204|FMB204]] [[FMB209]] [[FMB900]] [[FMB910]]<sup>1</sup> [[FMB920]] [[FMB962|FMB962]] [[FMB964|FMB964]] [[FMT100]] [[MTB100]] [[MSP500]]
+
[[FMB900]] [[FMB920]] [[FMB001]] [[FMB010]] [[FM3001]] [[FMB110]] [[FMB120]] [[FMB122]] [[FMB125]] [[FMB130]] [[FMB140]] [[FMB202|FMB202]] [[FMB204|FMB204]] [[FMB962|FMB962]] [[FMB964|FMB964]] [[FMT100]] [[FMB640]] [[FMM125]] [[FMM130]] [[FMM640]] [[FMC640]] [[FMU125]] [[FMU130]] [[FMC125]] [[FMC130]]
 
 
1) Does not apply to basic version
 
==Disclaimer==
 
 
 
[[File:Alert.png|left|link=]] <br> If you are not using Bluetooth®, '''please consider turning it off''' or '''change Bluetooth® PIN''' to remove potential risks.
 
 
 
If you are using Bluetooth® we strongly recommend '''using AES encryption''' for enhanced security.
 
  
 
===Pair and connect  device===
 
===Pair and connect  device===
Bluetooth® starts automatically when {{{model_2|FMB}}} device is on. Take your mobile phone, go to Settings->Bluetooth® and turn it on. Scan for nearby devices, find the device in the list, distinguish the device by last IMEI digits on device module. Press pair, wait until the device asks to enter pairing password, type: ''"5555"'' (as in the example on the figure). A paired device will show up in the paired device list. Download a terminal for Bluetooth® e.g. BlueTerm from Play Store/App Store. Run the app, click Find->Connect to your paired device. Now we need to send a command to {{{model|FMB}}} from Bluetooth® terminal, type: ''".log:1"''<br />Device will respond with ''"Debug enabled"'' and {{{model|FMB1YX}}} log will show up. Do not forget to save the log file to the mobile phone.
+
Bluetooth starts automatically when {{{model_2|FMB}}} device is on. Take your mobile phone, go to Settings->Bluetooth and turn it on. Scan for nearby devices, find the device in the list, distinguish the device by last IMEI digits on device module. Press pair, wait until the device asks to enter pairing password, type: ''"5555"'' (as in the example on the figure). A paired device will show up in the paired device list. Download a terminal for Bluetooth e.g. BlueTerm from Play Store/App Store. Run the app, click Find->Connect to your paired device. Now we need to send a command to {{{model|FMB}}} from Bluetooth terminal, type: ''".log:1"''<br />Device will respond with ''"Debug enabled"'' and {{{model|FMB1YX}}} log will show up. Do not forget to save the log file to the mobile phone.
  
 
===Device debug over Android smartphone===
 
===Device debug over Android smartphone===
 
In order to pair {{{model_2|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".
 
In order to pair {{{model_2|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".
 
[[File:Capture.png|none|thumb]]
 
[[File:Capture.png|none|thumb]]
 +
  
 
<br />
 
<br />
  
*Scan for visible BT devices using your Android smartphone and connect to your {{{model_2|FMB}}} device. Default {{{model_2|FMB}}} BT name is: ''"{{{model|FMB1YX}}}_last_7_imei_digits"''. Default PIN code is: ''"5555"''. In example it will be FMB130_3832065.
+
Scan for visible BT devices using your Android smartphone and connect to your {{{model_2|FMB}}} device. Default {{{model_2|FMB}}} BT name is: ''"{{{model|FMB1YX}}}_last_7_imei_digits"''. Default PIN code is: ''"5555"''. In example it will be FMB130_3832065.
 +
[[File:Screenshot 20201215-101316 Settings.jpg|thumb|alt=|none]]
 +
 
  
[[File:Screenshot 20201215-101316 Settings.jpg|thumb|alt=|none]]
+
 
 +
Download "Bluetooth Terminal" application. The following link can be used: https://play.google.com/store/apps/details?id=com.hatflabs.btt
 +
 
 +
Run "Bluetooth Terminal" app click 3 line drop down menu (Step 1 )->settings (Step 2) -> Terminal (Step 3) -> Buffer size : set to "Unlimited" (Step 4)
 +
 
 +
<gallery widths="100" perrow="3" caption="Saving and sharing the log">
 +
File:Screenshot 20201215-100222 Serial Bluetooth Terminal.jpg|Step 1
 +
File:Screenshot 20201215-100226 Serial Bluetooth Terminal.jpg|Step 2
 +
File:Screenshot 20201215-100239 Serial Bluetooth Terminal.jpg|Step 3
 +
File:Screenshot 20201215-100249 Serial Bluetooth Terminal.jpg|Step 4
 +
</gallery>
 +
 
 +
 
 +
 
 +
Go back to main screen, click 3 dots (Step 4) -> Data (Step 5) : Mark log (Step 6).<gallery>
 +
File:Step 4.jpg|Step 4
 +
File:Step 5.jpg|Step 5
 +
File:Step 6.jpg|Step 6
 +
</gallery>Go back to same menu, click 3 dots (Step 7) -> Data (Step 8) -> Info (Sep 9) -> Edit folder (Step 10) -> Edit custom (Step 11) : set to downloads or other convenient folder where you could find the log easily.<gallery>
 +
File:Step 4.jpg|Step 7
 +
File:Step 5.jpg|Step 8
 +
File:Step 9.jpg|Step 9
 +
File:Step 10.jpg|Step 10
 +
File:Step 11.jpg|Step 11
 +
</gallery>
 +
 
 +
 
 +
Go back to main screen Access the app click 3 line drop down menu (Step 12) -> Devices (Step 13) : select the device you want to connect to (Step 14) In our case it's FMB130.<gallery>
 +
File:Step 12.jpg|Step 12
 +
File:Step 13.jpg|Step 13
 +
File:Step 14.jpg|Step 14
 +
</gallery>
 +
 
 +
 
 +
Type ''.log:1'' (Step 15) in the command line and send it, you should be seeing log from the device: example (step 16)<gallery>
 +
File:Step 158.jpg|Step 15
 +
File:Step 16.jpg|Step 16
 +
</gallery>Do a test drive with log running.
 +
 
 +
At the end click 3 dots (on right) -> Data : Unmark log.
  
  
*Download "Bluetooth® Terminal" application. The following link can be used: https://play.google.com/store/apps/details?id=com.hatflabs.btt
+
Find the file and send it to your PC, then attach it in the query.
*Step 1. Run "Bluetooth® Terminal" app click 3 line drop down menu ->settings -> Terminal  -> Buffer size : set to "Unlimited"
 
[[File:20201217 151355.gif|none|thumb]]
 
*Step 2. Go back to main screen, click 3 dots -> Data  : Mark log.
 
[[File:20201217 150717.gif|none|thumb]]
 
*Step 3. Go back to same menu, click 3 dots -> Data  -> Info -> Edit folder -> Edit custom: set to downloads or other convenient folder where you could find the log easily.
 
[[File:20201217 150356.gif|none|thumb]]
 
*Step 4. Go back to main screen Access the app click 3 line drop down menu -> Devices: select the device you want to connect to. In our case it's FMB130.
 
[[File:20201217 150016.gif|none|thumb]]
 
*Step 5. Type ''.log:1'' in the command line and send it, you should be seeing log from the device.
 
[[File:20201217 145540.gif|none|thumb]]
 
*Do a test drive with log running.
 
*Type .log:0 to stop log running.
 
*At the end click 3 dots (on right) -> Data : Unmark log. The same procedure like before in Step 2, only difference is that you need Unmark log.
 
*Find the file and send it to your PC, then attach it in the query.
 
  
 
<br /><br /><br /><br /><br />
 
<br /><br /><br /><br /><br />
Line 45: Line 66:
 
|-
 
|-
 
| 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;" |Unfortunately it is not possible to perform debug the same way on iPhone, because there is no native SPP Bluetooth® profile support on iPhone.
+
| 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.
 
|}
 
|}
 
 
[[Category: Frequently Asked Questions - FAQ]]
 
[[Category: Frequently Asked Questions - FAQ]]

Revision as of 16:42, 15 December 2020

Main Page > Frequently Asked Questions - FAQ > How to debug FMB device over Android smartphone?

Solution applies for these FM devices

FMB900 FMB920 FMB001 FMB010 FM3001 FMB110 FMB120 FMB122 FMB125 FMB130 FMB140 FMB202 FMB204 FMB962 FMB964 FMT100 FMB640 FMM125 FMM130 FMM640 FMC640 FMU125 FMU130 FMC125 FMC130

Pair and connect device

Bluetooth starts automatically when FMB device is on. Take your mobile phone, go to Settings->Bluetooth and turn it on. Scan for nearby devices, find the device in the list, distinguish the device by last IMEI digits on device module. Press pair, wait until the device asks to enter pairing password, type: "5555" (as in the example on the figure). A paired device will show up in the paired device list. Download a terminal for Bluetooth e.g. BlueTerm from Play Store/App Store. Run the app, click Find->Connect to your paired device. Now we need to send a command to FMB from Bluetooth terminal, type: ".log:1"
Device will respond with "Debug enabled" and FMB1YX log will show up. Do not forget to save the log file to the 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".

Capture.png



Scan for visible BT devices using your Android smartphone and connect to your FMB device. Default FMB BT name is: "FMB1YX_last_7_imei_digits". Default PIN code is: "5555". In example it will be FMB130_3832065.


Download "Bluetooth Terminal" application. The following link can be used: https://play.google.com/store/apps/details?id=com.hatflabs.btt

Run "Bluetooth Terminal" app click 3 line drop down menu (Step 1 )->settings (Step 2) -> Terminal (Step 3) -> Buffer size : set to "Unlimited" (Step 4)


Go back to main screen, click 3 dots (Step 4) -> Data (Step 5) : Mark log (Step 6).

Go back to same menu, click 3 dots (Step 7) -> Data (Step 8) -> Info (Sep 9) -> Edit folder (Step 10) -> Edit custom (Step 11) : set to downloads or other convenient folder where you could find the log easily.


Go back to main screen Access the app click 3 line drop down menu (Step 12) -> Devices (Step 13) : select the device you want to connect to (Step 14) In our case it's FMB130.


Type .log:1 (Step 15) in the command line and send it, you should be seeing log from the device: example (step 16)

Do a test drive with log running.

At the end click 3 dots (on right) -> Data : Unmark log.


Find the file and send it to your PC, then attach it in the query.






Bw nb.png Unfortunately it is not possible to perform debug the same way on iPhone, because there is no native SPP Bluetooth profile support on iPhone.