Example: Send serial data from an XBee node to XBee Gateway

The following example assumes the microcontroller attached to the XBee device is a computer.

To send a serial data package from an XBee node on your network to XBee Gateway and verify that it has been automatically uploaded to Remote Manager:

  1. Attach one XBee node from your network to an XBIB device and connect it to your computer using a serial or USB cable. This is the node that will send the serial data to XBee Gateway.
  2. Open XCTU. Add the XBee node that is connected to your computer to the list of radio modules.
  3. Once XCTU has started and your XBee node is added to the list, select the node and click the Consoles working mode Consoles working mode icon tab. The Console log window appears and displays the XBee node’s serial console.

  4. Connect the console.
  5. Depending on the working mode (API or AT) of the XBee device, choose one of the following options.

    • AT mode:

      1. Click the Add new packet button and paste the following text in the dialog:

        Hello, World!
      2. Once the packet is added to the list of packets, select it and click the Send selected packet button.

    • API mode:

      1. Click the Add new frame Add new frame icon button.
      2. Paste the following text in the dialog:

        7E 00 1B 10 01 00 00 00 00 00 00 00 00 FF FE 00 00 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 88

        The previous text is a Transmit Request frame. You can also generate it by yourself by clicking the Edit frame using the Frames Generator tool button:

        Fames Generator tool button

      3. After adding the frame to the list of frames, select the frame and click the Send selected frame button.
  6. From a web browser, log in to Remote Manager.

  7. Click Data Services and then click Data Streams. The Data Streams page appears and displays all the data streams (data channels) by the XBee nodes that are registered to your account on your network that reported data. The streams follow this pattern:

    [device_id]/[source]/[xbee_mac]{/[dio_number]}

    Where:

    • [device_id] Is the ID of your XBee Gateway.

    • [source] Is the source of the data. Legal values are:

      • xbee.digitalIn

      • xbee.analog

      • xbee.serialIn

    • [xbee_mac] Is the MAC Address of the XBee node that reported the data in the following format:

      [XX:XX:XX:XX:XX:XX:XX:XX]!
    • [dio_number] Is the name of the DIO that generated the data. This is only present if the [SOURCE] is xbee.digitalIn or xbee.analog.

      One of the streams displayed should correspond to the serial data of your XBee device. For example:

      00000000-00000000-00409DFF-FF5C388D/xbee.serialIn/[00:13:A2:00:40:31:A8:E1]!

      Click that serial data stream. Observe how the latest serial data value corresponds to the following text:

      SGVsbG8sIFdvcmxkIQ==

      This serial data value is Hello, World! encoded in base64.