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

NAME

6       DS2409 - MicroLAN Coupler
7

SYNOPSIS

9       1-wire network branch controller.
10
11       1F  [.]XXXXXXXXXXXX[XX][/[ aux | branch.[0|1|ALL|BYTE] | control | dis‐
12       charge   |    event.[0|1|ALL|BYTE]    |    clearevent    |    main    |
13       sensed.[0|1|ALL|BYTE]  |  address  |  crc8 | id | locator | r_address |
14       r_id | r_locator | type ]]
15

FAMILY CODE

17       1F
18

SPECIAL PROPERTIES

20   aux
21       directory
22       This is the aux branch of the DS2409 network branch. It  is  implicitly
23       accessed (via the aux smart-on command) when it is listed or devices on
24       this branch are addressed.
25
26   branch.0 branch.1 branch.ALL branch.BYTE
27       read-write, yes-no
28       Writing a value of 1 to the branch properties  explicitly  selects  the
29       meant branch ( 0=main or 1=aux ). Writing 0 deselects the branch.  This
30       is an addition to the directory branch selection  scheme  available  by
31       simply  accessing  the  main and aux directories. Both ways to select a
32       branch coexist nicely but the latest scheme used wins.   Attempting  to
33       select  both  branches, either by setting both bits at the same time or
34       subsequently, fails.  Clearing both branch selection  bits,  either  by
35       clearing  both  bits at the same time or subsequently, resets the event
36       flags inside the DS2409 as a side effect.  Reading the  branch  proper‐
37       ties returns which branch (if any) is connected to the master bus.
38
39       After  using  the  directory branch selection scheme, both branches are
40       deselected automatically.
41
42       ALL is an aggregate of the properties, comma separated. It is an atomic
43       operation.
44       BYTE is an aggregate of the branches as a byte, main is bit 0. It is an
45       atomic operation.
46
47   control
48       read-write, unsigned integer
49       Setting of the PIO control pin. There are 4 possible settings:
50
51       0      Unconditionally off (non-conducting)
52
53       1      Unconditionally on (conducting)
54
55       2      Auto on when main branch switched in
56
57       3      Auto on when aux branch switched in
58
59   discharge
60       write-only, yes-no
61       Writing a non-zero value to this property will electrically reset  both
62       the main and auxiliary branches of the 1-wire bus by dropping power for
63       100 milliseconds. All devices on those  branches  will  lose  parasitic
64       power  and  reset  to  power-up  defaults. As a side effect, both event
65       flags and thus, the alarm state, are cleared, too.
66
67   event.0 event.1 event.ALL event.BYTE
68       read-only, yes-no
69       Has the event flag for the branch been triggered? A  negative  edge  on
70       the  disconnected  branch  (  0=main  or 1=aux ) sets the flag. This is
71       achieved by e.g. connecting an iButton to the branch. Value returned is
72       1 (yes) or 0 (no).
73
74       After accessing the main or aux directory, both branches are deselected
75       automatically and thus, the event flags and alarm state are cleared.
76
77       ALL is an aggregate of the properties, comma separated. It is an atomic
78       operation.
79       BYTE is an aggregate of the branches as a byte, main is bit 0. It is an
80       atomic operation.
81
82   clearevent
83       write-only, yes-no
84       Writing a non-zero value to this property will reset both  event  flags
85       and thus, clear the alarm state, too.
86
87   main
88       directory
89       This  is the main branch of the DS2409 network branch. It is implicitly
90       accessed (via the main smart-on command) when it is listed  or  devices
91       on this branch are addressed.
92
93   sensed.0 sensed.1 sensed.ALL sensed.BYTE
94       read-only, yes-no
95       Voltage  sensed  at the 0=main or 1=aux branch pin. Valid only when the
96       branch is switched out. Value returned is 0 (low) or 1 (high).
97
98       ALL is an aggregate of the properties, comma separated. It is an atomic
99       operation.
100       BYTE is an aggregate of the branches as a byte, main is bit 0. It is an
101       atomic operation.
102

STANDARD PROPERTIES

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

ALARMS

153       The DS2409 will respond to a conditional search if the main event  flag
154       is set.
155

DESCRIPTION

157   1-Wire
158       1-wire is a wiring protocol and series of devices designed and manufac‐
159       tured by Dallas Semiconductor, Inc. The bus is  a  low-power  low-speed
160       low-connector scheme where the data line can also provide power.
161
162       Each  device  is  uniquely and unalterably numbered during manufacture.
163       There are a wide variety of devices, including memory, sensors  (humid‐
164       ity, temperature, voltage, contact, current), switches, timers and data
165       loggers. More complex devices (like thermocouple sensors) can be  built
166       with  these  basic  devices.  There  are  also 1-wire devices that have
167       encryption included.
168
169       The 1-wire scheme uses a single bus master and multiple slaves  on  the
170       same  wire.  The bus master initiates all communication. The slaves can
171       be individually discovered and addressed using their unique ID.
172
173       Bus masters come in a variety of configurations including serial,  par‐
174       allel, i2c, network or USB adapters.
175
176   OWFS design
177       OWFS  is  a  suite of programs that designed to make the 1-wire bus and
178       its devices easily accessible. The underlying principle is to create  a
179       virtual  filesystem,  with  the  unique ID being the directory, and the
180       individual properties of the device are  represented  as  simple  files
181       that can be read and written.
182
183       Details  of  the  individual slave or master design are hidden behind a
184       consistent interface. The goal is to provide an easy set of tools for a
185       software  designer  to create monitoring or control applications. There
186       are some performance enhancements in the implementation, including data
187       caching, parallel access to bus masters, and aggregation of device com‐
188       munication. Still the fundamental goal has been ease of use,  flexibil‐
189       ity and correctness rather than speed.
190
191   DS2409
192       The  DS2409 (3) allows complex 1-wire network topology. Each branch has
193       it's power preserved, even when isolated from the  master.  A  separate
194       PIO  pin  can  be  configured  to  show branch switching, or controlled
195       explicitly.
196

ADDRESSING

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

DATASHEET

220       http://pdfserv.maxim-ic.com/en/ds/DS2409.pdf
221

SEE ALSO

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

AVAILABILITY

283       http://www.owfs.org
284

AUTHOR

286       Paul Alfille (paul.alfille@gmail.com)
287
288
289
290OWFS Manpage                         2003                            DS2409(3)
Impressum