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

MQTT OTA csum error in reboot after "OTA sucess" #204

Closed
Gulaschcowboy opened this issue Oct 31, 2016 · 81 comments
Closed

MQTT OTA csum error in reboot after "OTA sucess" #204

Gulaschcowboy opened this issue Oct 31, 2016 · 81 comments

Comments

@Gulaschcowboy
Copy link

Gulaschcowboy commented Oct 31, 2016

Hi,

with latest commits of homie-esp8266 I get the following result when updating my ESP8266-07s using homie-ota:

✴ OTA available (version 1.0.11)
OTA started
Triggering OTA_STARTED event...
Firmware is base64-encoded

Receiving OTA firmware (353600/353600)...
✔ OTA success
Triggering OTA_SUCCESSFUL event...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 51)...

Device is idle
↻ Rebooting...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 375)...
��� MQTT disconnected
Triggering MQTT_DISCONNECTED event...
↕ Attempting to connect to MQTT...
✖ Wi-Fi disconnected
Triggering WIFI_DISCONNECTED event...
↕ Attempting to connect to Wi-Fi...

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
@cp:0
ld

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

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x1d
csum 0x1d
csum err

Flashing same binary using serial works.
Any ideas?

Thanks,
Alex

@clough42
Copy link
Contributor

clough42 commented Nov 7, 2016

I am experiencing something similar. I can get the OTA to upload to the device, and it apparently succeeds, but the device fails to reboot. If I rest the device, I get only the off-baud garbage string and the device doesn't come up.

If I flash the same image via serial, it works.

I am building with PlatformIO, if that makes a difference. I have the latest code as of today from the develop branch and the latest versions of the dependencies, from their respective repositories.

Here's my output, for reference. [...snip...] is where I took out long sequences of similar messages:

`** Booting into normal mode **
{} Stored configuration
  • Hardware device ID: d1008cef
  • Device ID: firelight1
  • Boot mode: normal
  • Name: FireLight
  • Wi-Fi:
    ◦ SSID: clough
    ◦ Password not shown
  • MQTT:
    ◦ Host: mqtt
    ◦ Port: 1883
    ◦ Base topic: devices/
    ◦ Auth? no
  • OTA:
    ◦ Enabled? yes
↕ Attempting to connect to Wi-Fi...

✔ Wi-Fi connected
Triggering WIFI_CONNECTED event...
↕ Attempting to connect to MQTT...
Sending initial information...
✔ MQTT ready
Triggering MQTT_CONNECTED event...
Calling setup function...
Sending statistics...
  • Wi-Fi signal quality: 100%
  • Uptime: 1s
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 1)...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 2)...

[...snip...]

Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 21)...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 22)...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 23)...
✴ OTA available (version 1.0.10)
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 24)...

OTA started
Triggering OTA_STARTED event...
Firmware is base64-encoded
Receiving OTA firmware (1055/348720)...
Receiving OTA firmware (2150/348720)...
Receiving OTA firmware (3245/348720)...

[...snip...]

Receiving OTA firmware (344885/348720)...
Receiving OTA firmware (345980/348720)...
Receiving OTA firmware (347075/348720)...
Receiving OTA firmware (348170/348720)...
Receiving OTA firmware (348720/348720)...
✔ OTA success
Triggering OTA_SUCCESSFUL event...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 25)...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 26)...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 27)...

[...snip...]

Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 341)...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 342)...
Device is idle
↻ Rebooting...
✖ MQTT disconnected
Triggering MQTT_DISCONNECTED event...
↕ Attempting to connect to MQTT...
✖ Wi-Fi disconnected
Triggering WIFI_DISCONNECTED event...
↕ Attempting to connect to Wi-Fi...


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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3ffe84e8
@cp:0
ld
e:
 ets Jan  8 2013,rst cause:3, boot mode:(3,7)

ets_main.c`

@clough42
Copy link
Contributor

clough42 commented Nov 7, 2016

Oh, I'm using the latest homie-ota python code, and I'm using mosquitto as my mqtt broker, if any of those things matter.

@dasMopo
Copy link

dasMopo commented Nov 11, 2016

Just to confirm the issue - I experienced the same, but with some minor differences / additions:

  • not using platform.io
  • first try worked flawlessly, second and third rendered device irresponsible (stuck in reboot)
    I must have been lucky with the first try.

@marvinroger
Copy link
Member

@mrpace2 mind taking a look? #208 seems related

@ghost
Copy link

ghost commented Nov 14, 2016

Since we responded with 200 we did commit the update to flash and the arduino/esp8266 Updater code told us that the update was successfully written to flash. With #208, he got a 400. That is, we found that something was wrong with the OTA payload or the MD5.

The one commonality between #204 and #208 is that in both cases we do reboot. According to esp8266/Arduino#1017, even the latest arduino/esp8266 still has issues with restart after OTA. Could this be our problem here? @clough42, @Gulaschcowboy can you please check if it helps to reset or power cycle your device after serial flashing but before trying OTA update?

@ghost
Copy link

ghost commented Nov 14, 2016

@marvinroger I wonder about the Homie output in between ↻ Rebooting... and ets Jan 8 2013,rst cause:.... Right after we print ↻ Rebooting... we flush the serial port and we call ESP.restart(). Shouldn't we see the boot message before anything else from Homie? Could it be possible that it restarted again during startup?

Also, varying reset causes in the logs above (1=normal boot, 4=watchdog, 2=reset pin, 3=software reset). See https://github.com/esp8266/Arduino/blob/master/doc/boards.md#boot-messages-and-modes

@marvinroger
Copy link
Member

@mrpace2 the serial output after the ESP.restart() is not alarming (see https://github.com/esp8266/Arduino/blob/master/cores/esp8266/Esp.cpp#L140), the reboot is not immediate.

They both use homie-ota, which, correct me if I am wrong, does not send an MD5. So the flash appears as successful, but the Updater does not actually check if the firmware is valid. @clough42 said

If I reset the device, I get only the off-baud garbage string and the device doesn't come up

So the flashed firmware is definitely wrong. Which, along with #208, makes me think the b64 decoding is broken.

@marvinroger
Copy link
Member

@clough42 @Gulaschcowboy can you provide your firmwares binaries?

@marvinroger
Copy link
Member

Can you test again with the latest git rev?

@Gulaschcowboy
Copy link
Author

Hi Marvin,

tested right now with latest homie-ota and latest homie rev. Result is similar:

✴ OTA available (version 1.0.2)
OTA started
Triggering OTA_STARTED event...
Firmware is base64-encoded
Receiving OTA firmware (985/350673)...

Receiving OTA firmware (349825/350673)...
Receiving OTA firmware (350672/350672)...
✔ OTA success
Triggering OTA_SUCCESSFUL event...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 50)...

Device is idle
↻ Rebooting...
✖ MQTT disconnected
Triggering MQTT_DISCONNECTED event...
↕ Attempting to connect to MQTT...
✖ Wi-Fi disconnected
Triggering WIFI_DISCONNECTED event...
↕ Attempting to connect to Wi-Fi...

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
@cp:0
ld

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

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0xd6
csum 0xd6
csum err
ets_main.c

@ghost
Copy link

ghost commented Nov 15, 2016

✔ OTA success
...
v3de0c112
@cp:0
ld

indicates that

  • the Homie OTA update was successful,
  • the restart was successful, and that
  • eboot successfully copied the OTA update from the flash update region to the "hot" sketch area.

It crashed afterwards:

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

is a watchdog reset. It seems to have happened before Homie's first log output. Maybe the firmware was published and saved correctly, but the firmware binary itself was broken? Does the same BIN file work when you upload it over the serial port?

If you share your BIN and BASE64 files, I could try them out on one of my setups. I don't have an ESP-07, though.

Another thing you could try are using MD5 checksums. Basically, you checksum the BIN file and Homie verifies the checksum right before committing the received OTA update to flash. This would help ruling out any issues with

  • base64-encoding,
  • MQTT publishing or
  • base64-decoding inside Homie.

@Gulaschcowboy
Copy link
Author

Hi @mrpace2

  • yes same binary works over serial.
  • It's independent on ESP type. I have same issue wit -07 and -12 (a clone Node-MCU)
  • Attached binary is for Node-MCU with 4M/1M SPIFFS
  • About your test requests:
  • I use homie-OTA, I guess it doesn't use base64 encoding(?) So I believe, homie believes to detect an base64 encoded firmware, but it isn't (a guess)
  • Homie-OTA doesn't support MD5 (another guess)

Binary attached. Please note, it's actually an uncompressed .bin just renamed to .zip because of GH limitations and my limitation of being "half offline" in a hotel. So please just rename.
homie-temp.ino.generic.zip

@ghost
Copy link

ghost commented Nov 15, 2016

Thanks for sending the files. I will try them out in a bit. I can test on Nodemcu.

Homie automatically detects is a firmware blob is binary or base64, based on the first firmware byte which is always 0xE9. It did detect base64 in your case.

Recent homie-ota does support base64. It was added a few weeks ago. A few minutes ago I created a new homie-ota PR adding support for MD5 checksums for the new OTA sequence (see #220).

@clough42
Copy link
Contributor

Here's the last binary I attempted to use:

firelight.zip

This is a zip file, containing the .bin file. It's compiled for a WeMos D1 mini, which has a 4M flash, with the default PlatformIO configuration. I'm actually using an ESP12F module, but the specs are the same.

I am attempting to flash with Homie-OTA.

The source code is here: https://github.com/clough42/homie-firelight/blob/master/src/main.cpp

@ghost
Copy link

ghost commented Nov 15, 2016

@clough42, thanks, will test shortly.

@Gulaschcowboy, can you also provide mqtt and serial log files and the base64 file you were uploading?

@ghost
Copy link

ghost commented Nov 15, 2016

@clough42 Running the latest Homie code, I uploaded the bin file you provided (a) using my little script (attached) and (b) using the latest homie-ota. I can upload your bin file without problems. The board restarts and launches your firmware. See the attached logs.

Please try again:

  1. recompile your app to use the latest homie-esp8266
  2. download the BIN file once over serial
  3. hard-reset or power cycle your board
  4. run OTA either using the latest homie-ota or something along the lines of the bash script that I attached.

Please report results. If it still fails, please provide logs.

firelight-tests.zip

@ghost
Copy link

ghost commented Nov 15, 2016

@Gulaschcowboy Same thing here. It works fine on my setup. See the attached logs, this time generated using your firmware blob. When you're back home, please try again (same as above). Have a safe trip!

homie-temp-tests.zip

@Gulaschcowboy
Copy link
Author

Hi @mrpace2

  1. check
  2. check
  3. check
  4. via homie-ota

Result:

Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 32)...
✴ OTA available (checksum 745b6573bfdaafbee0805739b779f63d)
��� OTA started
Triggering OTA_STARTED event...
Firmware is base64-encoded
Receiving OTA firmware (985/350880)...
Receiving OTA firmware (2005/350880)...

receiving OTA firmware (350880/350880)...

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4024a39b depc=0x00000000

ctx: sys
sp: 3ffffad0 end: 3fffffb0 offset: 01a0

stack>>>
3ffffc70: 3ffef460 3fff05d4 3ffffcac 40219ad6
3ffffc80: 4024a39b 3ffef460 3ffffcb0 4010068c
3ffffc90: 4024a3ea 000002f7 00000007 4020c179
3ffffca0: 00072380 3ffef460 00000197 3fff3674
3ffffcb0: 0000000f 00000000 00000000 402199a8
3ffffcc0: 00072380 3fff05d4 3ffef460 4020c6d4
3ffffcd0: 00000000 00000000 00000000 00000100
3ffffce0: 3fff34dc 0000000f 0000000d 3ffeddc8
3ffffcf0: 3ffedd50 00000000 4021eec3 00000000
3ffffd00: ffffffff 00000000 3ffe9d51 00000000
3ffffd10: 4021ef16 3ffed398 3fff1fa4 00000000
3ffffd20: 40000000 00072352 0000002e 3fff2762
3ffffd30: 00000023 00072380 00000020 00000000
3ffffd40: 3ffea52e 3fff31e4 3ffffda0 00000000
3ffffd50: 3ffea52e 3fff31dc 00000000 4021b9d4
3ffffd60: 00072380 00000000 00000000 4020babf
3ffffd70: 40000000 3fff31cc 00000000 4021bcd2
3ffffd80: 3fff2364 0276ee4c 00002200 40210014
3ffffd90: 00072380 40103080 3fffc200 00000002
3ffffda0: 3fff3644 00000003 4020ba9c 4021b9ac
3ffffdb0: 40000000 00000030 0000001a ffffffff
3ffffdc0: 3fff31dc 3fff275c 00000000 3fff3934
3ffffdd0: 3fff3934 3fff2370 3fff2364 00000159
3ffffde0: 3ffffe50 0000002e 3fff3234 4021bb6d
3ffffdf0: 0000002e 00072352 00072380 00000000
3ffffe00: 00000022 4010424d 00040000 40210fd5
3ffffe10: 0000002e 00072352 00072380 00000000
3ffffe20: 3ffea52e 00000550 3fff00fc 4020fe09
3ffffe30: 3fff0570 00000279 00000279 00000080
3ffffe40: 40104250 00040000 7fffffff 00000000
3ffffe50: 00000000 4010424d 00040000 40107378
3ffffe60: 3fff0255 4010322a 3fff3934 4023ecd8
3ffffe70: 3fff2364 3fff1cc4 00002200 3fff0150
3ffffe80: 00000001 3fff3284 3fff00fc 4020fe3c
3ffffe90: 3ffffea0 3fff3284 3fff00fc 402115f0
3ffffea0: 3fff387c 00000030 0000001a ffffffff
3ffffeb0: 3fff1ea4 3fff1eb0 00000006 3fff1cb8
3ffffec0: 3fff387c 3fff1cc0 3fff1cbc 40211643
3ffffed0: 3fff387c 3fff1cc0 3fff1cbc 402404ec
3ffffee0: 00000550 3e2ba8c0 00000010 00000550
3ffffef0: 00000010 00000000 0000010d 00000004
3fffff00: 40230000 00000000 0000007d 3fff1ea8
3fffff10: 3ffea506 3fff1eb0 3fff3284 4023e9f1
3fffff20: 3fff1b9c 3fff2364 3fff2364 4023cea1
3fffff30: 3fff1b9c 3fff1b98 00c50db3 3fff2364
3fffff40: 3ffea4f8 00000000 3fff3284 4023dded
3fffff50: 2a358f3e 00000000 4010522e 3ffeddc8
3fffff60: 401059aa 00c526e9 3ffeee00 60000600
3fffff70: 40232c18 3ffe9a34 3ffeee00 0276f726
3fffff80: 40232c3e 3fffdab0 00000000 3fff23b4
3fffff90: 3fffdc80 00000000 3fff3284 40232863
3fffffa0: 40000f49 3fffdab0 3fffdab0 40000f49
<<<stack<<<

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld

Triggering NORMAL_MODE event...
🔌 Booting into normal mode ����
{} Stored configuration
• Hardware device ID: 18f8cce0
• Device ID: test1
• Boot mode: normal
• Name: test1
• Wi-Fi:
◦ SSID: Al Quaeeda
◦ Password not shown

Second attempt causes same result.

Question: What should be the setting for homie-ota.ini:
OTA_FIRMWARE_BASE64 =
true or false?
I tried both (of course including restart of homie-ota and re-upload of firmware.bin)
Same result.

What else should I provide to help?

@Gulaschcowboy
Copy link
Author

Gulaschcowboy commented Nov 15, 2016

Hi @mrpace2,

tried both ways that you described in your attached zip file. Both ways (homie-ota and your script) end in:

Receiving OTA firmware (350845/350880)...
Receiving OTA firmware (350880/350880)...

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4024a39b depc=0x00000000

ctx: sys
sp: 3ffffad0 end: 3fffffb0 offset: 01a0

stack>>>
3ffffc70: 3ffef460 3fff05d4 3ffffcac 40219ad6
3ffffc80: 4024a39b 3ffef460 3ffffcb0 4010068c
3ffffc90: 4024a3ea 000002c1 00000007 4020c179
3ffffca0: 00072380 3ffef460 0000019d 3fff34c4
3ffffcb0: 0000000f 00000000 00000000 402199a8
3ffffcc0: 00072380 3fff05d4 3ffef460 4020c6d4
3ffffcd0: 00000000 00000000 00000000 00000000
3ffffce0: 3fff36c4 0000000f 0000000d 00000000
3ffffcf0: 3ffeddc8 4010322a 4021eec3 00000000
3ffffd00: ffffffff 00000000 3ffe9d51 00000000
3ffffd10: 4021ef16 3ffed320 3fff1fa4 00000000
3ffffd20: 40000000 00072352 0000002e 3fff2762
3ffffd30: 00000023 00072380 00000020 00000000
3ffffd40: 3ffeab72 3fff31e4 3ffffda0 00000000
3ffffd50: 3ffeab72 3fff31dc 00000000 4021b9d4
3ffffd60: 00072380 4010322a 00000000 4020babf
3ffffd70: 40000000 3fff31cc 00000000 4021bcd2
3ffffd80: 3fffc278 40103080 3fffc200 40210014
3ffffd90: 00072380 40103080 3fffc200 00000002
3ffffda0: 3fff330c 00000030 4020ba9c 4021b9ac
3ffffdb0: 40000000 3ffeadb6 0000030a 003c3dda
3ffffdc0: 3fff31dc 3fff275c 00000000 00000001
3ffffdd0: ffffffff 3fffc6fc 000000d6 00000159
3ffffde0: 3ffffe50 0000002e 3fff35dc 4021bb6d
3ffffdf0: 0000002e 00072352 00072380 00000000
3ffffe00: 4022495e 3fff1fa4 3ffeb1e5 40210fd5
3ffffe10: 0000002e 00072352 00072380 00000000
3ffffe20: 3ffeab72 00000550 3fff00fc 4020fe09
3ffffe30: 3fff0570 000002f1 000002f1 00000080
3ffffe40: 00000000 00000006 3fff372c 4023ec98
3ffffe50: 00000000 00000000 00000000 40107378
3ffffe60: 3fff0255 00000006 3fff372c 4023ecd8
3ffffe70: 3fff2364 3fff1cc4 3fff53c4 3fff0150
3ffffe80: 00000001 3fff3644 3fff00fc 4020fe3c
3ffffe90: 00000001 3fff3644 3fff00fc 402115f0
3ffffea0: 3fff3234 3fff3238 3fff3234 4023c806
3ffffeb0: 3fff1ea4 3fff1eb0 00000006 3fff1cb8
3ffffec0: 3fff3234 3fff1cc0 3fff1cbc 40211643
3ffffed0: 3fff3234 3fff1cc0 3fff1cbc 402404ec
3ffffee0: 00000550 3e2ba8c0 00000010 00000550
3ffffef0: 00000010 00000000 3ffeb194 40107368
3fffff00: 00000000 00000000 3ffeb1ad 3fff1ea8
3fffff10: 3ffeab4a 3fff1eb0 3fff3644 4023e9f1
3fffff20: 002c4288 3fff2364 3fff2364 3ffee7b0
3fffff30: 00000000 3fff3644 0000001c 3fff2364
3fffff40: 3ffeab3c 00000000 3fff3644 4023dded
3fffff50: 2a358f3e 00000001 4010522e 3ffeddc8
3fffff60: 3ffed320 40101bd5 00000000 00000005
3fffff70: 00000002 40101967 00000002 00000000
3fffff80: 401019a2 00000002 00000000 3fff23ec
3fffff90: 3fffdc80 00000000 3fff3644 40232863
3fffffa0: 40000f49 3fffdab0 3fffdab0 40000f49
<<<stack<<<

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld

After that ESP restarts normal (at least this is better than before, as it doesn't produce a csum error anmore)

Attached you find a log taken with..
mosquitto_sub -h localhost -t homie/test1/# -u myuser -P mypass -v > test.log

...using your shell script.

test.zip

@ghost
Copy link

ghost commented Nov 15, 2016

base64 (=default, if not set):

OTA_FIRMWARE_BASE64 = True 

binary:

OTA_FIRMWARE_BASE64 = False

I'm afraid I can't help much with your exception. You could try locating the exact code position where it crashes by looking up addresses contained in the exception dump from a map file or a listing generated using xtensa-objdump. I have never done that myself for ESP, but I know that other people have, so it is possible.

Or add extra debug logs around BootNormal.cpp:L413-L424 to see how far it gets before it dies.

Just guessing... Are you sure your power supply is clean? Maybe there's another board you could try?

Or, start over from a simple Homie sketch. Something like:

#include <Homie.h>

void setup() {
    Serial.begin(115200);
    Homie.setup();
}

void loop() {
    Homie.loop();
}

@Gulaschcowboy
Copy link
Author

Hi @mrpace2

I guess you misinterpreted the logs. After your last commits it doesn't crash anymore after firmware is copied to "hot" flash area, instead it crashes before. So at least the ESP is not rendered unusable anymore. It crashes, resets and starts old firmware. That was different before todays rev.
So my non programmer-impression is: you/ @marvinroger changed something today, that causes a slightly different behaviour/issue than before.

About OTA in general: OTA worked for me before the base64-related changes in homie-esp8266 about ~3 weeks ago.

About power supply/ESP type: I have tested with 2 node MCUs and a ESP07 that I have with me right now. (yes, I always travel with ESPs :-) )
Node MCUs are powered by built-in USB, 07 is powered by an external power supply and a linear voltage regulator with a beefy capacitor built in. So it is very unlikely to be a power supply or device issue.

Also 2 Sonoff relays at home have same problem since above mentioned b64 changes. (Couldn't test them with today's rev). Sketch is almost bare minimal, actually it is the example provided by Marvin. (sonoff with button)

All ESPs run stable in normal operation.

About xtensa-objdump: Don't know if I'm capable of doing it or being able to interpret results...

About adding code in BootNormal.cpp: That's also beyond my skills I guess

:-(

Thanks a lot
Alex

@ghost
Copy link

ghost commented Nov 15, 2016

@Gulaschcowboy I did notice that the behavior changed for you and I did notice in your log that your app rebooted with the old md5. The location where I suggested to add debug output is before the reboot, for a reason ;-)

How can I duplicate your problem here? As I said, it worked fine when I tried your previous firmware a few hours ago. Do you have a repo I could fork? Would you be open to sharing your latest binary again so I can try that one out?

What toolchain are you using?

Thanks for your help.

@ckrey
Copy link

ckrey commented Nov 16, 2016

I think I got over the problem now:

a) updated Arduino to 1.6.12
b) switched to OTA_FIRMWARE_BASE64 False (binary)

Loaded ESP via Arduino and USB once
Can now repeatedly upgrade or downgrade versions

c) switched back to OTA_FIRMWARE_BASE64 True (BASE64)

✴ OTA available (checksum d5f35e99e9df82360a91879400820e98)
↕ OTA started
Triggering OTA_STARTED event...
Firmware is base64-encoded
Receiving OTA firmware (1056/350736)...
<snip>
Receiving OTA firmware (350736/350736)...

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4024a353 depc=0x00000000

ctx: sys 
sp: 3ffffad0 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffc70:  3ffef5e0 3fff070c 3ffffcac 40219aee  
3ffffc80:  4024a353 3ffef5e0 3ffffcb0 4010068c  

see jpmens/homie-ota#44

@ghost
Copy link

ghost commented Nov 16, 2016

@ckrey Thanks for your help. So, still something wrong with base64... ☹️ Maybe the issue only happens with Arduino-built firmware? (I'm using PlatformIo). @Gulaschcowboy what is your build environment?

I'm just reading up on ESP8266 exceptions. Exception 3 is a LoadStoreErrorCause which seems to be what data aborts are with ARM or page faults with x86 (roughly). epc1 and excvaddr both contain addresses. Presumably, one is the location of the opcode where it happened and the other one is the address that was accessed. With all the exceptions reported here, epc1 seems to be 0x4000bf64 and excvaddr varies around 0x4024a3XX. excvaddr could be the opcode location.

Can you please generate a map file matching your firmware and look up addresses 0x4000bf64 and 0x4024a353 in the map file? In order to generate a map file, please add link option

 -Wl,-Map,firmware.map

to your LDFLAGS. I don't know how this is done in Arduino. In PlatformIo, you would add

build_flags = -Wl,-Map,firmware.map

to your platformio.ini file. The next linker run will then generate a file firmware.map which contains mappings of symbolic names to addresses. You may also post your map file here.

@Gulaschcowboy
Copy link
Author

@mrpace2 Yes, Arduino IDE 1.6.12, The sketch doesn't seem to matter. As said, I even have the problem with the Marvins Sonoff button sketch.
Build flags: I will have to try tonight.

@marvinroger
Copy link
Member

To decode the stack trace easily:

Please paste the decoded stack trace, not the one with the addresses as we cannot do anything without the binaries. 😉

@bleader
Copy link

bleader commented Nov 18, 2016

Chiming in, got here from #224, so getting the exception 3 after:

Receiving OTA firmware but not requested, skipping...

Everything on breadboard here, powered by an MB-102, being itself powered by a pretty huge 12V power supply (able to withstand 5A @ 12V). Got a 10µF between across Vcc/GND too.

Last change I made was moving from 1.5.0 to head of develop branch. Tried again with 1.5.0 it works fine, so I would agree wint @Gulaschcowboy that is probably isn't related to power supply.

Not right now, but I could give a shot at some kind of git bisect on Homie see if it can give us any pointers as when it appeared.

@bleader
Copy link

bleader commented Nov 18, 2016

Sorry I didn't read everything, so my suggestion deesn't make much sense. Still I'm pretty sure it doesn't come from the power supply :)

@clough42
Copy link
Contributor

I just tested with the latest homie-ota, and it worked!

Note, I got the same error as @bleader when running on WIndows 10 with Python 2.7.12:

Receiving OTA firmware but not requested, skipping...

I tried it again on Linux (Ubuntu 14.04.4 LTS with Python 2.7.6) and it worked on the first try.

@clough42
Copy link
Contributor

clough42 commented Nov 20, 2016

I just discovered that my Windows git repo was a few days out of date. After updating, It's still not working for me. Now it's starting the update, but only sending about 7K instead of the 300K+ of the image. Not sure what's happening, but it is working on Ubuntu, so I'm happy.

Clearly this is a homie-ota issue, and not a homie-esp8266 issue, specifically.

@bleader
Copy link

bleader commented Nov 20, 2016

You made me realize my repo wasn't up to date, the last update being to actually really read the OTA_FIRMWARE_BASE64... which may explains why it didn't change a thing when I tried to disable it.

So, now that I did update, OTA works with OTA_FIRMWARE_BASE64 disabled, but not if I enable it. Which makes it less likely to be due to homie-ota only.

@clough42 Are you sure both your configurations have it disabled?

@clough42
Copy link
Contributor

@bleader Ahh...good catch. It's explicitly disabled on the Ubuntu machine (which works) and the line in the ini file is commented out on the WIndows machine, which doesn't. If it defaults to enabled, then that's the difference. I'll toggle that and test when I get a chance.

@jpmens
Copy link

jpmens commented Nov 29, 2016

Finally getting around to testing this. Environment: platformio on macOS 10.12.1, Homie 2.0, latest commit 49eca38 and homie-ota (also latest :-)

$ md5 firmwares/H2MuM-2.0.4.bin
MD5 (firmwares/H2MuM-2.0.4.bin) = 6f90474f8ecd7abe87564dcddec9e01d

(Base64-encoded firmware here)

When OTA is trigerred (B64-enabled), the result looks promising until the stack trace:

✴ OTA available (checksum 6f90474f8ecd7abe87564dcddec9e01d)
↕ OTA started
Triggering OTA_STARTED event...
Firmware is base64-encoded
Receiving OTA firmware (1053/350529)...
Receiving OTA firmware (2148/350529)...
[...]
Receiving OTA firmware (350200/350529)...
Receiving OTA firmware (350528/350528)...

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4024b633 depc=0x00000000

ctx: sys
sp: 3ffffad0 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffc70:  3fff0df8 3ffef5f4 3ffffcac 40202102
3ffffc80:  4024b633 3fff0df8 3ffffcb0 40100688

If I configure home-ota to not use base64, I see the following expected messages, and the update (sometimes) works:

devices/18fe34d40655/$implementation/ota/status 206 348426/350528
devices/18fe34d40655/$implementation/ota/status 206 349886/350528
devices/18fe34d40655/$implementation/ota/status 206 350528/350528
devices/18fe34d40655/$implementation/ota/status 200

@marvinroger
Copy link
Member

What happens when, when not using base64, it (often) does not work? Does it crash? Does it report something?

@marvinroger marvinroger added this to the v2.0.0 milestone Nov 30, 2016
@marvinroger
Copy link
Member

By the way, is anybody using NodeMCU v2s experiencing these issues? I only have these, and I don't have any problems with the latest Git, b64 or not.

@Gulaschcowboy
Copy link
Author

Hi, I have that issue with NodeMCU boards (clones) as well with esp-07s

@marvinroger
Copy link
Member

These ones?

NodeMCU v2

@Gulaschcowboy
Copy link
Author

yes, i guess so. Clones from LoLin.

@marvinroger
Copy link
Member

Well, I don't experience a single issue on official NodeMCU boards, so I guess the problem is you are using clones. I am not sure if the issue actually comes from the hardware or from esp8266/Arduino, but I am pretty sure it does not come from homie-esp8266. Everything being rocking stable on official NodeMCUs...

@Gulaschcowboy
Copy link
Author

I understand your point, but my point is: Same issue on NodeMCU clone as well as on ESP07 modules, always with base64. Would it be helpful to give you access to my environment/modules?

@marvinroger
Copy link
Member

I understand your point too, but I would need to test on real hardware. I'll try to buy some.

@amayii0
Copy link

amayii0 commented Feb 18, 2017

I'm in the process of trying OTA on D1 Mini clones of this kind https://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266-by/32635160765.html
I'm using this Python "server" https://github.com/jpmens/homie-ota
My code can be accessed from https://github.com/amayii0/Homie-DS18B20

As this is the first time ever i'm doing such thing, don't expect a quick reply... :)
(spoiler : it currently just crashes after OTA / reboot)

Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 27)...
Temperature: 19.00 °C
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 28)...
✴ OTA available (checksum 1c47b3d8886fb2730d7e53b24acdd43c)
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 29)...
↕ OTA started
Triggering OTA_STARTED event...
Firmware is base64-encoded
Receiving OTA firmware (1056/4167)...
Receiving OTA firmware (2151/4167)...
Receiving OTA firmware (3246/4167)...
Receiving OTA firmware (4166/4166)...
✔ OTA succeeded
Triggering OTA_SUCCESSFUL event...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 30)...
Device is idle
↻ Rebooting...
Triggering MQTT_PACKET_ACKNOWLEDGED event (packetId 31)...
✖ MQTT disconnected
Triggering MQTT_DISCONNECTED event...
↕ Attempting to connect to MQTT...
✖ Wi-Fi disconnected
Triggering WIFI_DISCONNECTED event...
↕ Attempting to connect to Wi-Fi...
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3ffe84d0
@cp:0
ld
s$␀lܟ<␀�l�<␃␌␄␌�␄l�␄c|��␃�␓�;�c␌�c��g'�lng���␌b␜x��l;l{l���␃��r�Ó␃x�o�␘␃␌␄�␌d␌��␌␄␌#␄g�|␃l�␌␄�c��'o�␀d��$␃�␛␒no␄$␃␏␃g{���o␌␄b␄�␏$␏r��g␄␌c␄�␇l�sĜ���␌��d␂��'�␃{$␀l��<␀�l�|␃␌␄␌�␄l�␌c|��␃�␓�r�c�␄c��gn�dog���␌c␜x
�l;l{lx�o�␘␃␌␄�␌d␌��␌␄␌c␄g�|␃l�␌␄�c��'o�␀d��$␃�␛␒'o␌$␃␎␃gs���o␌␄b␄�␎$␏;��g␄␌c␄�␏l�sĜ���␌��d␂��g�␃sd␀$��|␀�l�|␃␌␌␄�␄$�␄c|��␃�␛�{�c�␌c��og�l'o���␌#␜p�${ls$p�g�␐␃␄␄�␄l␄Ĝ␄␌␌c␌'�|␃$�␄␄�b��og�␀l��l␃�␒␛og␄l ␃␇␃n;��
�g␄␌c␄�␇l␇s��n␌␄c␌�␇d�{�����␄��$`␃��o�␃

@marvinroger
Copy link
Member

marvinroger commented Feb 18, 2017 via email

@amayii0
Copy link

amayii0 commented Feb 18, 2017

This is where it gets interesting. My firmwares are not 4k:
352.592 for D1Mini-DS18B20-0.17.2.14.bin
352.592 for D1Mini-DS18B20-0.17.2.17.bin

20170218 homie-ota firmwares size

@marvinroger
Copy link
Member

Does it happen all the time? Can you post a mosquitto_sub log of all the messages sent?

@chaudhryfaisal
Copy link

@amayii0 what mqtt server are you using? I believe I ran into similar issue when max payload sized on my mqtt was limited. I had more success with iot.eclipse.org

@amayii0
Copy link

amayii0 commented Feb 19, 2017

@marvinroger ill check that later. Maybe also switch to mousquitto for debug

@amayii0
Copy link

amayii0 commented Feb 19, 2017

@marvinroger it seems payload gets limited to 5.556 bytes. This would rather be related to the broker I'm afraid.

pi@garagepi ~ $ mosquitto_sub -h 192.168.0.26 -p 1883 -t homie/5ccf7fd3b7d5/#
D1Mini-DS18B20
true
60
17.37
2452e21eb82983a708b60968b10d4daa
temperature
3
100
true
esp8266
2.0.0
unit,degrees
{"wifi":{"ssid":"dd-iot"},"mqtt":{"host":"192.168.0.26","port":1883,"auth":false},"name":"Ds18b20","ota":{"enabled":true}}
5C:CF:7F:D3:B7:D5
Ds18b20
2.0.0
0.17.2.14
192.168.254.119
200
c
1c47b3d8886fb2730d7e53b24acdd43c
6QECQJzyEEAA8BBAaAUAABAQAABQ9RBAHEsAQMwkAED///8///8PQP9/EED///9f8P//PwAQAAAc4gBAAEoAQExKAEAABwBgAAAAgOgrAEDwMABAoC8AQLcdwQQAEgBgABAA63wSAGASwdAJsfmh/QEpTzhPIeb/KiNLPwxEAeb/wAAAjFIMEoYHAAAAIeH/KQ8oDygCKS8oDygSKT84H4svAd7/wAAADAIdDwix+KESwTAN8AAAABLBwAnx+eH9ASmPKI8i0hApDzLPECgPQqAIAdH/wAAAjEIMEkYuAAAoD4siKQ8MAikfBiUADAIpbwwCKX8yzxgoDwyEAcf/wAAAjDIMIsYjACgPiyIpDyhvKT8MAiJPCCg/McH/JzMEDBIiTwgoPzG//yezDCg/Mb7/JzMEDBIiTwgoPzG8/yezBSKgASJPCDIPCAwSICMwICB0jJIofzgPKiMpD8YGADg/SH8oDwGs/8AAAIxCDDJGCQAAKH84DyojKQ8oHxsiKR8iDxE4HyezAsbX/xGo/yhfPQKgAwAMAh0PCPH44RLBQA3wEsGwAmETwmES0mER4mEQ+fH9ASmPOZ9Jry0B7QIojyAgBMxiKJ8gIAQWQgAMEoYvACGX/yk/KD8LIilPKD+NAgwJgC0l0NkR0NIg0MgRKD9tAgwHYC0l0LcRsLIg0KYRKD/7IiAkQcAiESARwC0BLQIpXzivKD8qIwsyKD8gIGAgIxApDyiPKR8onykvBhYAKC84PwGA/8AAAAF//8AAAIxCDCIGEgAAOF8oH0g/AXH/wAAAjEIMMgYNAAA4XygvSD8Bdv/AAACMQgxCBggAADgfK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qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqukEAkAEABBAEBAgQEi/BADQhP4/Mf//OQIN8AAx/f8SwfAyYgACYQNFQgECIQMSwRAN8AASwfDCYQIgwiAoUgJhA4yCRV0=

I've dumped that to a file using MQTTFX and same story. The homie-OTA is running from W7 host, looks like I can run that from the rpi instead.
20170219 homie-ota firmwares mqtt firmware size

@marvinroger
Copy link
Member

@amayii0 that's indeed related to the broker... We cannot do anything on our side, unfortunately.

@Gulaschcowboy
Copy link
Author

@timpur After cleaning the libraries folder as requested in #477 OTA works for me.

@timpur
Copy link
Contributor

timpur commented Feb 7, 2018

Nice, recommend platform IO using vscode this will fix your lib dependency issues in the future. But does have its anoyences ....

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

No branches or pull requests

10 participants