DS18B20 full ID with CRC

I have question about DS18B20 temp sensor. In arduino and esphome software I use address as 0x6e0300a279d76428, I’d like to use same scheme in my software,
28 in the end is pretty simple as I can read it from directory name 28-0300a279d764, but from where can I get 6e crc?
I can find it only in dmesg during boot.

w1_master_driver w1_bus_master1: Attaching one wire slave 28.0300a279d764 crc 6e

Any idea?

Looking at:

crc = w1_calc_crc8((u8 *)&rn_le, 7);

Yeah, …


1 Like