Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFi Configuration Limited to 32 Characters #33

Open
VertigoRay opened this issue Jul 3, 2015 · 5 comments
Open

WiFi Configuration Limited to 32 Characters #33

VertigoRay opened this issue Jul 3, 2015 · 5 comments

Comments

@VertigoRay
Copy link

It's hard to explain exactly what I mean. Basically, I can configure the SSID and relevant settings in the Constants.h file. Unfortunately, the setting doesn't work with a passphrase longer than 32 digits long. The WiFly docs (Section 2.3.81) says that a passphrase from 1-64 characters is allowed.

  • I have seen where the setting looks correct when I do wlan get, but doesn't connect.
    • My passphrase is 33 characters long.
    • I've even tried with a passphrase that's 45 characters long. Same result.
  • After a while (I check back the next day), the wlan get command returns the truncated (32 characters) passphrase.
    • My passphrase is 33 characters long - returns the first 32 characters.
    • I've even tried with a passphrase that's 45 characters long - returns the first 32 characters.

I have tried setting the passphrase via wlan set phrase abcdefghijklmnopqrstuvwxyz1234567, but it only works for a limited time, if it works at all; I have seen mixed results.

I have dug through the code and nothing jumps out at me that would truncate the passphrase.

Right now, I'm using a Guest SSID (same router) with a 20 character passphrase and v0.9.1 has been very stable. I should note that I have no issues connecting to my Main SSID with a 33 character passphrase on any other devices; including: Win 8.1, Android, Nexus Player, ChromeCast, Samsung E750, OS X, and iOS.

Check out my forum discussion with myself for more insight on what I've done thus far:
https://forum.smartcitizen.me/index.php?p=/discussion/comment/1375/#Comment_1375

@pral2a
Copy link
Member

pral2a commented Jul 3, 2015

Thanks for reporting the issue!

We currently found the WiFly SSID limitation is in fact 32 characters, nothing can be done there, this will require Microchip to release a new firmware.

We will add a validation in our on-line configuration tool at smartcitizen.me and documented in docs.smartcitizen.me

Just going in details the WiFly commands are limited to 64 bytes long. This means that set wlan ssid gets 14 characters and the next 50 remain for the SSID. However the WiFly is then limiting the SSID addressing to 32 bytes and the rest goes out. This can even get more confusing when using the SCK command line (###) because the settings are stored in the SCK EEPROM and data is not send to the WiFly till the connection starts. We will work to add some warning on this, too. You can read more about the SCK command line here.

@VertigoRay
Copy link
Author

Thank you for the prompt response, @pral2a. I was wondering if it was a bug on the WiFly side.

I don't know if you've submitted a ticket with Microchip yet, but I went ahead and submitted one.

Thanks!

@VertigoRay
Copy link
Author

As a followup, by ticket was marked resolved with the following response:

Hello Raymond,

Thank you for your feedback. I will forward this to the wireless product division. The division will look into this issue.

Thanks and regards,
Parthiv

@johnjohndoe
Copy link

I am not sure this is related: I experienced that the last character of 18 characters long WLAN SSID switched to another character after restarting the device.

@pral2a
Copy link
Member

pral2a commented Aug 29, 2015

Thanks for reporting @johnjohndoe

We'll have it a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants