Test serial debug..

56 views
Skip to first unread message

Antoni

unread,
Mar 21, 2012, 7:58:51 AM3/21/12
to Webduino
Hi,

I try use de debug console with "#define WEBDUINO_SERIAL_DEBUGGING 1"
in the first position...

"
#define WEBDUINO_SERIAL_DEBUGGING 1

#include "SPI.h"
#include "Ethernet.h"
#include "WebServer.h"
"

but i dont work??


I have Arduino 1 with Arduino Ethernet boar.

Thanks..

Pd.
sorry for may bad language..

Ben Combee

unread,
Mar 21, 2012, 11:34:59 AM3/21/12
to webd...@googlegroups.com
You don't say what you mean by it not working.  Does the sketch not run at all or do you just not get any output on the serial monitor?

You can use

#define WEBDUINO_SERIAL_DEBUGGING 2

to get additional logging information.  Just look at the code in WebServer.h to see where that macro is used.

If you use the Web_HelloWorld.ino example, are you able to see your webserver from your computer?

Antoni

unread,
Mar 21, 2012, 1:49:16 PM3/21/12
to Webduino
Hi,

I tried with " #define WEBDUINO_SERIAL_DEBUGGING 2" on the first
position too, but i don't have any messages in the serial console..

I opened the "WebServer.h" and i found that it use the
"HardwareSerial.h", i have this file in Arduino (../cores/arduino/.)
and i can compile/verify and upload without any problem, but i don't
know the baud rate, i tried with 9600 and 57600 but it doesn't work
either.

I tried open "HardwareSerial.h" too but i can't understand any code...
(i am new with C++ and Adruino..).


Thank you,
Antoni

Ben Combee

unread,
Mar 21, 2012, 1:53:02 PM3/21/12
to webd...@googlegroups.com
You won't see any messages until someone connects to the web server
over TCP/IP. Have you been able to do that?

Antoni

unread,
Mar 21, 2012, 2:14:11 PM3/21/12
to Webduino
No, i don't see any messages until connected to the web server, i
tried with other sketch (Examples) and i work find!


Thank you,

Antoni

unread,
Mar 21, 2012, 4:55:26 PM3/21/12
to Webduino
Hi Ben!!,

Can you test this property in you lab, please?


Thank you,


On 21 mar, 18:53, Ben Combee <ben.com...@gmail.com> wrote:

Antoni

unread,
Mar 22, 2012, 5:43:23 AM3/22/12
to Webduino
Hi Ben!!

I've gotten it to work!!, added this in the setup()

void setup()
{
..
..
#if defined WEBDUINO_SERIAL_DEBUGGING
// turn on serial port (for debuggin)
Serial.begin(9600);
#endif
}

do you think is right?

Thank you very mach!!


On 21 mar, 18:53, Ben Combee <ben.com...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages