Have made nicely working device, for ping the ip address of google.
Is need to monitor how my provider works.
But have now problem, how to add another network shield to mega ( i have few conections).
Have idea to reconnect all need for functionality pins of shields on the fly.
Can anybody answer definetly if maybe exist more smart solve of this?
Did I get that correctly? You want to add a second Ethernet shield to your Arduino Mega? Why do you think this is necessary?
Cause i have 2 networks, which i cant connect into 1 switch. But i need check availability of internet connection in both. This maybe makes some more sense:
Simply i want make this as much less space consuming.
I.e. after Arduino maketing, want make PBC with all this.
Problem is taht i dont want have 2 LCD's, every of which will show only "his" network connection status (second line on LCD i show)
From the hardware perspective it's quite easy, you just have to rewire pin 10 of the second shield to another pin of the Arduino. But on the software side you have to modify the Ethernet library that way that you can specify the SPI SS pin (it's hard wired in the default version) and that you can have multiple objects of that class. To my knowledge nobody has done that yet.
Thanks, i will try this. Can i just ask, if i can connect all other pins in parallel, and if is SPI SS only the one thing to switch?
Can i just ask, if i can connect all other pins in parallel, and if is SPI SS only the one thing to switch?
Given you don't use the SD card slot this is correct. The SS signal is the only one the shield gets from the standard Arduino headers, the other SPI signals are from the ICSP header.