madmartin / Jarolift_MQTT

Controlling Jarolift TDEF 433MHZ radio shutters via ESP8266 and CC1101 Transceiver Module in asynchronous mode
GNU General Public License v3.0
67 stars 27 forks source link

backup does not work on first boot #71

Open Blastmun opened 1 week ago

Blastmun commented 1 week ago

I don't know if I would have an answer, but my assembly worked perfectly for 12 months, except that my esp card became HS. So I wanted to reinstall this project on a wemos d1 mini clone, everything goes well but when I connect to the wifi access point, I modify the parameters and if I click on save it restarts esp without taking into account my modifications. On the other hand, if I modify the buttons, there the configuration is taken into account. Here are the logs during the save

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

Exception (4):
epc1=0x402191f0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffc80 end: 3fffffd0 offset: 0160
3ffffde0:  3ffffe40 00000020 3ffffed8 40204791
3ffffdf0:  3ffffe04 3ffffe00 00000020 3ffffe9c
3ffffe00:  00000222 0000021c 0000020b 0000021c
3ffffe10:  3fff061c 00000228 00000223 3ffffe9c
3ffffe20:  3ffffed8 00000020 3fff4b7c 3ffffe9c
3ffffe30:  3ffffed8 3fff061c 3fff4b80 402048a8
3ffffe40:  0000023d 00000001 402187b8 402187b4
3ffffe50:  3fff534c 3fff5104 000001ee 4020dc04
3ffffe60:  3ffffe80 0000023d ffffffff 3ffffe9c
3ffffe70:  3fff0650 0000023d 3fff061c 40205622
3ffffe80:  402196e0 00000000 000003e8 ffffffff
3ffffe90:  00000000 3ffffe9c ffffffff 3fff5104
3ffffea0:  023d023f 80000000 3fff46b4 002f003f
3ffffeb0:  80000000 3fff4c24 000f000f 80000000
3ffffec0:  00000000 3fffdad0 00000000 00000000
3ffffed0:  3fffdab0 00000000 3fff534c 023d023f
3ffffee0:  80000000 00000031 00000001 01000000
3ffffef0:  6970612f 3fffda00 04000000 54534f50
3fffff00:  00000000 04000000 00000000 0030003f
3fffff10:  00000000 0004b181 03958106 056d3d2c
3fffff20:  00000000 00000001 0000000f 00000000
3fffff30:  00000001 3fff05b0 3fff05b0 3fff0ab4
3fffff40:  3fffdad0 3fff0650 3fff061c 40207e7b
3fffff50:  4025008e 3ffefaa5 3ffefe08 00000001
3fffff60:  40251277 00000000 3ffe86b8 00000000
3fffff70:  3ffe8d27 3fff05b0 3ffefaa5 3fff0ab4
3fffff80:  3fffdad0 00000000 3fff0a88 40208044
3fffff90:  3fffdad0 00000000 3fff0550 3fff0ab4
3fffffa0:  3fffdad0 00000000 3fff0a88 3fff0ab4
3fffffb0:  3fffdad0 00000000 3fff0a88 4020f740
3fffffc0:  feefeffe feefeffe 3fffdab0 40101195
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v0005e530
~ld
Œãäƒä“{‚òn|ä$
             Œ$`"’Ÿ|{’œlÜoà
                           ƒoãl`Œâ{’p‚Œû„

                                         þ1970-01-01 02:00:00 CEST [INFO] - starting Jarolift Dongle v0.7
1970-01-01 02:00:00 CEST [INFO] - ESP-ID 9675702 // ESP-Core  3.1.2 // SDK Version 2.2.2-dev(38a443e)
1970-01-01 02:00:00 CEST [INFO] - read config from EEPROM . . . config version 2 found
1970-01-01 02:00:00 CEST [INFO] - initializing the CC1101 Transceiver. If you get stuck here, it is probably not connected.
1970-01-01 02:00:00 CEST [INFO] - WiFi connecting to SSID_IOT
1970-01-01 02:00:00 CEST [INFO] - HTTP server started
stalakerob commented 6 days ago

Did you change the platform parameters the Arduino IDE for the D1 mini before uploading the firmware? Did you initialise the SPIFF with the SPIFFS tool? Have you tried to repeat the whole process? Maybe something went wrong the first time.

Blastmun commented 2 days ago

Avez-vous modifié les paramètres de la plate-forme de l'IDE Arduino pour le mini D1 avant de télécharger le firmware? Avez-vous initialisé le SPIFF avec l'outil SPIFFS? Avez-vous essayé de répéter tout le processus? Peut-être que quelque chose a mal tourné la première fois. I proceed as in the YouTube video, I just modified the file because Arduino 1.8.19 gives me errors.

C:\xxx\Jarolift_MQTT\Jarolift_MQTT.ino: In function 'int keeloq()': C:\xxxx\Jarolift_MQTT\Jarolift_MQTT.ino:454:1: error: no return statement in function returning non-void [-Werror=return-type] 454 | } // int keeloq | ^ similarly for: 480 | } // int keygen 642 | } // int rx_keygen 655 | } // int rx_decoder so I replace int with void

and it's OK.

Blastmun commented 2 days ago

image

my setting