darrylb123 / usbrelay

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

usbrelay serial name issue #83

Closed kanagavelvairamani closed 2 years ago

kanagavelvairamani commented 2 years ago

image

kanagavelvairamani commented 2 years ago

i tried to change the serial name of the HID USB relay with HURTM as serial name. i tried to use the below command sudo LD_LIBRARY_PATH=. ./usbrelay /dev/hidraw4_0=TESTD how could i solve this issue. i have also referred the https://github.com/darrylb123/usbrelay/issues/26 https://github.com/darrylb123/usbrelay/issues/25

kanagavelvairamani commented 2 years ago

issue solved. gcc compiler is not installed in the setup and after installing sudo apt install gcc make CC=gcc then tried $sudo LD_LIBRARY_PATH=. ./usbrelay /dev/hidraw4_0=TESTD TESTD_1=0 TESTD_2=0 Setting new serial by checking with usbrelay command $usbrelay Device Found type: 16c0 05df path: /dev/hidraw4 serial_number: Manufacturer: www.dcttech.com Product: USBRelay2 Release: 100 Interface: 0 Number of Relays = 2 TESTD_1=0 TESTD_2=0