Skip to content

Commit

Permalink
TX Plugins do not handle RF Radio power pins anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
couin3 committed May 1, 2020
1 parent 39be3ee commit 99a6c06
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 123 deletions.
24 changes: 0 additions & 24 deletions RFLink/Plugins/Plugin_003.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand All @@ -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;
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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
8 changes: 0 additions & 8 deletions RFLink/Plugins/Plugin_005.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
7 changes: 0 additions & 7 deletions RFLink/Plugins/Plugin_006.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down Expand Up @@ -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
8 changes: 0 additions & 8 deletions RFLink/Plugins/Plugin_007.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
7 changes: 0 additions & 7 deletions RFLink/Plugins/Plugin_008.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
// --------------
Expand Down Expand Up @@ -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
8 changes: 0 additions & 8 deletions RFLink/Plugins/Plugin_009.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
8 changes: 0 additions & 8 deletions RFLink/Plugins/Plugin_010.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
14 changes: 0 additions & 14 deletions RFLink/Plugins/Plugin_011.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand All @@ -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;
Expand Down Expand Up @@ -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();
}
*/
/*
Expand Down
7 changes: 0 additions & 7 deletions RFLink/Plugins/Plugin_012.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down Expand Up @@ -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
7 changes: 0 additions & 7 deletions RFLink/Plugins/Plugin_015.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
8 changes: 0 additions & 8 deletions RFLink/Plugins/Plugin_070.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
9 changes: 0 additions & 9 deletions RFLink/Plugins/Plugin_073.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
8 changes: 0 additions & 8 deletions RFLink/Plugins/Plugin_074.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

0 comments on commit 99a6c06

Please sign in to comment.