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

serial api(polyfill) show "access Denied" in windows and android chrome. #39

Open
tejas297 opened this issue May 17, 2022 · 5 comments
Open

Comments

@tejas297
Copy link

**I am using this API in windows and android based chrome browser. while I am connecting my serial device the error shown in the console that "access denied"(attached images below ).

Screenshot 2022-05-17 100859

the error is on this line.
Screenshot 2022-05-17 101800**

@reillyeon
Copy link
Collaborator

On Windows, opening a USB device requires the system to have loaded the "WinUSB" device driver. Since Windows comes with serial drivers already, you have to manually replace this driver in order to test the polyfill on this platform. You can do that using the Zadig tool.

If you are hitting the same issue on Android then you are probably running into the issue I mentioned on Stackoverflow where Android is loading drivers for the device even though there's no API for an Android app to actually communicate with the device through that driver. We're tracking a potential fix for that in https://crbug.com/1099521.

@arcbtc
Copy link

arcbtc commented Nov 10, 2022

Is there a fix for this yet? Having web-dev serial available for android creates a whole load of interesting uses for microcontrollers. Webbdev nfc is available, and is useful.

@brandonros
Copy link

Is there a fix for this yet? Having web-dev serial available for android creates a whole load of interesting uses for microcontrollers. Webbdev nfc is available, and is useful.

Sounds like not. The only idea I can think of is to make an Android APK that is basically a WebView with some kind of bridge for IPC?

That's assuming the Android app/APK will be able to call this "detach kernel module" function for USB devices.

@rfermontero
Copy link

I'm not able to use it from an android webview either. Seems API does not exists because is always undfefined.

@reillyeon
Copy link
Collaborator

I'm not able to use it from an android webview either. Seems API does not exists because is always undfefined.

WebUSB support for Android WebView is tracked in crbug.com/933055. Please star that issue to show you are interested in it being developed.

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

5 participants