This view allows you to communicate with your local XBee module over the serial interface.

Layout

The XBee Console view is organized into the following main areas:

Toolbar

Located at the top of the view, it contains the following elements:

Console toolbar
  • Open/Close connection button: Toggles the connection state between connected and disconnected.

    By default, it is disconnected.

  • Serial port line status indicator: Displays the status of the RS-232 hardware flow control lines.

    Green indicates an asserted line, while white indicates a de-asserted line.

    You must open the console connection to display the line status and enable the line status control.

    Serial port line status indicator
    Serial port line status indicator disabled

    You can view and manage the following lines from the line status indicator:

    Line ID Line name Description

    CTS

    Clear to send

    Indicates that the connected device is ready to accept data.

    CD

    Carrier detect

    Detects the presence of connection.

    DSR

    Data set ready

    Indicates that the connected device is ready for communication.

    DTR

    Data terminal ready

    Indicates that the terminal is ready for communication.

    RTS

    Ready to send

    Requests that the connected device prepare to receive data.

    BRK

    Break

    Engages the serial line break. Asserting this line places the DI line high, preventing data from being sent to the radio.

  • Connection indicator: Shows connection details.

    Depending on the connection type, this information includes:

    • The icon of a serial connection, the port name, and the rest of the serial port parameters of the connection and operating mode of the device.

      Serial connection indicator
    • The icon of a Digi Remote Manager® connection, the Digi Remote Manager® account the device is registered into, and the Device ID of the device.

      Digi Remote Manager® connection indicator

Console log

This is the main section of the view.

By default, the console log is disabled until a connection with the device is established. Once connected, the console becomes active and the caret starts blinking.

In the top-right corner you can see the following buttons:

Button Name Description

Load console session button

Load console session

Imports a console session .log file into the console log control.

Save console session button

Save console session

Saves the sent and received data from the current console session.

With this feature, both raw data and API frames are exported to a .log file that can later be imported using Load console session.

Scroll lock button

Scroll lock

Enables/disables the scroll lock functionality of the console log control.

Clear log button

Clear log

Erases the contents of the console log.

Send data control

Expandable panel that slides up when clicked, displaying the controls used to create and reorder raw data packets or API frames to be sent to the current device.

Click it again to collapse the panel and hide its contents.

Send data control
  • Data packets table: Displays the raw data packets or API frames to be sent to the current device.

    You can select one or more packets from the table and send them at any time.

    Each row represents a packet and includes a Sequence checkbox in the first column to mark the packets that belong to the send sequence. The last column contains a Send button (Send packet button) to transmit that specific packet individually.

    A set of buttons in the top-right corner allows you to manage the table contents:

    Button Name Description

    Add new packet button

    Add new packet

    Adds a new raw data packet or API frame to the list.

    Remove selected packet button

    Remove selected packet

    Deletes the selected packet from the table.

    Edit selected packet button

    Edit selected packet

    Edits the name or contents of the selected packet.

    Load packets list button

    Load packets list

    Imports a previously saved list of packets.

    Save packets list button

    Save packets list

    Exports the current list of packets for future sessions or for use on another computer.

    Clear packets list button

    Clear packets list

    Removes all packets from the table.

  • Send sequence (x/y) button: Sends all packets marked in the Sequence column, in the order they appear in the table. The label indicates how many packets are selected (x) out of the total number of packets in the table (y). This button is enabled only when at least one packet or API frame is part of the sequence.

  • Configure the packets sequence send interval button: Opens a popup that allows you to configure how the packet sequence is sent. It contains the following fields:

    Configure the packets sequence dialog
    • Transmit interval: Defines the amount of time to wait between each packet transmission. The default value is 500 ms.

    • Repeat sequence: Lets you choose whether to repeat the sequence continuously or a specific number of times. By default, the sequence is sent only once.

Start a console session

By default, when you first open the device console, it is disconnected. This is indicated by the gray background of the console log and the disabled serial port status indicator.

  1. Click Open to establish communication with the device.

    After the connection is established, the button icon changes to the connected state and the serial port status line and the console log controls are enabled.

  2. At this point, all incoming data packets or API frames, if any, are captured and displayed in the console log control.

Inspect the console log data

Once the connection is established, all incoming data is logged in the console log. The log displays both raw data and API frames in the same view.

  • If data is raw, for example, when working in command mode with the device or sending or receiving data when the device is in AT mode, it is displayed as follows:

    Raw data console log
  • And if data comes in frame format, for instance, when working in API or API2 modes, each frame is represented as a box containing the frame type, the content of the frame in hexadecimal format and the time when it was logged:

    Frame format console log

This view is the same for both types of packets—raw or API frames. For example, if your module is working in API mode but you were configuring it or reading data using command mode when a packet arrives or when you decide to send a frame, it all gets represented without changing the view:

Packet details

Also, you can see the decoded content of each frame by clicking on it. When you click on a frame box, the packet details viewer slides in from the right to occupy part of the layout. This allows you to see the console log while inspecting each packet individually.

Send packets

The type of packet you can create and send depends on the operating mode of your device.

You can send data byte by byte, or you can send a set of bytes—a data packet. To send a data packet, you must first create one. By default, the data packets list is empty.

  1. Click the Send data section to expand it.

    Send data section
  2. Click Add new packet in the Send data section. The Add a data packet popup appears:

    Add packet dialog
  3. Enter the name of the data packet to be added to the list.

  4. Paste or type in your data. You can use the tabs to toggle between ASCII and HEX input views.

    Add packet ASCII dialog
  5. Click Add packet. The popup is closed and the data packet appears in the table of packets.

    Repeat the process to add more packets to the list.

    Packets table
  6. When finished, you can send a single packet or a sequence of packets.

You can send data in an API frame. An API frame is the structured data sent and received through the serial interface of the radio module when it is configured in API or API escaped operating modes. API frames are used to communicate with the module or with other modules in the network. To send an API frame, you must first create one.

  1. Click the Send data section to expand it.

    Send data section
  2. Click Add new packet in the Send data section. The Add a data packet popup appears:

    Add API frame dialog
  3. Enter the name of the frame to be added to the list.

  4. Create a frame by doing one of the following:

    • Paste or type in the byte array of the API frame.

    • Use the API frames generator functionality:

      1. Click Create an API frame to expand the API frames generator control.

      2. Fill out the required fields to generate the frame.

        Create API frame dialog
  5. Click Add packet. The popup is closed and the API frame appears in the table of packets. Repeat the operation to add additional frames to the list.

    Packets table with API frame
  6. When finished, you can send a single frame or a sequence of frames.