Linux上でpcsensorコマンド(http://www.isp-sl.com/pcsensor-0.0.1.tgz)を使って、何度か手動計測をおこなった。
その結果、後述のような感じで出力が得られた。
気になった点
・0.12度~0.13度ぐらいのきざみ幅で上昇している?
・時々取得に失敗している
取得に失敗する点は、まぁ、仕方ない、ということにして、刻み幅の件について、ソースファイルを確認してみた。
・温度取得関連部分
*tempC = temperature * (125.0 / 32000.0);
摂氏に変換する際に、125/32000と実行しているので、刻み幅の0.12~0.13というのは、そこらへんから来ているということでよさそう。
華氏表示については、摂氏で取得した値からコンバートしているだけだった。
(9.0 / 5.0 * tempc + 32.0)
以下は、取得した結果。
# ./pcsensor 2012/12/26 14:37:52 Temperature 74.75F 23.75C # ./pcsensor 2012/12/26 14:37:53 Temperature 74.75F 23.75C # ./pcsensor 2012/12/27 14:16:06 Temperature 74.30F 23.50C # ./pcsensor 2012/12/27 14:16:08 Temperature 74.30F 23.50C # ./pcsensor 2012/12/27 14:16:19 Temperature 74.75F 23.75C # ./pcsensor 2012/12/27 14:16:21 Temperature 74.75F 23.75C # ./pcsensor 2012/12/27 14:16:24 Temperature 74.75F 23.75C # ./pcsensor USB interrupt read: Resource temporarily unavailable Fatal error> USB read failed # ./pcsensor 2012/12/27 14:16:28 Temperature 75.88F 24.38C # ./pcsensor 2012/12/27 14:16:30 Temperature 76.33F 24.62C # ./pcsensor 2012/12/27 14:16:32 Temperature 76.78F 24.88C # ./pcsensor 2012/12/27 14:16:34 Temperature 77.22F 25.12C # ./pcsensor 2012/12/27 14:16:36 Temperature 77.90F 25.50C # ./pcsensor 2012/12/27 14:16:39 Temperature 78.58F 25.88C # ./pcsensor 2012/12/27 14:16:44 Temperature 79.70F 26.50C # ./pcsensor 2012/12/27 14:16:50 Temperature 80.60F 27.00C # ./pcsensor 2012/12/27 14:16:52 Temperature 81.05F 27.25C # ./pcsensor 2012/12/27 14:16:58 Temperature 81.95F 27.75C # ./pcsensor 2012/12/27 14:17:01 Temperature 82.18F 27.88C # ./pcsensor 2012/12/27 14:17:03 Temperature 82.62F 28.12C # ./pcsensor 2012/12/27 14:17:09 Temperature 83.08F 28.38C # ./pcsensor 2012/12/27 14:17:10 Temperature 83.30F 28.50C # ./pcsensor 2012/12/27 14:17:12 Temperature 83.53F 28.62C # ./pcsensor USB interrupt read: Resource temporarily unavailable Fatal error> USB read failed # ./pcsensor Couldn't find the USB device, Exiting # ./pcsensor 2012/12/27 14:17:20 Temperature 84.20F 29.00C # ./pcsensor 2012/12/27 14:17:23 Temperature 84.43F 29.12C # ./pcsensor 2012/12/27 14:17:25 Temperature 84.65F 29.25C # ./pcsensor 2012/12/27 14:17:29 Temperature 84.88F 29.38C # ./pcsensor 2012/12/27 14:17:30 Temperature 85.10F 29.50C # ./pcsensor 2012/12/27 14:17:36 Temperature 85.33F 29.62C # ./pcsensor 2012/12/27 14:17:38 Temperature 85.55F 29.75C # ./pcsensor 2012/12/27 14:17:47 Temperature 86.00F 30.00C # ./pcsensor 2012/12/27 14:17:49 Temperature 86.22F 30.12C # ./pcsensor 2012/12/27 14:17:50 Temperature 86.22F 30.12C # ./pcsensor 2012/12/27 14:17:52 Temperature 86.45F 30.25C # ./pcsensor 2012/12/27 14:17:54 Temperature 86.45F 30.25C # ./pcsensor 2012/12/27 14:17:56 Temperature 86.45F 30.25C # ./pcsensor 2012/12/27 14:17:58 Temperature 86.68F 30.38C # ./pcsensor 2012/12/27 14:18:03 Temperature 86.90F 30.50C # ./pcsensor USB interrupt read: Resource temporarily unavailable Fatal error> USB read failed # ./pcsensor 2012/12/27 14:18:07 Temperature 87.12F 30.62C # ./pcsensor 2012/12/27 14:18:08 Temperature 87.12F 30.62C # ./pcsensor 2012/12/27 14:18:13 Temperature 87.35F 30.75C # ./pcsensor 2012/12/27 14:18:16 Temperature 87.58F 30.88C # ./pcsensor 2012/12/27 14:18:20 Temperature 87.58F 30.88C # ./pcsensor 2012/12/27 14:18:22 Temperature 87.80F 31.00C # ./pcsensor 2012/12/27 14:18:23 Temperature 87.80F 31.00C # ./pcsensor 2012/12/27 14:18:24 Temperature 87.80F 31.00C # ./pcsensor 2012/12/27 14:18:25 Temperature 87.80F 31.00C # ./pcsensor 2012/12/27 14:18:32 Temperature 88.03F 31.12C # ./pcsensor 2012/12/27 14:18:35 Temperature 88.25F 31.25C # ./pcsensor 2012/12/27 14:18:36 Temperature 88.25F 31.25C # ./pcsensor 2012/12/27 14:18:38 Temperature 88.25F 31.25C # ./pcsensor 2012/12/27 14:18:40 Temperature 88.47F 31.38C # ./pcsensor 2012/12/27 14:18:41 Temperature 88.47F 31.38C # # ./pcsensor USB interrupt read: Resource temporarily unavailable Fatal error> USB read failed # ./pcsensor Couldn't find the USB device, Exiting # ./pcsensor 2012/12/27 14:18:45 Temperature 88.47F 31.38C # # ./pcsensor 2012/12/27 14:18:47 Temperature 88.47F 31.38C # # ./pcsensor 2012/12/27 14:18:48 Temperature 88.70F 31.50C # # ./pcsensor 2012/12/27 14:18:53 Temperature 88.70F 31.50C # ./pcsensor 2012/12/27 14:18:55 Temperature 88.70F 31.50C # ./pcsensor 2012/12/27 14:18:56 Temperature 88.70F 31.50C # ./pcsensor 2012/12/27 14:18:56 Temperature 88.70F 31.50C # ./pcsensor 2012/12/27 14:18:57 Temperature 88.93F 31.62C # ./pcsensor 2012/12/27 14:18:59 Temperature 88.93F 31.62C # ./pcsensor 2012/12/27 14:18:59 Temperature 88.93F 31.62C # ./pcsensor 2012/12/27 14:19:00 Temperature 88.93F 31.62C # ./pcsensor 2012/12/27 14:19:06 Temperature 88.93F 31.62C # ./pcsensor 2012/12/27 14:19:08 Temperature 89.15F 31.75C # ./pcsensor 2012/12/27 14:19:16 Temperature 89.15F 31.75C # ./pcsensor 2012/12/27 14:19:18 Temperature 89.15F 31.75C # ./pcsensor USB interrupt read: Resource temporarily unavailable Fatal error> USB read failed # ./pcsensor Couldn't find the USB device, Exiting # ./pcsensor 2012/12/27 14:19:22 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:28 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:29 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:30 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:31 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:31 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:33 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:34 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:35 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:35 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:36 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:37 Temperature 89.38F 31.88C # ./pcsensor 2012/12/27 14:19:37 Temperature 89.60F 32.00C # ./pcsensor 2012/12/27 14:19:38 Temperature 89.60F 32.00C #
“USB温度計で測定してみたメモ” への1件の返信