esp8266-web-interface icon indicating copy to clipboard operation
esp8266-web-interface copied to clipboard

Added chart scroll and 4x performance

Open dimecho opened this issue 2 years ago • 3 comments

Please test before merge.

dimecho avatar Dec 16 '21 23:12 dimecho

Hi Dima, sorry I only got to look at this now. Will test the client side changes later. On the server side you moved enabling of fast uart to the setup routine. That only works if the STM32 boots faster than the ESP. Not sure. Also after a software update fastuart will not be enabled again.

jsphuebner avatar Jan 07 '22 19:01 jsphuebner

OK fair point about ESP vs STM32 boot time competition. Maybe we can have a Sleep-Delay in ESP on startup? The idea was to keep "CMD" loop as simple and clean as possible, even if statements will slow it down. I had it down to about 10ms for 10 results (with complete path HTTP > ESP > STM32 > ESP > HTTP)

dimecho avatar Jan 08 '22 04:01 dimecho

How about handing over control to the client side? You have already started by adding the timeout parameter to the /baud resource. So now you could switch the UART between 115k and 920k with a parameter. The web interface can then switch to fast uart mode in onload(). Also if it doesn't get reply it can try switching back to 115k

jsphuebner avatar Jan 12 '22 15:01 jsphuebner