User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 3
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
Table of Contents
1 Introduction ...................................................................... 10
2 Architecture Overview ....................................................... 11
2.1 Host ..................................................................................12
2.1.1 UART ........................................................................................... 12
2.1.2 SPI .............................................................................................. 12
2.2 RS9110-N-11-2X ................................................................12
2.2.1 SPI .............................................................................................. 12
2.2.2 UART ........................................................................................... 12
2.2.3 Hardware Abstraction Layer (HAL) ................................................... 12
2.2.4 Wireless Control Block (WCB) .......................................................... 12
2.2.5 Wi-Fi Control frames ...................................................................... 12
2.2.6 TCP/IP Control frames .................................................................... 13
2.2.7 Station Management Entity (SME) ................................................... 13
2.2.8 WPA Supplicant ............................................................................. 13
2.2.9 Interrupt ...................................................................................... 13
3 RS9110-N-11-2X in UART Mode ......................................... 14
3.1 Auto Baud Rate Detection (ABRD) ......................................14
3.2 Module Operation in UART Mode ........................................15
3.2.1 Band ............................................................................................ 15
3.2.2 Init .............................................................................................. 16
3.2.3 Number of Scan Results ................................................................. 17
3.2.4 Passive Scan ................................................................................. 18
3.2.5 Scan ............................................................................................ 19
3.2.6 Next Scan Results .......................................................................... 23
3.2.7 Query MAC Address of Scanned APs ................................................. 24
3.2.8 Query Network Type ...................................................................... 25
3.2.9 Set Network Type .......................................................................... 26
3.2.10 Pre Shared Key .......................................................................... 29
3.2.11 Set WEP Key .............................................................................. 31
3.2.12 Authentication Mode ................................................................... 31
3.2.13 Join ........................................................................................... 32
3.2.14 Re-join ...................................................................................... 35
3.2.15 Disassociate ............................................................................... 35
3.3 Power Modes and commands .............................................36
3.3.1 Power mode 0 ............................................................................... 36
3.3.2 Power mode 1 ............................................................................... 36
Before Wi-Fi connection .......................................................................... 36
After Wi-Fi Connection ............................................................................ 37
3.3.3 Power mode 2 ............................................................................... 38
Before Wi-Fi connection .......................................................................... 39
After Wi-Fi Connection ............................................................................ 39
Power Mode Command ........................................................................... 39
Sleep Timer .......................................................................................... 40
3.3.4 Feature Select ............................................................................... 40
3.4 TCP/IP Commands.............................................................42
3.4.1 Set IP Parameters ......................................................................... 42
3.4.2 Open and Connect to a TCP Socket .................................................. 43
3.4.3 Open a Listening UDP Socket .......................................................... 44
3.4.4 Open a UDP Socket ........................................................................ 45