SOTAmat / SOTAcat

CAT control for Elecraft KX radios and SOTAMAT
https://sotamat.com
Other
9 stars 2 forks source link

Update the web page to show a “connected” to radio state #8

Closed jeffkowalski closed 4 months ago

jeffkowalski commented 4 months ago

This requires serial communication with the radio at regular intervals. Due to the RTOS and FT8 timing issues we need some way to mutex and or buffer serial communication with the radio. If the HTML page is polling the radio via serial at the same time that the user does a click-to-pounce REST call, multi-step UART commands would get messed up. The ESP-IDF has a nice RTOS priority model similar to VAX VMS (absolute priority levels, and then shared time within a priority level).

jeffkowalski commented 4 months ago

note: it looks like "TQ" is a reasonable request to make of the radio. It queries whether the radio is transmitting or not. We'd still want to avoid/defer this call when we're actually doing something critical like FT8, but from the docs, it appears to be a low-cost call.

jeffkowalski commented 4 months ago

Made a new issue to track protecting critical operations. This enhancement request is now simply about the Web UI to show connection status.