Remote control switch

Post here about devices that are not yet or not fully supported

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Post Reply
Message
Author
yellowsky
Normal user
Posts: 30
Joined: 10 Dec 2016, 20:09

Remote control switch

#1 Post by yellowsky » 10 Dec 2016, 20:43

Hi all,
i have this kind of remote control switch (same sticker but i have the remote with only two plugs): https://fr.aliexpress.com/item/5-Wirele ... 4c853700a1

Previously i used the RCSwitch to control them (with this two options):
mySwitch.enableTransmit(10);
mySwitch.setPulseLength(150);
By example, i used mySwitch.send(9500684, 24); for the ON and mySwitch.send(9500676, 24); for the OFF command.

Because it seems my receiver has a lot of interferences, i use a arduino oscilloscope to catch correctly the timing and i find something like this:

Image

For example for a remote control numbered 0521, i find this behaviour
For the first plug:
1001 000011111 0000000 1 100 0 (on action)
1001 000011111 0000000 0 100 0 (off action)
For the second plug
1001 000011111 0000000 1 010 0 (on action)
1001 000011111 0000000 0 010 0 (off action)
For the third serie of button (i remove a cache on the remote):
1001 000011111 0000000 1 001 0 (on action)
1001 000011111 0000000 0 001 0 (off action)

where
1 stands for Long High level followed by a short low level time (see picture)
0 stands for Short High level followed by a long low level time,

I have another remote numbered 511 and this time, for the first button, i have
1001 100110010 11000001 100 0 (on action)

Therefore, i think the last 4 octets are for the button numbering, the fifth octet (from the end) is the command (on or off) and the remains are the number of the remote.
Therefore is there any chance to implement this kind of plug based on this data?

User avatar
Stuntteam
Site Beheer
Posts: 789
Joined: 27 Jan 2016, 16:46

Re: Remote control switch

#2 Post by Stuntteam » 11 Dec 2016, 01:04

Yes, lets try to get it working.
To start with, did you already try to make a debug log from the remote control signal?
like explained here: http://www.nemcon.nl/blog2/development
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

yellowsky
Normal user
Posts: 30
Joined: 10 Dec 2016, 20:09

Re: Remote control switch

#3 Post by yellowsky » 11 Dec 2016, 07:44

I previously did it but the results are different in function of time...
Here is the results (4 tests) for the On button of the first plug (of the first remote):

Code: Select all

20;05;DEBUG;Pulses=114;Pulses(uSec)=5460,30,2610,1500,330,60,30,360,30,360,330,60,30,360,30,360,30,360,30,360,330,60,330,60,330,60,300,60,330,60,30,360,30,360,30,360,30,360,30,360,30,360,30,360,330,60,330,60,30,330,30,360,30,4350,330,60,30,360,30,360,300,90,30,360,30,360,30,360,30,360,300,90,300,60,300,90,300,60,300,60,30,360,30,360,0,360,30,360,30,360,30,360,30,360,300,60,330,60,30,360,30,360,30,4380,300,60,30,360,30,360,300,90,0,360;
20;06;DEBUG;Pulses=114;Pulses(uSec)=1350,2100,30,4350,330,60,30,330,30,330,330,60,30,330,30,330,30,330,30,330,330,60,330,60,330,60,330,60,330,60,30,330,30,330,30,330,30,330,30,330,30,330,30,360,330,60,330,60,30,360,30,360,30,4350,330,60,30,360,30,360,300,60,30,360,30,360,30,360,30,360,300,60,330,60,330,60,330,60,330,60,30,360,30,360,30,360,30,360,30,360,30,360,30,360,330,60,330,60,30,360,30,360,30,4380,300,60,30,360,30,360,300,60,30,360;
20;07;DEBUG;Pulses=138;Pulses(uSec)=420,30,330,150,240,330,330,60,330,60,330,60,330,60,330,60,30,330,30,360,30,330,30,360,30,360,30,360,30,360,330,60,330,60,30,360,30,360,30,4350,330,60,30,360,30,330,330,60,30,330,30,360,30,330,30,360,330,60,330,60,300,60,330,60,330,60,30,360,30,360,30,360,30,360,0,360,30,360,30,360,300,60,330,60,30,360,30,360,30,4350,330,60,30,360,30,360,300,60,30,360,30,360,30,360,30,360,300,60,330,60,300,60,330,60,330,60,30,360,30,360,30,360,30,360,30,360,0,360,30,360,300,60,300,90,30,360,0,360;
20;08;DEBUG;Pulses=122;Pulses(uSec)=690,30,60,300,60,330,60,330,30,360,330,60,330,60,330,60,330,60,300,60,30,360,30,360,30,360,30,360,30,360,30,360,30,360,330,60,300,60,30,360,30,360,30,4350,330,60,30,360,30,360,330,60,30,360,30,360,30,330,30,360,300,60,330,60,300,60,330,60,300,60,30,360,30,360,30,360,30,360,30,360,30,360,30,360,300,90,300,60,30,360,30,360,30,4350,330,60,30,360,30,360,300,60,30,360,30,360,30,360,30,360,300,60,300,60,300,60,300,60,300,60,30,360;
Therefore if isolate the timing (repetitive) i have

Code: Select all

4350;330;60;30;360;30;360;300;90;30;360;30;360;30;360;30;360;300;90;300;60;300;90;300;60;300;60;30;360;30;360;0;360;30;360;30;360;30;360;30;360;300;60;330;60;30;360;30;360;30
4350;330;60;30;360;30;360;300;60;30;360;30;360;30;360;30;360;300;60;330;60;330;60;330;60;330;60;30;360;30;360;30;360;30;360;30;360;30;360;30;360;330;60;330;60;30;360;30;360;30
4350;330;60;30;360;30;330;330;60;30;330;30;360;30;330;30;360;330;60;330;60;300;60;330;60;330;60;30;360;30;360;30;360;30;360;0;360;30;360;30;360;300;60;330;60;30;360;30;360;30
4350;330;60;30;360;30;360;330;60;30;360;30;360;30;330;30;360;300;60;330;60;300;60;330;60;300;60;30;360;30;360;30;360;30;360;30;360;30;360;30;360;300;90;300;60;30;360;30;360;30
So i guess there is a low signal of 4350 µs to split the repetitive main signal.
If i use the previous logic (1/0) of my first post
A "1" is 330;60 and a "0" is 30;360
First digit for High level, second digit for Low level
There are some deviation in the timing

yellowsky
Normal user
Posts: 30
Joined: 10 Dec 2016, 20:09

Re: Remote control switch

#4 Post by yellowsky » 14 Dec 2016, 13:18

Up, is there any possibilities to develop my own plugins to send you after and complete RFLink.
Indeed, i planed to buy different 433 sensors (not currenlty listed) and if there is a easy way to submit the signal corresponding to improve RFLink, it would be great.
There is any possibilities to do that?

User avatar
Stuntteam
Site Beheer
Posts: 789
Joined: 27 Jan 2016, 16:46

Re: Remote control switch

#5 Post by Stuntteam » 14 Dec 2016, 15:42

send you an email..
(older) sources to make plugins are available on the site though
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

jobarjo
New user
Posts: 7
Joined: 28 Jan 2017, 00:16

Re: Remote control switch

#6 Post by jobarjo » 28 Jan 2017, 00:38

Hi

I've the same remotes, but with 2 buttons only (on and off).
rflink reports
20;F7;Doorbell;ID=4618;SWITCH=1;CMD=ON;CHIME=01;

but doesn't get the button pushed. Can't know if on or off.

I made some debug logs, and parsed them with a python script

short pulse: < 250
long pulse: > 250
pause (or end of frame?) : > 3000

0 = short long
1 = long short

the sequences are 24bit:
100010001100001100001100 id 4618 on
100010001100001100000100 id 4618 off
101101101110010100001100 id b728 on
101101101110010100000100 id b728 off


10 0 0100 0110 0001 1000 0 1 100 id 4618 on
10 0 0100 0110 0001 1000 0 0 100 id 4618 off
10 1 1011 0111 0010 1000 0 1 100 id b728 on
10 1 1011 0111 0010 1000 0 0 100 id b728 off

if sequence is 0 to 23
starts with 10
looks like rflink uses 3 to 18 to get id
it could be from 2 to 17 instead.
18 to 19: unknown (0 in these examples)
button pushed is bit 20 (0:off 1:on)
ends with 100 (at 21 to 23) for channel 1
ends with 010 for channel 2
ends with 001 for channel 3


Here are my logs (rem1 on, rem1 off, rem2 on, rem2 off)

Code: Select all

20;F6;DEBUG;Pulses=511;Pulses(uSec)=180,360,180,360,150,360,150,360,510,0,510,30,120,390,120,390,120,390,120,390,480,30,480,60,120,390,120,390,120,5340,480,30,120,390,120,390,120,390,480,60,120,390,120,420,120,390,480,60,480,60,90,420,90,420,120,420,90,420,450,60,450,60,90,420,90,420,90,420,90,420,450,60,450,60,90,420,90,420,90,5370,450,60,90,420,90,420,90,420,450,60,90,420,90,420,90,420,450,60,450,60,90,420,90,420,90,420,90,450,450,60,450,90,90,450,90,450,90,420,90,420,450,90,450,90,90,450,60,450,90,5400,450,60,90,450,90,420,90,450,450,90,90,420,90,450,90,450,420,90,450,90,90,450,90,450,90,450,60,450,450,90,420,90,90,450,90,450,60,450,60,450,450,90,420,90,90,450,60,450,60,5400,420,90,90,450,60,450,90,420,450,90,90,450,90,450,60,450,450,90,450,90,60,450,90,450,60,450,90,450,450,90,450,90,60,450,60,450,60,450,60,450,420,90,450,90,60,450,90,450,60,5400,420,90,90,450,90,450,60,450,420,90,60,450,60,450,90,420,450,90,450,90,60,450,60,450,60,450,60,450,420,90,450,90,60,450,90,450,60,450,60,450,420,90,450,90,90,450,60,450,60,5400,450,90,90,450,60,450,60,450,420,90,90,450,90,450,60,450,420,90,420,90,90,450,90,450,90,450,60,450,420,90,420,90,90,450,60,450,60,450,60,450,420,90,420,90,90,450,60,450,60,5400,450,90,90,450,60,450,60,450,450,90,60,450,60,450,60,450,420,90,420,90,60,450,60,450,90,450,60,450,450,90,420,90,60,450,60,450,60,450,60,450,450,90,420,90,60,450,60,450,60,5400,420,90,90,450,60,450,60,450,450,90,60,450,60,450,60,450,450,90,420,90,60,450,60,450,60,450,60,450,420,90,420,90,60,450,60,450,60,450,60,450,420,90,420,90,60,450,60,450,60,5400,420,90,60,450,60,450,60,450,420,90,60,450,60,450,60,450,420,90,420,90,60,450,60,450,60,450,60,450,420,90,420,120,60,480,60,450,60,450,60,480,420,120,420,120,60,480,60,480,60,5400,420,120,60,450,60,480,60,480,420,120,30,480,60,480,30,480,390,120,390,120,30,480,30,480,30,480,30,480,390,150,390;

20;F8;DEBUG;Pulses=511;Pulses(uSec)=180,360,150,360,150,360,150,360,510,30,510,30,150,390,150,390,120,390,150,390,150,390,480,30,120,390,120,390,120,5340,480,30,120,390,120,390,120,390,480,30,120,390,120,390,120,390,480,60,480,60,120,390,120,420,90,420,120,420,480,60,450,60,90,420,90,420,90,420,90,420,90,420,450,60,90,420,90,420,90,5370,450,60,90,420,90,420,90,420,450,60,90,420,90,420,90,420,450,60,450,60,90,420,90,420,90,420,90,420,450,60,450,90,90,450,90,420,90,450,90,420,90,420,450,60,90,450,90,420,90,5370,450,90,90,420,90,420,90,450,420,90,90,420,90,450,60,450,450,90,450,90,60,450,90,420,90,450,60,450,450,90,450,60,90,450,90,450,60,450,90,450,60,450,420,90,90,450,60,450,90,5370,450,90,60,450,90,450,60,450,420,90,90,420,90,450,60,450,420,90,450,90,90,450,60,450,60,450,60,450,450,90,450,90,90,450,60,450,90,450,60,450,90,450,420,90,90,450,60,450,60,5400,450,60,90,450,60,450,90,420,450,90,60,450,90,420,90,450,450,90,450,90,90,420,90,450,60,450,60,450,450,90,450,90,90,450,60,450,60,450,60,450,60,450,450,90,90,450,60,450,60,5400,420,90,90,420,90,450,60,450,450,90,90,450,60,450,60,420,450,90,420,90,90,450,90,450,90,450,60,450,450,90,450,90,60,450,90,450,90,450,60,450,60,450,450,90,60,450,90,450,60,5400,420,90,90,420,90,450,60,450,420,90,90,450,60,450,60,450,450,90,450,90,60,450,60,450,90,450,60,450,420,90,450,90,90,450,90,450,60,450,90,450,60,450,420,90,90,450,60,450,60,5370,450,90,60,450,60,450,90,450,420,90,90,450,60,450,90,450,420,90,450,90,60,450,90,450,60,450,60,450,420,90,420,90,60,450,60,450,60,450,60,450,60,450,420,90,60,450,60,450,60,5400,450,90,60,450,90,450,60,450,450,90,60,450,60,450,60,450,420,90,420,90,60,450,60,450,60,450,60,450,420,90,420,90,60,450,60,450,60,450,60,450,60,450,420,90,60,450,60,450,60,5400,420,90,60,450,60,450,60,450,420,90,60,450,60,450,60,450,420,120,420,120,60,480,60,480,60,480,60,450,420,120,420;

20;FA;DEBUG;Pulses=418;Pulses(uSec)=510,0,480,30,120,360,150,360,480,30,120,360,480,30,120,390,120,390,120,390,120,390,450,30,450,30,90,390,120,390,90,5190,450,30,120,390,450,60,450,60,90,390,450,60,450,60,90,390,450,60,450,60,450,60,90,420,90,390,450,60,90,420,420,60,90,420,90,420,90,420,90,420,420,60,420,60,90,420,60,420,60,5220,420,60,60,420,420,60,420,60,60,420,420,90,420,90,60,420,420,90,420,60,420,90,60,420,60,420,420,90,60,420,420,60,60,420,60,420,60,420,60,420,420,90,420,90,60,420,60,420,60,5220,420,90,60,420,420,90,420,90,60,420,420,90,420,90,60,420,420,90,420,90,420,90,60,420,60,420,420,90,60,420,420,90,60,420,60,420,60,450,60,420,420,90,420,90,60,420,60,420,60,5250,420,90,60,420,420,90,420,90,60,450,420,90,420,90,60,450,420,90,420,90,420,90,60,420,60,420,420,90,60,420,420,90,60,420,60,420,60,420,60,420,420,90,420,90,60,420,60,450,60,5220,420,90,60,420,420,60,420,90,60,420,420,90,420,90,60,420,420,90,420,90,420,90,60,420,60,420,420,90,60,420,420,90,60,420,60,420,60,420,60,450,420,90,420,90,60,450,60,420,60,5250,420,90,60,420,420,90,420,90,60,450,420,90,420,90,60,420,420,90,420,90,420,90,60,450,60,450,420,90,60,450,390,90,60,420,60,450,60,420,60,420,420,90,390,90,60,420,60,450,60,5250,420,90,60,450,420,90,420,90,60,420,420,90,420,90,60,420,420,90,420,90,420,90,60,420,60,450,420,90,60,420,420,90,60,450,60,420,60,450,60,450,390,90,420,90,60,450,60,450,60,5250,390,90,60,450,420,90,390,90,60,450,390,120,390,120,30,450,390,120,390,120,390,120,30,480,30,480,360,120,30,480,360,150,30,480,30,480;

20;FE;DEBUG;Pulses=511;Pulses(uSec)=480,90,60,450,390,90,390,90,60,450,420,90,390,90,60,450,390,90,390,90,420,90,60,450,60,450,390,90,60,450,390,120,30,450,60,450,60,450,60,450,60,450,390,90,60,450,60,450,60,5250,420,90,60,450,390,90,390,90,60,450,390,90,390,90,60,450,390,90,420,90,390,120,60,450,60,450,390,90,60,450,390,90,60,450,60,450,60,450,60,450,60,450,420,90,60,450,60,450,60,5250,390,90,60,450,420,90,390,90,60,450,390,90,390,120,60,450,390,90,390,90,390,90,60,450,30,450,390,90,60,450,390,90,60,450,60,450,30,450,60,450,60,450,390,90,60,450,60,450,60,5250,420,90,60,450,390,90,420,90,60,450,390,90,390,90,60,450,390,90,420,90,390,90,60,450,60,450,390,90,60,450,390,90,60,450,60,450,60,450,60,450,60,450,390,90,60,450,30,450,60,5250,390,90,60,450,420,90,390,90,60,450,420,90,390,90,60,450,420,90,420,120,390,90,60,450,60,450,390,90,60,450,390,90,60,450,60,450,60,450,60,450,60,450,390,90,60,450,60,450,60,5250,420,90,60,450,420,90,390,90,60,450,390,90,390,90,60,450,390,120,390,90,420,90,30,450,60,450,390,90,60,450,390,90,60,450,60,450,60,450,60,450,60,450,390,90,60,450,60,450,60,5250,420,90,60,420,420,90,390,90,60,450,420,90,420,90,60,450,420,90,420,90,390,90,60,450,60,450,390,90,60,450,390,90,30,450,60,450,60,450,30,450,60,450,420,90,60,450,60,450,60,5250,420,90,60,450,390,90,390,90,60,450,390,90,390,90,60,450,390,90,390,90,420,90,60,450,60,450,420,90,60,450,390,90,60,450,60,450,60,450,60,450,60,450,390,90,60,450,60,450,60,5250,420,90,60,450,390,90,420,90,60,450,390,90,390,90,60,450,390,90,420,90,390,90,60,450,60,450,390,90,60,450,390,90,60,450,60,450,60,450,60,450,60,450,420,90,60,450,60,450,60,5250,390,90,60,420,420,90,390,90,60,450,420,90,390,90,60,450,420,90,390,90,390,90,60,450,60,450,390,90,60,450,390,90,60,450,60,450,60,450,60,450,60,450,390,90,60,450,60,450,30,5250,420,90,60,450,390,90,420,90,60,450,390;

Image]

jobarjo
New user
Posts: 7
Joined: 28 Jan 2017, 00:16

Re: Remote control switch

#7 Post by jobarjo » 02 Jun 2017, 15:39

Hi, just to say that v46 learing feature doesn't work with this remote.
I'd like to help implementing these good cheap remotes, can I have access to the source?

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests