-->
Page 1 of 1

Help with Debugging

PostPosted: Sat Apr 02, 2016 2:26 pm
by johnboy36
Hi all, thanks for all the help so far, I've been reading this forum for a while but this is my first post. I haven't been able to find much info on this issue here or anywhere else.

I have my sketch up and running. When it's connected through my home ASDL is works pretty well, however, when I use a mobile broadband router (Huawei mi-fi thing) it fails about 95% of the time. So I switched on debugging to see what's going on, but I can't find any information to interpret the debugging messages. Here's what I get when the connection works

[hostByName] request IP for: myhost.com
[hostByName] Host: myhost.com IP: xxx.xxx.xxx.xxx
:ref 1
:wr
:sent 87
:rn 206
:ww
:c0 1, 206
:rcl
:abort
:ur 1
:del
x61

And this is a failed connection

[hostByName] request IP for: myhost.com
[hostByName] Host: myhost.com IP: xxx.xxx.xxx.xxx
:ref 1
:wr
:sent 87
:ww
:ur 1
:close
:del

Does anyone know what these messages mean? Can I enable more detail? Is there a document? I have other scenarios where it fails or resets and i'd like to debug those too.

Cheers!

Re: Help with Debugging

PostPosted: Tue May 03, 2016 5:42 am
by matbor
Did you find out what the codes mean? Debugging something similar but haven't found much info on it.

Re: Help with Debugging

PostPosted: Wed May 04, 2016 6:44 am
by Phil colbert
Search through the arduino code for the various debug messages :-

If your on windows search here :- C:\Users\{username}\AppData\Local\Arduino15\packages\esp8266

For example, the first message

:ref 1

comes out of the file

hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src\include\ClientContext.h
line 89
DEBUGV(":ref %d\r\n", _refcnt);

From there you can see whats going on , does that make sense?