Difference between revisions of "How to capture remote log from FM device?"

From Wiki Knowledge Base | Teltonika GPS
(Created page with "===Solution applies for these devices=== FMA110 FMA120 FMB630 FMB640 FM6320 FM6300 FM3612 FM3622 FM36M1 FM devices online log capturing is...")
 
(Added EOL devices to the device list)
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
===Solution applies for these devices===
+
__TOC__
[[FMA110]] [[FMA120]] [[FMB630]] [[FMB640]] [[FM6320]] [[FM6300]] [[FM3612]] [[FM3622]] [[FM36M1]]
+
==Supported devices==
 +
'''Solution applies for these devices:'''
 +
<!-- [[FMA110]] [[FMA120]] [[FMA202]] [[FMA204]] [[FMB630]] [[FM6320]] [[FM6300]] [[FM3612]] [[FM3622]] [[FM36M1]] -->
 +
* [[FMB630]]/[[FM6320]]/[[FM6300]]
 +
* [[FMB640]]
 +
* [[FMC640]]
 +
* [[FMM640]]
 +
* [[FMB641]]
 +
* [[FMC650]]
 +
* [[FMM650]]
  
FM devices online log capturing is initiated using command <code>log2srv</code> and set right configuration. Device establish GPRS connection and activates link to computer, log started to stream to computer until set time is elapsed. To stop streaming immediately <code>log2srvstop</code> is used.
+
==How does it work?==
 +
Fleet management devices online log capturing is initiated using command <code>log2srv</code> and by setting right configuration. The device establishes a GPRS connection and activates the link to the computer, log starts to stream to the computer until the set time is elapsed. To stop streaming log immediately <code>log2srvstop</code> is used.
  
Here are steps how to capture online log from FM series devices:
+
==Steps to collect log file==
# Make sure you have '''external IP address''' with '''open TCP port'''. This could be checked [http://canyouseeme.org/ here].
+
Here are steps on how to capture an online log from FM series devices:
# Download "'''Hercules'''" program from [https://www.hw-group.com/software/hercules-setup-utility www.hw-group.com] and start it.
+
# Make sure you have '''external IP address''' with '''opened TCP port'''. This could be checked [http://canyouseeme.org/ here].
## Go to '''TCP Server''' → '''Server Status''' Enter your '''open TCP port''' and press '''Listen'''.
+
# Download "'''Hercules'''" program from [https://www.hw-group.com/software/hercules-setup-utility www.hw-group.com] and start it.<p><table class="wikitable" style="width: 100%;"><tr><td style="width: 50%; border: 1px solid white; background: white;">Go to '''(1) TCP Server''' → '''(2)''' Enter your '''opened TCP port''' → '''(3)''' Press '''Listen''' then click right mouse button over '''Received''' or '''Sent data''' window → '''(4)''' Go to '''Special Chars''' → '''(5)''' Set '''ASCII Names'''.</td><td style="width: 50%; border: 1px solid white; background: white;">Click right mouse button over '''Received''' or '''Sent data''' window → '''(1)''' Go to '''Log to File''' → '''(2)''' Set '''file name''' and '''directory''' where captured log will be saved → '''(3)''' Press '''Log Enable'''.</td></tr><tr><td style="width: 50%; border: 1px solid white; background: white;">[[Image:Hercule_listen_asci.png|400px|left]]</td><td style="width: 50%; border: 1px solid white; background: white;"> [[Image:Hercules_log_enable.png|500px|left]]</td></tr></table></p>
# Make sure that FM device is '''online''' and not in '''Deep Sleep mode'''.
+
# Make sure that FM device is '''turned on''' and not in '''Deep Sleep mode'''.
 
# Send following '''SMS command''' to FM device:  
 
# Send following '''SMS command''' to FM device:  
#* If you have set SMS login and password: <code>login pass log2srv 1,3,'''APN''','''APNusername''','''APNpassword''','''IP''','''port''',600,0”</code><p>'''APN''' - Operator APN name stored on the device from which the log will be saved.</p><p>'''APNusername''' - Operator APN username stored on the device from which the log will be saved.</p><p>'''APNpassword''' - Operator APN password stored on the device from which the log will be saved.</p><p>'''IP''' - External IP address of the computer to which the device will connect.</p><p>'''port''' - Open TCP port of the computer to which the device will connect.</p><p>Command example (without APNusername, APNpassword): <code>opa opa log2srv 1,3,banga,,,212.47.84.62,7042,600,0</code>
+
#* If you have set SMS login and password: <code>login pass log2srv 1,3,'''APN''','''APNusername''','''APNpassword''','''IP''','''port''',1200,0</code><p>'''APN''' - Operator APN name of the SIM card, which is inserted into the device from which the log will be captured.</p><p>'''APNusername''' - Operator APN username of the SIM card, which is inserted into the device from which the log will be captured.</p><p>'''APNpassword''' - Operator APN password of the SIM card, which is inserted into the device from which the log will be captured.</p><p>'''IP''' - External IP address of the computer to which the device will connect.</p><p>'''port''' - Opened TCP port (used in '''Hercules''') of external ip address to which the device will connect.</p><p>Command example: <code>opa opa log2srv 1,3,banga,,,212.59.13.226,7056,1200,0</code></p>
#* If SMS login and password are not set leave two spaces before command: <code><span style=
+
#* If SMS login and password are not set to leave two spaces before the command: <code><span style="color:#f8f9fa">aa</span>log2srv 1,3,'''APN''','''APNusername''','''APNpassword''','''IP''','''port''',1200,0</code><p>If command was sent correctly you should receive SMS Response:<code>LOG2SRV OK=1, 3, IP, port, 1200, 0</code></p><p>[[File:Alert.png|50px|left|link=]]<b>Up to 5 minutes delay could appear if wrong <code>log2srv</code> commands settings will be sent, during that time no SMS or GPRS command could be received. SMS will be hanging, after timeout, hanging SMS’s will be proceeded.</b></p>
"color:#f8f9fa">aa</span>log2srv 1,3,'''APN''','''APNusername''','''APNpassword''','''IP''','''port''',600,0”</code><p>If command was sent correctly you should receive SMS Response:<code>Enabled Trace Filters:1</code></p>
+
# After successful '''SMS response''' device will start streaming log to '''Hercules''' program. '''(1)''' Logfile bytes will start increasing and '''(2)''' connected device will appear. Device log will be captured for '''20 minutes'''.<p>[[File:Hercules_connected.png|400px]]</p><p>If you want to stop log capturing immediately send following '''SMS command''' to FM device:</p>
 +
#* If you have set SMS login and password: <code>login pass log2srvstop</code>
 +
#* If SMS login and password are not set to leave two spaces before the command: <code><span style="color:#f8f9fa">aa</span>log2srvstop</code>
 +
# Provide captured log to your '''Teltonika Sales Manager''' or '''Teltonika Support team''' for further investigation.
 +
 
 +
[[Category: Frequently Asked Questions - FAQ]]

Latest revision as of 17:40, 23 May 2023

Main Page > Frequently Asked Questions - FAQ > How to capture remote log from FM device?

Supported devices

Solution applies for these devices:

How does it work?

Fleet management devices online log capturing is initiated using command log2srv and by setting right configuration. The device establishes a GPRS connection and activates the link to the computer, log starts to stream to the computer until the set time is elapsed. To stop streaming log immediately log2srvstop is used.

Steps to collect log file

Here are steps on how to capture an online log from FM series devices:

  1. Make sure you have external IP address with opened TCP port. This could be checked here.
  2. Download "Hercules" program from www.hw-group.com and start it.

    Go to (1) TCP Server(2) Enter your opened TCP port(3) Press Listen then click right mouse button over Received or Sent data window → (4) Go to Special Chars(5) Set ASCII Names.Click right mouse button over Received or Sent data window → (1) Go to Log to File(2) Set file name and directory where captured log will be saved → (3) Press Log Enable.
    Hercule listen asci.png
    Hercules log enable.png

  3. Make sure that FM device is turned on and not in Deep Sleep mode.
  4. Send following SMS command to FM device:
    • If you have set SMS login and password: login pass log2srv 1,3,APN,APNusername,APNpassword,IP,port,1200,0

      APN - Operator APN name of the SIM card, which is inserted into the device from which the log will be captured.

      APNusername - Operator APN username of the SIM card, which is inserted into the device from which the log will be captured.

      APNpassword - Operator APN password of the SIM card, which is inserted into the device from which the log will be captured.

      IP - External IP address of the computer to which the device will connect.

      port - Opened TCP port (used in Hercules) of external ip address to which the device will connect.

      Command example: opa opa log2srv 1,3,banga,,,212.59.13.226,7056,1200,0

    • If SMS login and password are not set to leave two spaces before the command: aalog2srv 1,3,APN,APNusername,APNpassword,IP,port,1200,0

      If command was sent correctly you should receive SMS Response:LOG2SRV OK=1, 3, IP, port, 1200, 0

      Alert.png
      Up to 5 minutes delay could appear if wrong log2srv commands settings will be sent, during that time no SMS or GPRS command could be received. SMS will be hanging, after timeout, hanging SMS’s will be proceeded.

  5. After successful SMS response device will start streaming log to Hercules program. (1) Logfile bytes will start increasing and (2) connected device will appear. Device log will be captured for 20 minutes.

    Hercules connected.png

    If you want to stop log capturing immediately send following SMS command to FM device:

    • If you have set SMS login and password: login pass log2srvstop
    • If SMS login and password are not set to leave two spaces before the command: aalog2srvstop
  6. Provide captured log to your Teltonika Sales Manager or Teltonika Support team for further investigation.