greatscottgadgets / packetry

A fast, intuitive USB 2.0 protocol analysis application for use with Cynthion.
BSD 3-Clause "New" or "Revised" License
143 stars 29 forks source link

Can't connect to cynthion #211

Open sehicfai opened 3 days ago

sehicfai commented 3 days ago

I have following problems with my cynthion device and packetry. I hope you can help me with that or maybe show me where I can get the help for this. Problem Packetry shows me following message: "This device is not usable because: Failed to claim interface". So I checked the documentation provided on the website and check the hardware connectivity:

C:\Users\X>cynthion info Cynthion version: 0.1.7 Apollo version: 1.1.0 Python version: 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)]

Found Apollo stub interface! Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\X\AppData\Local\Programs\Python\Python312\Scripts\cynthion.exe__main.py", line 7, in File "C:\Users\X\AppData\Local\Programs\Python\Python312\Lib\site-packages\cynthion\commands\cli.py", line 92, in main args.func(args) File "C:\Users\X\AppData\Local\Programs\Python\Python312\Lib\site-packages\cynthion\commands\cynthion_info.py", line 19, in cynthion_info if ApolloDebugger.print_info(force_offline=args.force_offline, out=logging.info, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\X\AppData\Local\Programs\Python\Python312\Lib\site-packages\apollo_fpga\init__.py", line 436, in print_info out(f"\tBitstream: {device.product} ({device.manufacturer})") ^^^^^^^^^^^^^^ File "C:\Users\X\AppData\Local\Programs\Python\Python312\Lib\site-packages\usb\core.py", line 875, in product self._product = util.get_string(self, self.iProduct) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\X\AppData\Local\Programs\Python\Python312\Lib\site-packages\usb\util.py", line 313, in get_string raise ValueError("The device has no langid" ValueError: The device has no langid (permission issue, no string descriptors supported or device error)

When using the pc of my colleague it work fine. I am not sure where my mistake is. I tried following things:

miek commented 3 days ago

Another user had a similar issue here: https://github.com/greatscottgadgets/cynthion/issues/169#issuecomment-2282295209 and there's some steps posted in that thread which may fix it. Could you try those out and let us know if it helps?