User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 51
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
Result Code
Description
OK
Upon successfully closing the
socket “OK” would be returned.
ERROR<Error code>
Failure
NOTE: In the case of TCP socket, when a remote peer closes the socket
connection, the RS9110-N-11-2X module sends the
“AT+RSI_CLOSE<hn>\r\n” response (hn is the socket handle) to the Host.
This is an asynchronous message sent from module to host and not the
response of a specific command. <hn> is sent in 1 byte hex.
AT+RSI_CLOSE is returned in uppercase and ASCII format.
3.4.9 Send data to a Socket
Description
This command sends a byte stream to the socket specified by the socket handle.
The maximum number of bytes that can be sent as a data stream in this
command at a time is 1460 in case of a TCP socket and 1472 in case of a UDP
socket.
Command
at+rsi_snd
Usage
at+rsi_snd=hn,reserved,Dip,Dport, data stream\r\n
Parameters
hn TCP/UDP socket handle of an already open socket.
reserved 1 byte. Set this to „0‟ always.
Dip Destination IP Address. Should be „0‟ if transacting on a TCP socket
Dport Destination Port. Should be „0‟ if transacting on a TCP socket
Data stream A byte stream of size <sz> to be sent to the specified socket.
Response
Result Code
Description
OK<reserved>
1 bytes, hex. The Host should
always ignore this value.