Controlling Serial Port from Web Browser with Perl (And updating HTML textarea with incoming data)
Posted on 2008-11-05
I have an embedded device I would like to control through a web browser.
I've got my webserver and Perl interpreter running and executing Perl code. I have also been able to print incoming text from the embedded device to a inline frame on a "control" web page. (All local)
At this point, I believe I am missing something rather basic to put this whole webapp together.
Once I start the serial port process up and have data being fed to my HTML page, how do I:
1. Re-establish communication with the running CGI process so that I may make configuration changes to the serial port, or send data to the embedded device.
I.e. Raise the DTR signal, change baudrate/commport/parity etc.
2. Stop the web browser from continually looking like it's continually loading data.
I.e. Spinning hourglass or "Transferring data from" message in the web browser.
Seems doable, but out of my reach at the current moment.