Motorola AT Commands G24-L Información técnica Pagina 383

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 522
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 382
Chapter 3: AT Commands Reference
January 31, 2007 AT Commands Reference Manual 3-307
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
+MIPOPEN: 2,1
Table 3-201: +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
State 0 Inactive
1Active
Vista de pagina 382
1 2 ... 378 379 380 381 382 383 384 385 386 387 388 ... 521 522

Comentarios a estos manuales

Sin comentarios