diff --git a/protocol.md b/protocol.md new file mode 100644 index 0000000..abad1d4 --- /dev/null +++ b/protocol.md @@ -0,0 +1,72 @@ +Eufy RoboVac 11s IR protocol +============================ + +## Timings + +| Timings | High | Low | +|---------:|-------:|------:| +| Preamble | 3ms | 3ms | +|Logical 0 | 400µs | 600µs | +|Logical 1 | 400µs | 1.6ms | +| Trailer | 400µs | 20ms | + +No carrier modulation. + +Frame: (Preamble+48bits+Trailer)*3 + +Format: 68CCHHMMSSKK (Hex, MSB first) + +## Frame contents + +Section| Description +:-----:|:------------- + CC | command + HH | hour + MM | minute + SS | schedule (in quarters of an hour from midnight, 0xff=off) + KK | checksum (sum of all bytes in the frame modulo 256) + + CC | Command +:----:|:-------- + 1c | Max power + 1d | BoostIQ + 1e | Standard power + 2f | Forward + 3f | Turn CCW + 4f | Stop cleaning + 5d | Auto cleaning + 6f | Turn CW + 7f | Backward + 8c | Spot cleaning + 9c | Edge cleaning + ad | Room cleaning + bf | Set time + cf | Set schedule + df | Clear schedule + ef | Return to base + +## Examples + +| Hex | Description +|:------------:|:--------------------------- +| 685d0f272823 | Start +| 684f0f272815 | Stop +| 68bf11242884 | Time (5:36pm) +| 68bf112b288b | Time (5:43pm) +| 68cf13202892 | Schedule 10:00am +| 68cf132b299e | Schedule 10:15am +| 68cf13305fd9 | Schedule 11:45pm +| 68df1336ff8f | Schedule off +| 685d1406ffde | Start +| 681c1419ffb0 | Power (BoostIQ->Max) +| 681e141effb7 | Power (Max->Standard) +| 681d141effb6 | Power (Standard->BoostIQ) +| 682f142effd8 | Up +| 687f142eff28 | Down +| 683f142effe8 | Left +| 686f142eff18 | Right +| 688c1504ff0c | Spot +| 689c1508ff20 | Edge +| 68ad150cff35 | Room +| 68ef1510ff7b | Base + diff --git a/protocol.txt b/protocol.txt deleted file mode 100644 index 14a5cc1..0000000 --- a/protocol.txt +++ /dev/null @@ -1,101 +0,0 @@ -Eufy RoboVac 11s IR protocol -============================ - - 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 - -No carrier modulation. - -Frame: (Preamble+48bits+Trailer)*3 - -Format: 68CCHHMMSSKK (Hex, MSB first) - - CC: command - HH: hour - MM: minute - SS: schedule (in quarters of an hour from midnight, 0xff=off) - KK: checksum (sum of all bytes in the frame modulo 256) - - CC | Command -------+--------- - 1c | Max power - 1d | BoostIQ - 1e | Standard power - 2f | Forward - 3f | Turn CCW - 4f | Stop cleaning - 5d | Auto cleaning - 6f | Turn CW - 7f | Backward - 8c | Spot cleaning - 9c | Edge cleaning - ad | Room cleaning - bf | Set time - cf | Set schedule - df | Clear schedule - ef | Return to base - -Examples: - - 0110 1000 0101 1101 0000 1111 0010 0111 0010 1000 0010 0011 Start - 685d0f272823 - - 0110 1000 0100 1111 0000 1111 0010 0111 0010 1000 0001 0101 Stop - 684f0f272815 - - 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 1100 1111 0001 0011 0010 0000 0010 1000 1001 0010 Schedule 10:00am - 68cf13202892 - - 0110 1000 1100 1111 0001 0011 0010 1011 0010 1001 1001 1110 Schedule 10:15am - 68cf132b299e - - 0110 1000 1100 1111 0001 0011 0011 0000 0101 1111 1101 1001 Schedule 11:45pm - 68cf13305fd9 - - 0110 1000 1101 1111 0001 0011 0011 0110 1111 1111 1000 1111 Schedule off - 68df1336ff8f - - 0110 1000 0101 1101 0001 0100 0000 0110 1111 1111 1101 1110 Start - 685d1406ffde - - 0110 1000 0001 1100 0001 0100 0001 1001 1111 1111 1011 0000 Power (BoostIQ->Max) - 681c1419ffb0 - - 0110 1000 0001 1110 0001 0100 0001 1110 1111 1111 1011 0111 Power (Max->Standard) - 681e141effb7 - - 0110 1000 0001 1101 0001 0100 0001 1110 1111 1111 1011 0110 Power (Standard->BoostIQ) - 681d141effb6 - - 0110 1000 0010 1111 0001 0100 0010 1110 1111 1111 1101 1000 Up - 682f142effd8 - - 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 -