树莓派 CPU 温度 [英] Raspberry Pi CPU Temp
问题描述
我有一个运行 Windows 10 IoT Core 的 Raspberry Pi 3.我的问题是;是否有可能,或者有没有办法通过远程 PowerShell 连接、在设备上的命令行控制台本地监控设备的 CPU 温度,或者如果在设备上使用 C# 部署的应用程序所有其他方法都失败了?>
我承认自己是 C# 菜鸟,因此这是我的第三个选择.
为什么?...我打算用乐高积木为一堆设备构建一个定制外壳,并想评估我是否需要购买一堆散热器和冷却风扇等.
非常感谢您的时间和帮助.
我希望这可以引导您走上正轨.
为了访问 IoT SDK 或 PowerShell 客户端未提供的低级 BCM2836 外围设备,您需要编写自己的驱动程序.
您可以遵循 https://github.com/ms 中的代码示例-iot/bsp/tree/master/drivers,它是在 WDK 框架下编写的,因此您需要熟悉它才能开始使用.
我猜你最终会得到类似于驱动程序样本下的那些样本之一.
完成后,按照本教程部署驱动程序https://developer.microsoft.com/en-us/windows/iot/win10/samples/driverlab3
我不是 100% 确定这是正确的方法,但如果有人可以纠正我或指出更好的解决方案,我会非常乐意从中学习.
I have a Raspberry Pi 3 running Windows 10 IoT Core. My question is; would it be possible, or is there a way to monitor the CPU temperature of the device either via a remote PowerShell connection, locally on the device in the command line console or if all else fails using a C# deployed app on the device?
I confess to being a C# noob, hence it being my third option.
Why?... I'm planning on building a custom case out of Lego for a stack of several devices and want to assess whether I need to purchase a bunch of heat sinks and cooling fans etc.
Many thanks for your time and assistance.
I hope this can guide you to the right track.
In order to access to low-level BCM2836 peripherals that the IoT SDK or PowerShell client does not provide, you'll need to write your own drivers.
You can follow the code samples from https://github.com/ms-iot/bsp/tree/master/drivers, it's written under WDK framework so you'll need to get yourself familiar with that in order to get started.
I guess eventually you'll end up with something like one of those samples under the drivers sample.
When you're done, deploy your driver follow this tutorial https://developer.microsoft.com/en-us/windows/iot/win10/samples/driverlab3
I'm not 100 percent sure this is the right way to go, but if someone could correct me or point out a better solution, I would be more than happy to learn from it.
这篇关于树莓派 CPU 温度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!