Author Topic: Digispark Pro WiFi Factory Reset  (Read 4756 times)

Bighair

  • Newbie
  • *
  • Posts: 2
Digispark Pro WiFi Factory Reset
« 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?

exeng

  • Sr. Member
  • ****
  • Posts: 454
Re: Digispark Pro WiFi Factory Reset
« Reply #1 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

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Digispark Pro WiFi Factory Reset
« Reply #2 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");
}

Bighair

  • Newbie
  • *
  • Posts: 2
Re: Digispark Pro WiFi Factory Reset
« Reply #3 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