Sharing SPI (WAV Shield + MEGA +WiFly) - WiFly/WAV cable select pins

It sounds to me like the WiFly shield isn't releasing control of it's cable select PIN for the SPI bus, just as you suspect. Given your setup, you should be able to toggle back and forth between them (just as I do with RiderScan between the Wav, RFID, Ethernet and SD cards).

A couple things I would try;

  1. Re-initialize the SPI bus when your ready to switch back to the Wav shield, maybe the reset will force the WiFly shield to release it's cable select PIN.

  2. Compare the WiFly and Wav shield libraries where SPI is concerned, and see if you can modify the WiFly library to act more like the Wav shield in terms of releasing the cable select PIN.

If you can't get the WiFly to release it's cable select PIN, then I think your only option is to use another WiFi shield. :expressionless:

Kris