Initialize the ClearSCADA Modem's SMS Message Storage
You may need to initialize and configure the ClearSCADA GSM modem's SMS storage facility by using AT+ and AT^ commands. The commands that you enter should be consistent with the overall command sequence that ClearSCADA follows to initialize the communication between ClearSCADA and the ClearSCADA GSM modem.
The ClearSCADA modem initialization sequence is as follows:
- Establish 'Command Mode'.
- Execute (user-defined). This is the command in the Modem Command field on the PSTN tab. The default value is ATV1E0H0S0=1 (see Defining PSTN Settings for a Channel).
- Check and Set 'Report Mobile Equipment Errors' (AT+CMEE=1).
- Check the outstation modem SIM’s PIN1 Status, and unlock if necessary (AT+CPIN?). Send the PIN specified in the GSM SMS tab’s Modem PIN field.
- Read the 'Modem Type' information. That is, the Manufacturer, Model and Version information in log (ATI).
- Check and Set ‘Show Text Mode Parameters’ (AT+CSDH=1) so that additional header information is available to ClearSCADA in received SMS messages. This enables ClearSCADA to route messages to the correct outstation scanner.
- Check and Set the 'Preferred Message Format' (AT+CMGF=1 is SMS Text Mode format, AT+CMGF=0 is SMS PDU Mode format).
- Check and Set ‘Character Set’ (AT+CSCS="GSM" to use the GSM character set (in text mode)).
The user-defined SMS message storage initialization is as follows:
-
Set up the CMTI reporting of New Message indications for the 'Proactive Poll Modem' feature (if enabled) (AT+CNMI=1).
- Enter the modem-specific AT commands that initialize the SMS message storage (see Define the GSM SMS Settings for a Channel). For more information about modem-specific AT commands, see the modem manufacturer's documentation.