Stef-aap / RFLink-ESP

Home Assistant / Domoticz tested with a RFLink, modified for ESP8266 and ESP32
MIT License
108 stars 49 forks source link

How to install #6

Open Maikel-K opened 4 years ago

Maikel-K commented 4 years ago

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 commented 4 years ago

On 2020-04-22 09:33, Maikel-K wrote:

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

I'm not familiar with that board,

but besides gnd and power (3V3)  you only have to mount one wire to the 433 MHz receiver and one wire to the 433MHz transmitter

something like this

and more important. How to upload your software?

just run the ino file (assuming you've installed Arduino) should do the job.

Probably you'll miss some public available libraries, it's difficult for me to tell which libs are used.

hope this will help.

cheers, Stef

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLNV6AT2AZVC6N55W4DRN2MWBANCNFSM4MN5JOIQ.

Maikel-K commented 4 years ago

Hi Stef,

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

Stef-aap commented 4 years ago

On 2020-04-22 23:05, Maikel-K wrote:

Hi Stef,

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

hello Maikel,

look on https://stef-aap.github.io/RFLink-ESP/

in the list on the left, select 433 MHz Transceivers

cheers, Stef

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-618040135, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLLNUL7JSQTUFQ2RFCTRN5LZXANCNFSM4MN5JOIQ.

Ierlandfan commented 4 years ago

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

Stef-aap commented 4 years ago

I think this will stay on the todo list forever.

Using a SI4432 is much more complicated, while there are no real advantages.

cheers, Stef

On 2020-04-23 18:02, Ierlandfan wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-618485740, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLNZFEC72YXASVI3BC3ROBRAFANCNFSM4MN5JOIQ.

Ierlandfan commented 4 years ago

How about dual receiving options like the coomon 443 and 868 simultaneously?

Stef-aap commented 4 years ago

that might be a valid reason,

but I think there is a better solution:

Modify the receive function so it will run on interrupts generate by level changes. If you've that, you can easily connect both a 433 MHz receiver and a 866 MHz receiver (each with itś own optimized antenna).

Connecting 2 transmitters is no problem and I think can easily be adapted in the software.

cheers, Stef

On 2020-04-23 21:06, Ierlandfan wrote:

How about dual receiving options like the coomon 443 and 868 simultaneously?

Outlook voor Android downloadenhttps://aka.ms/ghei36


From: Stef-aap notifications@github.com Sent: Thursday, April 23, 2020 6:10:48 PM To: Stef-aap/RFLink-ESP RFLink-ESP@noreply.github.com Cc: Ierlandfan mac_che@hotmail.com; Comment comment@noreply.github.com Subject: Re: [Stef-aap/RFLink-ESP] How to install (#6)

I think this will stay on the todo list forever.

Using a SI4432 is much more complicated, while there are no real advantages.

cheers, Stef

On 2020-04-23 18:02, Ierlandfan wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-618485740, or unsubscribe

https://github.com/notifications/unsubscribe-auth/ABZRPLNZFEC72YXASVI3BC3ROBRAFANCNFSM4MN5JOIQ.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FStef-aap%2FRFLink-ESP%2Fissues%2F6%23issuecomment-618490632&data=02%7C01%7C%7C7e5f3232882b4589f99808d7e7a0e31c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637232550490788824&sdata=oLpJzrWnBVpgMU3opDzVwePDI3yhx6n5wEitL8LkJw0%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABWNEDLETELX3LOMTT2WONDROBSARANCNFSM4MN5JOIQ&data=02%7C01%7C%7C7e5f3232882b4589f99808d7e7a0e31c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637232550490788824&sdata=PwNuOUe7%2Fxu4zP40cngfOeJmDwdhW7A%2FV14lWLLQIMc%3D&reserved=0.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-618598948, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLOUDLQYCNU5NZE4BCLROCGUJANCNFSM4MN5JOIQ.

Maikel-K commented 4 years ago

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 commented 4 years ago

it's my own style settings page (because in the past I couldn't get the available ones working correctly), press on the "Settings" button

On 2020-04-24 17:05, Maikel-K wrote:

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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-619066900, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLMKNKSZCX73XWDI5EDROGTCDANCNFSM4MN5JOIQ.

Stef-aap commented 4 years ago

I dropped the username and password,

I can add it in the next release (expected the end of thsi week), including settings by webpage.

In the meanwhile around line 290 in Receiver_MQTT.h there's the connection done

      //if ( MyMQTT->connect ( _MQTT_ID.c_str(), MQTT_User, MQTT_Pwd,       if ( MyMQTT -> connect ( _MQTT_ID.c_str(), use the top line and comment the other one and fill in hardcoded your credentials

On 2020-04-24 18:07, HomeBro wrote:

Hi Stef,

I've used RFLink R48 with Mega2560, but dropped it because of the size of the board and the missing wifi.

Thanks for keeping the RFLink idea alive with your ESP version.

I've uploaded to both a NodeMCU and a Wemos D1 and got it working, but my MQTT server requires a username and password. Where do I put that in your code?

What does the SSD1306 display code exactly do?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-619103291, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLJ6PSPRSV3OLWCBN2TROG2MLANCNFSM4MN5JOIQ.

Stef-aap commented 4 years ago

The SSD1306 is used to display information, example for the loop in the main program (so in that case you can not use the websettings for the moment)

//


//


unsigned long Send_Time_Last = -Send_Time_ms ; void loop() {

  //   // call all loop methods   //   Sensors  .loop () ;   Receivers.loop () ;

  //   // for all sensors, get JSON-data and send to all active receivers   //   if ( millis() - Send_Time_Last >= Send_Time_ms ) {     Send_Time_Last = millis() ;   // geen noodzaak om in te halen !!     Sensors.Get_JSON_Data () ;     Receivers.Send_Data ( JSON_Data ) ;

    int    Value_Int   ;     float  Value_Float ;     String Value_String ;     const int x2 = 6 ;     DynamicJsonDocument jsonBuffer ( 600 ) ;   // PAS OP ALS TE KLEIN werkt het niet     deserializeJson ( jsonBuffer, JSON_Data ) ;

    ( (_Receiver_SSD1306)OLED )->Show ( Extra_Info                  , 0, 1, 2, 1 ) ;     ( (_Receiver_SSD1306)OLED )->Show ( String ( WiFi.localIP()[3] ), 3, 1, 3, 1 ) ;

    //  OLED_Display.setTextSize  ( 1 ) ;     Value_Int = jsonBuffer [ "MHZ14_CO2_ppm" ] ;     ( (_Receiver_SSD1306*)OLED )->Show ( String ( Value_Int ), x2, 0, 4 ) ;     //  OLED_Display.setTextSize  ( 2 ) ;

    Value_Int   = jsonBuffer [ "ADC10" ] ;     Value_Float = 1.2 Value_Int / 1000 ;     ( (_Receiver_SSD1306)OLED )->Show ( String ( Value_Float, 1 ), x2, 2, 4 ) ;

    Value_Int   = jsonBuffer [ "ADC11" ] ;     Value_Float = 1.2 Value_Int / 1000 ;     ( (_Receiver_SSD1306)OLED )->Show ( String ( Value_Float, 1 ), x2, 3, 4 ) ;

    Value_Float = jsonBuffer [ "BME280_Temperature" ] ;     ( (_Receiver_SSD1306*)OLED )->Show ( String ( Value_Float, 1 ),  0, 0, 4 ) ;

    String Extra = " %" ;     if ( WiFi.localIP()[2] != 0 ) Extra = " %c" ;     Value_Int = jsonBuffer [ "BME280_Humidity" ] ; //.as() ;     ( (_Receiver_SSD1306*)OLED )->Show ( String ( Value_Int ) + Extra,    0, 2, 5 ) ;

    Value_String = jsonBuffer [ "Time" ].as() ;     ( (_Receiver_SSD1306*)OLED )->Show ( Value_String.substring(0,5),    0, 3, 4 ) ;

  } }

On 2020-04-24 18:07, HomeBro wrote:

Hi Stef,

I've used RFLink R48 with Mega2560, but dropped it because of the size of the board and the missing wifi.

Thanks for keeping the RFLink idea alive with your ESP version.

I've uploaded to both a NodeMCU and a Wemos D1 and got it working, but my MQTT server requires a username and password. Where do I put that in your code?

What does the SSD1306 display code exactly do?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-619103291, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLJ6PSPRSV3OLWCBN2TROG2MLANCNFSM4MN5JOIQ.

Maikel-K commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

On 2020-04-26 23:34, skom27 wrote:

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.

define Use_Web_Settings_Version

with this flag in the main program, you determine if you do the settings by yhe webpage (flag is there, Startpage will show "Settings")  or explicitly in the program below (flag is commented out, you will not see "Settings" on the web startpage).

If settings are not done through the webpage (the file /Settings.h is of no interest) and the network credentials are done by the settings in "Wifi_Settings.h".

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? :(

The receiver will only recognize "known devices", so set it in Learning mode 1, press one of your switches, you'll see some response and type an "X" followed by an Enter and the switch is registered as "known device". (you can either use a serial connection or a telnet connection)

The other way around, sending an MQTT message to control a lamp or whatsoever is always executed.

good luck, Stef

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-619628561, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLJC3U4WXOLDASGPAFDROSSHFANCNFSM4MN5JOIQ.

skom27 commented 4 years ago

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 commented 4 years ago

On 2020-04-27 09:36, skom27 wrote:

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
    /0/0/0/0* Signal LED /0/0/0/0* 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 :)

Your reset sequence I've never seen before I've seen other weird reset sequences which were caused by malformation of the spiffs disk, the only thing to get it right is to format the spiffs disk : one of the first statements in the setup procedure "SPIFFS.format();"

"1" should do nothing, so that's ok ;-)

I assume you want to enter learning mode a:  you have to type "10;DEBUG=1;"

you may use lowercase characters.

hope that helps.

cheers, Stef

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-619792032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLKAGPIOGQZP33QPZJTROUYYTANCNFSM4MN5JOIQ.

skom27 commented 4 years ago

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 commented 4 years ago

On 2020-04-27 18:09, skom27 wrote:

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?

did you format spiffs ?

what are your build flags ?

is GPIO12 high ?

If driven High, flash voltage (VDD_SDIO) is 1.8V not default3.3V. Has internal pull-down, so unconnected = Low = 3.3V. May prevent flashing and/or booting if 3.3V flash is used and this pin is pulled high, causing the flash to brownout. See the ESP32 datasheet for more details.

  1. And is it possible to add a device based on "pulstime" that is not visible when "1" is selected?

sorry I don't understand what you mean by this.

  1. 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)?

did you format spiffs ?

what are your build flags ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-620082672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLO2NJDEETALWTDSD23ROWU4LANCNFSM4MN5JOIQ.

skom27 commented 4 years ago

Ad1.

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 commented 4 years ago

On 2020-05-02 09:29, skom27 wrote:

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).

If you encounter weird problems, there's a good chance this is caused by a spiffs problem, even if you can do FTP transactions. The only way ( I've found) to correct these problems is by re-formatting the spiffs

  • "what are your build flags?",

these I call build flags:

//#define YES_INCLUDE_SENSOR_OKE4

define YES_INCLUDE_SENSOR_RFLINK

  • "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.

GPIO12 is an IO pin on your ESP

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?

That's not an easy problem to solve,

because it's a protocol not yet supported you've to make a new protocol file: RFL_Protocol_Eurodomest.h and it's too long ago for me to help you in a few words.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Stef-aap/RFLink-ESP/issues/6#issuecomment-622792699, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRPLKH4AMGGIM2NC4IV2LRPPDUXANCNFSM4MN5JOIQ.

skom27 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

you've to modify Wifi_Settings.h

__SECRET_Wifi_Name

__SECRET_Wifi_PWD

(and it might be better to turn off the hardware watchdog (I forgot to disable it) , either by making the  WatchdogpPin = -1 or by removing the Watchdog sensor)

and then you should get something like this >>>>>>>>>>>>>>>>>>>>>>>>>

(if not, please send me what you get on the serial port)

SPIFFS succesfull opened

..... Trying to connect to .......... Connecting to mailserver:smtp.gmail.com   Port:465 Waiting for: 220     Received: 220 smtp.gmail.com ESMTP n11sm16152663ejh.39 - gsmtp Waiting for: 250     Received: 250 smtp.gmail.com at your service Waiting for:      Received: 334 VXNlcm5hbWU6 Waiting for:      Received: 334 UGFzc3dvcmQ6 Waiting for: 235     Received: 535-5.7.8 Username and Password not accepted. Learn more at SMTP AUTH error Email Failed CREATE    V0.10   Sensor_Watchdog.h CREATE    V0.30  ======  Sensor_Wifi.h CREATE    V0.20   Sensor_RFLink.h CREATE    V0.20  ======  Sensor_System.h CREATE    V1.60  ======  Receiver_MQTT.h                                                           IP = 192.168.0.31         Broker = 192.168.22.23 MQTT client found, added for debugging CREATE    V0.60  ======  Receiver_Serial.h CREATE    V0.30  ======  Receiver_SPIFFS.h CREATE    V0.30   Receiver_Webserver.h CREATE    V0.60   Receiver_OTA.h CREATE    V0.10   Receiver_Email.h   MAIN    V3.20   RFLink_ESPbb CREATE    V3.00  ======  Sensor_Receiver_2_h

======  SETUP  ======  V0.10   Sensor_Watchdog.h ++++++++++++++++++ EXTERNAL WATCHDOG on pin = 23

======  SETUP  ======  V0.30  ======  Sensor_Wifi.h       Chip-ID = esp8266-0B4729      MAC = A0:20:A6:0B:47:29 AP-sssid = RFLink_ESPbb     WIFI-Power = 82     WIFI-Mode  = 3 Wifi Access : Wifi Access : A_Second SSID                                                           IP = 192.168.0.31

======  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

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_ESPbb 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_ESPbb

======  SETUP  ======  V0.60   Receiver_OTA.h

======  SETUP  ======  V0.10   Receiver_Email.h

    ==========  MQTT Subscribes from Receivers hb/from_HA/RFLink_ESPbb hb/from_HA/#

===============  ESP 8266 parameters ======================        CPU FREQUENCY        = 80 MHz        Core Version         = 2_6_3        SDK Version          = 2.2.2-dev(38a443e)        SketchSize           = 546144        Free Sketch Space    = 1548288        Flash Chip Size      = 4194304        Real Flash Chip Size = 4194304        Flash Chip Frequency = 40000000        IP Address           = 192.168.0.31

=======================  SETUP  RECEIVERS  DONE

try reconnect FIN, niet gelukt try r On 2020-05-25 17:30, rt45433 wrote:

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.

—\

rbonat commented 3 years ago

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?