Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install #6

Open
Maikel-K opened this issue Apr 22, 2020 · 24 comments
Open

How to install #6

Maikel-K opened this issue Apr 22, 2020 · 24 comments

Comments

@Maikel-K
Copy link

Hi Stef,

Great work, i would love to ditch the ATMEGA 2560 and run this on a Wemos D1 mini.

Is this possible, and how to connect the RFLink board: https://www.nodo-shop.nl/nl/41-rflink-433-mhz to the Wemos D1 mini and more important. How to upload your software?

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 22, 2020 via email

@Maikel-K
Copy link
Author

Hi Stef,

Thanks, which transmitters and receivers are you using? Any links to those?

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 22, 2020 via email

@Ierlandfan
Copy link

How about using the SI4432 as Receiver / Transmitter option. Is there any progress to use those?

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 23, 2020 via email

@Ierlandfan
Copy link

Ierlandfan commented Apr 23, 2020 via email

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 23, 2020 via email

@Maikel-K
Copy link
Author

I compiled the sketch and uploaded it to the ESP8266.

I found RFLink_ESP hotspot. I connected. I recieved IP 192.168.6.85 and connected to http://192.168.6.84/

I got a MiRa sensor page. But no ESPeasy style webpage where I can enter WiFi information. Is that correct?

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 24, 2020 via email

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 24, 2020 via email

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 24, 2020 via email

@Maikel-K
Copy link
Author

Stef, thanks for the work! I would love to help you test your scripts!

I will try again this week if I can get to the other settings page!

@skom27
Copy link

skom27 commented Apr 26, 2020

Thank you very much for the huge work you have done with RFlink-ESP! :) At the beginning I wanted to show that I am a novice in this field and to apologize for my English. I have been fighting your RFLink-Esp for several days. At the beginning with version 3.1 build, when I was able to compile it and upload it to ESP32 (DOIT ESO32 DEVKIT V1), unfortunately it was not visible in my WiFi network (I set my data in Settings.h ["Wifi-Netwerk", "$ Wifi-Password" and "MQTT Broker-IP"] and Wifi_Settings.h [Local_Wifi_Name, Local_Wifi_PWD Local_Broker_IP]. When version 3.2 came out, I achieved some success. ESP was already visible on the network and I could enter its IP. Unsure probably I have all possible options there because they only appear:

MiRa Sensors Data
Current Values
Data Files (unordered) on ESP-chip
Graph | Filename | Size | Download
| Logo.gif | 893 | Download
| Settings.h | 836 | Download
| Values.html | 1645 | Download
Show graph

Stop Recording
Factory Settings
SPIFFS format (werkt nog niet)

(logo.gif (none) and setting.h (0 bytes) I uploaded via FTP deleting the comment before "#define YES_INCLUDE_FTPSERVER").

Unfortunately, I do not see the "Settings" and "Simpel Build Info" options. I also don't know how to update via OTA.

Receiver 433 (RX470-4) connected to ESP32 on GPIO 12 (D12), but unfortunately MQTT only gets the "Heartbeat" message and the "$$ Dead" when reset. No readings from 433Mhz detectors (when this receiver is connected to the Arduino Mega where RFLink is, it shows normally readings from 433MHz detectors, e.g. "20; 03; Cresta; ID = 3401; TEMP = 00c0; BAT = OK;" and "20; 02; Eurodomest; ID = 0c93d2; SWITCH = 06; CMD = ALLON; "or" 20; 01; EV1527; ID = 0b3ad8; SWITCH = 06; CMD = ON; ")
Where do I make mistakes? :(

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 26, 2020 via email

@skom27
Copy link

skom27 commented Apr 27, 2020

Thank you for reply very quickly :)
From the beginning I started to introduce what you wrote :)
Unfortunately, after removing the comment from "#define Use_Web_Settings_Version" and uploading to ESP32 I have (I tried to compile and upload several times and always the same):

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
ERROR: SPIFFS could not be opened !!!!

After re-insertion as a comment I see it (so I don't want to work with settings via WEB :( )

.. IP = 10.1.1.54

== SETUP == V0.20 Sensor_RFLink.h
----- Learning_Modes -----
0 : Production Mode
1 : Real Learning Mode
2 : one detection + statistics
3 : all detections + statistics
4 : display pulstime
5 : display pulstime rounded at 30 usec
6 : Statistics, Binairy and Hex Results
7 : Statistics followed, by normal detection
8 : Transmit a predefined sequence
9 : same as 8, but indefinitly

10;LIST; // list all commands
10;PING; // return PONG
10;REBOOT; // reboot RFLink
10;VERSION; // displays version information
10;RF_Command; // Send an RF package
10;DEBUG=x; // Enter Learning/Debug Mode
12;Name;ID; // In Learning_Mode=1 add this device
X // In Learning_Mode=1 add the last seen Device
19;PRINT; // list all Known Devices
19;DIR; // Directory of the file-system
19;DUMP;Filename; // Print the content of the file
19:DEL;Filename; // Delete the file
19:CLEAR; // Delete all registered Devices
11; // Complete is echoed
13; // Command-1 for Learning_Mode 8,9
14; // Command-2 for Learning_Mode 8,9

E (4575) SPIFFS: mount failed, -10025
Last File (SPIFFS) = /RFLog_0.txt
SENSOR MQTT CALLBACK = hb/from_HA/

== SETUP == V0.20 == Sensor_System.h
JSON_Short_Header: Seconds RSSI Free_Disk Free_Heap
JSON_Long_Header : RSSI Free_Disk Free_Heap

==  MQTT Subscribes from Sensors

hb/from_HA/RFLink_ESP
hb/from_HA/#

== SETUP SENSORS DONE ==

== SETUP == V1.60 == Receiver_MQTT.h

Receiver_Serial (... )

== SETUP == V0.60 == Receiver_Serial.h
Last File (SPIFFS) = /RFLink_0.csv
Mount SPI-FileSytem (including FTP support): 1

== SETUP == V0.30 == Receiver_SPIFFS.h
RECEIVER MQTT CALLBACK = hb/from_HA/RFLink_ESP

== SETUP == V0.10 Receiver_Telnet.h

== SETUP == V0.30 Receiver_Webserver.h
OTA hostname = RFLink_ESP

== SETUP == V0.60 Receiver_OTA.h

== SETUP == V0.10 Receiver_Email.h

==  MQTT Subscribes from Receivers

hb/from_HA/RFLink_ESP
hb/from_HA/#

== ESP 32 parameters ==
CPU FREQUENCY = 240 MHz
SDK Version = v3.2.3-14-gd3e562907
Flash Chip Size = 4194304
Flash Chip Frequency = 40000000
IP Address = 10.1.1.54

== SETUP RECEIVERS DONE ==
ERROR: Receiver_Email, sending Email,could not connect to server
0000* Signal LED 0000* 4 / 100 / 100
MQTT Subsrcibe : hb/from_HA/RFLink_ESP
MQTT Subsrcibe : hb/from_HA/#
Published To: 10.1.1.16 Topic: hb/from_RFLink/Restarted
MYYYYYYYY Ftp server waiting for connection on port 21

If now in a serial monitor (or via telnet - Putty) I press "1" and "enter" nothing happens :(
Please help :)

PS1. I already know to go to learning mode 10; DEBUG = 1 :)
PS2. Is it possible to add a device based on "pulstime" that is not visible when "1" is selected?

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 27, 2020 via email

@skom27
Copy link

skom27 commented Apr 27, 2020

Thanks for your feedback :)
When compiling without settings via the web I also have this error at the beginning.

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
ERROR: SPIFFS could not be opened !!!!

  1. Can it be fixed somehow?
  2. And is it possible to add a device based on "pulstime" that is not visible when "1" is selected?
  3. How can you enable Setting via WEB (to enable ESP - uncommenting the compilation settings and uploading to ESP32 causes stopping after this sequence as quoted above)?

@Stef-aap
Copy link
Owner

Stef-aap commented Apr 27, 2020 via email

@skom27
Copy link

skom27 commented May 2, 2020

Ad1.

  • "did you format spiffs?"
    I have not formatted SPIFFS separately (only what is in your program), but if I see saved files and can post new files and read others via FTP, it is probably formatted (I'm a layman in this field, so correct me if I'm wrong).
  • "what are your build flags?", "is GPIO12 high?" I'm a layman in this field, show me what's going on, I haven't changed anything in your program except for the network settings.

Ad2.
If I switch my 433MHz receiver to RFlink to Mega 2560, I can see the devices read:

20; 03; Cresta; ID = 34.01; TEMP = 00c0; BAT = OK;
20; 02; Eurodomest; ID = 0c93d2; SWITCH = 06; CMD = Allon;
20; 01; EV1527; ID = 0b3ad8; SWITCH = 06; CMD = ON;

On the other hand, I only see on your RFlink-ESP:

20; 01; EV1527; ID = 0b3ad8; SWITCH = 06; CMD = ON;

But with the learning mode mod 4 or 5 I see something like this

20; 54; DEBUG; Pulses = 92; Pulses (usec) = 1200,1920,1530,1920,1500,1950,1500 ......

(and I called it "pulstime"). So my question was, is it possible to "learn to recognize" this device from these impulse data? If so, how?

@Stef-aap
Copy link
Owner

Stef-aap commented May 2, 2020 via email

@skom27
Copy link

skom27 commented May 2, 2020

I compiled with:

#define YES_INCLUDE_FTPSERVER
//#define YES_INCLUDE_BLAUWE_ENGEL
//#define YES_INCLUDE_FIJNSTOF_CONDITIONERING
//#define YES_INCLUDE_SENSOR_BMP280
//#define YES_INCLUDE_SENSOR_MLX90614
//#define YES_INCLUDE_SENSOR_MLX90640
//#define YES_INCLUDE_SENSOR_MQTTBroker
//#define YES_INCLUDE_SENSOR_NTP        
//#define YES_INCLUDE_SENSOR_OKE4
#define YES_INCLUDE_SENSOR_RFLINK
//#define YES_INCLUDE_SENSOR_RTC

//#define YES_INCLUDE_RECEIVER_LUFTDATEN
#define YES_INCLUDE_RECEIVER_OTA
#define YES_INCLUDE_RECEIVER_TELNET
#define YES_INCLUDE_RECEIVER_WEBSERVER

#define NOT_INCLUDE_SENSOR_ADS1115
#define NOT_INCLUDE_SENSOR_ADS1115_DIFF
#define NOT_INCLUDE_SENSOR_BME280
#define NOT_INCLUDE_SENSOR_DHT22
#define NOT_INCLUDE_SENSOR_DS18B20
#define NOT_INCLUDE_SENSOR_MHZ14
#define NOT_INCLUDE_SENSOR_MPU9250
#define NOT_INCLUDE_SENSOR_PIR
#define NOT_INCLUDE_SENSOR_SDS011

//#define NOT_INCLUDE_RECEIVER_MQTT
//#define NOT_INCLUDE_RECEIVER_EMAIL
#define NOT_INCLUDE_RECEIVER_SCRATCHPAD
#define NOT_INCLUDE_RECEIVER_SDFAT
#define NOT_INCLUDE_RECEIVER_SSD1306
#define NOT_INCLUDE_RECEIVER_TM1638

I have a 433MHz (RX470-4) receiver connected to GPIO12, I don't have a transmitter connected so the GPIO14 "hangs in the air"

How do I format spiffs so as not to destroy the installed RFLink-esp?
If I see correctly when ESP32 is commented formatting in FS_support.h

       #ifdef ESP32
// fff this -> _ Opened = SPIFFS.begin (true); // format if no filesystem yet
//SPIFFS.format ();
// delay (1000);
       #else

But in My_settings.h is

#ifdef FileSystem_SPIFFS
       #ifdef ESP32
         SPIFFS.begin (true); // format if no filesystem yet
       #else

@rt45433
Copy link

rt45433 commented May 25, 2020

HI there, I have download the github file and then opened the ino file in arduino and uploaded to a esp8266. using the serial monitor I see (trying to connect to home network) and I cannot see a network to be able to connect to. Is there anything else i need to do to the ino file before i compile and upload? I have spent hours trying to figure this out with no success. Any help will be appreciated.

@Stef-aap
Copy link
Owner

Stef-aap commented May 25, 2020 via email

@rbonat
Copy link

rbonat commented Mar 12, 2021

Hi Steff,
I'm trying to move from original RFLink to RFLink_ESP, spending some time without success for now.
On NodeMCU (ESP12E) + RXB6 everything works fine (Serial, WiFi settings) except decoding any radio signals.
Nothing is detected, while onRFLink there are lot of devices around including 5 with Oregon-protocol.
I've checked that FetchSignal() never returns True, so I've uncommented some debug in RawSignal, and finnaly got something:

load error
connected:HOME1
IP:192.168.0.109

pool.ntp.org
time.nist.gov

Active Protocol Start ID = 1
Active Protocol NewKaku ID = 2
Active Protocol EV1527 ID = 3
Active Protocol Paget_Door_Chime ID = 4
Active Protocol DUMMY ID = 5
Active Protocol Oregon ID = 6
20;00;Nodo RadioFrequencyLink - MiRa V2.2 - R01
PulseLength: 20821
RawCodeLength: 2
PulseLength: 45884
RawCodeLength: 2
PulseLength: 10211
RawCodeLength: 2
PulseLength: 38387
RawCodeLength: 2
.......
Every time there is a real signal, it stops for a while, and prints RawCodeLength: 2
When I push button on my 433Mhz pilot, it stops until I release it (on RFLink it repeated command).
Looks like timming issue - any idea what Can I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants