Receive serial data from Remote Manager

In some scenarios, you can attach an XBee module to a microcontroller that can manage the radio module, configure it, process data reported by the module, and execute actions. In those cases, the combination of XBee module and microcontroller can use a custom communications protocol transmitted wirelessly from an XBee network node to the target XBee node, and via serial from the target XBee node to the microcontroller to which it is attached.

The XBee Gateway Python application allows sending a serial data packet through Remote Manager, using the Web Services API, to a specific XBee module or all XBee modules in the network that will be transmitted through its serial interface. That serial packet can contain any data, including the custom protocol that your XBee module and microcontroller use to communicate between them. The following figure demonstrates the process for receiving serial data from Remote Manager.

To send serial data to one of the XBee nodes on your network through Remote Manager, you need to use the Remote Manager Web Services API. In this case, you need to send a POST command containing a Server Command Interface (SCI) request to Remote Manager. The SCI request in turn contains a Remote Command Interface (RCI) do_command element, with xbgw as target attribute and the send_serial command as content. To learn more about SCI requests, the RCI protocol, and the Web Services API, see the Digi Remote Manager Programmer Guide.