YKUSHCMD(1)

πŸ“¦
version 1.3.0 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– YKUSHCMD(1) πŸ’–

okay bestie, welcome to the ykushcmd manual page, we're doing this together 🫢


✨ NAME ✨

ykushcmd β€” the control app for the Yepkit YKUSH Switchable USB Hub board πŸ‘‘


✨ SYNOPSIS ✨

ykushcmd [board_name] [-s serial_number] [OPTIONS] ...

✨ DESCRIPTION ✨

So like, ykushcmd is what you use to control the ports of a Yepkit YKUSH Switchable USB Hub board. That's the whole vibe. πŸ’…

🌸 Board names 🌸

  • ykush β€” YKUSH board
  • ykush3 β€” YKUSH3 board
  • ykushxs β€” YKUSHXS board

The [board_name] must be provided for commands addressed to a specific board. no skips, no shortcuts, she needs to know who she's talking to πŸ’β€β™€οΈ

For general or common commands β€” the ones that work on all board models β€” the [board_name] has to be omitted from the command. yes literally just leave it out, it's fine, it's giving "one size fits all" ✨


πŸ”₯ YKUSH board options πŸ”₯

  • -d 1|2|3|a β€” Power Down/Off the downstream port with the number privided. If [a] is provided as the port number then all ports will be switched. (and yes bestie the original says "privided", we don't fix, we preserve 😭)
  • -u 1|2|3|a β€” Power Up/On downstream port number downstream_number
  • -s serial_number β€” Board serial number to which the command is addressed.

When multiple YKUSH boards are connected to a host, this option should be used to specify the board. If more than one board is connected and this option is not provided, the command will be sent to the first board in the USB enumeration list. so like, if you've got a whole friend group plugged in and you don't say who you're talking to, you're just yelling into the group chat and whoever's first in the list hears it πŸ’€

  • -l β€” Lists the serial numbers of the YKUSH boards attached to the host.
  • -g 1|2|3 β€” Show state of a downstream port.
  • -h β€” Display help for YKUSH board specific commands.

πŸ¦‹ YKUSH3 board options πŸ¦‹

  • -d 1|2|3|a β€” Power Down/Off downstream port with the number privided. If [a] is provided as the port number then all ports will be switched.
  • -u 1|2|3|a β€” Power Up/On downstream port number downstream_number
  • -s serial_number β€” Board serial number to which the command is addressed.

When multiple YKUSH boards are connected to a host, this option should be used to specify the board. If more than one board is connected and this option is not provided the command will be sent to the first board in the USB enumeration list.

  • -l β€” Lists the serial numbers of the YKUSH boards attached to the host.
  • -g 1|2|3 β€” Show state of a downstream port.
  • -c <port-number> <config-value> β€” Configure the default state of a downstream port (port-number=1|2|3|e) at power-on. The port number <e> refers to exteranl 5V port. (again, "exteranl" is a typo in the original and we are NOT touching it, no cap πŸ™ˆ)

The default states are off (config-value=0), on (config-value=1) and persistent (config-value=2).

  • -on β€” Switch On the 5V output power port.
  • -off β€” Switch Off the 5V output power port.
  • -r 1|2|3 β€” Read GPIO with the number provided (1, 2 or 3).
  • -w 1|2|3 0|1 β€” Write to the GPIO with the number provided (1, 2 or 3).

Writing a value of 1 or 0 will drive the GPIO to logical high or low, respectively.

  • --gpio enable|disable β€” Enable / Disable GPIO control interface. Will become active on next reset/power-on. so it's giving "this doesn't hit until you reboot", plan accordingly bestie ⏳
  • --reset β€” Resets (reboot) the YKUSH3 board.
  • -h β€” Display help for YKUSH board specific commands.
  • --bootloader-version β€” Board bootloader version.
  • --firmware-version β€” Board firmware version.
  • --boot β€” Enter bootloader mode for firmware update.

πŸŽ€ YKUSHXS board options πŸŽ€

  • -d β€” Power Down/Off the downstream port.
  • -u β€” Power Up/On the downstream port
  • -s serial_number β€” Board serial number to which the command is addressed.

When multiple YKUSHXS boards are connected to a host, this option should be used to specify the board. If more than one board is connected and this option is not provided the command will be sent to the first board in the USB enumeration list.

  • -l β€” Lists the serial numbers of the YKUSHXS boards attached to the host.
  • -g β€” Show state of the downstream port.
  • -h β€” Display help for YKUSHXS board specific commands.

πŸ’€ BUGS πŸ’€

See GitHub issues: https://github.com/Yepkit/ykush/issues


ykush is Copyright (c) 2017 Yepkit Lda and is licensed under the Apache License, Version 2.0.

This manpage, base on the command line help, was written by Christoph Biedl debian.axhn@manchmal.in-ulm.de for the Debian project but may be used by others.


and that's the whole thing bestie, every flag, every port, every typo, we kept it all πŸ’–

this was the YKUSHCMD(1) manual page β€” that's the name, that's the number, that's the section, iconic behavior fr fr 🌈✨

πŸ“¦ where this page comes from