Saved settings preventing reconnection?
Posted: Thu Oct 23, 2014 10:49 pm
Hi,
I've developed some custom firmware for a project I'm working on which automatically connects to a defined wireless network and communicates with other machines as both a client and a server. So far it's working really well and does everything I need it to, but for one problem.
Once the chipset has connected to the network one time, after a power cycle it is never able to reconnect, or even do things like list access points. In fact, in order to get it working at all, I need to reflash the firmware with firmware which resets the complete flash memory (not just the 0x00000 and 0x40000 blocks). Because of this, I'm lead to believe that one of the commands (wifi_station_connect) sets a flag in the flash memory which needs to be cleared in order for those other commands again. I guess this is probably done internally by wifi_station_disconnect, but if the power is lost before that command is called, trying to issue the command fails.
Has anyone else experienced this/have any idea how to clear this flag? The only thing missing from the system I've developed is it's unable to reconnect in the event of lost power.
Cheers
I've developed some custom firmware for a project I'm working on which automatically connects to a defined wireless network and communicates with other machines as both a client and a server. So far it's working really well and does everything I need it to, but for one problem.
Once the chipset has connected to the network one time, after a power cycle it is never able to reconnect, or even do things like list access points. In fact, in order to get it working at all, I need to reflash the firmware with firmware which resets the complete flash memory (not just the 0x00000 and 0x40000 blocks). Because of this, I'm lead to believe that one of the commands (wifi_station_connect) sets a flag in the flash memory which needs to be cleared in order for those other commands again. I guess this is probably done internally by wifi_station_disconnect, but if the power is lost before that command is called, trying to issue the command fails.
Has anyone else experienced this/have any idea how to clear this flag? The only thing missing from the system I've developed is it's unable to reconnect in the event of lost power.
Cheers