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
how about you post your code at the point of exception
and those numbers would only mean anything to us if you run them through the exception decoder
aneek231
@aneek231
and what the Exception(28) means ?
I read from the list of exception causes that it is "LoadProhibitedCause" which is " A load referenced a page mapped with an attribute that does not permit loads ".
Me No Dev
@me-no-dev
how about you post your code at the point of exception
aneek231
@aneek231

I have found the issue . It is because my baud rate is too slow and I have a lot of tasks pending. Anyways ignore my previous post

could you just help me if there is some solution for changing the baud rate for serial output from 115200 to 9600 for just one function and then revert it back to 115200.

should i need to close the serial port and then reopen it for changing the baudrate ?
Me No Dev
@me-no-dev
how old is your core?
aneek231
@aneek231
esp12e is it.
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.