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 / C++ / MFC
  4. Reading CPU Temperature (including each core temperature) without third party tools

Reading CPU Temperature (including each core temperature) without third party tools

Scheduled Pinned Locked Moved C / C++ / MFC
asp-nethardwarealgorithmstools
6 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.
  • A Offline
    A Offline
    ant damage
    wrote on last edited by
    #1

    I'm trying to make a program that reads the temperature from the cpu and then sends it to my arduino duemilanove, where I have a 4 digit 7-segment display. I've been searching for a while but found nothing about reading the temperature from cpu's DTS (Digital Thermal Sensors). I don't want to use CoreTemp or any other related tool. EDIT: By the way, I have a asus n61jq laptop with intel core i7 720QM

    F D 2 Replies Last reply
    0
    • A ant damage

      I'm trying to make a program that reads the temperature from the cpu and then sends it to my arduino duemilanove, where I have a 4 digit 7-segment display. I've been searching for a while but found nothing about reading the temperature from cpu's DTS (Digital Thermal Sensors). I don't want to use CoreTemp or any other related tool. EDIT: By the way, I have a asus n61jq laptop with intel core i7 720QM

      F Offline
      F Offline
      Fareed Rizkalla
      wrote on last edited by
      #2

      http://en.wikipedia.org/wiki/SMbus[^] Well you could check this out!

      A 1 Reply Last reply
      0
      • F Fareed Rizkalla

        http://en.wikipedia.org/wiki/SMbus[^] Well you could check this out!

        A Offline
        A Offline
        ant damage
        wrote on last edited by
        #3

        I'm trying to use __readmsr() intrinsic function to get the temperature, but it keeps giving this error: "Unhandled exception at 0x000000013fd81009 in test.exe: 0xC0000096: Privileged instruction." It seems that rdmsr instruction must be executed in privileged mode. EDIT: Is there any way of switching from user-mode to kernel-mode instead of making a driver?

        modified on Tuesday, August 17, 2010 8:29 AM

        1 Reply Last reply
        0
        • A ant damage

          I'm trying to make a program that reads the temperature from the cpu and then sends it to my arduino duemilanove, where I have a 4 digit 7-segment display. I've been searching for a while but found nothing about reading the temperature from cpu's DTS (Digital Thermal Sensors). I don't want to use CoreTemp or any other related tool. EDIT: By the way, I have a asus n61jq laptop with intel core i7 720QM

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Is the Win32_TemperatureProbe class of any help?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          A 1 Reply Last reply
          0
          • D David Crow

            Is the Win32_TemperatureProbe class of any help?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Man who follows car will be exhausted." - Confucius

            A Offline
            A Offline
            ant damage
            wrote on last edited by
            #5

            It could help but I never worked with WMI, so I will need a example of its use. I've just downloaded the WDK and I will try to read the temperature by making a driver. This could be fun! :D

            J 1 Reply Last reply
            0
            • A ant damage

              It could help but I never worked with WMI, so I will need a example of its use. I've just downloaded the WDK and I will try to read the temperature by making a driver. This could be fun! :D

              J Offline
              J Offline
              JudyL_MD
              wrote on last edited by
              #6

              Using WMI will be much simpler than doing a driver - search CP and you'll find lots of articles on WMI such as Making WMI Queries In C++[^] Judy

              Be wary of strong drink. It can make you shoot at tax collectors - and miss. Lazarus Long, "Time Enough For Love" by Robert A. Heinlein

              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