Store serial data in Remote Manager

As explained in Receive serial data from Remote Manager, when your XBee device is connected to a microcontroller and you want to send serial data to it, you can do so through Remote Manager by using the Web Services API and the send_serial command. The XBee Gateway Python application stores serial data sent from the microcontroller to the XBee Gateway device and from the XBee Gateway device to XBee Gateway running the XBee Gateway Python application.

Store serial data in Remote Manager when you want to:

End-user applications can retrieve the serial data from Remote Manager later to perform some tasks.

Whenever an XBee module on the network sends any kind of serial data to XBee Gateway, the XBee Gateway Python application automatically processes the frame containing the serial data and uploads it to Remote Manager, thereby generating a data stream. To learn more about data streams, see the Digi Remote Manager User Guide and Digi Remote Manager Programmer Guide.

Using the Remote Manager Web Services API, you can retrieve the serial data values from Remote Manager. End user applications can use the serial data for different purposes. For example:

To learn more about the Remote Manager Web Services API, see the Digi Remote Manager Programmer Guide.

By default, the serial data is stored in Remote Manager and encoded in base64 format. The reason behind this is that white spaces are not correctly handled by Remote Manager at the moment. The XBee Gateway Python application has a configuration file containing the settings of the application. One of those settings is the encoding of the serial data prior to store it in Remote Manager.

To change the setting to store the data in UTF-8 format:

  1. Open /WEB/python/xbgw_settings.json in an editor.
  2. Change "encode serial": true to "encode serial": false.

See XBee Gateway Python application configuration file for more information on the configuration file.