Troubleshooting the WiFly shield for Arduino

When it is on i get this message

WiFly Shield Terminal Routine

Bridge initialized successfully!

CMD

Auto-Assoc roving1 chan=1 mode=NONE FAILED

Then i can continue passing the commands to join the preferred network. But when it goes off it doesnt accept and respond to any command. The terminal doesn’t show the commands that am sending…it is like being switched on and off by the arduino in random cycles (since i couldnt determine the pattern of it going on and off).

Hi

While it’s not clear to me from that text what is going wrong, since it’s trying to join the WLAN at Roving Networks the settings do appear to be back to factory as you’d suggested. I’d recommend using the terminal to do a get everything to see what all the settings are. There’s bound to be something in there that’s incompatible with your local setup. For example the security is likely not going to be right. It would be worth in my view updating the settings to reflect your network SSID, passphrase, security etc to see if it will join automatically.

Good luck !

There is no problem in joining networks but the issue is that after a while the device just goes off (no LED blinking) then it cannot be pinged or TCP connection cannot be established with it from a PC. Here is 'get everything" command response.

<2.23> get everything

WiFly Ver 2.23, 04-26-2011 on 131C11

Beacon=100

Probe=5

OPEN=OPEN

CLOSE=CLOS

REMOTE=HELLO

FlushSize=64

MatchChar=0

FlushTimer=10

IdleTimer=0

CmdChar=$

IF=UP

DHCP=ON

IP=192.168.1.9:2000

NM=255.255.255.0

GW=192.168.1.1

HOST=192.168.1.2:19999

PROTO=TCP,

MTU=1524

FLAGS=0x7

BACKUP=0.0.0.0

DNS=192.168.1.1

Name=server1

Backup=backup2

FTP=208.109.78.34:21

File=wifly-GSX.img

User=roving

Pass=Pass123

Dir=public

Timeout=40

FTP_mode=0x0

SSID=Alhabsy

Chan=0

ExtAnt=0

Join=1

Auth=WEP

Mask=0x1fff

Rate=12, 24 Mb

Linkmon=0

Keynum=1

Key=…

SleepTmr=0

WakeTmr=0

Trigger=0x1

Autoconn=0

IoFunc=0x0

IoMask=0x20f0

IoValu=0x0

PrintLvl=0x1

TimeEna=0

TIMEADR=129.6.15.28:123

Zone=7

Baudrate=9600

Flow=0x0

Mode=0x0

JoinTmr=1000

Replace=0x24

DeviceId=WiFly-GSX

Password=

Format=0x0

Signal=0

Average=5

BCAST=255.255.255.255:55555

Interval=0x7

Sensor=0x0

SensePwr=0x0

<2.23> show net

SSid=Alhabsy

Chan=1

Assoc=OK

Rate=12, 24Mb

Auth=OK

Mode=WEP

DHCP=OK,renew=64694

Boot=667

Time=FAIL

Links=1

<2.23> show connection

8130

Then it goes on again for a while then off. I thought maybe sys parameters such as sleep are activated but i disabled them (setting to 0) but still same result.

Hi,

I have followed this post and I can only get as far as attempting to connect. Your post then says if you cannot connect then this tool will not be able to help. I have looked everywhere and I cannot find how I can get any further. Everything seems to flash as it should when connected.

Please could somebody help. I have read the user manual and command reference guide but that is geared towards windows users, which wouldn’t be so bad if I could get to the connected to SPI UART stage.

I’m using Mac OSX 10.7.3 an Arduino Uno and the WiFly shield.

SPI SPI UART on WiFly Shield terminal tool


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…

I have an odd problem, I am able to successfully connect to my WiFly and issue commands, get results, etc. But when I do a scan it returns 0 results even though I know I have multiple networks available (I’m on one right now). I even tried lowering the connection speed and moving closer to the AP but no luck. Am I looking at a bad module or am I missing something? I bought it a while ago and am just now getting around to testing it, so I hope I can get a return from sparkfun if it is a bad board.

Hey gang. I’m with Leeu on this. I have looked at everything Sparkfun offers for support and can’t get past go on Mac. Maybe I’m a noob. But wasn’t everyone?

I could use a coherent step-by-step on configuration. I’m using WiFly 2.21 RN-131C. I need to know:via what application , how do I get into CMD mode with my WiFly Shield (for Arduino)?

The only library example code that will compile is WiFly_Serial > WiFly_Test. All other example code and tutorials have multiple errors, mostly pertaining to Arduino v.1 IDE.

Help me Obi-Wan Kenobi, you’re my only hope. Thanks in advance for any help.

Certain WiFly libraries, you have to use Arduino V. 0023

I notice the typical one from Arduino’s website does not work well with 1.0.1, and found a post saying try ver 0023 (forget where the link is, found it thanks google! http://arduino.cc/hu/Main/Software Scroll down and search for 0023 under previous versions)

This should do the trick, and always be sure to #include WiFly.h if your using WiFly.

I am just getting into the whole Arduino scene the past two weeks, and am building some prime tutorials/youtube, as I want to show people and encourage people to learn and get this stuff working properly, even though I agree with some of the advanced people in this forum, giving and writing all your source code, takes out all the fun

:slight_smile: cheers

Gary_BSEE, your code was amazing…

(side note)No Relevance to this post except the fact that I am also Troubleshooting the WiFly shield…

…it helped me understand how to send signals to my WiFly, such as Auth levels, I managed to rip through the code, cut out all the stuff I don’t need, and got it working, however left with one other issue, the main place I work, they have an SSID of “Name Here” yep with a space!!! I know the book says to replace $ for the space, however it does not work, however when I am at home on my personal network, setup exactly the same as my work network, except without the space, it connects and works fine, any idea idea??

I’m having the same problem as above. SpiUartTerminal fails at “Attempting to connect to SPI Uart…”

The WebClient example hangs at WiFly.begin(); also.

I’m using an Uno R3. I’ve tried with Arduino 1.00, 1.003 and 0023 and the same thing always happens. This is using the most recent version of the code pulled from Github.

Can someone point to a recently tested good configuration?

Hello,

I’ve had this shield for about five months now, I programmed the arduino to log information to a home web server every 10 minutes and it ran with no problems for three of those five months. I however changed the ratio at which the arduino logs information from as said 10 minutes to 1 second after that I can’t seem to get a stable link longer than 20 hours. Whenever the shield hangs only the green and yellow leds blink, the green one a bit faster than the yellow. It seems to be some sort of problem with the library, that also does always return true to a connection,whether there is a connection or not to any host.

Is there a way that I can increase the reliability of the library?

Cheers.

Hi!

For all of you who has a SpiUARTerminal which doesn’t work :

ie : write “$$$” doesn’t show any response.

In my case, it was the shield himself. Once i change the shield, it works. I spent 2 days at work to finally find this was the solution :?

(sorry for my poor english, i’m french)

can i connect the wifly shield with a lily pad arduino?

good evening!

I have trouble,my wifly doesnt connect to wifi and doesnt save settings:

UART terminal:

<2.32> scan

<2.32> 
SCAN:Found 1
Num            SSID   Ch  RSSI   Sec    MAC Address	Suites
 1          PallasaWiFI 06 -37    Open 74:d0:2b:65:4d:74   WPS  104
join 1

Auto-Assoc 1 chan=0 mode=NONE FAILED

I tried everithing - I changed security, channels, SSID, routers, but it`s not connect, all the time I get Auto-Assoc 1 chan=0 mode=NONE FAILED.

Does someone got such issues, maybe i need to change module? (but it looks like working good)

Please, if someone have any idea - let me know.