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

How know "Device Path" by USB port? #47

Open
mpimentel04 opened this issue Dec 20, 2016 · 0 comments
Open

How know "Device Path" by USB port? #47

mpimentel04 opened this issue Dec 20, 2016 · 0 comments

Comments

@mpimentel04
Copy link

mpimentel04 commented Dec 20, 2016

Hello,

I do not know if I can ask this question, but in my computer is connected TemperHum in the USB port 1-1.4:
root@GN:~/TEMPered/examples# dmesg |grep usb
[ 7593.901363] usb 1-1.4: new low-speed USB device number 20 using dwc_otg
[ 7594.020764] usb 1-1.4: New USB device found, idVendor=0c45, idProduct=7402
[ 7594.020786] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7594.020799] usb 1-1.4: Product: TEMPer1F_H1_V1.4
[ 7594.020811] usb 1-1.4: Manufacturer: RDing
[ 7594.033816] input: RDing TEMPer1F_H1_V1.4 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:0C45:7402.0021/input/input16
[ 7594.092338] hid-generic 0003:0C45:7402.0021: input,hidraw1: USB HID v1.10 Keyboard [RDing TEMPer1F_H1_V1.4] on usb-3f980000.usb-1.4/input0
[ 7594.101080] hid-generic 0003:0C45:7402.0022: hiddev0,hidraw2: USB HID v1.10 Device [RDing TEMPer1F_H1_V1.4] on usb-3f980000.usb-1.4/input1

The command ./read.all shows the connected device with the information:

root@GN:~/TEMPered/examples# ./read-all
Device 0001:0014:01 : USB IDs 0c45:7402, interface 1
Enumeration type name: TEMPer2HumiV1.x
Open succeeded.
Device path: 0001:0014:01
Device type name: TEMPer1F_H1V1.5F
Sensor count: 1
Sensor 0:
Temperature: 28.36°C
Humidity: 67.2%RH

How know Device path: 0001:0014:01 by usb 1-1.4.

Tanks!

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

No branches or pull requests

1 participant