Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WebUSB on Android Smartphone #79

Open
TedNIVAN opened this issue Nov 16, 2020 · 2 comments · May be fixed by #80
Open

WebUSB on Android Smartphone #79

TedNIVAN opened this issue Nov 16, 2020 · 2 comments · May be fixed by #80

Comments

@TedNIVAN
Copy link

Hi there,

I have an app (link here) using webusb that works well on PC. I'm able to detect an Arduino board and connect to it.
However when I try to use the same app on an Android phone (Android version 10), I can detect the device but nothing happens when I click the connect button.

1. Do you guys know how to make a webusb app work on Android?
2. Maybe there are some permissions/settings to enable on the phone?

Kind regards,

@reillyeon
Copy link
Collaborator

Which board are you using? There's a known issue (sorry, I can't find the link right now) where SAMD boards don't respond to descriptor requests properly and that breaks connections on Android.

@TedNIVAN
Copy link
Author

I'm using the Arduino NANO 33 IoT board which is indeed a SAMD board.

Any workaround?

reillyeon added a commit that referenced this issue Nov 17, 2020
On SAMD-based boards it appears that the entire control transfer reply
needs to be passed to USB_SendControl() at once. The original code took
advantage of making multiple calls to construct replies from smaller
chunks. This has been rewritten to construct and send the entire
responce at once.

Fixes #79.
@reillyeon reillyeon linked a pull request Nov 17, 2020 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants