EasyManua.ls Logo

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

Fibocom G510
243 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AT Commands User Manual Page
202
of
243
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
Response/Action
Remarks
Set
AT+MIPOPEN=<Sock
et_ID>,<Source_Port>
,<Remote_IP>,<Remo
te_Port>,<Protocol>
OK
or:
+MIPOPEN:
<Socket_ID>,<State>[,<Remote_I
P>,<RemotePort>]
or:
+MIPSTAT:
<Socket_ID>,<Status>
or:
ERROR: <err>
The Set command returns
<Remote IP> and
<Remote Port>
parameters only for
sockets opened in Listen
mode.
Read
AT+MIPOPEN?
+MIPOPEN: [<Socket_ID>]
for each socket that can be
opened
OK
The Read command
returns the numbers of the
sockets that can be
opened.

Table of Contents

Other manuals for Fibocom G510