简体   繁体   English

Raspberry Pi CPU Temp

[英]Raspberry Pi CPU Temp

I have a Raspberry Pi 3 running Windows 10 IoT Core. 我有一个运行Windows 10 IoT核心的Raspberry Pi 3。 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? 是否有可能,或者有没有办法通过远程PowerShell连接监控设备的CPU温度,在命令行控制台的设备上本地监控设备的CPU温度,或者是否所有其他设备都在设备上使用C#部署的应用程序失败?

I confess to being a C# noob, hence it being my third option. 我承认自己是C#noob,因此这是我的第三选择。

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. 为什么?...我打算用Lego为一堆几个设备制作一个定制外壳,并想评估我是否需要购买一堆散热器和散热风扇等。

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. 要访问IoT SDK或PowerShell客户端未提供的低级BCM2836外围设备,您需要编写自己的驱动程序。

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. 您可以按照https://github.com/ms-iot/bsp/tree/master/drivers中的代码示例进行操作,它是在WDK框架下编写的,因此您需要熟悉它才能开始使用。

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 完成后,按照本教程部署驱动程序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. 我不是百分百肯定这是正确的方法,但如果有人能够纠正我或指出更好的解决方案,我会非常乐意从中吸取教训。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM