c++ - How to read the temperature from sensors on the motherboard? -


trying temperature of processor.

have tried using wql (wmi class msacpi_thermalzonetemperature), apparently not implemented platforms yet. on of machines returns every existing error message via hresult return value. temperature not returned.

the idea read temperature directly via bus port. have found library, gives functionality of outp , inp functions, , managed start initiate connection (ntport), however, question becomes port connect in order read data. microcontroller it8728f. speedfan (the application able read temperature) in logs says reads data port 0x290. however, when connecting it, data comes not temperature (it returns 29).

so next thing tried read whatever port, trying determine if data came through looked temperature. however, every port data came through either low or high real temperature.

int cpu_temp; outp(index, bank_set); outp(data, inp(data)|0x01); for(cpu_temp=0x0;cpu_temp<0x999;cpu_temp++) {   outp(index, cpu_temp);   printf("cpu temp: %ic\n", inp(data)); } 

maybe processor 29 degrees celsius , stable. seems legit processor.

also: 0x00000029 or dec 29? makes big difference


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -