I've recently had some errors on my program so I've changed the board, and I tried to use a reduced the code to find the error. Right now I am testing the WebServer Example of the Ethernet Library. Well, I've used Serial.print and even mySerial.print (SoftwareSerial.h) to detect the error. Anyway with an Arduino Ethernet board (Arduino 1.0 IDE) when I write on a browser the IP address of the board nothing happens. Trying to understand what happens I added a print instruction to see where the program stops.

// output the value of each analog input pin for (int analogChannel = 0; analogChannel < 6; analogChannel++) { client.print("analog input "); client.print(analogChannel); client.print(" is "); client.print(analogRead(analogChannel)); client.println("<br />"); }Do you have something connected to these pins? Or is this just garbage?

Quote

or if I change the instruction to mySerial.print(client.read());

Why can't you be bothered to separate the values being printed?

Quote

webserver135980202151723551163616664147128352011369512340

numbers!

No. Meaningless crap, since you haven't a clue where each number starts and ends. Lacking that clue, you have no way of determining a meaning for the numbers, which is an essential piece of information.

more information:*the IP address is not used. I've tried with a ping. *I change the ethernet cable.*when I connect the board I ping it and it responds. *My operating system is Ubuntu 11 and since a week I 'm using arduino 1.0 IDE. So I erase the 022 ide version. I thought that maybe the libraries were causing some conflits...

I do not know what is the problem. Maybe you know basic tips I didn't realize.

No. The example doesn't use mySerial and it doesn't print the value of client.read().

If you are going to modify the example, feel free to do a good job.

I was answering to your question about if there were something connecting to the ports.

I thought that maybe it could be a conflict using the Serial for that reason I prove with the SoftwareSerial library. But if I use the normal serial instructions it happens the same.

Arduino Ethernet, the FTDI board and the usb cable using just char c = client.print() ;Serial.print(c);Serial.print(" ");it prints the strange symbols. Or if I change it for char c = client.print() ;Serial.print(client.print());Serial.print(" ");it prints the numbers as you said with a space between then.

The strage thing is that when I tried this before no matter with which board it prints the http frame-

*My operating system is Ubuntu 11 and since a week I 'm using arduino 1.0 IDE.

IDE v0022 and v1.0 had a bug in the ethernet library that caused problems like that. Try downloading the new IDE v1.0.1 from the Arduino site and unpack it in a local directory. Then navigate to that directory and run the arduino shell script there.

Thank you! So solving this error I continue with other problems. I talk about it in the next post: [url]http://arduino.cc/forum/index.php/topic,128982.msg977159.html#msg977159[\url] I hope you could help me.

There is a problem when I tried to use the board Arduino Ethernet with a Xbee Shield (using XBee Arduino Library Version 0.3 - Supports Arduino 1.0).