hi,
i have arduino uno , ethernet shield
i load , run example dhcp...
the program runs , ip
what problem
the conection on network is
1) arduino ethernet > switcha 8p 10/100 > switchb 16p 10/100 (into rack) > internet rooter (this dhcp)
when use above connection shild not ip
when connect direct switchb ip
my computer , 3 other computers connected on switcha , ip dhcp
i have change switcha other had same problem.
using other ethernet pcb 28jxxx on (and libraries this) ip 1 connection
i use mac address pc ethernet card , not use more.
the host name wiznet624573
the arduino ide vesrion 1.63
so problem must @ ethernet library
do have suggestion?
kalarakis
i have arduino uno , ethernet shield
i load , run example dhcp...
the program runs , ip
what problem
the conection on network is
1) arduino ethernet > switcha 8p 10/100 > switchb 16p 10/100 (into rack) > internet rooter (this dhcp)
when use above connection shild not ip
when connect direct switchb ip
my computer , 3 other computers connected on switcha , ip dhcp
i have change switcha other had same problem.
using other ethernet pcb 28jxxx on (and libraries this) ip 1 connection
i use mac address pc ethernet card , not use more.
the host name wiznet624573
the arduino ide vesrion 1.63
so problem must @ ethernet library
do have suggestion?
kalarakis
i have seen reports of switches not passing or not responding dhcp request. switches , routers work fine multiple switches between ethernet shield , dhcp server.
try test. repeat dhcp request until gets response. ip on subsequent requests?
try test. repeat dhcp request until gets response. ip on subsequent requests?
code: [select]
#include <spi.h>
#include <ethernet.h>
// enter mac address controller below.
// newer ethernet shields have mac address printed on sticker on shield
byte mac[] = {
0x00, 0xaa, 0xbb, 0xcc, 0xde, 0x02
};
void setup() {
// open serial communications , wait port open:
serial.begin(9600);
// check needed on leonardo:
while (!serial) {
; // wait serial port connect. needed leonardo only
}
// start ethernet connection:
while(ethernet.begin(mac) == 0) {
serial.print("dhcp failed");
delay(1000);
serial.println("...trying again");
}
// print local ip address:
serial.print("my ip address: ");
(byte thisbyte = 0; thisbyte < 4; thisbyte++) {
// print value of each byte of ip address:
serial.print(ethernet.localip()[thisbyte], dec);
serial.print(".");
}
serial.println();
}
void loop() {
}
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > arduino uno and ethernet shield
arduino
Comments
Post a Comment