These are chat archives for esp8266/Arduino

26th
Jul 2016
Clemens Kirchgatterer
@everslick
Jul 26 2016 06:54
thx, but what does 'realtime' mean when talking about counters? is it a hardware counter, like some timer or IO chips provide? (does the ESP have hardware counters of any type?)
Me No Dev
@me-no-dev
Jul 26 2016 06:58
it is a hardware counter and there are others yes :)
the RTC part runs on a different clock
also the RTC can be kept powered and running while the rest of the chip be powered down
Clemens Kirchgatterer
@everslick
Jul 26 2016 08:30
ah, ok! that makes sense. :-) THX!
so, i can find out, how long i was sleeping if i write one counter value into RTC ram before going to sleep and then compare with the actual counter value after wakeup.
so battery powered devices might get away without a ds3231 (or similar)
Me No Dev
@me-no-dev
Jul 26 2016 08:38
I use NTP to get the real time
seems running OK
and I'm not sure which counter you should read to get how long you slept
I tried something a while back and it did not work... so.. :) experiment
Clemens Kirchgatterer
@everslick
Jul 26 2016 08:40
maybe it depends on the sleep mode which counter keep running (if any) and which stop.
Me No Dev
@me-no-dev
Jul 26 2016 08:41
I naturally tried with the DeepSleep tactics and tried to figure out what woke me up and how long was the sleep and was not able to get the time period
Clemens Kirchgatterer
@everslick
Jul 26 2016 08:55
if it is indeed not possible, then that whole RTC thing is not of much use, i guess. could as well be a hardware bug in the chip, though.
Me No Dev
@me-no-dev
Jul 26 2016 08:56
it's use is to wake up the esp after certain time :) and that is working fine
surely there should be a way to get the time, but i don't know it
Ivan Grokhotkov
@igrr
Jul 26 2016 09:05
@everslick you guessed right, this is a hardware bug.
this bug is also a reason why we need to tie GPIO16 to RST to exit deep sleep mode.
wake up from deep sleep doesn't work properly, so instead we have to toggle external reset using GPIO16.
because RTC counter is reset by ROM startup code, the counter value is lost.
Clemens Kirchgatterer
@everslick
Jul 26 2016 09:51
@igrr ok, that explains everything. thank you.
Clemens Kirchgatterer
@everslick
Jul 26 2016 10:01
@me-no-dev what do you think about #2319 ?
Me No Dev
@me-no-dev
Jul 26 2016 10:03
@everslick looks good to me
did you test it properly?
Richard Ferris
@shizoor
Jul 26 2016 10:04
I'm stuck trying to get Arduino to do a simple hello world. Can you guys help? I'm probably doing something very simple wrong.
I think I started with the wrong version in the board manager.
Now I moved back to an earlier version, and I'm getting
Invalid library found in C:\Users\rferris\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\esp8266: C:\Users\rferris\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\esp8266
Clemens Kirchgatterer
@everslick
Jul 26 2016 10:11
@me-no-dev my test is that i have a define that switches between old code and new code. without my patch only the old code runs, with my patch both versions run. old means: http->on("/foo", ...); new means: http->on(F("/foo"), ...);
is there at all another test case?
Richard Ferris
@shizoor
Jul 26 2016 10:13
Sorry. I removed the board from board manager and reinstalled. Now my hello world uploads but there's no output from the serial. Would I be right in saying that https://freeshell.de/~shizoor/temp/1.txt should get me output from the serial, and a flashing light on the board?
Damnit, ignore me, got it working. Thanks. :)
Clemens Kirchgatterer
@everslick
Jul 26 2016 12:03
thx for merging #2319 !
Akash Ashok
@thehellmaker
Jul 26 2016 14:47
Hi All, This is regarding esp8266/Arduino#2330. Does any1 have any idea regarding this ?
Stavros Korokithakis
@skorokithakis
Jul 26 2016 15:10
is it possible to call getChipId() outside a function? i want to define a constant that contains the MAC address
Martin Ayotte
@martinayotte
Jul 26 2016 15:40
The earliest you can call it is in setup()
Stavros Korokithakis
@skorokithakis
Jul 26 2016 15:45
thanks, martin
Martin Ayotte
@martinayotte
Jul 26 2016 15:49
welcome
Akash Ashok
@thehellmaker
Jul 26 2016 18:10
hi guys . i wanna make changes to etharp.c which is a part of lwip which this project depends on
any idea how i can make changes to it and compile
This is again in relation to #2330. Esp8266 is not responding to broadcast arp requests
gonsays
@gonsays
Jul 26 2016 18:22
Hello guys, I'm using ArduinoJSON.h lib and if I define a string it's OK, but if I get a STRING from an HTTP GET REQUEST, it won't work, any ideas?
gonsays
@gonsays
Jul 26 2016 18:42
SOLVED
Th3On3Freeman
@Th3On3Freeman
Jul 26 2016 20:39
Does anyone know how to make the ESP8266 function as a DNS router?