These are chat archives for esp8266/Arduino

9th
Dec 2015
Theb-1
@Theb-1
Dec 09 2015 04:40
Anyone know if its possible to use the NMI hw timer? I get 'NmiTimSetFunc was not declared in this scope' when trying to use it. FRC1 works but has jitter when wifi is enabled and I'm hoping NMI has better results.
Endre Karlson
@ekarlso
Dec 09 2015 06:32
@igrr hey man
@igrr u about ?
Ivan Grokhotkov
@igrr
Dec 09 2015 06:32
yep
the issue you had is not due to time
you were running out of RAM
i made some workarounds to save a little RAM and now i'm able to do MQTT over TLS with client certificate
but i need to think how to make it more robust, as the current design doesn't fit into RAM very well.
Endre Karlson
@ekarlso
Dec 09 2015 06:35
@igrr any eta ?
Ivan Grokhotkov
@igrr
Dec 09 2015 06:38
a few days i think. i'll ping you if i have a solution.
Endre Karlson
@ekarlso
Dec 09 2015 06:38
@igrr -,,-, that hard huh ? :D
@igrr you think the sketch should be fine with your workaround btw?
Ivan Grokhotkov
@igrr
Dec 09 2015 06:40
Not every sketch will be fine with this workaround. In particular, i know that this workaround breaks some HTTPS requests.
i just did it to verify that there isn't any specific issue with mqtt over TLS
it's just the general issue with WiFiClientSecure and how it allocates memory required by axTLS
Endre Karlson
@ekarlso
Dec 09 2015 06:44
@igrr ah, hmmms I didnt think my stuff used that much memory
@igrr what mqtt client would you recommend btw ? The paho ish one or the pubsubclient ?
beikeland
@beikeland
Dec 09 2015 07:35
I'm struggling with a cheap I2C ds3231/at24c32 module. Tested ok with 3.3v on an normal arduino, but keeps giving me 2165-165-165 165:165:85 on the ESP8266. I've got GPIO00 to SDA with the modules 4.7k pullup. And GPIO02 to SCL with 4.7k pullup. Time for s scope, or have I got my connections wrong?
onkelfunny
@onkelfunny
Dec 09 2015 07:49
@beikeland which library you use? i have 25 esp-modules running the ds3231 and everything is fine
Endre Karlson
@ekarlso
Dec 09 2015 07:52
@onkelfunny home automation with that many esps ?
onkelfunny
@onkelfunny
Dec 09 2015 07:53
yes. but i'm not done yet :D on the end it will be 50 :D
Endre Karlson
@ekarlso
Dec 09 2015 07:53
@onkelfunny anything public ?:P
onkelfunny
@onkelfunny
Dec 09 2015 07:55
not at the moment. maybe next year. at the moment everything works only with my other devices (kodi, some rf sockets)
Endre Karlson
@ekarlso
Dec 09 2015 07:56
: o
beikeland
@beikeland
Dec 09 2015 07:58
@onkelfunny i've tried #include <RTClib.h> and #include "Sodaq_DS3231.h" with no luck. Any recommended libs?
Ivan Grokhotkov
@igrr
Dec 09 2015 07:58
@ekarlso your stuff doesn't use much probably, but the issue is not really the size available, but rather the fragmentation.
At some point we need a continuous 16k chunk of RAM and there might not be one, depending on what application is doing. You might have something like 30k heap available, but split into multiple smaller pieces each less than 16k.
onkelfunny
@onkelfunny
Dec 09 2015 07:59
@beikeland try this one https://github.com/rodan/ds3231
this works with my devices
Ivan Grokhotkov
@igrr
Dec 09 2015 07:59
Pre-allocating 16k doesn't work either because during TLS handshake we need to store a lot of temporary data. And that plus 16k extra usually doesn't fit into the available RAM.
onkelfunny
@onkelfunny
Dec 09 2015 08:03
@beikeland which ds3231 module you use? do you have a link for me?
beikeland
@beikeland
Dec 09 2015 08:08
@onkelfunny upercheap ones http://www.ebay.com/itm/201430128765 tried ds3231.h same result. guess its scope time later, but thanks!
Endre Karlson
@ekarlso
Dec 09 2015 08:23
@igrr hmmms, seems hopeless : p
Hassanbenlebsir
@Hassanbenlebsir
Dec 09 2015 09:17
good morning guys the rfid-rc522 are there different types for different operating frequencies or is it just 13,56 mhz kit i'm looking forr the 125khz and i can't find it
Me No Dev
@me-no-dev
Dec 09 2015 09:51
@Hassanbenlebsir rc522 reads 13.56MHz MIFARE tags only
and that is usually the case for any RFID reader
they read particular frequency and standard
125KHz transmit only the ID of the TAG, while MIFARE tags have memory in them and can be read and written to
much much different tags
Hassanbenlebsir
@Hassanbenlebsir
Dec 09 2015 10:01
i know that rc522 reads 13.56 mifare tags only but i have a diffrrent card that i want to read and it's frequency is 125khz so i'm looking for a 125khz reader but i was wondering if there is rc522 wich operate on 125khz i know there are 125khz readers but i already have the code for the rc522 i don't want to change the code to adapte it to another card reader
Me No Dev
@me-no-dev
Dec 09 2015 10:03
you do not need such a "fancy" reader to read 125K cards so there aren't any rc522 that would be dumbed up to deal with that task
Markus
@Links2004
Dec 09 2015 12:22
@toxuin is the SPIFF update over http working?
beikeland
@beikeland
Dec 09 2015 12:47
@Links2004 I use it with espota.py -S -f xxxxx.spiff.bin ; but not from the ide/plugin.
Markus
@Links2004
Dec 09 2015 12:48
i have implemented it over http, @toxuin wanted to test it.
beikeland
@beikeland
Dec 09 2015 12:52
@Links2004 cool, is it publicly available?
Markus
@Links2004
Dec 09 2015 12:53
yes here: https://github.com/Links2004/Arduino/tree/httpUpdate/libraries/ESP8266httpUpdate
i wait for some test results before i merge it to the master
beikeland
@beikeland
Dec 09 2015 12:54
very nice, i'll play with it tonight!
guess it can replace my thought of using dhcp options to provide intiial configuration. just serve up spiffs with a config file instead. you guys do awesome work!
Helio Machado
@0x2b3bfa0
Dec 09 2015 14:26
Hi! How can I lower the TX power to 1dBm?
Also, how to change the device from 802.11n to 802.11g?
Hassanbenlebsir
@Hassanbenlebsir
Dec 09 2015 15:04
is their materials that changes the frequency of a device
Markus
@Links2004
Dec 09 2015 15:30
what do you mean with "materials"?
the ESP can run with 80Mhz or 160Mhz
Ivan Grokhotkov
@igrr
Dec 09 2015 16:50
@crushedice2000
wifi_set_phy_mode(PHY_MODE_11G);
you need
extern "C" {
#include "user_interface.h"
}
also there is system_phy_set_max_tpw
Helio Machado
@0x2b3bfa0
Dec 09 2015 16:54
@igrr: Thank you! I'll test tonight.
Endre Karlson
@ekarlso
Dec 09 2015 17:01

@igrr Soft WDT reset

ctx: cont
sp: 3fff18c0 end: 3fff1e90 offset: 01b0

^ is that due to OOM=

Endre Karlson
@ekarlso
Dec 09 2015 17:09
darned TLS and ESP :(
Steve Nelson
@zenmanenergy
Dec 09 2015 17:31
I’m struggling to turn on the Serial debugging for the httpUpdater. Am I doing this wrong…

define DEBUGHTTPUPDATE(...) Serial.printf( __VA_ARGS )

include <ESP8266httpUpdate.h>

whoa, didn’t mean to make the font do that!
hmmm, it didn’t paste the #s
Markus
@Links2004
Dec 09 2015 17:32
blob
the chat uses markdown :)
Steve Nelson
@zenmanenergy
Dec 09 2015 17:33
so i put these
Markus
@Links2004
Dec 09 2015 17:33
for serial:
#define DEBUG_HTTP_UPDATE(...) Serial.printf( __VA_ARGS__ )
for serial1:
#define DEBUG_HTTP_UPDATE(...) Serial1.printf( __VA_ARGS__ )
Steve Nelson
@zenmanenergy
Dec 09 2015 17:33
dang. that’s what I have. why isn’t it printing anything? any idea?
Markus
@Links2004
Dec 09 2015 17:34
do you init the serial and call ESPhttpUpdate.update ?
Steve Nelson
@zenmanenergy
Dec 09 2015 17:35
yes.
it is printing to the serial monitor… just not the debugging code that’s in the httpUpdate library
i.e. my code is printing via Serial.println()s throughout my code, but the numerous DEBUG_HTTP_UPDATE() calls in the ESP8266httpUpdate.cpp file aren’t printing to my serial monitor
i’ll try pasting my code again.
#define DEBUG_HTTP_UPDATE(...) Serial.printf( __VA_ARGS__ )

#include <Arduino.h>
#include <EEPROM.h>
#include "./eepromSimple.h"
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
//#include <WiFiClient.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266httpUpdate.h>
#include <Time.h>
#include <OneWire.h>
#include <DallasTemperature.h>
Markus
@Links2004
Dec 09 2015 17:37
that will not work.
Steve Nelson
@zenmanenergy
Dec 09 2015 17:37
oh?
Markus
@Links2004
Dec 09 2015 17:38
you need to change it in the library
Steve Nelson
@zenmanenergy
Dec 09 2015 17:38
OHHH because the serial.begin() hasn’t been called?
it is because how preprocessor work in c / c++
Steve Nelson
@zenmanenergy
Dec 09 2015 17:39
ok. i’ll give that a try. i thought i tried that before and it didn’t work.
one sec.
perfect. that did it. now that i think about it, I think I didn’t change it from Serial1 to Serial the last time.
thanks markus
Steve Nelson
@zenmanenergy
Dec 09 2015 18:15

I’ve traced down an httpupdate problem in my code down to this statement in ESP8266httpUpdate.cpp

if(!Update.begin(size)) {
        DEBUG_HTTP_UPDATE("[httpUpdate] Update.begin failed!\n");
        return false;
    }

the value of the size is 312896

any idea why Update.begin() is failing?

I can’t find where the Updateobject is created.
Markus
@Links2004
Dec 09 2015 18:16
please post the serial log
Steve Nelson
@zenmanenergy
Dec 09 2015 18:16
sure
[httpUpdate] - host:fridgealive.com
[httpUpdate] - port:80
[httpUpdate] - url:/api/firmware.php
[httpUpdate] - current_version:1.3.0
[httpUpdate] Header read fin.
[httpUpdate] Server header:
[httpUpdate] - code: 200
[httpUpdate] - len: 312896
[httpUpdate] - MD5: c2454930f711cafb70f6fd66a483feed
[httpUpdate] ESP8266 info:
[httpUpdate] - free Space: 647168
[httpUpdate] - current Sketch Size: 314676
[httpUpdate] - current version: 1.3.0
[httpUpdate] Update.begin failed!
[httpUpdate] Update failed
Steve Nelson
@zenmanenergy
Dec 09 2015 18:17
thanks. i’ll see if i can track it down from there.
Markus
@Links2004
Dec 09 2015 18:18
you can try the newer version of http update here:
https://github.com/Links2004/Arduino/tree/httpUpdate/libraries/ESP8266httpUpdate
there is more debug out.
Steve Nelson
@zenmanenergy
Dec 09 2015 18:19
sweet. i’ll try that first.
btw, this updater is F’ING AWESOME!
Markus
@Links2004
Dec 09 2015 18:20
thanks
Steve Nelson
@zenmanenergy
Dec 09 2015 18:25
looks like httpclient was updated too. whoa did you guys add base64? badass!
it’s looking for base64.h but i can’t find it in the repository
oh there it is. forget it
Markus
@Links2004
Dec 09 2015 18:26
its in the current git in the core.
thanks to base64 we now have Authorization support on the http client.
for httpUpdate too ;)
Mario Mikočević
@mozgy
Dec 09 2015 18:27
what is the best way to use/upload html/css to esp8266 ?
Markus
@Links2004
Dec 09 2015 18:28
@mozgy the IDE can create a spiff image and upload it.
Mario Mikočević
@mozgy
Dec 09 2015 18:28
can you tell me how, as apparently I'm blind on this 1.6.7-PR
Endre Karlson
@ekarlso
Dec 09 2015 18:32
@Links2004 u got a clue on tls wti the esp
Mario Mikočević
@mozgy
Dec 09 2015 18:32
ty, will add that
Markus
@Links2004
Dec 09 2015 18:33
@ekarlso i use it for https @igrr is the expert for tls on the ESP
Endre Karlson
@ekarlso
Dec 09 2015 18:33
:P
typical that he's away atm :(
Markus
@Links2004
Dec 09 2015 18:34
whats your question may I can help
Mario Mikočević
@mozgy
Dec 09 2015 18:40
d'oh, choose 3M spiffs .. and it made 3M .bin for upload and .. it .. takes .. time .. now ..
Markus
@Links2004
Dec 09 2015 18:41
its 3MB ;)
serial is not fast.
Mario Mikočević
@mozgy
Dec 09 2015 18:41
yep :(
<nitpick mode> it's 3MiB :)
works, nice, ty, .. now to make something useful of it ..
Steve Nelson
@zenmanenergy
Dec 09 2015 18:53
@Links2004 i think i found the bug in the updater that’s causing my stuff to fail
Markus
@Links2004
Dec 09 2015 18:54
can you point to it i will take a look
Steve Nelson
@zenmanenergy
Dec 09 2015 18:54
line 149
ESP8266httpUpdate.cpp
bool startUpdate = false;
                if(spiffs) {
                    size_t spiffsSize = ((size_t) &_SPIFFS_end - (size_t) &_SPIFFS_start);
                    if(len > (int) spiffsSize) {
                        DEBUG_HTTP_UPDATE("[httpUpdate] spiffsSize to low (%d) needed: %d\n", spiffsSize, len);
                    }
                } else {
                    if(len > (int) ESP.getFreeSketchSpace()) {
                        DEBUG_HTTP_UPDATE("[httpUpdate] FreeSketchSpace to low (%d) needed: %d\n", ESP.getFreeSketchSpace(), len);
                    }
                }

                if(!startUpdate) {
                    ret = HTTP_UPDATE_FAILED;
                } else {
from what i can tell startUpdate is always false
or am i missing something?
Markus
@Links2004
Dec 09 2015 18:56
yes ;) thats the new code one moment will fix
Endre Karlson
@ekarlso
Dec 09 2015 18:56
U dunno I guess @Links2004 ? :D
Markus
@Links2004
Dec 09 2015 18:57
@ekarlso yes, the code looks good, without testing during runtime I will not find it.
@zenmanenergy done, but i think that was not you initial problem.
Steve Nelson
@zenmanenergy
Dec 09 2015 18:58
WOOO! i actually contributed something useful!
haha. what do you think the initial problem is?
Markus
@Links2004
Dec 09 2015 18:59
when you run it again, we shut get a error message.
Steve Nelson
@zenmanenergy
Dec 09 2015 19:00
ok.
that code makes more sense now.
it got a little further.
[httpUpdate] Header read fin.
[httpUpdate] Server header:
[httpUpdate] - code: 200
[httpUpdate] - len: 312896
[httpUpdate] - MD5: c2454930f711cafb70f6fd66a483feed
[httpUpdate] ESP8266 info:
[httpUpdate] - free Space: 643072
[httpUpdate] - current Sketch Size: 315932
[httpUpdate] - current version: 1.3.0
[httpUpdate] runUpdate flash...
BEGIN!
size:312896
command:0
already running
[httpUpdate] Update.begin failed! (ERROR[5]: Stream Read Timeout)
[httpUpdate] Update failed
0
HTTP_UPDATE_FAILED
Markus
@Links2004
Dec 09 2015 19:04
what server du you use?
Steve Nelson
@zenmanenergy
Dec 09 2015 19:04
php
Markus
@Links2004
Dec 09 2015 19:05
not the script language.
apache ?
Steve Nelson
@zenmanenergy
Dec 09 2015 19:05
oh. yeah. apache
do you think it’s returning something unusual?
Markus
@Links2004
Dec 09 2015 19:05
ok I run apache + php too.
Steve Nelson
@zenmanenergy
Dec 09 2015 19:07
header('Content-type: text/plain; charset=utf8', true);
$upgradeVersion=
sendFile("./1.4/bin/fridgeAlive_1_3.cpp.bin");
function sendFile($path) {
    header($_SERVER["SERVER_PROTOCOL"].' 200 OK', true, 200);
    header('Content-Type: application/octet-stream', true);
    header('Content-Disposition: attachment; filename='.basename($path));
    header('Content-Length: '.filesize($path), true);
    header('x-MD5: '.md5_file($path), true);
    readfile($path);
}
exit();
I’m not sure why the example had that first text/plain header in there, but i kept it in.
whoops, funny copy/paste
Markus
@Links2004
Dec 09 2015 19:08
"Stream Read Timeout" its more a problem of the Update class
may linked to #1157
the first "text/plain" is for the error messages, the next "Content-Type" will override it.
Steve Nelson
@zenmanenergy
Dec 09 2015 19:09
oh ok, that was my guess which is why i left it.
Endre Karlson
@ekarlso
Dec 09 2015 19:17
@Links2004 heh :D wanna try ?
Markus
@Links2004
Dec 09 2015 19:19
on the weekend I can take a look at it.
Endre Karlson
@ekarlso
Dec 09 2015 19:19
: p
Markus
@Links2004
Dec 09 2015 19:21
need to setup the environment first have no mqtt/PubSub running here.
Endre Karlson
@ekarlso
Dec 09 2015 19:22
@Links2004 that's easy : p
Steve Nelson
@zenmanenergy
Dec 09 2015 19:32
@Links2004 I think the updater error is on line 228 in updater.cpp. I added some debugging output to try and figure it out.
U_FLASH
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead4096
FLASH_SECTOR_SIZE4096
_bufferLen0
toRead516
FLASH_SECTOR_SIZE4096
_bufferLen516
toRead0
TIMEOUT??ERROR[5]: Stream Read Timeout
any idea what that timeout if statement is for on line 228 Updater.cpp?
Markus
@Links2004
Dec 09 2015 19:33
yes this is the same problem then #1157
Steve Nelson
@zenmanenergy
Dec 09 2015 19:34
oh. i missed your message above. d'oh
Steve Nelson
@zenmanenergy
Dec 09 2015 19:56
so you’re thought is the content-length coming from the server is not the same as the content-length of the file in the esp code?
Steve Nelson
@zenmanenergy
Dec 09 2015 20:03
I don’t think that’s it. my server’s headers are returning:
[httpUpdate] - code: 200
[httpUpdate] - len: 312896
and when i output:
DEBUG_UPDATER.print("remaining()");
DEBUG_UPDATER.println(remaining());
the first value is:
remaining()312896
unless that value is passed into the method somewhere else.
Markus
@Links2004
Dec 09 2015 20:06
looking good, then the problem is depper in the TCP stack.
the content-length where on of too possible reasons.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:08
can we just increase the timeout?
Mario Mikočević
@mozgy
Dec 09 2015 20:12
@Links2004 websockets do not work on stable 2.0.0 ?
Markus
@Links2004
Dec 09 2015 20:13
no, there where a problem by including libb64 in to the core,
you need latest git then its working.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:13
OOH! That’s closer, but it’s not the httpClient timeout… it’s the stream timeout.
size_t UpdaterClass::writeStream(Stream &data) {
    data.setTimeout(10000);
Mario Mikočević
@mozgy
Dec 09 2015 20:14
ok, thx
Steve Nelson
@zenmanenergy
Dec 09 2015 20:14
i just tried that and it got past the timeout error. But… it still crashes upon restart. haha
Markus
@Links2004
Dec 09 2015 20:15
how the "crash" looks like.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:15
one sec… my whole ide locked up.
Endre Karlson
@ekarlso
Dec 09 2015 20:16
so all of you that use MQTT, you all do it uncrypted ?
Steve Nelson
@zenmanenergy
Dec 09 2015 20:21
here’s the crash...

FLASH_SECTOR_SIZE4096
_bufferLen0
toRead3408
remaining()3408
MD5 Success: 0e4c8edd3ea35e7d459f94918940d9e9
Staged: address:0x000B8000, size:0x00032D50
[httpUpdate] Update ok

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
@cp:0
ld
Fatal exception (0):
epc1=0x40205ecf, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):

well, the first part of it.
does that mean anything to you?
Markus
@Links2004
Dec 09 2015 20:22
its a null ptr
do you flash the same bin then you running to update?
Steve Nelson
@zenmanenergy
Dec 09 2015 20:23
no. I flashed another bin that just prints: Serial.println("hello world");
i used the httpupdate example with a change to the ESPhttpUpdate.update() line pointing to my php script
Markus
@Links2004
Dec 09 2015 20:24
and the bin is running when you flash it by serial.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:24
and added: data.setTimeout(10000); to the size_t UpdaterClass::writeStream(Stream &data) { in Updater.cpp
what do you mean is the bin running?
Markus
@Links2004
Dec 09 2015 20:25
when you flash it by serial it does print hell world?
Steve Nelson
@zenmanenergy
Dec 09 2015 20:26
no. it gets to the output:
MD5 Success: 0e4c8edd3ea35e7d459f94918940d9e9
Staged: address:0x000B8000, size:0x00032D50
[httpUpdate] Update ok
but… it looks like it tries to reboot and crashes upon reboot
Markus
@Links2004
Dec 09 2015 20:27

that is not what I ask :)

you have the bin file on the server.
when you flash this bin by the normal serial upload, is it then running?

Steve Nelson
@zenmanenergy
Dec 09 2015 20:28
So you’re asking if i flash the new bin via usb serial in the ide, does it run?
Markus
@Links2004
Dec 09 2015 20:28
yes
Steve Nelson
@zenmanenergy
Dec 09 2015 20:28
i’ll double check, but it has in the past. it’s my testing code… one sec.
yep. it works fine.
it’s just this:
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("");
  Serial.println("------------------------");
  Serial.println("ESP8266 Arduino Examples");
  Serial.println("Hello world serial print");
  Serial.println("by Steve Nelson");
  Serial.println("------------------------");
}

void loop() {
  //This loops until the end of time
  Serial.println("hello world");
  delay(300);
}
i’m going to try again and bypass the php server and point to a bin on my laptop see if that makes a difference.
Markus
@Links2004
Dec 09 2015 20:34
for me its run like this:
[SETUP] WAIT 2...
[SETUP] WAIT 1...
RAM: 36928
Wed Dec 09 21:33:05 2015 

[httpUpdate] Header read fin.
[httpUpdate] Server header:
[httpUpdate]  - code: 200
[httpUpdate]  - len: 269984
[httpUpdate]  - MD5: 7f004f3c70c424da88ee606eb0a88737
[httpUpdate] ESP8266 info:
[httpUpdate]  - free Space: 778240
[httpUpdate]  - current Sketch Size: 269980
[httpUpdate]  - current version: test
[httpUpdate] runUpdate flash...
sleep disable 
[httpUpdate] Update ok
state: 5 -> 0 (0) 
rm 0 
pm close 7 0 0/8813799 
del if0 
usl 
sul 0 0 
€€°°€°°°€€°€°€€€°€°°°€°€€°€°€€°°°°°°°°°°°°°€°°€°°°€°°°€€°€°€€°°€°€€°€€€€€€°€€€°€°€°°°°°€°°°°°€€€€€€€°€€°°€€€€€€€°°€€€°€°€°°€°€°°°€°°€°€°€°€€°°€°€€°°€°°€€€€€€°€°°€°°°°°€°€°°°€°°°°°°€°°°°°°°€°°°°€€€€°€°€€°°€°°°°°°€°°€°°€°°°°°€€€€€€€€€€€°°€°°°€°°°€€°°€°°€€€°€€°€€°€€°°°°€€°°€°€°€°€€€€€€€°€€€€€€€€€°°°°°€°€°°°°€€°°€°€°€€°€€€€€€€€€°°°°°€°€°°°°€€°°€°°€€°€°€°€°°°°€°°€€°°€°€° 


[SETUP] WAIT 4...
[SETUP] WAIT 3...
Command canceled
Steve Nelson
@zenmanenergy
Dec 09 2015 20:39
can you email me the files you’re using so I can try it here?
which esp are you using? I’m testing with an 1 meg esp01
the ai-cloud version
Markus
@Links2004
Dec 09 2015 20:41
the bin files have the wifi compiled in, so i can not simple send it.
i have a ESP12 with 4MB here for testing.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:41
oh. ok.
i’m trying a nodemcu 1.0 right now...
Markus
@Links2004
Dec 09 2015 20:42
when your bin file only makes print you can send it my i will try to upload it.
simply drag and drop it in the chat here.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:43
whoa. the nodemcu still throws an error, but its a different one.

oRead3408
remaining()3408
Staged: address:0x000CD000, size:0x00032D50
[httpUpdate] Update ok

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
@cp:0
ld
system param error
06 0d 00 61 51 ef c0 20 00 58 0c 60 55 10 50 5c 41 dc 05 21 c2 ff 31 c2 ff 42 a2 33 01 f9 f1 c0
00 00 06 ff ff 4d 0c 2d 0f 38 01 58 81 68 11 00 7a 11 70 70 31 45 e0 ff c8 31 d8 41 e8 51 f8 61
08 21 12 c1 30 0d f0 e7 f9 02 f7 79 5e d0 80 34 16 a8 06 26 48 0d 92 c8 f8 16 39 09 b2 20 23 1b
bb b2 60 23 0c 08 0c 12 c6 00 00 0c 02 0c 18 d2 20 21 1b dd d2 60 21 86 d6 ff b0 ed 10 26 ee 76
0c 02 46 d1 ff b0 2d 10 66 e2 02 46 1f 00 32 a0 90 30 32 c0 16 c3 08 42 a0 a0 47 12 79 52 20 1e
1b 55 52 60 1e 0c 12

Markus
@Links2004
Dec 09 2015 20:44
your config for the SDK in the flash is corrupted.
try to erase it.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:45
oh? how do i do that?
beikeland
@beikeland
Dec 09 2015 20:45
2015-12-09 21_17_43-SuperEyes.png
trying to flash an esp-05. just for fun! :)
@beikeland fragile work, have you success?
beikeland
@beikeland
Dec 09 2015 20:49
cut was ok. need to come up with a way to mount the board at an angle and try to jog the cutter over to the pin and use it for a connection. (cutter tip is 45 angle, sharpest i have). I'll sleep on it
Steve Nelson
@zenmanenergy
Dec 09 2015 20:52
one min @Links2004 i’m still trying to find all the paths to these files.
Steve Nelson
@zenmanenergy
Dec 09 2015 20:53
right. i don’t have the nightly and i’m a mac, so d:\ doesn’t mean anything :-)
brutzler
@brutzler
Dec 09 2015 20:53
ili9431-display: Does anybody know the ascii sign for "deg" -> ° ; tried 0xF8 as seen in an ascii-table, but this is only a point on the display:-(
Markus
@Links2004
Dec 09 2015 20:55
the front is coming from the Adafruit-GFX Library
Steve Nelson
@zenmanenergy
Dec 09 2015 20:55
what did i do wrong? I got an error: esptool: error: argument operation: invalid choice: 'erase_flash' (choose from 'load_ram', 'dump_mem', 'read_mem', 'write_mem', 'write_flash', 'run', 'image_info', 'make_image', 'elf2image', 'read_mac')
I must have the wrong esptool
Markus
@Links2004
Dec 09 2015 20:56
yes you need the py version
Steve Nelson
@zenmanenergy
Dec 09 2015 20:56
scratch that… dang that esptool.py was from last april. d'oh
there we go. sorry… i’m slow. :smile:
hmmm, same crazy crashing.
after running the erase_flash. i just tried the nodemcu. i’m going to try and erase the flash on the 01
Steve Nelson
@zenmanenergy
Dec 09 2015 21:08
dang. no luck on either device.
Steve Nelson
@zenmanenergy
Dec 09 2015 21:29
one minor thing I’ve noticed… there is:
if(reboot) {
ESP.restart();
}
in the esp8266httpupdater.cpp it does make sense to reboot it, but that means it’ll never return “HTTP_UPDATE_OK” to the calling function.
Steve Nelson
@zenmanenergy
Dec 09 2015 21:36
it’s weird, it seems to hang, not on the last buffer chunk, but the second to last one. it only takes 10-50ms for each chunk up to 7504.
remaining()23888
remaining()19792
remaining()15696
remaining()11600
remaining()7504
remaining()3408
then it hangs on 7504 for about 10000-20000ms (i’ve upped the timeout ot 30000ms)
and sometimes it gets to 3408 and finally finishes and even says update ok. but it boots and crashes.
oh well, i’m giving up for now. i’m hungry.
brutzler
@brutzler
Dec 09 2015 22:10
@Links2004: ok glcdfont.c; is there somewhere a table, where the result of this code is shown.
I tried the LCD Character Creator, but 5x7 is different: In the table there are 5 hex-numbers for a character in the character there are 7 hex-numbers
Looks like one is line-based the other one is row-based
5x7.jpg
Martin Ayotte
@martinayotte
Dec 09 2015 23:14
@brutzler , looking at your link, the degree symbol is at 0xF7 not 0xF8 ...
brutzler
@brutzler
Dec 09 2015 23:20
Yes you are right. forgotten to write this.