These are chat archives for esp8266/Arduino

8th
Jul 2016
Ivan Grokhotkov
@igrr
Jul 08 2016 02:04
@skorokithakis send a PTR request for services._dns-sd.local
sorry _services._dns-sd.local
Stavros Korokithakis
@skorokithakis
Jul 08 2016 02:09
thanks, @igrr, i ended up hacking it together with this code https://github.com/skorokithakis/gamelights/blob/master/misc/send.py#L12
i will see if there's an easier way to send the PTR request, though
Mehrdad K
@mkeyno
Jul 08 2016 06:35
hi , I have no problem with websocket unless try read the software serial data and pass it over the websocket link . its kinda some buffer full and overflow, because after couple of try the connection is severed , I increased the softserial buffer from 256 to 1024 it became more stable , but still have problem when I read big data from serial,
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
Jul 08 2016 09:49
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
Jul 08 2016 09:52
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
Jul 08 2016 09:53
not quite sure what you just said?
Mehrdad K
@mkeyno
Jul 08 2016 09:56
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
Jul 08 2016 10:03
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
Jul 08 2016 13:00

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
Jul 08 2016 13:00
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
Jul 08 2016 13:03
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
Jul 08 2016 13:06
how about you post your code at the point of exception
aneek231
@aneek231
Jul 08 2016 13:37

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
Jul 08 2016 13:39
how old is your core?
aneek231
@aneek231
Jul 08 2016 13:40
esp12e is it.
Me No Dev
@me-no-dev
Jul 08 2016 13:46
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
Jul 08 2016 13:48
2 weeks old
what should i need to do after getting the new repo ?
Me No Dev
@me-no-dev
Jul 08 2016 14:15
then you can change the baudrate safely by just calling Serial.begin(new_baud)
aneek231
@aneek231
Jul 08 2016 14:15
Ok thanks
Me No Dev
@me-no-dev
Jul 08 2016 14:46
IMG_1764.JPG
Shelby Merrick
@forkineye
Jul 08 2016 14:58
just a little bit of smoothing? lol
Me No Dev
@me-no-dev
Jul 08 2016 15:06
но, бут И гот сицк оф ваитинг тхе имаге то уплоад
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
Jul 08 2016 15:44
yeah, that thing is rather large
andig
@andig
Jul 08 2016 15:48
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
Jul 08 2016 16:32
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
Jul 08 2016 18:24
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
Jul 08 2016 18:30
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
Jul 08 2016 18:33
tnx @martinayotte
is it necessary to use level shifter
Matheus Rungue Oliveira
@mrungue
Jul 08 2016 18:43
@cgangwar11 , any progress on your lib?? I really need to bypass proxy via esp8266...
Martin Ayotte
@martinayotte
Jul 08 2016 19:25
@mkeyno , Yes if your Arduino is 5V, but there are some 3V, in such case, no.