jcw/ethercard — Issue #4: SPI & buffer problem when combining this library with SD library 
Author: Cinezaster
Created: 2011-11-27 17:36:53+00:00
State: open

I got the library up and running.
I made a example that served 3 webpages. (combination of your ethernode/rbbb_server example)

I'm using a arduino UNO and a ethernet shield ( http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=349 )

But since I want to serve a bigger webpage, I like to put some html pages on a SD card.

Both libraries work as expected, but when combined they compile but won't go into the void setup. Initiating serial connection an say something over serial, won't work.
I think it has probably something to do with the SPI and more exact the Select Pin or SS.
Or maybe the problem is in the libraries, both are initializing the SPI pins. But if that would be the problem there should be a compile error.
There should be a controller that handles both SPI SS pin. In my case it is pin 8 for the ethernet SS and pin 9 for the SD SS. And pin 10 is unconnected.

My next question is about the buffer. Right now the buffer is max 1500, because of the ethernet packet.
Am I right when I say that this library is only capable of sending 1 packet per request?

I can go the easy rout by serving the html on our own server and just leave the easy stuff for the arduino, but that wouldn't be fun.
Right know I'm using Jquery mobile to interface with the arduino. With the js libraries running online and the html pages on the arduino. But I'm not half-way with my page.

Can you help me or show me the way to make this work?