Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
your ESP8266 Arduino core (this repository)
early this morning a commit regarding Serial was merged, there I also added a better way to begin an already oppened serial port
if you have the latest git, you'll be fine, else I can not say
aneek231
@aneek231
2 weeks old
what should i need to do after getting the new repo ?
Me No Dev
@me-no-dev
then you can change the baudrate safely by just calling Serial.begin(new_baud)
aneek231
@aneek231
Ok thanks
Me No Dev
@me-no-dev
IMG_1764.JPG
Shelby Merrick
@forkineye
just a little bit of smoothing? lol
Me No Dev
@me-no-dev
но, бут И гот сицк оф ваитинг тхе имаге то уплоад
damned
I got sick of waiting the image to upload and show so I switched the window
I do not know who designed and manufactured the bottom board, but he should owe money to all that bought his product
why would you make a dev board that can not fit on a breadboard?
i find no other reason than to screw with people
Shelby Merrick
@forkineye
yeah, that thing is rather large
andig
@andig
hi guys, I'm stuck with crashes using the async webserver (ccing @me-no-dev). I'm posting here since the error pattern seems to be below async. This is one thing I'm seing in the logs:
[core  ] heap min: 19400 (13168 blk, 22856 tot)
TIMEOUT: 5087, state: Established
[core  ] heap min: 19400 (13168 blk, 27456 tot)
TIMEOUT: 5211, state: Established
The sketch runs rock stable when accessed via wifi. However, once I start using LTE or a slow company proxy, all sorts of weird things start happening: timeout messages like above, crashes with stack traces and hardware WDT reboots.
this makes me think- especially the timeouts- it might be below the async server layer.
Is anybody seeing similar behaviour? Any ideas for troubleshooting?
andig
@andig
Adding the core logging I'm seeing this:
:urch 36, 107
:urd 12, 107, 13
:urd 4, 107, 26
:urd 5, 107, 31
[core  ] heap min: 19544 (27200 blk, 27576 tot)
:urch 107, 107
:urd 12, 107, 13
:urd 4, 107, 26
:urd 5, 107, 31
_fileExists /index.html
_fileExists /css/app.css
_fileExists /img/logo_white.png
[core  ] heap min: 11696 (6920 blk, 11696 tot)
SPIFFS_close: fd=2
SPIFFS_close: fd=2
[core  ] heap min: 11696 (6920 blk, 17624 tot)
[websrv] /api/status (0 args)
TIMEOUT: 5341, state: Established
:urch 107, 36
:urd 12, 36, 13
:urd 5, 36, 26
[core  ] heap min: 15328 (6920 blk, 17624 tot)
TIMEOUT: 5108, state: Established
SPIFFS_close: fd=1
SPIFFS_close: fd=1
SPIFFS_close: fd=3
SPIFFS_close: fd=3
[core  ] heap min: 15328 (22176 blk, 27576 tot)
webserver grabs 3 files and tries to serve then but gets stuck in the TIMEOUTs
Mehrdad K
@mkeyno
hi all, I intend to use Arduino poro mini as slave I2C to compensate lack of analog IO shortage and also keep ESP duty low , any repo link or suggestion really appreciated
Martin Ayotte
@martinayotte
On Arduino AVR, the Wire library provides the onRequest()/onReceive() methods, see examples https://www.arduino.cc/en/Tutorial/MasterReader and https://www.arduino.cc/en/Tutorial/MasterWriter
Mehrdad K
@mkeyno
tnx @martinayotte
is it necessary to use level shifter
Matheus Rungue Oliveira
@mrungue
@cgangwar11 , any progress on your lib?? I really need to bypass proxy via esp8266...
Martin Ayotte
@martinayotte
@mkeyno , Yes if your Arduino is 5V, but there are some 3V, in such case, no.
Martin Ayotte
@martinayotte
@mkeyno , BTW, I forgot to mentioned it earlier, why are you not using I2C ADC directly such as MCP3208 or ADS1015, you won't need any Arduino Mini ? How many inputs you need ? which resolution ?
Sven337
@sven337
@martinayotte @mkeyno an SPI ADC is something to look at too, due to the lack of HW I2C support on ESP8266
also, hi everyone, I'm new here.
I'm trying to use setSleepMode(WIFI_MODEM_SLEEP), but I observe no reduction in power consumption. The SDK documentation suggests that it automatically sleeps. I am in STA mode. Any idea what could be wrong?
SteveToulouse
@SteveToulouse
MCP3208 is SPI, unless I missed something
Ivan Grokhotkov
@igrr
@sven337 isn't modem sleep the default mode when you are in WiFi.mode(WIFI_STA)?
So you need to compare with setSleepType(NONE_SLEEP) (don't remember the exact name of the constant)
Mehrdad K
@mkeyno
Hi Ivan , can you please explain what is the benefition when we put the function in different section of ram (ICACHE_RAM_ATTR)
if it is due to speed , how much we get faster processing
Sven337
@sven337
@igrr modem sleep is the default mode as far as I'm aware, yes. Going to NONE_SLEEP changes nothing at all to the current draw, so I suspect modem sleep isn't working automatically for some reason. I was wondering if anyone had investigated.
Mehrdad K
@mkeyno
@martinayotte actually I intend to put weight of sensor reading and processing on Arduino part and keep ESP light to do web processing
Sven337
@sven337
@igrr OK I think I got it - you need a delay() in loop(). Then, after a period of inactivity, the chip will automatically do something to wifi such that it still works, but responds to pings with greater delay, and power consumption does go down. 70mA->50mA -- far from what I expected, but better than nothing
you can observe it by pinging the module while it's in the modem sleep mode - you'll get your answers in ~300ms, then after a few pings you'll get them in ~3ms, that happens when the module leaves modem sleep
light sleep/modem sleep: same observation.
so I guess the conclusion is: always sleep in your loop if you want some power savings
andig
@andig
@igrr could you give a hint what needs be done to compile aketch including lwip from the included sources? I'd like to play with the lwip debugging options to better understand the timeout. Also, do you know which lwip version is included by espressiv? It seems 1.4.1 has a number of fixes that will also improve 3G/slow network support.
Martin Ayotte
@martinayotte
@SteveToulouse , yes MCP3208 is SPI, apologize, I have so many PDF in my Specs folder :-)
andig
@andig
Found it: lwip is 1.4.0: https://github.com/esp8266/Arduino/blob/18f66e99693020a758b8f5ac92e042cbdecb7760/tools/sdk/lwip/include/lwip/init.h. Wondering if theres any chance for espressif to upgrade that to 1.4.1?
Ivan Grokhotkov
@igrr
We have already updated it for the esp32 sdk. The plan is to update it for the ESP8266 in 2.0 release of the sdk. Sorry to say, I can not give any timeline for that release.
andig
@andig
Anyway, good to know, thanks. I guess I can then stop my poking in the dark and treat the timeouts as known limitation of the 1.5 line. The chances are probably good this will be remedied by 2.0 then.
Sven337
@sven337
@igrr: are you an Espressif employee? I didn't know. Cool!
Stavros Korokithakis
@skorokithakis
hey guys