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.dhcp throws an error #205

Open
jingman opened this issue Nov 11, 2014 · 4 comments
Open

wifi.dhcp throws an error #205

jingman opened this issue Nov 11, 2014 · 4 comments
Assignees
Labels

Comments

@jingman
Copy link
Collaborator

jingman commented Nov 11, 2014

> wifi.dhcp
>>= AT+NDHCP=1
<<= 15
Error: saving WifiModule::instance.bp()->configuration data failed
> 
@jingman
Copy link
Collaborator Author

jingman commented Nov 11, 2014

Rebooting made this go away, but I saw it happen when I was provisioning via HQ as well.

@quartzjer
Copy link
Contributor

Should be re-tested after recent gainspan/SPI updates

@matthijskooijman
Copy link
Collaborator

I don't think the SPI transaction stuff should make a difference here, the Gainspan module is simply returning an error.

The code 15 means "S2W_ENOIP IP configuration has failed. This message also can come asynchronously when there is a DHCP renew fails.". I think that this case is not an asynchronous message, which have a different header and are handled somewhere else. Not sure why simply enabling DHCP can cause a failure. Perhaps it starts DHCP immediately if already associated?

@matthijskooijman
Copy link
Collaborator

Looking at the gainspan firmware source, it actually reconfigure the network when you do wifi.dhcp when still associated (IIRC I previously tested this and it didn't happen, but the code seems to at least do _something _ after saving the config). Perhaps HQ should just do wifi.disassociate before changing the config?

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

No branches or pull requests

3 participants