[Raspberry Pi 2]_讀取Raspberry Pi 溫度
RPi有個強大的硬體監看指令位於
/opt/vc/bin/vcgencmd
可以帶一些參數去得到一些硬體資料,例如
/opt/vc/bin/vcgencmd measure_temp
你就可以讀取在CPU CORE的temp sensor 溫度
好奇比了一下RPi 第一代初代版跟RPi 2的差別:
同一個環境,同時測,兩片都是裸機未裝殼,沒貼散熱片
Pi2在compile SPICE(晚點會發),Pi1裝著volumio透過區網撥歌
所以不是很公平,Pi2其實使用率低於Pi1(也有歸功於多核),但就是一個示範 😛
另外不是只有這麼單純而已
可以參考:
http://elinux.org/RPI_vcgencmd_usage
pi@raspberrypi2 ~ $ /opt/vc/bin/vcgencmd commands commands="vcos, ap_output_control, ap_output_post_processing, vchi_test_init, vchi_test_exit, pm_set_policy, pm_get_status, pm_show_stats, pm_start_logging, pm_stop_logging, version, commands, set_vll_dir, led_control, set_backlight, set_logging, get_lcd_info, set_bus_arbiter_mode, cache_flush, otp_dump, test_result, codec_enabled, get_camera, get_mem, measure_clock, measure_volts, scaling_kernel, measure_temp, get_config, hdmi_ntsc_freqs, hdmi_adjust_clock, hdmi_status_show, hvs_update_fields, pwm_speedup, force_audio, hdmi_stream_channels, hdmi_channel_map, display_power, read_ring_osc, memtest, get_rsts, render_bar, disk_notify, inuse_notify, sus_suspend, sus_status, sus_is_enabled, sus_stop_test_thread, egl_platform_switch, mem_validate, mem_oom, mem_reloc_stats, file, vctest_memmap, vctest_start, vctest_stop, vctest_set, vctest_get"
自己到處玩玩吧~
thx for:
http://www.raspberrypi.org/forums/viewtopic.php?f=91&t=34994
Leave a comment 取消回覆
很抱歉,必須登入網站才能發佈留言。