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

From Wiki Knowledge Base | Teltonika GPS
Line 11: Line 11:
 
<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
+
*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)
+
*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">
+
<gallery widths="100" perrow="4" caption="Saving and sharing the log">
 
File:Screenshot 20201215-100222 Serial Bluetooth Terminal.jpg|Step 1
 
File:Screenshot 20201215-100222 Serial Bluetooth Terminal.jpg|Step 1
 
File:Screenshot 20201215-100226 Serial Bluetooth Terminal.jpg|Step 2
 
File:Screenshot 20201215-100226 Serial Bluetooth Terminal.jpg|Step 2
Line 25: Line 25:
 
</gallery>
 
</gallery>
  
* Go back to main screen, click 3 dots (Step 5) -> Data (Step 6) : Mark log (Step 7).
+
*Go back to main screen, click 3 dots (Step 5) -> Data (Step 6) : Mark log (Step 7).
 
<gallery>
 
<gallery>
 
File:Step 4.jpg|Step 5
 
File:Step 4.jpg|Step 5
Line 32: Line 32:
 
</gallery>
 
</gallery>
  
* Go back to same menu, click 3 dots (Step 8) -> Data (Step 9) -> Info (Sep 10) -> Edit folder (Step 11) -> Edit custom (Step 12) : set to downloads or other convenient folder where you could find the log easily.
+
*Go back to same menu, click 3 dots (Step 8) -> Data (Step 9) -> Info (Sep 10) -> Edit folder (Step 11) -> Edit custom (Step 12) : set to downloads or other convenient folder where you could find the log easily.
 
<gallery>
 
<gallery>
 
File:Step 4.jpg|Step 8
 
File:Step 4.jpg|Step 8
Line 41: Line 41:
 
</gallery>
 
</gallery>
  
* Go back to main screen Access the app click 3 line drop down menu (Step 13) -> Devices (Step 14) : select the device you want to connect to (Step 15) In our case it's FMB130.
+
*Go back to main screen Access the app click 3 line drop down menu (Step 13) -> Devices (Step 14) : select the device you want to connect to (Step 15) In our case it's FMB130.
 
<gallery>
 
<gallery>
 
File:Step 12.jpg|Step 13
 
File:Step 12.jpg|Step 13
Line 48: Line 48:
 
</gallery>
 
</gallery>
  
* Type ''.log:1'' (Step 16) in the command line and send it, you should be seeing log from the device: example (step 17)
+
*Type ''.log:1'' (Step 16) in the command line and send it, you should be seeing log from the device: example (step 17)
 
<gallery>
 
<gallery>
 
File:Step 158.jpg|Step 16
 
File:Step 158.jpg|Step 16
Line 54: Line 54:
 
</gallery>
 
</gallery>
  
* Do a test drive with log running.
+
*Do a test drive with log running.
* Turn logging off again by entering the command "''.log:0''" into the terminal
+
*Turn logging off again by entering the command "''.log:0''" into the terminal
* At the end click 3 dots (on right) -> Data : Unmark log. (The same procedure like before then we do: Step 5, Step 6, Step 7. but you will need to Unmark Log.)
+
*At the end click 3 dots (on right) -> Data : Unmark log. (The same procedure like before then we do: Step 5, Step 6, Step 7. but you will need to Unmark Log.)
* Find the file and send it to your PC, then attach it in the query.<br /><br /><br /><br /><br />
+
*Find the file and send it to your PC, then attach it in the query.<br /><br /><br /><br /><br />
  
 
{| class="wikitable" style="border-style: solid; border-width: 0px"
 
{| class="wikitable" style="border-style: solid; border-width: 0px"

Revision as of 15:40, 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.


  • Go back to main screen, click 3 dots (Step 5) -> Data (Step 6) : Mark log (Step 7).
  • Go back to same menu, click 3 dots (Step 8) -> Data (Step 9) -> Info (Sep 10) -> Edit folder (Step 11) -> Edit custom (Step 12) : 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 13) -> Devices (Step 14) : select the device you want to connect to (Step 15) In our case it's FMB130.
  • Type .log:1 (Step 16) in the command line and send it, you should be seeing log from the device: example (step 17)
  • Do a test drive with log running.
  • Turn logging off again by entering the command ".log:0" into the terminal
  • At the end click 3 dots (on right) -> Data : Unmark log. (The same procedure like before then we do: Step 5, Step 6, Step 7. but you will need to 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.