darrylb123 / usbrelay

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

Quiet output not working #58

Closed hamir-suspect closed 4 years ago

hamir-suspect commented 4 years ago

Hi, I can not get the quiet output to work What I tried is following, whatever I do I always get Device found output...

pi@raspberrypi:~ $ sudo usbrelay
Device Found
  type: 16c0 05df
  path: /dev/hidraw2
  serial_number: 
  Manufacturer: www.dcttech.com
  Product:      USBRelay2
  Release:      100
  Interface:    0
  Number of Relays = 2
1_1=1
1_2=1

pi@raspberrypi:~ $ sudo usbrelay -q
Orig: -q, Serial: -q, Relay: 0 State: 0
Device Found
  type: 16c0 05df
  path: /dev/hidraw2
  serial_number: 
  Manufacturer: www.dcttech.com
  Product:      USBRelay2
  Release:      100
  Interface:    0
  Number of Relays = 2
Serial: -q, Relay: 0 State: 0 

Serial: -q, Relay: 0 State: 0 --- Not Found
darrylb123 commented 4 years ago

You are not running a later version. You will need to compile from the GitHub repository. Please follow the instructions to compile.

On Wed., 2 Sep. 2020, 3:29 am Amir Hasanbasic, notifications@github.com wrote:

Hi, I can not get the quiet output to work What I tried is following, whatever I do I always get Device found output...

pi@raspberrypi:~ $ sudo usbrelay Device Found type: 16c0 05df path: /dev/hidraw2 serial_number: Manufacturer: www.dcttech.com Product: USBRelay2 Release: 100 Interface: 0 Number of Relays = 2 1_1=1 1_2=1

pi@raspberrypi:~ $ sudo usbrelay -q Orig: -q, Serial: -q, Relay: 0 State: 0 Device Found type: 16c0 05df path: /dev/hidraw2 serial_number: Manufacturer: www.dcttech.com Product: USBRelay2 Release: 100 Interface: 0 Number of Relays = 2 Serial: -q, Relay: 0 State: 0

Serial: -q, Relay: 0 State: 0 --- Not Found

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/58, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVLF2GOLZOCY2GSRJGTSDUVOVANCNFSM4QR7L6KQ .

hamir-suspect commented 4 years ago

Thanks, all good.

hamir-suspect commented 4 years ago

I have one more question, do you have experience with having multiple boards plugged in, I am wondering if they all really have unique serial number, and if not how can you differentiate between them if you do not use path but serial number. I am thinking of changing the serial numbers myself like this: enumerate relays -> set board SN to 1, 2, 3, so I have consistently the same usb board at same index, but the problem is what if I plug in two devices that were both assigned SN 1 previously. How can I know which one was the original SN 1 and which one is new SN 1 board (I currently do not have 2 boards so I am not able to test this).

darrylb123 commented 4 years ago

Hi, I have several boards that I test together. Each board has it's own serial. The serial can be changed if they are not unique. You can also mix dcctech boards with ucreate boards. You can also differentiate by device. How to do this is in the Readme on GitHub.

Darryl

On Sun., 6 Sep. 2020, 6:54 am Amir Hasanbasic, notifications@github.com wrote:

I have one more question, do you have experience with having multiple boards plugged in, I am wondering if they all really have unique serial number, and if not how can you differentiate between them if you do not use path but serial number

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/58#issuecomment-687661904, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVODL3YZSDNURGZJOHTSEKQPHANCNFSM4QR7L6KQ .