# Host Interfaces

RS9116 WiSeConnect Module supports SPI, 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 interface are supported in AT mode.


Note!


UART Interface

This section describes the 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 also to receive data.

Features

ParameterSetting
Baud rates9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600
Data bits8
ParityNone
Stop bits1
Flow controlNone

Note!


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.

Transmit Operation

The host uses transmit 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 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:

RX Frame Format


Note! If Payload offset is 'x', 'x-4' dummy bytes will be added before 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.