Mipopen, Open A Socket (Udp Or Tcp) - Fibocom G510 User Manual

G5/g6-family at commands
Hide thumbs Also See for G510:
Table of Contents

Advertisement

AT+CGDCONT=1,"IP","CMNET"
OK
AT+MGAUTH=1,2,"USER","PWD"
OK
AT+MIPCALL=1
OK
+MIPCALL: 172.29.34.127

13.1.3+MIPOPEN, Open a Socket (UDP or TCP)

This command causes the Module to initialize a new socket that waits for a connection from a remote
machine or opens a common connection with a remote side (according to received parameters). Each
socket allocates an accumulating buffer whose size is 1372 bytes for TCP connection and 1024 bytes for
UDP connection.
Note: MIPxxx is a complete set of GPRS commands. This set should not be used with other GPRS
commands, such as CGATT, CGACT, and so on.The +MIPOPEN command returns a +MIPSTAT
unsolicited event if it fails, for example, if it was rejected by the remote side. This command will return in
60 sec when DNS is error.
Command
Syntax
Set
AT+MIPOPEN=<Sock
et_ID>,<Source_Port>
,<Remote_IP>,<Remo
te_Port>,<Protocol>
Read
AT+MIPOPEN?
AT Commands User Manual
Response/Action
OK
or:
+MIPOPEN:
<Socket_ID>,<State>[,<Remote_I
P>,<RemotePort>]
or:
+MIPSTAT:
<Socket_ID>,<Status>
or:
ERROR: <err>
+MIPOPEN: [<Socket_ID>]
for each socket that can be
opened
OK
Remarks
The Set command returns
<Remote IP> and
<Remote Port>
parameters only for
sockets opened in Listen
mode.
The Read command
returns the numbers of the
sockets that can be
opened.
Page 202 of 243

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G510sG520G610-a20 seriesG620-a20 series

Table of Contents