User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 4
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
3.4.5 Open a Listening TCP Socket ........................................................... 46
3.4.6 Open a Multicast socket .................................................................. 48
3.4.7 Query a Listening Socket‟s Active Connection Status .......................... 49
3.4.8 Close a Socket .............................................................................. 50
3.4.9 Send data to a Socket .................................................................... 51
3.4.10 Receive data on a Socket ............................................................. 55
3.4.11 DNS Commands ......................................................................... 56
DNS Query ............................................................................................ 56
DNS Resolution...................................................................................... 57
DNS Command Sequence ....................................................................... 58
3.5 Other Commands ...............................................................58
3.5.1 Query Firmware Version ................................................................. 58
3.5.2 Query Network Parameters ............................................................. 59
3.5.3 Soft Reset .................................................................................... 63
3.5.4 Query MAC Address of Module ......................................................... 64
3.5.5 Query RSSI value .......................................................................... 65
3.6 Connecting to a Preconfigured Access Point .......................65
3.6.1 Store Configuration in Flash Memory ................................................ 66
3.6.2 Enable automatic joining to pre-configured Access Point ..................... 66
3.6.3 Get Information about Stored Configuration ...................................... 67
3.7 Upgrading Firmware ..........................................................71
3.7.1 Firmware Upgrade Using UART Interface without wireless firmware
upgrade feature........................................................................................ 71
3.7.2 Firmware Upgrade Using UART Interface with wireless firmware upgrade
feature 75
3.7.3 Firmware Upgrade from 4.7.x to a higher version wirelessly................ 77
3.8 Using the Wireless Configuration Feature ...........................80
3.8.1 Wireless Configuration in AP mode ................................................... 80
3.8.2 Wireless Configuration when the module is connected to an AP ........... 84
Execute the process in section 3.8.1(Wireless Configuration in AP mode). ..... 84
3.9 General Operation of the Modules ......................................87
3.10 Error Codes........................................................................89
4 RS9110-N-11-2X in SPI Mode ............................................ 93
4.1 SPI Interface .....................................................................93
4.1.1 Overview ...................................................................................... 93
4.1.2 Features ....................................................................................... 94
4.1.3 Interrupt ...................................................................................... 94
4.1.4 Operation ..................................................................................... 94
4.2 Bit ordering of SPI transmission/reception ........................97
4.3 Slave Response ..................................................................98
4.4 Initialization ......................................................................98
4.5 Host Interactions using SPI commands. ........................... 100
4.5.1 Memory Write (Master Write) ........................................................ 100
4.5.2 Frame Write (Slave Write) ............................................................ 103
4.5.3 Memory Read (Master Read) ......................................................... 104
4.5.4 Frame read (Slave Read) .............................................................. 107
4.5.5 Register Reads and Writes ............................................................ 109
Register Summary ............................................................................... 109
SOFT_RESET ....................................................................................... 109
SPI_HOST_INTR .................................................................................. 111