Calling a Command
Commands always start with the uppercase name, which can be followed by parameters which are separated by a semicolon and terminated with a newline \n.
Reply
Replies always start with an echo of the command followed by a semicolon and a return code indicating success or error. The next lines contain the response of the call. Every response line is terminated with a single \n newline character. The reply is finally terminated with another \n newline character. It is best practice to wait for a double \n\n new line as indication for the end of the call. \n\n will never be part of the response data.
Parameters and Response Values
All numbers are transferred as hex numbers, without any prefixes (like 0x), in lowercase letters and always with leading zeros.
Return Codes
|
00 |
success, no error |
|
10-1f |
command specific error, see command description |
|
ff |
error unknown command or parameter(s), unless caught by return codes 10-1f |