Inmiddels na vele uren prutsen, coden en testen heb ik een groot deel van de CC1101 lib herschreven, belangrijkste direct merkbare is dat nu het DeviceID instelbaar is tijdens runtime. Minder kans dat anderen die deze lib ook gebruiken je itho bedienen of makkelijker meerdere itho's bedienen met 1 stuk hardware.
Ik heb de structuur van de lib verder zo veel als mogelijk intact gelaten zodat het een drop-in vervanging kan zijn.
Complete lijst met wijzigingen:
* Complete rework of the itho packet section, cleanup and easier to understand, improved stability
* Library structure is preserved, should be a drop in replacement (apart from device id)
* Decode incoming messages to direct usable decimals without further bit-shifting
* DeviceID is now 3 bytes long and can be set during runtime
* Counter2 is now the decimal sum of all bytes in decoded form from deviceType up to the last byte before counter2 subtracted from zero.
* Encode outgoing messages in itho compatible format
* Added ICACHE_RAM_ATTR to 'void ITHOcheck()' for ESP8266/ESP32 compatibility
* Trigger on the falling edge and simplified ISR routine for more robust packet handling
* Move SYNC word from 171,170 further down the message to 179,42,171,42 to filter out more non-itho messages in CC1101 hardware
* Added debug option for outgoing and incoming patterns
Te vinden op github:
https://github.com/arjenhiemstra/IthoEcoFanRFT
2 notes:
Ik heb niet kunnen testen met Duco
Ik heb de command bytes voor itho standby nog niet kunnen vertalen (iemand die een remote met deze knop heeft?)
Nogmaals thanks to @Rukapul voor de hulp met het decoding deel van de code!
Ik heb de structuur van de lib verder zo veel als mogelijk intact gelaten zodat het een drop-in vervanging kan zijn.
Complete lijst met wijzigingen:
* Complete rework of the itho packet section, cleanup and easier to understand, improved stability
* Library structure is preserved, should be a drop in replacement (apart from device id)
* Decode incoming messages to direct usable decimals without further bit-shifting
* DeviceID is now 3 bytes long and can be set during runtime
* Counter2 is now the decimal sum of all bytes in decoded form from deviceType up to the last byte before counter2 subtracted from zero.
* Encode outgoing messages in itho compatible format
* Added ICACHE_RAM_ATTR to 'void ITHOcheck()' for ESP8266/ESP32 compatibility
* Trigger on the falling edge and simplified ISR routine for more robust packet handling
* Move SYNC word from 171,170 further down the message to 179,42,171,42 to filter out more non-itho messages in CC1101 hardware
* Added debug option for outgoing and incoming patterns
Te vinden op github:
https://github.com/arjenhiemstra/IthoEcoFanRFT
2 notes:
Ik heb niet kunnen testen met Duco
Ik heb de command bytes voor itho standby nog niet kunnen vertalen (iemand die een remote met deze knop heeft?)
Nogmaals thanks to @Rukapul voor de hulp met het decoding deel van de code!