Kramer Protocol
41
41
14.2.1
Protocol 3000 Syntax
Host message format:
Start Address (optional)
Body
Delimiter
#
Destination_id@
message
CR
Simple command (commands string with only one command without
addressing):
start
body
delimiter
#
Command SP Parameter_1,Parameter_2,…
CR
Commands string (formal syntax with commands concatenation and
addressing):
# Address@ Command_1 Parameter1_1
,
Parameter1_2
,…
|Command_
2
Parameter2_1
,
Parameter2_2,
…
|Command_3
Parameter3_1
,
Parameter3_2
,…
|…
CR
Device message format:
Start Address (optional)
Body
Delimiter
~
Sender_id@
message
CR LF
Device long response (
Echoing command
):
Start
Address (optional)
Body
Delimiter
~
Sender_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)
14.2.2
Command Parts Details
Command:
Sequence of ASCII letters ('A'-'Z', 'a'-'z' and '-').
Command will separate from parameters with at least single space.
Parameters:
Sequence of Alfa-Numeric ASCII chars ('0'-'9','A'-'Z','a'-'z' and some special chars for specific commands), parameters will be
separated by commas.
Message string:
Every command must to be entered as part of message string that begin with
message starting char
and end with
message
closing char
, note that string can contain more then one command separated by pipe ("|") char.
Message starting char:
'#' for host command\query.
'~' for machine response.
Device address
(Optional, for Knet):
Knet Device ID follow by '@' char.
Query sign
= '?', will follow after some commands to define query request.