Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Reading temperature values

Reading temperature values

Scheduled Pinned Locked Moved C#
csharpquestioncomhelptutorial
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tim Wuytens
    wrote on last edited by
    #1

    Hi everyone, I'm working on a monitoring app in C# and would like to retrieve the temperatures of various sensors on my motherboard. I'm specifically interested in the CPU and motherboard temperature sensors. My first thought was to use WMI to read these values. I've tried the Win32_TemperatureProbe table among others, but the CurrentReading prop is not populated. (More info see MSDN article here) I've found that the sensors should be accessible through the SMBUS on the mainbord. So my question to the community: Does anyone know how to read CPU and mainbord temp sensors? Or can you help me to gain access to the SMBus? I've been told these values should be quite easy to read using some low-level bios access (using assembly), but I'm looking for a way to get these values using C# and .NET 2.0 framework. Any help would be greatly appreciated! Thanks in advance! Tim Wuytens

    G H 2 Replies Last reply
    0
    • T Tim Wuytens

      Hi everyone, I'm working on a monitoring app in C# and would like to retrieve the temperatures of various sensors on my motherboard. I'm specifically interested in the CPU and motherboard temperature sensors. My first thought was to use WMI to read these values. I've tried the Win32_TemperatureProbe table among others, but the CurrentReading prop is not populated. (More info see MSDN article here) I've found that the sensors should be accessible through the SMBUS on the mainbord. So my question to the community: Does anyone know how to read CPU and mainbord temp sensors? Or can you help me to gain access to the SMBus? I've been told these values should be quite easy to read using some low-level bios access (using assembly), but I'm looking for a way to get these values using C# and .NET 2.0 framework. Any help would be greatly appreciated! Thanks in advance! Tim Wuytens

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Maybe this can help you: http://www.codeproject.com/csharp/unmanage.asp[^]

      #region signature my articles #endregion

      T 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        Maybe this can help you: http://www.codeproject.com/csharp/unmanage.asp[^]

        #region signature my articles #endregion

        T Offline
        T Offline
        Tim Wuytens
        wrote on last edited by
        #3

        Thank you! This could indeed be helpful! This article explains how to execute assembly code from c#, however I don't know any assembly myself. Can anyone point me to some information to read the sensors with assembly? Thanks! Tim Wuytens

        G 1 Reply Last reply
        0
        • T Tim Wuytens

          Thank you! This could indeed be helpful! This article explains how to execute assembly code from c#, however I don't know any assembly myself. Can anyone point me to some information to read the sensors with assembly? Thanks! Tim Wuytens

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          No I don't know :( This might give you a little bit more information http://www.thescripts.com/forum/thread382910.html

          #region signature my articles #endregion

          1 Reply Last reply
          0
          • T Tim Wuytens

            Hi everyone, I'm working on a monitoring app in C# and would like to retrieve the temperatures of various sensors on my motherboard. I'm specifically interested in the CPU and motherboard temperature sensors. My first thought was to use WMI to read these values. I've tried the Win32_TemperatureProbe table among others, but the CurrentReading prop is not populated. (More info see MSDN article here) I've found that the sensors should be accessible through the SMBUS on the mainbord. So my question to the community: Does anyone know how to read CPU and mainbord temp sensors? Or can you help me to gain access to the SMBus? I've been told these values should be quite easy to read using some low-level bios access (using assembly), but I'm looking for a way to get these values using C# and .NET 2.0 framework. Any help would be greatly appreciated! Thanks in advance! Tim Wuytens

            H Offline
            H Offline
            Hessam Jalali
            wrote on last edited by
            #5

            you can collect such datas through ACPI I recommend to see NHC (Notebook Hardware Control) however it's for notebooks but I installed it on my Desktop and it works! atleast get voltage values and temps http://www.pbus-167.com/nhc/nhc_advanced.htm[^] good luck

            D 1 Reply Last reply
            0
            • H Hessam Jalali

              you can collect such datas through ACPI I recommend to see NHC (Notebook Hardware Control) however it's for notebooks but I installed it on my Desktop and it works! atleast get voltage values and temps http://www.pbus-167.com/nhc/nhc_advanced.htm[^] good luck

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #6

              DO you know if the developer has managed to get a version working in Vista yet?

              -- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer

              H 1 Reply Last reply
              0
              • D Dan Neely

                DO you know if the developer has managed to get a version working in Vista yet?

                -- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer

                H Offline
                H Offline
                Hessam Jalali
                wrote on last edited by
                #7

                The latest version works well on vista I installed it On Dell XPS -Vista Home Premium (the bugfix version) http://www.p35-forum.de/files/nhc_2.0_pre_release_06_dell.zip[^]

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups