Skip to main content

List Devices

wuji device list discovers devices and probes their connectivity:

The report includes the serial number, device type, handedness, and address. It shows status and firmware version when available. The selected device is marked with >.

Use --no-probe to list discovery results without opening device sessions. The default terminal output omits the Status column. JSON reports unroutable for a device outside the host network subnets, conflict for an IP conflict, or busy for a device visible only through Zenoh. Otherwise, its status is null. Firmware versions may appear if discovery provides them.
wuji devices is an alias for wuji device list --no-probe. wuji ping is an alias for wuji device list. When discovery succeeds, listing without --sn returns exit code 0 even if some devices are unavailable. With --sn, the command returns 0 for a reachable device, 4 for an offline, busy, unroutable, or unprobed device, and 3 for an address conflict. With --no-probe --sn, exit code 0 means discovery found the device without a busy, unroutable, or conflict state. Connectivity has not been tested. wuji ping also accepts the target options below.

Change the Network Address

Use wuji device set-ip to change the IP address of a network-connected WUJI Hand 2 or WUJI Glove. Specify the device with --sn.
Without a port, the command keeps the current data port. The IP must be a unicast host address in a /24 network. Ports must be in 7400–65535, excluding discovery port 50000. This command doesn’t configure a subnet mask or gateway. By default, the command asks for confirmation, saves the address, reboots the device, and waits up to 60 seconds for it at the new address. --no-reboot saves the address for the next reboot without confirmation or an online check. Check status to distinguish an applied change, a save-only result, and cancellation. If the target IP is outside every host interface’s subnet, the command returns 2 before writing. Add -f or --force to configure the device for another network. This check also applies with --no-reboot. --force doesn’t replace the reboot confirmation or --yes. Interactive example (device values and elapsed time vary, transient progress is omitted):

Reboot a Device

Rebooting discards unsaved runtime changes. The CLI waits up to 60 seconds for the same SN to return and reports the verified address. When direct verification is possible, WUJI Hand 2 must also have all 20 joints online with no stop-level faults. If the command times out or a check fails, check the device connection and faults before retrying. Some joints may already have restarted. Interactive reboot example:

Confirmation and Connection Checks

Stop motion and support any load before changing the address or rebooting. The operation interrupts communication and can cause a loss of torque.
For operations that reboot, add -y or --yes in scripts or structured-output mode. Without it, a non-interactive call fails before scanning. Declining the terminal confirmation returns 0 with status: "cancelled". The host must have a network interface on the device’s current subnet. Otherwise, the CLI returns 4 with reason: "no_route" and a host network configuration hint. The operation requires exclusive access to the device. Before connecting to WUJI Hand 2, the CLI checks connection conditions based on the firmware and host network configuration. If it blocks the connection, follow the terminal instructions to adjust the host network configuration and retry. After using --force to move the device to a different subnet, the CLI can only confirm that it has reappeared at the new address. The host cannot connect directly to verify device readiness. Configure a host network interface for the new subnet, then run wuji device list --sn <SN> to verify connectivity.

Structured Output

Add --json or --jsonl for structured results. set-ip reports address_before and address_after. reboot reports a single address. Both include sn, status, duration_s, and note. Execution failures keep this context and add an error object. Successful address-change example:
Successful reboot example:
duration_s reports the measured wait time. The addresses, SN, and time above are example values. For other exit codes, see Exit Codes. If the error is outcome_unknown, the address may have changed. Run wuji device list --sn <SN> to check before issuing another operation.

Target a Specific Device

Use the global target options to select a serial number, connect to an address, or filter by handedness and type. --handedness and --type narrow both the probe targets and the displayed list. set-ip and reboot require an explicit --sn.
device list --address probes only that address and can’t be combined with --no-probe. It returns 0 when the address is reachable, including a busy device, and 4 when no device responds. This differs from the --sn connectivity check, which returns 4 for a busy device. When the probe time limit expires, devices not yet probed appear as unprobed in the default terminal output’s Status column and null in JSON. This doesn’t mean the device is offline. With --sn, an unfinished probe returns 4 with no_response. Increase --timeout and retry. For timeout rules, see Global Options.

Behavior When the Device Is Occupied

Device firmware allows only one direct session at a time. When another host application already occupies the device, the CLI falls back to read-only access:
  • Read operations (get, sub, resources, and doctor sampling) keep working
  • Write operations (set) are rejected — release the occupying direct connection and retry

Common Messages