Pages: [1]   Go Down
Author Topic: Ethernet Shield vs network Switch  (Read 739 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,

I'm trying to connect an Arduino with an Ethernet Shield to my internal network through a Sitecom network switch and it's not sending any packet to the network.

When I connect the shield directly to the source cable it connects fine and I also have other Arduinos using similar code connected to other switches working fine.

If this is a switch problem how can I modify the Arduino code in order to get it working independently of the switch used?

Thanks



Logged

Arlington, MA, USA
Offline Offline
Sr. Member
****
Karma: 0
Posts: 259
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unless there's something very unusual about a Sitecom switch (never heard of them), it should just work. Are you using a known good cable? Is the port you're connecting to also known to work? I also don't honestly know if the shield is 10 Mb only, or if it will connect to 100 Mb Ethernet, but if your switch is a managed switch, the port settings might be set to something incompatible.
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Mine are hooked to a D-Link DES-1105 switch, which in turn is hooked to a router, and indeed they just work, as they do if connected directly to the router.  It looks like they connect at 100Mbps.

I'd try plugging a PC into the switch to see if that works.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The switch is working fine as I have two PC's connected to it. When I connect the same Arduino to other switches it communicates almost instantly...

The switch I'm using is a Sitecom LN-118v1 5-Port Network Switch (http://www.sitecom.com/network-switch-5-port/p/681).

I can't see in the switch specs any reason why the Arduino is not working with it, am I missing something here?
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 135
Posts: 6784
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You wouldn't have more than one Arduino with the same MAC address connected to your switch?
Or a MAC address that happens to be magic (low bit in first byte set?)
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You wouldn't have more than one Arduino with the same MAC address connected to your switch?
Or a MAC address that happens to be magic (low bit in first byte set?)


I only have that Arduino and 2 PC's connected to the switch. The current MAC address is the one from the example.

I'm getting pretty desperate, right now the only way out seems to replace the switch for one known to work...

Logged

Arlington, MA, USA
Offline Offline
Sr. Member
****
Karma: 0
Posts: 259
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Given that you only have one arduino with that address, you should be OK. Ethernet addresses need to be unique in your LAN. Even if you had more, you should get a link light. Are you getting a link light on the switch? You say only one Arduino on this switch, but you earlier mentioned other Arduinos on other switches. Are they on the same LAN (i.e. on the same side of one router)? Everything within a LAN must have a unique ethernet address. If your shields are new enough to have an address sticker, use that in your sketch rather than the "fake" one.
Logged

Pages: [1]   Go Up
Jump to: