admin 管理员组

文章数量: 887021

windows电池检测代码

Whether it’s a low battery or a faulty battery, Windows a good job alerting you to laptop battery issues. But how exactly does it detect problems? Read on as we investigate.

无论是电池电量不足还是电池故障,Windows都可以很好地提醒您笔记本电脑电池问题。 但是,它如何准确地发现问题? 在我们进行调查时请继续阅读。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

问题 (The Question)

SuperUser reader Cam Jackson is curious how his Windows 7 laptop knows the battery is going bad:

超级用户读者Cam Jackson好奇他的Windows 7笔记本电脑如何知道电池即将耗尽:

I have a laptop that’s a little over 5 years old, and I’ve never changed the battery, so I believe Windows 7 when it tells me “there is a problem with your battery”, and to consider replacing it.

我有一台使用了5年多的笔记本电脑,而且我从未更换过电池,因此我相信Windows 7会告诉我“电池有问题”,并考虑更换电池。

My question is: how does it detect a dodgy battery? Does the battery not have the same voltage that it used to?

我的问题是:它如何检测电池不可靠? 电池的电压与以前不同吗?

How indeed?

确实如何?

答案 (The Answers)

SuperUser contributor Tonny explains:

超级用户贡献者Tonny解释说:

Laptop batteries have a small chip inside that controls/monitors the charging process and also monitors the number of charge/recharge cycles.

笔记本电脑电池内部有一块小芯片,可以控制/监视充电过程,还可以监视充电/充电循环次数。

This chip is factory programmed with information how this sort of battery typically degrades over time.

该芯片在出厂时已编程了有关此类电池通常如何随时间退化的信息。

It also can derive information from the charging cycle itself: The time it takes to reach full-charge at a given voltage/current changes when the battery gets worn out.

它还可以从充电周期本身获取信息:在给定的电压/电流下达到完全充电所花费的时间会随着电池的磨损而改变。

(Voltage drop during discharge is not reliable as it depends a lot on the amount of current drawn while discharging, so it varies with the use-pattern of the laptop.)

(放电过程中的电压降并不可靠,因为它很大程度上取决于放电时汲取的电流量,因此随笔记本电脑的使用方式而变化。)

Windows communicates with this chip to get information about the battery health.

Windows与该芯片通信以获取有关电池运行状况的信息。



Have something to add to the explanation? Sound off in the the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不对。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。

翻译自: https://www.howtogeek/169541/how-does-windows-detect-battery-problems/

windows电池检测代码

本文标签: 电池 代码 Windows