Technical information

Table Of Contents
GPRS/EDGE
3-308 AT Commands Reference Manual January 31, 2007
// Listen socket over TCP:
AT+MIPOPEN=1,1100,"0.0.0.0",0,0 // Listens to any port at any IP.
OK
+MIPOPEN: 1,1,122.221.32.64,1200 // Remote side connected to the listen socket.
AT+MIPOPEN=3,3212,"122.1.222.134",0,0 // Listen to any port at specific IP.
OK
+MIPOPEN: 3,1,122.1.222.134,1222 // Remote side connected to the listen socket.
+MIPODM, Open a Socket (UDP or TCP) in Online Data Mode
This command causes the G24 to initialize a new socket that waits for a connection from a remote
machine or opens a connection with a remote side (according to received parameters) and switch
it to Online (raw data transfer) Data Mode and open a connection with a remote side.
Notes: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.
Online Data Mode allows the user to transfer raw data from terminal to Network and vice
versa over a GPRS channel. Currently, only RS232 connection to terminal with hardware
flow control is supported.
Each socket allocates an accumulating buffer whose size is 1372 bytes. When the user
sends amount of data, less then buffer size, the data is being sent to Network after a
spooling timeout (200 mS), otherwise the data is being sent to Network immediately.
Only one socket is allowed at the same time in Online Data Mode.
The +MIPODM command returns a +MIPSTAT <Socket ID><Error> unsolicited event
if it fails. For example, if it was rejected by the remote side.
Command Type Syntax Response/Action Remarks
Set
AT+MIPODM=
<Socket ID>,
<Source Port>,
<Remote IP>,
<Remote Port>,
<Protocol>
OK
or:
+MIPODM: <Socket
ID>,<State>[,<Remote IP>,<Remote
Port>]
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.