Skip to content

error for device not found #1

@qxlsz

Description

@qxlsz
In [33]: import ftd2xx as ft

In [34]: ft.listDevices()
Out[34]: [b'AL05J8AO']

In [35]: ft.openEx('AL05J8AO', ft.ftd2xx.OPEN_BY_SERIAL_NUMBER)
---------------------------------------------------------------------------
DeviceError                               Traceback (most recent call last)
<ipython-input-35-13985c480db4> in <module>
----> 1 ft.openEx('AL05J8AO', ft.ftd2xx.OPEN_BY_SERIAL_NUMBER)

~/.dirty/3/ftd2xx/ftd2xx/ftd2xx.py in openEx(id_str, flags)
    106     instance for it"""
    107     h = _ft.FT_HANDLE()
--> 108     call_ft(_ft.FT_OpenEx, id_str, _ft.DWORD(flags), c.byref(h))
    109     return FTD2XX(h)
    110

~/.dirty/3/ftd2xx/ftd2xx/ftd2xx.py in call_ft(function, *args)
     42     status = function(*args)
     43     if status != _ft.FT_OK:
---> 44         raise DeviceError(status)
     45
     46 def listDevices(flags=0):

DeviceError: DEVICE_NOT_FOUND

In [36]: ft.createDeviceInfoList()
Out[36]: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions