1DS18S20(3)                   One-Wire File System                   DS18S20(3)
2
3
4

NAME

6       DS18S20
7              - High-Precision 1-Wire Digital Thermometer
8
9       DS1920 - iButton version of the thermometer
10

SYNOPSIS

12       Thermometer.
13
14       10  [.]XXXXXXXXXXXX[XX][/[ fasttemp | temperature | temperature9 | tem‐
15       perature10 | temperature11 | temperature12 | latesttemp | die | power |
16       temphigh  | templow | trim | trimblanket | trimvalid | address | crc8 |
17       id | locator | r_address | r_id | r_locator | type ]]
18

FAMILY CODE

20       10
21

SPECIAL PROPERTIES

23   power
24       read-only,yes-no
25       Is the chip powered externally (=1) or from the parasitically from  the
26       data bus (=0)?
27
28   temperature
29       read-only, floating point
30       Measured temperature with 12 bit resolution.
31
32   temperature9 temperature10 temperature11 temperature12
33       read-only, floating point
34       Measured  temperature at 9 to 12 bit resolution. There is a tradeoff of
35       time versus accuracy in the temperature measurement.
36
37   latesttemp
38       read-only, floating point
39       Measured temperature at 9 to 12 bit resolution, depending on the  reso‐
40       lution  of  the  latest conversion on this chip. Reading this node will
41       never trigger a temperature conversion. Intended for use in conjunction
42       with /simultaneous/temperature.
43
44   fasttemp
45       read-only, floating point
46       Equivalent to temperature9
47

TEMPERATURE ALARM LIMITS

49       When  the device exceeds either temphigh or templow temperature thresh‐
50       old the device is in the alarm state, and  will  appear  in  the  alarm
51       directory.  This provides an easy way to poll for temperatures that are
52       unsafe, especially if simultaneous temperature conversion is done.
53
54       Units for the temperature alarms are in the same temperature scale that
55       was set for temperature measurements.
56
57       Temperature  thresholds  are  stored in non-volatile memory and persist
58       until changed, even if power is lost.
59
60   temphigh
61       read-write, integer
62       Shows or sets the lower limit for the high temperature alarm state.
63
64   templow
65       read-write, integer
66       Shows or sets the upper limit for the low temperature alarm state.
67

TEMPERATURE ERRATA

69       There are a group of obscure internal  properties  exposed  to  protect
70       against  an  hardware  defect  in certain batches of the B7 die of some
71       DS18x20 chips.  See  http://www.1wire.org/en-us/pg_18.html  or  request
72       AN247.pdf from Dallas directly.
73
74   errata/die
75       read-only,ascii
76       Two character manufacturing die lot. "B6" "B7" or "C2"
77
78   errata/trim
79       read-write,unsigned integer
80       32  bit trim value in the EEPROM of the chip. When written, it does not
81       seem to read back. Used for a production problem in the B7 die.
82
83       Read allowed for all chips. Only the B7 chips can be written.
84
85   errata/trimblanket
86       read-write,yes-no
87       Writing non-zero (=1) puts a default  trim  value  in  the  chip.  Only
88       applied  to  the B7 die.  Reading will be true (non-zero) if trim value
89       is the blanket value. Again, only B7  chips  will  register  true,  and
90       since  the written trim values cannot be read, this value may have lit‐
91       tle utility.
92
93   errata/trimvalid
94       read-only,yes-no
95       Is the trim value in the valid range? Non-zero if true, which  includes
96       all non-B7 chips.
97

STANDARD PROPERTIES

99   address
100   r_address
101       read-only, ascii
102       The  entire  64-bit  unique  ID. Given as upper case hexidecimal digits
103       (0-9A-F).
104       address starts with the family code
105       r address is the address in reverse order, which is often used in other
106       applications and labeling.
107
108   crc8
109       read-only, ascii
110       The  8-bit error correction portion. Uses cyclic redundancy check. Com‐
111       puted from the preceding 56 bits of the  unique  ID  number.  Given  as
112       upper case hexadecimal digits (0-9A-F).
113
114   family
115       read-only, ascii
116       The  8-bit  family  code. Unique to each type of device. Given as upper
117       case hexadecimal digits (0-9A-F).
118
119   id
120   r_id
121       read-only, ascii
122       The 48-bit middle portion of the unique ID number. Does not include the
123       family code or CRC. Given as upper case hexadecimal digits (0-9A-F).
124       r  id is the id in reverse order, which is often used in other applica‐
125       tions and labeling.
126
127   locator
128   r_locator
129       read-only, ascii
130       Uses an extension of the 1-wire design from  iButtonLink  company  that
131       associated  1-wire  physical  connections with a unique 1-wire code. If
132       the connection is behind a Link Locator the locator will show a  unique
133       8-byte number (16 character hexadecimal) starting with family code FE.
134       If  no  Link  Locator is between the device and the master, the locator
135       field will be all FF.
136       r locator is the locator in reverse order.
137
138   present (DEPRECATED)
139       read-only, yes-no
140       Is the device currently present on the 1-wire bus?
141
142   type
143       read-only, ascii
144       Part name assigned by Dallas Semi. E.g.  DS2401  Alternative  packaging
145       (iButton vs chip) will not be distiguished.
146

DESCRIPTION

148   1-Wire
149       1-wire is a wiring protocol and series of devices designed and manufac‐
150       tured by Dallas Semiconductor, Inc. The bus is  a  low-power  low-speed
151       low-connector scheme where the data line can also provide power.
152
153       Each  device  is  uniquely and unalterably numbered during manufacture.
154       There are a wide variety of devices, including memory, sensors  (humid‐
155       ity, temperature, voltage, contact, current), switches, timers and data
156       loggers. More complex devices (like thermocouple sensors) can be  built
157       with  these  basic  devices.  There  are  also 1-wire devices that have
158       encryption included.
159
160       The 1-wire scheme uses a single bus master and multiple slaves  on  the
161       same  wire.  The bus master initiates all communication. The slaves can
162       be individually discovered and addressed using their unique ID.
163
164       Bus masters come in a variety of configurations including serial,  par‐
165       allel, i2c, network or USB adapters.
166
167   OWFS design
168       OWFS  is  a  suite of programs that designed to make the 1-wire bus and
169       its devices easily accessible. The underlying principle is to create  a
170       virtual  filesystem,  with  the  unique ID being the directory, and the
171       individual properties of the device are  represented  as  simple  files
172       that can be read and written.
173
174       Details  of  the  individual slave or master design are hidden behind a
175       consistent interface. The goal is to provide an easy set of tools for a
176       software  designer  to create monitoring or control applications. There
177       are some performance enhancements in the implementation, including data
178       caching, parallel access to bus masters, and aggregation of device com‐
179       munication. Still the fundamental goal has been ease of use,  flexibil‐
180       ity and correctness rather than speed.
181
182   DS18S20 DS1920
183       The DS18S20 (3) is one of several available 1-wire temperature sensors.
184       It has been largely replaced by the DS18B20 (3) and DS1822 (3) as  well
185       as  temperature/vlotage  measurements in the DS2436 (3) and DS2438 (3).
186       For truly versatile temperature measurements, see  the  protean  DS1921
187       (3) Thermachron (3).
188

ADDRESSING

190       All  1-wire  devices are factory assigned a unique 64-bit address. This
191       address is of the form:
192
193       Family Code
194              8 bits
195
196       Address
197              48 bits
198
199       CRC    8 bits
200
201       Addressing under OWFS is in hexadecimal, of form:
202
203              01.123456789ABC
204
205       where 01 is an example 8-bit family code, and 12345678ABC is an example
206       48 bit address.
207
208       The  dot  is  optional,  and the CRC code can included. If included, it
209       must be correct.
210

DATASHEET

212       http://pdfserv.maxim-ic.com/en/ds/DS18S20.pdf
213

SEE ALSO

215   Programs
216       owfs (1) owhttpd (1) owftpd (1)  owserver  (1)  owdir  (1)  owread  (1)
217       owwrite (1) owpresent (1) owtap (1)
218
219   Configuration and testing
220       owfs (5) owtap (1) owmon (1)
221
222   Language bindings
223       owtcl (3) owperl (3) owcapi (3)
224
225   Clocks
226       DS1427  (3)  DS1904  (3)  DS1994  (3) DS2404 (3) DS2404S (3) DS2415 (3)
227       DS2417 (3)
228
229   ID
230       DS2401 (3) DS2411 (3) DS1990A (3)
231
232   Memory
233       DS1982 (3) DS1985 (3) DS1986 (3)  DS1991  (3)  DS1992  (3)  DS1993  (3)
234       DS1995  (3)  DS1996  (3)  DS2430A  (3) DS2431 (3) DS2433 (3) DS2502 (3)
235       DS2506 (3) DS28E04 (3) DS28EC20 (3)
236
237   Switches
238       DS2405 (3) DS2406 (3) DS2408 (3) DS2409 (3) DS2413 (3) DS28EA00 (3)
239
240   Temperature
241       DS1822 (3) DS1825 (3) DS1820 (3) DS18B20 (3)  DS18S20  (3)  DS1920  (3)
242       DS1921  (3) DS1821 (3) DS28EA00 (3) DS28E04 (3) EDS0064 (3) EDS0065 (3)
243       EDS0066 (3) EDS0067 (3) EDS0068 (3) EDS0071 (3)  EDS0072  (3)  MAX31826
244       (3)
245
246   Humidity
247       DS1922 (3) DS2438 (3) EDS0065 (3) EDS0068 (3)
248
249   Voltage
250       DS2450 (3)
251
252   Resistance
253       DS2890 (3)
254
255   Multifunction (current, voltage, temperature)
256       DS2436  (3)  DS2437  (3)  DS2438  (3)  DS2751 (3) DS2755 (3) DS2756 (3)
257       DS2760 (3) DS2770 (3) DS2780 (3) DS2781 (3) DS2788 (3) DS2784 (3)
258
259   Counter
260       DS2423 (3)
261
262   LCD Screen
263       LCD (3) DS2408 (3)
264
265   Crypto
266       DS1977 (3)
267
268   Pressure
269       DS2406 (3) TAI8570 (3) EDS0066 (3) EDS0068 (3)
270
271   Moisture
272       EEEF (3) DS2438 (3)
273

AVAILABILITY

275       http://www.owfs.org
276

AUTHOR

278       Paul Alfille (paul.alfille@gmail.com)
279
280
281
282OWFS Manpage                         2003                           DS18S20(3)
Impressum