EasyManua.ls Logo

Motorola G24 Guide - Page 472

Motorola G24 Guide
642 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GPRS/EDGE
3-388 AT Commands Reference Manual December 31, 2007
The following table shows the +MIPOPEN parameters.
Note: Motorola does not recommend using port numbers below 1024. These numbers are
defined to be reserved for operating systems.
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
Table 3-261: +MIPOPEN 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: 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).
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.
0TCP
1 UDP
2 TCP secured with SSL
State 0 Inactive
1Active
2SSL secured

Table of Contents

Related product manuals