-
Notifications
You must be signed in to change notification settings - Fork 67
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
HID support #40
Comments
Hello John, A few months ago, we actually developed a proof-of-concept code relying on Anyway, here are a few notes and scripts in the usb branch. Disclaimer: this is highly experimental and probably doesn't work as is, but it might give a few hints. As a side note, usb wasn't supported at all at the time, it might also be of interest. |
Awesome! Will check it out. |
Hi, are there any updates available on this? I would like to use speculos for Testing of the Cardano-App with the cardano-hw-cli, but for that speculos must appear like a normal usb device. Is this possible now? |
Unfortunately no. I guess you can modify the cardano-hw-cli to communicate with speculos through TCP though. |
Good day, $ sudo lsmod $ sudo dmesg $ sudo cat /sys/kernel/debug/usb/devices Real NanoS Differences that I can pick up between the emulated and real device: The usb endpoints are also different: While electrum bitcoin wallet tries to scan for a hardware device, The setup script doesn't have a field called 'usage_page' for the usb Anybody else like to have a go at the setup.sh script? After a bit of further digging about the USB HID structure: The 'usagePage' is the first 2 fields of the descriptor data. Electrum wallet via btchip-python |
Perhaps this can help https://www.kernel.org/doc/Documentation/hid/uhid.txt and https://github.com/torvalds/linux/blob/master/samples/uhid/uhid-example.c ?No that is different (user space driver), butdummy_hcd
andgadgetfs
does.I'll be getting started on this but it would be nice to collaborate with upstream.
The text was updated successfully, but these errors were encountered: