Skip to content

Python can't detect Kinesis K-Cube KDC101, but usb.core() can #36

Description

@jakestephen1

I'm trying to control a KDC101. I am able to control the KDC101 using Thorlabs' Kinesis software, and if I use usb.core.find() I can find the device, and even get the serial number. However, apt.list_available_devices() only gives an empty array, indicating that it does not detect the KDC101.

My code is as follows:

import usb
import thorlabs_apt as apt

PID = 0xFAF0
VID = 0x0403

dev = usb.core.find(idProduct = PID,idVendor = VID)
if not dev:
    print("Device not found.")

else:
    print("Device found.")
    
serial_number =  usb.util.get_string( dev, dev.iSerialNumber )
print(serial_number)

serial_junk = apt.list_available_devices()
print(serial_junk)

The output is:

Device found.
27258145
[]

I have no idea how to fix this. I have tried installing libusb and pyusb and I've created drivers for libusb using Zadig 2.5.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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