darrylb123 / usbrelay

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

Relay serial number contains undefined character #107

Closed shimi25 closed 10 months ago

shimi25 commented 10 months ago

Hi , I've compiled the code successfully. However , when I'm addressing the relay with the sudo usbrelay -d command I'm getting a character in the serial number and in the port numbers that I don't know how to use. The serial I'm getting is : serial_number: ▒QMBS Here is a screen shot :

image

Someone has any idea how to solve this ?

Thanks ,

Shimon.

darrylb123 commented 10 months ago

Change the serial. You can use the device usbrelay /dev/hidraw0_0=ABCDE

Check out the doco

Darryl

On Tue, 7 Nov 2023, 11:08 pm Shimon Bitton, @.***> wrote:

Hi , I've compiled the code successfully. However , when I'm addressing the relay with the sudo usbrelay -d command I'm getting a character in the serial number and in the port numbers that I don't know how to use. The serial I'm getting is : serial_number: ▒QMBS Here is a screen shot :

[image: image] https://user-images.githubusercontent.com/33287232/281048341-f423c9ab-3455-44a2-b9b7-07714be1f7a2.png

Someone has any idea how to solve this ?

Thanks ,

Shimon.

— Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/107, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVPTZFE3CFKUIGSERL3YDIXE3AVCNFSM6AAAAAA7BFFMJSVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DCMZRGQ3TMOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

shimi25 commented 10 months ago

Thank you Darryl !

GarwinCecil commented 5 months ago

Change the serial. You can use the device usbrelay /dev/hidraw0_0=ABCDE Check out the doco Darryl On Tue, 7 Nov 2023, 11:08 pm Shimon Bitton, @.> wrote: Hi , I've compiled the code successfully. However , when I'm addressing the relay with the sudo usbrelay -d command I'm getting a character in the serial number and in the port numbers that I don't know how to use. The serial I'm getting is : serial_number: ▒QMBS Here is a screen shot : [image: image] https://user-images.githubusercontent.com/33287232/281048341-f423c9ab-3455-44a2-b9b7-07714be1f7a2.png Someone has any idea how to solve this ? Thanks , Shimon. — Reply to this email directly, view it on GitHub <#107>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVPTZFE3CFKUIGSERL3YDIXE3AVCNFSM6AAAAAA7BFFMJSVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DCMZRGQ3TMOA . You are receiving this because you are subscribed to this thread.Message ID: @.>

hi Darry, the log says that: Invalid relay specification: /dev/hidraw3=D0010

GarwinCecil commented 5 months ago

CMD: usbrelay /dev/hidraw3_0=D0010 now its ok