-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs/build: document nanopi-r1 setup #127
Conversation
Just noticed the missing image and saw the draft. Reviewing from mobile. Will review again once ready. |
Closes: siemens#124 Signed-off-by: Cedric Hombourger <cedric.hombourger@siemens.com>
|
||
[power] | ||
variant=usbrelay | ||
lines=959BI_1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chombourger How to get the lines value.
When I connect USB relay to MTDA following information was available with dmesg
`mtda@mtda:~$ [ 298.936687] usb 5-1: USB disconnect, device number 6
[ 303.698841] usb 5-1: new low-speed USB device number 7 using ohci-platform
[ 303.898840] usb 5-1: device descriptor read/64, error -62
[ 304.241918] usb 5-1: New USB device found, idVendor=16c0, idProduct=05df, bcdDevice= 1.00
[ 304.250236] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 304.257462] usb 5-1: Product: USBRelay2
[ 304.261428] usb 5-1: Manufacturer: www.dcttech.com
[ 304.275662] hid-generic 0003:16C0:05DF.0002: hiddev0,hidraw0: USB HID v1.01 Device [www.dcttech.com USBRelay2] on usb-1c1c400.usb-1/input`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run /usr/bin/usbrelay (without any arguments), the id should be printed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok Got it,Thanks, Got below output and used HURTM_1
mtda@mtda:~$ sudo /usr/bin/usbrelay
sudo: unable to resolve host mtda: No address associated with hostname
Device Found
type: 16c0 05df
path: /dev/hidraw0
serial_number:
Manufacturer: www.dcttech.com
Product: USBRelay2
Release: 100
Interface: 0
Number of Relays = 2
HURTM_1=1
HURTM_2=1
Closes: #124
Signed-off-by: Cedric Hombourger cedric.hombourger@siemens.com