logo elektroda
logo elektroda
X
logo elektroda

Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

max4elektroda 2100 86
ADVERTISEMENT
📢 Listen (AI):
  • #31 21601385
    max4elektroda
    Level 20  
    Maybe just try command with only two or three sensors (don't know how many will fit into a command with less than 497 chars)?
    So basic function is "verified"
  • ADVERTISEMENT
  • #32 21601387
    divadiow
    Level 34  
    >>21601385

    yep. will do. then the focus can be on ds1820 driver and not so much the start-up command length initially.
  • #33 21602138
    max4elektroda
    Level 20  
    Some feedback:
    The ESP32 issue is solved - the time without interrupt during OneWireReset was too long.

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    I shortened the output for commands - address is now more compact and the command itself is shorter with usage of an alias for the quite long command "DS1820_FULL_setsensor".

    Tested o.k. here

    W800
    BL602
    ESP32S2
    ESP32
  • #34 21602160
    divadiow
    Level 34  
    nice
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=4)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=5)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=2)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=3)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=4)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=5)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=2)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=3)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=4)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=5)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=2)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=3)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=4)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=5)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=2)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=3)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=4)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=4
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=4
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=5)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - .. Pin 4 found! dsread=0


    With the full driver does the channel # in pin cfg page have any meaning? And what is to be done with the starting channel of -1 for a new setup in DS18B20 Sensors menu page? - I have been changing
  • #35 21602168
    max4elektroda
    Level 20  
    The channel on pin page is only used with simple driver, full will need configuration on GUI or with command.
    I simply had no idea how to use the channel - we have no knowledge about how many sensors are there, and you can't know, which sensor is scanned "first" if there are more than one.
    I'm not sure about the question regarding the -1 channel. This is only to identify an unset channel.
  • ADVERTISEMENT
  • #36 21602171
    divadiow
    Level 34  
    max4elektroda wrote:
    This is only to identify an unset channel.

    yep ok. and are these normal channel channels, as in, not to clash with channels set for other things in normal cfg page?
  • #37 21602188
    max4elektroda
    Level 20  
    The channels are the same as in pin config page. Good point, we might add some check if a channel is already in use.

    Added after 2 [minutes]:

    On the other hand, I think there is no check on pin page, if channels are used more than once?
  • Helpful post
    #38 21602196
    divadiow
    Level 34  
    max4elektroda wrote:
    On the other hand, I think there is no check on pin page, if channels are used more than once?

    nope

    Added after 10 [minutes]:



    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=10 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3400 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.56
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PA19 reported 26.56
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=81 / scratchPad[SCRATCHPAD_CRC]=81
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3392 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.50
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PA19 reported 26.50
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=9 / scratchPad[SCRATCHPAD_CRC]=9
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3424 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.75
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PA19 reported 26.75
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PA19 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PA19 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.63
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PA19 reported 26.63
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Error:SENSOR:DS1820 - Read CRC=a != calculated:cd (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xA9 0x41 0x7F 0x80 0x7F 0xFF 0x07 0x10 0x0A
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=205 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=10 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3400 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.56
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PA19 reported 26.56
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=10 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3400 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.56
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PA19 reported 26.56
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=9 / scratchPad[SCRATCHPAD_CRC]=9
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3424 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.75
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PA19 reported 26.75
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PA19 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PA19 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=10 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3400 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.56
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PA19 reported 26.56
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    eadScratchPad returned 0 - Crc8CQuick=107 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=10 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3400 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.56
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PA19 reported 26.56
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=81 / scratchPad[SCRATCHPAD_CRC]=81
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3392 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.50
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PA19 reported 26.50
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PA19 reported 26.69
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PA19 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PA19 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Error:SENSOR:DS1820 - Read CRC=b != calculated:71 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xAA 0x03 0x7F 0x80 0x7F 0xFF 0x06 0x10 0x0B
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=113 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=19
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=19
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.63
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PA19 reported 26.63
    Debug:SENSOR:DS1820 - .. Pin 19 found! dsread=0
    Spoiler:






    Added after 21 [minutes]:

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Spoiler:
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PB11 reported 26.62
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PB11 reported 26.69
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PB11 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=51 / scratchPad[SCRATCHPAD_CRC]=51
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3448 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.94
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PB11 reported 26.94
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PB11 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PB11 reported 26.69
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PB11 reported 26.62
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PB11 reported 26.69
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PB11 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=51 / scratchPad[SCRATCHPAD_CRC]=51
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3448 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.94
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PB11 reported 26.94
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PB11 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PB11 reported 26.69
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PB11 reported 26.62
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PB11 reported 26.69
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PB11 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=51 / scratchPad[SCRATCHPAD_CRC]=51
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3448 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.94
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PB11 reported 26.94
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PB11 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=9
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=9
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=9
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=9 / scratchPad[SCRATCHPAD_CRC]=9
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3424 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.75
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PB11 reported 26.75
    Debug:SENSOR:DS1820 - .. Pin 9 found! dsread=0





    Added after 14 [minutes]:

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Spoiler:
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PB07 reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PB07 reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PB07 reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PB07 reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PB07 reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PB07 reported 26.69
    Debug:SENSOR:DS1820 - .. Pin 23 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 23 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 23 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 23 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 23 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=23
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=23
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=23
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PB07 reported 26.62
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=23
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=23
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=23
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PB07 reported 26.62
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=23
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=23
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=23
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PB07 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=23
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=23
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=23
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PB07 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=23
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=23
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=23
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=36 / scratchPad[SCRATCHPAD_CRC]=36
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3432 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PB07 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=23
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=23
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=23
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PB07 reported 26.69
    Debug:SENSOR:DS1820 - .. Pin 23 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 23 found! dsread=0





    Added after 1 [hours] 4 [minutes]:

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    S1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 26.44
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PA30 reported 26.44
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=30
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=30
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=30
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=10 / scratchPad[SCRATCHPAD_CRC]=10
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3400 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.56
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PA30 reported 26.56
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=30
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=30
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=30
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PA30 reported 26.69
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=30
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=30
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=30
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=11 / scratchPad[SCRATCHPAD_CRC]=11
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3408 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.62
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PA30 reported 26.62
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=30
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Error:SENSOR:DS1820 - Read CRC=51 != calculated:30 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xA8 0x01 0x7F 0x80 0x7F 0xFF 0x08 0x14 0x51
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=48 / scratchPad[SCRATCHPAD_CRC]=81
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=30
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Error:SENSOR:DS1820 - Read CRC=51 != calculated:2f (errcount=2)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xAA 0x01 0x7F 0xA0 0x7F 0xFF 0x08 0x10 0x51
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=47 / scratchPad[SCRATCHPAD_CRC]=81
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=30
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Error:SENSOR:DS1820 - Read CRC=51 != calculated:93 (errcount=3)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xA8 0x01 0x7F 0x80 0x7F 0xFF 0x08 0x18 0x51
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=147 / scratchPad[SCRATCHPAD_CRC]=81
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=30
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=30
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=81 / scratchPad[SCRATCHPAD_CRC]=81
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3392 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.50
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PA30 reported 26.50
    Debug:SENSOR:DS1820 - .. Pin 30 found! dsread=0





    Added after 8 [hours] 47 [minutes]:

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3200 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 25.00
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on P3 (PWM3) reported 25.00
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=141 / scratchPad[SCRATCHPAD_CRC]=141
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3184 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 24.88
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on P3 (PWM3) reported 24.88
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=170 / scratchPad[SCRATCHPAD_CRC]=170
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3208 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 25.06
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on P3 (PWM3) reported 25.06
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=189 / scratchPad[SCRATCHPAD_CRC]=189
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3224 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 25.19
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on P3 (PWM3) reported 25.19
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=189 / scratchPad[SCRATCHPAD_CRC]=189
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3224 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 25.19
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on P3 (PWM3) reported 25.19
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3200 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 25.00
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on P3 (PWM3) reported 25.00
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3200 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 25.00
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on P3 (PWM3) reported 25.00
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=155 / scratchPad[SCRATCHPAD_CRC]=155
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3192 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 24.94
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on P3 (PWM3) reported 24.94
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=170 / scratchPad[SCRATCHPAD_CRC]=170
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3208 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 25.06
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on P3 (PWM3) reported 25.06
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=189 / scratchPad[SCRATCHPAD_CRC]=189
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3224 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 25.19
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on P3 (PWM3) reported 25.19
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=189 / scratchPad[SCRATCHPAD_CRC]=189
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3224 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 25.19
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on P3 (PWM3) reported 25.19
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=3
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=3
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=3
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3200 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 25.00
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on P3 (PWM3) reported 25.00
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 3 found! dsread=0




    Added after 7 [minutes]:

    max4elektroda wrote:
    Tested o.k. here

    W800
    BL602
    ESP32S2
    ESP32


    checking, BK-N/T needs doing?

    Added after 17 [minutes]:

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=14
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=14
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=14
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=245 / scratchPad[SCRATCHPAD_CRC]=245
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3296 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 25.75
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PA22 reported 25.75
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=14
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=14
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=14
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=245 / scratchPad[SCRATCHPAD_CRC]=245
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3296 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 25.75
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PA22 reported 25.75
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=14
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=14
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=14
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=217 / scratchPad[SCRATCHPAD_CRC]=217
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3312 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 25.88
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PA22 reported 25.88
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=14
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=14
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=14
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=86 / scratchPad[SCRATCHPAD_CRC]=86
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3336 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.06
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PA22 reported 26.06
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=14
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=14
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=14
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=86 / scratchPad[SCRATCHPAD_CRC]=86
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3336 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.06
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PA22 reported 26.06
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=14
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=14
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=14
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=216 / scratchPad[SCRATCHPAD_CRC]=216
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3304 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 25.81
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PA22 reported 25.81
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 14 found! dsread=0


  • Helpful post
    #39 21603278
    divadiow
    Level 34  
    Screenshot of a forum post discussing problems detecting sensors on a BK7231T microcontroller.
    Screenshot of a forum thread discussing issues with detecting sensors on BK7231T.
    Screenshot of a forum post about problems detecting sensors on the BK7231T chip.
    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 1 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 1 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 1 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=1
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=1
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=1
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=182 / scratchPad[SCRATCHPAD_CRC]=182
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3600 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 28.12
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PA5 reported 28.12
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=1
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=1
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=1
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=160 / scratchPad[SCRATCHPAD_CRC]=160
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3608 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 28.19
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PA5 reported 28.19
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=1
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=1
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=1
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=153 / scratchPad[SCRATCHPAD_CRC]=153
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3624 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 28.31
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PA5 reported 28.31
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=1
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=1
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=1
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=142 / scratchPad[SCRATCHPAD_CRC]=142
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3640 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 28.44
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PA5 reported 28.44
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=1
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=1
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=1
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=152 / scratchPad[SCRATCHPAD_CRC]=152
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3632 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 28.38
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PA5 reported 28.38
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=1
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=1
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=1
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=180 / scratchPad[SCRATCHPAD_CRC]=180
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3616 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 28.25
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PA5 reported 28.25
    Debug:SENSOR:DS1820 - .. Pin 1 found! dsread=0




    Added after 15 [minutes]:


    Screenshot of the user interface showing no detected sensors on the BK7231T chip.
    Screenshot showing a forum post with comments about detecting sensors on the BK7231T chip.
    Screenshot showing a forum post about an issue detecting sensors on the BK7231T chip.

    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=26
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=26
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=26
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=153 / scratchPad[SCRATCHPAD_CRC]=153
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3624 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 28.31
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on PWM5 reported 28.31
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=26
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=26
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=26
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=176 / scratchPad[SCRATCHPAD_CRC]=176
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3648 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 28.50
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on PWM5 reported 28.50
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=26
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=26
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=26
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=234 / scratchPad[SCRATCHPAD_CRC]=234
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3664 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 28.62
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on PWM5 reported 28.62
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=26
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=26
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=26
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=26
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=26
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=26
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=232 / scratchPad[SCRATCHPAD_CRC]=232
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3680 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 28.75
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on PWM5 reported 28.75
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=26
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=26
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=26
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=176 / scratchPad[SCRATCHPAD_CRC]=176
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3648 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 28.50
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on PWM5 reported 28.50
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=26
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=26
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=26
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=235 / scratchPad[SCRATCHPAD_CRC]=235
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3656 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 28.56
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on PWM5 reported 28.56
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 26 found! dsread=0





    Added after 27 [minutes]:

    not getting any sensors detected on BK7231T. Tried most GPIOs
  • ADVERTISEMENT
  • #40 21603352
    max4elektroda
    Level 20  
    divadiow wrote:
    not getting any sensors detected on BK7231T. Tried most GPIOs

    Does DS1820 work on T with release firmware?
    Beken timing for usleep used to be kind of unreliable, but I don't recall in detail.

    There are some other changes to Beken timing possible, but I wanted to do only changes to DS1820 code here ...
  • #41 21603354
    divadiow
    Level 34  
    Hmm. Actually can't remember. Bear with

    Added after 21 [minutes]:

    weird. no. shows twice. tried 4 IOs. 1.18.134

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    startdriver ds1820 in startup command and DS1820_IO set in config/reboot each time.
  • #42 21603506
    max4elektroda
    Level 20  
    divadiow wrote:
    weird. no. shows twice. tried 4 IOs. 1.18.134

    That's true for all simple drivers in release. When the command for HTTP output was extended to display something before or inside the state div, we forgot the DS1820 driver, so it's displayed (wrongly) as a static entry once before the part where the updates are shown.

    The main information is I didn't break the behavior, it (doesn't) work, as it was doing before.

    Let's focus on getting this merged and then try another fix for Beken timing.
  • #43 21603535
    divadiow
    Level 34  


    A group of four people sitting at a table in a bright room, discussing documents.
    No image provided for analysis.
    A man and a woman sit together at a table, looking at a laptop.
    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 34 found! dsread=0
    8 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 26.81
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on IO34 reported 26.81
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=34
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=34
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=34
    Error:SENSOR:DS1820 - Read CRC=25 != calculated:44 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xAE 0x01 0x7F 0x80 0x7F 0xFF 0x02 0x14 0x25
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=68 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=34
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=34
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=34
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=37 / scratchPad[SCRATCHPAD_CRC]=37
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3440 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 26.88
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on IO34 reported 26.88
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=34
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=34
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=34
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=51 / scratchPad[SCRATCHPAD_CRC]=51
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3448 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 26.94
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on IO34 reported 26.94
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=34
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Error:SENSOR:DS1820 - Read CRC=1d != calculated:da (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xAB 0x41 0x7F 0x80 0x7F 0xFF 0x05 0x10 0x1D
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=218 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=34
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Error:SENSOR:DS1820 - Read CRC=1d != calculated:32 (errcount=2)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xAB 0x01 0x7F 0x80 0x7F 0xFF 0x85 0x10 0x1D
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=50 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=34
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Error:SENSOR:DS1820 - Read CRC=5d != calculated:1d (errcount=3)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xAB 0x01 0x7F 0x80 0x7F 0xFF 0x05 0x10 0x5D
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=93
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=34
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=34
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=29 / scratchPad[SCRATCHPAD_CRC]=29
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3416 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 26.69
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on IO34 reported 26.69
    Debug:SENSOR:DS1820 - .. Pin 34 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 34 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion




    Added after 22 [minutes]:

    ESP32-C6 I don't seem to get any detections on on any of the GPIOs I've tried - maybe 6 or 7
  • #44 21603592
    max4elektroda
    Level 20  
    Nothing at all or CRC failures with read values != FF ?
    This is an indication if timing only "bad" (so it's reading something, but with many errors) or is it totally out of range (we'll read only FF on the line).

    If it's not too much, could you again try with release in this case?
  • #45 21603597
    divadiow
    Level 34  
    ah yes. I didn't give enough info re C6. 0 sensors detected, not just read fails. Will do C6 properly
  • #46 21603599
    max4elektroda
    Level 20  
    Hey, it's not you to "apologize", for all your test, it's me asking for more input!
  • #48 21604374
    divadiow
    Level 34  


    single sensor general release
    A log excerpt showing diagnostic messages from a DS1820 temperature sensor, including readings and CRC errors.
    Code: Text
    Log in, to see the code


    single sensor simple. PR
    Screenshot showing diagnostic messages and errors from DS18B20 temperature sensor operation.

    multi sensor full. PR

    Screenshot showing DS1820 sensor temperature readings and CRC error messages in a system log.
    Screenshot of diagnostic logs for a DS1820 temperature sensor, showing temperature readings and CRC error messages.
    Screenshot showing system log messages about DS1820 sensor operation, including temperature readings and CRC errors.
    Spoiler:
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    r device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=2 / scratchPad[SCRATCHPAD_CRC]=2
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3464 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 27.06
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on IO7 reported 27.06
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=181 / scratchPad[SCRATCHPAD_CRC]=181
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3456 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 27.00
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on IO7 reported 27.00
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=181 / scratchPad[SCRATCHPAD_CRC]=181
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3456 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 27.00
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on IO7 reported 27.00
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=1 / scratchPad[SCRATCHPAD_CRC]=1
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3488 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 27.25
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on IO7 reported 27.25
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=44 / scratchPad[SCRATCHPAD_CRC]=44
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3496 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 27.31
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on IO7 reported 27.31
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=3 / scratchPad[SCRATCHPAD_CRC]=3
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3472 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 27.12
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on IO7 reported 27.12
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=2 / scratchPad[SCRATCHPAD_CRC]=2
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3464 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 27.06
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on IO7 reported 27.06
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0
    Info:SENSOR:DS1820 - Starting conversion
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=1
    Info:SENSOR:DS1820 - Reading temperature from 6 DS18B20 sensor(s)
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=7
    Error:SENSOR:DS1820 - Read CRC=ff != calculated:c9 (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=201 / scratchPad[SCRATCHPAD_CRC]=255
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 0 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=51 / scratchPad[SCRATCHPAD_CRC]=51
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3448 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 0 (0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78) reported 26.94
    Info:SENSOR:DS1820 - Sensor 0x28 0x44 0x02 0x5B 0x00 0x00 0x00 0x78 on IO7 reported 26.94
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Error:SENSOR:DS1820 - Read CRC=b5 != calculated:9a (errcount=1)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xB0 0x01 0x7F 0x80 0x7F 0xFF 0x90 0x10 0xB5
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=154 / scratchPad[SCRATCHPAD_CRC]=181
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Error:SENSOR:DS1820 - Read CRC=b5 != calculated:8b (errcount=2)
    Error:SENSOR:DS1820 - Scratchpad Data Read: 0xB0 0x01 0x7F 0x88 0x7F 0xFF 0x10 0x10 0xB5
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 0 - Crc8CQuick=139 / scratchPad[SCRATCHPAD_CRC]=181
    Debug:SENSOR:DS1820 - Device not connected
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported -127.00
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 1 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=181 / scratchPad[SCRATCHPAD_CRC]=181
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3456 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 1 (0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65) reported 27.00
    Info:SENSOR:DS1820 - Sensor 0x28 0xA6 0xB2 0x55 0x00 0x00 0x00 0x65 on IO7 reported 27.00
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 2 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=1 / scratchPad[SCRATCHPAD_CRC]=1
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3488 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 2 (0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3) reported 27.25
    Info:SENSOR:DS1820 - Sensor 0x28 0x5E 0x34 0x59 0x00 0x00 0x00 0xF3 on IO7 reported 27.25
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 3 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=44 / scratchPad[SCRATCHPAD_CRC]=44
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3496 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 3 (0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF) reported 27.31
    Info:SENSOR:DS1820 - Sensor 0x28 0xF9 0x28 0x5A 0x00 0x00 0x00 0xFF on IO7 reported 27.31
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 4 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=21 / scratchPad[SCRATCHPAD_CRC]=21
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3480 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 4 (0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C) reported 27.19
    Info:SENSOR:DS1820 - Sensor 0x28 0xFD 0xAB 0x55 0x00 0x00 0x00 0x3C on IO7 reported 27.19
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=7
    Debug:SENSOR:DS1820 - GPIO found for device - DS18B20_GPIO=7
    Debug:SENSOR:DS1820 - Found device at index 5 - GPIO=7
    Debug:SENSOR:DS1820 - ds18b20_readScratchPad returned 1 - Crc8CQuick=181 / scratchPad[SCRATCHPAD_CRC]=181
    Debug:SENSOR:DS1820 - ds18b20_Scratchpat2TempC: family=28, raw=3456 (12 bit resolution)
    Debug:SENSOR:DS1820 - Device 5 (0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA) reported 27.00
    Info:SENSOR:DS1820 - Sensor 0x28 0x33 0x03 0x57 0x00 0x00 0x00 0xBA on IO7 reported 27.00
    Debug:SENSOR:DS1820 - .. Pin 7 found! dsread=0


    C6 false alarm! :D

    also, has this changed? I've not tried it much, but C6 and some other platform it didn't work

    Screenshot of system logs showing temperature readings from a DS1820 temperature sensor.

    Added after 13 [minutes]:




    like T, U detects no sensors with GA or PR release, single and multi sensor - full/simple.

    Log output showing DS1820 sensor readings and CRC errors during sensor family detection.

    Code: Text
    Log in, to see the code


  • #49 21604410
    max4elektroda
    Level 20  
    divadiow wrote:
    also, has this changed?

    Yep, sorry if I didn't write that. To make clear it belongs to the full driver, it's "DS1820_FULL_scansensors" now.

    Added after 6 [minutes]:

    I really appreciate all your support, thanks so much.

    So up to now, all platforms behave like before, if I got it right, no broken one?
    Any additional hints on what is unclear or should be changed?

    Then I think it's o.k. to merge, the only open part is to change obk_config to integrate full driver only to "sensors" builds as default?
  • ADVERTISEMENT
  • #50 21604425
    divadiow
    Level 34  
    max4elektroda wrote:
    So up to now, all platforms behave like before, if I got it right, no broken one?
    Any additional hints on what is unclear or should be changed?


    now that ESP32 is fixed, it does seem pretty consistent/good!

    I think the only thing was the need to change -1 channel to something real and that those DS18B20 channels shouldn't be in use elsewhere. On the face of it it appears all good.

    I guess EXTENSIVE testing in real/different situations might highlight new issues, but that will always be the case, with anything, I guess.
  • #51 21604476
    max4elektroda
    Level 20  
    Regarding the channels for full driver: I took the -1 as an unused channel from other code, e.g. in AHT2X driver. But to make maybe I should change the output to "-" or "unset" in this case?

    Will also try a simple check for used channels, but this should be done as a general check.
    Just need to think about the rules, for equal channels are e.g. intentionally used for relay and buttons.
  • #52 21604487
    divadiow
    Level 34  
    Yeh, or maybe it's fine for now? Or just text above to say something or ..dunno
  • #53 21605080
    max4elektroda
    Level 20  
    I changed the "FULL" driver (only HTML output, so no need to test on multiple platforms).
    Do you think it's better now?
    On main page, unset channels are "-":
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
    on the config page, they are "empty":

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Also you should no longer be able to assign a channel already in use

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
  • #54 21605087
    p.kaczmarek2
    Moderator Smart Home
    Nice, but why quotation marks for ID hex string?
    Helpful post? Buy me a coffee.
  • #55 21605116
    max4elektroda
    Level 20  
    p.kaczmarek2 wrote:
    Nice, but why quotation marks for ID hex string?

    It's the aftermath of the older approach when it was a string of hex in form "0x01 0x02 ...".
    Since there are no more whitespaces it should work without, too.
  • #56 21605804
    divadiow
    Level 34  
    cool
    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    looks good. couple of things. address has two Ds

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO

    and for consistency a capital S in menu?

    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO
  • #57 21605832
    max4elektroda
    Level 20  
    Good to have someone to take care of my language ;-) Thanks, changed!


    Extending DS18(B)20 driver - multiple GPIOs and multiple sensors per GPIO


    Screenshot showing a code snippet with comments and a table of driver sizes for different OpenBeken platforms.

    I think it's o.k. now?

    As last action, I would disable "FULL" driver as default for all platforms using DS1820 and enable it in only in "sensors" build?

    Added after 50 [minutes]:

    OK, did change obk_config accordingly.

    For "simple" driver size varies around +-50 bytes mainly (with maximum between -380 [OpenBK7231T] and +332 [OpenECR6600))

    Full driver is +5k to +9k


    Spoiler:

    2453043 Jul 12 07:32 Release/obkSimulator_1.18.135.zip
    2458499 Jul 13 18:49 DS1820/obkSimulator_1705_merge_c8d6084d1d52.zip
    DS1820 to Release:= +5456


    1253376 Jul 12 07:32 Release/OpenBK7231M_ALT_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7231M_ALT_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1220464 Jul 12 07:32 Release/OpenBK7231M_QIO_1.18.135.bin
    1220464 Jul 13 18:49 DS1820/OpenBK7231M_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    904737 Jul 12 07:32 Release/OpenBK7231N_1.18.135_berry.bin
    904401 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= -336


    567712 Jul 12 07:32 Release/OpenBK7231N_1.18.135_berry.rbl
    567680 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_berry.rbl
    DS1820 to Release:= -32


    801633 Jul 12 07:32 Release/OpenBK7231N_1.18.135.bin
    801273 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= -360


    900885 Jul 12 07:32 Release/OpenBK7231N_1.18.135_irRemoteESP.bin
    900933 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= +48


    565280 Jul 12 07:32 Release/OpenBK7231N_1.18.135_irRemoteESP.rbl
    565280 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_irRemoteESP.rbl
    DS1820 to Release:= 0


    783613 Jul 12 07:32 Release/OpenBK7231N_1.18.135_powerMetering.bin
    783661 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= +48


    504256 Jul 12 07:32 Release/OpenBK7231N_1.18.135_powerMetering.rbl
    504224 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_powerMetering.rbl
    DS1820 to Release:= -32


    503296 Jul 12 07:32 Release/OpenBK7231N_1.18.135.rbl
    503200 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= -96


    784321 Jul 12 07:32 Release/OpenBK7231N_1.18.135_sensors.bin
    793681 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= +9360


    491600 Jul 12 07:32 Release/OpenBK7231N_1.18.135_sensors.rbl
    496512 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_sensors.rbl
    DS1820 to Release:= +4912


    780173 Jul 12 07:32 Release/OpenBK7231N_1.18.135_tuyaMCU.bin
    780221 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= +48


    502112 Jul 12 07:32 Release/OpenBK7231N_1.18.135_tuyaMCU.rbl
    502144 Jul 13 18:49 DS1820/OpenBK7231N_1705_merge_c8d6084d1d52_tuyaMCU.rbl
    DS1820 to Release:= +32


    504224 Jul 12 07:32 Release/OpenBK7231N_ALT_1.18.135.rbl
    504224 Jul 13 18:49 DS1820/OpenBK7231N_ALT_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= 0


    1253376 Jul 12 07:32 Release/OpenBK7231N_ALT_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7231N_ALT_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7231N_ALT_UA_1.18.135.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7231N_ALT_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1220464 Jul 12 07:32 Release/OpenBK7231N_QIO_1.18.135_berry.bin
    1220464 Jul 13 18:49 DS1820/OpenBK7231N_QIO_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= 0


    1220464 Jul 12 07:32 Release/OpenBK7231N_QIO_1.18.135.bin
    1220464 Jul 13 18:49 DS1820/OpenBK7231N_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1220464 Jul 12 07:32 Release/OpenBK7231N_QIO_1.18.135_irRemoteESP.bin
    1220464 Jul 13 18:49 DS1820/OpenBK7231N_QIO_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= 0


    1220464 Jul 12 07:32 Release/OpenBK7231N_QIO_1.18.135_powerMetering.bin
    1220464 Jul 13 18:49 DS1820/OpenBK7231N_QIO_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= 0


    1220464 Jul 12 07:32 Release/OpenBK7231N_QIO_1.18.135_sensors.bin
    1220464 Jul 13 18:49 DS1820/OpenBK7231N_QIO_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= 0


    1220464 Jul 12 07:32 Release/OpenBK7231N_QIO_1.18.135_tuyaMCU.bin
    1220464 Jul 13 18:49 DS1820/OpenBK7231N_QIO_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= 0


    1150832 Jul 12 07:32 Release/OpenBK7231N_UA_1.18.135_berry.bin
    1150832 Jul 13 18:49 DS1820/OpenBK7231N_UA_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= 0


    1150832 Jul 12 07:32 Release/OpenBK7231N_UA_1.18.135.bin
    1150832 Jul 13 18:49 DS1820/OpenBK7231N_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1150832 Jul 12 07:32 Release/OpenBK7231N_UA_1.18.135_irRemoteESP.bin
    1150832 Jul 13 18:49 DS1820/OpenBK7231N_UA_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= 0


    1150832 Jul 12 07:32 Release/OpenBK7231N_UA_1.18.135_powerMetering.bin
    1150832 Jul 13 18:49 DS1820/OpenBK7231N_UA_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= 0


    1150832 Jul 12 07:32 Release/OpenBK7231N_UA_1.18.135_sensors.bin
    1150832 Jul 13 18:49 DS1820/OpenBK7231N_UA_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= 0


    1150832 Jul 12 07:32 Release/OpenBK7231N_UA_1.18.135_tuyaMCU.bin
    1150832 Jul 13 18:49 DS1820/OpenBK7231N_UA_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= 0


    567744 Jul 12 07:32 Release/OpenBK7231N_UG_1.18.135_berry.bin
    567712 Jul 13 18:49 DS1820/OpenBK7231N_UG_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= -32


    503328 Jul 12 07:32 Release/OpenBK7231N_UG_1.18.135.bin
    503232 Jul 13 18:49 DS1820/OpenBK7231N_UG_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= -96


    565312 Jul 12 07:32 Release/OpenBK7231N_UG_1.18.135_irRemoteESP.bin
    565312 Jul 13 18:49 DS1820/OpenBK7231N_UG_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= 0


    504288 Jul 12 07:32 Release/OpenBK7231N_UG_1.18.135_powerMetering.bin
    504256 Jul 13 18:49 DS1820/OpenBK7231N_UG_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= -32


    491632 Jul 12 07:32 Release/OpenBK7231N_UG_1.18.135_sensors.bin
    496544 Jul 13 18:49 DS1820/OpenBK7231N_UG_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= +4912


    502144 Jul 12 07:32 Release/OpenBK7231N_UG_1.18.135_tuyaMCU.bin
    502176 Jul 13 18:49 DS1820/OpenBK7231N_UG_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= +32


    872457 Jul 12 07:32 Release/OpenBK7231T_1.18.135_berry.bin
    872073 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= -384


    544368 Jul 12 07:32 Release/OpenBK7231T_1.18.135_berry.rbl
    544336 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_berry.rbl
    DS1820 to Release:= -32


    769321 Jul 12 07:32 Release/OpenBK7231T_1.18.135.bin
    768993 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= -328


    876141 Jul 12 07:32 Release/OpenBK7231T_1.18.135_irRemoteESP.bin
    876189 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= +48


    547008 Jul 12 07:32 Release/OpenBK7231T_1.18.135_irRemoteESP.rbl
    547008 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_irRemoteESP.rbl
    DS1820 to Release:= 0


    752925 Jul 12 07:32 Release/OpenBK7231T_1.18.135_powerMetering.bin
    752965 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= +40


    482016 Jul 12 07:32 Release/OpenBK7231T_1.18.135_powerMetering.rbl
    482032 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_powerMetering.rbl
    DS1820 to Release:= +16


    479104 Jul 12 07:32 Release/OpenBK7231T_1.18.135.rbl
    479104 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= 0


    753497 Jul 12 07:32 Release/OpenBK7231T_1.18.135_sensors.bin
    762881 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= +9384


    468752 Jul 12 07:32 Release/OpenBK7231T_1.18.135_sensors.rbl
    473824 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_sensors.rbl
    DS1820 to Release:= +5072


    750853 Jul 12 07:32 Release/OpenBK7231T_1.18.135_tuyaMCU.bin
    750901 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= +48


    480784 Jul 12 07:32 Release/OpenBK7231T_1.18.135_tuyaMCU.rbl
    480784 Jul 13 18:49 DS1820/OpenBK7231T_1705_merge_c8d6084d1d52_tuyaMCU.rbl
    DS1820 to Release:= 0


    515296 Jul 12 07:32 Release/OpenBK7231T_ALT_1.18.135.rbl
    515120 Jul 13 18:49 DS1820/OpenBK7231T_ALT_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= -176


    1253376 Jul 12 07:32 Release/OpenBK7231T_ALT_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7231T_ALT_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7231T_ALT_UA_1.18.135.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7231T_ALT_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1048576 Jul 12 07:32 Release/OpenBK7231T_QIO_1.18.135_berry.bin
    1048576 Jul 13 18:49 DS1820/OpenBK7231T_QIO_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= 0


    1048576 Jul 12 07:32 Release/OpenBK7231T_QIO_1.18.135.bin
    1048576 Jul 13 18:49 DS1820/OpenBK7231T_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1048576 Jul 12 07:32 Release/OpenBK7231T_QIO_1.18.135_irRemoteESP.bin
    1048576 Jul 13 18:49 DS1820/OpenBK7231T_QIO_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= 0


    1048576 Jul 12 07:32 Release/OpenBK7231T_QIO_1.18.135_powerMetering.bin
    1048576 Jul 13 18:49 DS1820/OpenBK7231T_QIO_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= 0


    1048576 Jul 12 07:32 Release/OpenBK7231T_QIO_1.18.135_sensors.bin
    1048576 Jul 13 18:49 DS1820/OpenBK7231T_QIO_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= 0


    1048576 Jul 12 07:32 Release/OpenBK7231T_QIO_1.18.135_tuyaMCU.bin
    1048576 Jul 13 18:49 DS1820/OpenBK7231T_QIO_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= 0


    978944 Jul 12 07:32 Release/OpenBK7231T_UA_1.18.135_berry.bin
    978944 Jul 13 18:49 DS1820/OpenBK7231T_UA_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= 0


    978944 Jul 12 07:32 Release/OpenBK7231T_UA_1.18.135.bin
    978944 Jul 13 18:49 DS1820/OpenBK7231T_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    978944 Jul 12 07:32 Release/OpenBK7231T_UA_1.18.135_irRemoteESP.bin
    978944 Jul 13 18:49 DS1820/OpenBK7231T_UA_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= 0


    978944 Jul 12 07:32 Release/OpenBK7231T_UA_1.18.135_powerMetering.bin
    978944 Jul 13 18:49 DS1820/OpenBK7231T_UA_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= 0


    978944 Jul 12 07:32 Release/OpenBK7231T_UA_1.18.135_sensors.bin
    978944 Jul 13 18:49 DS1820/OpenBK7231T_UA_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= 0


    978944 Jul 12 07:32 Release/OpenBK7231T_UA_1.18.135_tuyaMCU.bin
    978944 Jul 13 18:49 DS1820/OpenBK7231T_UA_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= 0


    544400 Jul 12 07:32 Release/OpenBK7231T_UG_1.18.135_berry.bin
    544368 Jul 13 18:49 DS1820/OpenBK7231T_UG_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= -32


    479136 Jul 12 07:32 Release/OpenBK7231T_UG_1.18.135.bin
    479136 Jul 13 18:49 DS1820/OpenBK7231T_UG_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    547040 Jul 12 07:32 Release/OpenBK7231T_UG_1.18.135_irRemoteESP.bin
    547040 Jul 13 18:49 DS1820/OpenBK7231T_UG_1705_merge_c8d6084d1d52_irRemoteESP.bin
    DS1820 to Release:= 0


    482048 Jul 12 07:32 Release/OpenBK7231T_UG_1.18.135_powerMetering.bin
    482064 Jul 13 18:49 DS1820/OpenBK7231T_UG_1705_merge_c8d6084d1d52_powerMetering.bin
    DS1820 to Release:= +16


    468784 Jul 12 07:32 Release/OpenBK7231T_UG_1.18.135_sensors.bin
    473856 Jul 13 18:49 DS1820/OpenBK7231T_UG_1705_merge_c8d6084d1d52_sensors.bin
    DS1820 to Release:= +5072


    480816 Jul 12 07:32 Release/OpenBK7231T_UG_1.18.135_tuyaMCU.bin
    480816 Jul 13 18:49 DS1820/OpenBK7231T_UG_1705_merge_c8d6084d1d52_tuyaMCU.bin
    DS1820 to Release:= 0


    516352 Jul 12 07:32 Release/OpenBK7231U_1.18.135.rbl
    516208 Jul 13 18:49 DS1820/OpenBK7231U_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= -144


    1253376 Jul 12 07:32 Release/OpenBK7231U_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7231U_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7231U_UA_1.18.135.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7231U_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    568448 Jul 12 07:32 Release/OpenBK7238_1.18.135_berry.rbl
    568304 Jul 13 18:49 DS1820/OpenBK7238_1705_merge_c8d6084d1d52_berry.rbl
    DS1820 to Release:= -144


    504544 Jul 12 07:32 Release/OpenBK7238_1.18.135.rbl
    504432 Jul 13 18:49 DS1820/OpenBK7238_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= -112


    1253376 Jul 12 07:32 Release/OpenBK7238_QIO_1.18.135_berry.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7238_QIO_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= 0


    1253376 Jul 12 07:32 Release/OpenBK7238_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7238_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7238_UA_1.18.135_berry.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7238_UA_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7238_UA_1.18.135.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7238_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    523280 Jul 12 07:32 Release/OpenBK7252_1.18.135.rbl
    523200 Jul 13 18:49 DS1820/OpenBK7252_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= -80


    509776 Jul 12 07:32 Release/OpenBK7252N_1.18.135.rbl
    509712 Jul 13 18:49 DS1820/OpenBK7252N_1705_merge_c8d6084d1d52.rbl
    DS1820 to Release:= -64


    1253376 Jul 12 07:32 Release/OpenBK7252N_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7252N_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7252N_UA_1.18.135.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7252N_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1253376 Jul 12 07:32 Release/OpenBK7252_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7252_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1253376 Jul 12 07:32 Release/OpenBK7252_Tuya_QIO_1.18.135.bin
    1253376 Jul 13 18:49 DS1820/OpenBK7252_Tuya_QIO_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7252_Tuya_UA_1.18.135.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7252_Tuya_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    1183744 Jul 12 07:32 Release/OpenBK7252_UA_1.18.135.bin
    1183744 Jul 13 18:49 DS1820/OpenBK7252_UA_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    919280 Jul 12 07:32 Release/OpenBL602_1.18.135_berry.bin
    919280 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52_berry.bin
    DS1820 to Release:= 0


    923376 Jul 12 07:32 Release/OpenBL602_1.18.135_berry_OTA.bin
    923376 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52_berry_OTA.bin
    DS1820 to Release:= 0


    508684 Jul 12 07:32 Release/OpenBL602_1.18.135_berry_OTA.bin.xz
    508624 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52_berry_OTA.bin.xz
    DS1820 to Release:= -60


    509196 Jul 12 07:32 Release/OpenBL602_1.18.135_berry_OTA.bin.xz.ota
    509136 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52_berry_OTA.bin.xz.ota
    DS1820 to Release:= -60


    794248 Jul 12 07:32 Release/OpenBL602_1.18.135.bin
    794264 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= +16


    798352 Jul 12 07:32 Release/OpenBL602_1.18.135_OTA.bin
    798368 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52_OTA.bin
    DS1820 to Release:= +16


    440940 Jul 12 07:32 Release/OpenBL602_1.18.135_OTA.bin.xz
    440932 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52_OTA.bin.xz
    DS1820 to Release:= -8


    441452 Jul 12 07:32 Release/OpenBL602_1.18.135_OTA.bin.xz.ota
    441444 Jul 13 18:49 DS1820/OpenBL602_1705_merge_c8d6084d1d52_OTA.bin.xz.ota
    DS1820 to Release:= -8


    870589 Jul 12 07:32 Release/OpenECR6600_1.18.135.bin
    870921 Jul 13 18:49 DS1820/OpenECR6600_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= +332


    464012 Jul 12 07:32 Release/OpenECR6600_1.18.135_ota.img
    464093 Jul 13 18:49 DS1820/OpenECR6600_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= +81


    1039184 Jul 12 07:32 Release/OpenESP32_1.18.135_4M.factory.bin
    1039136 Jul 13 18:49 DS1820/OpenESP32_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= -48


    973648 Jul 12 07:32 Release/OpenESP32_1.18.135_4M.img
    973600 Jul 13 18:49 DS1820/OpenESP32_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= -48


    879520 Jul 12 07:32 Release/OpenESP32C2_1.18.135_2M.factory.bin
    879520 Jul 13 18:49 DS1820/OpenESP32C2_1705_merge_c8d6084d1d52_2M.factory.bin
    DS1820 to Release:= 0


    813984 Jul 12 07:32 Release/OpenESP32C2_1.18.135_2M.img
    813984 Jul 13 18:49 DS1820/OpenESP32C2_1705_merge_c8d6084d1d52_2M.img
    DS1820 to Release:= 0


    1007552 Jul 12 07:32 Release/OpenESP32C2_1.18.135_4M.factory.bin
    1007552 Jul 13 18:49 DS1820/OpenESP32C2_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= 0


    942016 Jul 12 07:32 Release/OpenESP32C2_1.18.135_4M.img
    942016 Jul 13 18:49 DS1820/OpenESP32C2_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= 0


    990064 Jul 12 07:32 Release/OpenESP32C3_1.18.135_2M.factory.bin
    990096 Jul 13 18:49 DS1820/OpenESP32C3_1705_merge_c8d6084d1d52_2M.factory.bin
    DS1820 to Release:= +32


    924528 Jul 12 07:32 Release/OpenESP32C3_1.18.135_2M.img
    924560 Jul 13 18:49 DS1820/OpenESP32C3_1705_merge_c8d6084d1d52_2M.img
    DS1820 to Release:= +32


    1118000 Jul 12 07:32 Release/OpenESP32C3_1.18.135_4M.factory.bin
    1118032 Jul 13 18:49 DS1820/OpenESP32C3_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= +32


    1052464 Jul 12 07:32 Release/OpenESP32C3_1.18.135_4M.img
    1052496 Jul 13 18:49 DS1820/OpenESP32C3_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= +32


    1198688 Jul 12 07:32 Release/OpenESP32C5_1.18.135_4M.factory.bin
    1198704 Jul 13 18:49 DS1820/OpenESP32C5_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= +16


    1133152 Jul 12 07:32 Release/OpenESP32C5_1.18.135_4M.img
    1133168 Jul 13 18:49 DS1820/OpenESP32C5_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= +16


    1149936 Jul 12 07:32 Release/OpenESP32C61_1.18.135_4M.factory.bin
    1149952 Jul 13 18:49 DS1820/OpenESP32C61_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= +16


    1084400 Jul 12 07:32 Release/OpenESP32C61_1.18.135_4M.img
    1084416 Jul 13 18:49 DS1820/OpenESP32C61_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= +16


    1212720 Jul 12 07:32 Release/OpenESP32C6_1.18.135_4M.factory.bin
    1212736 Jul 13 18:49 DS1820/OpenESP32C6_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= +16


    1147184 Jul 12 07:32 Release/OpenESP32C6_1.18.135_4M.img
    1147200 Jul 13 18:49 DS1820/OpenESP32C6_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= +16


    1011040 Jul 12 07:32 Release/OpenESP32S2_1.18.135_4M.factory.bin
    1011072 Jul 13 18:49 DS1820/OpenESP32S2_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= +32


    945504 Jul 12 07:32 Release/OpenESP32S2_1.18.135_4M.img
    945536 Jul 13 18:49 DS1820/OpenESP32S2_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= +32


    1036960 Jul 12 07:32 Release/OpenESP32S3_1.18.135_4M.factory.bin
    1036960 Jul 13 18:49 DS1820/OpenESP32S3_1705_merge_c8d6084d1d52_4M.factory.bin
    DS1820 to Release:= 0


    971424 Jul 12 07:32 Release/OpenESP32S3_1.18.135_4M.img
    971424 Jul 13 18:49 DS1820/OpenESP32S3_1705_merge_c8d6084d1d52_4M.img
    DS1820 to Release:= 0


    698160 Jul 12 07:32 Release/OpenESP8266_1.18.135.img
    698176 Jul 13 18:49 DS1820/OpenESP8266_1705_merge_c8d6084d1d52.img
    DS1820 to Release:= +16


    763696 Jul 12 07:32 Release/OpenESP8266_1MB_1.18.135.factory.bin
    763712 Jul 13 18:49 DS1820/OpenESP8266_1MB_1705_merge_c8d6084d1d52.factory.bin
    DS1820 to Release:= +16


    763696 Jul 12 07:32 Release/OpenESP8266_2MB_1.18.135.factory.bin
    763712 Jul 13 18:49 DS1820/OpenESP8266_2MB_1705_merge_c8d6084d1d52.factory.bin
    DS1820 to Release:= +16


    797988 Jul 12 07:32 Release/OpenLN882H_1.18.135.bin
    798044 Jul 13 18:49 DS1820/OpenLN882H_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= +56


    437285 Jul 12 07:32 Release/OpenLN882H_1.18.135_OTA.bin
    437255 Jul 13 18:49 DS1820/OpenLN882H_1705_merge_c8d6084d1d52_OTA.bin
    DS1820 to Release:= -30


    778264 Jul 12 07:32 Release/OpenRTL8710A_1.18.135.bin
    778264 Jul 13 18:49 DS1820/OpenRTL8710A_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    733212 Jul 12 07:32 Release/OpenRTL8710A_1.18.135_ota.img
    733212 Jul 13 18:49 DS1820/OpenRTL8710A_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= 0


    626452 Jul 12 07:32 Release/OpenRTL8710B_1.18.135.bin
    626468 Jul 13 18:49 DS1820/OpenRTL8710B_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= +16


    1252912 Jul 12 07:32 Release/OpenRTL8710B_1.18.135_ota.img
    1252944 Jul 13 18:49 DS1820/OpenRTL8710B_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= +32


    978944 Jul 12 07:32 Release/OpenRTL8720D_1.18.135.bin
    978944 Jul 13 18:49 DS1820/OpenRTL8720D_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= 0


    954400 Jul 12 07:32 Release/OpenRTL8720D_1.18.135_ota.img
    954400 Jul 13 18:49 DS1820/OpenRTL8720D_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= 0


    881284 Jul 12 07:32 Release/OpenRTL87X0C_1.18.135.bin
    881348 Jul 13 18:49 DS1820/OpenRTL87X0C_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= +64


    815748 Jul 12 07:32 Release/OpenRTL87X0C_1.18.135_ota.img
    815812 Jul 13 18:49 DS1820/OpenRTL87X0C_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= +64


    653908 Jul 12 07:32 Release/OpenTR6260_1.18.135.bin
    653936 Jul 13 18:49 DS1820/OpenTR6260_1705_merge_c8d6084d1d52.bin
    DS1820 to Release:= +28


    549312 Jul 12 07:32 Release/OpenW600_1.18.135.fls
    549280 Jul 13 18:49 DS1820/OpenW600_1705_merge_c8d6084d1d52.fls
    DS1820 to Release:= -32


    334500 Jul 12 07:32 Release/OpenW600_1.18.135_gz.img
    334508 Jul 13 18:49 DS1820/OpenW600_1705_merge_c8d6084d1d52_gz.img
    DS1820 to Release:= +8


    694292 Jul 12 07:32 Release/OpenW800_1.18.135.fls
    694060 Jul 13 18:49 DS1820/OpenW800_1705_merge_c8d6084d1d52.fls
    DS1820 to Release:= -232


    415712 Jul 12 07:32 Release/OpenW800_1.18.135_ota.img
    415584 Jul 13 18:49 DS1820/OpenW800_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= -128


    868192 Jul 12 07:32 Release/OpenXR806_1.18.135.img
    868192 Jul 13 18:49 DS1820/OpenXR806_1705_merge_c8d6084d1d52.img
    DS1820 to Release:= 0


    493972 Jul 12 07:32 Release/OpenXR806_1.18.135_ota.img
    494048 Jul 13 18:49 DS1820/OpenXR806_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= +76


    911144 Jul 12 07:32 Release/OpenXR809_1.18.135.img
    911144 Jul 13 18:49 DS1820/OpenXR809_1705_merge_c8d6084d1d52.img
    DS1820 to Release:= 0


    796504 Jul 12 07:32 Release/OpenXR872_1.18.135.img
    796504 Jul 13 18:49 DS1820/OpenXR872_1705_merge_c8d6084d1d52.img
    DS1820 to Release:= 0


    446220 Jul 12 07:32 Release/OpenXR872_1.18.135_ota.img
    446264 Jul 13 18:49 DS1820/OpenXR872_1705_merge_c8d6084d1d52_ota.img
    DS1820 to Release:= +44
  • #58 21610783
    max4elektroda
    Level 20  
    Is there anything else missing, @p.kaczmarek2 ?
    There's always room for improvement, but I think it's ready to merge now.
  • #59 21610799
    p.kaczmarek2
    Moderator Smart Home
    Just to be sure - nothing was broken by changes to HAL_Delay_us ?
    Helpful post? Buy me a coffee.
  • #60 21610803
    max4elektroda
    Level 20  
    The actual PR 1705 doesn't change anything regarding HAL_Delay_us, only the DS1820 internal usage.
    Thanks to @divadiow we tested all platforms with the result that it works as before. If it was working before, it still is.

    I also have a possible change for us with Beken (mainly from git user rpv-toms), but I don't want to mix it, so PR#1705 is only changing DS1820 drivers itself. That was the problem with my first PR that it also changed timing...

    Added after 20 [minutes]:

    BTW we should agree on some changes to channel handling, since I struggled with some possible issues there when trying to find used channels.
    E.g. it took me quite some time to find out why channel 0 was said to be used by DS1820 if it wasn't.
    But the first non default role will always report 0 as used on its secondary channel.

    It's not fixed in this PR, this is a general question, minimum fix is already tested locally (only report channels in use up to channels possible for a role).
    But then we should agree if this alone is sufficient or e.g. if changing a role we should also (re)set the unused channels. Which leads to the question, how an unused channel is marked...

    Added after 26 [minutes]:

    Thanks for merging!

    Opened PR#1725 for the mentioned "issue".
📢 Listen (AI):

Topic summary

The discussion centers on extending the DS18(B)20 temperature sensor driver in the OpenBeken IoT firmware to support multiple GPIOs and multiple sensors per GPIO. The original OneWire protocol timing was stable, so the focus shifted to refactoring the driver by separating basic OneWire functions into a shared file for reuse between simple and extended drivers. Key challenges include managing flash memory size, maintaining backward compatibility, and deciding whether to maintain two separate drivers (simple and full) or merge them with conditional compilation. The extended driver increases memory footprint due to more general and debug-capable code. Flash size impact varies by platform, with Beken-N showing no visible change and others like W800 and BL602 increasing by about 130-150 bytes. The multiline command feature requires enabling OBK scripting and is currently limited to Beken platforms but may be extended. User interface considerations include possibly using a Web App for configuration. Issues with sensor behavior on certain channels (notably channel 1) were noted, linked to external commands referencing channels (e.g., Tasmota commands). The discussion also touched on DST offset parsing improvements for timezone commands, balancing user-friendliness and code size. Overall, the consensus leans toward merging the extended driver with careful size optimization and backward compatibility, while keeping the option for a simpler driver for users with minimal sensor needs.
Summary generated by the language model.
ADVERTISEMENT