From 8bf5da8ccc98b4be9b84071380065678f8e48de3 Mon Sep 17 00:00:00 2001 From: Maurizio Porrato Date: Mon, 11 Feb 2019 08:08:05 +0000 Subject: [PATCH] Update protocol documentation --- protocol.txt | 117 ++++++++++++++++++++++----------------------------- 1 file changed, 50 insertions(+), 67 deletions(-) diff --git a/protocol.txt b/protocol.txt index 50a7b1e..e2c3f14 100644 --- a/protocol.txt +++ b/protocol.txt @@ -1,10 +1,13 @@ -AGC: H:3ms L:3ms - 0: H:400µs L:600µs - 1: H:400µs L:1.6ms + Preamble: H:3ms L:3ms +Logical 0: H:400µs L:600µs +Logical 1: H:400µs L:1.6ms + Trailer: H:400µs L:20ms -Frame: (AGC+48bits+H:400µs+L:20ms)*3 +No carrier modulation. -Format: 68CCHHMMSSKK +Frame: (Preamble+48bits+Trailer)*3 + +Format: 68CCHHMMSSKK (Hex, MSB first) CC: command HH: hour @@ -12,7 +15,7 @@ Format: 68CCHHMMSSKK SS: schedule (in quarters of an hour from midnight, 0xff=off) KK: checksum (sum of all bytes in the frame modulo 256) - Code | Command + CC | Command ------+--------- 1c | Max power 1d | BoostIQ @@ -31,85 +34,65 @@ Format: 68CCHHMMSSKK df | Clear schedule ef | Return to base -0110 1000 0101 1101 0000 1111 0010 0111 0010 1000 0010 0011 Start -685d0f272823 +Examples: -0110 1000 0100 1111 0000 1111 0010 0111 0010 1000 0001 0101 Stop -684f0f272815 + 0110 1000 0101 1101 0000 1111 0010 0111 0010 1000 0010 0011 Start + 685d0f272823 -0110 1000 0101 1101 0001 0001 0000 0010 0010 1000 0000 0000 Start -685d11022800 + 0110 1000 0100 1111 0000 1111 0010 0111 0010 1000 0001 0101 Stop + 684f0f272815 -0110 1000 0100 1111 0001 0001 0000 0010 0010 1000 1111 0010 Stop -684f110228f2 + 0110 1000 1011 1111 0001 0001 0010 0100 0010 1000 1000 0100 Time (5:36pm) + 68bf11242884 -0110 1000 1011 1111 0001 0001 0010 0100 0010 1000 1000 0100 Time (5:36pm) -68bf11242884 + 0110 1000 1011 1111 0001 0001 0010 1011 0010 1000 1000 1011 Time (5:43pm) + 68bf112b288b -0110 1000 1011 1111 0001 0001 0010 1011 0010 1000 1000 1011 Time (5:43pm) -68bf112b288b + 0110 1000 1100 1111 0001 0011 0010 0000 0010 1000 1001 0010 Schedule 10:00am + 68cf13202892 -0110 1000 1011 1111 0001 0001 0010 1011 0010 1000 1000 1011 Time (5:43pm +1.3s) -68bf112b288b + 0110 1000 1100 1111 0001 0011 0010 1011 0010 1001 1001 1110 Schedule 10:15am + 68cf132b299e -0110 1000 1011 1111 0001 0010 0000 0110 0010 1000 0110 0111 Time (T:6:06pm A:10:00am) -68bf12062867 - HHMM + 0110 1000 1100 1111 0001 0011 0011 0000 0101 1111 1101 1001 Schedule 11:45pm + 68cf13305fd9 -0110 1000 0101 1101 0001 0010 0000 0110 0010 1000 0000 0101 Start -685d12062805 + 0110 1000 1101 1111 0001 0011 0011 0110 1111 1111 1000 1111 Schedule off + 68df1336ff8f -0110 1000 0100 1111 0001 0010 0000 0110 0010 1000 1111 0111 Stop (start+0.9s) -684f120628f7 + 0110 1000 0101 1101 0001 0100 0000 0110 1111 1111 1101 1110 Start + 685d1406ffde -0110 1000 1100 1111 0001 0011 0010 0000 0010 1000 1001 0010 Schedule 10:00am -68cf13202892 + 0110 1000 0001 1100 0001 0100 0001 1001 1111 1111 1011 0000 Power (BoostIQ->Max) + 681c1419ffb0 -0110 1000 1100 1111 0001 0011 0010 1011 0010 1001 1001 1110 Schedule 10:15am -68cf132b299e + 0110 1000 0001 1110 0001 0100 0001 1110 1111 1111 1011 0111 Power (Max->Standard) + 681e141effb7 -0110 1000 1100 1111 0001 0011 0011 0000 0101 1111 1101 1001 Schedule 11:45pm -68cf13305fd9 + 0110 1000 0001 1101 0001 0100 0001 1110 1111 1111 1011 0110 Power (Standard->BoostIQ) + 681d141effb6 -0110 1000 1101 1111 0001 0011 0011 0110 1111 1111 1000 1111 Schedule off -68df1336ff8f + 0110 1000 0010 1111 0001 0100 0010 1110 1111 1111 1101 1000 Up + 682f142effd8 -0110 1000 0101 1101 0001 0100 0000 0110 1111 1111 1101 1110 Start -685d1406ffde + 0110 1000 0111 1111 0001 0100 0010 1110 1111 1111 0010 1000 Down + 687f142eff28 -0110 1000 0100 1111 0001 0100 0001 0010 1111 1111 1101 1100 Auto -684f1412ffdc + 0110 1000 0011 1111 0001 0100 0010 1110 1111 1111 1110 1000 Left + 683f142effe8 -0110 1000 0001 1100 0001 0100 0001 1001 1111 1111 1011 0000 Power (BoostIQ->Max) -681c1419ffb0 + 0110 1000 0110 1111 0001 0100 0010 1110 1111 1111 0001 1000 Right + 686f142eff18 -0110 1000 0001 1110 0001 0100 0001 1110 1111 1111 1011 0111 Power (Max->Standard) -681e141effb7 + 0110 1000 1000 1100 0001 0101 0000 0100 1111 1111 0000 1100 Spot + 688c1504ff0c -0110 1000 0001 1101 0001 0100 0001 1110 1111 1111 1011 0110 Power (Standard->BoostIQ) -681d141effb6 + 0110 1000 1001 1100 0001 0101 0000 1000 1111 1111 0010 0000 Edge + 689c1508ff20 -0110 1000 0010 1111 0001 0100 0010 1110 1111 1111 1101 1000 Up -682f142effd8 + 0110 1000 1010 1101 0001 0101 0000 1100 1111 1111 0011 0101 Room + 68ad150cff35 -0110 1000 0111 1111 0001 0100 0010 1110 1111 1111 0010 1000 Down -687f142eff28 - -0110 1000 0011 1111 0001 0100 0010 1110 1111 1111 1110 1000 Left -683f142effe8 - -0110 1000 0110 1111 0001 0100 0010 1110 1111 1111 0001 1000 Right -686f142eff18 - -0110 1000 1000 1100 0001 0101 0000 0100 1111 1111 0000 1100 Spot -688c1504ff0c - -0110 1000 1001 1100 0001 0101 0000 1000 1111 1111 0010 0000 Edge -689c1508ff20 - -0110 1000 1010 1101 0001 0101 0000 1100 1111 1111 0011 0101 Room -68ad150cff35 - -0110 1000 1110 1111 0001 0101 0001 0000 1111 1111 0111 1011 Base -68ef1510ff7b + 0110 1000 1110 1111 0001 0101 0001 0000 1111 1111 0111 1011 Base + 68ef1510ff7b