🖥️ SimpleModem - Using Modem and Chrome or Edge

Modem: |

mixed

rcvd

sent

input

| | |


waiting Auto Typing: To From These are turned off at the end of the call.

Special words #fast #slow #pause GA

ATS0=0 - modem auto answer

ATE1 - turn on local echo.

ATE0 - turn off local echo.

AT+MS=V21 - puts some modems into V.21 mode 300 baud.

AT+MS=0,,, - puts some modems into V.21 mode 300 baud.

charset="ISO-8859-1" - not UTF8


Flush Text often

flush to modem in short blocks, to limit length of string sent to modem.

Memory Leak

This demo does not delete old text so it is effectivly a memory leak! If left to run for a long time the page gets slower and slower. Re-open it.

This code is based on code found in The Raspbarry Pi HACKSPACE magazine #44 p98,p100
http://hsmag.cc/Simpleterm 
https://www.connectedlittleboxes.com/simpleterm.html
http://hsmag.cc/CLBproject

Local MODEM support.

Chrome and Edge can drive serial ports to support cloud based tools. Plug a modem in, and if seen, you can connect to it, using the connect button.

Modems are controlled by AT commands and send inband keywords like OK, ERROR, CONNECT, RING.

A call back function is used to receive text from the modem and look for the key words. The webpage allows a user to type and keystrokes are monitored to send the text on space or enter.

This page can be used from an HTTPS website or a local file on the desktop.

Web APIs
When writing code for the Web, there are a large number of Web APIs available. 
Below is a list of all the APIs and interfaces (object types) that you may be able to use while developing your Web app or site.
Web APIs are typically used with JavaScript, although this doesn't always have to be the case.
https://developer.mozilla.org/en-US/docs/Web/API
https://developer.mozilla.org/en-US/docs/Web/API/Serial

This works

This was not working but seems to be working now. It seemed to work after I dabbled with modems in Windows Device manager:

This one also works, but does not like AT+MS=V21 :