Use the console to communicate with your device
Another extension of the plugin is the console, which you can use it to communicate and interact with your Digi device. Depending on your target platform, you can use:
-
XBee REPL console for XBee modules
-
SSH console for other Digi devices such as gateways, routers or ConnectCore modules.
XBee REPL console
Use this console to communicate with XBee devices connected to your computer—if they are in MicroPython mode—see the output of a running application, perform quick tests and upload code to flash.
To work with the REPL console:
-
Click XBee REPL Console in the Tool Window bar or go to Digi > Open REPL Console.
- Click the Connect button
. - If you did not select your XBee device before, choose one from the list of discovered devices and click OK.
Note If your XBee device has a special serial port configuration and does not appear on the list, click the Discovery settings button
and specify its serial configuration.
- If the selected device is not working in MicroPython mode, a dialog asks you to enable it. Click Yes.
Once connected, you can send any command to the device. It evaluates the input and returns a result.
Note For more information about the available commands on the REPL console, see REPL (Read-Evaluate-Print Loop) examples.
Click
to disconnect the console,
to discover new XBee devices, or
to clear the contents of the console.
Digi SSH console
Use this console to communicate with Digi devices over SSH and execute commands remotely.
Note Your device must have the SSH service enabled and be on the same network as the computer.
To work with the SSH console:
-
Click Digi SSH Console in the Tool Window bar or go to Digi > Open Digi SSH Console.
-
Click the Connect button
. -
If you did not select your Digi device before, choose one from the list of discovered devices and click OK.
-
If you did not enter your device credentials, a dialog asks you to enter them. Type the device user and password and click OK.
Once connected, you can execute any command in the device.
Click
to disconnect the console,
to discover new devices, or
to clear the contents of the console.
PDF
