User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 5
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
INTR_MASK ........................................................................................ 113
INTR_CLEAR ....................................................................................... 114
4.6 Power modes ................................................................... 114
4.6.1 Power mode 0 ............................................................................. 114
4.6.2 Power mode 1 ............................................................................. 114
4.6.3 Power mode 2 ............................................................................. 115
4.7 TCP/IP Stack Usage in RS9110-N-11-22/24/28 ............... 117
4.7.1 Using the Wi-Fi module with TCP/IP stack enabled ........................... 117
4.7.2 Using the Wi-Fi module with TCP/IP stack bypassed ......................... 118
4.8 Command frames ............................................................. 119
4.9 Management Frames (Frame Write) ................................. 121
4.9.1 Band .......................................................................................... 126
4.9.2 Init ............................................................................................ 126
4.9.3 Scan .......................................................................................... 127
4.9.4 Set WEP Key ............................................................................... 131
4.9.5 Join ........................................................................................... 132
4.9.6 Query MAC address and Network Type of Scanned Networks ............ 136
4.9.7 Power Mode ................................................................................ 138
4.9.8 Sleep Timer ................................................................................ 138
4.9.9 TCP/IP Bypass ............................................................................. 139
4.9.10 Feature Select .......................................................................... 140
4.10 Data Frames (TCP/IP Commands) (Frame Write) ............. 141
4.10.1 Set IP Parameters ..................................................................... 145
4.10.2 Open a Socket .......................................................................... 147
4.10.3 Close a Socket.......................................................................... 150
4.10.4 Send Data to a Socket ............................................................... 151
4.10.5 Receive Data on a Socket .......................................................... 154
4.10.6 HTTP GET Request .................................................................... 157
4.10.7 HTTP POST Request .................................................................. 159
4.10.8 DNS Request ............................................................................ 161
4.10.9 Connection Establishment with LTCP Socket ................................. 162
4.10.10 Remote Termination ............................................................... 164
4.11 Send and Receive Data in TCP/IP Bypass mode ................ 164
4.11.1 Send data ................................................................................ 165
4.11.2 Receive data ............................................................................ 166
4.12 Other Commands (Data Frames) ...................................... 168
4.12.1 Query RSSI Value ..................................................................... 169
4.12.2 Query Network Parameters ........................................................ 169
4.12.3 Set a Listen Interval .................................................................. 171
4.12.4 Query Connection Status ........................................................... 173
4.12.5 Disassociate ............................................................................. 173
4.12.6 Query DHCP Information ........................................................... 174
4.12.7 Query Firmware Version ............................................................ 175
4.12.8 Set MAC Address ...................................................................... 175
4.12.9 Query MAC Address .................................................................. 176
4.13 Connecting to a Preconfigured Access Point ..................... 177
4.13.1 Store Configuration in Flash Memory ........................................... 177
4.13.2 Enable automatic joining to pre-configured Access Point ................ 178
4.13.3 Get Information about Stored Configuration ................................. 179
5 Firmware Upgrade and Bootload...................................... 183