WEBfactory 2010

Detecting GSM modem status

Abstract

Check ou this tutorial and learn how to detect a GSM modem state status by creating signals and a registry key.

In order to get information about the GSM modem when sending WEBfactory alarm messages via GSM modem, the following setup needs to be done:

  1. Create three specific GSM modem state signals

  2. Create a registry key used for toggling the operating state

IMPORTANT: Functionality tested on modem type WESTERMO GDW-11. Other GSM modems may show different results as AT modem command might be different.

Creating the GSM modem state signals

Create three signals as follows:

  1. Create the first signal and name it GSM_Modem_Error. Activate VChannels for this signal.

    The GSM_Modem_Error signal

  2. Create the second signal and name it GSM_Modem_Online. Activate VChannels for this signal.

    The GSM_Modem_Online signal

  3. Create the third signal and name it GSM_Modem_SignalStrength. Activate VChannels for this signal.

    The GSM_Modem_SingalStrength signal

In the General settings of all three signals, make sure that the Minimum and Maximum values are set to -100 and 100. This is important for detecting negative values.

Create a registry key used for toggling the operating state

To make things easier, download the registry file below, un-zip it and execute it. The registry file will create a registry key which is used for toggling the GSM modem overvation.

Click here to download: ObserveGSM.zip

The ObserveGSM registry file contains the following:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\WEBfactory \WFMessenger\2.00\Settings]
"sendSmsWithLuca"="1"
"ObserveGsm"="1"

If the parameters sendSmsWithLuca and ObserveGsm are set to 0, no GSM status will be detected.