darrylb123 / usbrelay

Control usb relay - based on hidapi
GNU General Public License v2.0
315 stars 98 forks source link

Help! Seems USBRelay's serial is missing #74

Closed dracedj closed 2 years ago

dracedj commented 2 years ago

Hi! Ive got the 8 ch relay worked, but since yesterday it seems it lost its serial which is needed to operate. When i try with the GUI on a windows computer it shows as serial just: ","

Any idea how to fix this?

darrylb123 commented 2 years ago

Have a look at the documentation about changing the serial. You can refer to it by it's device path when changing the serial.

Change the serial permanently

Use the fictitious relay 0 to set the serial permanently. If you have duplicate serials, make sure only one is plugged in when you change it. Maximum of 5 character serial. It is probably sensible to change one module at a time to avoid serial collisions. You may also use the device path to set the serial as above

$ sudo usbrelay ZXCV_1=0 ZXCV_2=0

$ sudo usbrelay /dev/hidraw4_0=ZAQ12 ZXCV_1=0 ZXCV_2=0 Setting new serial

$ sudo usbrelay ZAQ12_1=0 ZAQ12_2=0

On Sun, Dec 19, 2021 at 12:01 AM dracedj @.***> wrote:

Hi! Ive got the 8 ch relay worked, but since yesterday it seems it lost its serial which is needed to operate. When i try with the GUI on a windows computer it shows as serial just: ","

Any idea how to fix this?

— Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/74, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVO5DDX6FGZAR76EVKLURSH2VANCNFSM5KKVUPBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>