URF

Description

Universal RF codes, discussions about the RF subsystem and devices supported.

Forums

Having scratched my head looking at the RF helper page I've decided to see if someone else can give me some idea of how to achieve an RF string for a specialised output.

I'm trying to see if the HAH will directly control my central heating boiler.

I know that the transmitter/receiver works on 433 Mhz so I figure that it should be possible I just can't work out how to do it.

The following is an arduino code fragment for what I want to do:

 

//******************************************************************************************
// boiler_control()
// Outputs a wireless packet (2000 baud) to control a Drayton Digistat wireles thermostat receiver
// Boiler Off packet AA AC 59 99 59 55 59 56 AA
// Boiler On packet AA AC 59 99 59 55 95 65 AA

// read MSB first from left to right

// Uses function RF_tx to put 8 bit serial on digital output pin 2 (no start or stop bits)
// If boilerstate == HIGH then boiler on
// If boilerstate == LOW then boiler off
//********************************************************************************************


int Tx_bytes[] = {170,172,89,153,89,85}; // An array of 6 bytes that are sent to the Tx
int _bitPeriod = 1000000 / 2000; // define the RF Tx serial baudrate in microseconds

void boiler_control() {


int i;

for (i=0; i<6; i++) { // Output the common part of the packet 6 bytes

RF_tx(Tx_bytes[i]);

}

if(boilerstate==HIGH) {

RF_tx(149); // Turn the boiler on
RF_tx(101);
RF_tx(170);

}

else {

RF_tx(89); // Turn the boiler off
RF_tx(86);
RF_tx(170);

}


} // end of boiler_control()

//**************************************************************************************************
// RF_tx - sends the serial packet to the transmitPin

void RF_tx(uint8_t b)
{

int bitDelay = _bitPeriod - clockCyclesToMicroseconds(50); // a digitalWrite is about 50 cycles
byte mask;

for (mask = B10000000; mask; mask >>= 1) {
if (b & mask){ // choose bit
digitalWrite(_transmitPin,HIGH); // send 1
}
else{
digitalWrite(_transmitPin,LOW); // send 0
}
delayMicroseconds(bitDelay);
}


} // End of RF_tx

//***********************************************************************************************

Any help in converting this to HAH format would be greatly appreciated.

Forums

Just for information, looks like Lidl will have their remote control sockets in from 3rd November at £16.99 for a pack of 4.

Forums

HI,

Since upgrading to the new AVR code I noted that for some reason a few (1on code and 1off code) of my previous URF codes set would not work. I have therefore modified them so that I now have 6 working URF codes, for info they are as follows:

rf1 on 01020320028A05DC028A05DC0514032004B00C029C4015CB1555561600

rf1off 01020320028A05DC028A05DC0514032004B00C029C4015CB1555555540

rf2 on 01020320028A05DC028A05DC0514032004B00C029C4015CB1555861B00

rf2off 01020320028A05DC028A05DC0514032004B00C029C4015CB1555855840

rf3 on 01020320028A05DC028A05DC0514032004B00C029C4015CB1555B21840

rf3off 01020320028A05DC028A05DC0514032004B00C029C4015CB1555B15B00

rf4 on 01020320028A05DC028A05DC0514032004B00C029C4015CB1555621540

rf4off 01020320028A05DC028A05DC0514032004B00C029C4015CB1555615600

rf5 on 01020320028A05DC028A05DC0514032004B00C029C401515B155561600

rf5off 01020320028A05DC028A05DC0514032004B00C029C401515B155555540

rf6 on 01020320028A05DC028A05DC0514032004B00C029C401515B155861B00

rf6off 01020320028A05DC028A05DC0514032004B00C029C401515B155855840

Thanks,

 

Garry

Forums

Sorry folks but am I noticing an issue with the rf system, in that it will not transmit rf signals if the livebox has been up and running for any length of time (I approximate about 8 hours of up time) I am currently trying to get more info on exactly when this stops working but a reboot cures everything again for another length of time. (for interest XFX shows the xap messages to be present and physical relays work, its just the rf does not transmit)

Any ideas on what to check, where to start bebugging, etc. would be most appreciated. I currently have a reboot script to "mask" this issue so can live with it but have read that Derek had some stability issues and thought you might like to know about it.

Current system:

Firmware 279.13/2.2

ATMEGA328

PS I did remove my scripts to check It wasn't me creating the issue.

 

thanks

 

Garry

Forums

Derek, thanks for the fast delivery on the HAH hardware. I spent last night soldering and all is working as it should. I'm made up.

One question though if you don't mind. I have got one RF socket (Lidl) type working using the code on your URF wiki. Hoewever, there is no mention on how to edit the code for a second/third socket. Is this possible.

I have had a play but cannot get a second on/off pair of codes working?

 

Many thanks as always,

 

Garry.

Forums

Hi, 

I'm new to the Home Automation Hub and I'm very interested in the project - however I have read another thread suggesting that HAH was not compatible with the Home Easy HE109 double sockets... I then read a thread suggesting that this had now been cracked.

Can anyone offer any advise as to whether the HAH can now remotely swith the HE109 sockets and what if any additional hardware is required to do this?

Thanks

Andy