Help with comment WiFly board to my WiFi network

I am having trouble connecting the WiFly board to local WiFi network. I’ve tried it with security turned on (WPA2) and with it turned off, I keep getting Disconn from acumen4,AUTH-ERR. I am hoping someone can spot something. Here are results of a scan:

SCAN:Found 1
Num            SSID   Ch  RSSI   Sec    MAC Address	Suites
 1              acumen4 09 -59    Open 00:0c:41:c2:56:c0   2104    0

Then I say: join acumen4. I get this in response:

Auto-Assoc acumen4 chan=9 mode=OPEN SCAN OK
Joining acumen4 now..
<2.20> 
Disconn from acumen4,AUTH-ERR
Auto-Assoc acumen4 chan=9 mode=OPEN SCAN OK
Joining acumen4 now..

Disconn from acumen4,AUTH-ERR
Auto-Assoc acumen4 chan=9 mode=OPEN SCAN OK
Joining acumen4 now..

Disconn from acumen4,AUTH-ERR
Auto-Assoc acumen4 chan=9 mode=OPEN SCAN OK
Joining acumen4 now..

Associated!
DHCP: Start

So it seems like it worked, but it did not, because I send show net and get this in response (e.g. DHCP failed):

SSid=acumen4
Chan=9
Assoc=OK
Rate=12, 24Mb
Auth=OK
Mode=OPEN
DHCP=FAIL
Boot=0
Time=OK
Links=1
<2.20>

Here are the results of get everything for reference:

WiFly Ver 2.20, 05-25-2010
Beacon=100
Probe=60
OPEN=*OPEN*
CLOSE=*CLOS*
REMOTE=*HELLO*
FlushSize=900
MatchChar=0
FlushTimer=10
IdleTimer=0
CmdChar=$
IF=DOWN
DHCP=ON
IP=0.0.0.0:2000
NM=0.0.0.0
GW=0.0.0.0
HOST=0.0.0.0:2000
PROTO=TCP,
MTU=1460
FLAGS=0x7
BACKUP=0.0.0.0
DNS=0.0.0.0
Name=server1
Backup=backup2
FTP=208.109.78.34:21
File=wifly-GSX.img
User=roving
Pass=Pass123
SSID=acumen4
Chan=0
ExtAnt=0
Join=1
Auth=OPEN
Mask=0x1fff
Rate=12, 24 Mb
Linkmon=0
Passphrase=rubygirl
SleepTmr=0
WakeTmr=0
Trigger=0x1
Autoconn=0
IoFunc=0x0
IoMask=0x20f0
PrintLvl=0x1
TimeEna=0
TIMEADR=129.6.15.28:123
Zone=7
Baudrate=115200
Flow=0x0
Mode=0x0
JoinTmr=1000
Replace=0x24
DeviceId=WiFly-GSX
Password=
Format=0x0
Sensors=0x0
BCAST=255.255.255.255:55555
Interval=0x7
<2.20>

I’ve tried factory reset - did not work.

So what am I missing here?

rgelb:
I am having trouble connecting the WiFly board to local WiFi network. I’ve tried it with security turned on (WPA2) and with it turned off, I keep getting Disconn from acumen4,AUTH-ERR. I am hoping someone can spot something. Here are results of a scan:

SCAN:Found 1

Num SSID Ch RSSI Sec MAC Address Suites
1 acumen4 09 -59 Open 00:0c:41:c2:56:c0 2104 0

The “Open” implies there is no password/phrase required.

Then I say: join acumen4. I get this in response:

Auto-Assoc acumen4 chan=9 mode=OPEN SCAN OK

Joining acumen4 now…
<2.20>
Disconn from acumen4,AUTH-ERR

Is there MAC-based access control in use on your Access Point?

I would suggest looking at your Access Point logs for an error message.

Disconn from acumen4,AUTH-ERR

Auto-Assoc acumen4 chan=9 mode=OPEN SCAN OK
Joining acumen4 now…

Associated!
DHCP: Start




So it seems like it worked, but it did not, because I send *show net* and get this in response (e.g. DHCP failed):

Does your router list the WiFly module as successfully connected?

What model WiFi Access Point do you have?

–Philip;

The “Open” implies there is no password/phrase required.

Correct. As I mentioned I tried it with security and without. All the logs I posted were tried when I turned off security on the router.

Is there MAC-based access control in use on your Access Point?

No.

Does your router list the WiFly module as successfully connected?

I'll have a look at it tonight and will update the answer.

What model WiFi Access Point do you have?

Just your standard Linksys WG54 wireless router.

So I checked the router and, no, it does not show the WiFly module as being connected.

I also checked the router logs, but it only shows incoming and outgoing data requests, not connection requests, so nothing from the WiFly module.

One thing that I don’t get is why I am getting an authorization error when trying to connect to a network with no security:

Disconn from acumen4,AUTH-ERR

Another thing that is suspect to me (but keep in mind, i am a noob) are the following settings (when I hit get everything):

User=roving
Pass=Pass123
Passphrase=rubygirl

Should I set these settings (i am assuming these are defaults) to empty, since the network is empty? If so, how do I set them to empty?

Ok, the good news is that I got it working.

First, I happened upon a fella with a similar problem (viewtopic.php?f=13&t=24408), who suggested that bad grounding on the WiFly cards cause RF interference. So I moved the WiFly card as far away from the parent device as I could (few inches) and lo and behold it worked. It connected to a wifi network with NO security.

Then I tried to make it connect to a network with security and it just wouldn’t do it. I kept on getting AUTH-ERR. I tried all types of supported security schemes (as listed in reference guide), but nothing worked. Finally, I nailed it down to my password having a space in it. The ref guide states that spaces should be replaced by $ dollar signs, but this does not work. When I changed the password not to contain spaces, everything worked great.

Hope this helps the next dude.

Thanks for updating us with your solution.

–Philip;

Hi

I’m getting the same symptoms as mentioned here, and in the original post regarding “bad grounding”. Unfortunately I have a WiFly bee so moving it away from the Arduino isn’t such an easy task. I’m also using a Bees shield, from Seeed, in case this detail matters.

I can connect to my notebook in adhoc mode, but no matter if I have security set or open on the my wlan the WiFly cycles through this behavior :

Auto-Assoc CANEFIRE chan=11 mode=WEP SCAN OK
Joining CANEFIRE now..
Disconn from CANEFIRE,AUTH-ERR
Auto-Assoc CANEFIRE chan=11 mode=WEP SCAN OK
Joining CANEFIRE now..
Auto-Assoc CANEFIRE chan=11 mode=WEP SCAN OK
Joining CANEFIRE now..

Is there a way to improve the situation for a WiFly Bee by shielding it, or any other creative means? Happy to try whatever it takes.

Result of get everything :

WiFly Ver 2.30, 10-26-2011 on RN-171
Beacon=100
Probe=5
Reboot=0
OPEN=*OPEN*
CLOSE=*CLOS*
REMOTE=
FlushSize=75
MatchChar=9
FlushTimer=2000
IdleTimer=30
CmdChar=$
IF=DOWN
DHCP=OFF
IP=192.168.34.166:80
NM=255.255.255.0
GW=192.168.34.1
HOST=0.0.0.0:2000
PROTO=TCP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
DNS=161.72.0.0
Name=server1
Backup=backup2
FTP=208.109.78.34:21
File=wifly-EZX.img
User=roving
Pass=Pass123
Dir=public
Timeout=40
FTP_mode=0x0
SSID=CANEFIRE
Chan=0
ExtAnt=0
Join=1
Auth=WEP
Mask=0x1fff
Rate=12, 24 Mb
Linkmon=5
Keynum=1
Key=b2 d4 f6 8b af bd c3 d3 d4 ec 5b 48 64
TxPower=0
SleepTmr=0
WakeTmr=0
Trigger=0x1
Autoconn=1
IoFunc=0x0
IoMask=0x21f0
IoValu=0x0
DebugReg=0x0
PrintLvl=0x1
TimeEna=15
TIMEADR=255.255.255.255:123
Zone=7
Baudrate=9600
Flow=0x0
Mode=0x1
JoinTmr=1000
Replace=0x24
DeviceId=WiFly-EZX
Password=
Format=0x0
Signal=0
Average=5
BCAST=255.255.255.255:55555
Interval=0x7
Sensor=0x0
SensePwr=0x0

The Netgear APs on the home wlan will only bridge & repeat using WEP in case you’re wondering why I’m bothering with that. They’re due to be replaced in a month or so, but can bring that forward too in the unlikely event that’s contributing to this issue.

Thanks for any advice you can offer,

Geoff

FYI replacing the Netgear 11G AP’s which were running WEP with a new 11N setup running WPA2 has resolved this issue.