RFLink-ESP released

Moderator: leecollings

Post Reply
Stef
Posts: 5
Joined: Thursday 02 August 2018 16:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

RFLink-ESP released

Post by Stef »

RFLink-ESP

Unfortunately we had to fork RFLink, because available sources R29 didn't work reliable and we didn't get any response from the current maintainers / owners.

After making some small changes (about 10 lines of code) we got RFLink working on an ESP32, but it wasn't reliable detecting incoming RF-sequences. Diving into the code revealed that the code had a long history which had introduced many nasty tricks, too many globals and the code was not written in the modern style of coding. So we decided to rewrite the whole code, resulting in a much cleaner, much smaller and above more stable RF-detection. Some features
  • Only a few protocols are translated and tested. But as the protocols are made much easier and there are extra tools to analyze the RF sequences, it's not difficult to add new protocols.
  • Protocols are written as classes and all derived from a common class
  • Protocols are more generic, so you need less protocols
  • Protocols can easily be selected and the order can be determined
  • Debug mode replaced with a more flexible Learning_Mode
  • Removed a lot of redundancies
  • Device must be registered before they will be recognized ( (almost) no more false positives)
  • Dynamically determine long/short puls, by measuring Min,Max,Mean
  • Runs on ESP32 and even on a ESP8266. Making it work on an Arduino should be done easily (and we're willing to help)
  • Fully open source
  • Codesize is strongly reduced
Code : https://github.com/Stef-aap/Domoticz-RFLink-ESP

Documentation: https://stef-aap.github.io/Domoticz-RFLink-ESP/
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink-ESP released

Post by Stuntteam »

This is not an official RFLink release!
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
Milifax
Posts: 69
Joined: Friday 23 June 2017 9:27
Target OS: Linux
Domoticz version: 2024.4
Location: The Netherlands
Contact:

Re: RFLink-ESP released

Post by Milifax »

Great development guys!

Will follow it with great interest.
max_g
Posts: 11
Joined: Friday 11 April 2014 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink-ESP released

Post by max_g »

fantastic work, sounds an industrious and skillfull aproach.
the learning ( or Rf sniffing idea ) could be gamechanging if it allows end users to help populate the RF decryption libraries.
currently i use RFXTRX and RFlink on a Wifi Wemos/ATmega board and in both cases i'm constantly waiting for new protocols to be decoded and added.

Stunt team were very visible a few years ago but have slowed down to the point of minimal releases.

Please let everyone know what kit you recomend/advise if you are looking for consistency from testers
roykaandorp
Posts: 3
Joined: Wednesday 17 October 2018 9:10
Target OS: -
Domoticz version:
Contact:

Re: RFLink-ESP released

Post by roykaandorp »

This is awesome! I’m new with arduino and I’m trying to get it to work on a nodemcu v2 (esp8266), but is keeps restarting every few seconds. What I’m doing wrong? I’ve been reading all the documents that are in de github but can’t find what I have to do.

This is the output of the serial:
ets Jan 8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

I’ve did the following:
Opened Arduino IDE, set in de settings the url http://arduino.esp8266.com/stable/packa ... index.json
Added the esp8266 in the board manager en chose the nodemcu 1.0
Than loaded the project, and filled in the WiFi settings. After compiling i’ve received an error.
In the wifi_settings_esp32.h I changed “const char* Wifi_Name = "Network_Name";” to “char* Wifi_Name = "Network_Name";”
After this it compiled successful and uploaded it to the esp8266.
Than the error above occurred

Edit:
Got a bit furher, I've included "ESP8266WiFi.h" instead of "WiFi.h" and changed the pins to D3 and D4. Now it's wifi connected, i can ping it. But get an continue "rc=5failed" error. Can't find anything about that error.

Edit: found the problem, had to uncomment the line for mqtt username and pass, now testing if I can receive some signals :)
roykaandorp
Posts: 3
Joined: Wednesday 17 October 2018 9:10
Target OS: -
Domoticz version:
Contact:

Re: RFLink-ESP released

Post by roykaandorp »

Got it somewhat running now, it receives the doorbell perfect. But can't get it directly connected to domoticz wireless. At the moment i've running a script that catches the doorbell mqtt message and then sends a command to domoticz.

Code: Select all

#!/bin/bash

mosquitto_sub -u username -P pass -t 'ha/from_RFLink/EV1527_062D0' | while read line
do
if [[ $line == S4 ]]; then
/usr/bin/curl -s 'http://192.168.2.34:8080/json.htm?type=command&param=switchlight&idx=16&switchcmd=Toggle' > /dev/null
else
echo $line
fi
done
That works fine, but would like to have it working without an extra script running between it. Because I would also connect a 433mhz temp sensor to it (don't know yet how to that either). I've red the manual, however it says it could connect by wifi or mqtt to domoticz, I can't find how to do that. Anybody who could help me with that?
misko903
Posts: 51
Joined: Thursday 27 September 2018 22:58
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Trencin, Slovakia
Contact:

Re: RFLink-ESP released

Post by misko903 »

etimou
Posts: 2
Joined: Sunday 12 May 2019 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink-ESP released

Post by etimou »

Hi, Thank you very much for this release.
I've started some modifications here to make it work on the Arduino Mega like the original RFLink.
https://github.com/etimou/RFLink-ESP/tree/arduino
Will be convenient for people who already own a RFLink hardware. At this moment, only the reception of raw data is functional.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: RFLink-ESP released

Post by poudenes »

I have a RFlink. :D

Also have a

NodeMcu V3 ESP8266
NRf24L01 without antenna plug
NRF24L01 with antenna plug

Maybe I can do some tests?
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
etimou
Posts: 2
Joined: Sunday 12 May 2019 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink-ESP released

Post by etimou »

Sure! Would be nice to add the protocols of your devices that are supported by RFLink
Maybe you can try to compile and load onto your Mega and see what you get.
Antana
Posts: 1
Joined: Tuesday 26 November 2019 19:43
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink-ESP released

Post by Antana »

Can anyone give an update on this? The stuntteam Arduino Mega RFLink is pretty deur as well. Is this alive?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests