chaim-zax / gq-gmc-control

Control tool for the GQ GMC Geiger Counters.
GNU General Public License v3.0
55 stars 18 forks source link

GMC-300: "ERROR: device not found or supported" #9

Open auwsom opened 1 year ago

auwsom commented 1 year ago

Hello, I'm hoping the GMC-300 could be supported.

I'm using the latest Ubuntu 22.04 and Python2. I had to adjust several things in setup to appease the errors, but using the -i flag gives no device, and using the -l or -e flag gives this error (in the title).

How would I check further config? I do show the device with lsusb and ls /dev/ttyUSB0.

Are there any other packages for reading the device on Linux? Thank you

auwsom commented 1 year ago

I did get the device to connect with this project: http://sourceforge.net/p/gqgmc/wiki/Home/

However, while I dont need the gui which doesnt compile because of an older qt4 lib, the CLI file is written in C. So I'll have to start learning that unless I can get this Python project working.

EDIT: nevermind, it does have a python file for control.

jhyland87 commented 1 year ago

FYI - I'm on OSX, but since it's pretty similar to Linux, maybe the solution I had would have worked with you. I had to find the serial port by using find:

$ find /dev -maxdepth 2 -iname '*usb*'
/dev/cu.wchusbserial1410
/dev/tty.wchusbserial1410
/dev/cu.usbserial-1410
/dev/tty.usbserial-1410

And the one that worked for me was /dev/cu.wchusbserial1410, which I set as the default by modifying the _gqgmc.py and setting the DEFAULT_PORT value on line 31 (as mentioned in the INSTALL file).

takosalad commented 5 months ago

EDIT: Disregard this comment, as it worked after I rebooted.

I have the same problem (GMC-300E). --device-info gives an empty line. --serial gives "ERROR: device not found or supported"

Here is the dmesg: [38654.710684] usb 1-4.3.3: new full-speed USB device number 14 using xhci_hcd [38654.847395] usb 1-4.3.3: device descriptor read/64, error -32 [38655.067394] usb 1-4.3.3: device descriptor read/64, error -32 [38655.290690] usb 1-4.3.3: new full-speed USB device number 15 using xhci_hcd [38655.430726] usb 1-4.3.3: device descriptor read/64, error -32 [38655.650726] usb 1-4.3.3: device descriptor read/64, error -32 [38655.769980] usb 1-4.3-port3: attempt power cycle [38656.434024] usb 1-4.3.3: new full-speed USB device number 16 using xhci_hcd [38656.460976] usb 1-4.3.3: Device not responding to setup address. [38656.700975] usb 1-4.3.3: Device not responding to setup address. [38656.914022] usb 1-4.3.3: device not accepting address 16, error -71 [38656.916489] usb 1-4.3.3: WARN: invalid context state for evaluate context command. [38657.024024] usb 1-4.3.3: new full-speed USB device number 17 using xhci_hcd [38657.050973] usb 1-4.3.3: Device not responding to setup address. [38657.294972] usb 1-4.3.3: Device not responding to setup address. [38657.507357] usb 1-4.3.3: device not accepting address 17, error -71 [38657.509486] usb 1-4.3.3: WARN: invalid context state for evaluate context command. [38657.515988] usb 1-4.3-port3: unable to enumerate USB device [38657.634023] usb 1-4.3.4: new full-speed USB device number 18 using xhci_hcd [38657.893420] usb 1-4.3.4: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.60 [38657.893424] usb 1-4.3.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [38657.893425] usb 1-4.3.4: Product: USB2.0-Serial [38657.950986] usbcore: registered new interface driver ch341 [38657.950997] usbserial: USB Serial support registered for ch341-uart [38657.951011] ch341 1-4.3.4:1.0: ch341-uart converter detected [38657.951454] usb 1-4.3.4: ch341-uart converter now attached to ttyUSB0

and lsusb: Bus 001 Device 018: ID 1a86:7523 QinHeng Electronics CH340 serial converter