Silicon Labs RS9116W User manual

silabs.com | Building a more connected world. 1 | Page
RS9116W BT Classic AT Command Programming
Version 2.1
February 10, 2021
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 2 | Page
Table of Contents
1 Overview ................................................................................................................................................................. 4
2 Bootloader .............................................................................................................................................................. 7
3 Host Interfaces ..................................................................................................................................................... 19
3.1 UART Interface ............................................................................................................................................. 19
4 Classic Command Mode Selection ..................................................................................................................... 21
5 Classic Command Format ................................................................................................................................... 22
6 BT Classic Commands......................................................................................................................................... 33
6.1 Generic Commands ...................................................................................................................................... 33
6.1.1 Set Operating Mode ................................................................ ......................................................................... 33
6.1.2 Set Local Name ............................................................................................................................................... 38
6.1.3 Query Local Name ........................................................................................................................................... 38
6.1.4 Set Local COD ................................................................................................................................................. 39
6.1.5 Query Local COD ............................................................................................................................................. 39
6.1.6 Query RSSI...................................................................................................................................................... 39
6.1.7 Query Link Quality............................................................................................................................................ 40
6.1.8 Query Local BD Address .................................................................................................................................. 40
6.1.9 Query BT Stack Version ................................................................................................................................... 41
6.1.10 Initialize BT Module .......................................................................................................................................... 41
6.1.11 Deinitialize BT Module...................................................................................................................................... 41
6.1.12 BT Antenna Select ........................................................................................................................................... 42
6.1.13 Set Feature Bitmap ................................................................................................ .......................................... 42
6.1.14 Set Antenna Tx power level .............................................................................................................................. 42
6.2 PER Commands ........................................................................................................................................... 43
6.2.1 BR-EDR PER Transmit .................................................................................................................................... 43
6.2.2 BR-EDR PER Receive ..................................................................................................................................... 44
6.2.3 Per Stats ................................................................ .......................................................................................... 44
6.3 Core Commands ........................................................................................................................................... 48
6.3.1 Set Profile Mode .............................................................................................................................................. 48
6.3.2 Get Device Discovery Mode ............................................................................................................................. 49
6.3.3 Set Connectability Mode .................................................................................................................................. 49
6.3.4 Get Connectablility Mode ................................................................................................................................. 50
6.3.5 Remote Name Request .................................................................................................................................... 50
6.3.6 Remote Name Request Cancel ........................................................................................................................ 50
6.3.7 Inquiry .............................................................................................................................................................. 51
6.3.8 Inquiry Cancel .................................................................................................................................................. 51
6.3.9 Extended Inquiry Response Data ..................................................................................................................... 51
6.3.10 Bond or Create Connection .............................................................................................................................. 52
6.3.11 Bond Cancel or Create Connection Cancel ....................................................................................................... 52
6.3.12 UnBond Or Disconnect ..................................................................................................................................... 52
6.3.13 Set Pin Type ................................................................................................ .................................................... 53
6.3.14 Get Pin Type .................................................................................................................................................... 53
6.3.15 User Confirmation ............................................................................................................................................ 54
6.3.16 Pass Key Request Reply .................................................................................................................................. 54
6.3.17 Pincode Request Reply .................................................................................................................................... 54
6.3.18 Get Local Device Role...................................................................................................................................... 55
6.3.19 Set Local Device Role Or Switch The Role ....................................................................................................... 55
6.3.20 Get Service List................................................................................................................................................ 55
6.3.21 Search Service................................................................................................................................................. 56
6.3.22 Linkkey Reply .................................................................................................................................................. 56
6.3.23 Set SSP Mode ................................................................................................................................................. 57
6.3.24 Sniff Mode ....................................................................................................................................................... 57
6.3.25 Sniff Exit .......................................................................................................................................................... 58
6.3.26 Sniff Subrating ................................................................................................................................................. 58
6.3.27 Add Device ID .................................................................................................................................................. 58
6.4 SPP commands ............................................................................................................................................ 59
6.4.1 SPP Connect ................................................................................................................................................... 59
6.4.2 SPP Disconnect ............................................................................................................................................... 59
6.4.3 SPP Transfer ................................................................................................................................................... 59
6.5 Core Events .................................................................................................................................................. 60
6.5.1 User Linkkey Save ........................................................................................................................................... 60
6.5.2 Auth Complete ................................................................................................................................................. 60
6.5.3 Mode Change .................................................................................................................................................. 60
6.5.4 Disconnected ................................................................ ................................................................................... 61
7 BT Classic Error Codes ....................................................................................................................................... 62
8 BT Power Save Operation .................................................................................................................................... 69
9 BT AT CMD Configuration Changes/Enhancements ......................................................................................... 72
10 Revision History ................................................................................................................................................... 73
11 Appendix A: Sample Flows ................................................................................................................................. 75
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 3 | Page
About this Document
This document describes the Bluetooth (BT) Classic commands, including parameters used in commands, valid values for each command, and expected responses from the modules. This document is also used to write software for host (to control and operate the module).
Note:
This document should be used with WiSeConnect version 2.3.0.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 4 | Page
1 Overview
Architecture
The following figure depicts the software architecture of the RS9116-WiSeConnect:
Figure 1: Architecture Overview for RS9116 WiSeConnect
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 5 | Page
Bluetooth Classic Architecture
Figure 2: Bluetooth Software Architecture
Application
The application layer launches the Bluetooth stack and uses commands to access various profiles on remote Bluetooth devices over the network.
Profiles There are number of Bluetooth profiles defined in the Bluetooth specification. This design currently supports profiles
including Serial Port Profile (SPP), provided framework to develop new profiles very easily. We will continue to add new profiles.
Bluetooth Core The Bluetooth core contains the following higher layers of the stack.
RFCOMM
SDP
L2CAP
HCI Generic Driver
HCI BUS Driver
RFCOMM is a transport protocol based on L2CAP. It emulates RS-232 serial ports. The RFCOMM protocol supports up to 60 simultaneous connections between two BT devices. RFCOMM provides data stream interface for higher level applications and profiles.
SDP (Service Discovery Protocol) provides a means for applications to discover which services are available and to determine the characteristics of those available services. SDP uses an existing L2CAP connection. Further connection to Bluetooth devices can be established using information obtained via SDP.
L2CAP (Logical Link Control and Adaptation Protocol) provides connection-oriented and connection-less data services to upper layer protocols with data packet size up to 64 KB in length. L2CAP performs the segmentation and reassemble of I/O packets from the base-band controller.
HCI Generic Driver – This driver implements HCI Interface standardized by Bluetooth SIG. It establishes the communication between Stack and HCI firmware in the Bluetooth hardware. It communicates with the Bluetooth controller hardware via the HCI Bus driver.
HCI Transport Layer Driver – The Bluetooth controllers are connected to the host using interface like UART, USB, SDIO, SPI, USB-CDC etc. The HCI Transport Layer Driver provides hardware abstraction to the rest of the Bluetooth stack software. This driver makes it possible to use Bluetooth stack with different hardware interfaces.
Bluetooth Profiles are additional protocols that build upon the basic Bluetooth standard to more clearly define what kind of data a Bluetooth module is transmitting. While Bluetooth specifications define how the technology works, profiles define how it's used.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 6 | Page
The profile(s) a Bluetooth device supports determine(s) what application it's geared towards. A hands-free Bluetooth headset, for example, would use headset profile (HSP), while a Nintendo Wii Controller would implement the human interface device (HID) profile. For two Bluetooth devices to be compatible, they must support the same profiles.
OS Abstraction Layer This layer abstracts RTOS services (semaphores, mutexes and critical sections) that are used by the whole stack and
the applications. The stack, which is designed in an RTOS-independent manner, can be used with any RTOS by porting this layer. It is also possible to use the Bluetooth stack standalone without RTOS.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 7 | Page
2 Bootloader
This section briefs about features that are supported by Network and Security Processor (NWP) bootloader. It is applicable for RS9116 WiSeConnect.
Basic Features
Load default firmware
Load selected firmware
Upgrade firmware from host
Selecting default images
Enable / Disable host interaction bypass
Support for multiple host interfaces (SDIO / SPI / UART / USB / USB-CDC)
Firmware integrity check
Upgrading Keys
JTAG selection
The RS9116W module supports two boot loading modes:
1. Host Interaction (Non-bypass) Mode: In this mode host interacts with the bootloader and gives boot up options (commands) to configure different boot up operations. The host tells the module what operations it has to perform based on the selections made by the user.
2. Bypass Mode: In this mode bootloader interactions are completely bypassed and uses stored bootup configurations (which are selected in host interaction mode) & loads default firmware image in the module. This mode is recommended for final production software to minimize the boot up time.
Host Interaction Mode In This mode host interaction varies based on host interface. Host interaction in SPI / USB and UART / USB-CDC are
different. In UART & USB-CDC boot up options are menu based and in SPI / USB using command exchanges. The details are explained below.
Host Interaction Mode in UART / USB-CDC This section explains the host interaction mode in UART / USB CDC mode. Startup Operation After powering up, host is required to carry out ABRD (Auto baud rate detection) operation. After successful ABRD,
the module displays the menu of bootup options to host. The host needs to select the appropriate option.
Note: On powerup, bootloader checks the integrity of the bootup options. If the integrity fails, it computes the integrity from backup. If integrity passes, it copies the backup to the actual location. If the integrity of the backup options also fails, the bootup options are reset/cleared. In either of the cases, bootloader bypass is disabled or corresponding error messages are given to host. In case of integrity failure and when the backup integrity check passes, "LAST CONFIGURATION NOT SAVED" message is displayed. When backup integrity also fails, “BOOTUP OPTIONS CHECKSUM FAILED" is displayed before displaying the bootup options.
Hyper Terminal Configuration RS9116W uses the following UART interface configuration for communication: Baud Rate: The following baud rates are supported by the module: 9600 bps, 19200 bps, 38400 bps, 57600 bps,
115200 bps, 230400 bps, 460800 bps, 921600 bps.
Data bits: 8 Parity: None Stop bits: 1 Flow control: None
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 8 | Page
Follow sequence of steps as given below:
Open Hyper terminal and enter any name in the "Name" field. After this, click "OK" button. Here, "WiSeConnect" is entered as shown in the figure below.
Note: Default baud rate of the module is 115200.
Figure 3: HyperTerminal Name field Configuration
After clicking "OK", the following dialog box is displayed as shown in the figure below.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 9 | Page
Figure 4: HyperTerminal COM Port Field Configuration
In the "Connect using" field, select appropriate com port. In the figure above COM3 is selected. Click "OK" button.
After clicking the "OK" button the following dialog box is displayed as shown in the figure below
Figure 5: HyperTerminal Baud Rate Field Configuration
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 10 | Page
Set the following values for the fields shown in the Figure 6.
Set baud rate to 115200 in "Bits per second" field.
Set Data bits to 8 in "Data bits" field.
Set Parity to none in "Parity" field.
Set stop bits to 1 in "Stop bits" field.
Set flow control to none in "Flow control" field.
Click "OK" button after entering the data in all the fields.
Auto Baud Rate Detection (ABRD) The RS9116W automatically detects the baud rate of the Host's UART interface by exchanging some bytes. The Host
should configure the UART interface for the following parameters for ABRD detection. RS9116W uses the following UART interface configuration for communication:
Baud Rate: The following baud rates are supported: 9600 bps, 19200 bps, 38400 bps, 57600 bps, 115200 bps, 230400 bps, 460800 bps, 921600 bps.
Data bits: 8 Stop bits: 1 Parity: None Flow control: None
To perform ABRD on the RS9116W, the host must follow the procedure outlined below.
1. Configure the UART interface of the Host at desired baud rate.
2. Power on the RS9116W.
3. The Host, after releasing the module from reset, should wait for 20 ms for initial boot-up of the module to complete and then transmit 0x1C at the baud rate to which its UART interface is configured. After transmitting '0x1C' to the module, the Host should wait for the module to transmit 0x55 at the same baud rate.
4. If the '0x55' response is not received from the module, the host has to re-transmit 0x1C, after a delay of 200ms.
5. After finally receiving '0x55', the host should transmit '0x55' to the module. The module is now configured with the intended baud rate.
Note: Performing ABRD in host interaction mode is must for USB CDC mode.
Figure 6: ABRD Exchange Between Host And Module
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 11 | Page
Below are the boot-up options, Firmware upgrade and Firmware loading procedures for WiSeConnect Product.
Start Up Messages on Power-Up After powering up the module and performing ABRD you will see a welcome message on host, followed by boot up
options:
Note: Windows Hyper Terminal is used to demonstrate boot up /up-gradation procedure.
Figure 7: RS9116-WiSeConnect Module UART/USB-CDC Welcome Message
Loading the default wireless firmware in the module
To load the default firmware flashed onto the module, choose Option 1: "Load Default Wireless Firmware ". Load Default Wireless Firmware
After welcome message is displayed as shown in the above figure, select option 1 "Load Default Wireless Firmware " for loading Image.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 12 | Page
Figure 8: RS9116-WiSeConnect Module UART / USB-CDC Default Firmware Loaded
Note:
By default, the module will be configured in AT mode. If mode switch from AT plus command mode to binary mode is required, then user must give 'H' in the boot-loader options. The module lasts in the binary mode unless it changed to AT plus command mode and vice-versa. To change from binary mode to AT mode, then user must give 'U' in the boot-loader options.
Loading selected Wireless Firmware in the Module To load the selected firmware (from flash) onto the module, choose Option A: "Load Wireless Firmware (Image No: 0-
f)". Load Wireless Firmware
After welcome message is displayed as shown in the above figure, select option A "Load Wireless Firmware (Image No: 0-f)" for loading Image.
In response to the option A, Module ask to Enter Image No.
Select the image number to be loaded from flash.
After successfully loading the default firmware, "Loading Done" message is displayed.
After firmware loading is completed, module is ready to accept commands
Note:
1. In order to use host bypass mode, the user has to select one of the images as default image by selecting option 5 (Select Default Wireless Firmware).
2. In Host interaction mode, if no option is selected after bootup menu for 20 seconds then the bootloader will load selected Wireless default image.
3. If the valid firmware is not present, then a message prompts "Valid firmware not present".
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 13 | Page
Firmware Upgradation After powering up the module, a welcome message is displayed.
Upgrade NWP firmware Image
After the welcome message is displayed, select option B "Burn Wireless Firmware (Image No: 0-f)" to upgrade Wireless Image.
The message "Enter Wireless Image No (0-f)" is displayed.
Then select the Image no to be upgraded.
The message "Send RS9116.NBZ.WC.GENR.x.x.x.rps" should appear as shown in the figure below.
Figure 9: RS9116-WiSeConnect Module Firmware Upgrade File Prompt Message
In the "File" menu of HyperTerminal, select the "send file" option. A dialog box will appear as shown in the figure below. Browse to the path where "RS9116.NBZ.WC.GENR.X.X.X.rps" is located and select Kermit as the protocol option. After this, click the "Send" button to transfer the file.
If the valid firmware is not present, then a message prompts "Valid firmware not present".
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 14 | Page
Figure 10: RS9116-WiSeConnect Module Firmware Upgrade File Selection Message
The dialog box message is displayed while file transfer is in progress as shown in the figure below.
Figure 11: RS9116-WiSeConnect Module Firmware Upgrade File Transfer Message
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 15 | Page
After successfully completing the file transfer, module computes the integrity of the image and displays "Upgradation Failed, re-burn the image" in the case of failure and "Upgradation Failed and default image invalid, Bypass disabled" in the case of both failure and corruption of the default image.
In the case of success, module checks if bootloader bypass is enabled and computes the integrity of the default image selected. If the integrity fails, it sends "Upgradation successful, Default image invalid, gpio bypass disabled." If integrity passes or gpio bypass not enabled, it sends "Upgradation Successful" message on terminal as shown in the figure below.
Figure 12: RS9116-WiSeConnect Module Firmware Upgrade Completion Message
At this point, the upgraded firmware Image is successfully flashed to the module.
User can again cross check the integrity of the Image by selecting the Option K " Check Wireless Firmware
Integrity (Image No : 0-f)" for Wireless Image.
Follow the steps mentioned in Loading the Default Wireless Firmware in the Module to load the firmware from flash, select Option 1 from the above the Figure.
The module is ready to accept commands from the Host.
Bypass Mode in UART / USB-CDC Making Default Wireless Firmware Selection
With this option, the host can select the default firmware image to be loaded. Selecting a valid Image as the Default Image
After the welcome message is displayed, user can select option 5 "Select Default Wireless Firmware ( Image No: 0-f )".
The message "Enter Wireless Image No. ( 0-f )" is displayed.
Then select the Image number
It is better to check the Integrity of Image before selecting it as Default Image.
When default image is selected, module checks for the validity of the image selected and displays "Configuration
saved".
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 16 | Page
Figure 13: Making Image no - 0 as Default Image
Enable/Disable GPIO Based Bypass Option
This option is for enabling or disabling the GPIO bootloader bypass mode. Enabling the GPIO Based Bypass Mode If user select option 7, GPIO based Bootloader bypass gets enabled. When this option is selected, module checks for
the validity of the image selected and displays "Configuration saved" if valid and "Default image invalid" if valid default image is not present. Once enabled, from next bootup, Bootloader will latch the value of UULP_GPIO_2. If asserted, it will bypass the whole boot loading process and will load the default firmware image selected.
After the welcome message is displayed, user can select option 5 "Select Default Wireless Firmware (Image No: 0-f)".
The message "Enter Wireless Image No. (0-f)" is displayed.
Then select the Image no.
It is better to check the Integrity of Image before selecting it as Default Image.
When default image is selected, module checks for the validity of the image selected and displays "Configuration
saved".
Then select option 7 to "Enable GPIO Based Bypass Mode"
Module responds to select the host interface in Bypass mode (0 - UART, 1 - SDIO, 2 - SPI, 4 - USB, 5 - USB-
CDC)
Select the required interface.
If the default image is valid, then it enables GPIO Bypass mode, otherwise it will not enable the GPIO Bypass
mode.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 17 | Page
Figure 14: Enabling the GPIO-based Bypass Mode a) Valid Default Firmware b) Invalid Firmware
Disabling the GPIO Based Bypass Mode
If host selects option 8, GPIO based bypass gets disabled.
Note: LP_WAKEUP needs to be de-asserted on power up to move to host interaction mode, to select bootup options like disable Bypass mode or to change default image.
Check Integrity of the Selected Image This option enables the user to check whether the given image is valid or not. When this command is given,
bootloader asks for the image for which integrity has to be verified as shown in the figure below.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 18 | Page
Figure 15: Integrity Check Passed
Other Operations
This section contains additional, less frequently used boot-loader options.
Update KEY
Note: This feature is not enabled in current release.
JTAG Selection
Note:
This feature is not enabled in current release.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 19 | Page
3 Host Interfaces
RS9116 WiSeConnect Module supports SPI, USB, UART and SDIO for interfacing to host. This section describes UART interface in detail including the supported features, protocols and commands.
Only UART and USB-CDC interfaces are supported in AT mode.
Note: USB and SDIO interfaces are currently not supported.
3.1 UART Interface
This section describes RS9116-WiSeConnect UART interface, including the commands and processes to operate the module via UART.
UART on the RS9116-WiSeConnect is used as a host interface to configure the module to send data and to receive data.
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:
For baud rates greater than 115200, it is mandatory to enable UART hardware flow control.
Hardware Interface RS9916W uses TTL serial UART at an operating voltage of 3.3V.
Host UART device must be configured with the following settings:
Data bits - 8
Stop bits - 1
Parity - None
Flow control - None
Software Protocol AT+ command mode
This section explains the procedure that the host needs to follow in order to send Wi-Fi commands frames to the module and to receive responses from the module in AT+ command mode.
TX Operation The Host uses TX operations:
1. To send management commands to the module from the Host.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 20 | Page
2. To send actual data to the module which is to be transmitted onto the air.
3. If the host receives error code indicating packet dropped, the host has to wait for a while and send the next command /data.
4. The host should send next data packet only if it receives "OK<number of bytes sent>" response for the previous one.
Rx Operation The RS9116W responds with either an 'OK' or 'ERROR' string, for Management or Data frames along with a result or
error code. The module sends the response/received data to Host in a format as shown below:
Figure 16: RX Frame Format
Note:
If Payload offset is 'x', 'x-4' dummy bytes will be added before Frame Descriptor.
The host needs follow the steps below to read the frame from the Module: Read 4 bytes using Frame read.
1. Decode Total payload length and payload offset.
2. Read remaining payload by sending Frame to read with (total payload length – 4 bytes), discard Dummy bytes and then decode Frame descriptor and Frame Body.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 21 | Page
4 Classic Command Mode Selection
This section describes AT command mode or Binary mode selection in UART and USB-CDC. It is applicable for RS9116 WiSeConnect.
After boot-loader interaction, module gives "Loading Done" string in ASCII format to host. After receiving "Loading Done", based on first command received from host, the module selects command mode. The module reads first 4 bytes, if it matches with "AT+R", select AT command mode, otherwise select Binary mode. Once mode is selected, it will remain in same mode until it is reset or power cycle. There is an option in bootloader to select AT mode or binary mode.
Note: "AT+R" is not case sensitive.
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 22 | Page
5 Classic Command Format
This section explains the general command format. The commands should be sent to the Module in the specified format. It is applicable for RS9116 WiSeConnect. Commands are sent to the module and responses are read from the module using frame write/frame read (as mentioned in the preceding sections). These commands are called as command frames.
The format of the command frames is divided into two parts:
1. Frame descriptor
2. Frame Body (Frame body is often called as Payload)
Frame Descriptor (16 bytes)
Frame Body (multiples of 4 bytes)
Command frame format is shown below. This description is for a Little-Endian System
Figure 17: Command Frame Format
The following table provides the general description of the frame descriptor.
Table 1: Frame Descriptor
Word
Frame Descriptor
Word0 W0[15:0]
Bits [11:0] – Length of the frame Bits [15:12] – 2(indicates Bluetooth packet).
Word1 W1[15:0]
Bits [15:0] - Packet type
Word2 W2[15:0]
Reserved
Word3 W3[15:0]
Reserved
Word4 W4[15:0]
Reserved
Word5 W5 [15:0]
Reserved
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 23 | Page
Word
Frame Descriptor
Word6 W6 [15:0]
1. (0x0000) when sent from host to module.
2. When sent from module to host (as response frame), it contains the status.
Word7 W7 [15:0]
Reserved
Three types of frames will get exchanged between the module and host.
1. Request/Command frames
o These are sent from Host to Module. Each Request/ Command has an associated response with it.
2. Response frames
o These are sent from Module to Host. These are given in response to the previous Request/Command
from the Host. Each command has a single response.
3. Event frames
o These are sent from Module to Host. These are given when there are multiple responses for a particular
Request/ Command frame. This is Asynchronous message to be sent to host.
The following are the types of frame requests and responses and the corresponding codes. The commands are different for both Classic and LE modes. The below table lists the Command, Response and Event frames in Classic mode. In both the modes, the corresponding code is to be filled in W1 [15:0] mentioned in the table above.
Table 2: Command IDs in BT Classic mode
Command
Command ID
Set Local Name
0x0001
Query Local Name
0x0002
Set Local COD
0x0003
Query Local COD
0x0004
Query RSSI
0x0005
Query Link Quality
0x0006
Query Local BD Address
0x0007
Set Profile Mode
0x0008
Set Device Discover Mode
0x0009
Get Device Discover Mode
0x000A
Set Connection Mode
0x000B
Get Connection Mode
0x000C
Set Pair Mode
0x000D
Get Pair Mode
0x000E
Remote Name Request
0x000F
Remote Name Request Cancel
0x0010
Inquiry
0x0011
Inquiry Cancel
0x0012
Bond or Create Connection
0x0013
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 24 | Page
Command
Command ID
Bond Cancel or Create Connection Cancel
0x0014
Unbond or Disconnect
0x0015
Set Pin Type
0x0016
Get Pin Type
0x0017
User Confirmation
0x0018
Passkey Reply
0x0019
Pincode Reply
0x001A
Get Local Device Role
0x001B
Set Local Device Role
0x001C
Get Service List
0X001D
Search Service
0X001E
SPP connect
0X001F
SPP Disconnect
0X0020
SPP Transfer
0X0021
Initialize BT Module
0x008D
Deinitialize BT Module
0x008E
Antenna Select
0x008F
Linkkey Reply
0x0091
PER Transmit
0x0098
PER Receive
0x0099
PER Stats
0x009A
PER CW mode
0x009B
Sniff Mode
0x009D
Sniff Exit
0x009E
Sniff Subrating
0x009F
Feature Bit map
0x00A6
Set Antenna Tx Power Level
0x00A7
AFH channel Classification
0x00D2
Set SSP mode
0x00A0
Set EIR data
0X00A9
A2DP Connect
0x0022
A2DP Disconnect
0x0023
A2DP Start
0x00CE
A2DP Suspend
0x00CF
A2DP PCM Data
0x00D0
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 25 | Page
Command
Command ID
A2DP SBC Data
0x00D1
AVRCP Connect
0X0024
AVRCP Disconnect
0X0025
AVRCP Play
0X0026
AVRCP Pause
0X0027
AVRCP Stop
0X0028
AVRCP Next
0X0029
AVRCP Previous
0X002A
HFP Connect
0x002D
HFP Disconnect
0x002E
HFP Phone operator
0x002F
HFP Call accept
0x0030
HFP Call reject
0x0031
HFP Dial number
0x0032
HFP Dial member
0x0033
HFP Redial
0x0034
HFP Voice Recognition Active
0x0035
HFP Voice Recognition Deactive
0x0036
HFP Speak Gain
0x0037
HFP Mic Gain
0x0038
HFP Get Calls
0x0039
HFP Audio
0x003A
PBAP Connect
0x003B
PBAP Disconnect
0x003C
PBAP Contacts
0x003D
Set AFH Channel Classification
0x00D2
AVRCP Get Capabilities
0x00D3
AVRCP Get Attributes List
0x00D4
AVRCP Get Attributes Values List
0x00D5
AVRCP Get Current Attribute Value
0x00D6
AVRCP Set Current Attribute Value
0x00D7
AVRCP Get Element Attributes
0x00D8
AVRCP Get Play Status
0x00D9
AVRCP Get Register Notification
0x00DA
AVRCP Get Version
0x00DB
RS9116W BT Classic AT Command Programming Reference Manual
Version 2.1
silabs.com | Building a more connected world. 26 | Page
Command
Command ID
AVRCP Get Attribute Tex
0x00DC
AVRCP Get Attribute Value Text
0x00DD
AVRCP Get Battery Status
0x00DE
AVRCP Get Character Sets
0x00DF
AVRCP Capabilities Response
0x00E0
AVRCP Attributes List Response
0x00E1
AVRCP Attributes Values List Response
0x00E2
AVRCP Get Current Attributes Values List Response
0x00E3
AVRCP Set Current Attributes Values List Response
0x00E4
AVRCP Get Element Attributes Response
0x00E5
AVRCP Get Play Status Response
0x00E6
AVRCP Get Register Notification Response
0x00E7
AVRCP Get Attribute Text Response
0x00E8
AVRCP Get Attribute Value Text Response
0x00E9
AVRCP Get Battery Status Response
0x00EA
AVRCP Get Character Sets Response
0x00EB
AVRCP Notification
0x00EC
AVRCP CMD Reject
0x00ED
Add Device ID
0x00EE
A2DP Get Config
0x00FE
A2DP Set Config
0x00FF
Note: A2DP, AVRCP and HFP command IDs are currently not supported.
Table 3: Response IDs in BT Classic Mode
Response
Response ID
Set Local Name
0x0001
Query Local Name
0x0002
Set Local COD
0x0003
Query Local COD
0x0004
Query RSSI
0x0005
Query Link Quality
0x0006
Query Local BD Address
0x0007
Set Profile Mode
0x0008
Set Device Discover Mode
0x0009
Get Device Discover Mode
0x000A
Loading...
+ 59 hidden pages