libretiny icon indicating copy to clipboard operation
libretiny copied to clipboard

Scratch pad checksum invalid, dallas temp sensor at BK7231N

Open makko81 opened this issue 3 months ago • 1 comments

I cant read temperature from onewire dallas temp sensor. It is recognized correctly but every read returns "dallas_temp.sensor set Warning flag: scratch pad checksum invalid". I first thought the sensor was a cheap fake of origin, but same worked with the original firmware from Tuya. In the meantime I tried same sensor on esp8266 and it worked seamless. Please let me know what I might adjust.

short summary of esphome device log: HARDWARE: BK7231N 120MHz, 256KB RAM, 1.03MB Flash

[23:20:28][C][gpio.one_wire:022]: GPIO 1-wire bus: [23:20:28][C][gpio.one_wire:023]: Pin: 26 [23:20:28][C][gpio.one_wire:084]: Found devices: [23:20:28][C][gpio.one_wire:086]: 0xc0ea26851e64ff28 (DS18B20) [23:20:40][D][dallas.temp.sensor:129]: Scratch pad: FF.FF.FF.FF.FF.FF.FF.FF.FF (C9) [23:20:45][D][dallas.temp.sensor:129]: Scratch pad: FF.FF.FF.FF.FF.FF.FF.FF.FF (C9) [23:20:50][D][dallas.temp.sensor:129]: Scratch pad: FF.FF.FF.FF.FF.FF.FF.FD.FF (75) [23:20:55][D][dallas.temp.sensor:129]: Scratch pad: 50.05.55.00.7F.FF.0C.11.21 (7F) [23:21:00][D][dallas.temp.sensor:129]: Scratch pad: 50.05.55.00.7F.FF.0C.11.21 (7F)

makko81 avatar Sep 23 '25 18:09 makko81

https://github.com/esphome/issues/issues/7080#issuecomment-2921101297

omersiar avatar Nov 11 '25 23:11 omersiar