ESP32-USB-Soft-Host icon indicating copy to clipboard operation
ESP32-USB-Soft-Host copied to clipboard

Does not support digispark, USBHID emulation

Open fusss9 opened this issue 4 years ago • 9 comments

Does not support digispark, USBHID emulation

fusss9 avatar Aug 29 '21 03:08 fusss9

digispark is a USB input device

fusss9 avatar Aug 29 '21 03:08 fusss9

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/

tobozo avatar Aug 29 '21 06:08 tobozo

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

fusss9 avatar Aug 29 '21 07:08 fusss9

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 ?

tobozo avatar Aug 29 '21 07:08 tobozo

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

fusss9 avatar Aug 29 '21 07:08 fusss9

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.

tobozo avatar Aug 29 '21 07:08 tobozo

ok thank

fusss9 avatar Aug 29 '21 13:08 fusss9

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

nogueira avatar Aug 30 '21 13:08 nogueira

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

tobozo avatar Aug 30 '21 13:08 tobozo