• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


RSL366T Switches
#1
I got this device from a friend, I think he's got it from conrad.
I recorded several buttons and hope this is enough to develop a protocol.

The remote control has 4 on and 4 off buttons and a switch on the back to select from 4 master codes (hope that translates correctly).

I added headers to the output showing masterCode/buttonNo: on or off and then the debug output I got with that code.

Code:
4/1: on

--[RESULTS]--                                                                                                                                          
                                                                                                                                                      
pulse:          3                                                                                                                                      
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 13260
Binary code:
000110000000


4/1: off
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 13260
Binary code:
000110000001


4/2: on
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 13260
Binary code:
000101000000


4/2: off
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 13260
Binary code:
000101000001


4/3: on
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 13260
Binary code:
000100100000


4/3: off
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 13260
Binary code:
000100100001


4/4: on
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       391

Raw code:
391 1173 1173 391 391 1173 1173 391 391 1173 1173 391 391 1173 391 1173 391 1173 1173 391 391 1173 1173 391 391 1173 1173 391 391 1173 391 1173 391 1173 1173 391 391 1173 1173 391 391 1173 1173 391 391 1173 1173 391 391 13294
Binary code:
000100010000


4/4: off
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 13260
Binary code:
000100010001


1/1: on
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 13260
Binary code:
010010000000


1/1: off
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 13260
Binary code:
010010000001


1/3: on

--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 13260
Binary code:
010000100000


1/3: off
--[RESULTS]--

pulse:          3
rawlen:         50
binlen:         12
pulselen:       390

Raw code:
390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 1170 390 390 1170 390 1170 390 13260
Binary code:
010000100001

btw, using the raw codes allready works but seems to be quite slow.
 
Reply
#2
You should really learn how to build a protocol Smile
 
Reply
#3
give me something to start Smile
 
Reply
#4
pilight currently supports about 22 protocols so enough reference.
 
Reply
#5
as you might have seen I've started to develop a protocol, and I (think that I) successfully implemented the parsing side. Then, after studying the other protocols in order to do the sending side, I found that the impulse protocol is very simmilar to the one I am developing, so I tried to add my protocol to the impulse protocol (just an additional protocol_plslen_add)

A) as this attempt gives me wrong values (in pilight-receive when I send raw codes) but the main parsing code looks quite simmilar to what I was doing, I'm curious about the method binToDec - I don't really get what it's doing, do you intend to add some documentation?

B) If it's possible I would prefer adding my protocol to impulse.c if they're really common (which I can't really tell because I've no real idea what all the methods should do except the entry methods) - but I fear to break something. Is there any way to add automated tests to ensure functionality?
 
Reply
#6
A)
binToDec
01 = 1
10 = 2
11 = 3
100 = 4
101 = 5
etc.

B) Create a seperate protocol.
 
Reply
#7
This protocol can be tested with pilight 5.0.
Make sure to add the developmental repository in your apt:
Code:
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://apt.pilight.org stable main
deb http://apt.pilight.org development main

Then install pilight 5.0 and the protocol:
Code:
apt-get update
apt-get install pilight
apt-get install pilight-protocol-rsl366
If you restart pilight. The new protocol will automatically be loaded.
 
Reply
#8
I've also added a wiki page with example configuration: http://wiki.pilight.org/doku.php/rsl366

I'd appreciate if someone can test the "receiver" part and provide some feedback, as I currently couldn't test it.
 
Reply
#9
I've just bought 2 "switches-RSL366R" and 1 remote "receiver=RSL366T" of this type. Brand-name is "PRO max".

I.ve installed pilight V5.0 and the protocol RSL366

When testing with pilight-receive I'll get nothing like before upgrade to V5.0!
Under V4.0 I'll was getting:
Code:
\\1 ON\\

{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": "F0",
                "unit": 34,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "rev1_switch",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 0,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "ehome",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 962218,
                "all": 1,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "cleverwatts",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 30,
                "unit": 14,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "arctech_switches_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 30,
                "unit": 14,
                "state": "up"
        },
        "origin": "receiver",
        "protocol": "arctech_screens_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": "F0",
                "unit": 34,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "rev1_switch",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 0,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "ehome",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 962218,
                "all": 1,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "cleverwatts",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 30,
                "unit": 14,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "arctech_switches_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 30,
                "unit": 14,
                "state": "up"
        },
        "origin": "receiver",
        "protocol": "arctech_screens_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}



\\1 OFF\\

{
        "code": {
                "systemcode": 17,
                "unitcode": 0,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "silvercrest",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": "F0",
                "unit": 34,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "rev1_switch",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 0,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "ehome",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 962218,
                "unit": 1,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "cleverwatts",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 30,
                "unit": 14,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "arctech_switches_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 30,
                "unit": 14,
                "state": "down"
        },
        "origin": "receiver",
        "protocol": "arctech_screens_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": "F0",
                "unit": 32,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "rev1_switch",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 0,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "ehome",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 961194,
                "all": 1,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "cleverwatts",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 31,
                "unit": 14,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "arctech_switches_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 31,
                "unit": 14,
                "state": "up"
        },
        "origin": "receiver",
        "protocol": "arctech_screens_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": "F0",
                "unit": 32,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "rev1_switch",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": 0,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "ehome",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": 961194,
                "all": 1,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "cleverwatts",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": 31,
                "unit": 14,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "arctech_switches_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": 31,
                "unit": 14,
                "state": "up"
        },
        "origin": "receiver",
        "protocol": "arctech_screens_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}
{
        "code": {
                "id": "F0",
                "unit": 32,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "rev1_switch",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}
{
        "code": {
                "id": 0,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "ehome",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}
{
        "code": {
                "id": 961194,
                "all": 1,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "cleverwatts",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}
{
        "code": {
                "id": 31,
                "unit": 14,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "arctech_switches_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}
{
        "code": {
                "id": 31,
                "unit": 14,
                "state": "up"
        },
        "origin": "receiver",
        "protocol": "arctech_screens_old",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}

Now I can't receive anything?

pilight-debug is giving me under V5;
Code:
\\ 1-on\\ pilight-debug\\

time:           Sun Jun 15 20:54:14 2014
hardware:       433gpio
pulse:          3
rawlen:         50
binlen:         12
pulselen:       397

Raw code:
397 1191 397 1191 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 397 1191 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 13498
Binary code:
100010000000

\\1-OFF\\ pilight-debug\\

time:           Sun Jun 15 20:55:47 2014
hardware:       433gpio
pulse:          3
rawlen:         50
binlen:         12
pulselen:       398

Raw code:
398 1194 398 1194 398 1194 1194 398 398 1194 1194 398 398 1194 1194 398 398 1194 398 1194 398 1194 1194 398 398 1194 1194 398 398 1194 1194 398 398 1194 1194 398 398 1592 1194 398 398 1194 1194 398 398 1194 398 1194 398 13532
Binary code:
100010000001

When sending it with ;
Code:
pilight-send -p raw -c "397 1191 397 1191 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 397 1191 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 1191 1191 397 397 13498"
and

Code:
pilight-send -p raw -c "398 1194 398 1194 398 1194 1194 398 398 1194 1194 398 398 1194 1194 398 398 1194 398 1194 398 1194 1194 398 398 1194 1194 398 398 1194 1194 398 398 1194 1194 398 398 1592 1194 398 398 1194 1194 398 398 1194 398 1194 398 13532"

Switch 1 is going ON and OFF

Cane someone tell me what to test now?
Is this because off upgrade to V5 incl. protocol?

Let me know and i'll test Smile

Greetings,

Mike
 
Reply
#10
Suddenly i"ll receive signals ?
pilight-rceive;

\\Switch 1-ON\\
Code:
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 5
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 6
}

\\Switch 1-OFF\\

Code:
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 1
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 2
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 3
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 4
}
{
        "code": {
                "id": 7,
                "state": "off"
        },
        "origin": "receiver",
        "protocol": "selectremote",
        "uuid": "0000-00-00-71-14f9c8",
        "repeats": 5
}

Strange thing is that On or OFF on remote gives "state": öff"?

How to implement this in the "CONFIG.JOSON"?
Is this something in the firmware of the Altiny45?
Webgui gives:
pilight v5.0 / filter firmware v3
CPU: 0.62% / RAM: 1.75%
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Unitec Switches rien-ne-va-plus 48 33,843 05-29-2019, 02:16 PM
Last Post: bitboy
  [Fully Supported] Clarus Switches Marcin 69 30,986 01-30-2018, 07:10 PM
Last Post: Niek
  Unitec / Intertek Switches dieterhatn 1 1,457 03-07-2017, 07:04 PM
Last Post: pilino1234
  CLOSED: Unbranded White Programmable plug-in wall switches alasdairc 8 3,342 11-13-2016, 11:47 PM
Last Post: alasdairc
Brick Aukey Switches VrahoK 5 2,352 11-01-2016, 06:56 AM
Last Post: curlymo
  eHome Switches ligi 95 39,900 12-01-2014, 04:40 PM
Last Post: curlymo
  DBPower Switches joaoasilva 5 3,544 09-25-2014, 08:45 PM
Last Post: joaoasilva
  Support for Schwaiger/Goobay switches plinden 10 6,788 05-16-2014, 11:20 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)