Wifly connection problem

Hi,

I am having problems with my Wifly shield.

I configured the arduino to connect to my Connectify Hotspot but it doesn’t works very well. When I run the program, arduino connects but after a couple of seconds, it disconnects with this error: LOST-AP.

I tried to connect in 4 differents Connectify Hotspots without alter the code but only in one this error does not occour.

Below the Serial Monitor:

$$CMDset w join 0
)6et w Kÿn 

AOKset comm remote 0
ñ&æL³fÏ +£ coþkÿot?þ

AOKset w linkmon 5

<2?æٷٺ w±ÿinkmo«þ

AOKset wlan auth 4

<2É6æ²nÙt wlþ£ÿh 

AOKset comm idle 0

<É6æ²nÙºÿomm i+ÿkÖLX´Ú´Ã?<2.23> set w ssid Connectify-Dantas
+ÿt w Kÿd ½ÿ¹ÿÿtify-sÿtas

AOKset w phrase 12345678
SÆ?f? ?£Ù7ä¡ÿrase ÉþÑþÙþ78

AOKset ip dhcp 1
)Æ?³? ?£Ye÷?ÿÿþ1

AOKsave

<Ë6ÙnØ»e

Storing in configexit
Sþ<2.23> exit

EXIT$$þCMDreboot
#&eb£ÿ

*Reboot*WiFly Ver 2.23, 04-26-2011 on RN-171
MAC Addr=00:06:66:72:15:42
*READY*$$)þCMDjoin Connectify-Dantas
S¦ý¥ÿþCo+ÿctËÿ-Dan?ÿ

Auto-Assoc Connectify-Dantas chan=5 mode=WPA2 SCAN OK
Joining Connectify-Dantas now..
<2.23> Associated!
DHCP: Start
DHCP in 12ms, lease=360000s
IF=UP
DHCP=ON
IP=192.168.204.102:2000
NM=255.255.255.0
GW=192.168.204.1
Listen on 2000$$k¦?ò$Disconn from Connectify-Dantas,LOST-AP

Does anyone know what happening?

Thanks,
Dantas

what library're you using?

I haven’t tried to do this with an Arduino, but the “connecting but not really connecting” behaviour sounds a lot like the symptoms when you get a radio connection OK but are unable to authenticate with the AP.

cantore:
what library’re you using?

I am using Wifly.h