You are on page 1of 3

Dinstar GSM Gateway AT commands

Part one (1)


Connect to Dinstar GSM gateway
Enable API in the dinstar GSM gateway GUI under mobile configuration->basic
configuration.

1) Select AT as API work mode


2) Define the API listen port. The port used to communicate with 3rd party program.
Data packets will be sent/receive via the defined port
3) Default the password for incoming session

Part two (2)


AT commands
1. There’s one listen port for AT command, which can be set on the web.
2. All the input should be end with <CR> or <CR><LF>, except for the sms content
input, it is end with 0x1A or 0x1B.
3. All the output from gateway will be end with <CR><LF>
4. Any new connection to this port, should go through these steps:
a) Input password
New connection should input a string, like “Password:XXXXX” to input
password.
The gateway will response OK or FAIL.

b) Select port
After authentication, user should input a string, like “Port:XX” to select a
port.
For example, Port:0 means this connection will be used to communicate
with port 0 of gateway.
The gateway will response OK or FAIL.

c) AT commands
When current port is ready, any AT commands will send this GSM module.
When current port is not ready, the gateway will response a string “NOT
READY”
5. Note that a normal SMS content is end with a “Ctrl-Z”(0X1A). You can also use
“ESC”(0x1B) to cancle the SMS sending.
For example:
Send To: 10086
Message: YE

Part three (3)


Example: connect to Dinstar GSM gateway and dial out via AT commands
This example mainly show you how to connect to Dinstar gateway by putty
1) Set your putty. Host Name is the IP of your Dinstar gateway and the port is the
API listen port defined in Dinstar.

Click Open to continue


2) Input API password defined in your Dinstar gateway.

Note: the command is captical sense

3) Connect to specific port

4) Dial specific number

Hangup

You might also like