-
Notifications
You must be signed in to change notification settings - Fork 198
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
"sendpin" command hangs when connected to a Trezor Model One #636
Comments
No. To enter the PIN 1111 you have to enter 6666. (It's the other way around). |
Both types of mapping cause the command line to hang. Just to verify that things are working, I ran ./Trezor-Suite-22.9.3-linux-x86_64.AppImage and it shows a keypad with dots on the computer, and a scrambled keypad on the device. Entering the pin 1111 in the right "position" on the desktop unlocks the wallet. Additionally, after the pin unlocked the device for the desktop app (/Trezor-Suite-22.9.3-linux-x86_64.AppImage), I closed the desktop app and ran the promptpin command on the commandline again, where it hangs again. My guess is that it has something to do with session management on the device side, but I could be wrong. |
Does it help if you reboot and try again? (Do not start Trezor Suite before!) |
I can start again at "enumerate" if I disconnect and reconnect the hardware wallet. Promptpin works after that, but sendpin fails again. Is that what you mean? |
No, reboot is as in reboot your computer. |
Also, do you have the udev files installed? https://wiki.trezor.io/Udev_rules |
Reboot of the computer doesn't help. Without "priming" the Trezor with the promptpin command, just sending a dummy sendpin command doesn't hang, but returns a success: false message.
In other information, I have the following versions of the software.
Trezor firmware version 1.11.2 |
Any ideas @matejcik ? |
I can reproduce the problem locally. |
full stack trace at the stuck point is helpful:
offending call: |
Passing the device path works, as it prevents the find_device call.
The offending call is here: Line 280 in e731395
|
I think this issue should be re-opened. I just hit this today using a Trezor One for the first time with HWI. As described in the OP, the following command is successful:
But this command will indefinitely hang:
The only way to
I think two changes should be made to avoid user confusion:
|
Commands to reproduce the problem.
When this command runs, the device shows the keypad in a randomzied order, for example:
2 3 5
6 7 1
9 4 8
Say my pin is "1111", I believe I have to send the pin "9999" (real pin mapped to the randomized keypad).
$./hwi --device-type trezor sendpin 9999
This command hangs in the TrezorLib interruptRead command here:
HWI/hwilib/devices/trezorlib/transport/webusb.py
Line 76 in d6a8cde
Any ideas what I am doing wrong with respect to the Trezor state machine protocol? Is there some other order in which promptpin and sendpin have to be used?
The text was updated successfully, but these errors were encountered: