1DS2415(3) One-Wire File System DS2415(3)
2
3
4
6 DS2415, DS1904, DS2417 - 1-Wire Time Chip, RTC (real time clock) iBut‐
7 ton, 1-Wire Time Chip with Interrupt
8
10 Real time clock.
11 24 [.]XXXXXXXXXXXX[XX][/[ date | flags | running | udate | address |
12 crc8 | id | locator | r_address | r_id | r_locator | type ]]
13
14 Clock with interrupts
15 27 [.]XXXXXXXXXXXX[XX][/[ date | enable | interval | itime | running |
16 udate | address | crc8 | id | locator | r_address | r_id | r_locator |
17 type ]]
18
20 24 DS2415 DS1904
21
22 27 DS2417
23
25 date
26 read-write, ascii
27 26 character date representation of the counter value. Increments once
28 per second while running
29 Setting date to a null string will put the current system time.
30 Accepted date formats are:
31 Sat[urday] March 12 12:23:59 2001
32 Apr[il] 4 9:34:56 2002
33 3/23/04 23:34:57
34 current locale setting (your system's format)
35
36 enable
37 read-write, yes-no
38 State of the timer interrupt. 0=off 1=running.
39
40 interval
41 read-write, unsigned integer
42 Interval between timer interrupts. Values: 0-7. See table under
43 DESCRIPTION for interpretation. itime will reflect the interval cho‐
44 sen.
45
46 itime
47 read-write, unsigned integer
48 Interval between timer interrupts. Value in seconds. See table under
49 DESCRIPTION for interpretation and acceptable values. interval will
50 reflect the itime chosen.
51
52 flags
53 read-write, unsigned integer
54 General use data. 4 bits (0-15 accepted values).
55
56 running
57 read-write, yes-no
58 State of the clock. 0=off 1=running.
59
60 udate
61 read-write, unsigned integer
62 Time represented as a number. udate increments once per second, while
63 running is on.
64 Usually set to unix time standard: number of seconds since Jan 1, 1970.
65 The date field will be the unix representation of udate and setting
66 either will change the other.
67
69 address
70 r_address
71 read-only, ascii
72 The entire 64-bit unique ID. Given as upper case hexidecimal digits
73 (0-9A-F).
74 address starts with the family code
75 r address is the address in reverse order, which is often used in other
76 applications and labeling.
77
78 crc8
79 read-only, ascii
80 The 8-bit error correction portion. Uses cyclic redundancy check. Com‐
81 puted from the preceding 56 bits of the unique ID number. Given as
82 upper case hexadecimal digits (0-9A-F).
83
84 family
85 read-only, ascii
86 The 8-bit family code. Unique to each type of device. Given as upper
87 case hexadecimal digits (0-9A-F).
88
89 id
90 r_id
91 read-only, ascii
92 The 48-bit middle portion of the unique ID number. Does not include the
93 family code or CRC. Given as upper case hexadecimal digits (0-9A-F).
94 r id is the id in reverse order, which is often used in other applica‐
95 tions and labeling.
96
97 locator
98 r_locator
99 read-only, ascii
100 Uses an extension of the 1-wire design from iButtonLink company that
101 associated 1-wire physical connections with a unique 1-wire code. If
102 the connection is behind a Link Locator the locator will show a unique
103 8-byte number (16 character hexadecimal) starting with family code FE.
104 If no Link Locator is between the device and the master, the locator
105 field will be all FF.
106 r locator is the locator in reverse order.
107
108 present (DEPRECATED)
109 read-only, yes-no
110 Is the device currently present on the 1-wire bus?
111
112 type
113 read-only, ascii
114 Part name assigned by Dallas Semi. E.g. DS2401 Alternative packaging
115 (iButton vs chip) will not be distiguished.
116
118 None implemented.
119
121 1-Wire
122 1-wire is a wiring protocol and series of devices designed and manufac‐
123 tured by Dallas Semiconductor, Inc. The bus is a low-power low-speed
124 low-connector scheme where the data line can also provide power.
125
126 Each device is uniquely and unalterably numbered during manufacture.
127 There are a wide variety of devices, including memory, sensors (humid‐
128 ity, temperature, voltage, contact, current), switches, timers and data
129 loggers. More complex devices (like thermocouple sensors) can be built
130 with these basic devices. There are also 1-wire devices that have
131 encryption included.
132
133 The 1-wire scheme uses a single bus master and multiple slaves on the
134 same wire. The bus master initiates all communication. The slaves can
135 be individually discovered and addressed using their unique ID.
136
137 Bus masters come in a variety of configurations including serial, par‐
138 allel, i2c, network or USB adapters.
139
140 OWFS design
141 OWFS is a suite of programs that designed to make the 1-wire bus and
142 its devices easily accessible. The underlying principle is to create a
143 virtual filesystem, with the unique ID being the directory, and the
144 individual properties of the device are represented as simple files
145 that can be read and written.
146
147 Details of the individual slave or master design are hidden behind a
148 consistent interface. The goal is to provide an easy set of tools for a
149 software designer to create monitoring or control applications. There
150 are some performance enhancements in the implementation, including data
151 caching, parallel access to bus masters, and aggregation of device com‐
152 munication. Still the fundamental goal has been ease of use, flexibil‐
153 ity and correctness rather than speed.
154
155 DS2415 DS1904
156 The DS2415 (3) and DS1904 (3) are simple clocks that can be read on the
157 1-wire bus. They can also be used the time an event, for remote confir‐
158 mation.
159
160 DS2417
161 The DS2417 has the same clock function, but also includes a program‐
162 mable interval interrupt. Values Allowed are:
163 0 1sec
164 1 4sec
165 2 32s = .5m
166 3 6 = 1m
167 4 2048s = .5h
168 5 4096s = 1h
169 6 65536s = 18h
170 7 131072s = 36h
171
173 All 1-wire devices are factory assigned a unique 64-bit address. This
174 address is of the form:
175
176 Family Code
177 8 bits
178
179 Address
180 48 bits
181
182 CRC 8 bits
183
184 Addressing under OWFS is in hexadecimal, of form:
185
186 01.123456789ABC
187
188 where 01 is an example 8-bit family code, and 12345678ABC is an example
189 48 bit address.
190
191 The dot is optional, and the CRC code can included. If included, it
192 must be correct.
193
195 http://pdfserv.maxim-ic.com/en/ds/DS2415.pdf
196 http://pdfserv.maxim-ic.com/en/ds/DS1904.pdf
197 http://pdfserv.maxim-ic.com/en/ds/DS2417.pdf
198
200 Programs
201 owfs (1) owhttpd (1) owftpd (1) owserver (1) owdir (1) owread (1)
202 owwrite (1) owpresent (1) owtap (1)
203
204 Configuration and testing
205 owfs (5) owtap (1) owmon (1)
206
207 Language bindings
208 owtcl (3) owperl (3) owcapi (3)
209
210 Clocks
211 DS1427 (3) DS1904 (3) DS1994 (3) DS2404 (3) DS2404S (3) DS2415 (3)
212 DS2417 (3)
213
214 ID
215 DS2401 (3) DS2411 (3) DS1990A (3)
216
217 Memory
218 DS1982 (3) DS1985 (3) DS1986 (3) DS1991 (3) DS1992 (3) DS1993 (3)
219 DS1995 (3) DS1996 (3) DS2430A (3) DS2431 (3) DS2433 (3) DS2502 (3)
220 DS2506 (3) DS28E04 (3) DS28EC20 (3)
221
222 Switches
223 DS2405 (3) DS2406 (3) DS2408 (3) DS2409 (3) DS2413 (3) DS28EA00 (3)
224
225 Temperature
226 DS1822 (3) DS1825 (3) DS1820 (3) DS18B20 (3) DS18S20 (3) DS1920 (3)
227 DS1921 (3) DS1821 (3) DS28EA00 (3) DS28E04 (3) EDS0064 (3) EDS0065 (3)
228 EDS0066 (3) EDS0067 (3) EDS0068 (3) EDS0071 (3) EDS0072 (3) MAX31826
229 [1m(3)
230
231 Humidity
232 DS1922 (3) DS2438 (3) EDS0065 (3) EDS0068 (3)
233
234 Voltage
235 DS2450 (3)
236
237 Resistance
238 DS2890 (3)
239
240 Multifunction (current, voltage, temperature)
241 DS2436 (3) DS2437 (3) DS2438 (3) DS2751 (3) DS2755 (3) DS2756 (3)
242 DS2760 (3) DS2770 (3) DS2780 (3) DS2781 (3) DS2788 (3) DS2784 (3)
243
244 Counter
245 DS2423 (3)
246
247 LCD Screen
248 LCD (3) DS2408 (3)
249
250 Crypto
251 DS1977 (3)
252
253 Pressure
254 DS2406 (3) TAI8570 (3) EDS0066 (3) EDS0068 (3)
255
256 Moisture
257 EEEF (3) DS2438 (3)
258
260 http://www.owfs.org
261
263 Paul Alfille (paul.alfille@gmail.com)
264
265
266
267OWFS Manpage 2003 DS2415(3)