OWSBM(4)
π NAME π
Okay bestie, gather round: this is the OWSBM(4) page from the kernel interfaces manual, and it's all about the owsbm 1-Wire smart battery monitor device. Slay. πβ¨
π SYNOPSIS π
owsbm* at onewire?
πΈ DESCRIPTION πΈ
The owsbm driver provides support for the 1-Wire smart battery monitor. No cap, this little sensor is stacked: it possesses a temperature sensor, an A/D converter for measuring both battery voltage and current, a current accumulator of both incoming and outgoing current, an elapsed time and 40 bytes of nonvolatile EEPROM. It's giving tiny powerhouse energy. π
Only the three voltages (VDD, VAD, CR) and temperature are accessible by the sysctl(8) interface. That's the vibe check on what you can get at through sysctl(8) β literally just those three voltages and temperature.
The following chips are supported by the driver:
Maxim/Dallas DS2438β the one and only chip on the guest list, bestie. π
β‘ MEASURING CURRENT β‘
The sensor does not measure current directly. Instead it measures the voltage across the Rsens pins. The way that works is:
I = Voltage CR / Rsens (where Rsens is in Ohms)
So yeah β voltage across Rsens, then that formula. Keep Rsens in Ohms, periodt. π§
π¦ SEE ALSO π¦
π HISTORY π
The owsbm driver first appeared in OpenBSD 4.1. A little retro, a little iconic. π
π AUTHORS π
The owsbm driver was written by Aaron Linville <aaron@linville.org>. Respect the author, bestie. π«Ά
okay bye bestie, this OWSBM(4) page is brought to you by Debian, dated July 16, 2013 β mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2007 Aaron Linville <aaron@linville.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms