WinCE中掉电如何处理?
我有一个通过以太网 (PoE) 供电的 WinCE 设备,我想防止潜在断电(例如用户拔掉插头)后文件系统损坏。
附带说明一下,我已经在使用 TexFAT,它应该可以防止 FS 损坏。虽然后者确实有助于减少 FS 损坏(相对于使用普通的旧 FAT),但它并不能完全防止某些损坏时不时发生...因此,我正在考虑使用小型可充电备用电池,这将使 WinCE有足够的时间彻底关闭。现在,我找不到有关关闭过程的任何信息:如何触发它、需要多长时间等等……MSDN 在这个主题上相当安静。有什么想法吗?
I've got a WinCE device powered over ethernet (PoE) and I want to prevent File-System corruption following a potential power loss, e.g. user pulling the plug.
As a side note, I'm already using TexFAT which is supposed to prevent FS corruptions. While the later certainly does help reducing FS corruptions (over using plain old FAT), it doesn't entirely prevent some to still occur from time to time... So, I'm considering using a small rechargeable backup battery that would give WinCE enough time to cleanly shut down. Now, I can't find any info on the shutdown process: how to trigger it, how long it takes, and so on... MSDN is pretty quiet on this topic. Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
断电顺序完全取决于平台。
以下答案与 Windows CE 6 相关。对于以前版本的 CE 可能有所不同。
如果您包含 电源管理器系统中的组件,则序列是加减:
刚刚找到 Bruce Eitman 发表的一篇关于 挂起时发生。他说得比我好。
暂停序列是您在断电之前要做的事情。
The powerdown sequence is totally platform dependent.
The following answer is relevant to Windows CE 6. It may be different for previous versions of CE.
If you include the power manager component in your system, then the sequence is plus minus this:
Just found a post by Bruce Eitman on what happens when Suspending. He puts it better than I do.
The Suspend sequence is what you'd do before loosing power.