PioneerPOS G24-L User Manual

Page of 444
Chapter 3:  AT Commands Reference
 April 15, 2008
G24-L AT Commands Reference Manual
3-281
The following table shows the +MIPODM parameters.
Note:
Motorola does not recommend using port numbers below 1024. These numbers are 
defined to be reserved for operating systems.
Example
Opening socket 3 in Online Data Mode, using TCP protocol, from port 1104, designation IP
123.245.213.012, designation port 1124:
AT+MIPODM=3,1104,"172.90.237.221",1124,0
OK
+MIPODM: 3,1
Enter invalid command format:
AT+MIPODM
ERROR
Check opened in Online Data Mode socket state when G24-L is pseudo-command mode:
AT+MIPODM?
+MIPODM: 3,1
OK
Listen socket over TCP:
AT+MIPODM=1,1100,"0.0.0.0",0,0  // Listens to any port at any IP.
OK
+MIPODM: 1,1,122.221.32.64,1200  // Remote side connected to the listen socket.
AT+MIPODM=3,3212,"122.1.222.134",0,0 // Listen to any port at specific IP.
OK
+MIPODM: 3,1,122.1.222.134,1222  // Remote side connected to the listen socket.
Table 3-197: +MIPODM Parameters
<Parameter>
Description
Socket ID
A unique number that identifies a connection.
Valid socket numbers - 1,2,3 and 4
Source Port
Port of source site.
Port range: 1-65535 (decimal digits)
Remote IP
IP of the remote site in the format "AAA.BBB.CCC.DDD". The range of each octet is 
0-255. The value can be written in 1, 2, or 3 digits.
Host-name of remote site. The host-name convention should meet the rules as 
describe in RFC-1035 section: 2.3 Conventions. Syntax is not validated, except the 
maximum length (255 characters).
Remote Port
Port of remote site. 
Port range: 1-65535 (decimal digits) for outgoing connection.
Port 0 for incoming connection.
Protocol
Type of protocol stack.
0
TCP
1
UDP
State
0
Inactive
1
Active