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!
SDIO interface is currently not supported.
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#
Parameter | Setting |
---|---|
Baud rates |
|
Data bits |
|
Parity |
|
Stop bits |
|
Flow control |
|
Note!
It is mandatory to enable UART hardware flow control for baud rates greater than 115200.
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:
To send management commands to the module from the Host.
To send actual data to the module which is to be transmitted onto the air.
If the host receives error code indicating packet dropped, the host has to wait for a while and send the next command /data.
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:
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:
Read 4 bytes using Frame read.
Decode Total payload length and payload offset.
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.