User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 43
R
R
S
S
9
9
1
1
1
1
0
0
-
-
N
N
-
-
1
1
1
1
-
-
2
2
2
2
/
/
2
2
4
4
/
/
2
2
8
8
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
V
V
e
e
r
r
s
s
i
i
o
o
n
n
4
4
.
.
1
1
5
5
0x61 0x74 0x2B 0x72 0x73 0x69 0x5F 0x69 0x70 0x63 0x6F
0x6E 0x66 0x3D 0x30 0x2C 0x31 0x39 0x32 0x2E 0x31 0x36
0x38 0x2E 0x31 0x2E 0x33 0x2C 0x32 0x35 0x35 0x2E 0x32
0x35 0x35 0x2E 0x32 0x35 0x35 0x2E 0x30 0x2C 0x31 0x39
0x31 0x2E 0x31 0x36 0x38 0x2E 0x31 0x2E 0x31 0x0D 0x0A
Example 2: To configure in DHCP mode, the command is
at+rsi_ipconf=1,0,0\r\n
………………………………………………………………………………………………………………
0x61 0x74 0x2B 0x72 0x73 0x69 0x5F 0x69 0x70 0x63 0x6F
0x6E 0x66 0x3D 0x31 0x2C 0x30 0x2C 0x30 0x0D 0x0A
Response
Result Code
Description
OK<MAC_Address><IPAddr><sub
net><gateway>
MAC_Address (6 Bytes, hex):
MAC address of the module
IPAddr (4 Bytes, hex): IP
address of the module
subnet(4 Bytes, hex): Subnet
mask
gateway(4 Bytes, hex): Gateway
address
ERROR<Error code>
Failure
3.4.2 Open and Connect to a TCP Socket
Description
This command opens a client TCP socket and attempts to connect it to the
specified “port” on a server defined by “host”. A listening socket should be
created in the server before issuing this command, for connection to go through
successfully.
Command
at+rsi_tcp
Usage
at+rsi_tcp=destIP,port,lport\r\n
Parameters
destIP Destination IP Address of the target server
port The target port