User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 46
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
lport – Local port on the RS9110-N-11-2X module
Response
Result Code
Description
OK<sock_handle>
Upon successfully opening and
connecting the UDP socket to the
host:port, a socket handle is
returned. The socket handle is
followed after OK. OK is returned
as ASCII, while <sock_handle>
as a 1 byte value in hexadecimal
ERROR<Error code>
Failure
Input parameter delimiter
The input parameters are delimited by commas (0x2C in ASCII format) in this
command.
Example:
at+rsi_udp=192.168.40.10,8000,1234\r\n
………………………………………………………………….
0x61 0x74 0x2B 0x72 0x73 0x69 0x5F 0x75 0x64 0x70 0x3D 0x31 0x39 0x32
0x2E 0x31 0x36 0x38 0x2E 0x34 0x30 0x2E 0x31 0x30 0x2C 0x38 0x30 0x30
0x30 0x2C 0x31 0x32 0x33 0x34 0x0D 0x0A
For a socket handle of 1 the response,
OK 1 \r\n
…………………….
0x4F 0x4B 0x01 0x0D 0x0A
3.4.5 Open a Listening TCP Socket
Description
This commands opens a TCP listening socket on the local IP address and the
specified “port”. Once the listening socket is open, it automatically accepts
remote connect requests. The status of the connection on a listen socket can be
queried by the AT+RSI_CTCP command. Only one connection can be established
on a single invocation of this command.
If multiple connections on a port have to be established, then the same
command has to be invoked another time.
For multiple connections on the same port:
a. Open the first LTCP socket in module (for example port no. 8001)
b. Socket handle returned for this socket would be 1.
c. Connect this socket to the remote peer socket