- iDigi Dia Home
- User
  - Getting Started
  - Dia Concepts
  - Devices
  - Loggers
  - Presentations
  - Services
  - Tracing
- Developer
  - Overview
  - Drivers
  - Loggers
  - Presentations
  - Services
  - Integrating Application
  - Tracing Manager
  - Debugging
  - Specific Considerations
  - API Reference

- Email
- Phone
- Contact us:

### Navigation

- index
- next |
- previous |
- iDigi Dia |
- User Documentation »
- Device Drivers »
- <no title> »
- <no title> »

# XBee XBIB

## Overview

This driver integrates the XBee Interface Board (XBIB) device inside the iDigi Dia framework.

There are two different versions of the XBIB device, the serial (RS 232) and the USB version, but both of them use the same Dia device driver to configure and manage their settings.

## Configuration

A typical XBee XBIB configuration block looks like this:

    - name: xbee_device_manager
      driver: devices.xbee.xbee_devices.xbee_xbib:XBeeXBIB
      settings:
          xbee_device_manager: "xbee_device_manager"
          extended_address: "00:13:a2:00:40:52:2a:60!"
          sleep_ms: 2560
          awake_time_ms: 1000

### Settings

xbee_device_manager (required)
  Name of the XBee_device_manager device declared in the devices section. This device will configure all the XBee devices.
extended_address (required)

  MAC address of the XBee Display’s XBee module.

  Notice that the value must have an exclamation sign at end and is between quotes.

sleep_ms (optional, default: 0)
  Number of milliseconds the Xbee module will be sleeping in each sleep period. Minimum value for this setting is 320 ms, 0 equals no sleep.
led1_source (optional)
  Name of the boolean Dia channel that will represent this XBIB channel (led1). Each time the channel changes its value, the led1 channel will adopt its value turning the physical LED on or off.
led2_source (optional)
  Name of the boolean Dia channel that will represent this XBIB channel (led2). Each time the channel changes its value, the led2 channel will adopt its value turning the physical LED on or off.
led3_source (optional)
  Name of the boolean Dia channel that will represent this XBIB channel (led3). Each time the channel changes its value, the led3 channel will adopt its value turning the physical LED on or off.
awake_time_ms (optional, default: 1500)
  Determines how long (in milliseconds) the XBee module should be awake between each sleep period.

## Channels

sw1 (Get, type: bool)
  This channel represents the status of the XBIB’s user button 1. (True/False)
sw2 (Get, type: bool)
  This channel represents the status of the XBIB’s user button 2. (True/False)
sw3 (Get, type: bool)
  This channel represents the status of the XBIB’s user button 3. (True/False)
sw4 (Get, type: bool)
  This channel represents the status of the XBIB’s user button 4. (True/False)
led1 (Get/Set, type: Boolean)
  Channel to monitor and set XBIB’s user led 1 lighting status. (On/Off)
led2 (Get/Set, type: Boolean)
  Channel to monitor and set XBIB’s user led 2 lighting status. (On/Off)
led3 (Get/Set, type: Boolean)
  Channel to monitor and set XBIB’s user led 3 lighting status. (On/Off)

### Navigation

- index
- next |
- previous |
- iDigi Dia |
- User Documentation »
- Device Drivers »
- <no title> »
- <no title> »