XBee control