SMS gateway
SMS Gateway communication protocol
Description
SMS Gateway protocol supports:
sending SMS
receiving SMS
dialing calls
receiving calls
The implementation is based on the sending and processing of AT commands that are exchanged through the asynchronous serial line.
Communication line configuration
Communication line category: Modem
Communication line parameters:
Parameter | Default value | Meaning |
|---|---|---|
Device |
| Name of communication port. |
Init command | AT&F | AT command that reinitializes a device. |
Dial command | ATD | AT command used when dialing a telephone number. |
Hangup | +++~~~~ATH | AT command to hang up the connection. |
DTR | Checked | DTR signal is used to hang up connection instead of AT command. |
Communication station configuration
Parameter | Default value | Meaning |
|---|---|---|
Trace Data | YES | Both received and sent data are written to the log file. |
PIN Code | 0000 | PIN code of SIM card (GSM modem). |
Use Semicolon | YES | A semicolon is inserted at the end of the ATD command. |
Hang Up Incoming Call | YES | Enable to hang up the incoming call in a defined time. |
Hang Up Time | 35 sec | Defines the duration of an incoming call. |
Delay Between Rings | 3 sec | Some of the modems do not inform about change of status: "ringing -> received", "ringing -> hung up". In "ringing" status, the flags that indicate ringing are sent. If during the interval configured by this parameter, the ringing is not indicated, the status automat of the protocol will change its status to "hang up". Zero disables to use this indication. |
Outgoing Call Duration | 3 sec | The time after which the outgoing call is terminated. |
Modem Is Ready Interval | 600 sec | After elapsing of this time, the modem is reinitiated. |
Acknowledgment of Receipt | YES | Whether the receipts acknowledgments are enabled when sending SMS messages. |
Service Center Address | +421905303303 | Phone number of the service center for SMS messages. |
Read From Modem SMS | 60 sec | Interval of checking the received messages and receipts in the modem. |
Expect OK After Dial | YES | Indicates whether a device sends the answer "OK" after dialing the phone number. |
Reinit On Every Operation | NO | Modem reinitialization before every SMS sending and before every dialing. If this parameter has the value NO, then the modem is initialized at the beginning of work and regularly according to the value of the Modem Is Ready Interval parameter. |
Query Signal Quality | NO | Querying signal quality before every SMS sending and before every dialing. The detected signal quality is not shown anywhere and can only be found in the communication line logs. |