1 What: /sys/bus/w1/devices/.../alarms
3 Contact: Akira Shimahara <akira215corp@gmail.com>
5 (RW) read or write TH and TL (Temperature High an Low) alarms.
6 Values shall be space separated and in the device range
7 (typical -55 degC to 125 degC), if not values will be trimmed
8 to device min/max capabilities. Values are integer as they are
9 stored in a 8bit register in the device. Lowest value is
10 automatically put to TL. Once set, alarms could be search at
11 master level, refer to Documentation/w1/w1-generic.rst for
13 Users: any user space application which wants to communicate with
17 What: /sys/bus/w1/devices/.../eeprom_cmd
19 Contact: Akira Shimahara <akira215corp@gmail.com>
21 (WO) writing that file will either trigger a save of the
22 device data to its embedded EEPROM, either restore data
23 embedded in device EEPROM. Be aware that devices support
24 limited EEPROM writing cycles (typical 50k)
26 * 'save': save device RAM to EEPROM
27 * 'restore': restore EEPROM data in device RAM
29 Users: any user space application which wants to communicate with
33 What: /sys/bus/w1/devices/.../ext_power
35 Contact: Akira Shimahara <akira215corp@gmail.com>
37 (RO) return the power status by asking the device
39 * '0': device parasite powered
40 * '1': device externally powered
41 * '-xx': xx is kernel error when reading power status
43 Users: any user space application which wants to communicate with
47 What: /sys/bus/w1/devices/.../resolution
49 Contact: Akira Shimahara <akira215corp@gmail.com>
51 (RW) get or set the device resolution (on supported devices,
52 if not, this entry is not present). Note that the resolution
53 will be changed only in device RAM, so it will be cleared when
54 power is lost. Trigger a 'save' to EEPROM command to keep
55 values after power-on. Read or write are :
57 * '9..14': device resolution in bit
58 or resolution to set in bit
59 * '-xx': xx is kernel error when reading the resolution
60 * Anything else: do nothing
62 Some DS18B20 clones are fixed in 12-bit resolution, so the
63 actual resolution is read back from the chip and verified. Error
64 is reported if the results differ.
65 Users: any user space application which wants to communicate with
69 What: /sys/bus/w1/devices/.../temperature
71 Contact: Akira Shimahara <akira215corp@gmail.com>
73 (RO) return the temperature in 1/1000 degC.
75 * If a bulk read has been triggered, it will directly
76 return the temperature computed when the bulk read
77 occurred, if available. If not yet available, nothing
78 is returned (a debug kernel message is sent), you
79 should retry later on.
80 * If no bulk read has been triggered, it will trigger
81 a conversion and send the result. Note that the
82 conversion duration depend on the resolution (if
83 device support this feature). It takes 94ms in 9bits
84 resolution, 750ms for 12bits.
86 Users: any user space application which wants to communicate with
90 What: /sys/bus/w1/devices/.../w1_slave
92 Contact: Akira Shimahara <akira215corp@gmail.com>
94 (RW) return the temperature in 1/1000 degC.
95 *read*: return 2 lines with the hexa output data sent on the
96 bus, return the CRC check and temperature in 1/1000 degC
99 * '0' : save the 2 or 3 bytes to the device EEPROM
100 (i.e. TH, TL and config register)
101 * '9..14' : set the device resolution in RAM
103 * Anything else: do nothing
105 refer to Documentation/w1/slaves/w1_therm.rst for detailed
107 Users: any user space application which wants to communicate with
111 What: /sys/bus/w1/devices/w1_bus_masterXX/therm_bulk_read
113 Contact: Akira Shimahara <akira215corp@gmail.com>
115 (RW) trigger a bulk read conversion. read the status
119 conversion in progress on at least 1 sensor
121 conversion complete but at least one sensor
122 value has not been read yet
124 no bulk operation. Reading temperature will
125 trigger a conversion on each device
128 'trigger': trigger a bulk read on all supporting
131 Note that if a bulk read is sent but one sensor is not read
132 immediately, the next access to temperature on this device
133 will return the temperature measured at the time of issue
134 of the bulk read command (not the current temperature).
135 Users: any user space application which wants to communicate with
139 What: /sys/bus/w1/devices/.../conv_time
141 Contact: Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
143 (RW) Get, set, or measure a temperature conversion time. The
144 setting remains active until a resolution change. Then it is
145 reset to default (datasheet) conversion time for a new
149 Actual conversion time in milliseconds.
153 Set the default conversion time from the datasheet.
155 Measure and set the conversion time. Make a single
156 temperature conversion, measure an actual value.
157 Increase it by 20% for temperature range. A new
158 conversion time can be obtained by reading this
160 * other positive value:
161 Set the conversion time in milliseconds.
163 Users: An application using the w1_term device
166 What: /sys/bus/w1/devices/.../features
168 Contact: Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
170 (RW) Control optional driver settings.
171 Bit masks to read/write (bitwise OR):
173 == ============================================================
174 1 Enable check for conversion success. If byte 6 of
175 scratchpad memory is 0xC after conversion, and
176 temperature reads 85.00 (powerup value) or 127.94
177 (insufficient power) - return a conversion error.
179 2 Enable poll for conversion completion. Generate read cycles
180 after the conversion start and wait for 1's. In parasite
181 power mode this feature is not available.
182 == ============================================================
185 Currently selected features.
190 Users: An application using the w1_term device