kusti8 / hue-plus

A Windows and Linux driver in Python for the NZXT Hue+
GNU General Public License v3.0
229 stars 18 forks source link

no device in /dev/ttyACM0, where is it then? #51

Open ghost opened 5 years ago

ghost commented 5 years ago

lsusb claims NZXT is Bus 001 Device 003: ID 1e71:1714 NZXT so where would that be mounted?

I really have never done anything like this in linux before

romantelecom commented 5 years ago

I have the same issue, any advice please?

command "usb-devices" - Gives me the below data and I am not sure how to work out the port from that:

T:  Bus=01 Lev=01 Prnt=01 Port=04 Cnt=04 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1e71 ProdID=1714 Rev=02.00
S:  Manufacturer=NZXT.-Inc.
S:  Product=NZXT USB Device
S:  SerialNumber=87685F895156
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
Nyeksenn commented 5 years ago

have you tried executing the application as root?

flaire-project commented 5 years ago

I've used this script on Ubuntu to find which port is mapped to which USB device:

#!/bin/bash

for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
    (
        syspath="${sysdevpath%/dev}"
        devname="$(udevadm info -q name -p $syspath)"
        [[ "$devname" == "bus/"* ]] && continue
        eval "$(udevadm info -q property --export -p $syspath)"
        [[ -z "$ID_SERIAL" ]] && continue
        echo "/dev/$devname - $ID_SERIAL"
    )
done
ghost commented 5 years ago

continue is broken in that script and it claims the answer is

/dev/bus/usb/001/005 which is wrong

ghost commented 5 years ago

<class 'serial.serialutil.SerialException'>: Could not configure port: (25, 'Inappropriate ioctl for device')

rjpiston commented 5 years ago

I'm running into the same issue.

Could not configure port: (25, 'Inappropriate ioctl for device')

Not sure where to go next.

T: Bus=03 Lev=01 Prnt=01 Port=07 Cnt=02 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1e71 ProdID=1714 Rev=02.00 S: Manufacturer=NZXT.-Inc. S: Product=NZXT USB Device S: SerialNumber=497D34943131 C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid

saltchicken commented 4 years ago

What is your output for dmesg | grep tty?

abhi-iyer commented 4 years ago

Has there been a resolution on this? I'm having the same problem - the NZXT hub connected to the comp's USB is not under /dev/ttyACM0