User manual

Confidential, the whole present document is the sole property of Maestro Wireless Solution Ltd.
39
10. SOCKET COMMUNICATION SERVICE
Similar to email sending service, this feature lets M100 to send raw TCP message, up to 256 bytes, to a TCP server. This
is useful for M2M communication client to send data to server without any kind of protocol overhead. It can be also used
with Command String for sending status of plug-in board.
The socket communication service is one way only. Data sent in the direction from server to modem during connection is
discarded.
10.1. Description of the Operation
1. Enter the following information by AT commands (see following sections)
- TCP server Information (address, port, retry Info
- TCP message content
2. Make IP connection (see Chapter 3.1.b).
3. Use AT+SCSEND command to send out message.
4. An message can contain maximum up to 128(pre-stored)+128(command line additional) characters
10.2. AT command for socket communication
10.2.1. AT+SCHOST command
This command is to set TCP server parameters
Command Syntax:
AT+SCHOST= <oper>,<id>[,<address>,<portt>,<retry>,<delay>,<type>]
Response syntax:
+SCHOST= <id>,<address>,<portt>,<retry>,<delay>
OK
Command
Possible responses:
AT+SCHOST=0,1,”myhost.co
m”,23,2,10,0
OK
Note : setup host myhost.comwith< id>=1,
<port>=23,<retry>=2 ,<delay>=10,<type>=0
AT+SCHOST=1,1
+SCHOST: 1,”myhost.com”,23,2,10,0
OK
Note : display host setting with <id>=1
AT+SCHOST=2,1
OK
Note : erase host setting with <id>=1
AT+SCHOST=?
+SCHOST:
(0-2),(1-10),(128),(1-65535),(0-10),(1-60),(0-1)
OK
Note : Possible arguements
Defined Values:
<oper>
Type of operation:
0 enter host settings
1 read host settings
2 erase entered host settings
<id>
Identification number of the host setting to be accessed. Valid value is 1 to 10