diff --git a/RFLink/Plugins/Plugin_003.c b/RFLink/Plugins/Plugin_003.c index 24a59f9c..96493d68 100644 --- a/RFLink/Plugins/Plugin_003.c +++ b/RFLink/Plugins/Plugin_003.c @@ -908,10 +908,6 @@ void Arc_Send(unsigned long bitstream) uint32_t fdatamask = 0x00000001; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { fsendbuff = bitstream; @@ -953,10 +949,6 @@ void Arc_Send(unsigned long bitstream) digitalWrite(PIN_RF_TX_DATA, LOW); // and lower the signal delayMicroseconds(fpulse * 31); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Turn the 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC, HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } void NArc_Send(unsigned long bitstream) @@ -967,10 +959,6 @@ void NArc_Send(unsigned long bitstream) uint32_t fdatamask = 0x00000001; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { fsendbuff = bitstream; @@ -1012,10 +1000,6 @@ void NArc_Send(unsigned long bitstream) digitalWrite(PIN_RF_TX_DATA, LOW); // and lower the signal delayMicroseconds(fpulse * 31); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Turn thew 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC, HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } void TriState_Send(unsigned long bitstream) @@ -1026,10 +1010,6 @@ void TriState_Send(unsigned long bitstream) uint32_t fdatamask = 0x00000003; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - // reverse data bits (2 by 2) for (unsigned short i = 0; i < 12; i++) { // reverse data bits (12 times 2 bits = 24 bits in total) @@ -1089,9 +1069,5 @@ void TriState_Send(unsigned long bitstream) digitalWrite(PIN_RF_TX_DATA, LOW); // and lower the signal delayMicroseconds(fpulse * 31); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Turn thew 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC, HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } #endif //PLUGIN_TX_003 diff --git a/RFLink/Plugins/Plugin_005.c b/RFLink/Plugins/Plugin_005.c index cbee26a1..91fa6872 100644 --- a/RFLink/Plugins/Plugin_005.c +++ b/RFLink/Plugins/Plugin_005.c @@ -198,10 +198,6 @@ void Eurodomest_Send(unsigned long address) uint32_t fdatamask = 0x800000; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { fsendbuff = address; @@ -232,9 +228,5 @@ void Eurodomest_Send(unsigned long address) digitalWrite(PIN_RF_TX_DATA, LOW); // and lower the signal delayMicroseconds(fpulse * 32); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Turn the 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC, HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } #endif //PLUGIN_TX_005 diff --git a/RFLink/Plugins/Plugin_006.c b/RFLink/Plugins/Plugin_006.c index 79aa0529..e5433acd 100644 --- a/RFLink/Plugins/Plugin_006.c +++ b/RFLink/Plugins/Plugin_006.c @@ -241,9 +241,6 @@ void Blyss_Send(unsigned long address, byte devtype) uint32_t fsendbuff; unsigned char RollingCode[] = {0x98, 0xDA, 0x1E, 0xE6, 0x67, 0x98}; - digitalWrite(PIN_RF_RX_VCC, LOW); // Power off the RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Turn on the RF transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) byte temp = (millis() & 0xff); // used for the timestamp at the end of the RF packet for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { @@ -339,9 +336,5 @@ void Blyss_Send(unsigned long address, byte devtype) //delayMicroseconds(fpulse * 18); // delay between RF retransmits delay(24); // delay 23.8 ms } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // turn off the RF transmitter - digitalWrite(PIN_RF_RX_VCC, HIGH); // power on the RF receiver - RFLinkHW(); } #endif // PLUGIN_TX_006 diff --git a/RFLink/Plugins/Plugin_007.c b/RFLink/Plugins/Plugin_007.c index a76e980e..253369d8 100644 --- a/RFLink/Plugins/Plugin_007.c +++ b/RFLink/Plugins/Plugin_007.c @@ -361,10 +361,6 @@ void RSL2_Send(unsigned long address) uint32_t fdatamask = 0x80000000; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Spanning naar de RF ontvanger uit om interferentie met de zender te voorkomen. - digitalWrite(PIN_RF_TX_VCC, HIGH); // zet de 433Mhz zender aan - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { fsendbuff = address; @@ -401,9 +397,5 @@ void RSL2_Send(unsigned long address) digitalWrite(PIN_RF_TX_DATA, LOW); delayMicroseconds(fpulse * 14); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // zet de 433Mhz zender weer uit - digitalWrite(PIN_RF_RX_VCC, HIGH); // Spanning naar de RF ontvanger weer aan. - RFLinkHW(); } #endif // PLUGIN_TX_007 diff --git a/RFLink/Plugins/Plugin_008.c b/RFLink/Plugins/Plugin_008.c index 4bfc4a33..18457585 100644 --- a/RFLink/Plugins/Plugin_008.c +++ b/RFLink/Plugins/Plugin_008.c @@ -217,9 +217,6 @@ void Kambrook_Send(unsigned long address) uint32_t fdatamask = 0x800000; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Spanning naar de RF ontvanger uit om interferentie met de zender te voorkomen. - digitalWrite(PIN_RF_TX_VCC, HIGH); // zet de 433Mhz zender aan - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { // -------------- @@ -298,9 +295,5 @@ void Kambrook_Send(unsigned long address) digitalWrite(PIN_RF_TX_DATA, LOW); delayMicroseconds(fpulse2 * 14); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // zet de 433Mhz zender weer uit - digitalWrite(PIN_RF_RX_VCC, HIGH); // Spanning naar de RF ontvanger weer aan. - RFLinkHW(); } #endif // PLUGIN_008 diff --git a/RFLink/Plugins/Plugin_009.c b/RFLink/Plugins/Plugin_009.c index 604712f1..258e6727 100644 --- a/RFLink/Plugins/Plugin_009.c +++ b/RFLink/Plugins/Plugin_009.c @@ -465,10 +465,6 @@ void X10_Send(uint32_t address) uint32_t fdatamask = 0x80000000; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Disable RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable RF transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { fsendbuff = address; @@ -506,10 +502,6 @@ void X10_Send(uint32_t address) digitalWrite(PIN_RF_TX_DATA, LOW); delayMicroseconds(fpulse * 20); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Disable RF transmitter - digitalWrite(PIN_RF_RX_VCC, HIGH); // Enable RF receiver - RFLinkHW(); return; } #endif //PLUGIN_TX_009 diff --git a/RFLink/Plugins/Plugin_010.c b/RFLink/Plugins/Plugin_010.c index f31f550b..1991d80f 100644 --- a/RFLink/Plugins/Plugin_010.c +++ b/RFLink/Plugins/Plugin_010.c @@ -246,10 +246,6 @@ void TRC02_Send(unsigned long address, int command) uint32_t fdatamask = 0x80000000; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { crc = 0; @@ -298,9 +294,5 @@ void TRC02_Send(unsigned long address, int command) delayMicroseconds(fpulse); } } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Turn thew 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC, HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } #endif //PLUGIN_TX_010 diff --git a/RFLink/Plugins/Plugin_011.c b/RFLink/Plugins/Plugin_011.c index 24c81fb9..3adb4524 100644 --- a/RFLink/Plugins/Plugin_011.c +++ b/RFLink/Plugins/Plugin_011.c @@ -281,9 +281,6 @@ void HomeConfort_Send(unsigned long data1, unsigned long data2) { // bitstream1 holds first 24 bits of the RF data, bitstream2 holds last 24 bits of the RF data // ------------------------------- // Prepare transmit - digitalWrite(PIN_RF_RX_VCC,LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC,HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) // send bits for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { data1=bitstream1; @@ -338,10 +335,6 @@ void HomeConfort_Send(unsigned long data1, unsigned long data2) { } // End transmit - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC,LOW); // Turn thew 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC,HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } void HomeConfort_Send(unsigned long data1, unsigned long data2) { @@ -366,9 +359,6 @@ void HomeConfort_Send(unsigned long data1, unsigned long data2) { // bitstream1 holds first 24 bits of the RF data, bitstream2 holds last 24 bits of the RF data // ------------------------------- // Prepare transmit - digitalWrite(PIN_RF_RX_VCC,LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC,HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) // send bits for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { data1=bitstream1; @@ -426,10 +416,6 @@ void HomeConfort_Send(unsigned long data1, unsigned long data2) { } // End transmit - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC,LOW); // Turn thew 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC,HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } */ /* diff --git a/RFLink/Plugins/Plugin_012.c b/RFLink/Plugins/Plugin_012.c index 125a548d..2f8eeee4 100644 --- a/RFLink/Plugins/Plugin_012.c +++ b/RFLink/Plugins/Plugin_012.c @@ -304,9 +304,6 @@ void Flamingo_Send(int fbutton, int fcmd) //fsendbuff3=0xDB58C5D0; //fsendbuff4=0xDBF40A90; } - digitalWrite(PIN_RF_RX_VCC, LOW); // Spanning naar de RF ontvanger uit om interferentie met de zender te voorkomen. - digitalWrite(PIN_RF_TX_VCC, HIGH); // zet de 433Mhz zender aan - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) for (int nRepeat = 0; nRepeat < fretrans; nRepeat++) { @@ -354,9 +351,5 @@ void Flamingo_Send(int fbutton, int fcmd) //digitalWrite(PIN_RF_TX_DATA, LOW); //delayMicroseconds(fpulse * 15); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // zet de 433Mhz zender weer uit - digitalWrite(PIN_RF_RX_VCC, HIGH); // Spanning naar de RF ontvanger weer aan. - RFLinkHW(); } #endif //PLUGIN_TX_012 diff --git a/RFLink/Plugins/Plugin_015.c b/RFLink/Plugins/Plugin_015.c index cbd9f80a..c6ea9d48 100644 --- a/RFLink/Plugins/Plugin_015.c +++ b/RFLink/Plugins/Plugin_015.c @@ -229,9 +229,6 @@ void HomeEasyEU_Send(unsigned long address, unsigned long command) uint32_t fdatamask = 0x80000000; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Spanning naar de RF ontvanger uit om interferentie met de zender te voorkomen. - digitalWrite(PIN_RF_TX_VCC, HIGH); // zet de 433Mhz zender aan - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { // -------------- Send Home Easy preamble (0x63c) - 11 bits @@ -310,9 +307,5 @@ void HomeEasyEU_Send(unsigned long address, unsigned long command) digitalWrite(PIN_RF_TX_DATA, LOW); // and lower the signal delayMicroseconds(fpulse * 26); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // zet de 433Mhz zender weer uit - digitalWrite(PIN_RF_RX_VCC, HIGH); // Spanning naar de RF ontvanger weer aan. - RFLinkHW(); } #endif // PLUGIN_TX_015 diff --git a/RFLink/Plugins/Plugin_070.c b/RFLink/Plugins/Plugin_070.c index 2e2efffe..ad5bd4ef 100644 --- a/RFLink/Plugins/Plugin_070.c +++ b/RFLink/Plugins/Plugin_070.c @@ -145,10 +145,6 @@ void SelectPlus_Send(unsigned long address) uint32_t fdatamask = 0x10000; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Power off the RF receiver (if wired that way) to protect against interference - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { fsendbuff = address; @@ -184,9 +180,5 @@ void SelectPlus_Send(unsigned long address) delayMicroseconds(fpulse * 16); // delay between RF transmits } } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Disable the 433Mhz transmitter - digitalWrite(PIN_RF_RX_VCC, HIGH); // Enable the 433Mhz receiver - RFLinkHW(); } #endif // PLUGIN_070 diff --git a/RFLink/Plugins/Plugin_073.c b/RFLink/Plugins/Plugin_073.c index 9b6a1667..9a7e8ba4 100644 --- a/RFLink/Plugins/Plugin_073.c +++ b/RFLink/Plugins/Plugin_073.c @@ -141,10 +141,6 @@ void Deltronic_Send(unsigned long address) periodLong = 2 * period; periodSync = 36 * period; - digitalWrite(PIN_RF_RX_VCC, LOW); // Power off the RF receiver (if wired that way) to protect against interference - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - // Send seperator digitalWrite(PIN_RF_TX_DATA, HIGH); delayMicroseconds(period); @@ -184,11 +180,6 @@ void Deltronic_Send(unsigned long address) digitalWrite(PIN_RF_TX_DATA, HIGH); delayMicroseconds(period); } - digitalWrite(PIN_RF_TX_DATA, LOW); - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Disable the 433Mhz transmitter - digitalWrite(PIN_RF_RX_VCC, HIGH); // Enable the 433Mhz receiver - RFLinkHW(); } #endif // PLUGIN_TX_073 diff --git a/RFLink/Plugins/Plugin_074.c b/RFLink/Plugins/Plugin_074.c index 4abae39c..624bb228 100644 --- a/RFLink/Plugins/Plugin_074.c +++ b/RFLink/Plugins/Plugin_074.c @@ -148,10 +148,6 @@ void RL02_Send(unsigned long address) uint32_t fdatamask = 0x00000001; uint32_t fsendbuff; - digitalWrite(PIN_RF_RX_VCC, LOW); // Turn off power to the RF receiver - digitalWrite(PIN_RF_TX_VCC, HIGH); // Enable the 433Mhz transmitter - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - for (int nRepeat = 0; nRepeat <= fretrans; nRepeat++) { fsendbuff = address; @@ -219,9 +215,5 @@ void RL02_Send(unsigned long address) digitalWrite(PIN_RF_TX_DATA, LOW); // and lower the signal delayMicroseconds(fpulse * 31); } - delayMicroseconds(TRANSMITTER_STABLE_DELAY); // short delay to let the transmitter become stable (Note: Aurel RTX MID needs 500µS/0,5ms) - digitalWrite(PIN_RF_TX_VCC, LOW); // Turn thew 433Mhz transmitter off - digitalWrite(PIN_RF_RX_VCC, HIGH); // Turn the 433Mhz receiver on - RFLinkHW(); } #endif // PLUGIN_TX_074