Skip to main content
edited title
Link
Pownyan
  • 125
  • 2
  • 8

Rc switch library transmit on modeusing protocol 5

I'm trying to transmit using mode 5 with the rc switch library, but my reciever tells me that the data is using protocol 2. I'm using the RecieveDemo_simple example as a sniffer for 433mhz433 MHz and i'mI'm recieving data with protocol 5 from a wireless electric plug that I want to replicate.

I am able to send the data, but it is using the wrong protocol most of the time.

Here's some output from the reciever:

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 5

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 5

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 5

Received 15766156 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 5
Received 15885740 / 24bit Protocol: 2
Received 15885740 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 5
Received 15885740 / 24bit Protocol: 2
Received 15885740 / 24bit Protocol: 2
Received 15885740 / 24bit Protocol: 5

The code:

/*
  Example for different sending methods
  
  https://github.com/sui77/rc-switch/
  
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

  Serial.begin(9600);
  
  // Transmitter is connected to Arduino Pin #10  
  mySwitch.enableTransmit(10);

  // Optional set pulse length.
  // mySwitch.setPulseLength(320);
  
  // Optional set protocol (default is 1, will work for most outlets)
  mySwitch.setProtocol(5);
  
  // Optional set number of transmission repetitions.
  // mySwitch.setRepeatTransmit(15);
  
}

void loop() {

  /* Same switch as above, but using decimal code */
  mySwitch.send(15885740, 24);
  delay(1000);  
  mySwitch.send(15766156, 24);
  delay(1000);  

}

I'm trying to transmit using mode 5 with the rc switch library, but my reciever tells me that the data is using protocol 2. I'm using the RecieveDemo_simple example as a sniffer for 433mhz and i'm recieving data with protocol 5 from a wireless electric plug that I want to replicate.

I am able to send the data, but it is using the wrong protocol most of the time.

Here's some output from the reciever:

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 5

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 5

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 5

The code:

/*
  Example for different sending methods
  
  https://github.com/sui77/rc-switch/
  
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

  Serial.begin(9600);
  
  // Transmitter is connected to Arduino Pin #10  
  mySwitch.enableTransmit(10);

  // Optional set pulse length.
  // mySwitch.setPulseLength(320);
  
  // Optional set protocol (default is 1, will work for most outlets)
  mySwitch.setProtocol(5);
  
  // Optional set number of transmission repetitions.
  // mySwitch.setRepeatTransmit(15);
  
}

void loop() {

  /* Same switch as above, but using decimal code */
  mySwitch.send(15885740, 24);
  delay(1000);  
  mySwitch.send(15766156, 24);
  delay(1000);  

}

I'm trying to transmit using mode 5 with the rc switch library, but my reciever tells me that the data is using protocol 2. I'm using the RecieveDemo_simple example as a sniffer for 433 MHz and I'm recieving data with protocol 5 from a wireless electric plug that I want to replicate.

I am able to send the data, but it is using the wrong protocol most of the time.

Here's some output from the reciever:

Received 15766156 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 5
Received 15885740 / 24bit Protocol: 2
Received 15885740 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 2
Received 15766156 / 24bit Protocol: 5
Received 15885740 / 24bit Protocol: 2
Received 15885740 / 24bit Protocol: 2
Received 15885740 / 24bit Protocol: 5

The code:

/*
  Example for different sending methods
  
  https://github.com/sui77/rc-switch/
  
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

  Serial.begin(9600);
  
  // Transmitter is connected to Arduino Pin #10  
  mySwitch.enableTransmit(10);

  // Optional set pulse length.
  // mySwitch.setPulseLength(320);
  
  // Optional set protocol (default is 1, will work for most outlets)
  mySwitch.setProtocol(5);
  
  // Optional set number of transmission repetitions.
  // mySwitch.setRepeatTransmit(15);
  
}

void loop() {

  /* Same switch as above, but using decimal code */
  mySwitch.send(15885740, 24);
  delay(1000);  
  mySwitch.send(15766156, 24);
  delay(1000);  

}
Source Link
Pownyan
  • 125
  • 2
  • 8

Rc switch library transmit on mode 5

I'm trying to transmit using mode 5 with the rc switch library, but my reciever tells me that the data is using protocol 2. I'm using the RecieveDemo_simple example as a sniffer for 433mhz and i'm recieving data with protocol 5 from a wireless electric plug that I want to replicate.

I am able to send the data, but it is using the wrong protocol most of the time.

Here's some output from the reciever:

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 5

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 2

Received 15766156 / 24bit Protocol: 5

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 2

Received 15885740 / 24bit Protocol: 5

The code:

/*
  Example for different sending methods
  
  https://github.com/sui77/rc-switch/
  
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

  Serial.begin(9600);
  
  // Transmitter is connected to Arduino Pin #10  
  mySwitch.enableTransmit(10);

  // Optional set pulse length.
  // mySwitch.setPulseLength(320);
  
  // Optional set protocol (default is 1, will work for most outlets)
  mySwitch.setProtocol(5);
  
  // Optional set number of transmission repetitions.
  // mySwitch.setRepeatTransmit(15);
  
}

void loop() {

  /* Same switch as above, but using decimal code */
  mySwitch.send(15885740, 24);
  delay(1000);  
  mySwitch.send(15766156, 24);
  delay(1000);  

}