jumpstarter-dev / jumpstarter

http://docs.jumpstarter.dev/
3 stars 3 forks source link

USB Relay driver based on https://github.com/JPEWdev/pyhid-usb-relay #106

Open mangelajo opened 1 month ago

mangelajo commented 1 month ago

https://github.com/JPEWdev/pyhid-usb-relay


(testrelay) ➜  ~ pyhid-usb-relay enum
Board ID=[ffffffffff] ver 1.0, State: 00
(testrelay) ➜  ~ pyhid-usb-relay set-serial
usage: pyhid-usb-relay set-serial [-h] (--bus BUS ADDRESS | --serial SERIAL) new_serial
pyhid-usb-relay set-serial: error: the following arguments are required: new_serial
(testrelay) ➜  ~ pyhid-usb-relay set-serial 0102030405
usage: pyhid-usb-relay set-serial [-h] (--bus BUS ADDRESS | --serial SERIAL) new_serial
pyhid-usb-relay set-serial: error: one of the arguments --bus --serial is required
(testrelay) ➜  ~ pyhid-usb-relay set-serial --serial 0102030405
usage: pyhid-usb-relay set-serial [-h] (--bus BUS ADDRESS | --serial SERIAL) new_serial
pyhid-usb-relay set-serial: error: the following arguments are required: new_serial
(testrelay) ➜  ~ pyhid-usb-relay set-serial --serial ffffffffff 0102030405
(testrelay) ➜  ~ pyhid-usb-relay enum
Board ID=[01020] ver 1.0, State: 00
(testrelay) ➜  ~ pyhid-usb-relay set-serial --serial 01020 aa0001
(testrelay) ➜  ~ pyhid-usb-relay enum
Board ID=[aa000] ver 1.0, State: 00
(testrelay) ➜  ~ pyhid-usb-relay set-serial --serial 01020 aa001
(testrelay) ➜  ~ pyhid-usb-relay enum
Board ID=[aa000] ver 1.0, State: 00
(testrelay) ➜  ~ pyhid-usb-relay enum
(testrelay) ➜  ~ pyhid-usb-relay set-serial --serial aa000 aa001
(testrelay) ➜  ~ pyhid-usb-relay enum
Board ID=[aa001] ver 1.0, State: 00
(testrelay) ➜  ~ pyhid-usb-relay on aa001
'aa001' is not a valid relay descriptor
(testrelay) ➜  ~ pyhid-usb-relay on
usage: pyhid-usb-relay on [-h] [--serial SERIAL] [--pulse] relay
pyhid-usb-relay on: error: the following arguments are required: relay
(testrelay) ➜  ~ pyhid-usb-relay on --serial aa001
usage: pyhid-usb-relay on [-h] [--serial SERIAL] [--pulse] relay
pyhid-usb-relay on: error: the following arguments are required: relay
(testrelay) ➜  ~ pyhid-usb-relay on --serial aa001 0
Index 0 is outside range [1..4]
(testrelay) ➜  ~ pyhid-usb-relay on --serial aa001 1
(testrelay) ➜  ~ pyhid-usb-relay on --serial aa001 2
(testrelay) ➜  ~ pyhid-usb-relay off --serial aa001 2
(testrelay) ➜  ~ pyhid-usb-relay off --serial aa001 1