How to do analog and digital sampling with XBee?

How to do analog and digital sampling with XBee?

Open X-CTU with an API XBee connected. The remote XBee must have at least one input defined in order for a sample to be taken. For example D1=2, D2=2, D3=3 will give you two Analog and one digital values. Open the terminal tab and open the serial connection.

How are I / O lines used in XBee radios?

XBee radios have multiple I/O lines that can be used to gather Digital or Analog data, then transmit that data to another XBee for interpretation. Because sample data is always provided in an API format, it can be intimidating trying to understand the received sample frame even with an understanding of other XBee API frames.

What are the pull up resistors on a XBee radio?

All XBee radios have pull-up resistors on the I/O and other lines. The pull-up resistors are enabled on every pin by default, but can be disabled or enabled using the PR parameter. Some XBees have the option to use pull-down resistors instead, the PD parameter is used to determine the direction of the resistor, whether it is a pull-up or pull-down.

How is a remote response frame generated in XBee?

An AT Command Response frame (0x97) is generated and is sent over-the-air back to the local radio, this contains all of the sample data. This is the format of the Remote AT Command frame that needs to be passed into the local radio: Example:This frame can be generated using the latest version of XCTU.

How is the XBee interfaceable with other devices?

The XBee is interfaceable with other devices using serial and SPI pin. Take an Arduino as an Example. In Arduino just connect the module with the device through DIN and DOUT pins then send and receive the data using the following command. This is a simplistic connection diagram of the S2C – RF Module with Arduino.

What does the pin on sleep do on XBee?

This pin acts as a GPIO pin but it can also help in SPI communication for data input of XBee. This pin act as an indicator of RS232 communication to clear about the flow control. The pin ON_SLEEP helps to check the status of the XBee.

Which is the data output pin on XBee S2C?

Pin4 is the data output pin for SPI communication. The pin is also useable for simple GPIO functions. This pin will help to reset the device through an external signal. This pin act as GPIO and Pulse width modulation. It’s a no connections pin. This pin controls the sleep line of the module XBee S2C. It also acts as a GPIO function.