4.2
Opening TCP connection
AT+OTCP
This command is sent by the attached host to open a TCP connection to the TCP server specified by the AT+IPCTP
command.
If socket connection is made successfully it will response CONNECT 115200 and the serial port will go to data mode,
meaning that all data entered on the serial port will be sent to remote TCP/UDP peer.
If socket connection is unsuccessful or socket is disconnected afterward the modem will send out NO CARRIER
message and back to command mode.
Syntax:
AT+OTCP
Response:
CONNECT 115200
Example:
Command
Response
AT+OTCP
CONNECT 115200
Note : TCP connection made successfully.
AT+OTCP
+CME ERROR 3
Note: fail, either IPCONNECT is not ready or socket service is
used already.
AT+OTCP
NO CARRIER
Note: possibly remote server no response.
Note:
–
AT+OTCP connection is exclusive to other TCP feature. See chapter 24.
–
Cellular connection has to be done and managed manually if using OTCP or OUDP, via the cIPCON-
NECT detailed in section 2.1.2 on page 18.
–
If TCP connection is unsuccessful or broken after connection the cellular connection will also be disconnected.
(+IPCONNECT: 1,0). Enter AT+IPCONNECT=1,1 to reconnect cellular before entering AT+OTCP.
–
AT+OTCP can only be used on one port at a time, you cannot have both Serial port and USB connected
simultaneously.
4.3
Opening UDP connection
AT+OUDP
This command is sent by the attached host to open a UDP connection to the UDP server specified by the AT+IPUDP
command.
If socket connection is made successfully it will response CONNECT 115200 and the serial port will go to data mode,
meaning that all data entered to the serial port will be sent to remote UDP peer.
If socket connection is unsuccessful or socket is disconnected afterward the modem will send out NO CARRIER
message and back to command mode.
Syntax:
AT+OUDP
Response:
CONNECT 115200
Example:
34
Confidential, the whole document is the sole property of Maestro Wireless Solutions ltd.
support@maestro-wireless.com