11.1.2.1Device Long Response
Echoing command:
Start |
| Address (optional) |
| Body |
| Delimiter |
| ||
|
|
|
|
|
|
|
|
|
|
~ |
| device_id@ |
| Command SP [Param1 ,Param2 …] | result |
|
| CR LF | |
|
|
|
|
|
|
|
|
|
|
CR = Carriage return (ASCII 13 = 0x0D)
LF = Line feed (ASCII 10 = 0x0A)
SP = Space (ASCII 32 = 0x20)
11.1.3Command Terms
Command
A sequence of ASCII letters
Command and parameters must be separated by at least one space.
Parameters
A sequence of alphanumeric ASCII characters
Message string
Every command entered as part of a message string begins with a message starting character and ends with a message closing character.
Note: A string can contain more than one command. Commands are separated by a pipe ( '' ) character.
Message starting character '#' – For host command/query '~' – For device response
Device ID (Optional, for
Query sign
'?' follows some commands to define a query request.
Message closing character
CR – For host messages; carriage return (ASCII 13)
CRLF – For device messages; carriage return (ASCII 13) +
29 | |
|
|