USB relay

272 views
Skip to first unread message

Leif Neland

unread,
Mar 24, 2017, 4:14:13 PM3/24/17
to Node-RED
I have this USB relay from ebay:

[ +16.716958] usb 1-1.2.2.3: new low-speed USB device number 11 using dwc_otg
[  +0.106855] usb 1-1.2.2.3: New USB device found, idVendor=16c0, idProduct=05df
[  +0.000042] usb 1-1.2.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000018] usb 1-1.2.2.3: Product: USBRelay1
[  +0.000016] usb 1-1.2.2.3: Manufacturer: www.dcttech.com
[  +0.033578] hid-generic 0003:16C0:05DF.0001: hiddev0,hidraw0: USB HID v1.01 Device [www.dcttech.com USBRelay1] on usb-20980000.usb-1.2.2.3/input0
[  +0.290531] usbcore: registered new interface driver radio-ma901
[

How could I control that?

Leif'

Julian Knight

unread,
Mar 24, 2017, 5:10:31 PM3/24/17
to Node-RED
No idea, a link to the item on ebay would be helpful. The dcttech.com website no longer exists.

A quick search though found this: https://github.com/darrylb123/usbrelay which gives you a small programme that will control it.

Here is the search, other ideas may turn up. https://www.google.co.uk/search?q=idVendor=16c0

Dave C-J

unread,
Mar 24, 2017, 6:26:59 PM3/24/17
to node...@googlegroups.com
and there is this HID node... no idea how it works though :-)

Leif Neland

unread,
Mar 24, 2017, 7:09:39 PM3/24/17
to Node-RED
Thanks; I'm trying this now.
I wish npm could do restarts.
On the Raspberry it takes ages to install a package; it runs for 15 minutes or so, only to find out it misses libusb.h
So I install libusb2-dev (or something like it), try again, run 15minutes to find out it should be libusb1-dev.
I install that, and npm runs for 20 minutes to install npm install node-hid

Now I can do /node-red-contrib-usbhid

Dave C-J

unread,
Mar 24, 2017, 7:31:38 PM3/24/17
to node...@googlegroups.com
To be fair the readme does mention those prereqs.
Reply all
Reply to author
Forward
0 new messages