Digistump Forums
The Digispark => Digispark Pro Support => Topic started by: Bighair on January 04, 2015, 07:05:23 am
-
Hello,
I'm a complete novice when it comes to electronics, etc... so was hoping someone might be able to help me.
I rather stupidly turned off the AP on my Digispark Pro WiFi and am no longer able to access the wireless network I originally configured the shield on. As a result I'm trying to factory reset the WiFi shield, so far I've tried a few things that would seem obvious:
- Short out the "Restore" holes on the Pro WiFI shield
- Connect pin 3 on the USR-WIFI232-T module to GND
- Short out the "Restore" holes on the shield with a 10k and with a 5.6k resistor
- Conducted steps above for less than 3 seconds and for more than 3 seconds
The last three points were tried after reading the WiFi module spec., however, I might have got the process wrong for pull-up resistors etc...
Anyway, the upshot is that I still don't seem to have been able to restore factory settings and bring the AP for the WiFi module up again. Can anyone help me out with this?
-
If I understand the Low Power WiFi Module User Manual correctly, after power up holding pin 3 (nReload) low for more than 3 seconds should restore factory settings.
Check out pages 12-13 of the following user manual. I assume you did this after power up.
http://en.usr.cn/download/USR-WIFI232-T.pdf
-
Removing power, shorting the Restore holes, applying power for 3+ seconds, and then removing power and un-shorting them should do it.
If the Digispark is still able to talk to it via serial then you can also try this sketch:
void setup() {
// put your setup code here, to run once:
delay(10000); //wait a good amount of time for module to connect to wifi - this script assumes it can connect and doesn't check
Serial.begin(9600); //this should match whatever baud rate you set it to //by default it is 115200
wifiFactoryRestore();
}
void loop(){}
void wifiFactoryRestore(){
delay(50);
Serial.write("+++");
if (Serial.find("a")){ // if not then error in entering AT mode - try restoring module and then setting settings again
Serial.write("a");
if (wifiWaitForOK()) // if not then error in entering AT mode
Serial.print(F("AT+RELD\r"));
}
//after this is should reset - wait a few seconds and remove power - then plug back in and connect to wifi network and set up as if first time use
}
bool wifiWaitForOK(){
return Serial.find("k");
}
-
Thanks Gents,
I did try the physical method suggested by digistump with no joy. However, after loading the code onto the pro it popped up as an AP again once I'd done a restart.
Thanks so much for your help.
Matt