Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Ratpack
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Frontend usart interface
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:Index]] USART protocol for talking with frontend == HELP == - debug command, prints out command and description of usage for all commands registered Example format (THESE ARENT REAL COMMANDS) help: prints command output and description for all commands dump_debug: starts writing raw adc data to terminal listknownmessages_gui: returns a list of indices of messages the board knows about == list_indicies_of_known_messages == A returns a space separated list of indicies of every index of every known messages. Each message recieved/put out gets a per-board index. Example format list_indicies_of_known_messages <= command to stm 4 5 6 7 8 <= from stm == print_message [int n] == Prints a pgp-like formatted message stored in the stm's memeory Example format print_message <= command to stm 5 <= command to stm this is my message you can't have lines over 40 chars or lines with a pipe but that's okay| <= text from board, raw text of message, | terminated == send_message_to_board == Puts the board into uart multi-line receiving mode, interface will send the string content of a message, maybe format it to handle required feilds. Example format send_message_to_board <= command to stm 0010 <= recipient id, sent from gui to stm this is my very cool message it contains a couple of lines and some fun smiles :) :p| <= text to stm, raw text of message, | terminated The gui will then write out the message content to be sent out by the board == load_callsign_into_board == Puts board into one line uart receiving mode, then the gui enters a callsign as text, to be sent out at the end of each message per fcc SUBJECT TO CHANGE! WE probably don't feel like writing a ascii => morse thing then a manual beeper, we may want to hardcode that Example format load_callsign_into_board <= command to stm aadaaa <= callsign as text sent to stm from gui controller Notes: - serial number id is hardcoded -
Summary:
Please note that all contributions to Ratpack may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Ratpack:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)