Motorola G24 Guide Developer's Manual page 472

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

Advertisement

GPRS/EDGE
The following table shows the +MIPOPEN parameters.
<Parameter>
Socket ID
Source Port
Remote IP
Remote Port
Protocol
State
Note:
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
3-388
Table 3-261: +MIPOPEN Parameters
A unique number that identifies a connection.
Valid socket numbers - 1,2,3 and 4
Port of source site.
Port range: 1-65535 (decimal digits)
IP: IP of the remote site in the format "AAA.BBB.CCC.DDD". The range of each
octet is 0-255. 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).
Port of remote site.
Port range: 1-65535 (decimal digits) for outgoing connection.
Port 0 for incoming connection.
Type of protocol stack.
0
TCP
1
UDP
2
TCP secured with SSL
0
Inactive
1
Active
2
SSL secured
Motorola does not recommend using port numbers below 1024. These numbers are
defined to be reserved for operating systems.
AT Commands Reference Manual
Description
December 31, 2007

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents