Skip to content
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

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

chombourger
Copy link
Collaborator

Closes: #124
Signed-off-by: Cedric Hombourger cedric.hombourger@siemens.com

@chombourger chombourger marked this pull request as draft December 30, 2021 07:55
@vj-kumar
Copy link
Contributor

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>
@chombourger chombourger added this to the 0.15 milestone Jan 3, 2022
@chombourger chombourger marked this pull request as ready for review January 3, 2022 12:33

[power]
variant=usbrelay
lines=959BI_1
Copy link
Contributor

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`

Copy link
Collaborator Author

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

Copy link
Contributor

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

@chombourger chombourger merged commit 325cfc4 into siemens:master Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nanopi-r1: document setup
3 participants