Hi, I am trying to use my arduino with an ethernet shield to act as a webserver, I have it opening a file from the sd card slot, which works, but then I can't get the ethernet port to work, so that I can see if it loaded the text file properly. I have the program disable the wiznet chip, so that it can read from the sd card, but then I can't get the wiznet chip re enable, how do I do this properly. I can post my code if nessesary.
Are you using TinyWebServer?
http://www.webweavertech.com/ovidiu/weblog/archives/000484.html
Do you have the newer Ethernet shield with the SD card connected to the hardware SPI pins?
No, I am not using the TinyWebServer, I don't really want to due to the fact that I am using the EthernetDHCP library instead of the deafault library due to not getting results with the static IP address. I am using the newest official ethernet shield. I have also found that with certain variations on my code, it would sometimes internally reset itself. I accidentally got rid of my code that was giving me issues, so I can't really post that now...
I accidentally got rid of my code that was giving me issues, so I can't really post that now...
Well, that's one way to solve a problem. Not widely recommended, but, whatever works...
I think I remember having an issue with this in the past where it was something to do with SPI and the fact you can't use the card slot AND the ethernet at the same time. Go back to basics and make sure you can do both independently using the example code in the Arduino IDE - it has a simple webserver there and some test SD card stuff too. Once you verify each one is okay independently then look at your code using them together.
Cheers
ajfisher
I tried the TinyWebServer and it works the way I wanted it to.