Page 1 of 1

RFLink-ESP released

Posted: Friday 24 August 2018 13:56
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/

Re: RFLink-ESP released

Posted: Friday 24 August 2018 15:06
by Stuntteam
This is not an official RFLink release!

Re: RFLink-ESP released

Posted: Friday 24 August 2018 17:51
by Milifax
Great development guys!

Will follow it with great interest.

Re: RFLink-ESP released

Posted: Saturday 25 August 2018 21:38
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

Re: RFLink-ESP released

Posted: Wednesday 17 October 2018 9:28
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 :)

Re: RFLink-ESP released

Posted: Sunday 21 October 2018 12:46
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?

Re: RFLink-ESP released

Posted: Tuesday 06 November 2018 8:35
by misko903

Re: RFLink-ESP released

Posted: Sunday 12 May 2019 15:40
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.

Re: RFLink-ESP released

Posted: Sunday 12 May 2019 15:49
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?

Re: RFLink-ESP released

Posted: Sunday 12 May 2019 18:51
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.

Re: RFLink-ESP released

Posted: Tuesday 26 November 2019 19:48
by Antana
Can anyone give an update on this? The stuntteam Arduino Mega RFLink is pretty deur as well. Is this alive?