orpheconsoleVersion 1.0.3

OrpheConsole Quick Examples

OrpheConsole

OrpheConsole Quick Examples

This chapter provides common examples for operating and connecting to an OrpheConsole device, including serial console access, SSH, file transfer, and remote service access through OrpheLink.

Environment

  1. An OrpheConsole device.
  2. A device under test (DUT) with an RJ45 management port or serial port.
  3. The OrpheConsole must be powered on and connected to the DUT through Ethernet or a serial interface.

OrpheConsole connected to a DUT

Command Reference

OrpheConsole command reference

Additional OrpheConsole command reference

Check Available Serial Ports

Confirm which serial device is available:

/dev/ttyUSB

Check the available serial device

Connect to the DUT Through Serial

Connect with the default baud rate:

serial /dev/ttyUSB0

To specify a baud rate, append it to the command:

serial /dev/ttyUSB0 115200

Connect to the DUT through a serial port

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

Operate the connected DUT

To exit the serial session and return to the host terminal prompt, press Ctrl+J.

Connect to OrpheConsole Through SSH

Use SSH to access OrpheConsole. The source document provides the following command and default password:

OrpheConsole default SSH account information

ssh Account

Default password:

password

Sign in to OrpheConsole through SSH

!WARNING TODO: The source command uses Account but does not provide a complete SSH destination in text. Confirm the required username and host before publishing.

!TIP SSH can provide faster configuration and automation than the serial console.

Transfer Files Through SFTP

Install the SFTP client package on OrpheConsole:

opkg update
opkg install openssh-sftp-client

Install the OpenSSH SFTP client

Then initiate the transfer from the local PC as shown below.

Transfer a file from the local PC

Connect to the DUT through its serial port and confirm that the transferred file was received and saved on the device. Use ls to verify that the file appears in the target directory, such as /tmp.

Verify the transferred file on the DUT

Transfer Files to the DUT with SCP

The following example uploads a file such as test.txt from the PC to the DUT.

Prepare a file for SCP transfer to the DUT

Transfer the file to the DUT with SCP

Transfer Files from the DUT to OrpheConsole

Use SCP to transfer files from the DUT to a specified directory on OrpheConsole.

Run SCP on the DUT

Confirm the file on OrpheConsole

!WARNING TODO: The source document shows the SFTP and SCP commands only in screenshots. Add accessible text commands after their exact values have been confirmed.

Use OrpheLink's Jump to Service feature to access a service running on a device connected to OrpheConsole, 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.

Configure port forwarding with socat

  1. Sign in to OrpheLink and click Inventory.
  2. Click the device name.
  3. Open Setting.
  4. Select the Jump to Service settings.
  5. Click Add to add a service.
  6. Click the save icon.
    Configure Jump to Service
  7. Select Client-Web-UI from the Jump to Service list.
    Select Client-Web-UI

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

Access the DUT LuCI Web UI through OrpheLink

We use necessary cookies to keep the website working. With your permission, we also use analytics cookies to understand how the site is used. Read our Cookie Policy