Skip to content
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

Does not support digispark, USBHID emulation #10

Open
fusss9 opened this issue Aug 29, 2021 · 9 comments
Open

Does not support digispark, USBHID emulation #10

fusss9 opened this issue Aug 29, 2021 · 9 comments

Comments

@fusss9
Copy link

fusss9 commented Aug 29, 2021

Does not support digispark, USBHID emulation

@fusss9
Copy link
Author

fusss9 commented Aug 29, 2021

digispark is a USB input device

@tobozo
Copy link
Owner

tobozo commented Aug 29, 2021

Hi, thanks for your feedback,

do you mean Digispark BadUSB ?

I don't have one so I can't test but my guess is it's not a USB-LE device as this library requires/

@fusss9
Copy link
Author

fusss9 commented Aug 29, 2021

yes,Digispark BadUSB
My test seems to be unable to carry out USB enumeration, but the USB package cannot be caught

@tobozo
Copy link
Owner

tobozo commented Aug 29, 2021

maybe adding a delay(5000) in the setup() on the atTiny will let the esp32 some time to boot and start listening before the atTiny starts USB emulation ?

@fusss9
Copy link
Author

fusss9 commented Aug 29, 2021

I try, how do I feel that USB input devices are not supported。
Because, I wrote two programs to compare.

  1. The led flashes, just plug it in and it will flash
  2. The led flashes + keyboard, the led code is behind the keyboard. Plug in the USB, the led does not flicker

@tobozo
Copy link
Owner

tobozo commented Aug 29, 2021

I assume you're basing your research on this wiki.

it says:

When the digispark boots up, it uses the USB signal to calibrate its clock to 16.5mhz

Now I'm thinking maybe this can't work with usb-soft-host, or maybe it needs a careful calibration with an oscilloscope, but I can only speculate.

@fusss9
Copy link
Author

fusss9 commented Aug 29, 2021

ok thank

@nogueira
Copy link

Any chance to make it work with a barcode reader? It emulates a keyboard but the esp32 don´t recognise it

@tobozo
Copy link
Owner

tobozo commented Aug 30, 2021

@nogueira only if the barcode reader emulates a USB-LS device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants