Re: 1-wire behaviour on Bookworm

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: 1-wire behaviour on Bookworm
De : chris (at) *nospam* internal.net (Chris Elvidge)
Groupes : comp.sys.raspberry-pi
Date : 22. Sep 2024, 12:45:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vcp01a$26pq5$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4
On 22/09/2024 at 11:53, John Aldridge wrote:
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".
 
Have you tried
'echo trigger | sudo tee /sys/bus/w1/devices/w1_bus_master1/therm_bulk_read'
--
Chris Elvidge, England
HIGH EXPLOSIVES AND SCHOOL DON'T MIX

Date Sujet#  Auteur
19 Sep 24 * 1-wire behaviour on Bookworm10druck
20 Sep 24 +* Re: 1-wire behaviour on Bookworm2Lawrence D'Oliveiro
20 Sep 24 i`- Re: 1-wire behaviour on Bookworm1druck
20 Sep 24 `* Re: 1-wire behaviour on Bookworm7John Aldridge
20 Sep 24  `* Re: 1-wire behaviour on Bookworm6druck
22 Sep 24   `* Re: 1-wire behaviour on Bookworm5John Aldridge
22 Sep 24    +* Re: 1-wire behaviour on Bookworm2Chris Elvidge
23 Sep 24    i`- Re: 1-wire behaviour on Bookworm1druck
23 Sep 24    `* Re: 1-wire behaviour on Bookworm2Lawrence D'Oliveiro
23 Sep 24     `- Re: 1-wire behaviour on Bookworm1Chris Townley

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal