DS2760(3)
๐ NAME ๐
hiii bestie ๐ welcome to DS2760(3) โ the OWFS one-wire page that's lowkey just here to introduce you to some fuel gauge royalty. no cap, it's a whole moment:
- DS2780 โ Stand-alone Fuel Gauge IC ๐
- DS2788 โ Stand-alone Fuel Gauge with LED Drivers โจ
๐ SYNOPSIS ๐
Temperature Voltage Current Memory and Switch.
32 [.]XXXXXXXXXXXX[XX][/[ lock.[0-1|ALL] | memory | pages/page.[0-1|ALL]
| PIO | sensed | temperature | vbias | vis | volt | volthours |
aef | chgtf | ds | learnf | pmod | porf | rnaop | sef | uven | uvf |
address | crc8 | id | locator | r_address | r_id | r_locator | type ]]
Thermocouple
32 [.]XXXXXXXXXXXX[XX][/[ temperature | typeX/range_low |
typeX/range_high | typeX/temperature
๐ข FAMILY CODE ๐ข
32
like, that's the family code bestie, memorize it ๐
๐ SPECIAL PROPERTIES ๐
๐ lock.[0-1|ALL]
read-write, yes-no โ locks either of the two eprom pages so nobody can write to it anymore. and okay so the tea here is that setting lock is apparently permanent. ๐ซฃ like, permanent permanent. choose wisely.
๐ง memory
read-write, binary โ full access to the whole 256 byte memory range. lowkey a lot of that space is reserved or special-use, so don't go wild. the user space is the page area. check the DATASHEET for the full memory map, bestie ๐
๐ pages/pages.[0-1|ALL]
read-write, binary โ two 16 byte areas of memory for your user application. the lock property can stop you from changing them later. โ ๏ธ NOTE the page property is different from the common OWFS implementation, in that all of memory is not accessible. it's giving limited edition, fr fr.
๐ก PIO
write-only, yes-no โ controls the PIO pin so you can do external switching. writing "1" turns the PIO pin on (conducting). writing "0" makes the pin non-conducting. you can read the logical state of the voltage with the sensed property โ and bestie, that reflects the current voltage at the pin, not the value you sent to PIO. ๐ also note that PIO will also be altered by the power-status of the DS2680. see the datasheet for details.
๐ sensed
read-only, yes-no โ the logical voltage at the PIO pin. only useful if the PIO property is set to "0" (non-conducting). the value will be 0 or 1 depending on the voltage threshold. simple, iconic, no notes.
๐ก๏ธ temperature
read-only, floating point โ temperature read by the chip at high resolution (~13 bits). units get selected from the invoking command line (peep owfs(1) or owhttpd(1) for the choices). default is Celsius. conversion is continuous, so it's always clocking in ๐
โก vbias
read-write, floating point โ a fixed offset applied to each vis measurement. used for the volthours value. units are in Volts. range is -2.0mV to 2.0mV.
๐ vis
read-only, floating point โ current sensor reading (unknown external resistor). measures the voltage gradient between the Vis pins. units are in Volts. the vis readings are integrated over time to give you the volthours property. the current reading is derived from vis assuming the internal 25 mOhm resistor is employed โ and there is no way to know this through software. ๐ญ we love an unknowable.
๐ volt
read-only, floating point โ voltage read at the voltage sensor;. this is separate from the vis voltage that's used for current measurement. units are Volts. range is between 0 and 4.75V.
โณ volthours
read-write, floating point โ the integral of vis minus vbias over time. units are in volthours. math ate, honestly ๐งฎโจ
๐ THERMOCOUPLE ๐
๐ typeX/
directory โ a thermocouple circuit using the DS2780 to read the Seebeck voltage and the reference temperature. since the type interpretation of the values read depends on the type of thermocouple, you must pick the correct directory. supported thermocouple types include types B, E, J, K, N, R, S and T. pick your fighter ๐ซถ
๐ typeX/range_low typeX/ranges_high
read-only, flaoting point โ the lower and upper temperature supported by this thermocouple (at least by the conversion routines). in the globally chosen temperature units. ๐
๐ก๏ธ typeX/temperature
read-only, floating point โ thermocouple temperature. requires a voltage and temperature conversion. returned in globally chosen temperature units. Note: there are two types of temperature measurements possible. the temperature value in the main device directory is the reference temperature read at the chip. the typeX/temperature value is at the thermocouple junction, probably remote from the chip. two temps, two vibes, both valid ๐
๐ต๏ธ OBSCURE PROPERTIES ๐ต๏ธ
๐ฉ aef chgtf dc learnf pmod porf rnaop sef uven uvf
varies, yes-no โ bit flags corresponding to various battery management functions of the chip. see the DATASHEET for details of the identically named entries. in general, writing "0" corresponds to a 0 bit value, and non-zero corresponds to a 1 bit value. ๐๏ธ
โญ STANDARD PROPERTIES โญ
๐ชช address / r_address
read-only, ascii โ the entire 64-bit unique ID. given as upper case hexadecimal digits (0-9A-F). address starts with the family code. r_address is the address in reverse order, which is often used in other applications and labeling. โจ
๐งฎ crc8
read-only, ascii โ the 8-bit error correction portion. uses cyclic redundancy check. computed from the preceding 56 bits of the unique ID number. given as upper case hexadecimal digits (0-9A-F).
๐จโ๐ฉโ๐ง family
read-only, ascii โ the 8-bit family code. unique to each type of device. given as upper case hexadecimal digits (0-9A-F).
๐ id / r_id
read-only, ascii โ the 48-bit middle portion of the unique ID number. does not include the family code or CRC. given as upper case hexadecimal digits (0-9A-F). r_id is the id in reverse order, which is often used in other applications and labeling. ๐
๐ locator / r_locator
read-only, ascii โ uses an extension of the 1-wire design from iButtonLink company that associated 1-wire physical connections with a unique 1-wire code. if the connection is behind a Link Locator the locator will show a unique 8-byte number (16 character hexadecimal) starting with family code FE. if no Link Locator is between the device and the master, the locator field will be all FF. r_locator is the locator in reverse order. ๐งญ
๐ป present (DEPRECATED)
read-only, yes-no โ is the device currently present on the 1-wire bus? it's deprecated bestie, we're moving on ๐ซก
๐ท๏ธ type
read-only, ascii โ part name assigned by Dallas Semi. E.g. DS2401 Alternative packaging (iButton vs chip) will not be distiguished. ๐
๐จ ALARMS ๐จ
None.
like, none. silence. no alarms. the drama is simply not here ๐ โโ๏ธ
๐ DESCRIPTION ๐
๐ 1-Wire
1-wire is a wiring protocol and series of devices designed and manufactured by Dallas Semiconductor, Inc. the bus is a low-power low-speed low-connector scheme where the data line can also provide power. โก
each device is uniquely and unalterably numbered during manufacture. there are a wide variety of devices, including memory, sensors (humidity, temperature, voltage, contact, current), switches, timers and data loggers. more complex devices (like thermocouple sensors) can be built with these basic devices. there are also 1-wire devices that have encryption included. ๐
the 1-wire scheme uses a single bus master and multiple slaves on the same wire. the bus master initiates all communication. the slaves can be individually discovered and addressed using their unique ID. ๐
bus masters come in a variety of configurations including serial, parallel, i2c, network or USB adapters. so many fits, all cute ๐
๐๏ธ OWFS design
OWFS is a suite of programs that designed to make the 1-wire bus and its devices easily accessible. the underlying principle is to create a virtual filesystem, with the unique ID being the directory, and the individual properties of the device are represented as simple files that can be read and written. ๐ฆ
details of the individual slave or master design are hidden behind a consistent interface. the goal is to provide an easy set of tools for a software designer to create monitoring or control applications. there are some performance enhancements in the implementation, including data caching, parallel access to bus masters, and aggregation of device communication. still the fundamental goal has been ease of use, flexibility and correctness rather than speed. โจ
๐ DS2780
the DS2780 (3) is a battery charging controller. it has elaborate algorithms for estimating battery capacity. it's giving main character energy, honestly.
a number of interesting devices can be built with the DS2780 including thermocouples. support for thermocouples in built into the software, using the embedded thermister as the cold junction temperature. ๐ก๏ธ
๐งญ ADDRESSING ๐งญ
all 1-wire devices are factory assigned a unique 64-bit address. this address is of the form:
- Family Code โ 8 bits
- Address โ 48 bits
- CRC โ 8 bits
addressing under OWFS is in hexadecimal, of form:
01.123456789ABC
where 01 is an example 8-bit family code, and 12345678ABC is an example 48 bit address. ๐ข
the dot is optional, and the CRC code can included. if included, it must be correct. โ ๏ธ no faking the CRC, bestie, it will catch you.
๐ DATASHEET ๐
http://pdfserv.maxim-ic.com/en/ds/DS2780.pdf
http://pdfserv.maxim-ic.com/en/ds/DS2788.pdf
๐ SEE ALSO ๐
๐ฅ๏ธ Programs
owfs (1) owhttpd (1) owftpd (1) owserver (1) owdir (1) owread (1) owwrite (1) owpresent (1) owtap (1)
โ๏ธ Configuration and testing
owfs (5) owtap (1) owmon (1)
๐งโ๐ป Language bindings
owtcl (3) owperl (3) owcapi (3)
โฐ Clocks
DS1427 (3) DS1904 (3) DS1994 (3) DS2404 (3) DS2404S (3) DS2415 (3) DS2417 (3)
๐ ID
DS2401 (3) DS2411 (3) DS1990A (3)
๐พ Memory
DS1982 (3) DS1985 (3) DS1986 (3) DS1991 (3) DS1992 (3) DS1993 (3) DS1995 (3) DS1996 (3) DS2430A (3) DS2431 (3) DS2433 (3) DS2502 (3) DS2506 (3) DS28E04 (3) DS28EC20 (3)
๐๏ธ Switches
DS2405 (3) DS2406 (3) DS2408 (3) DS2409 (3) DS2413 (3) DS28EA00 (3) InfernoEmbedded (3)
๐ก๏ธ Temperature
DS1822 (3) DS1825 (3) DS1820 (3) DS18B20 (3) DS18S20 (3) DS1920 (3) DS1921 (3) DS1821 (3) DS28EA00 (3) DS28E04 (3) EDS0064 (3) EDS0065 (3) EDS0066 (3) EDS0067 (3) EDS0068 (3) EDS0071 (3) EDS0072 (3) MAX31826 (3)
๐ง Humidity
DS1922 (3) DS2438 (3) EDS0065 (3) EDS0068 (3)
โก Voltage
DS2450 (3)
๐งฑ Resistance
DS2890 (3)
๐๏ธ Multifunction (current, voltage, temperature)
DS2436 (3) DS2437 (3) DS2438 (3) DS2751 (3) DS2755 (3) DS2756 (3) DS2760 (3) DS2770 (3) DS2780 (3) DS2781 (3) DS2788 (3) DS2784 (3)
๐ข Counter
DS2423 (3)
๐บ LCD Screen
LCD (3) DS2408 (3)
๐ Crypto
DS1977 (3)
๐ซง Pressure
DS2406 (3) TAI8570 (3) EDS0066 (3) EDS0068 (3)
๐ Moisture
EEEF (3) DS2438 (3)
๐ AVAILABILITY ๐
http://www.owfs.org
๐ AUTHOR ๐
Paul Alfille (paul.alfille@gmail.com)
and that's the whole page bestie ๐ซถ this was the OWFS Manpage, 2003, filed under DS2760(3) โ go read the datasheet, go play with your fuel gauge, and remember: setting lock is permanent, so don't be messy. mwah ๐
โจ๐
๐ฆ where this page comes from
- alpine 3.24: owfs-doc 3.2_p4-r1 ยท GPL-2.0-only
- debian bookworm: owfs-doc 3.2p4+dfsg1-4.1 ยท GPL-2.0-only
- debian trixie: owfs-doc 3.2p4+dfsg1-6 ยท GPL-2.0-only
- fedora 43: owfs-devel 3.2p4-13.fc43 ยท GPL-2.0-only
- fedora 43: owfs-devel 3.2p4-13.fc43 ยท GPL-2.0-only
- fedora 43: owfs-libs 3.2p4-13.fc43 ยท GPL-2.0-only
- fedora 43: owfs-libs 3.2p4-13.fc43 ยท GPL-2.0-only
- fedora 44: owfs-devel 3.2p4-15.fc44 ยท GPL-2.0-only
- fedora 44: owfs-devel 3.2p4-15.fc44 ยท GPL-2.0-only
- fedora 44: owfs-libs 3.2p4-15.fc44 ยท GPL-2.0-only
- fedora 44: owfs-libs 3.2p4-15.fc44 ยท GPL-2.0-only
- nixos 26.05: libow 3.2p4
- nixpkgs unstable: libow 3.2p4
- ubuntu jammy: owfs-doc 3.2p4+dfsg1-4build5 ยท GPL-2.0-only
- ubuntu noble: owfs-doc 3.2p4+dfsg1-4.3build2 ยท GPL-2.0-only
- ubuntu questing: owfs-doc 3.2p4+dfsg1-6
- ubuntu resolute: owfs-doc 3.2p4+dfsg1-7 ยท GPL-2.0-only
- ubuntu stonking: owfs-doc 3.2p4+dfsg1-7build1 ยท GPL-2.0-only
- Copyright (c) 2003-2004 Paul H Alfille, MD
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms