home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   RBERRYPI      Support for the Raspberry Pi device      21,939 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 20,784 of 21,939   
   John Aldridge to All   
   Re: 1-wire behaviour on Bookworm   
   20 Sep 24 11:17:20   
   
   INTL 3:770/1 3:770/3   
   REPLYADDR jpsa@cantab.net   
   REPLYTO 3:770/3.0 UUCP   
   MSGID:  26063174   
   REPLY:  46fbd903   
   PID: SoupGate-Win32 v1.05   
   In article , news@druck.org.uk says...   
   >   
   > After getting another Pi 5, I've moved a Pi 4B running Bookworm in to   
   > the role taken by a Pi 3B running Bullseye, which is monitoring 6   
   > ds18b20 sensors, configured as 2 1-wire buses with 3 sensors on each.   
   >   
   > With the Pi 3B, I could either read the sensors sequentially taking   
   > about 0.9s each, or using threads simultaneously in 1.0s. The Pi 4B with   
   > Bookworm reads the sensors sequentially a shade faster at just over   
   > 0.8s, but when reading simultaneously, returns 2 after 0.8s, another 2   
   > after 1.6s and the last two at 2.4s.   
   >   
   > Anyone have an explanation for this?   
      
   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 < /sys/bus/w1/devices/w1_bus_master1/therm_bulk_read   
   EOF   
      
   --   
   John   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 1/19 16/0 19/37 80/1 90/1 105/81 106/201 123/130 129/305   
   SEEN-BY: 142/104 153/757 7715 203/0 218/700 840 220/70 221/1 6 242   
   SEEN-BY: 221/360 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 230/0 240/5832 266/512   
   SEEN-BY: 267/800 280/5003 282/1038 291/111 292/854 301/1 310/31 320/119   
   SEEN-BY: 320/219 319 2119 322/757 762 325/304 335/364 341/66 342/200   
   SEEN-BY: 396/45 423/81 460/58 633/280 712/848 770/1 3 100 330 340   
   SEEN-BY: 772/210 220 230 5020/400 5053/58 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 1 320/219 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca