PioneerPOS G24-L User Manual

Page of 444
Chapter 3:  AT Commands Reference
 April 15, 2008
G24-L AT Commands Reference Manual
3-279
Example
AT+MIPOPEN=1,1200,"123.245.213.012",1234,0//Opening socket 1, using TCP protocol, from port 1200, 
targeting 123.245.213.012 port 1234
+MIPOPEN=2,1300,"123.133.074.192",1242,1//Opening socket 2, using UDP protocol, from port 1300, 
targeting 123.133.074.192 port 1242
AT+MIPOPEN=1,1222,"123.245.213.012",1234,0//Opening socket 1, using TCP protocol, from port 1222, 
targeting 123.245.213.012 port 1234
AT+MIPOPEN: //Invalid 
command
ERROR
AT+MIPOPEN? 
//Terminal checking the free sockets
+MIPOPEN: 3 4
OK
AT+MIPOPEN=1,0,"WWW.GOOGLE.COM",80,0//TCP
OK
+MIPOPEN: 1,1
AT+MIPOPEN=1,0,"www.google.com",80,0//TCP
OK
+MIPOPEN: 1,1
AT+MIPOPEN=2,0,"www.google.com",80,1//UDP
OK
+MIPOPEN: 2,1
+MIPODM, Open a Socket (UDP or TCP) in Online Data Mode
This command causes the G24-L 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.