whaleygeek / pyenergenie

A python interface to the Energenie line of products
MIT License
82 stars 51 forks source link

Test RF hand controller consistency with python code #40

Closed whaleygeek closed 8 years ago

whaleygeek commented 8 years ago

I want to test that a code learnt from the RF hand controller, if replicated in the python driver, will switch the plugs.

I also want to test that a code learnt as sent from the python code, if identical to the code of an RF hand controller, enables the RF hand controller to switch the plugs.

The plan is to capture and manually decode the bitstream from the RF hand controller using my SDR setup, and then replicate the OTP house code inside the python code to match.

This will catch any remaining bit shift or bit timing issues that I haven't already spotted, and ensure good cross-device and cross-system compatibility.

whaleygeek commented 8 years ago

I captured a hand controller burst using GnuRadio and HackRFOne, and hand decoded the address. This was then programmed in as HOUSE_CODE. Having previously learnt the hand controller on a couple of plugs, these plugs were then switchable reliably by the Python code.

This issue will be closed when I merge back to master

whaleygeek commented 8 years ago

Tested, long-tx branch merged, closing.