382 Commits

Author SHA1 Message Date
Vadim Mikhailov
73b87ad767 Add Sunix SHB4200MA as compatible device 2017-05-18 17:07:06 -07:00
mvp
eece25e956 Merge pull request #30 from durka/reset-hub
add option to reset hub after turning device on
2017-05-18 16:59:55 -07:00
Haptics NUC
bfd33c71fc add option to reset hub after operation 2017-05-17 15:50:20 -04:00
Vadim Mikhailov
30b17f1894 Add information about release and EOL years for supported hubs 2017-04-11 23:33:26 -07:00
Vadim Mikhailov
40d446b394 Add support for FreeBSD and MacPorts on Mac 2017-04-06 11:43:02 -07:00
Vadim Mikhailov
37057c241e Add Rosewill RHUB-210 as supported device 2017-04-03 16:41:38 -07:00
Vadim Mikhailov
5d63424c69 Add Asus Z87-PLUS as supported device
Also, specify exact model HU3770V1 for working AmazonBasics 7-port hub.
Very similar looking 10 port hub HU37A0V1 does not work.
2017-03-17 18:40:40 -07:00
Vadim Mikhailov
2e946e3c70 Add AmazonBasics 7 port USB 3.0 hub as supported device
Model id known to work is  B00E4J3708 (sold in Europe).
This should also work with B00E6GX4BG (sold in US).
2017-03-16 13:01:22 -07:00
Vadim Mikhailov
878816b2de Bump copyright year 2017-03-11 11:39:01 -08:00
Vadim Mikhailov
760963f840 Add Plugable USB2-HUB10S as supported hub
Adding this hub according to this information from manufacturer:
http://support.plugable.com/plugable/topics/usb-3-0-hub-with-switchable-power-on-off
2017-03-11 11:28:04 -08:00
Vadim Mikhailov
3af8d18596 Use sprintf instead of snprintf
On Mac, `snprintf` function is not easily available
if source is compiled with `_POSIX_C_SOURCE=199309L`.
We only used `snprintf` in 2 places with well known buffer length,
so using `sprintf` instead of `snprintf` should not make it any less secure,
but it allows to enable `_POSIX_C_SOURCE`.
This should unblock https://github.com/mvp/uhubctl/pull/15.
2017-03-10 13:49:43 -08:00
Vadim Mikhailov
8ad98c4886 Added a link to report new hubs that work with uhubctl 2017-03-09 11:09:47 -08:00
Vadim Mikhailov
e6ce4c2b3d Update supported devices table
Added Belkin and B&B Electronics hubs.
Replaced long Anker hub description with exact model id.
Added known good VID:PID for D-Link DUB-H7.
2017-03-09 10:50:27 -08:00
mvp
08ace30d52 Merge pull request #16 from bertani/patch-1
Add Beagleboard-xM to the Compatible USB hubs list
2017-03-08 20:46:40 -08:00
Thomas Bertani
39e26c6ec8 Add Beagleboard-xM to the Compatible USB hubs list 2017-03-09 04:34:55 +00:00
Vadim Mikhailov
59f94010d9 Add Anker USB3 hub as compatible device
Also reformat devices table to look a bit nicer.
2017-02-25 10:25:37 -08:00
mvp
69702c0599 Merge pull request #13 from rleitner/upstream/supported-devices
README: format supported devices as table and add USB VID/PID
2017-02-24 10:48:25 -08:00
Richard Leitner
23e780287e README: format supported devices as table and add USB VID/PID
Furthermore add the Lenovo ThinkPad EU Ultra Dockingstation (40A20090EU)
as a supported device.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
2017-02-24 11:20:05 +01:00
mvp
c4286b356f Merge pull request #11 from rleitner/upstream/fix-deprecated-libusb-get-port-path
uhubctl: avoid deprecated libusb_get_port_path
2017-02-20 02:14:54 -08:00
Richard Leitner
8fb36882ab uhubctl: avoid deprecated libusb_get_port_path
Since libusb version 1.0.16 the libusb_get_port_path function is
deprecated. As we need to support also older version of libusb we
replace it with libusb_get_port_numbers when possible. This is done by
checking the LIBUSB_API_VERSION (as recommended by libusb).

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
2017-02-20 11:09:33 +01:00
mvp
5a570c0e9d Merge pull request #10 from rleitner/upstream/make-yp-compatible-v2
Make uhubctl "Yocto-Project Compatible" v2
2017-02-20 01:59:34 -08:00
Richard Leitner
5ca2686708 uhubctl: include unistd.h
Add an include for the unistd.h. This fixes following
implicit-function-declaration gcc warnings for (u)sleep:

uhubctl.c: In function 'main':
uhubctl.c:543:33: warning: implicit declaration of function 'usleep'
[-Wimplicit-function-declaration]
                                 usleep(opt_wait * 1000);
                                 ^
uhubctl.c:549:21: warning: implicit declaration of function 'sleep'
[-Wimplicit-function-declaration]
                     sleep(opt_delay);
                     ^

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
2017-02-20 10:49:40 +01:00
Richard Leitner
a45cb2a59a Makefile: add cross-compile functionality
Add cross-compile functionality to the Makefile and add an "install"
target. This makes uhubctl "Yocto Project Compatible".

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
2017-02-20 10:49:30 +01:00
Vadim Mikhailov
f25d3e3786 Improve handling errors in command line options
Bail out if command line options are missing values,
or if extra command line parameters are specified.
2017-01-03 15:53:56 -08:00
Vadim Mikhailov
abbf0699ee Bump copyright year 2016-11-10 10:46:32 -08:00
Vadim Mikhailov
6173f7db13 Make it compatible with older libusb, up to 1.0.12
Apparently, even some modern Linux systems (e.g. Centos 7)
still have very old libusb versions installed (e.g. 1.0.15).
To solve this, instead of libusb_get_port_numbers()
use equivalent deprecated API libusb_get_port_path()
which was introduced in libusb 1.0.12.
2016-11-10 10:44:56 -08:00
mvp
4bc4f02cd1 Merge pull request #7 from skitt/license
Clarify the license, GPL version 2
2016-11-09 14:52:30 -08:00
Stephen Kitt
89106b3193 Clarify the license, GPL version 2
This fixes #6.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2016-11-09 20:13:21 +01:00
mvp
af6a5e1886 Merge pull request #2 from runderwo/master
Add Linksys compatible hub
2016-07-20 21:23:10 -07:00
Ryan Underwood
42e4bb6106 Add Linksys compatible hub 2016-07-20 21:15:12 -07:00
mvp
0bdf19d57b Update README.md
Fixed markup in README.md
2015-01-14 17:09:00 -08:00
Vadim Mikhailov
d5da2677eb Added uhubctl source code 2015-01-14 16:32:36 -08:00