Serial Interface; Serial Receive Buffer; Serial Transmit Buffer; Uart Data Flow - Digi XBee3 DigiMesh 2.4 User Manual

Rf module
Hide thumbs Also See for XBee3 DigiMesh 2.4:
Table of Contents

Advertisement

Serial communication

Serial interface

The XBee3 DigiMesh RF Module interfaces to a host device through a serial port. The device can
communicate through its serial port:
Through logic and voltage compatible universal asynchronous receiver/transmitter (UART).
n
Through a level translator to any serial device, for example through an RS-232 or USB interface
n
board.
Through SPI, as described in
n

Serial receive buffer

When serial data enters the XBee3 DigiMesh RF Module through the serial port, the device stores the
data in the serial receive buffer until it can be processed. Under certain conditions, the device may
receive data when the serial receive buffer is already full. In that case, the device discards the data.
The serial receive buffer becomes full when data is streaming into the serial port faster than it can be
processed and sent over the air (OTA). While the speed of receiving the data on the serial port can be
much faster than the speed of transmitting data for a short period, sustained operation in that mode
causes the device to drop data due to running out of places to put the data. Some things that may
delay over the air transmissions are address discovery, route discovery, and retransmissions.
Processing received RF data can also take away time and resources for processing incoming serial
data.
If the UART is the serial port and you enable the CTS flow control, the device alerts the external data
source when the receive buffer is almost full. The host delays sending data to the device until the
module asserts CTS again, allowing more data to come in.

Serial transmit buffer

When the device receives RF data, it moves the data into the serial transmit buffer and sends it out
the UART. If the serial transmit buffer becomes full and the system buffers are also full, then it drops
the entire RF data packet. Whenever the device receives data faster than it can process and transmit
the data out the serial port, there is a potential of dropping data.

UART data flow

Devices that have a UART interface connect directly to the pins of the XBee3 DigiMesh RF Module as
shown in the following figure. The figure shows system data flow in a UART-interfaced environment.
Low-asserted signals have a horizontal line over the signal name.
Digi XBee3® DigiMesh 2.4 RF Module User Guide
SPI
communications.
Serial interface
62

Advertisement

Table of Contents
loading

Table of Contents