Deutsch English Français Italiano |
<MPG.415a076b52575f19897c1@news.eternal-september.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: John Aldridge <jpsa@cantab.net> Newsgroups: comp.sys.raspberry-pi Subject: Re: 1-wire behaviour on Bookworm Date: Sun, 22 Sep 2024 11:53:07 +0100 Organization: A noiseless patient Spider Lines: 27 Message-ID: <MPG.415a076b52575f19897c1@news.eternal-september.org> References: <vcgrag$gsv0$2@dont-email.me> <MPG.41575c0e6e1470fe9897c0@news.eternal-september.org> <vckmfh$17vkc$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Date: Sun, 22 Sep 2024 12:53:07 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7829908bbe3c1c90a9b590df4f73b2b8"; logging-data="2304535"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+o+rS8zvjpxWw9//NEQGMh" User-Agent: MicroPlanet-Gravity/3.0.11 (GRC) Cancel-Lock: sha1:0LMuMqw3PisE3SbNPjkHHinuSl0= Bytes: 2002 In article <vckmfh$17vkc$2@dont-email.me>, news@druck.org.uk says... > > On 20/09/2024 11:17, John Aldridge wrote: > [Reading ds18b20 sensors in parallel] > > No, but AIUI the "right" way to do this is to send the text "trigger" to > > /sys/bus/w1/devices/w1_bus_master1/therm_bulk_read before reading the > > values as normal. The trigger causes them all to start a conversion at > > once, following which the reads all complete immediately once a single > > conversion time has elapsed. > > > > As a quick hack, try executing the following before reading your > > sensors... > > > > sudo su <<EOF > > echo trigger > /sys/bus/w1/devices/w1_bus_master1/therm_bulk_read > > EOF > > Thanks, that seems to works for the first bus, but I get a permission > denied when using w1_bus_master2. Sorry, I've no idea why that might be :( Though I do recall the permission checking being a bit odd -- hence the "sudo su" rather than a plain "sudo". -- John