For an audio system, I’m trying to develop a driver for the Up2Stream Mini that uses the UART port (and not the HTTP API) . So far I have been using this as a specification of the API together with the information in this topic .
I have a number of questions, especially regarding the format of messages.:
- When I send a query, does it need to be terminated with a semi-colon “;”? e.g.
VER;
- I am assuming that all commands to be executed have their parameter list terminated with semi-colon. Am I right? e.g.:
VOL:23;
- How are responses terminated? For instance with a newline:
VOL:23\n
or some other way.?
- In sending a command or query are these also additionally terminated with a newline “\n”? e.g:
BAS;\n
or for an executable command:
BAS:-3;\n
- And finally, what are the logic levels for the UART port,? 3.3V or 5V?
Many thanks if someone can give me some answers.