Ha, good thought! Put a text file in the root directory named "factoryreset.txt" containing "OVMSv3" as a key, stick it in, and power up. Done. Brilliant. It probably should remove said file once the config is cleared, as a fail-safe. Don't want it to act as a poison pill. Only "gotcha" is that finding things that can write to a micro SD card is becoming harder. No to the iPhone. Also my latest Android, though it does have an OTG adapter so I can get there with a USB reader. The ecosystem is trying to force storage to a (paid, data mine-able) cloud, I think, using space and cost savings as a ruse. Greg Mark Webb-Johnson wrote:The other option is SD CARD. Firmware update can work that way. Put an ovms3.bin in the root of an SD card, plug it in, and it will be auto-flashed to update firmware. We could have special files on SD CARD doing certain things. Like safe boot. Factory reset. Wifi AP. etc. Can we write an SD CARD from an iPad? :-) Regards, Mark.
We have two buttons:Yes, something like that. I've worked on products where holding button #2 after releasing #1 would first take the product into a reset-to-defaults mode for about 10 seconds, then if you kept holding it after that, would take you to the downloader.So, only #2 is usable, and that only after boot. I guess we could have a boot delay to allow time for it to be pressed after power up.
- Hardwired RESET. That resets the chip.
- IO0 BOOT. If held during BOOT, that goes into firmware download mode.
Hooking to a PC wouldn't necessarily be easier, but certainly safer. I take it that the buttons on the 3.1 hardware aren't anywhere that can be accessed through a proverbial paper clip-sized hole, nor in such a way that a metal paper clip wouldn't be in danger of hitting something live. Opening my box, I see the 3.0 hardware is not set up that way. The switches would need to be moved to the back side of the board for that, and the holes put in the case. Are we too late?
But, that would require opening up the case to get to the button. Nasty. Plugging it into a PC is probably easier?
I guess we can assume that our customers are at least somewhat technology-literate, and in the event that they lose their AP pass key, a USB serial console might be a reasonable way to reset things. But if the only "PCs" they own are a smart phone and tablet, or in the event that the module is password protected too, use of the buttons would still be required. Or, they can cash in their "phone a friend" token. :) PCs aren't totally obsolete, yet.
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26