Digistump Forums

The Digispark => Digispark Pro Support => Topic started by: Bighair on January 04, 2015, 07:05:23 am

Title: Digispark Pro WiFi Factory Reset
Post 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:
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?
Title: Re: Digispark Pro WiFi Factory Reset
Post by: exeng on January 04, 2015, 06:06:26 pm
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
Title: Re: Digispark Pro WiFi Factory Reset
Post by: digistump on January 04, 2015, 09:20:35 pm
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:
Code: [Select]
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");
}
Title: Re: Digispark Pro WiFi Factory Reset
Post by: Bighair on January 06, 2015, 12:30:45 pm
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