User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 47
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
d. You can now open the second socket in module with the same port no.
8001
e. Socket handle returned for the new socket would be 2
f. Connect this socket to another remote peer socket
Command
at+rsi_ltcp
Usage
at+rsi_ltcp=port\r\n
Parameters
port – Listening port to be used by a remote system when connecting to the
RS9110-N-11-2X module.
Response
Result Code
Description
OK<sock_handle>
Upon successfully opening and
connecting a TCP listening socket,
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
at+rsi_ltcp=8000\r\n
………………………………………………………………….
0x61 0x74 0x2B 0x72 0x73 0x69 0x5F 0x6C 0x74 0x63 0x70 0x3D 0x38 0x30
0x30 0x30 0x0D 0x0A
For a socket handle of 1 the response,
OK 1 \r\n
…………………….
0x4F 0x4B 0x01 0x0D 0x0A