Mipodm, Open A Socket (Udp Or Tcp) In Online Data Mode - Motorola G24 Guide Developer's Manual

At commands
Hide thumbs Also See for G24 Guide:
Table of Contents

Advertisement

+MIPOPEN: 2,1
// 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.
//SSL
AT+MIPOPEN=2,2222,"www.google.com",443,2 // TCP secured with SSL
OK
+MIPOPEN: 2,2
AT+MIPOPEN=3,1234,"www.xyz.com",443,2 // TCP secured with SSL
OK
+MIPSSL: 3,15// SSL_UNKNOWN_CA alert
+MIPOPEN: 3,2

+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 common or TCP secured with SSL 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:
December 31, 2007
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.
The +MIPODM command returns a +MIPSSL unsolicited event(s) in case of alert(s)
occurring during secure connection establishment or in pseudo-command mode. See
.
Table 3-280
AT Commands Reference Manual
Chapter 3: AT Commands Reference
3-389

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents