reorganized
git-svn-id: http://moon:8086/svn/projects/HendiControl@2 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#<ch>:<object>:<GET|SET>
|
||||
|
||||
#0:POWER:GET
|
||||
#0:POWER:SET <value> ; value={0, 500 .. 3500}
|
||||
|
||||
#0:POTI:GET ; returns {0..1023}
|
||||
#0:SWITCH:GET ; returns {0, 1}
|
||||
|
||||
#0:INTERVAL:GET
|
||||
#0:INTERVAL:SET <value> ; in milliseconds, 0 means no reporting
|
||||
|
||||
Commands:
|
||||
+------------+------+
|
||||
| Header | Data |
|
||||
+------------+------+
|
||||
|SEQ|CODE|LEN| DATA |
|
||||
+------------+------+
|
||||
SEQ = 1..255
|
||||
CODE = Command code
|
||||
LEN = length of data [bytes]
|
||||
|
||||
* Command / Response codes:
|
||||
0x80: OK
|
||||
0xFF: ERR
|
||||
|
||||
Commands
|
||||
0x01: CMD_CONFIG_SET -> RSP_SET_CONFIG, OK, ERR
|
||||
0x02: CMD_CONFIG_GET -> RSP_GET_CONFIG, ERR
|
||||
0x03: CMD_PWR_SET -> RSP_SET_PWR, OK, ERR
|
||||
0x04: CMD_PWR_GET -> RSP_GET_PWR, ERR
|
||||
0x05: CMD_POTI_GET -> RSP_GET_POTI, ERR
|
||||
0x06: CMD_SWITCH_GET -> RSP_GET_SWITCH, ERR
|
||||
|
||||
Responses
|
||||
0x81: RSP_CONFIG_SET
|
||||
0x82: RSP_CONFIG_GET
|
||||
0x83: RSP_PWR_SET
|
||||
0x84: RSP_PWR_GET
|
||||
0x85: RSP_POTI_GET
|
||||
0x86: RSP_SWITCH_GET
|
||||
|
||||
Notifications
|
||||
Are responses with SEQ-number set to 0
|
||||
|
||||
Beispiel
|
||||
CMD_PWR_SET(3500):
|
||||
01, 03, 02, AC, 0D
|
||||
|
||||
|
||||
OK:RSP_PWR_SET:
|
||||
01, 83, 02, AC, 0D
|
||||
|
||||
ERR:
|
||||
01, FF, 02, <2 byte Fehler code>
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#<ch>:<object>:<GET|SET>
|
||||
|
||||
#0:POWER:GET
|
||||
#0:POWER:SET <value> ; value={0, 500 .. 3500}
|
||||
|
||||
#0:POTI:GET ; returns {0..1023}
|
||||
#0:SWITCH:GET ; returns {0, 1}
|
||||
|
||||
#0:INTERVAL:GET
|
||||
#0:INTERVAL:SET <value> ; in milliseconds, 0 means no reporting
|
||||
|
||||
Commands:
|
||||
+------------+------+
|
||||
| Header | Data |
|
||||
+------------+------+
|
||||
|SEQ|CODE|LEN| DATA |
|
||||
+------------+------+
|
||||
SEQ = 1..255
|
||||
CODE = Command code
|
||||
LEN = length of data [bytes]
|
||||
|
||||
* Command / Response codes:
|
||||
0x80: OK
|
||||
0xFF: ERR
|
||||
|
||||
Commands
|
||||
0x01: CMD_CONFIG_SET -> RSP_SET_CONFIG, OK, ERR
|
||||
0x02: CMD_CONFIG_GET -> RSP_GET_CONFIG, ERR
|
||||
0x03: CMD_PWR_SET -> RSP_SET_PWR, OK, ERR
|
||||
0x04: CMD_PWR_GET -> RSP_GET_PWR, ERR
|
||||
0x05: CMD_POTI_GET -> RSP_GET_POTI, ERR
|
||||
0x06: CMD_SWITCH_GET -> RSP_GET_SWITCH, ERR
|
||||
|
||||
Responses
|
||||
0x81: RSP_CONFIG_SET
|
||||
0x82: RSP_CONFIG_GET
|
||||
0x83: RSP_PWR_SET
|
||||
0x84: RSP_PWR_GET
|
||||
0x85: RSP_POTI_GET
|
||||
0x86: RSP_SWITCH_GET
|
||||
|
||||
Notifications
|
||||
Are responses with SEQ-number set to 0
|
||||
|
||||
Beispiel
|
||||
CMD_PWR_SET(3500):
|
||||
01, 03, 02, AC, 0D
|
||||
|
||||
|
||||
OK:RSP_PWR_SET:
|
||||
01, 83, 02, AC, 0D
|
||||
|
||||
ERR:
|
||||
01, FF, 02, <2 byte Fehler code>
|
||||
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#<ch>:<object>:<GET|SET>
|
||||
|
||||
#0:POWER:GET
|
||||
#0:POWER:SET <value> ; value={0, 500 .. 3500}
|
||||
|
||||
#0:POTI:GET ; returns {0..1023}
|
||||
#0:SWITCH:GET ; returns {0, 1}
|
||||
|
||||
#0:INTERVAL:GET
|
||||
#0:INTERVAL:SET <value> ; in milliseconds, 0 means no reporting
|
||||
|
||||
Commands:
|
||||
+------------+------+
|
||||
| Header | Data |
|
||||
+------------+------+
|
||||
|SEQ|CODE|LEN| DATA |
|
||||
+------------+------+
|
||||
SEQ = 1..255
|
||||
CODE = Command code
|
||||
LEN = length of data [bytes]
|
||||
|
||||
* Command / Response codes:
|
||||
0x80: OK
|
||||
0xFF: ERR
|
||||
|
||||
Commands
|
||||
0x01: CMD_CONFIG_SET -> RSP_SET_CONFIG, OK, ERR
|
||||
0x02: CMD_CONFIG_GET -> RSP_GET_CONFIG, ERR
|
||||
0x03: CMD_PWR_SET -> RSP_SET_PWR, OK, ERR
|
||||
0x04: CMD_PWR_GET -> RSP_GET_PWR, ERR
|
||||
0x05: CMD_POTI_GET -> RSP_GET_POTI, ERR
|
||||
0x06: CMD_SWITCH_GET -> RSP_GET_SWITCH, ERR
|
||||
|
||||
Responses
|
||||
0x81: RSP_CONFIG_SET
|
||||
0x82: RSP_CONFIG_GET
|
||||
0x83: RSP_PWR_SET
|
||||
0x84: RSP_PWR_GET
|
||||
0x85: RSP_POTI_GET
|
||||
0x86: RSP_SWITCH_GET
|
||||
|
||||
Notifications
|
||||
Are responses with SEQ-number set to 0
|
||||
|
||||
Beispiel
|
||||
CMD_PWR_SET(3500):
|
||||
01, 03, 02, AC, 0D
|
||||
|
||||
|
||||
OK:RSP_PWR_SET:
|
||||
01, 83, 02, AC, 0D
|
||||
|
||||
ERR:
|
||||
01, FF, 02, <2 byte Fehler code>
|
||||
Reference in New Issue
Block a user