particle-iot / spark-setup-ios

(DEPRECATED) Spark device setup library - Soft AP Cocoapod/Carthage lib for iOS
Apache License 2.0
19 stars 25 forks source link

WEP security not supported with Photon #30

Open karlhenricksen opened 8 years ago

karlhenricksen commented 8 years ago

Hi, I have only tried one router that supports WEP-security type so far, Linksys wrt-54g, but when I set that up and attempt to set Photon wifi up on that router using the particle app, it hangs at the "Connect to Wi-Fi network" screen for 2 min, before it throws up the "Oops" screen 3-7 times (this is a secondary issue with the app). Resetting the photon results in a solid / slightly flickering green LED and is unusable. Note there were no issues with connecting to this router with other devices, so I ruled out incorrect login/setup on phones and laptops.

We also see the same failure when we update wifi creds via serial

Steps: 1) set up a router with WEP security - 64 or 128 bit (copy the WEP key) 2) set Photon into blue blinking wifi setup mode 3) connect phone to WEP router using WEP key 4) launch Particle wifi app and walk through steps

Results: 2 min of waiting for Photon to connect followed by 3-7 rapid flashes of the "Oops" screen, then Photon is in steady/flickering green LED mode

HW/SW: Photon system v 0.4.5 Router: Linksys wrt-54GL - WEP 64/128bit Phone: iOS9

particle_connecting particle_oops

karlhenricksen commented 8 years ago

Also, should I open a separate issue for the multiple "Oops" screens that pop up on the app? Would imagine this may be one of the only times you'd see that problem, but it's not pretty.

m-mcgowan commented 8 years ago

@karlhenricksen have you seen this - https://community.particle.io/t/how-to-setup-wep-secured-network-on-the-photon/16026. Does formatting the password help?

karlhenricksen commented 8 years ago

@m-mcgowan yes, that does help thanks, it appears to go through successfully though I do have to reset every time afterwards (FYI https://github.com/spark/firmware/issues/620 - setup with WEP looks to be a consistent way to reproduce that other issue).

Unfortunately this isn't a great solution for the customers that still use WEP (or have no control over their internet connections) since they wouldn't know to do this or have any feedback why their key doesn't work for Photon (though it's fine for other devices), so maybe it's more of an app issue - couldn't that be handled there? Just looking for a reasonable customer solution on this.

pomplesiegel commented 8 years ago

Hey @m-mcgowan, would it then make sense to have spark-setup-ios add the additional WEP formatting to the customer's inputted WEP password?

When a customer enters a WEP password for their computer or smartphone to join a network, they need not add any additional formatting. Shouldn't our WiFi migration app work in the same way?

idokleinman commented 8 years ago

@pomplesiegel I guess we can make the device setup lib format the password for WEP cases. It is not high priority on our backlog tasks currently. You're most welcome to add this code and send a PR.