Go Down

Topic: USB Host Library 2.0 - What is the proper way to completely shutdown/restart? (Read 96 times) previous topic - next topic


I'm using the USB Host Library's HIDBoot<HID_PROTOCOL_KEYBOARD> to read from a barcode scanner as is described here:  https://www.circuitsathome.com/mcu/connecting-barcode-scanner-arduino-usb-host-shield .  I was hoping there was a straightforward way to detach the device then reinitialize the library.  I've tried simply pulling the MAX3421 reset pin low and then high again, then calling Usb.Init(),  but this doesn't seem to be reliable.  I was hoping there was a cleaner way via software to simulate unplugging the barcode reader and plugging back in.



Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131