Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:10 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

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 States
Posts: 12
Posted: 05:00am 19 Mar 2021
Copy link to clipboard 
Print this post

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 States
Posts: 1427
Posted: 03:41pm 19 Mar 2021
Copy link to clipboard 
Print this post

It scrolls down. Can it be made to scroll up?
Micromites and Maximites! - Beginning Maximite
 
mmiscool
Newbie

Joined: 05/11/2015
Location: United States
Posts: 12
Posted: 11:48pm 19 Mar 2021
Copy link to clipboard 
Print this post

Just pushed a change. This is now the functionality.
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 04:45pm 20 Mar 2021
Copy link to clipboard 
Print this post

Excellent!
Micromites and Maximites! - Beginning Maximite
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:34pm 20 Mar 2021
Copy link to clipboard 
Print this post

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";
works

Now 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 States
Posts: 12
Posted: 02:29am 21 Mar 2021
Copy link to clipboard 
Print this post

I fixed that bug with the zero getting added. Should be good now.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 08:40am 21 Mar 2021
Copy link to clipboard 
Print this post

Mike

Did you see the PM a I sent you?
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025