Skip to content

Unable to connect to TaiDoc/TD-4235B/td42xx #118

@mrfloppy42

Description

@mrfloppy42

I have a "GlucoRx Q". Digging about and it seems this is a rebrand of TD-4235B. Following the instructions in the README.md (confirmed all deps installed), and I get:

# ./glucometer.py --driver td42xx info
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/serial/urlhandler/protocol_cp2110.py", line 86, in open
    self._hid_handle.open_path(portpath)
  File "hid.pyx", line 142, in hid.device.open_path
OSError: open failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/Icecream/GIT/glucometerutils/./glucometer.py", line 10, in <module>
    glucometer.main()
  File "/home/Icecream/GIT/glucometerutils/glucometerutils/glucometer.py", line 118, in main
    device = requested_driver.device(args.device)
  File "/home/Icecream/GIT/glucometerutils/glucometerutils/drivers/td42xx.py", line 148, in __init__
    super().__init__(f"cp2110://{device}")
  File "/home/Icecream/GIT/glucometerutils/glucometerutils/support/serial.py", line 60, in __init__
    self.serial_ = serial.serial_for_url(
  File "/usr/local/lib/python3.10/dist-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.10/dist-packages/serial/urlhandler/protocol_cp2110.py", line 88, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno None] could not open port cp2110://None: open failed

I've also tried with all devices (using --device) that it creates (mainly /dev/hidraw0 but it generates some UID-based usb things under dev also - anything I add replaces "None" in: cp2110://None)

Syslog of plugging in the device:

Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4743.908653] usb 1-2: new full-speed USB device number 88 using xhci_hcd
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060228] usb 1-2: New USB device found, idVendor=10c4, idProduct=ea80, bcdDevice= 1.00
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060243] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060249] usb 1-2: Product: CP2110 HID USB-to-UART Bridge
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060254] usb 1-2: Manufacturer: Silicon Laboratories
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060258] usb 1-2: SerialNumber: 00DBA102
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.071839] hid-generic 0003:10C4:EA80.000C: hiddev0,hidraw0: USB HID v1.11 Device [Silicon Laboratories CP2110 HID USB-to-UART Bridge] on usb-0000:00:14.0-2/input0
Sep 15 15:13:15 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4745.038021] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:16 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4746.004747] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:16 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4746.004888] usb usb1-port8: attempt power cycle
Sep 15 15:13:17 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4747.288447] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4748.256727] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4748.256877] usb usb1-port8: unable to enumerate USB device
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: checking bus 1, device 88: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: bus: 1, device: 88 was not an MTP device
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: checking bus 1, device 88: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: bus: 1, device: 88 was not an MTP device
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4743.908653] usb 1-2: new full-speed USB device number 88 using xhci_hcd
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060228] usb 1-2: New USB device found, idVendor=10c4, idProduct=ea80, bcdDevice= 1.00
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060243] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060249] usb 1-2: Product: CP2110 HID USB-to-UART Bridge
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060254] usb 1-2: Manufacturer: Silicon Laboratories
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.060258] usb 1-2: SerialNumber: 00DBA102
Sep 15 15:13:14 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4744.071839] hid-generic 0003:10C4:EA80.000C: hiddev0,hidraw0: USB HID v1.11 Device [Silicon Laboratories CP2110 HID USB-to-UART Bridge] on usb-0000:00:14.0-2/input0
Sep 15 15:13:15 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4745.038021] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:16 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4746.004747] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:16 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4746.004888] usb usb1-port8: attempt power cycle
Sep 15 15:13:17 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4747.288447] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4748.256727] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th kernel: [ 4748.256877] usb usb1-port8: unable to enumerate USB device
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: checking bus 1, device 88: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: bus: 1, device: 88 was not an MTP device
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: checking bus 1, device 88: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Sep 15 15:13:18 Icecream-ThinkPad-X1-Carbon-6th mtp-probe: bus: 1, device: 88 was not an MTP device

system info:

pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

let me know if there's anythign else I can provide?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions