Quick Examples
OrpheConsole
Quick Examples
This chapter introduces common OrpheConsole operations, including connecting to a device under test (DUT) through a serial console, using SSH, transferring files, and accessing services remotely through OrpheLink.
Environment
- An OrpheConsole device.
- A device under test (DUT) with an RJ45 management port or serial port.
- The OrpheConsole must be powered on and connected to the DUT through Ethernet or a serial interface.

Command Reference


Check Available Serial Ports
Check the available serial devices on the system:
/dev/ttyUSB

Connect to the DUT Through Serial
On OrpheConsole, connect to the DUT with the default baud rate:
serial /dev/ttyUSB0
To specify the serial communication rate (baud rate), append a value such as 115200 to the command:
serial /dev/ttyUSB0 115200

After connecting successfully, you can operate the DUT through OrpheConsole.

To exit the serial session and return to the host terminal prompt, press Ctrl+J.
Connect to OrpheConsole Through SSH
On OrpheConsole, run the following SSH command and enter the default password:
Default password:
password

!TIP Compared with the serial console, SSH supports faster configuration and automation.
Transfer Files Through SFTP
To use SFTP on OrpheConsole, you can first install the SFTP client package:
opkg update
opkg install openssh-sftp-client

On your own computer, open a terminal and run this SFTP command to connect to the DUT (192.168.2.165):
sftp [email protected]
After transferring the file, connect to the DUT through its serial port and use ls to confirm that the file is saved in the destination directory, such as /tmp.

Transfer Files to the DUT with SCP
The following example transfers test.txt from the local PC to the DUT at 192.168.2.165.
scp test.txt [email protected]:/tmp/

Transfer Files from the DUT to OrpheConsole
On OrpheConsole, use SCP to transfer a file from the DUT (192.168.2.165) to OrpheConsole's current directory.
scp [email protected]:/home/oprueba/test.txt ./

Access the DUT Remotely Through OrpheLink
In this example, OrpheConsole forwards port 8085 to port 80 on the DUT (192.168.2.165), then Jump to Service in OrpheLink provides access to a service on the DUT, such as the OpenWrt LuCI Web UI.
1. Install the Required Packages
On OrpheConsole, install socat and screen:
opkg install socat
opkg install screen
2. Start a Screen Session and Forward the Port
screen -S socat
Within the session, run:
socat TCP-LISTEN:8085,reuseaddr,fork TCP4:192.168.2.165:80
This forwards OrpheConsole port 8085 to DUT port 80, assuming that the DUT Web UI runs on port 80.

3. Configure Jump to Service in OrpheLink
- Sign in to OrpheLink and click Inventory.
- Click the device name.
- Open Setting.
- Select the Jump to Service settings.
- Click Add to add a service.
- Click the save icon.

- Select Client-Web-UI from the Jump to Service list.

You can now access the DUT's OpenWrt LuCI Web UI remotely through OrpheLink.
