w1thermsensor icon indicating copy to clipboard operation
w1thermsensor copied to clipboard

Support bulk read feature implemented in linux driver

Open CJKohler opened this issue 3 years ago • 4 comments

It looks like the W1_Therm driver now supports bulk-read, which sends one command to all devices on the bus to read and convert the temperature. These can then be quickly read-out, without having to wait 750 msec for each sensor.

It looks like Bulk Read support was added in May 2020 in the linux driver: https://github.com/raspberrypi/linux/blob/rpi-5.15.y/drivers/w1/slaves/w1_therm.c

trigger_bulk_read() - function to trigger a bulk read on the bus

This post suggests you need to write "trigger\n" to the therm_bulk_read file

Any chance you could add this to the w1thermsensor package?

CJKohler avatar Jan 04 '23 10:01 CJKohler

@CJKohler looks indeed like a nice addition. Unfortunately, I don't have enough spare time right now to work on this, but would be more than happy to review a PR and get this feature released!

timofurrer avatar Jan 08 '23 12:01 timofurrer

I'd love to see this implemented. I would love to help, however it's a bit over my skillet at this time.

then3rd avatar Aug 09 '23 20:08 then3rd