-->
Page 1 of 1

HTTP OTA for Sonoff

PostPosted: Mon Aug 28, 2017 3:08 am
by AusUser
I'm trying to get HTTP OTA working on Sonoff basic. I have Blynk sketch upload to the sonoff via serial FTDI but now I want to update the sketch using HTTP OTA.

I've created a new sketch and located the bin file from the build folder on my ardunio ide. I connect to my url and choose the file and click "update" however each time the upload fails.

The serial monitor you see.

Code: Select all ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld
system param error
55 20 52 60 01 22 04 08 52 1c 0b 48 14 32 1c 0a 40 47 85 5a 33 30 30 f4 05 06 00 08 01 88 9c c8
11 22 58 05 12 c1 10 0d f0 00 00 00 b6 52 13 b6 82 09 2c 44 f6 b2 07 1c 44 86 00 00 42 a0 60 2d
04 0d f0 22 a0 c0 0d f0 00 9d fe 3f 31 ff ff 30 22 b0 22 02 05 0d f0 00 31 fc ff 30 22 b0 22 02
04 0d f0 00 20 80 fe 3f 31 f8 ff 30 22 b0 31 fd ff 22 02 05 30 22 90 22 12 00 0d f0 12 c1 e0 39
01 49 11 c9 31 09 21 cd 02 05 fa ff 29 41 38 01 2d 0c 05 06 00 08 41 38 11 0c a4 2a 23 b6 8c 01
1c 04 c8 31 4a 50 5a 22 08 21 12 c1 20 20 20 f4 0d f0 00 00 12 c1 f0 c9 31 09 21 01 e3 ff 0c ac
00 02 b0 22 00 05 09 01 b6 82 01 1c 0c c5 f5 ff 29 11 28 01 2c 03 22 02 05 85 01 00 38 11 08 21
3a 3c c8 31 3a 22 20 20 f4 12 c1 10 0d f0 00 00 ff ff 03 00 d0 43 11 51 d4 ff 40 30 f4 41 fc ff
50 52 b0 58 05 b6 82 05 32 c3 16 30 30 f4 30 35 82 4a 33 30 32 d5 b6 82 06 7c c4 3b 33 40 33 10
30 20 f4 0d f0 00 00 00 30 62 c0 37 32 03 2d 06 0d f0 0b 26 0d f0 00 00 c2 18 10 40 f6 b2 3a 41
fe ff 20 32 90 4a 33 a0 03 00 46 16 00 86 14 00 c6 12 00 c6 08 00 06 08 00 86 11 00 c6 0f 00 c6
05 00 46 0d 00 86 0b 00 c6 09 00 06 08 00 46 03 00 86 05 00 c6 03 00 06 02 00 22 a0 ff 0d f0 0c
02 0d f0 0c 62 0d f0 0c 42 0d f0 0c 22 0d f0 0c 72 0d f0 0c 52 0d f0 0c 32 0d f0 0c 12 0d f0 0c
82 0d f0 0c 92 0d f0 0c a2 0d f0 00 ac 12 26 12 17 26 22 18 26 32 0d 26 52 0e 26 62 0f 26 72 04
22 a0 ff 0d f0 0c 02 0d f0 0c 22 0d f0 0c 12 0d f0 0c 32 0d f0 00 00 00 20 a1 07 00 31 ff ff 52
22 18 0c 04 42 45 0b 49 a2 49 92 49 e2 42 42 16 42 42 17 42 42 06 32 62 16 0d f0 00 dc e0 fe 3f
70 80 fe 3f 00 0a f2 3f b4 ce 20 40 12 c1 f0 09 01 d9 21 c9 11 dd 03 cd 02 05 fc ff 01 f8 ff 22
0c 77 02 00 76 00 02 40 00 00 91 07 60 1d 22 0c 5c 32 0c 79 01 f5 ff c0 00 00 02 0c 77 31 f0 ff
00 02 90 30 00 90 02 00 01 86 08 00 22 0c 02 1c 90 80 22 01 20 28 31 27 20 11 32 0c 03 80 33 01
30 38 31 37 20 05 02 0c 05 86 00 00 02 0c 78 22 2c 18 42 02 0a 51 e3 ff da 44 47 20 1b d0 0d 90
20 60 a0 62 6c 18 c0 20 00 08 01 52 25 80 59 bc d8 21 c8 11 12 c1 10 0d f0 00 00 90 22 2c 1a 46
f7 ff 00 00 0c a6 12 c1 f0 09 01 42 22 18 08 a2 42 04 01 1b 00 37 34 2b 48 92 09 a2 4a 03 1b 00
09 92 f6 63 29 f6 33 09 0c 00 0c 05 52 42 06 86 00 00 02 02 06 07 b6 04 0c 13 05 f3 ff 08 01 12
c1 10 0d f0 48 92 09 a2 4a 03 2b 00 06 f4 ff 02 02 06 1b 00 00 00 74 02 42 06 c6 f5 ff 00 00 00
12 c1 f0 09 01 16 a2 07 02 22 18 16 40 07 48 73 52 03 0f 07 94 6c 68 e2 1b 66 69 e2 66 15 5d 78
52 82 a0 7f 27 e7 49 02 03 09 0c 07 80 60 01 60 68 31 87 16 3b 92 02 00 02 42 00 80 09 01 92 c9
81 00 08 31 0a 06 00 01 21 90 07 83 80 60 01 72 02 01 60 68 31 87 17 15 80 47 01 40 48 31 40 44
90 4a 46 e0 44 11 fb 04 40 04 b3 00 04 21 02 42 01 32 03 04 30 34 41 c5 f2 ff 46 01 00 26 25 09
26 35 06 08 01 12 c1 10 0d f0 32 00 08 45 f1 ff c6 fb ff 00 62 03 00 80 46 01 40 38 31 16 a2 04
58 52 82 a0 7f 07 e5 42 72 02 02 87 97 07 62 42 02 0c 06 46 05 00 62 42 02 80 67 01 60 68 31 6a
63 60 61 21 80 66 01 60 68 31 3d 06 72 02 03 87 17 15 80 47 01 40 48 31 40 44 90 4a 46 e0 44 11
fb 34 40 34 b3 30 34 21 32 42 03 0d f0 00 00 00 0d f0 00 00 e4 80 fe 3f 44 81 fe 3f b0 6d 23 40
00 10 00 00 a4 81 fe 3f 00 08 20 00 60 80 fe 3f 61 7b ff 12 c1 f0 c9 11 09 01 cd 02 2d 03 9c 1c
02 2c 18 8c c0 38 03 30 06 41 77 63 5e 02 2c 19 c6 01 00 38 02 01 ef ff 07 63 7b 09 72 46 01 00
01 ee ff 02 62 07 22 61 02 56 c0 00 21 ec ff 85 cc 03 28 21 61 6a ff 38 02 8c 9c 48 5c 67 64 05
97 63 02 86 20 00 52 06 72 30 71 04 00 07 40 50 50 91 07 65 0e 02 06 73 c8 11 02 42 08 08 01 12
c1 10 0d f0
02 c0 20 00 88 02 d0 88 10 80 8e 15 cc e8 e8 2e c0 20 00 98 0e d0 99 10 90 9e 15 16 f9 fe 85 8f
00 01 f4 fe a2 20 59 1b aa a2 60 59 e7 1f 04 28 2e 56 a2 fc b1 c1 ff c7 0b 0a 28 21 20 2c 34 10
11 20 85 e8 01 37 fc 02 06 24 00 c0 20 00 f1 8e ff f8 1f 87 7f 17 f0 f0 f5 06 05 00 21 ff fe 31
ff fe 42 a4 57 01 36 fa c0 00 00 06 ff ff f2 a0 7f e2 21 02 e0 ec 34 b6 8e 05 02 ce f6 56 10 18
31 b0 ff 21 ae ff 30 3c 10 22 22 00 39 01 dc 72 31 ac ff 37 0c 12 2d 0e 85 00 01 51 aa ff 41 a8
ff 50 cc 10 40 4c 10 49 01 08 21 00 0c 35 16 50 19 0b 20 16 e2 19 32 c0 fe 16 83 1a 42 c0 fc 16
d4 1a 52 c0 fb 56 f5 0f 85 da 01 71 9f ff 70 7e a0 68 c7 08 01 1b 66 69 c7 46 01 00 01 99 ff 00
0c 10 16 00 01 02 21 02 00 0c 34 b6 80 02 66 90 47 2d 00 05 fb 00 d7 7c 02 85 8b 01 47 7c 05 10
11 20 45 8c 01 97 6c 0a 31 bb fe 22 23 65 1b 22 22 63 65 c0 37 05 16 43 e4 51 b6 fe 42 25 66 1b
44 42 65 66 86 8d ff 21 cc fe 31 cc fe 42 a4 34 01 04 fa c0 00 00 06 ff ff 21 c7 fe 31 c8 fe 42
a4 d5 01 ff f9 c0 00 00 06 ff ff c0 20 00 51 63 fe f2 25 85 c0 20 00 01 4c ff 02 20 bf c0 20 00
52 25 86 16 ef 0c 28 2f 16 22 11 e1 a2 fe 09 11 e8 2e 0c 13 9c be c0 20 00 08 0e d0 00 10 00 0e
15 cc 80 e8 2e 1b 33 30 30 74 86 f9 ff 8c 2e 48 2e 49 81 b6 23 0a 16 0e 04 2d 0e c5 a5 ff c6 06
00 2d 0e 48 11 e0 6f c0 0c 13 0c 05 60 53 83 85 ab ff 81 90 fe 72 28 59 1b 77 72 68 59 e0 8f c0
16 08 e7 e8 81 46 ea ff 21 a4 fe 31 a4 fe 42 a4 ce 01 db f9 c0 00 00 06 ff ff c0 20 00 98 0f d0
99 10 90 9e 15 16 b9 e4 2d 0f c5 a0 ff c6 90 ff 21 9a fe 31 9a fe 42 a4 55 01 d1 f9 c0 00 00 06
ff ff 21 95 fe 31 95 fe 42 a4 b3 01 cd f9 c0 00 00 06 ff ff c8 41 d8 51 e8 61 f8 71 08 31 12 c1
30 0d f0 21 8d fe 31 8d fe 42 a4 56 01 c5 f9 c0 00 00 06 ff ff 21 88 fe 31 89 fe 42 a4 76 01 c0
f9 c0 00 00 06 ff ff f0 30 74 2d 0e 45 fd 00 06 9e ff 00 00 00 28 21 3d 0e 20 20 75 85 c7 01 06
9a ff 00 00 00 2d 0e 45 bd 01 46 97 ff 00 00 00 28 21 20 20 75 05 d0 01 c6 93 ff 00 00 00 21 76
fe 31 76 fe 42 a4 77 01 ae f9 c0 00 00 06 ff ff 00 00 00 c0 81 dc fb 40 90 94 6c 87 20 77 d1 40
99 11 8a 77 c0 20 00 92 67 f0 81 f9 ff c0 20 00 62 27 f1 80 66 20 c0 20 00 51 23 ff 50 52 a0 38
05 62 67 f1 1b 33 39 05 0d f0 00 00 ff ff ff 3f 6c 84 51 cc fb 20 44 d1 5a 44 51 fc ff c0 20 00
32 24 f1 50 33 10 c0 20 00 32 64 f1 0d f0 00 00 71 f7 ff 6c 84 31 c3 fb 20 44 d1 3a 44 c0 20 00
82 23 b7 70 88 10 c0 20 00 82 64 f1 c0 20 00 62 23 b8 70 66 10 c0 20 00 62 64 f2 c0 20 00 52 23
b9 c0 20 00 52 64 f3 c0 20 00 32 23 ba c0 20 00 32 64 f4 0d f0 00 00 00 12 c1 f0 c9 11 09 01 cd
02 c5 f8 ff 21 01 ff 20 2c a0 02 22 18 c8 11 1b 00 02 62 18 08 01 12 c1 10 0d f0 00 21 aa fb c0
20 00 22 22 b0 20 20 b4 0d f0 00 00 00 f0 ff ff 41 ff ff 31 a4 fb c0 20 00 22 23 b0 40 22 10 c0
20 00 22 63 b0 0d f0 00 00 00 00 40 7c 08 20 70 34 51 9c fb c0 20 00 62 25 ac 80 66 10 70 66 20
c0 20 00 62 65 ac 6c c4 20 44 d1 71 e2 fe 5a 44 c0 20 00 62 24 e9 70 66 10 c0 20 00 62 64 e9 51
f2 ff c0 20 00 32 24 e9 50 33 20 c0 20 00 32 64 e9 0d f0 00 6c c4 51 8b fb 20 44 d1 5a 44 51 e5
fd c0 20 00 32 24 e9 50 33 10 c0 20 00 32 64 e9 0d f0 00 00 00 00 f2 3f 20 87 04 20 72 14 80 77
90 81 fc ff 70 70 74 e0 77 11 8a 77 42 d7 0c 0c f8 c0 20 00 72 d7 0c 42 24 26 7c f9 20 64 24 1c
c5 e0 66 11 60 55 c0 50 50 74 00 15 40 00 88 a1 00 15 40 90 88 30 80 84 10 00 63 a1 80 66 20 c0
20 00 62 67 26 00 05 40 40 20 91 20 20 34 0d f0 ff 0f 00 ff ff ff ff df 00 00 00 10 00 00 00 50
12 c1 f0 09 01 d9 21 c9 11 e9 31 cd 04 ed 03 dd 02 16 a2 06 0c 0a 31 f7 f

[5634] Connected to WiFi
[5634] IP: 192.168.0.74
[5634]
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.4.8 on ESP8266

[5640] Connecting to blynk-cloud.com:8442
[6189] Ready (ping: 3ms).
HTTPUpdateServer ready! Open http://sonoff.local/firmware in your ........


As a separate test, I tried a separate bin file from the ardunio ide the OTATestBlinkWithoutDelay.ino.bin sketch. The sketch is 221Kb and uploaded successfully.

Is there size limit on the bin file being uploaded? - mine 256Kb

Most videos and articles shows this as straight forward, not sure what i'm missing. Appreciate any help

Reg