# Troubleshooting the WiFly shield for Arduino

**URL:** <https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518>\
**Category:** Arduino\
**Created:** [December 9, 2010, 5:59pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518 "2010-12-09T17:59:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![follower](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@follower](https://community.sparkfun.com/u/follower)\
**Post date:** [December 9, 2010, 5:59pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/1 "2010-12-09T17:59:13Z")

</div>

In order to help with troubleshooting when people are having problems with the WiFly shield I’ve created a tool which enables you to enter command mode and send commands manually.

This tool requires the [[WiFly Shield code library alpha 1 release](http://forum.sparkfun.com/viewtopic.php?f=13&t=23498) is installed.

The tool provides some instructions on how to use the tool when run.

The steps you should follow are:

- - Upload [[SpiUartTerminal.pde](https://github.com/sparkfun/WiFly-Shield/raw/master/src/WiFly/examples/tools/SpiUartTerminal/SpiUartTerminal.pde) sketch.

- - Remove power from Arduino and WiFly shield then plug it back in (this ensures the WiFly module is in a semi-known state).
- - Open Serial Monitor in Arduino IDE.
- - Read the instructions that appear.
- - You should get the message "Connected to SPI UART.". If you do not get this message then this tool will not be able to help you--you will need to confirm the library is configured properly for the version of the WiFly board you use and try again.
- - Ensure the line ending pop-up menu at the bottom of the Serial Monitor window is set to "No line ending".
- - Type "$$$" without quotes and then press the "Send" button
- - The display should respond with "CMD". If it doesn't, make sure you had removed & reapplied power before starting. If it still doesn't work, try changing the line ending to "Carriage return" and press the send button--if this works continue the remainder of the steps. Otherwise this tool will not be able to help you.
- - Change the line ending to "Carriage return" and press the send button.
- - The display should respond with something like "\<2.19\>" which tells you the version of the firmware on the module.
- - Try sending commands like "scan" or "get everything" (without quotes).

If you get this far then it means the shield and module are somewhat functional which means the problem is probably related to connecting to the network you’re trying to reach.

–Philip;

- Update: Fixed link.\*]([https://github.com/sparkfun/WiFly-Shield/raw/master/src/WiFly/examples/tools/SpiUartTerminal/SpiUartTerminal.pde](https://github.com/sparkfun/WiFly-Shield/raw/master/src/WiFly/examples/tools/SpiUartTerminal/SpiUartTerminal.pde))]([http://forum.sparkfun.com/viewtopic.php?f=13&t=23498](http://forum.sparkfun.com/viewtopic.php?f=13&t=23498))

---

<div class="post-metadata">

**Author:** ![LMas](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@LMas](https://community.sparkfun.com/u/LMas)\
**Post date:** [December 16, 2010, 12:58am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/2 "2010-12-16T00:58:16Z")

</div>

Hi SpiUartTerminal.pde link not working.

---

<div class="post-metadata">

**Author:** ![follower](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@follower](https://community.sparkfun.com/u/follower)\
**Post date:** [December 16, 2010, 3:47am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/3 "2010-12-16T03:47:15Z")

</div>

Thanks for pointing that out. Moved the location of the file within the repository and didn’t think of it breaking the link. 🙂

Should be correct again now.

–Philip;

---

<div class="post-metadata">

**Author:** ![LMas](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@LMas](https://community.sparkfun.com/u/LMas)\
**Post date:** [December 16, 2010, 2:50pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/4 "2010-12-16T14:50:03Z")

</div>

thanks i found it 🙂

---

<div class="post-metadata">

**Author:** ![zaktux](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@zaktux](https://community.sparkfun.com/u/zaktux)\
**Post date:** [January 16, 2011, 9:20pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/5 "2011-01-16T21:20:13Z")

</div>

i have configure my linksys router (WRT54G2) whit “mixed band” (g+b) and doesn’t work. Only work fine over B mode.

the error was:

2.21\> Disconn from myssid, AUTH-ERR

solved changing the confing to B mode only.

(sorry for my english)

---

<div class="post-metadata">

**Author:** ![follower](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@follower](https://community.sparkfun.com/u/follower)\
**Post date:** [January 17, 2011, 8:05am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/6 "2011-01-17T08:05:52Z")

</div>

> zaktux:  
> i have configure my linksys router (WRT54G2) whit “mixed band” (g+b) and doesn’t work. Only work fine over B mode.

Sorry, I’m not sure what would be causing that issue. Maybe you could check if the router has error logs that give you more information?

–Philip;

---

<div class="post-metadata">

**Author:** ![amirahmed123](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@amirahmed123](https://community.sparkfun.com/u/amirahmed123)\
**Post date:** [March 6, 2011, 7:39pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/7 "2011-03-06T19:39:35Z")

</div>

Hi all.

I am using a Wifly shield from sparkfun and adruino UNO.

i m able to get into command mode. but not able to connect to wifi network.

is there some specific setting to be done for creating wifi network. confused over WEP/WPA. Which one to choose?

i use a netgear WG602 access point

---

<div class="post-metadata">

**Author:** ![amirahmed123](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@amirahmed123](https://community.sparkfun.com/u/amirahmed123)\
**Post date:** [March 7, 2011, 10:24pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/8 "2011-03-07T22:24:39Z")

</div>

hi, til now i was not able to connnect to available wify network with my wifly shield.

i tried to connect mannually from command mode

and it associated.

but i m not able to connect by my sketch

is there some problem with the library?

---

<div class="post-metadata">

**Author:** ![Gary\_BSEE](https://avatars.discourse-cdn.com/v4/letter/g/3ab097/32.png) [@Gary\_BSEE](https://community.sparkfun.com/u/Gary_BSEE)\
**Post date:** [April 7, 2011, 1:05am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/9 "2011-04-07T01:05:17Z")

</div>

So after about 7 hours of troubleshooting I’ve configured my Wifly via Arduino UNO on a static IP etc to send data over TCP connection. Here is my code, I hope it helps some peoples’ problems!

```auto
/*
  Timer
  
  This program takes analog input from a soleniod monitoring
  module on pin 9 (max 5V, 40mA), and records and transmits
  its "on" duration.
  
  Used in conjunction with a PC running a monitoring program,
  on the same Wi-Fi network with preconfigured settings, this
  program allows the Arduino UNO to communicate these timed
  durations with the PC, for further calculation and storage.
  
  This program is Intellectual Property of GSMAC.
  Created 26 Jan 2011
  Modified 5 Apr 2011
  -- Added functionality for WiFly GSX Module to send data
     over Wi-Fi network
     
  By Gary Willette 
  
   
 The circuit:
 * Soleniod monitoring module attached to digital input 9
 * Pin 9 connected to ground via a 10kOhm resistor (pulldown)
 * Sparkfun WiFly shield attached to UNO
 */
 
// include the WiFly code to communicate with SpiSerial:
#include "WiFly.h"

//SET THESE PARAMETERS FOR WI-FI NETWORK
const char WEP_KEY [] = "enter_key_here";
const char AUTH_LEVEL [] = "1"; // 0=OPEN 1=WEP 2=WPA1 3=Mixed WPA1&WPA2-PSK 4=WPA2-PSK 6=AD HOC
const char SSID [] = "enter_SSID_here";
const char DHCP [] = "0"; //0=static (DHCP disabled) 1=DHCP enabled
const char WIFLY_IP [] = "192.168.1.208";
const char BACKUP_IP [] = "192.168.1.209";
const char WIFLY_PORT [] = "2000";
const char PC_IP [] = "192.168.1.7";
const char PC_PORT [] = "2000";
const char GATEWAY_IP [] = "192.168.1.1";
const char NETMASK [] = "255.255.255.0";
const char DNS_SERVER [] = "192.168.1.1";
const char ANTENNA_OPTION [] = "0"; //0=internal, 1=external
const char UART_MODE [] = "2"; //2=make TCP connection when there is data to send
const char LINKMON [] = "5"; //number of AP re-scans until reassociation

//define constants to be used
const int dataSendInterval = 10000; // interval of time to send data (5 seconds)
const int Delay = 100; //interval to wait between wi-fi parameter sets
const int buttonPin = 6; // select the input pin for the button output
const int ledPin = 5;

//data variables
unsigned long currentFillTime = 0;
unsigned long afterFill = 0;
unsigned long beforeFill = 0;
unsigned long lastDataSend = 0;
unsigned long totalFillTime = 0;
unsigned long oldFillTime1 = 0;
unsigned long oldFillTime2 = 0;
int transmissionNumber = 0;

// Variables will change:
int ledState = LOW; // the current state of the output pin
int buttonState = LOW; // the current reading from the input pin
int lastButtonState = LOW; // the previous reading from the input pin
int buttonPush = 0; // will prevent writing vars while button is held
long lastDebounceTime = 0; // the last time the output pin was toggled
int debounceDelay = 40; // the debounce time; increase if the output flickers

//displays on terminal everything in SPI Serial buffer
void readFromWifly(){
  delay(100);
  while(SpiSerial.available() > 0) {
    Serial.print(SpiSerial.read(), BYTE);
  }
  Serial.print("\n");
  delay(100);
}

void setup() {
  pinMode(buttonPin, INPUT); // declare the sensor pin as input
  pinMode(ledPin, OUTPUT);
  digitalWrite(ledPin, LOW);
  Serial.begin(9600);
  Serial.println("Attempting to connect to SPI UART");
  SpiSerial.begin();
  Serial.println("Connected to SPI UART");
  
  // Exit command mode if we haven't already
  SpiSerial.println("");  
  SpiSerial.println("exit");
  readFromWifly();
  // Enter command mode 
  SpiSerial.print("$$");
  delay(100);

  // Reboot to get device into known state
  Serial.println("Rebooting");
  SpiSerial.println("reboot");
  readFromWifly();
  delay(3000);
  
  // Enter command mode
  Serial.println("\nEntering command mode.");
  SpiSerial.print("$$");
  readFromWifly();
  delay(500);

  // Set authorization level to <auth_level>
  SpiSerial.print("set w a ");
  SpiSerial.println(AUTH_LEVEL); 
  Serial.print("Set wlan to authorization level ");
  Serial.println(AUTH_LEVEL);
  readFromWifly();
  delay(500);
  
  //disable DHCP
  SpiSerial.print("set ip dhcp ");
  SpiSerial.println(DHCP);
  Serial.print("Set WiFly DHCP to: ");
  Serial.println(DHCP);  
  readFromWifly();
  delay(500);
  
  //set WiFly IP Address
  SpiSerial.print("set ip address ");
  SpiSerial.println(WIFLY_IP);
  Serial.print("Set WiFly IP to: ");
  Serial.println(WIFLY_IP);  
  readFromWifly();
  delay(500);
  
  //set Backup WiFly IP Address  
  SpiSerial.print("set ip backup ");
  SpiSerial.println(BACKUP_IP);
  Serial.print("Set Backup IP to: ");
  Serial.println(BACKUP_IP);  
  readFromWifly();
  delay(500);
  
  //set WiFly remote port
  SpiSerial.print("set ip local_port ");
  SpiSerial.println(WIFLY_PORT);
  Serial.print("Set Wifly local port to: ");
  Serial.println(WIFLY_PORT);  
  readFromWifly();
  delay(500);
  
  //set PC IP Address
  SpiSerial.print("set ip host ");
  SpiSerial.println(PC_IP);
  Serial.print("Set PC IP to: ");
  Serial.println(PC_IP);  
  readFromWifly();
  delay(500);
  
  //Set PC remote port
  SpiSerial.print("set ip remote_port ");
  SpiSerial.println(PC_PORT);
  Serial.print("Set PC remote port to: ");
  Serial.println(PC_PORT);  
  readFromWifly();
  delay(500);
  
  //set Gateway IP Address
  SpiSerial.print("set ip gateway ");
  SpiSerial.println(GATEWAY_IP);
  Serial.print("Set gateway IP to: ");
  Serial.println(GATEWAY_IP);  
  readFromWifly();
  delay(500);

  //set Netmask Address
  SpiSerial.print("set ip netmask ");
  SpiSerial.println(NETMASK);
  Serial.print("Set netmask to: ");
  Serial.println(NETMASK);  
  readFromWifly();
  delay(500);
  
  //Set DNS Address
  SpiSerial.print("set dns address ");
  SpiSerial.println(DNS_SERVER);
  Serial.print("Set dns addresss to: ");
  Serial.println(DNS_SERVER);  
  readFromWifly();
  delay(500);

  // Set passphrase to <auth_phrase>
  SpiSerial.print("set wlan key ");
  SpiSerial.println(WEP_KEY);
  Serial.print("Set security phrase to ");
  Serial.println(WEP_KEY);
  readFromWifly();
  delay(500);
  
  //set antenna to internal or external
  SpiSerial.print("set wlan ext_antenna ");
  SpiSerial.println(ANTENNA_OPTION);
  Serial.print("Set wlan ext_antenna: ");
  Serial.println(ANTENNA_OPTION);  
  readFromWifly();
  delay(500);
  
  //setup to make tcp connection when data from uart is received
  //and close connection after data is sent
  SpiSerial.print("set uart mode ");
  SpiSerial.println(UART_MODE);
  Serial.print("Set UART mode: ");
  Serial.println(UART_MODE);  
  readFromWifly();
  delay(500);
    
  //set access point link monitor (if AP goes down, scan x # of times before
  //re-associating)
  SpiSerial.print("set wlan linkmon ");
  SpiSerial.println(LINKMON);
  Serial.print("set Access point rescans to ");
  Serial.println(LINKMON);
  readFromWifly();
  
  // Join wifi network <ssid>
  SpiSerial.flush();
  Serial.print("Joining '");
  Serial.print(SSID);
  Serial.println("'");
  SpiSerial.print("join ");
  SpiSerial.println(SSID);
  delay(5000); 
  readFromWifly();
  
  //ping PC IP Address (to check for connection
  SpiSerial.print("ping ");
  SpiSerial.println(PC_IP);
  Serial.print("\nping ");
  Serial.println(PC_IP);
  readFromWifly();
  delay(2000);
  
  //save config
  SpiSerial.println("save");

  //show network details
  SpiSerial.println("show net");
  readFromWifly();
  SpiSerial.println("get uart");
  readFromWifly();
  SpiSerial.println("exit");
}

void loop()
{  
  // read the state of the switch into a local variable:
  int reading = digitalRead(buttonPin);

  // If the switch changed, due to noise or pressing:
  if (reading != lastButtonState) {
    // reset the debouncing timer
    lastDebounceTime = millis();
  } 
  
  if ((millis() - lastDebounceTime) > debounceDelay) {
    // whatever the reading is at, it's been there for longer
    // than the debounce delay, so take it as the actual current state:
    buttonState = reading;
    
    if(buttonState==HIGH){
      if(buttonPush!=1){
        beforeFill=millis();
        //Serial.println(beforeFill);
        buttonPush=1;
        digitalWrite(ledPin, HIGH);
      }
    }
    else if(buttonState==LOW){
      if(buttonPush!=0){
        afterFill=millis();
        //Serial.println(afterFill);
        currentFillTime=afterFill-beforeFill;
        totalFillTime+=currentFillTime;
        buttonPush=0;
        digitalWrite(ledPin,LOW);
      }
    }
  }

  // save the reading. Next time through the loop,
  // it'll be the lastButtonState:
  lastButtonState = reading;  
  if (millis() - lastDataSend >= dataSendInterval)
  {   
     Serial.println(totalFillTime);
     SpiSerial.println(totalFillTime); //send fill time to Wi-Fi
     transmissionNumber++;
    
     // store recent fill time into old time and once more
     // old into extra old, for redundancy and backup
     oldFillTime2 = oldFillTime1;
     oldFillTime1 = totalFillTime;
     totalFillTime = 0;
     lastDataSend = millis();
  }
}

```

Please note that to use this over WPA, you’ll need to change the command from "set wlan key " to "set wlan phrase ". If using over OPEN (unprotected) network, just set AUTH\_LEVEL to “0”.

Take care,

Gary

---

<div class="post-metadata">

**Author:** ![roadfun](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@roadfun](https://community.sparkfun.com/u/roadfun)\
**Post date:** [May 1, 2011, 7:49pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/10 "2011-05-01T19:49:36Z")

</div>

Gary

Thanks for posting your code. I extracted the code to write the SPI and used it to debug a problem I was having. Saved me some serious time…

---

<div class="post-metadata">

**Author:** ![cbernett](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@cbernett](https://community.sparkfun.com/u/cbernett)\
**Post date:** [June 13, 2011, 4:12pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/11 "2011-06-13T16:12:18Z")

</div>

hello!

i’ve gotten the WIFLY up and running at home with my airport express (WPA2), but am needing to transfer my whole setup to work, where I also have a secure WPA/WPA2 network, but am having trouble connecting to it. I’m using the library designed for it and it just hangs. so i thought i’d try your troubleshooting sketch, but am not able to get into command mode at all. in fact, following is what i see, with no response from the IDE when i enter $$$:

* * *

This is a tool to help you troubleshoot problems with the WiFly shield.

For consistent results unplug & replug power to your Arduino and WiFly shield.

(Ensure the serial monitor is not open when you remove power.)

Attempting to connect to SPI UART…

Connected to SPI UART.

- Use $$$ (with no line ending) to enter WiFly command mode. (“CMD”)

- Then send each command followed by a carriage return.

Waiting for input.

WG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@77¶Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@77¶Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@77¶Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`

This goes on for as long as I let it run. Any ideas?

Thank you so much!

c

---

<div class="post-metadata">

**Author:** ![cbernett](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@cbernett](https://community.sparkfun.com/u/cbernett)\
**Post date:** [June 13, 2011, 10:40pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/12 "2011-06-13T22:40:51Z")

</div>

Hello!

I’m having a tricky problem with the WiFly Library. The WiFly are connecting beautifully at home (airport express, WPA2) but not at my studio (WPA mixed). It doesn’t error out or associate, it just sits on the begin() call. I tested it out with the SpiUartTerminal sketch, and it looked good. I got this:

\<2.21\> set wlan ssid Method

AOK

\<2.21\> set wlan phrase xxxxxxxx

AOK

\<2.21\> set wlan auth 4

AOK

\<2.21\> scan

\<2.21\>

SCAN:Found 7

Num SSID Ch RSSI Sec MAC Address Suites

1 SmartFi 01 -67 WPAv1 74:91:1a:0f:7e:a9 AESM-TKIP 3104 0

2 MuseGames 02 -69 WPA\_Mix 00:24:01:6f:8a:bd AES/TKIPM-TKIP 3104 0

3 shadygoliath1 06 -73 WEP 00:26:62:0d:1a:f6 1104 2

4 M3 Entertainment 09 -69 WPA\_Mix 0c:d5:02:1e:42:b5 TKIPM-TKIP 1104 6

5 Method 11 -55 WPA\_Mix 00:26:b0:fe:8b:a3 AES/TKIPM-TKIP 3100 0

6 DHAwifi 11 -62 WPAv1 00:21:29:ae:62:8e TKIPM-TKIP 1104 0

7 DHAguest 11 -74 WEP 00:15:e9:1e:d2:f8 3104 0

join # 5

DeAuth

Auto-Assoc Method chan=11 mode=MIXED SCAN OK

Joining Method now…

\<2.21\> Associated!

DHCP: Start

Method’s ssid is showing up at WPA mixed - so it seems like all should be good. Any thoughts? I’m super stuck and really want to get this working at this location. Thanks so much in advance!

Claudia

---

<div class="post-metadata">

**Author:** ![k\_san88](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@k\_san88](https://community.sparkfun.com/u/k_san88)\
**Post date:** [July 19, 2011, 11:18am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/13 "2011-07-19T11:18:59Z")

</div>

> Gary\_BSEE:  
> So after about 7 hours of troubleshooting I’ve configured my Wifly via Arduino UNO on a static IP etc to send data over TCP connection. Here is my code, I hope it helps some peoples’ problems!

Gary, thank you very much! Your code is a great rosetta stone for me. Most appreciated.

---

<div class="post-metadata">

**Author:** ![jasel](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jasel](https://community.sparkfun.com/u/jasel)\
**Post date:** [September 5, 2011, 7:34am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/14 "2011-09-05T07:34:15Z")

</div>

I’m a little confused about the relationship between Arduino and the WiFly shield. I’m developing an application to monitor my boat and most importantly the level of water, in case the automatic pumps stop working for some reason. It works as expected, but if I telnet into the WiFly the sketch stops running. If I reboot the WiFly, only the shield reboots, not the Arduino Uno. Do I really have to connect some kind of relay to the WiFly itself to be able to power cycle the whole thing and get the Arduino Uno to reboot and rerun the sketch?

---

<div class="post-metadata">

**Author:** ![asifnadeem](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@asifnadeem](https://community.sparkfun.com/u/asifnadeem)\
**Post date:** [November 10, 2011, 3:09pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/15 "2011-11-10T15:09:38Z")

</div>

Cbernet!

I am having the same problem, instead of all that what u r getting, i am getting only one symbol which jus keeps on repeating while the tx on my arduino never stops blinking. can anybody help?

---

<div class="post-metadata">

**Author:** ![ddesson](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@ddesson](https://community.sparkfun.com/u/ddesson)\
**Post date:** [January 16, 2012, 1:49am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/16 "2012-01-16T01:49:39Z")

</div>

> cbernett:  
> hello!
> 
> i’ve gotten the WIFLY up and running at home with my airport express (WPA2), but am needing to transfer my whole setup to work, where I also have a secure WPA/WPA2 network, but am having trouble connecting to it. I’m using the library designed for it and it just hangs. so i thought i’d try your troubleshooting sketch, but am not able to get into command mode at all. in fact, following is what i see, with no response from the IDE when i enter $$$:
> 
> * * *
> 
> This is a tool to help you troubleshoot problems with the WiFly shield.
> 
> For consistent results unplug & replug power to your Arduino and WiFly shield.
> 
> (Ensure the serial monitor is not open when you remove power.)
> 
> Attempting to connect to SPI UART…
> 
> Connected to SPI UART.
> 
> - Use $$$ (with no line ending) to enter WiFly command mode. (“CMD”)
> 
> - Then send each command followed by a carriage return.
> 
> Waiting for input.
> 
> WG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@77¶Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@77¶Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@77¶Áç·`±·ßG·±yç¶6¶¡@g¶ Ç¶¡×0ÁWG÷·77÷·Ø@'÷7o¶Þw·@774Áç·`
> 
> This goes on for as long as I let it run. Any ideas?
> 
> Thank you so much!
> 
> c

I have the same problem. Were you able to find a solution?

Thank you

---

<div class="post-metadata">

**Author:** ![ddesson](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@ddesson](https://community.sparkfun.com/u/ddesson)\
**Post date:** [January 18, 2012, 2:32am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/17 "2012-01-18T02:32:56Z")

</div>

I found my problem. I was using an old version of the WiFly library.

---

<div class="post-metadata">

**Author:** ![qoda](https://avatars.discourse-cdn.com/v4/letter/q/9fc29f/32.png) [@qoda](https://community.sparkfun.com/u/qoda)\
**Post date:** [February 6, 2012, 1:47pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/18 "2012-02-06T13:47:56Z")

</div>

I’ve been battling the entire weekend with the WiFly shield (Connected to a Arduino UNO). I know think I’ve exhausted all possible steps in debugging this issue. I have also tried this with all versions and some forks of the code and version 0022 and version 1.0 of the IDE.

After uploading and running SpiUartTerminal.pde or the HardwareFactoryReset.pde, the serial monitor just hangs after outputting “Waiting for input:” and doesn’t allow me to enter the command line application ($$$). I’ve tried unix screen, coolterm and the standard IDE serial monitor. I’ve also tested the pins to ensure everything is connected correctly (I finally soldered them to the header pins) and I’m sure it is.

I would really appreciate some help if possible. I’m now suspecting that it is in fact a hardware issue.

---

<div class="post-metadata">

**Author:** ![lfwo63](https://avatars.discourse-cdn.com/v4/letter/l/50afbb/32.png) [@lfwo63](https://community.sparkfun.com/u/lfwo63)\
**Post date:** [February 21, 2012, 4:26am UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/19 "2012-02-21T04:26:51Z")

</div>

Heey guys…

I had no trouble using the wifly shield until it started behaving weirdly (thats what i thought).It will go on for a while then off completely. I have done hardware reset through uploading the hardwareReset.pde or by sending factory reset command through serial monitor/tera term. It was fully functional before as I was able to associate to any network then two days ago this happened. Does this mean the device is defective and I have to get a new one or its some modification somewhere that is needed…I havent soldered anything on the prototyping area…please help!!!..

---

<div class="post-metadata">

**Author:** ![strykeroz](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@strykeroz](https://community.sparkfun.com/u/strykeroz)\
**Post date:** [February 21, 2012, 12:57pm UTC](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518/20 "2012-02-21T12:57:20Z")

</div>

Can you paste an example of what you’re seeing from it?

[Next page](https://community.sparkfun.com/t/troubleshooting-the-wifly-shield-for-arduino/18518.md?page=2)
