Comments (4)
The extra symbols are weird -- it looks like the string returned by bin2tristate
was not properly null terminated.
Anyway: How do you transmit the codes, exactly? Using RCSwitch, or using custom code? If using RCSwitch, how exactly?
from rc-switch.
Hi,
I've it currently working with a small work around.,
the remote sends multiple signals, 24 bit and 28 bit.
I've tried all buttons on the remote and multiple tools/ lib to sniff but without success.
when i send from the remote it looks the same as yours but without those weird symbols at tristate:
signal from remote:
Decimal: 1048853
(24Bit) Binary: 000100000000000100010101
Tri-State: 0F00000F0FFF
PulseLength: 314 microseconds
Protocol: 1
Raw data: 1103337,328,31,2170,198,46,5,8,6,7,390,254,1030,254,1035,249,1035,249,1031,253,1030,254,1036,248,1049,235,1032,253,1028,256,1035,249,1030,894,393,251,1035,249,1030,254,1038,887,393,251,1033,891,395,249,1034,
then I came across a post on a dutch forum with these codes for the Promax switch set,
when these codes are transmitted with pimatic it gives different results in RCswitch.
transmitted with pimatic
pulseCount 50
pule length: 222, 438, 952, 5028
0202210202212102210202022102022121210221022102212121210203
received with RCswitch
Decimal: 40410462
(28Bit) Binary: 0010011010001001110101011110
Tri-State: not applicable
PulseLength: 504 microseconds
Protocol: 2
Raw data: 5055,225,968,222,968,953,454,222,968,223,967,953,453,953,455,221,969,953,454,222,968,223,967,223,968,952,454,222,971,225,971,954,454,960,458,955,456,225,971,954,457,229,971,954,459,226,970,953,454,953,455,953,454,952,456,221,970,
put a unit in learning mode an try the decimals from the code.
code I used.
/*
Example for different sending methods
https://github.com/sui77/rc-switch/
some extra decimals
A 40025046 ON
A 38856910 OFF
B 41567385 ON
B 39916253 OFF
C 240760633 ONN
C 240257549 OFF
D 105444762 ONN
D 107879350 OFF
*/
#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(470);
// Optional set protocol (default is 1, will work for most outlets)
mySwitch.setProtocol(2);
// Optional set number of transmission repetitions.
// mySwitch.setRepeatTransmit(15);
}
void loop() {
/* Same switch as above, but using decimal code */
mySwitch.send(40410462, 28); // turn A on
delay(1000);
mySwitch.send(39172218, 28); // turn A off
delay(1000);
delay(20000);
}
ps: srry for my english ;)
from rc-switch.
Nvm with latest version i am receiving the propper decimals 👍 so it does support promax.
from rc-switch.
Hey S Knop / KoenWijnstok,
Im currently working on the same thing. Connecting a Pi3 through RC Switch with a cheap china 433mhz TX/RX. Also bought the Action PROMAX (FA500S).
When using the Receive_Advanced demo Im getting good results.
What do I need to configure to send proper code to the Promax?
from rc-switch.
Related Issues (20)
- How to implement a custom protocol?
- Which pin for Arduino pro mini AtMega328P 5V
- control with more than one command
- Problem with recieved value HOT 1
- How to send()? HOT 1
- How the ISR function handle the filtering out first high pulse in SYNC bit
- void RCSwitch::disableReceive()
- ReceiveDemo_Advanced work with Platform.IO and VSCode HOT 1
- How can i modify this protocol? HOT 5
- Cant receive anything with receive demo HOT 1
- Small contribution
- SURNICE: receiver and transmitter HOT 1
- Protocol 6 optimization doubt
- A modest proposal - expose the interrupt so a user can write a callback function.
- How to add a new protocol for my RF receiver HOT 1
- SimpleRCScanner return error 500
- Switch does not respond
- SimpleRCScanner returning random numbers with no RF signal (no button pressed) HOT 1
- 433MHz 4-button code copy
- Repeat received code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rc-switch.