EasyManua.ls Logo

Fibocom G510 - Page 204

Fibocom G510
243 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...
AT Commands User Manual Page
204
of
243
Port 0 for incoming connection.
Protocol
Type of protocol stack.
0 TCP
1 UDP
State
0 Inactive
1 Active
Note: 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
AT+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=2,0,"www.google.com",80,1 //UDP
OK
+MIPOPEN: 2,1
// Listen socket over TCP:
AT+MIPOPEN=1,1100,"0.0.0.0",0,0 // Listens to any port at any IP.
OK
+MIPOPEN: 1,1,122.221.32.64,1200 // Remote side connected to the listen socket.
AT+MIPOPEN=3,3212,"122.1.222.134",0,0 // Listen to any port at specific IP.
OK
+MIPOPEN: 3,1,122.1.222.134,1222 // Remote side connected to the listen socket.
OK

Table of Contents

Other manuals for Fibocom G510