View device data from the XBee Gateway web interface

To access the python.log file from the XBee Gateway web interface:

  1. Access the web interface and log using the default user name and password. If these defaults do not work, the password may have been updated. Contact your system administrator for help.

    • User name: python
    • Password: The unique, default password is printed on the device label. If the password is not on the device label, the default password is dbps.
  2. Click System Log under Administration.
  3. Select python.log from the Select Log File menu and click Get File. The python.log file appears. Events in the log file that may be of note include:

    • Serial or I/O data arriving from an XBee node on your RF network
    • An RCI command received from Remote Manager
    • Attempts to upload data to Data Streams in Remote Manager
    • Errors and warnings during execution for debugging and diagnostics
  4. The page does not refresh automatically, so when you want to ensure that the data is up to date, click Refresh.

    The following example shows the python.log file for an XBee Gateway with an XBee node configured for digital and analog I/O:

    Example of the python.log file for an XBee Gateway with an XBee node configured for digital and analog I/O

    In this log file excerpt:

    • These lines show that the XBee Gateway application has started up successfully:

      Aug  4 19:44:06 (none) local7.info pylog: 2014-08-04 19:44:06,804 INFO root: XBGW App Version: 1.1.0b2

      Aug 4 19:44:06 (none) local7.info pylog: 2014-08-04 19:44:06,860 INFO xbgw.xbee.manager: Initializing XBeeEventManager

      Aug 4 19:44:06 (none) local7.info pylog: 2014-08-04 19:44:06,934 INFO xbgw.xbee.ddo_manager: Initializing DDOEventManager

      Aug 4 19:44:07 (none) local7.info pylog: 2014-08-04 19:44:07,030 INFO xbgw.reporting.device_cloud: Initializing DeviceCloudReporter

      Aug 4 19:44:07 (none) local7.info pylog: 2014-08-04 19:44:07,072 INFO xbgw.command.rci: RCICommandProcessor initialized
    • These lines show a digital I/O reading received by the XBee Gateway application:

      Aug  4 19:47:38 (none) local7.info pylog: 2014-08-04 19:47:38,524 DEBUG xbgw.xbee.manager: Received frame from ('[00:13:A2:00:40:9F:6F:CB]!', 0xe8, 0xc105, 0x92, 0x1, 0x0)

      Aug 4 19:47:38 (none) local7.info pylog: 2014-08-04 19:47:38,542 DEBUG xbgw.xbee.manager: Processing IO sample from pin DIO12

      Aug 4 19:47:38 (none) local7.info pylog: 2014-08-04 19:47:38,554 DEBUG xbgw.xbee.manager: Digital reading: 0
    • These lines show an analog I/O reading received by the XBee Gateway application:

      Aug  4 19:47:38 (none) local7.info pylog: 2014-08-04 19:47:38,610 DEBUG xbgw.xbee.manager: Processing IO sample from pin AD3

      Aug 4 19:47:38 (none) local7.info pylog: 2014-08-04 19:47:38,620 DEBUG xbgw.xbee.manager: Analog data: 780
    • These lines show six data points uploaded to Remote Manager:

      Aug  4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,207 INFO xbgw.reporting.device_cloud: Uploading data to DataPoint/upload.csv
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,220 DEBUG xbgw.reporting.device_cloud: stream_id: xbee.analog/[00:13:A2:00:40:9F:6F:CB]!/AD1
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,230 DEBUG xbgw.reporting.device_cloud: data: ('xbee.analog/[00:13:A2:00:40:9F:6F:CB]!/AD1', 426, {})
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,238 DEBUG xbgw.reporting.device_cloud: stream_id: xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO4
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,245 DEBUG xbgw.reporting.device_cloud: data: ('xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO4', True, {})
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,263 DEBUG xbgw.reporting.device_cloud: stream_id: xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO6
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,280 DEBUG xbgw.reporting.device_cloud: data: ('xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO6', True, {})
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,288 DEBUG xbgw.reporting.device_cloud: stream_id: xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO7 Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,300 DEBUG xbgw.reporting.device_cloud: data: ('xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO7', False, {})
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,308 DEBUG xbgw.reporting.device_cloud: stream_id: xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO0
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,324 DEBUG xbgw.reporting.device_cloud: data: ('xbee.digitalIn/[00:13:A2:00:40:9F:6F:CB]!/DIO0', True, {})
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,332 DEBUG xbgw.reporting.device_cloud: stream_id: xbee.analog/[00:13:A2:00:40:9F:6F:CB]!/AD2
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,337 DEBUG xbgw.reporting.device_cloud: data: ('xbee.analog/[00:13:A2:00:40:9F:6F:CB]!/AD2', 780, {})
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,354 INFO xbgw.reporting.device_cloud: Upload contains 6 datapoints
      Aug 4 19:47:44 (none) local7.info pylog: 2014-08-04 19:47:44,526 INFO xbgw.reporting.device_cloud: Upload successful