WiFly Shield and protected WiFi connection

Hi everyone,
I'm having some problems in setting up the communication between the WiFly Shield and my Dlink Dir301 wlan router.
I'm able to establish the communication only if I use an open WiFi connection.
Using WPA or WPA2 protection the wifly shield disconnects continually :-?
I don't try WEP encription yet.
I followed the tutorial on sparkfun site: "WiFly Wireless Talking SpeakJet Server" and digged a lot from various forum... but without any solution :cry:
Could someone help me?
Thank in advance.

Hi,

Thanks for your question...

I'm having some problems in setting up the communication between the WiFly Shield and my Dlink Dir301 wlan router.

Recently I released an alpha version of an Arduino library for the WiFly would you mind trying it out to see if it solves your problem? I have used it to successfully connect to a WPA-based access point.

I'm able to establish the communication only if I use an open WiFi connection.
Using WPA or WPA2 protection the wifly shield disconnects continually :-?

If your pass phrase is longer than 32 characters there might be a bug that could affect you.

If you decide to troubleshoot with the WiFly library you might want to try the "WiFly_Autoconnect_Terminal" sketch, remove the code that does the actual connection and then try to connect "manually". You could then paste any messages it gives into a forum post. (Removing any passwords. :slight_smile: )

Do you have any MAC address based Access Control Lists in use on the access point? Does the log of the access point give you any error messages?

--Philip;

Dear Philip,
thank you for the reply

Recently I released an alpha version of an Arduino library for the WiFly would you mind trying it out to see if it solves your problem? I have used it to successfully connect to a WPA-based access point.

I've already downloaded your library and I examined your code to understand what commands you are sending to the Wifly. I don't find the command for the authentication of the WPA but only ssid and passphrase.
What are the parameters of your WPA-based access point? (without password :wink: )

If you decide to troubleshoot with the WiFly library you might want to try the "WiFly_Autoconnect_Terminal" sketch, remove the code that does the actual connection and then try to connect "manually". You could then paste any messages it gives into a forum post. (Removing any passwords. Smiley )

Well, I can post many discouraging messages coming from the WiFly. The result is always:

Disconn from DiES,0:6
Disconn from DiES,1:1

DiES is the name of my network :slight_smile:

I tried every combination of authorization (WPA, WPA2, WPA_Mixed) and, looking the tutorial at Sparkfun site, I tried to replicate the same condition but nothing to do.
Then I tried also WEP using 128-bit key sending to WiFly the command:
set wlan key XXXXXXXXXXXXXXXXXXXXXXXXXX
but no solution.

Do you have any MAC address based Access Control Lists in use on the access point? Does the log of the access point give you any error messages?

I see the logs file of the router but there aren't errors.

In the post on sparkfun forum you and other people are speaking about a firmware upgrade of the WiFly module from 2.18 to 2.19 or 2.20. Is it right?

Probably I'll use the WiFly on an open connection.

Let me know what do you think.
Best Regards
Mosè

Does the connection work immediately after connecting but very quickly drops? I've seen this on WPA and certain routers - I believe it's something to do with key renewal. Does your router have an option to increase the renewal time to something much longer?

Finally I was able to connect the WiFly module with a WPAv1 network...
It was the router infact I substitute the Dlink with a Netgear and voilà, the module connected immediatelly.
Thnaks for the suggestions.
Best Regards
Mosè

Hi again,

I'm pleased you managed to get connected. Thanks for taking the time to let us know.

You might want to try upgrading the WiFly module firmware and see if that allows you to connect to your original access point. Some later firmware revisions did fix some problems with certain access points.

Also, note that while the tutorial says need to use "set wlan auth 3" this is not actually the case with the way in which the shield is used.

--Philip;

Hi Philip,

thank you for the indication about the auth command but I missed in the tutorial.

Another question where can I get the firmware to upgrade the wifly module? I visited the Roving network site is it correct? Now it has version 2.18 and I know there is version 2.19 and 2.20.

Thanks in advance.
Mosè