-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ValueError: The device has no langid" after installing Facedancer on Windows #169
Comments
Did you try to use I learned that the WinUSB driver allows only bound access to a single process per device. That means if You should make sure that only a single process is accessing the device so either Cynthion CLI or Packetry but not both at the same time. |
We need to update the documentation to say this, but Facedancer only works on Linux and macOS at this time. |
Packetry was closed before trying Facedancer, unless there's a background process keeping something open.
Ah... that makes sense then! Would you expect that to break the analyzer functionality on Windows, and are there instructions on completely removing/reinstalling Cynthion? I used pip install to install Cynthion and Facedancer but pip uninstall didn't fix it. Thanks! |
It looks like I was able to resolve this by plugging the Cynthion device into the computer, opening Device Manager and manually clicking "Uninstall device" for both "USB Analyzer" devices under "Universal Serial Bus devices"... then right-clicking and selecting Scan for hardware changes to reinstall. This seems to have brought back the original functionality I had before running Facedancer. BTW, since I had done this on two different computers, I took before/after screenshots of the 2nd one, and didn't notice any obvious differences between what was installed and what got reinstalled (same driver/version, VID/PID, etc), but presumably there was some minor difference, something cached, etc. And thanks again for clarification on Facedancer... I'll try it on my Ubuntu laptop. |
I actually encountered this issue yesterday while trying to test some things, and I was able to resolve it similarly. I wasn't 100% sure at the time that I hadn't done something else wrong to cause the problem, but it matched your experience closely. These steps worked for me to get the analyzer gateware working again:
|
I recently received my Cynthion device, and have been working through the "Getting Started" guide ( https://cynthion.readthedocs.io/en/latest/getting_started.html ). Everything was successful through the "Using Cynthion with Packetry" step, but the "Using Cynthion with Facedancer" ( https://cynthion.readthedocs.io/en/latest/getting_started_facedancer.html ) seems to break Cynthion functionality for me.
Everything appears to be successful until the "cynthion info" step, which returns:
And the Facedancer demos fail as well.
If I click the program button, running "cynthion info" is successful again (with only LED A lit). But I'm no longer able to run analyzer on the PC. If I run "cynthion run analyzer", LEDs A-D light, and running "cynthion info" outputs the same langid error. And Packetry now complains "The device is not usable because: Failed to claim interface".
I initially tested on a Windows 10 laptop and got the exact same error. To make sure the device didn't get flashed a bad image or something, I ran through the process again on a Windows 11 desktop, which again worked great until the Facedancer step. So it seems to be a reproducible software issue (or I'm consistently doing something wrong).
Lastly, I tried "pip uninstall facedancer" and "pip uninstall cynthion", then starting over from the beginning, but get the langid error from the start.
Any help or ideas?
The text was updated successfully, but these errors were encountered: