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

Web-serial-polyfill on Android #63

Open
karelv opened this issue Dec 4, 2023 · 2 comments
Open

Web-serial-polyfill on Android #63

karelv opened this issue Dec 4, 2023 · 2 comments

Comments

@karelv
Copy link

karelv commented Dec 4, 2023

My use-case requires a lot of data is sent over the serial port.
In order to test-case it, I made a small Arduino sketch that send every 100ms a 1kByte message.
https://github.com/karelv/web-serial-example/tree/main/dumper-arduino

I found that:

  1. When terminal(xterm) gets more and more data in it, it becomes slower and slower, and finally the webpage crashes.
  2. The API polyfill mode on Android get out of memory and the interface on the page stops working.

The first item yields me this page:
image

Therefore I forked that repo, and I cleared the terminal every second.
main...karelv:serial-terminal:main
I don't intend to PR it, as it is pretty annoying for use, but now I don't get the above 'Snap' page, and instead I got the same error as I previously observed with my own html/javascript implementation using the web-serial-polyfill lib.
As you can see in less than 3 minutes the error appears, as seen from the chrome://device-log.
image

@karelv
Copy link
Author

karelv commented Dec 4, 2023

@karelv
Copy link
Author

karelv commented Dec 4, 2023

Using Samsung Galaxy S21 5G (SM-G991U)

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

1 participant