darrylb123 / usbrelay

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

unable to change serial number #25

Closed rickyhp closed 5 years ago

rickyhp commented 6 years ago

Hi, I'm trying to change device serial number using sudo usbrelay OLD_0=NEW but it does not get changed. Can please advise?

sudo usbrelay HURTM_0=ABCDE Orig: HURTM, Serial: HURTM, Relay: 0 State: fd Device Found type: 16c0 05df path: /dev/hidraw1 serial_number: Manufacturer: www.dcttech.com Product: USBRelay2 Release: 100 Interface: 0 Number of Relays = 2 Serial: HURTM, Relay: 0 State: fd 1 HID Serial: HURTM Serial: HURTM, Relay: 0 State: fd

Serial: HURTM, Relay: 0 State: fd --- Found

darrylb123 commented 6 years ago

What does it output when you run usbrelay a second time. Did you compile from source or are you running the Debian package. The ability to change the set the serial is a recent feature. Please compile the latest version.

On Sun., 7 Oct. 2018, 2:02 am rickyhp, notifications@github.com wrote:

Hi, I'm trying to change device serial number using sudo usbrelay OLD_0=NEW but it does not get changed. Can please advise?

sudo usbrelay HURTM_0=ABCDE Orig: HURTM, Serial: HURTM, Relay: 0 State: fd Device Found type: 16c0 05df path: /dev/hidraw1 serial_number: Manufacturer: www.dcttech.com Product: USBRelay2 Release: 100 Interface: 0 Number of Relays = 2 Serial: HURTM, Relay: 0 State: fd 1 HID Serial: HURTM Serial: HURTM, Relay: 0 State: fd

Serial: HURTM, Relay: 0 State: fd --- 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/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AGcqVSvAOjZIzd5liRoZCvvWQzYzRBHCks5uiNQfgaJpZM4XLaz6 .

rickyhp commented 6 years ago

Hi Darryl, When I run second time, it shows same serial number only i.e. HURTM in my case. I run from debian package. Thanks.

darrylb123 commented 6 years ago

The Debian package is probably the old version Build it from the code on github and try again.

On Sun., 7 Oct. 2018, 6:26 pm rickyhp, notifications@github.com wrote:

Hi Darryl, When I run second time, it shows same serial number only i.e. HURTM in my case. I run from debian package. Thanks.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25#issuecomment-427635356, or mute the thread https://github.com/notifications/unsubscribe-auth/AGcqVcE9vfTyzWNgk9nY1tjv9Gx0AjDPks5uibrJgaJpZM4XLaz6 .

rickyhp commented 6 years ago

Hi Darryl, Yes It works after I rebuild from latest code. Thanks.

marcpuca commented 4 years ago

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

darrylb123 commented 4 years ago

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, notifications@github.com wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A .

marcpuca commented 4 years ago

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, notifications@github.com wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, notifications@github.com wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A .

darrylb123 commented 4 years ago

What information was in the thread and not in the doco? I'll try to fix it.

On Tue., 31 Dec. 2019, 6:37 am Marc Puca, notifications@github.com wrote:

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, notifications@github.com wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, notifications@github.com wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVIAKCWSXEJHBNDS26DQ3JLZDA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3E2SA#issuecomment-569789768, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVM7ZJKHRQAN3SZNI3DQ3JLZDANCNFSM4FZNVT5A .

marcpuca commented 4 years ago

Line by line instructions for compiling e.g.

"I just tested using a Ubuntu 14.04 x86_64 Virtual machine I did this: sudo apt-get install libhidapi-dev libhidapi-hidraw0 git git clone https://git.com/darrylb123/usbrelay cd usbrelay gcc -o usbrelay usbrelay.c -lhidapi-hidraw0 sudo ./usbrelay sudo ./usbrelay L2FGQ_1=1

and it worked exactly like fedora apt-cache showpkg libhidapi-dev shows it is 0.8rc1"

I think I actually used make command rather than compiling with gcc, not sure if this is present in the doco, if it is then apologies. Thanks

On Mon, 30 Dec 2019, 22:26 Darryl Bond, notifications@github.com wrote:

What information was in the thread and not in the doco? I'll try to fix it.

On Tue., 31 Dec. 2019, 6:37 am Marc Puca, notifications@github.com wrote:

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, notifications@github.com wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, notifications@github.com wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVIAKCWSXEJHBNDS26DQ3JLZDA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3E2SA#issuecomment-569789768 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABTSUVM7ZJKHRQAN3SZNI3DQ3JLZDANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENQW64QKEFEPGT5XRLTQ3JRSHA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3HS6Q#issuecomment-569801082, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2NENWI4A2QAQT7LVJ4NLDQ3JRSHANCNFSM4FZNVT5A .

darrylb123 commented 4 years ago

Yes, make command is best. Did you follow the python build in the doco too?

On Tue., 31 Dec. 2019, 7:32 am Marc Puca, notifications@github.com wrote:

Line by line instructions for compiling e.g.

"I just tested using a Ubuntu 14.04 x86_64 Virtual machine I did this: sudo apt-get install libhidapi-dev libhidapi-hidraw0 git git clone https://git.com/darrylb123/usbrelay cd usbrelay gcc -o usbrelay usbrelay.c -lhidapi-hidraw0 sudo ./usbrelay sudo ./usbrelay L2FGQ_1=1

and it worked exactly like fedora apt-cache showpkg libhidapi-dev shows it is 0.8rc1"

I think I actually used make command rather than compiling with gcc, not sure if this is present in the doco, if it is then apologies. Thanks

On Mon, 30 Dec 2019, 22:26 Darryl Bond, notifications@github.com wrote:

What information was in the thread and not in the doco? I'll try to fix it.

On Tue., 31 Dec. 2019, 6:37 am Marc Puca, notifications@github.com wrote:

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, notifications@github.com wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, notifications@github.com wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVIAKCWSXEJHBNDS26DQ3JLZDA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3E2SA#issuecomment-569789768

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVM7ZJKHRQAN3SZNI3DQ3JLZDANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENQW64QKEFEPGT5XRLTQ3JRSHA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3HS6Q#issuecomment-569801082 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AC2NENWI4A2QAQT7LVJ4NLDQ3JRSHANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVMVZPIDCRVYJT3WLZTQ3JSHJA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3H5XY#issuecomment-569802463, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVJHSAPBGYDV23YUYPLQ3JSHJANCNFSM4FZNVT5A .

darrylb123 commented 4 years ago

I've added line by line build instructions. Can you have a look and see if they make sense?

Darryl

On Tue, Dec 31, 2019 at 9:55 AM Darryl Bond darryl.bond@gmail.com wrote:

Yes, make command is best. Did you follow the python build in the doco too?

On Tue., 31 Dec. 2019, 7:32 am Marc Puca, notifications@github.com wrote:

Line by line instructions for compiling e.g.

"I just tested using a Ubuntu 14.04 x86_64 Virtual machine I did this: sudo apt-get install libhidapi-dev libhidapi-hidraw0 git git clone https://git.com/darrylb123/usbrelay cd usbrelay gcc -o usbrelay usbrelay.c -lhidapi-hidraw0 sudo ./usbrelay sudo ./usbrelay L2FGQ_1=1

and it worked exactly like fedora apt-cache showpkg libhidapi-dev shows it is 0.8rc1"

I think I actually used make command rather than compiling with gcc, not sure if this is present in the doco, if it is then apologies. Thanks

On Mon, 30 Dec 2019, 22:26 Darryl Bond, notifications@github.com wrote:

What information was in the thread and not in the doco? I'll try to fix it.

On Tue., 31 Dec. 2019, 6:37 am Marc Puca, notifications@github.com wrote:

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, notifications@github.com wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, notifications@github.com wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVIAKCWSXEJHBNDS26DQ3JLZDA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3E2SA#issuecomment-569789768

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVM7ZJKHRQAN3SZNI3DQ3JLZDANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENQW64QKEFEPGT5XRLTQ3JRSHA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3HS6Q#issuecomment-569801082 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AC2NENWI4A2QAQT7LVJ4NLDQ3JRSHANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVMVZPIDCRVYJT3WLZTQ3JSHJA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3H5XY#issuecomment-569802463, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVJHSAPBGYDV23YUYPLQ3JSHJANCNFSM4FZNVT5A .

marcpuca commented 4 years ago

No python, used make, then had to copy libusbrelay.so to usr/local/lib to get executable to run

Thanks

On Tue, 31 Dec 2019, 00:55 Darryl Bond, notifications@github.com wrote:

Yes, make command is best. Did you follow the python build in the doco too?

On Tue., 31 Dec. 2019, 7:32 am Marc Puca, notifications@github.com wrote:

Line by line instructions for compiling e.g.

"I just tested using a Ubuntu 14.04 x86_64 Virtual machine I did this: sudo apt-get install libhidapi-dev libhidapi-hidraw0 git git clone https://git.com/darrylb123/usbrelay cd usbrelay gcc -o usbrelay usbrelay.c -lhidapi-hidraw0 sudo ./usbrelay sudo ./usbrelay L2FGQ_1=1

and it worked exactly like fedora apt-cache showpkg libhidapi-dev shows it is 0.8rc1"

I think I actually used make command rather than compiling with gcc, not sure if this is present in the doco, if it is then apologies. Thanks

On Mon, 30 Dec 2019, 22:26 Darryl Bond, notifications@github.com wrote:

What information was in the thread and not in the doco? I'll try to fix it.

On Tue., 31 Dec. 2019, 6:37 am Marc Puca, notifications@github.com wrote:

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, notifications@github.com wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, notifications@github.com wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVIAKCWSXEJHBNDS26DQ3JLZDA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3E2SA#issuecomment-569789768

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVM7ZJKHRQAN3SZNI3DQ3JLZDANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENQW64QKEFEPGT5XRLTQ3JRSHA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3HS6Q#issuecomment-569801082

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENWI4A2QAQT7LVJ4NLDQ3JRSHANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVMVZPIDCRVYJT3WLZTQ3JSHJA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3H5XY#issuecomment-569802463 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABTSUVJHSAPBGYDV23YUYPLQ3JSHJANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENW7MV3L4MRUVJMZVXTQ3KC63A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3OX2Q#issuecomment-569830378, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2NENVR2TNUMEXEWUQ4ZODQ3KC63ANCNFSM4FZNVT5A .

darrylb123 commented 4 years ago

Makefile installs the library into /use/lib(64)

I've updated the docs to describe it all Run: make sudo make install

On Tue., 31 Dec. 2019, 18:45 Marc Puca, notifications@github.com wrote:

No python, used make, then had to copy libusbrelay.so to usr/local/lib to get executable to run

Thanks

On Tue, 31 Dec 2019, 00:55 Darryl Bond, notifications@github.com wrote:

Yes, make command is best. Did you follow the python build in the doco too?

On Tue., 31 Dec. 2019, 7:32 am Marc Puca, notifications@github.com wrote:

Line by line instructions for compiling e.g.

"I just tested using a Ubuntu 14.04 x86_64 Virtual machine I did this: sudo apt-get install libhidapi-dev libhidapi-hidraw0 git git clone https://git.com/darrylb123/usbrelay cd usbrelay gcc -o usbrelay usbrelay.c -lhidapi-hidraw0 sudo ./usbrelay sudo ./usbrelay L2FGQ_1=1

and it worked exactly like fedora apt-cache showpkg libhidapi-dev shows it is 0.8rc1"

I think I actually used make command rather than compiling with gcc, not sure if this is present in the doco, if it is then apologies. Thanks

On Mon, 30 Dec 2019, 22:26 Darryl Bond, notifications@github.com wrote:

What information was in the thread and not in the doco? I'll try to fix it.

On Tue., 31 Dec. 2019, 6:37 am Marc Puca, notifications@github.com wrote:

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, notifications@github.com wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, < notifications@github.com> wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVIAKCWSXEJHBNDS26DQ3JLZDA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3E2SA#issuecomment-569789768

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVM7ZJKHRQAN3SZNI3DQ3JLZDANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENQW64QKEFEPGT5XRLTQ3JRSHA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3HS6Q#issuecomment-569801082

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENWI4A2QAQT7LVJ4NLDQ3JRSHANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVMVZPIDCRVYJT3WLZTQ3JSHJA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3H5XY#issuecomment-569802463

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVJHSAPBGYDV23YUYPLQ3JSHJANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENW7MV3L4MRUVJMZVXTQ3KC63A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3OX2Q#issuecomment-569830378 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AC2NENVR2TNUMEXEWUQ4ZODQ3KC63ANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVO2VZDYGO7X6WYDGL3Q3MBCJA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH35KMI#issuecomment-569890097, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVL7P5D4CY33NH6C5IDQ3MBCJANCNFSM4FZNVT5A .

marcpuca commented 4 years ago

Excellent thanks

On Tue, 31 Dec 2019, 11:26 Darryl Bond, notifications@github.com wrote:

Makefile installs the library into /use/lib(64)

I've updated the docs to describe it all Run: make sudo make install

On Tue., 31 Dec. 2019, 18:45 Marc Puca, notifications@github.com wrote:

No python, used make, then had to copy libusbrelay.so to usr/local/lib to get executable to run

Thanks

On Tue, 31 Dec 2019, 00:55 Darryl Bond, notifications@github.com wrote:

Yes, make command is best. Did you follow the python build in the doco too?

On Tue., 31 Dec. 2019, 7:32 am Marc Puca, notifications@github.com wrote:

Line by line instructions for compiling e.g.

"I just tested using a Ubuntu 14.04 x86_64 Virtual machine I did this: sudo apt-get install libhidapi-dev libhidapi-hidraw0 git git clone https://git.com/darrylb123/usbrelay cd usbrelay gcc -o usbrelay usbrelay.c -lhidapi-hidraw0 sudo ./usbrelay sudo ./usbrelay L2FGQ_1=1

and it worked exactly like fedora apt-cache showpkg libhidapi-dev shows it is 0.8rc1"

I think I actually used make command rather than compiling with gcc, not sure if this is present in the doco, if it is then apologies. Thanks

On Mon, 30 Dec 2019, 22:26 Darryl Bond, notifications@github.com wrote:

What information was in the thread and not in the doco? I'll try to fix it.

On Tue., 31 Dec. 2019, 6:37 am Marc Puca, < notifications@github.com> wrote:

I found another thread where you pointed the way! Sorry for bothering , Thanks and a Happy New Year

On Mon, 30 Dec 2019, 21:34 Darryl Bond, < notifications@github.com> wrote:

Try getting a clue from the doco. Tell me what you don't understand and I'll try to help.

On Tue., 31 Dec. 2019, 00:41 Marc Puca, < notifications@github.com> wrote:

Hi Darryl, I am facing the same issue on ubuntu 18.04, but I do not have a clue on how to build from source, any tips would be appreciated Thanks

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVNGJ3MMMVFCVLW4VWLQ3ICC7A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2OEXI#issuecomment-569696861

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVI5PFAPYVJEHFISJV3Q3ICC7ANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENSP72OXCCAUZMNKVGLQ3JLMTA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3ETQI#issuecomment-569788865

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENT2QO4RBOEBEGXTCC3Q3JLMTANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVIAKCWSXEJHBNDS26DQ3JLZDA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3E2SA#issuecomment-569789768

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVM7ZJKHRQAN3SZNI3DQ3JLZDANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENQW64QKEFEPGT5XRLTQ3JRSHA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3HS6Q#issuecomment-569801082

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENWI4A2QAQT7LVJ4NLDQ3JRSHANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVMVZPIDCRVYJT3WLZTQ3JSHJA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3H5XY#issuecomment-569802463

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTSUVJHSAPBGYDV23YUYPLQ3JSHJANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENW7MV3L4MRUVJMZVXTQ3KC63A5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH3OX2Q#issuecomment-569830378

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AC2NENVR2TNUMEXEWUQ4ZODQ3KC63ANCNFSM4FZNVT5A

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub < https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=ABTSUVO2VZDYGO7X6WYDGL3Q3MBCJA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH35KMI#issuecomment-569890097 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABTSUVL7P5D4CY33NH6C5IDQ3MBCJANCNFSM4FZNVT5A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/25?email_source=notifications&email_token=AC2NENQ7ARBWTHWIXXWDV43Q3MM6PA5CNFSM4FZNVT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH4A66A#issuecomment-569905016, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2NENUQXK7PBGPMC7WMVB3Q3MM6PANCNFSM4FZNVT5A .