Silicon Labs RS9113-WiseConnect-Software-PRM-v1.7.3 Reference guide

Type
Reference guide
silabs.com | Building a more connected world. Page 3
RS9113 WiSeConnect®
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
1
1
.
.
7
7
.
.
9
9
May 2020
silabs.com | Building a more connected world. Page 2
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
About this Document
This document describes the commands to operate the RS9113-WiSeConnect Module Family for Wi-
Fi. This document should be used by the developer to write software on Host MCU to control and
operate the module.
silabs.com | Building a more connected world. Page 4
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
Table of Contents
1 Overview ................................................................................................................ 13
2 Interfaces ............................................................................................................... 14
2.1 UART........................................................................................................................... 14
2.1.1 Features .......................................................................................................................... 14
2.1.2 Default Parameters .......................................................................................................... 15
2.2 USB ............................................................................................................................. 15
2.2.1 Features .......................................................................................................................... 15
2.3 SPI............................................................................................................................... 15
2.3.1 Features .......................................................................................................................... 15
2.3.2 Communication through SPI............................................................................................. 15
2.3.3 SPI Settings ...................................................................................................................... 15
2.3.4 Interrupt .......................................................................................................................... 16
2.3.5 SPI Commands ................................................................................................................. 16
2.3.5.1 Module Response ........................................................................................................ 18
2.3.5.2 Module Bit Ordering of SPI Transmission/Reception ..................................................... 18
2.3.6 Module SPI Interface Initialization .................................................................................... 19
2.3.7 Host Interactions Using SPI Command .............................................................................. 20
2.3.7.1 Memory Type .............................................................................................................. 21
2.3.7.2 Frame Write................................................................................................................. 23
2.3.7.3 Memory Read .............................................................................................................. 24
2.3.7.4 Fame Read ................................................................................................................... 27
2.3.7.5 Register Read ............................................................................................................... 28
2.3.7.6 Register Write .............................................................................................................. 29
2.3.8 Register Summary ............................................................................................................ 30
3 Module Bootload Process ...................................................................................... 32
3.1 Host Interaction Mode ............................................................................................... 32
3.1.1 Host Interaction Mode in UART/USB-CDC......................................................................... 32
3.1.1.1 Startup Operation ........................................................................................................ 32
3.1.1.1.1 Hyper Terminal Configuration ................................................................................ 32
3.1.1.1.2 Auto Baud Rate Detection (ABRD) .......................................................................... 34
3.1.1.2 Start Up Messages on Power-Up .................................................................................. 35
3.1.1.3 Loading the Firmware in the Module ............................................................................ 36
3.1.1.3.1 Load Image I ....................................................................................................... 36
3.1.1.4 Firmware Upgradation ................................................................................................. 37
3.1.1.4.1 Upgrade Image I .................................................................................................. 37
3.2 Host Interaction Mode in SPI/USB .............................................................................. 40
3.2.1 SPI Startup Operations ..................................................................................................... 40
3.2.2 SPI Startup Messages on Powerup ................................................................................... 42
3.2.3 Loading Firmware in the Module ...................................................................................... 42
3.2.3.1 Load Image I Firmware .............................................................................................. 42
3.2.4 Upgrading the Firmware in the Module ............................................................................ 43
3.2.4.1 Upgrading Image I Firmware...................................................................................... 43
3.3 GPIO Based Bootloader Bypass Mode ........................................................................ 44
3.3.1 Bypass Mode in UART/USB-CDC ....................................................................................... 45
3.3.1.1 Making default image selection .................................................................................... 45
3.3.1.1.1 Selecting Image I as the Default Image ................................................................ 45
3.3.1.2 Enable/Disable GPIO Based Bypass Option ................................................................... 45
3.3.1.2.1 Enabling the GPIO Based Bypass Mode .................................................................. 45
silabs.com | Building a more connected world. Page 5
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
3.3.1.2.2 Disabling the GPIO Based Bypass Mode .................................................................. 46
3.3.1.3 Check CRC of the Selection Image ................................................................................ 47
3.3.2 Bypass Mode in SPI/USB .................................................................................................. 48
3.3.2.1 Selecting the Default Image.......................................................................................... 48
3.3.2.2 Enable/Disable GPIO Based Bootloader Bypass Mode ................................................... 48
3.4 Check CRC of the Selected Image ................................................................................ 49
3.5 Reconfirmation Enable ............................................................................................... 49
3.6 Reconfirmation Disable .............................................................................................. 50
3.7 Binary Mode Selection................................................................................................ 50
3.8 Binary Mode Disable .................................................................................................. 51
4 Wi-Fi Software Programming ................................................................................. 52
4.1 Architecture Overview................................................................................................ 52
4.1.1 Application ...................................................................................................................... 52
4.1.2 SPI ................................................................................................................................... 52
4.1.3 USB ................................................................................................................................. 53
4.1.4 UART ............................................................................................................................... 53
4.1.5 GPIO ................................................................................................................................ 53
4.1.6 Hardware Abstraction Layer (HAL) ................................................................................... 53
4.1.7 Wireless Control Block (WCB)........................................................................................... 53
4.1.7.1 Wi-Fi Control Frames ................................................................................................... 53
4.1.7.2 TCP/IP Control Frames ................................................................................................. 53
4.1.8 Wi-Fi Direct...................................................................................................................... 54
4.1.9 Station Management Entity (SME) ................................................................................... 54
4.1.10 Access point Management Entity (APME) ......................................................................... 54
4.1.11 WPA Supplicant ............................................................................................................... 54
5 Command Mode Selection ..................................................................................... 55
6 AT Command Mode ............................................................................................... 56
7 Binary Command Mode ......................................................................................... 57
8 Commands ............................................................................................................. 66
silabs.com | Building a more connected world. Page 6
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
8.1 Set Operating Mode ................................................................................................... 66
8.2 Band ........................................................................................................................... 79
8.3 WLAN Config............................................................................................................... 80
8.4 Set MAC Address ........................................................................................................ 81
8.5 Init .............................................................................................................................. 83
8.6 PER Mode ................................................................................................................... 85
8.7 Antenna Selection ...................................................................................................... 90
8.8 Configure Wi-Fi Direct Peer-to-Peer Mode ................................................................. 93
8.9 Configure AP Mode................................................................................................... 100
8.10 WPS PIN Method ................................................................................................... 103
8.11 Scan ....................................................................................................................... 105
8.12 Join ........................................................................................................................ 113
8.13 Request timeout ................................................................................................... 118
8.14 Re-Join .................................................................................................................. 119
8.15 WMM PS ............................................................................................................... 121
8.16 Set Sleep Timer ..................................................................................................... 123
8.17 Power Mode.......................................................................................................... 124
8.17.1 Power save Operation .................................................................................................... 126
8.17.1.1 Power save Mode 1 ................................................................................................ 127
8.17.1.2 Power save mode 2 ................................................................................................ 129
8.17.1.3 Power Save mode 3 ................................................................................................ 131
8.17.1.4 Power save mode 8 ................................................................................................ 132
8.17.1.5 Power save mode 9 ................................................................................................ 135
8.18 PSK/PMK ............................................................................................................... 137
8.19 Set WEP Keys ........................................................................................................ 140
8.20 Set WEP Authentication Mode .............................................................................. 141
8.21 Set EAP Configuration ........................................................................................... 142
8.22 Set Certificate ........................................................................................................ 144
8.23 Disassociate .......................................................................................................... 149
8.24 Set IP Parameters .................................................................................................. 151
8.25 IP Change Notification ........................................................................................... 154
8.26 Set IPv6 Parameters .............................................................................................. 156
8.27 SNMP .................................................................................................................... 158
8.28 SNMP Set .............................................................................................................. 160
8.29 SNMP Get Response .............................................................................................. 161
8.30 SNMP Get Next Response .................................................................................... 168
8.31 SNMP Get Stats ..................................................................................................... 171
8.32 SNMP trap ............................................................................................................. 179
8.33 Open Socket .......................................................................................................... 184
8.34 TCP Socket Connection Established ....................................................................... 195
8.35 Query a Listening Socket’s Active Connection Status ............................................ 196
8.36 Close Socket .......................................................................................................... 198
8.37 Send Data .............................................................................................................. 200
8.37.1 Send Data in AT mode .................................................................................................... 200
8.37.2 Send Data in Binary mode .............................................................................................. 206
8.38 Read Data .............................................................................................................. 209
8.38.1 Read Data in AT mode.................................................................................................... 209
silabs.com | Building a more connected world. Page 7
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
8.38.2 Read Data in Binary mode .............................................................................................. 211
8.39 Receive Data on Socket ......................................................................................... 215
8.39.1 Receive Data on Socket in AT mode ............................................................................... 215
8.39.2 Receive Data on Socket in Binary mode .......................................................................... 217
8.40 Wireless Firmware Upgrade .................................................................................. 220
8.41 Back ground scan(BG scan) ................................................................................... 222
8.42 Roam Parameters .................................................................................................. 226
8.43 HT Caps ................................................................................................................. 228
8.44 DNS Server ............................................................................................................ 230
8.45 DNS Resolution ..................................................................................................... 234
8.46 DNS UPDATE ......................................................................................................... 237
8.47 HTTP GET ............................................................................................................... 239
8.48 HTTP POST............................................................................................................. 243
8.49 HTTP POST DATA ................................................................................................... 248
8.50 HTTP PUT .............................................................................................................. 250
8.51 DFS Client (802.11h) .............................................................................................. 256
8.52 Query Firmware Version ....................................................................................... 256
8.53 Query RSSI Value ................................................................................................... 258
8.54 Query MAC Address .............................................................................................. 260
8.55 Query Network Parameters .................................................................................. 263
8.56 Query Group Owner Parameters ........................................................................... 267
8.57 Soft Reset .............................................................................................................. 270
8.58 Set/Reset multicast filter ...................................................................................... 271
8.59 Join or Leave Multicast group ............................................................................... 273
8.60 Ping From Module ................................................................................................. 275
8.61 Loading the webpage ............................................................................................ 278
8.61.1 Loading static webpage .................................................................................................. 278
8.61.2 Loading the dynamic webpage(Create JSON) .................................................................. 280
8.62 Clearing the webpage............................................................................................ 282
8.62.1 Erasing the webpage ...................................................................................................... 282
8.62.2 Erasing the JSON Data .................................................................................................... 283
8.62.3 Clear all the WebPages .................................................................................................. 284
8.63 Loading of Store Configuration Page ..................................................................... 285
8.63.1 Wireless Configuration Page Bypass and Override Option .............................................. 286
8.63.1.1 Default configuration page bypass .......................................................................... 286
8.63.1.2 Default configuration page override ....................................................................... 286
8.64 Web Page request to Host ..................................................................................... 286
8.65 Set Region ............................................................................................................. 289
8.66 Set Region of Access point .................................................................................... 293
8.67 PER statistics of the module .................................................................................. 295
8.68 Query WLAN Connection Status ............................................................................ 299
8.69 Remote Socket Closure ......................................................................................... 299
8.70 Bytes Transmitted Count On Socket ...................................................................... 300
8.71 Debug prints on UART 2 ........................................................................................ 301
8.72 Asynchronous message for connection state notification ..................................... 302
8.73 TSF Synchronization packet ................................................................................... 305
8.74 Station connect/disconnect indication in AP mode ............................................... 308
8.75 Transparent Mode Command ............................................................................... 308
silabs.com | Building a more connected world. Page 8
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
8.76 UART Hardware Flow control ................................................................................ 311
8.77 Socket Configuration Parameters .......................................................................... 312
8.78 RF Current mode Configuration............................................................................. 314
8.79 Trigger Auto Configuration .................................................................................... 315
8.80 Http Abort ............................................................................................................. 316
8.81 HTTP Server Credentials From Host ....................................................................... 317
8.82 FTP client ............................................................................................................... 318
8.83 SNTP Client ............................................................................................................ 326
8.84 MDNS and DNS-SD ................................................................................................ 330
8.85 SMTP Client ........................................................................................................... 334
8.86 POP3Client ............................................................................................................ 338
8.87 IAP Init .................................................................................................................. 344
8.88 Load MFI IE ............................................................................................................ 345
8.89 Over The Air Firmware Upgradation ..................................................................... 345
8.90 Read MFI Authentication Certificate ..................................................................... 347
8.91 Generate MFI Authentication Signature ............................................................... 348
8.92 Storing Configuration Parameters ......................................................................... 349
8.92.1 Storing Configuration Parameters in Client mode ........................................................... 349
8.92.1.1 Store Configuration in Flash Memory...................................................................... 349
8.92.1.2 Enable auto-join to AP or Auto-create AP ............................................................... 350
8.92.1.3 Get Information about Stored Configuration........................................................... 351
8.92.1.4 Store configuration from User ................................................................................ 356
8.93 Store configuration structure parameters ............................................................. 362
8.94 Store Profile configuration .................................................................................... 380
8.95 Set RTC time .......................................................................................................... 385
8.96 PUF ENROLL .......................................................................................................... 387
8.97 PUF DISABLE ENROLL ............................................................................................ 388
8.98 PUF SATRT ............................................................................................................. 388
8.99 PUF SET KEY .......................................................................................................... 389
8.100 PUF DISABLE SET KEY ............................................................................................ 390
8.101 PUF GET KEY .......................................................................................................... 391
8.102 PUF DISABLE GET KEY ............................................................................................ 392
8.103 PUF LOAD KEY ....................................................................................................... 393
8.104 PUF INTRINSIC KEY ............................................................................................... 394
8.105 AES ENCRYPT ......................................................................................................... 395
8.106 AES DECRYPT ......................................................................................................... 396
8.107 AES MAC ............................................................................................................... 397
9 Error Codes ........................................................................................................... 399
10 SPI Host Interface Mode ................................................................................... 409
10.1 Operations through SPI ......................................................................................... 409
10.1.1 Tx Operation .................................................................................................................. 409
10.1.2 The Host uses Tx operations:.......................................................................................... 409
10.1.3 Rx Operation.................................................................................................................. 411
11 USB Host Interface Mode .................................................................................. 414
11.1 USB mode.............................................................................................................. 414
11.1.1.1 Operations through USB interface: ......................................................................... 415
11.1.2 USB CDC-ACM mode ...................................................................................................... 415
silabs.com | Building a more connected world. Page 9
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
12 Using Different Wi-Fi Operation Modes ............................................................ 417
12.1 Wi-Fi Direct Mode ................................................................................................. 417
12.2 Access Point Mode ................................................................................................ 417
12.3 Client Mode with Personal Security ...................................................................... 418
12.4 Client Mode with Enterprise Security .................................................................... 419
12.5 PER Mode .............................................................................................................. 420
13 Wireless Configuration...................................................................................... 422
13.1 Configuration to Join a Specific AP ........................................................................ 422
13.2 Configuring to Create an AP .................................................................................. 425
13.3 Configuration to Join an AP with Enterprise Security ............................................ 428
14 Wireless Firmware Upgrade .............................................................................. 433
15 Wake on Wireless ............................................................................................. 437
16 Appendix A: Sample flow of commands for Wi-Fi over UART ........................... 438
17 Appendix B: Sample flow of APIs for Wi-Fi over SPI.......................................... 449
18 Appendix C: Links for BT, BLE and ZigBee Documentation ................................ 453
List of Figures
Figure 1: Host Interface Block Diagram .................................................................................................. 14
Figure 2: SPI Command Description ....................................................................................................... 16
Figure 3: 8-bit Mode............................................................................................................................... 19
Figure 4: 32-bit Mode ............................................................................................................................. 19
Figure 5: Module SPI Initialization .......................................................................................................... 20
Figure 6: SPI Initialization exchanges between Host and Module ........................................................... 20
Figure 7: Memory Write ......................................................................................................................... 22
Figure 8: Interactions in the physical interface ....................................................................................... 22
Figure 9: Frame Write ............................................................................................................................ 23
Figure 10: Memory Read ........................................................................................................................ 25
Figure 11: Memory Read at Physical Interface ....................................................................................... 26
Figure 12: Frame Read ........................................................................................................................... 27
Figure 13: Register Read ........................................................................................................................ 29
Figure 14: Register Write ....................................................................................................................... 30
Figure 15: HyperTerminal Name field Configuration .............................................................................. 33
Figure 16: HyperTerminal COM port field Configuration ........................................................................ 33
Figure 17: HyperTerminal Baud rate field Configuration ........................................................................ 34
Figure 18: ABRD exchange between Host and module ........................................................................... 35
Figure 19: RS9113-WiSeConnect Module UART/USB-CDC Welcome Message ........................................ 36
Figure 20: RS9113-WiSeConnect Module UART WLAN Firmware Loading Message ............................... 37
Figure 21: RS9113-WiSeConnect Module Image I Firmware Upgrade File Prompt Message ............... 38
Figure 22: RS9113-WiSeConnect Module Image I Upgrade File Selection Message .............................. 38
Figure 23: RS9113-WiSeConnect Module Image - I Firmware Upgrade File transfer Message ............... 39
Figure 24: RS9113-WiSeConnect Module Image - I Firmware Upgrade Completion Message ................ 40
Figure 25: Image I upgradation through SPI/USB................................................................................. 44
Figure 26: Making Image I as default image ......................................................................................... 45
silabs.com | Building a more connected world. Page 10
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
Figure 27: Enabling the GPIO based bypass mode .................................................................................. 46
Figure 28: Disabling the GPIO based bypass mode ................................................................................. 46
Figure 29: CRC Check example ............................................................................................................... 47
Figure 30: CRC Check passed .................................................................................................................. 48
Figure 31: Reconfirmation Enable .......................................................................................................... 49
Figure 32: Boot up options after reconfirmation enable ........................................................................ 50
Figure 33: Reconfirmation disable .......................................................................................................... 50
Figure 34: Binary mode enable............................................................................................................... 51
Figure 35: Binary mode disable .............................................................................................................. 51
Figure 36: Wi-Fi Software Architecture .................................................................................................. 52
Figure 37: Command Frame Format ....................................................................................................... 58
Figure 38: Operation after issuing "configure WFD P2P Mode" 2P Mode" command ............................ 99
Figure 39: Power save Mode 1 ............................................................................................................. 128
Figure 40: Power save mode 2 ............................................................................................................. 130
Figure 41: Power save Mode 3 ............................................................................................................. 132
Figure 42: Power save Mode 8 ............................................................................................................. 134
Figure 43: Power save Mode 9 ............................................................................................................. 136
Figure 44: Loading Certificate in Binary Mode ...................................................................................... 149
Figure 45: Send Operation ................................................................................................................... 204
Figure 46: Connecting to Pre-configured AP ......................................................................................... 361
Figure 47: Creating Preconfigured AP ................................................................................................... 362
Figure 48: Tx From Host to Module ...................................................................................................... 410
Figure 49: Exchanges between Host and Module for Tx operation ....................................................... 411
Figure 50: RX Frame format ................................................................................................................. 411
Figure 51: RX Operation from Module to Host ..................................................................................... 412
Figure 52: Message exchanges between Host and Module for Rx operation ........................................ 413
Figure 53: Command/Data Packet format from host to module in USB mode ..................................... 414
Figure 54: Command/Data Packet format from module to host in USB mode ..................................... 415
Figure 55: Device Manager ................................................................................................................... 416
Figure 56: Access Point Mode .............................................................................................................. 418
Figure 57: Client Mode with Personal Security ..................................................................................... 419
Figure 58: Client Mode with Enterprise Security .................................................................................. 420
Figure 59: PER Mode ............................................................................................................................ 421
Figure 60: Setup for Configuration to Join a Specific AP Flow 1 ......................................................... 422
Figure 61: Setup for Configuration to Join a Specific AP Flow 2 ......................................................... 423
Figure 62: Webpage Screenshot ........................................................................................................... 424
Figure 63: Setup for Configuration to Create an AP Flow 1 ................................................................ 425
Figure 64: Webpage Screenshot ........................................................................................................... 426
Figure 65: Setup for Configuration to Create an AP Flow 2 ................................................................ 427
Figure 66: Webpage Screenshot ........................................................................................................... 428
Figure 67: Setup for Configuration to Join an AP with Enterprise Security Flow 1.............................. 428
Figure 68: Webpage Screenshot ........................................................................................................... 430
Figure 69: Setup for Configuration to Join an AP with Enterprise Security Flow 2.............................. 431
Figure 70: Webpage Screenshot ........................................................................................................... 432
Figure 71: Login Credentials ................................................................................................................. 433
Figure 72: Configuration Page .............................................................................................................. 434
Figure 73: Browse for RPS File .............................................................................................................. 434
Figure 74: Firmware Upgraded Successfully ......................................................................................... 435
Figure 75: Module Not Responding ...................................................................................................... 436
Figure 76: Upgradation failed ............................................................................................................... 436
silabs.com | Building a more connected world. Page 11
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
Table of Tables
Table 1: SPI Command Description ........................................................................................................ 18
Table 2: Command Types ....................................................................................................................... 21
Table 3: RS9113-WiSeConnect Module Register Description .................................................................. 30
Table 4: SPI Host Interrupt Register ....................................................................................................... 31
Table 5: HOST_INTF_REG_IN Register values significance ...................................................................... 41
Table 6: Bootloader message exchange registers ................................................................................... 41
Table 7: Bootloader Message Codes....................................................................................................... 42
Table 8: Frame Descriptor for Management/Data Frames in Binary Mode ............................................ 59
Table 9: Command IDs for Tx Data Operation ........................................................................................ 62
Table 10: Response IDs for Rx Operation ............................................................................................... 65
Table 11: Coex Modes Supported........................................................................................................... 69
Table 12: PER Mode Data Rates ............................................................................................................. 86
Table 13: Channel Number and Frequencies for 20MHz Channel Width in 2.4GHz ................................. 87
Table 14: Channel Number and Frequencies for 20MHz Channel Width in 5GHz .................................... 89
Table 15: Rate Flags ............................................................................................................................... 89
Table 16: Wi-Fi Direct Device Types ....................................................................................................... 97
Table 17: Channel in 2.4 GHz Mode ...................................................................................................... 106
Table 18: Channel in 5GHz Mode ......................................................................................................... 107
Table 19: Channel Number to Bitmap Mapping in 2.4GHz.................................................................... 109
Table 20: Channel number to bitmap mapping in 5GHz ....................................................................... 110
Table 21: Transmission Data Rates ....................................................................................................... 115
Table 22: Message From Module in Power save Mode ........................................................................ 131
Table 23: Message from host in Power save Mode .............................................................................. 131
Table 24: Message From Module in ULP Mode 2.................................................................................. 135
silabs.com | Building a more connected world. Page 12
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
Table 25: SNMP Object Types and Codes ............................................................................................. 162
Table 26: SNMP Object Types and Codes ............................................................................................. 169
Table 27: TOS Values ............................................................................................................................ 188
Table 28: Data Stuffing ......................................................................................................................... 205
Table 29: Regulations followed for US domain ..................................................................................... 292
Table 30 : Regulations followed for Europe domain ............................................................................. 292
Table 31 : Regulations followed for Japan domain ............................................................................... 292
Table 32: Coex Modes Supported......................................................................................................... 364
Table 33: Error Codes ........................................................................................................................... 408
silabs.com | Building a more connected world. Page 13
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
1 Overview
This document describes the commands to operate RS9113-WiSeConnect Module Family in
Wi-Fi. The parameters in the commands and their valid values with the expected responses
from the modules are also described. The document should be used by the developer to
write software on the Host MCU to control and operate the module.
Section AT Command Mode describes commands to operate the module using the
UART/USB-CDC interfaces. Section Binary Command Mode describes Binary commands to
operate the module using the SPI/USB/UART/USB-CDC interfaces.
Note:
Please ensure that the module connections are made as described in MIG, for your chosen
host interface.
silabs.com | Building a more connected world. Page 14
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
2 Interfaces
Host can interface with RS9113-WiSeConnect Module using following list of host interfaces
to configure and send/receive data.
UART
SPI
USB
Figure 1: Host Interface Block Diagram
2.1 UART
The UART on the RS9113-WiSeConnect module is used as a host interface to configure the
module, send and receive data.
2.1.1 Features
Supports hardware (RTS/CTS) flow control.
Supports following list of baud rates
o 9600 bps
o 19200 bps
o 38400 bps
o 57600 bps
o 115200 bps
o 230400 bps
o 460800 bps
o 921600 bps
Note:
921600 bps is supported only if hardware flow control is enabled.
SPI
SPI
Host
INTERRUPT
UART
UART
RS9113-WisConnect Module
USB
USB
silabs.com | Building a more connected world. Page 15
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
For BT/BLE, 921600bps rate is not supported.
2.1.2 Default Parameters
Data bits - 8
Stop bits - 1
Parity None
Flow control - None
2.2 USB
RS9113-WiSeConnect module supports USB interface, allow host to configure and
send/receive data through module using USB interface.
2.2.1 Features
USB 2.0 (USB-HS core)
o USB 2.0 offers the user a longer bandwidth with increasing data
throughput.
o USB 2.0 supports additional data rate of 480 M bits/Sec in addition to
1.5Mbits/Sec and 12 M bits/Sec.
Supports USB-CDC
2.3 SPI
This section describes RS9113-WiSeConnect module SPI interface and the commands &
processes to operate the module using the SPI interface.
2.3.1 Features
Supports 8-bit and 32-bit data mode
Supports flow control
2.3.2 Communication through SPI
The RS9113-WiSeConnect module can be configured and operated from the Host by
sending commands through the SPI interface.
2.3.3 SPI Settings
The SPI Interface is a full duplex serial Host interface, which supports 8-bit and 32-bit data
mode. The SPI interface of the module consists of the following signals:
SPI_MOSI (Input) - Serial data input for the module.
SPI_MISO (Output) - Serial data output for the module.
SPI_CS (Input) - Active low slave select signal. This should be low when SPI transactions are
to be carried out.
SPI_CLK (Input) - SPI clock. Maximum value allowed is 80 MHz
INTR (Output) - Active high (Default), Active low, level interrupt output from the module.
The module acts as a SPI slave only while the Host is the SPI master.
Following parameters should be in the host SPI interface.
silabs.com | Building a more connected world. Page 16
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
CPOL (clock polarity) = 0,
CPHA (clock phase) = 0.
2.3.4 Interrupt

the Host MCU. The INTERRUPT signal is an active high, level triggered signal. It is raised by
the module in the following cases:
1) When the module needs to indicate to the Host that it has received data from the
remote terminal and the data needs to be read by the Host.
2) When the module needs to indicate to the Host that a response to a command sent by
the Host is ready to be read from the module.
3) To indicate to the Host that it should read a CARD READY message from module. This
operation is described in the subsequent sections.
Note:
If the host does not support active high level triggered and has used rising edge triggered
there are chances that the interrupt is missed, or a false interrupt is seen. Host can check
the interrupt status register if the module has raised an interrupt.
We have provided a code snippet for that to be added. Please check SAPI examples.
2.3.5 SPI Commands
The SPI interface is programmed to perform a certain transfer using commands C1, C2, C3
and C4 and optional 32-bit address. For all the Commands and Addresses, the Host is
configured to transmit data with 8-bit mode. At the end of all the Commands and
Addresses, the Host is reconfigured to transmit data with 8-bit or 32-bit mode depending
on the commands issued. The Module responds to all the commands with a certain
response pattern.
The four commands C1, C2, C3, and C4 indicate to the SPI interface all the aspects of the
transfer.
Figure 2: SPI Command Description
The command description is as follows:
silabs.com | Building a more connected world. Page 17
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
Command
Bit Number
Description
C1
[7:6]
Command Type
- Initialization Command
- Read/Write Command
- Reserved for future use
5
Read/Write
- Read Command
- Write Command
4
Register/ (Memory & Frame) read/write Access
- register read/write
- Memory read/write or Frame read/write
3
Memory/Frame Access
- Memory read/write
- Frame read/write
2
2-bit or 16-bit length for the transfer
- 2-bit length for the transfer
- 16-bit length for the transfer
1:0
2-bit length (in terms of bytes) for the transfer
(valid only if bit 2 is cleared)
- 4 Bytes length
- 1 Byte length
- 2 Bytes length
- 3 Bytes length
C2
7:6
8-bit or 32-bit mode. Indicates the granularity
of the write/read data.
Note: The SPI (C1, C2, C3, C4) commands and
addresses (A1, A2, A3, A4) will always be 8-bit
irrespective of this value.
- 8-bit mode
- 32-bit mode
- Reserved for future use
5:0
This carries Register address if bit 4 for
Command C1 is cleared (i.e. register read/write
silabs.com | Building a more connected world. Page 18
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
Command
Bit Number
Description
selected).
Otherwise, reserved for future use.
C3
7:0
Length (7:0)
 terms of
bytes) in case bit 2 of C1 is set.
This command is skipped if bit 2 of C1 is
cleared.
C4
7:0
MSB of the transfer Length (15:8)
(Which is in terms of bytes) in case bit 2 of C1
is set.
This command is skipped if bit 2 of C1 is cleared
i.e. if 2-bit length is selected.
Table 1: SPI Command Description
To all these commands, the SPI interface responds with a set of unique responses.
2.3.5.1 Module Response
The RS9113 WiSeConnect module gives responses to the host SPI command requests
through SPI interface. These are as follows
A success/failure response at the end of receiving the command. This response is
driven with 8-bit mode during the Command and Address phase and is then
switched to 8-bit or 32-bit mode during the Data phase as per the command issued.
Success: 0x58 or0x00000058
Failure: 0x52 or 0x00000052
An 8-bit or 32-bit start token is transmitted once the four commands (C1, C2, C3,
C4) indicating a read request are received and the Module is ready to transmit data.
The start token is immediately followed by the read-data.
Start Token: 0x55 or 0x00000055
An 8-bit or 32-bit busy response in case a new transaction is initiated while the
previous transaction is still pending from the slave side.
Busy Response: 0x54 or 0x00000054
2.3.5.2 Module Bit Ordering of SPI Transmission/Reception
8-bit Mode:
If a sequence of bytes <B3 [7:0]><B2 [7:0]><B1[7:0]><B0[7:0]> is to be sent, where B3 is
interpreted as the most significant byte, then the sequence of transmission is as follows:
B0 [7] ..B0 [6] .. B0 [0] -> B1 [7] ..B1 [6] ..B1 [0] -> B2 [7] ..B2[6] .. B2[0] -> B3[7] ..B3[6] ..
B3[0]
B0 is sent first, then B1, then B2 and so on.
silabs.com | Building a more connected world. Page 19
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
In each of the bytes, the MSB is sent first. For example, when B0 is sent, B0 [7] is sent first,
then B0 [6], then B0[5] and so on. Same is the case when receiving data. In this example, B0
[7] is expected first by the receiver, then B0 [6] and so on. Also, as can be seen, the data
changes value at the falling edge and is latched at the rising edge.
Figure 3: 8-bit Mode
32-bit Mode:
If a sequence of 32-bit words is <W3[31:0]><W2[31:0]><W1[31:0]><W0[31:0]> is to be
sent, where W3 is interpreted as the most significant word, then the sequence of
transmission is as follows :
W0[31] ..W0[30] ..W0[0] -> W1[31] ..W1[30] ..W1[0] -> W2[31] ..W2[30] ..W2[0] ->
W3[31] ..W3[30] ..W3[0]
W0 is sent first, then W1, then W2 and so on.
In each of the 32-bit words, the MSB is sent first. For example, when W0 is sent, W0[31] is
sent first, then W0[30], then W0[29] and so on. Same is the case when receiving data. In
this example, W0 [31] is expected first by the receiver, then W0[30] and so on. Also, as can
be seen, the data changes value at the falling edge and is latched at the rising edge.
Figure 4: 32-bit Mode
Bit Ordering of Module Response
The bit ordering is same as explained in Module bit Ordering of SPI Transmission/Reception.
For example, 0x58 response for 8-bit success is sent as
0 -> 1 -> 0 -> 1-> 1 -> 0 -> 0 -> 0 . That is 0 is sent first, then 1, then 0, then 1, and so on.
2.3.6 Module SPI Interface Initialization
The Initialization Command is given to the Module to initialize the SPI interface. The SPI
interface remains non-functional to any command before initialization and responds only
after successful initialization. Initialization should be done only once after the power-on.
Module treats any subsequent initialization commands before the reset as errors. For the
silabs.com | Building a more connected world. Page 20
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
initialization command, the Host drives C1 command followed by an 8-bit dummy data. Bits
[7:6] of C1 are cleared and 0x15 is driven on bits [5:0]. Status response from the SPI
Interface is driven during the transmission of the dummy data i.e. after the transfer of 8-bits
of command C1.
Figure 5: Module SPI Initialization
Figure 6: SPI Initialization exchanges between Host and Module
2.3.7 Host Interactions Using SPI Command
This section describes the procedures to be followed by the Host to interact with the
RS9113-WiSeConnect Module using SPI commands.
The Host interactions to the module could be categorized as below.
Command
Memory write
Memory read
silabs.com | Building a more connected world. Page 21
RS9113 WiSeConnect®
Software Programming Reference Manual
Version 1.7.9
Command
Frame write
Frame read
Register write
Register read
Table 2: Command Types
2.3.7.1 Memory Type
Host need to accesses the memory/registers of the RS9113-WiSeConnect Module for
configuration and operation.
To write data into a memory/register address, memory write command must be framed as
nse is sent from the Module, the
retries need to be done or the module should be reset.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462

Silicon Labs RS9113-WiseConnect-Software-PRM-v1.7.3 Reference guide

Type
Reference guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI