Wifi shield and avrdude: stk500_getsync(): not in sync: resp=0x1c

Hi all,

First, I'd like to apologize for cross posting :slight_smile: (this already has a topic at Blink example works, but wifi example throws error "not in sync" - IDE 1.x - Arduino Forum) but I figure that posting here will get it more "love" :smiley:

The thing is whenever I stack my wifi shield (this one: http://www.geeetech.com/wiki/index.php/Arduino_WIFI_shield) and try to upload a sketch I get this:

avrdude: stk500_getsync(): not in sync: resp=0x1c

I'm on Linux (Fedora) and notice that (with the wifi shield connected) there is another tty port - i.e. I have ttyACM0 and ttyACM2.
I've left the jumpers on the wifi shield to their default (hardware uart) which, I guess, somehow, mess with the upload process.

Any hints on if I should change these jumpers to other digital pins or if I'm missing something altogether too obvious? :wink:

Edit: took a leap of faith :smiley: and changed the uart setting (jumpers) to d2 d3...
As expected the sketch was able to fully upload but now I get a "Wifi Shield not found" from the simple ScanNetworks example.

TIA,
Pedro.

In the link you provided, it says the software pins are d6 & d7, not d2 & d3. Not sure if I'm reading the right text though, haven't got a wifi shield.

The ATMega328 only has one hardware UART so you will need to use SoftwareSerial to communicate with the WiFi shield if using D2 and D3, rather than hardware Serial.

Thank you pYro and tack :slight_smile: kudos and karma to you :wink:

Since I also have a couple of Mega256 lying around (and I know it has 4 hardware uarts :stuck_out_tongue: ) can I leave the jumpers on the wifi shield at their default setting (hardware uart) and get away with? :stuck_out_tongue: :wink:

BR,
Pedro

You will not be able to use the wifi library or examples included with the IDE. It will report WiFi shield not present. The Arduino wifi shield uses the SPI bus for its communication with the Arduino, not the serial bus.

Thanks SurferTim :slight_smile:

Bit of cold shower there though :S guess sometimes (well most of the time actually :D) one has to let details sink in before price (bought this shield off ebay) :wink:

A quick google search proved fruitless for setting up a server (i.e. example code) using this shield... perhaps you or other gurus like you could point me in the right direction? :wink:

TIA,
Pedro.

DFRobot appear to do a s hield based on the same module.

I also managed to find the following, with some Ggogle Fu :-

It looks like some kind of library with examples for web server and client etc. It might help you.

Outstanding! :slight_smile: thanks and karma to you tack! :wink:

It looks like that library and examples uses SPI connection. If you look at your board it has SPI and IIC lines to played holes on the leading edge. You might have to experiment with connecting those and see how you get on.

The module allows serial > wifi but also appears to be able to use SPI.

I've had a hunt around to see if I could find a shield or raw modules at a reasonable price but they are quite expensive. I'd quite like to have a play with one of these myself as it could be useful for a nRF to WiFi gateway.