![]() |
Forum Index : Microcontroller and PC projects : No install serial terminal in chrome browser without extensions
Author | Message | ||||
mmiscool Newbie ![]() Joined: 05/11/2015 Location: United StatesPosts: 12 |
The latest version of the chrome web browser has a javascript API for accessing serial devices. I use a Chromebook as my daily driver so having a working serial terminal is something desirable. I was using an extension but I really hate installing extensions as they can some times be shady. I have been using it for configuring 3d printers but it should work with the esp8266, arduinos, ect. I threw together this serial terminal example over the past few days and published it at https://www.serialTerminal.com You only have to select your baud speed and hit connect. It will show you a list of available devices. Just select the one you want to use and you are ready to rock. You can send text to the device and display what the device outputs on the screen. A quick video showing how it works. https://www.youtube.com/watch?v=8577GPmvuUQ Github link for source code. Less than 150 lines between the HTML, CSS and javascript. https://github.com/mmiscool/serialTerminal.com ![]() |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
It scrolls down. Can it be made to scroll up? Micromites and Maximites! - Beginning Maximite |
||||
mmiscool Newbie ![]() Joined: 05/11/2015 Location: United StatesPosts: 12 |
Just pushed a change. This is now the functionality. |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
Excellent! Micromites and Maximites! - Beginning Maximite |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I normally use FireFox which unfortunately doesn't work. Fails at the connect function. It 'almost' works with Edge browser. When you have "send with /r/n" selected, a zero gets appended instead of CRLF files0 Edit: Reason seems to be that Edge doesn't like += if (document.getElementById("addLine").checked == true) dataToSend = dataToSend + "\r\n"; worksNow it needs some way to send control codes such as <ESC> and ^C Jim Edited 2021-03-21 07:57 by TassyJim VK7JH MMedit |
||||
mmiscool Newbie ![]() Joined: 05/11/2015 Location: United StatesPosts: 12 |
I fixed that bug with the zero getting added. Should be good now. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Mike Did you see the PM a I sent you? |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |