查看: 57|回复: 3

UPS

[复制链接]

4

主题

8

帖子

42

积分

办事员

Rank: 1

积分
42
发表于 2020-9-7 09:09:05 | 显示全部楼层 |阅读模式
Can I set it up to use the UPS so that the OS doesn't suddenly shut down when I unplug the power?
回复

使用道具 举报

8

主题

50

帖子

204

积分

科长

Rank: 3Rank: 3

积分
204
发表于 2020-9-7 11:15:15 | 显示全部楼层
Yes, but 220V UPS usually very big.

May I ask in which case, you need to avoid this case?
Maybe we can suggest other available method to achieve your requirement.
回复

使用道具 举报

4

主题

8

帖子

42

积分

办事员

Rank: 1

积分
42
 楼主| 发表于 2020-9-7 11:52:14 | 显示全部楼层
米米米 发表于 2020-9-7 11:15
Yes, but 220V UPS usually very big.

May I ask in which case, you need to avoid this case?

When I unplug the power, I want to exit the python program and then achieve an OS shutdown.
回复

使用道具 举报

8

主题

50

帖子

204

积分

科长

Rank: 3Rank: 3

积分
204
发表于 2020-9-11 15:42:40 | 显示全部楼层
taniguchi 发表于 2020-9-7 11:52
When I unplug the power, I want to exit the python program and then achieve an OS shutdown.

But even use UPS, still you can't achieve this usecase...

The problem need 1 condition, which is you can get the trigger from software level.
So that you can exit your program and shutdown OS.
But if you unplug the power directly, no trigger can be received.

Usually the case is achieved by a power management unit.
Like you turn off power through a switch on this unit.
And the unit doesn't turn off power directly, it just send out a trigger first, through RS232 etc.
It will wait several seconds, and shutdown the system.

On automotive, similar mechanism is there.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点我注册

本版积分规则


快速回复 返回顶部 返回列表