- Posts: 4402
Setting minimum voltage to write filesystem
- PhracturedBlue
- Topic Author
- Offline
My question is, does it make sense to have this be configurable in the GUI?
For now it is implemented on the configuration page (same place as battery alarm), but I'm not sure this should be easily exposed. It may make more sense for this to be a hidden switch in the tx.ini file that can only be changed via the PC.
Another thing I was considering is to save tx settings immediately after change, rather than waiting till shutdown. This way there would be less likelyhood of losing them. For various reasons, this is harder to do for the model info, though you can force it to save in various ways.
I'm open to opinions about this
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
For my opinion, save Tx settings will be better at exit from menus, Tx Setting and Model Setting, if any changed.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- kcornels
- Offline
- Posts: 15
Please Log in or Create an account to join the conversation.
- kcornels
- Offline
- Posts: 15
Unfortunately it was not reproduceable... .
The Devo8s has been powered from a regulated power supply and I've reduced the voltage step by step.
At first: The displayed voltage did not drop below 3,73 Volt, even if the power supply just delivers 2 V... . The display gets dark, but writing the flash still worked.
Unlike the batteries, the powersupply is capable to deliver 4A without a drop in voltage. Now I will try with batteries... .
Unfortunately here comes the same problem. The displayed voltage does not drow below 3.73 V. So I have no idea from which voltage writing the flash will fail... .
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
if the voltage is too low, then the flash won't erase, or write, so the filesystem won't be corrupted.
If the voltage is high enough everything works fine.
Interesting that the voltage stops reading at 3.7V. I'd have expected a value nearer to 3.0, but likely the adc is attahced in a way that prevents very low voltage readings. I'll need to experiment with it.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I created a critical level at 3.8V. It will save all settings and then lock the flash so that no further writes can happen. It will also pop up a dialog informing you of this.
Of course it has all only been tested in the simulator, but hopefully it will work as desired.
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
- no need to make the min bat level configurable for user
- how about a button to save the settings in the main screen? I do many tests until I am satisfied and sometimes I prefer switching the tx off rather than pulling model*.ini-files from backup. A button would give me full control - maybe still better with a "do you want to save"-dialog when changing models or powering off the tx.
Please Log in or Create an account to join the conversation.
- suvsuv
- Offline
- Posts: 268
u16 PWR_ReadVoltage() { return (5500); }
Please Log in or Create an account to join the conversation.
- Home
- Forum
- General
- General Discussions
- Setting minimum voltage to write filesystem