USB Relay - No Serial Number (with Pi Zero running Listener) #671
-
Hey folks. Looking for some help with USB Relay attached to a Pi Zero W. I’m trying to find my way but feels like I hit a wall. I bought the 8-channel relay linked on the Relay Listener readme (“Zer” brand). It arrived, and upon plugging it in, no matter how I try to query it, it appears that the serial number is simply blank/null. Also looked at the device with lsusb, and another tool, and no serial. I might be jumping to a conclusion, but I think because of this, I get an error when running the listener that no USB relays have been initialized, and therefore the listener cannot update the relay state. Here’s what I see when I run sudo npm start in /relay-listener:
Side-note, felt like I was struggling to even get to this point. Maybe Pi Zero W doesn’t support node.js or npm/nvm versions required? Here’s what I ended up with, tell me if this is a red flag:
Back to the serial issue, I tried using Josephdadams/usbrelay to manually figure something out, but no dice. There’s another software at https://github.com/darrylb123/usbrelay and to my surprise, I was able to trigger a relay state on and back off (!) but even this tool does not indicate any serial number, and although it sort of indicates it can set the serial, it seems to only be an ID this software is looking at. Did I get a dud? Can I work around not having a serial number? Maybe the path could be used…? Is my node or npm version my downfall? Thanks in advance, and for all your amazing work on this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It’s because the product is https://github.com/josephdadams/USBRelay/blob/4a9e09e628dbdf073705f08b655805b021915437/index.js#L38 |
Beta Was this translation helpful? Give feedback.
It’s because the product is
USBRelay8
and the code is looking forUSBRelay
https://github.com/josephdadams/USBRelay/blob/4a9e09e628dbdf073705f08b655805b021915437/index.js#L38