Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Mehrdad K
@mkeyno
Markus said it is due to overload the TCP layer of the ESP (too many sendText calls, possible for every byte you get from serial). and should add a buffer for the serial data and then do WS to Serial.
is there any hit to how to solve the problem
Me No Dev
@me-no-dev
you just wrote the hint...
you read from the serial to a buffer, if the buffer hits 1400 bytes or you have not gotten any data in the las 1-2ms, send the buffer
Mehrdad K
@mkeyno
thanks @me-no-dev , but if using SIM module which should send the command and then wait for respond , doesn't make any problem with your idea
Me No Dev
@me-no-dev
not quite sure what you just said?
Mehrdad K
@mkeyno
in SIM module, first send command and then wait for module respond , so if we keep the buffer delay for such 1 -2 ms , wont make any issue , because we should check the respond for special character and if we send the buffer ,it may not catch correct respond
in another words does that delay and waiting for catch the correct respond , make any issue
Me No Dev
@me-no-dev
you are waiting when you are reading from the SIM, not when sending to it
so how could 1/2 ms be a problem?
aneek231
@aneek231

Hi, I am getting this kind of error on ESP8266 and program crashes. I get this when I try to hit a handle on HTTP server (on ESP) from my web browser (from PC).

Exception(28):
epc1 = 0x4000bf3c end: 3fffffb0 offset: 01a0

stack>>>
3ffff820: 00000002 3ffe880c 47bb34db 4021ec52
3ffff830: 00000000 0000000 00000000 00000000
and so on.

<<<stack<<<

If someone knows the reason ?

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.