3 modem status register value definitions, Modem status register value definitions, N communication (optional) – Horner APG XLt OCS HE-GSM04 User Manual
Page 24: See section 4.3 for details, Are detailed in, Section 4.3

PAGE 24
GPRS / GSM MODEM Configuration
MAN4005-04-EN
4.3
Modem Status Register value definitions
Modem Status
Register
Value
Modem Output Power
Modem is inactive
65535
(0xFFFF)
Disabled
Modem command started and waiting for
response
65534
(0xFFFE)
Disabled
Modem is not responding (Command
Timeout)
65533
(0xFFFD)
Disabled
Modem Command succeeded
0 (0x0)
Enabled (Only in case of Initialization modem command else
Disabled)
Modem is connected to destination server
1(0x1)
Enabled
Modem is Ringing (i.e. incoming call)
2 (0x2)
Disabled
Modem detected no/lost carrier
3(0x3)
Disabled
Modem command syntax error
4(0x4)
Disabled
SMS functionality is Active 5(0x5)
Disabled
Modem in Listen (Server) Mode
6 (0x6)
Disabled
Note:
•
The status values are same for all GSM and GPRS modes i.e. Cscape connectivity or data exchange. However different
status registers should be used for different modes.
•
Status of ‘6’ indicates Mode is waiting for connection request from specified client and it is applicable in case of GPRS
server mode.
•
When the modem returns status ‘Connected’, then TX, RX or another communications ladder block can be used to
exchange data with a destination server according to protocol.
•
Disabling the Modem Control ladder block input will disconnect GPRS service. The Status Register value changes to
65534 (0xFFFE i.e. indicates waiting for modem response for disconnect command) and then to 65535 (0xFFFF). It can
be used to trigger SMS sending on an alarm.
•
SMS functionality works based upon ‘Data Transmission Settings’ in the SMS configuration window while the GSM/GPRS
connection is active.
•
Connecting to a GPRS network and establishing connection with remote server may require 3 to 4 minutes.
•
Breaking connection with a remote server may take 10 to 20 seconds.
•
If a continuous error response is seen in the status register or 0xFFFE response while connecting the modem as the
default programming port then please check the following:
a.
GPRS configuration parameters (in case of GPRS connection)
b.
GSM Signal strength
c.
Proper insertion of SIM card in modem
d.
Is the SIM enabled for a given service (i.e. GPRS or GSM data call).
e.
Antenna connected properly/antenna connection
f.
VPN connectivity
•
If the default programming port is switched to the default serial port option from GSM/GPRS then the port should be
released after 20 to 30 seconds after complete GPRS connection drop.
•
Only one modem control block in specific mode (Initialize/Auto Dial/Auto Answer) can be used in ladder. More than one
modem control block can be used in ladder if they are in different modes.
Page 24 of 62 ECN # 956