BT Host Interfaces

The RS9116 WiSeConnect Module supports SPI, USB, UART, and SDIO for interfacing to the host. This section describes the UART interface in detail, including the supported features, protocols, and commands.


NOTE:

Only UART and USB-CDC interfaces are supported in AT mode.


BT UART Interface

This section describes the RS9116-WiSeConnect UART interface, including the commands and processes to operate the module via UART.

The UART on the RS9116-WiSeConnect is used as a host interface to configure the module to send and receive data.

Features


NOTE:

For baud rates greater than 115200, it is mandatory to enable the UART hardware flow control.


Hardware Interface

The RS9916W uses TTL serial UART at an operating voltage of 3.3 V.

The host UART device must be configured with the following settings:

Software Protocol

AT+ Command Mode

This section explains the procedure that the host needs to follow in order to send BLE command 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.

  2. To send actual data to the module, which is to be transmitted onto the air.

  3. If the host receives an error code indicating packet dropped, the host has to wait for a while and send the next command/data.

  4. The host should send the next data packet only if it receives the "OK <number of bytes sent>" response for the previous one.

RX Operation

The RS9116W responds with either an 'OK' or an 'ERROR' string, for Management or Data frames along with a result or error code.

The module sends the response/received data to the Host in a format as shown below:

Figure 1 - RX Frame Format


NOTE:

If the Payload Offset is 'x', 'x-4' dummy bytes will be added before the Frame Descriptor.


The host should follow the steps below to read the frame from the Module:

  1. Read 4 bytes using Frame read.

  2. Decode Total payload length and payload offset.

  3. 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.