-
Notifications
You must be signed in to change notification settings - Fork 513
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
Restore the default WICED country to Japan #1014
Conversation
Doesn't Japan have an extra channel, when compared to the US ? You may need to ensure that the device never transmits outside the US band On Wed, Jun 1, 2016 at 10:01 AM, Julien Vanier [email protected]
Andy |
I'll need to have someone else weigh in on the regional differences in WiFi. My intent here was to bring the default behavior back to the same one as previous firmware versions. One thing that could help would be asking the country where the device will be used during setup (mobile and CLI) to ensure development kits don't transmit outside the allowed range. |
It may be that the WICED behaviour is designed to be the most restrictive - On Wed, Jun 1, 2016 at 1:07 PM, Julien Vanier [email protected]
Andy |
f080f42
to
bf7a49b
Compare
I propose a new default country code that is safe. The code will be 'AAA' for access all areas.
If the user then actually sets a real country code for the wifi setup, then it will use the channels available to that country. E.g. JP2 will select channels 1-14 for both STA and AP mode. Selecting US will use only channels 1-11 for both modes. The rationale behind the new 'AAA' country is that it is backwards compatible with the previous behavior. |
Can you clarify Mat? We now have 2 country codes: the Particle DCT country code and the WICED DCT country code. Which one would be set to AAA and what would be the impact? |
Sure - I was writing on a noisy train so possibly not expressing myself clearly as I'd like. On re-reading your proposal, it makes a lot of sense, and solves all the issues at hand. (and essentially codifies the AAA mode I had in mind, so our thoughts are two sides of the same coin!) The only fly in the ointment will come when we expose AP mode and then we have to distinguish between a "real" setting of JP2 and a default setting, and for the default setting, restrict the channels that can be assigned to the AP mode. |
True that. Maybe we can defer the default WICED country code change to a later version where the changes of someone downgrading a remote device from say 1.0.0 to 0.5.0 is less likely. |
Proposal to make the WiFi country behavior backwards compatible with previous firmware versions.
For the country code, we can leave the default country code sent to WICED as JP2 (used in firmware <= 0.5.0). If someone explicitly sets the country code in the Particle DCT section, then we send that to WICED and if that country is Japan we decrease the power.
<0.5.1 to 0.5.2 (upgrade)
0.5.1 to 0.5.2 (upgrade)
0.5.2 to 0.5.0 (downgrade)
0.5.2 to 0.5.1 (downgrade)
This would also solve the credentials loss during downgrade, unless the user explicitly sets anything other than
JP2
,0x00
, or0xff
( such asGB0
orUS4
).Doneness: