TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2021-01-03 22:27:00
subject: Re: How to realize a `ser

 o/~ Talking to myself in public o/~

On Sun, 03 Jan 2021 12:27:42 -0500, Dennis Lee Bieber
 declaimed the following:

> Run a web-server on the R-Pi (nginx?). Create a web-app (flask/django,
>PHP?) which presents a form with 6 sections (one for each serial port, each
>section has a command input field, and a response output field).
>  The most basic form would require a submit button, probably using
>"GET" and the web-app would extract the sent command(s), deliver them to
>the corresponding ports, collect return status (timeout?), then
>refresh/resend the form with now empty input fields but populated response
>fields.
>  Better might be to have the form use AJAX to dynamically send
>commands as entered, and receive responses for each port as they become
>available, instead of undergoing full page refreshes.
>

 This might almost be a built-in...

 Node-Red is available for the R-Pi. There appear to be modules
available to create a web-page "dashboard". So... It should be possible to
define a "flow" for text inputs to a serial port and serial port to an
output (for any responses).

 I'm not familiar with Node-Red, and for some reason was unable to get
said dashboard to display an input item -- I did have a text input node
connected to a serial port (send/receive port node -- there are also
send-only and receive-only nodes).

 This would be simpler than a full-fledged web app and server
configuration, since the flows are defined by drag&drop nodes.


--
 Wulfraed                 Dennis Lee Bieber         AF6VN
 wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.