From 8294ed270bce6b563efc1859a8049e018818e1be Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 5 Jan 2023 14:30:24 +0100 Subject: proper protocol spec get-node response --- shared/protocol-tests/get-node-response.src | 135 ++++++++++++++-------------- 1 file changed, 69 insertions(+), 66 deletions(-) diff --git a/shared/protocol-tests/get-node-response.src b/shared/protocol-tests/get-node-response.src index a8fa695..f10ffe0 100644 --- a/shared/protocol-tests/get-node-response.src +++ b/shared/protocol-tests/get-node-response.src @@ -8,69 +8,72 @@ 07: f8 ; ^ 08: 00 ; remaining response size (0x35 = 53 bytes) 09: 35 ; ^ --------; |- remaining response (cd_s_cmd_node) -0a: ff ; | [esc] -0b: ff ; | uuid (ffffffff-0000-0000-dead-beef00000000) -0c: ff ; | [esc] -0d: ff ; | ^ -0e: ff ; | [esc] -0f: ff ; | ^ -10: ff ; | [esc] -11: ff ; | ^ -12: 00 ; | ^ -13: 00 ; | ^ -14: 00 ; | ^ -15: 00 ; | ^ -16: de ; | ^ -17: ad ; | ^ -18: be ; | ^ -19: ef ; | ^ -1a: 00 ; | ^ -1b: 00 ; | ^ -1c: 00 ; | ^ -1d: 00 ; | ^ -1e: ff ; | [esc] -1f: ff ; | mac address (ff:00:ff:00:ff:00) -20: 00 ; | ^ -21: ff ; | [esc] -22: ff ; | ^ -23: 00 ; | ^ -24: ff ; | [esc] -25: ff ; | ^ -26: 00 ; | ^ -27: 04 ; | name length (0x04 = 4) -28: 00 ; | light on (0x00 = false) -29: 00 ; | provisioned (0x00 = false) -2a: de ; | button publish address (0xdeadbeef) -2b: ad ; | ^ -2c: be ; | ^ -2d: ef ; | ^ -2e: 00 ; | link count (0x0001 = 1) -2f: 01 ; | ^ -30: 00 ; | remaining size (0x14 = 20 bytes) -31: 14 ; | ^ --------; | |- remaining response (char[4], cd_uuid_t[1]) -32: 67 ; | | node name ("gert") -33: 65 ; | | ^ -34: 72 ; | | ^ -35: 74 ; | | ^ -36: ff ; | | [esc] -37: ff ; | | link[0] uuid (ffffffff-0000-0000-dead-beef00000000) -38: ff ; | | [esc] -39: ff ; | | ^ -3a: ff ; | | [esc] -3b: ff ; | | ^ -3c: ff ; | | [esc] -3d: ff ; | | ^ -3e: 00 ; | | ^ -3f: 00 ; | | ^ -40: 00 ; | | ^ -41: 00 ; | | ^ -42: de ; | | ^ -43: ad ; | | ^ -44: be ; | | ^ -45: ef ; | | ^ -46: 00 ; | | ^ -47: 00 ; | | ^ -48: 00 ; | | ^ -49: 00 ; | | ^ +-------; |- remaining response (cd_s_cmd_response_get_node) +0a: 00 ; | node count (0x0001 = 1) +0b: 01 ; | ^ +-------; | |- remaining response (cd_s_cmd_node[1]) +0c: ff ; | | [esc] +0d: ff ; | | uuid (ffffffff-0000-0000-dead-beef00000000) +0e: ff ; | | [esc] +0f: ff ; | | ^ +10: ff ; | | [esc] +11: ff ; | | ^ +12: ff ; | | [esc] +13: ff ; | | ^ +14: 00 ; | | ^ +15: 00 ; | | ^ +16: 00 ; | | ^ +17: 00 ; | | ^ +18: de ; | | ^ +19: ad ; | | ^ +1a: be ; | | ^ +1b: ef ; | | ^ +1c: 00 ; | | ^ +1d: 00 ; | | ^ +1e: 00 ; | | ^ +1f: 00 ; | | ^ +20: ff ; | | [esc] +21: ff ; | | mac address (ff:00:ff:00:ff:00) +22: 00 ; | | ^ +23: ff ; | | [esc] +24: ff ; | | ^ +25: 00 ; | | ^ +26: ff ; | | [esc] +27: ff ; | | ^ +28: 00 ; | | ^ +29: 04 ; | | name length (0x04 = 4) +2a: 00 ; | | light on (0x00 = false) +2b: 00 ; | | provisioned (0x00 = false) +2c: de ; | | button publish address (0xdeadbeef) +2d: ad ; | | ^ +2e: be ; | | ^ +2f: ef ; | | ^ +30: 00 ; | | link count (0x0001 = 1) +31: 01 ; | | ^ +32: 00 ; | | remaining size (0x14 = 20 bytes) +33: 14 ; | | ^ +-------; | | |- remaining response (char[4], cd_uuid_t[1]) +34: 67 ; | | | node name ("gert") +35: 65 ; | | | ^ +36: 72 ; | | | ^ +37: 74 ; | | | ^ +38: ff ; | | | [esc] +39: ff ; | | | link[0] uuid (ffffffff-0000-0000-dead-beef00000000) +3a: ff ; | | | [esc] +3b: ff ; | | | ^ +3c: ff ; | | | [esc] +3d: ff ; | | | ^ +3e: ff ; | | | [esc] +3f: ff ; | | | ^ +40: 00 ; | | | ^ +41: 00 ; | | | ^ +42: 00 ; | | | ^ +43: 00 ; | | | ^ +44: de ; | | | ^ +45: ad ; | | | ^ +46: be ; | | | ^ +47: ef ; | | | ^ +48: 00 ; | | | ^ +49: 00 ; | | | ^ +4a: 00 ; | | | ^ +4b: 00 ; | | | ^ -- cgit v1.2.3