Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Duemilanove + Ethernet Shield problems on: February 23, 2009, 04:37:32 am
I try it but without success (you could do Sketch / Import Library but don't work so much)

2  Forum 2005-2010 (read only) / Troubleshooting / Re: Duemilanove + Ethernet Shield problems on: February 22, 2009, 06:44:14 am
This is the terminal input/output for the test:

Last login: Sun Feb 22 11:31:35 on console
macbook-de-garito:~ garito$ telnet 192.168.0.177
Trying 192.168.0.177...
telnet: connect to address 192.168.0.177: Operation timed out
telnet: Unable to connect to remote host
macbook-de-garito:~ garito$ ping 192.168.0.177
PING 192.168.0.177 (192.168.0.177): 56 data bytes
64 bytes from 192.168.0.177: icmp_seq=0 ttl=128 time=0.087 ms
64 bytes from 192.168.0.177: icmp_seq=1 ttl=128 time=0.163 ms
64 bytes from 192.168.0.177: icmp_seq=2 ttl=128 time=0.143 ms
^C
--- 192.168.0.177 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.087/0.131/0.163/0.032 ms
macbook-de-garito:~ garito$

As you can see then I try to connect with the board via telnet a time out error is raised but if I try to ping it all goes as expected

I try every single example I can found because it seems to be a hardware problem

In my original post I try to figure out how can I debug the code (the library one specifically) because I don't have arduino experience but I'm a programmer since I was a kid

What I need is to determine if the ethernet board is ok or if it has a failure or a bug or it's crashed

Thanks a lot!
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Duemilanove + Ethernet Shield problems on: February 22, 2009, 06:07:13 am
Mi config:

I work with a MacBook 2.4Gh aluminium
then a router
then the arduino

I try to connect them directly (the macbook ethernet changes automatically the cable assignement if you plug a device directly)

All the configuration is pretty simple this is what it turns me crazy

4  Forum 2005-2010 (read only) / Troubleshooting / Duemilanove + Ethernet Shield problems on: February 21, 2009, 02:45:02 pm
Hi all!
I have a Duemilanove and an Ethernet Shield and I try to test the Ethernet library Server

I use this code for testing it:

Code:
#include <Ethernet.h>

// network configuration.  gateway and subnet are optional.
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 0, 177 };
byte gateway[] = { 192, 168, 0, 1 };
byte subnet[] = { 255, 255, 255, 0 };

// telnet defaults to port 23
Server server = Server(23);

void setup()
{
  Serial.begin(19200);
  Serial.println("Monitorizacion iniciada");
  // initialize the ethernet device
  Ethernet.begin(mac, ip, gateway, subnet);
  Serial.println("Conexion de red inicializada");
  // start listening for clients
  server.begin();
  Serial.println("Esperando peticiones");
}

void loop()
{
  Client client = server.available();
  if (client) {
    Serial.println("Procesando peticion");
    client.println("Bienvenidos al servidor telnet. Soy una arduino, hola!");
    server.write(client.read());
  }
  else {
    Serial.println(client);
  }
}

The weird thing is that client is allways 0

I try to ping the board with pretty success but I never could connect it by browser nor telnet

I try several examples but never works

Could it be a hardware problem?

How can I debug the code to try to understand where the problem is?

Thank you so much!
5  Forum 2005-2010 (read only) / Development / [m by=mellis destboard=swtrouble dest=1235245502]: Duemilanove + Ethernet Shield problems on: February 22, 2009, 06:11:49 am
[moved] [link=http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235245502/0]Troubleshooting[/link] [move by] mellis.
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: April 18, 2009, 07:27:17 am
First I want to apologize. I want to collaborate but I think my skill is not enoug

The questions you ask:

I use a MacBook unibody with Leopard
My IP is 192.168.1.77
Netmask: 255.255.255.0
Default gateway: 192.168.1.1
I try to connect the shield directly and with a switch

When I ping the shield the tx and rx lights on and the link led lights off in the same time

When I try to connect leds (tx and rx) lights on and the link one lights off 6 times and then nothing (it only blinks 2, 3 or 4 times more)

No connection. It raises a time out

This is the code I used:

#include <Ethernet.h>

// network configuration.  gateway and subnet are optional.
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 1, 177 };
byte gateway[] = { 192, 168, 1, 1 };
byte subnet[] = { 255, 255, 255, 0 };

// telnet defaults to port 23
Server server = Server(23);

void setup()
{
  // initialize the ethernet device
  Ethernet.begin(mac, ip, gateway, subnet);

  // start listening for clients
  server.begin();
}

void loop()
{
  Client client = server.available();
  if (client) {
    server.write(client.read());
  }
}

Thanks!
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: April 17, 2009, 01:28:39 pm
Then what solution you propose?

I configure my network by myself and the other computers works fine (have 2 macs and an Ubuntu laptop)
8  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: April 17, 2009, 08:16:04 am
Sorry eTracer but my network configuration is correct (I know it because I can ping the shield with the lets lighting correctly or, at least with let activity when I ping)

On these threat we discover client problems, it's easy to deduce that the ethernet shield was incorrect in the client and the server before the correction

This corrections was for the client but no for the server

Perhaps it's time to revise the server part

If not I would like to know if I neet to change the shield because is break or something like this

Need to know what to do

Thanks!
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: April 07, 2009, 03:55:36 pm
It raises 50 CONNECTION FAILED!'s

But I'm interested on the server not client

I suppose that the board has any kind of problem if it can't connect with this code?

Thanks!
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: April 06, 2009, 05:59:58 pm
I try this code:

#include <Ethernet.h>

// network configuration.  gateway and subnet are optional.
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 1, 177 };
byte gateway[] = { 192, 168, 1, 1 };
byte subnet[] = { 255, 255, 255, 0 };

// telnet defaults to port 23
Server server = Server(23);

void setup()
{
  // initialize the ethernet device
  Serial.begin(19200);
  Serial.println("Serie inicializada a 19200 baudios...");
  Ethernet.begin(mac, ip, gateway, subnet);
  Serial.println("Ehternet inicializada...");
  // start listening for clients
  server.begin();
  Serial.println("Servidor inicializado...");
}

void loop()
{
  Client client = server.available();
  if (client) {
    Serial.println("Conexion establecida...");
    server.write(client.read());
  }
}


With this result:

macbook-de-garito:~ garito$ ping 192.168.1.177
PING 192.168.1.177 (192.168.1.177): 56 data bytes
64 bytes from 192.168.1.177: icmp_seq=0 ttl=128 time=105.914 ms
64 bytes from 192.168.1.177: icmp_seq=1 ttl=128 time=105.144 ms
64 bytes from 192.168.1.177: icmp_seq=2 ttl=128 time=104.166 ms
64 bytes from 192.168.1.177: icmp_seq=3 ttl=128 time=104.207 ms
64 bytes from 192.168.1.177: icmp_seq=4 ttl=128 time=103.006 ms
64 bytes from 192.168.1.177: icmp_seq=5 ttl=128 time=1.586 ms
64 bytes from 192.168.1.177: icmp_seq=6 ttl=128 time=1.519 ms
64 bytes from 192.168.1.177: icmp_seq=7 ttl=128 time=102.396 ms
64 bytes from 192.168.1.177: icmp_seq=8 ttl=128 time=102.331 ms
64 bytes from 192.168.1.177: icmp_seq=9 ttl=128 time=101.361 ms
64 bytes from 192.168.1.177: icmp_seq=10 ttl=128 time=101.467 ms
^C
--- 192.168.1.177 ping statistics ---
11 packets transmitted, 11 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.519/84.827/105.914/39.280 ms
macbook-de-garito:~ garito$ telnet 192.168.1.177
Trying 192.168.1.177...
telnet: connect to address 192.168.1.177: Operation timed out
telnet: Unable to connect to remote host

Then I try this other:

#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 1, 177 };
byte server[] = { 64, 233, 187, 99 }; // Google

Client client(server, 80);

void setup()
{
  Ethernet.begin(mac, ip);
  Serial.begin(9600);

  delay(1000);

  Serial.println("connecting...");

  if (client.connect()) {
    Serial.println("connected");
    client.println("GET /search?q=arduino HTTP/1.0");
    client.println();
  } else {
    Serial.println("connection failed");
  }
}

void loop()
{
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
    for(;smiley-wink
      ;
  }
}

With this result:

11  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: April 06, 2009, 11:51:50 am
I'm interested on a ethernet solution to the connection problems

I'm working on a webserver put it in the arduino. My goal is to read some digital inputs and serve them to an iPhone with the GUI

But at this point I can't connect with the server

Thanks!
12  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: April 05, 2009, 07:46:27 pm
Then for those who have problems with the ethernet card wich solution you propose

Because for all of us who are newbies this talk has lots of information but no practical solution

Thanks!
13  Forum 2005-2010 (read only) / Troubleshooting / Re: Ethernet shield problems! Time to update library? on: March 30, 2009, 02:31:46 pm
I have a similar problem try to read a slot counter+lap timer with a webserver

Our threat for details at: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235245502/10#10
Pages: [1]