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

NAME

6       DS2740 - High-Precision Coulomb Counter
7

SYNOPSIS

9       Voltage and Switch
10
11       36  [.]XXXXXXXXXXXX[XX][/[  memory  |  PIO  |  sensed  |  vis | vis_B |
12       volthours |
13       smod |
14       address | crc8 | id | locator | r_address | r_id | r_locator | type ]]
15

FAMILY CODE

17       36
18

SPECIAL PROPERTIES

20   memory
21       read-write, binary
22       Access to the full 256  byte  memory  range.  Much  of  this  space  is
23       reserved or special use. User space is the page area.
24       See the DATASHEET for a full memory map.
25
26   PIO
27       write-only, yes-no
28       Controls the PIO pin allowing external switching.
29       Writing  "1"  turns  the PIO pin on (conducting). Writing "0" makes the
30       pin non-conducting.  The logical state of the voltage can be read  with
31       the  sensed property. This will reflect the current voltage at the pin,
32       not the value sent to PIO
33       Note also that PIO will also be altered  by  the  power-status  of  the
34       DS2670 See the datasheet for details.
35
36   sensed
37       read-only, yes-no
38       The  logical voltage at the PIO pin. Useful only if the PIO property is
39       set to "0" (non-conducting).
40       Value will be 0 or 1 depending on the voltage threshold.
41
42   vis
43       read-only, floating point
44       Current sensor reading (unknown external resistor). Measures the  volt‐
45       age gradient between the Vis pins. Units are in Volts
46       The  vis  readings  are  integrated  over time to provide the volthours
47       property.
48       The current reading is derived from vis assuming the internal  25  mOhm
49       resistor is employed. There is no way to know this through software.
50
51   vis_B
52       read-only, floating point
53       Current  sensor reading (unknown external resistor). Measures the volt‐
54       age gradient between the Vis pins. Units are in Volts
55       The vis readings are integrated over  time  to  provide  the  volthours
56       property.
57       The vis_B is from a different tuning of the DS2740 (3) chip with faster
58       sampling and lower resolution.  There is no way to  know  this  through
59       software.
60
61   volthours
62       read-write, floating point
63       Integral of vis over time. Units are in volthours
64

OBSCURE PROPERTIES

66   smod
67       read-write, yes-no
68       Bit  flags corresponding to various battery management functions of the
69       chip. See the DATASHEET for details of the identically named entries.
70       In general, writing "0" corresponds to a 0 bit value, and non-zero cor‐
71       responds to a 1 bit value.
72       Default power-on state for the corresponding properties.
73

STANDARD PROPERTIES

75   address
76   r_address
77       read-only, ascii
78       The  entire  64-bit  unique  ID. Given as upper case hexidecimal digits
79       (0-9A-F).
80       address starts with the family code
81       r address is the address in reverse order, which is often used in other
82       applications and labeling.
83
84   crc8
85       read-only, ascii
86       The  8-bit error correction portion. Uses cyclic redundancy check. Com‐
87       puted from the preceding 56 bits of the  unique  ID  number.  Given  as
88       upper case hexadecimal digits (0-9A-F).
89
90   family
91       read-only, ascii
92       The  8-bit  family  code. Unique to each type of device. Given as upper
93       case hexadecimal digits (0-9A-F).
94
95   id
96   r_id
97       read-only, ascii
98       The 48-bit middle portion of the unique ID number. Does not include the
99       family code or CRC. Given as upper case hexadecimal digits (0-9A-F).
100       r  id is the id in reverse order, which is often used in other applica‐
101       tions and labeling.
102
103   locator
104   r_locator
105       read-only, ascii
106       Uses an extension of the 1-wire design from  iButtonLink  company  that
107       associated  1-wire  physical  connections with a unique 1-wire code. If
108       the connection is behind a Link Locator the locator will show a  unique
109       8-byte number (16 character hexadecimal) starting with family code FE.
110       If  no  Link  Locator is between the device and the master, the locator
111       field will be all FF.
112       r locator is the locator in reverse order.
113
114   present (DEPRECATED)
115       read-only, yes-no
116       Is the device currently present on the 1-wire bus?
117
118   type
119       read-only, ascii
120       Part name assigned by Dallas Semi. E.g.  DS2401  Alternative  packaging
121       (iButton vs chip) will not be distiguished.
122

ALARMS

124       None.
125

DESCRIPTION

127   1-Wire
128       1-wire is a wiring protocol and series of devices designed and manufac‐
129       tured by Dallas Semiconductor, Inc. The bus is  a  low-power  low-speed
130       low-connector scheme where the data line can also provide power.
131
132       Each  device  is  uniquely and unalterably numbered during manufacture.
133       There are a wide variety of devices, including memory, sensors  (humid‐
134       ity, temperature, voltage, contact, current), switches, timers and data
135       loggers. More complex devices (like thermocouple sensors) can be  built
136       with  these  basic  devices.  There  are  also 1-wire devices that have
137       encryption included.
138
139       The 1-wire scheme uses a single bus master and multiple slaves  on  the
140       same  wire.  The bus master initiates all communication. The slaves can
141       be individually discovered and addressed using their unique ID.
142
143       Bus masters come in a variety of configurations including serial,  par‐
144       allel, i2c, network or USB adapters.
145
146   OWFS design
147       OWFS  is  a  suite of programs that designed to make the 1-wire bus and
148       its devices easily accessible. The underlying principle is to create  a
149       virtual  filesystem,  with  the  unique ID being the directory, and the
150       individual properties of the device are  represented  as  simple  files
151       that can be read and written.
152
153       Details  of  the  individual slave or master design are hidden behind a
154       consistent interface. The goal is to provide an easy set of tools for a
155       software  designer  to create monitoring or control applications. There
156       are some performance enhancements in the implementation, including data
157       caching, parallel access to bus masters, and aggregation of device com‐
158       munication. Still the fundamental goal has been ease of use,  flexibil‐
159       ity and correctness rather than speed.
160
161   DS2740
162       The  DS2740  (3)  is a class of battery charging controllers. This chip
163       measures voltage and volthours, and has a pin that can be used for con‐
164       trol.
165

ADDRESSING

167       All  1-wire  devices are factory assigned a unique 64-bit address. This
168       address is of the form:
169
170       Family Code
171              8 bits
172
173       Address
174              48 bits
175
176       CRC    8 bits
177
178       Addressing under OWFS is in hexadecimal, of form:
179
180              01.123456789ABC
181
182       where 01 is an example 8-bit family code, and 12345678ABC is an example
183       48 bit address.
184
185       The  dot  is  optional,  and the CRC code can included. If included, it
186       must be correct.
187

DATASHEET

189       http://pdfserv.maxim-ic.com/en/ds/DS2740.pdf
190

SEE ALSO

192   Programs
193       owfs (1) owhttpd (1) owftpd (1)  owserver  (1)  owdir  (1)  owread  (1)
194       owwrite (1) owpresent (1) owtap (1)
195
196   Configuration and testing
197       owfs (5) owtap (1) owmon (1)
198
199   Language bindings
200       owtcl (3) owperl (3) owcapi (3)
201
202   Clocks
203       DS1427  (3)  DS1904  (3)  DS1994  (3) DS2404 (3) DS2404S (3) DS2415 (3)
204       DS2417 (3)
205
206   ID
207       DS2401 (3) DS2411 (3) DS1990A (3)
208
209   Memory
210       DS1982 (3) DS1985 (3) DS1986 (3)  DS1991  (3)  DS1992  (3)  DS1993  (3)
211       DS1995  (3)  DS1996  (3)  DS2430A  (3) DS2431 (3) DS2433 (3) DS2502 (3)
212       DS2506 (3) DS28E04 (3) DS28EC20 (3)
213
214   Switches
215       DS2405 (3) DS2406 (3) DS2408 (3) DS2409 (3) DS2413 (3) DS28EA00 (3)
216
217   Temperature
218       DS1822 (3) DS1825 (3) DS1820 (3) DS18B20 (3)  DS18S20  (3)  DS1920  (3)
219       DS1921  (3) DS1821 (3) DS28EA00 (3) DS28E04 (3) EDS0064 (3) EDS0065 (3)
220       EDS0066 (3) EDS0067 (3) EDS0068 (3) EDS0071 (3)  EDS0072  (3)  MAX31826
221       (3)
222
223   Humidity
224       DS1922 (3) DS2438 (3) EDS0065 (3) EDS0068 (3)
225
226   Voltage
227       DS2450 (3)
228
229   Resistance
230       DS2890 (3)
231
232   Multifunction (current, voltage, temperature)
233       DS2436  (3)  DS2437  (3)  DS2438  (3)  DS2751 (3) DS2755 (3) DS2756 (3)
234       DS2760 (3) DS2770 (3) DS2780 (3) DS2781 (3) DS2788 (3) DS2784 (3)
235
236   Counter
237       DS2423 (3)
238
239   LCD Screen
240       LCD (3) DS2408 (3)
241
242   Crypto
243       DS1977 (3)
244
245   Pressure
246       DS2406 (3) TAI8570 (3) EDS0066 (3) EDS0068 (3)
247
248   Moisture
249       EEEF (3) DS2438 (3)
250

AVAILABILITY

252       http://www.owfs.org
253

AUTHOR

255       Paul Alfille (paul.alfille@gmail.com)
256
257
258
259OWFS Manpage                         2003                            DS2740(3)
Impressum