Debian Codegraph @

README

raw
1 Device-USB-PCSensor-HidTEMPer version 0.04
2 ==========================================
3
4 This module contains an interface to the PCSensor HidTEMPer and PCSensor
5 HidTEMPerNTC temperature sensors. There are also the common functions for the
6 device itself (Device) and the sensors (Sensor) laying the grounds for other
7 HidTEMPer versions to be added later on.
8
9 The current temperature can be returned either using the Celsius
10 scale or the Fahrenheit scale.
11
12 WARNING
13
14 The results returned from this code needs to undergo more testing. If the
15 code used to write to the device is not used with extreme care it may
16 destroy the device.
17
18 TODO
19
20 Please contact me if you find anything to be missing.
21
22 INSTALLATION
23
24 To install this module type the following:
25
26 perl Makefile.PL
27 make
28 make test
29 make install
30
31 DEPENDENCIES
32
33 This modules uses the following other modules:
34
35 use Carp
36 use Device::USB
37 use Device::USB::Device
38 use Time::HiRes qw / sleep /
39
40 This module uses the strict and warning pragmas.
41
42 DEVICE COMMANDS
43
44 Get information from the device:
45
46 Command: 0x52
47 Returns 8 bytes of interest:
48 1) Unknown
49 2) Device ID
50 3) Inner calibration
51 4) Inner calibration
52 5) Outer calibration
53 6) Outer calibration
54 7) unknown
55 8) unknown
56
57 Command: 0x61
58 Set gain value, the command equals the gain to be set, 0x61, 0x62....0x68
59
60 Command: 0x53 or 0x54 depending on device and sensor
61 Returns 3 bytes of value
62 1) Primary value
63 2) Decimal value
64 3) unknown
65
66 Command: 0x41
67 Returns 3 bytes of value
68 1) Part one of the float number
69 2) Part two of the float number
70 3) Part three of the float number
71
72 Command: 0x43
73 Set configuration of the device to 0
74
75 ACKNOWLEDGEMENTS
76
77 Thanks to Daniel Fahlgren for updating different commands.
78
79 COPYRIGHT AND LICENSE
80
81 Copyright (c) 2010-2011 Magnus Sulland
82
83 This program is free software; you can redistribute it and/or modify it
84 under the same terms as Perl itself.