This commit is contained in:
King Kévin 2014-12-28 20:15:38 +01:00
parent f8d376888a
commit 5758e46a72
1 changed files with 5 additions and 5 deletions

View File

@ -166,12 +166,12 @@ I used a Saleae Logic 16 logic analyzer to monitor the traffic.
The EEPROM contains the programmed/learned codes which will activate the relay.
If the code 0xABCDEF is tranmitted, the microcontroller with read the byte at address 0x(B&7)ECD.
The bits in this byte will tell which even value D is authorized (odd values are rounded down).
If the byte = 0x01, only D = 0x0 (and 0x1) is authorized.
If the byte = 0x02, only D = 0x2 (and 0x3) is authorized.
If the byte = 0x01, only F = 0x0 (and 0x1) is authorized.
If the byte = 0x02, only F = 0x2 (and 0x3) is authorized.
...
If the byte = 0x80, only D = 0xe (and 0xf) is authorized.
If the byte = 0x03, only D = 0x0, 0x1, 0x2, and 0x3 are authorized.
If the byte = 0x07, only D = 0x0, 0x1, 0x2, 0x3, 0x4, 0x5 are authorized.
If the byte = 0x80, only F = 0xe (and 0xf) is authorized.
If the byte = 0x03, only F = 0x0, 0x1, 0x2, and 0x3 are authorized.
If the byte = 0x07, only F = 0x0, 0x1, 0x2, 0x3, 0x4, 0x5 are authorized.
This is quite clever as the ID is used as address.
It saves space, although there is by for too much available.