INTL 3:770/1 3:770/3   
   REPLYADDR chris@internal.net   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: 9adb1ab4   
   REPLY: b55126fa   
   PID: SoupGate-Win32 v1.05   
   On 22/09/2024 at 11:53, John Aldridge wrote:   
   > In article , 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 <>> 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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 19/38 90/1 105/81 106/201 129/305 153/757 7715 218/700 840   
   SEEN-BY: 220/70 226/17 30 100 227/114 229/110 111 114 200 206 300   
   SEEN-BY: 229/317 400 426 428 470 550 616 664 700 266/512 267/800 282/1038   
   SEEN-BY: 291/111 292/854 310/31 320/219 322/757 342/200 396/45 460/58   
   SEEN-BY: 633/280 281 412 418 420 509 2744 712/848 770/1 3 100 330   
   SEEN-BY: 770/340 772/210 220 230 5020/400 5075/35   
   PATH: 770/3 1 633/280 229/426   
      
|