Frontend
The frontend is a browser-based tool for operating the async radio device. It also contains debug tools for developing and debugging the device.
Message Exchange[edit]
When a user enters a message on the frontend, it is sent Frontend to Board, and then Board to Board (radio communication). When a message is received and displayed, it is sent Board to Board, and then Board to Frontend.
In both cases, special USART characters are used to wrap messages, flagging them for each system while remaining invisible to terminal users.
Frontend to Board[edit]
Message format:
\x1c[message sender]\x1d:\x1e[message text]\x1f
Messages are sent in this format when entered into the frontend text bar.
The board parses this format as a command, isolating the sender and text strings. In the future, those strings will be entered into the board's message storage.
Board to Frontend[edit]
\x01[message sender]\x02:\x03[message text]\x04
Messages are sent in this format when using the msg command. In the future, this format will also be used to transfer message history to frontend. In both cases, Message_To_Frontend should be used (currently private to usart, but will be made public)
The frontend parses this format as a message, isolating the sender and text strings. These strings are entered into the frontend's message storage and display.