User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 54
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
NOTE on Byte Stuffing: The ā€ž\r\nā€Ÿ character sequence (0x0D, 0x0A in hex)
is used to indicate the termination of an AT command. If the actual data to
be sent from Host comprises of \r\n characters in sequence, the host should
replace this set of characters with (0xDB) and (0xDC). If (0xDB) itself is
part of the data then (0xDB 0xDD ) has to be sent. If (0xDB 0xDC) itself is
part of the data then (0xDB 0xDD 0xDC) has to be sent. If either 0xDD or
0xDC is not sent after 0xDB, then an error (-9) is sent.
Example 1 : If 0x41 0x42 0x43 0x0D 0x0A is the actual data stream that
needs to be sent then the command is
at+rsi_snd <hn> <sz=5> <Dip> <Dport> < 0x41> <0x42> <0x43>
<0xDB> <0xDC> <0x0D> <0x0A>
Example 2 : If 0x41 0x42 0x43 0x0D 0x0A 0x31 0x32 is the actual
data stream that needs to be sent then the command is
at+rsi_snd <hn> <sz=7> <Dip> <Dport> < 0x41> <0x42> <0x43>
<0xDB> <0xDC> <0x31> <0x32> <0x0D> <0x0A>
Example 3 : If 0x41 0x42 0x43 0xDB 0x31 0x32 is the actual data
stream that needs to be sent then the command is
at+rsi_snd <hn> <sz=7> <Dip> <Dport> < 0x41> <0x42> <0x43>
<0xDB> <0xDD> <0x31> <0x32> <0x0D> <0x0A>
Example 4: If 0x41 0x42 0x43 0xDB 0xDC 0x31 0x32 is the actual
data that needs to be transmitted, then the command is
at+rsi_snd <hn> <sz=8> <Dip> <Dport> <0x41> <0x42> <0x43>
<0xDB><0xDD><0xDC> <0x31><0x32> <0x0D> <0x0A>
Example 5: If 0x41 0x42 0x43 0x0D 0x0A 0xDB 0x31 0x32 is the
actual data that needs to be transmitted, then the command is
at+rsi_snd <hn> <sz=9> <Dip> <Dport> <0x41> <0x42> <0x43>
<0xDB><0xDC> <0xDB> <0xDD> <0x31><0x32> <0x0D>
<0x0A>
Example 6: If 0x41 0x42 0x43 0x0D 0x0A 0xDB 0xDC 0x31 0x32 is
the actual data that needs to be transmitted, then the command is
at+rsi_snd <hn> <sz=10> <Dip> <Dport> <0x41> <0x42>
<0x43> <0xDB><0xDC> <0xDB> <0xDD> <0xDC>
<0x31><0x32> <0x0D> <0x0A>
at+rsi_snd is the only command that requires byte stuffing to be done by
the Host before sending to the module. There are NO other commands (from
Host to module) that require byte stuffing. There are NO responses (from
module to Host) that are byte stuffed by module before giving to Host.