GSM-BGS5-EEN_User_Manual EN v2-02.docx
Strana 2 z 2
9.
Watchdog setting
9.1
GSM module
The device contains a built-in watchdog which checks whether the modem answers (if
there are changes in the internal line RxD between GSM module and Ethernet module).
If it is no change on the line for specified time period, the modem is considered broken
and is cut off from the power supply for 15 seconds. After that the modem and
monitoring process starts again.
Time, which is still not considered an error of modem is configured using commands via
serial interface Ethernet. USB port is not possible to use for Watchdog setting!
Notes:
Before each command must be a time of 1 second when there are no
characters sent!
Characters '-' and '+' in the following examples are sent. '-' … mean Data
are sent to the device, '+' means data are sent by the device.
'<#0D>' is a placeholder for ENTER (13d, 0x0D).
Command ECHO
Display current Watchdog setting
- GSMWDG
<#0D>
+ WDG: OK 123456 D2251D v1.0
or
- GSMWDG?
<#0D>
+ WDG: OK 123456 D2251D v1.0
Part
Description
WDG:
Watchdog respond identification
OK
Command accepted OK
123456
Actual Watchdog setting value in seconds (HEX code):
123456 HEX = 1 193 046 seconds ~ 13,8 day
000000 HEX = Watchdog function disabled (default setting)
00003C HEX = 60 seconds ~ 1 minute
000E10 HEX = 3 600 seconds ~ 1 hour
008CA0 HEX = 36 000 seconds ~ 10 hours
015180 HEX = 86 400 seconds ~ 1 day
D2251D
Device Identification
V1.0
Device version
Command SET
Watchdog setting
- GSMWDG 112233
<#0D>
+ WDG: OK 112233 D2251D v1.0
The parameter ‘112233’ means seconds (coded in HEX). See the table for command
ECHO. Exactly 6 HEX numbers has to be entered, including leading zeroes.
Value ‘000000’ disables Watchdog function = modem is never restarted by Watchdog.
Example: Disable Watchdog
- GSMWDG 000000
<#0D>
+ WDG: OK 000000 D2251D v1.0
Example: set Watchdog for 1 hour
- GSMWDG 000E10
<#0D>
+ WDG: OK 000E10 D2251D v1.0
Example: set Watchdog for 10 hours
- GSMWDG 008CA0
<#0D>
+ WDG: OK 008CA0 D2251D v1.0
Example: set Watchdog for 1 day
- GSMWDG 015180
<#0D>
+ WDG: OK 015180 D2251D v1.0
Command RESET
Immediate modem reset
- GSMWDG RESET
<#0D>
+ WDG: OK RESET D2251D v1.0
9.2
Ethernet module
Ethernet module has its own watchdog. Ethernet module automatically restarts after
certain time if no data goes though the modem and there is no TCP connection. The
factory default is 600s. This behavior is possible to forbid and could be set in menu
COMMUNICATION SETTINGS after connection to its webserver
.
It is possible to se following modes:
TCP Server
– listen on TCP port for a connection, accept it and connect
to ASC0 port of GSM modem.
TCP Client
– continuously try to set a TCP connection with IP address
and port. After succeeding, connect it to ASC0 port of GSM modem. If the
connection is interrupted, it tries again to connect it.
UDP Server
– listen on UDP port. If obtains data, send them via ASC0
port to GSM modem and the answer send to IP address and UDP port of
sender.
UDP Client
– send data from modem to IP address and UDP port.
Http, Telnetd, WebSocket, MQTT, Ali IOT
10.
Frequently Asked Question
10.1
Command for Watchdog setting does not
respond
- GSMWDG 52
<#0D>
+ <nothing>
The problem is in the assignment of the time "52". It is required to enter the exactly 6-
HEX digits. The correct command is this:
- GSMWDG 000052
<#0D>
+ WDG: OK 000052 D2251D v1.0
BGS5