
GSM-BGS5-E2N_User_Manual EN v1-29.docx
Strana 2 z 2
9.
Watchdog setting
9.1
RS232
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 connected
apliance). 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 RS232. USB port is not possible to use for Watchdog setting!
Factory default is
115200bps, 8 data bits, no parity, 1 stop bit.
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
USB
USB port has a special circuit for restart of GSM module.
10.
RS232 port setting
Factory default setting is made in red bold print.
Baudrate: (AT+IPR)
0 Autobauding
1200
2400
4800
9600
19200
38400
57600
115200 (Factory default)
230400
460800
500000
750000
921600
Parity and data bits: (AT+ICF)
7 bits, even parity, 1 stop bit (AT+ICF=5,1)
7 bits, odd parity, 1 stop bit (AT+ICF=5,0)
8 bits, even parity, 1 stop bit (AT+ICF=2,1)
8 bits, no parity, 1 stop bit (AT+ICF=3)
8 bits, odd parity, 1 stop bit (AT+ICF=2,0)
8 bits, no parity, 2 stop bits (AT+ICF=1)
Flow control: (AT\Q)
No flow control
Software flow control – XON/XOFF
Hardware flow control – RTS/CTS
11.
Frequently Asked Question
11.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