ykushcmd.1.adoc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. YKUSHCMD(1)
  2. ===========
  3. :doctype: manpage
  4. == NAME
  5. ykushcmd - control application for Yepkit YKUSH Switchable USB Hub board
  6. == SYNOPSIS
  7. *ykushcmd* [board_name] [*-s* _serial_number_] [OPTIONS] ...
  8. == DESCRIPTION
  9. *ykushcmd* allows you to control the ports of a Yepkit YKUSH
  10. Switchable USB Hub board.
  11. === Board names
  12. ykush YKUSH board
  13. ykush3 YKUSH3 board
  14. ykushxs YKUSHXS board
  15. The [board_name] must be provided for commands addressed for a specific
  16. board.
  17. For general or common commands, applicable to all board models, the
  18. [board_name] has to be omited from the command.
  19. === YKUSH board options
  20. *-d* 1|2|3|a
  21. Power Down/Off downstream port with the number privided.
  22. If [a] is provided as the port number then all ports will be switched.
  23. *-u* 1|2|3|a
  24. Power Up/On downstream port number downstream_number
  25. *-s* serial_number
  26. Board serial number to which the command is addressed.
  27. When multiple YKUSH boards are connected to a host, this option
  28. should be used to specify the board. If more than one board is
  29. connected and this option is not provided the command will be sent to
  30. the first board in the USB enumeration list.
  31. *-l*
  32. Lists the serial numbers of the YKUSH boards attached to the host.
  33. *-g* 1|2|3
  34. Show state of a downstream port.
  35. *-h*
  36. Display help for YKUSH board specific commands.
  37. === YKUSH3 board options
  38. *-d* 1|2|3|a
  39. Power Down/Off downstream port with the number privided.
  40. If [a] is provided as the port number then all ports will be
  41. switched.
  42. *-u* 1|2|3|a
  43. Power Up/On downstream port number downstream_number
  44. *-s* serial_number
  45. Board serial number to which the command is addressed.
  46. When multiple YKUSH boards are connected to a host, this option
  47. should be used to specify the board. If more than one board is
  48. connected and this option is not provided the command will be sent to
  49. the first board in the USB enumeration list.
  50. *-l*
  51. Lists the serial numbers of the YKUSH boards attached to the host.
  52. *-g* 1|2|3
  53. Show state of a downstream port.
  54. *-c* <port-number> <config-value>
  55. Configure the default state of a downstream port
  56. (port-number=1|2|3|e) at power-on. The port number <e> refers to
  57. exteranl 5V port.
  58. The default states are off (config-value=0), on (config-value=1) and
  59. persistent (config-value=2).
  60. *-on*
  61. Switch On the 5V output power port.
  62. *-off*
  63. Switch Off the 5V output power port.
  64. *-r* 1|2|3
  65. Read GPIO with the number provided (1, 2 or 3).
  66. *-w* 1|2|3 0|1
  67. Write to the GPIO with the number provided (1, 2 or 3).
  68. Writing a value of 1 or 0 will drive the GPIO to logical high or low,
  69. respectively.
  70. *--gpio* enable|disable
  71. Enable / Disable GPIO control interface. Will become active on next
  72. reset/power-on.
  73. *--reset*
  74. Resets (reboot) the YKUSH3 board.
  75. *-h*
  76. Display help for YKUSH board specific commands.
  77. *--bootloader-version*
  78. Board bootloader version.
  79. *--firmware-version*
  80. Board firmware version.
  81. *--boot*
  82. Enter bootloader mode for firmware update.
  83. === YKUSHXS board options
  84. *-d*
  85. Power Down/Off the downstream port.
  86. *-u*
  87. Power Up/On the downstream port
  88. *-s* serial_number
  89. Board serial number to which the command is addressed.
  90. When multiple YKUSHXS boards are connected to a host, this option
  91. should be used to specify the board. If more than one board is
  92. connected and this option is not provided the command will be sent to
  93. the first board in the USB enumeration list.
  94. *-l*
  95. Lists the serial numbers of the YKUSHXS boards attached to the host.
  96. *-g*
  97. Show state of the downstream port.
  98. *-h*
  99. Display help for YKUSHXS board specific commands.
  100. == BUGS
  101. See GitHub issues: <https://github.com/Yepkit/ykush/issues>
  102. == COPYRIGHT AND LICENSE
  103. *ykush* is Copyright (c) 2017 Yepkit Lda and is licensed under the
  104. Apache License, Version 2.0.
  105. This manpage, base on the command line help, was written by Christoph
  106. Biedl <debian.axhn@manchmal.in-ulm.de> for the Debian project but may
  107. be used by others.