1Wire ID code in HEX and ...?

Post Reply
Jumper3126
Posts: 52
Joined: Thursday 31 December 2015 16:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

1Wire ID code in HEX and ...?

Post by Jumper3126 » Sunday 21 February 2016 22:27

I have a cable running through my house with several 1-wire temp sensors (DS18B20). I used to have it connected to my spark core and I therefore know the ID of each sensor. These IDs are however in HEX, whereas on my RasPi, the code the code is different. How would I translate the HEX code to the code that is recognized by the RasPi? Testing each invidual sensor is not really an option :(


Sensor ID according rasPi:

28-0000025c1c78
28-0000025c5ebc
28-000003bf303e
28-0014522c64ff
28-0000025c5154
28-0000025c673e
28-000003bf64df


Sensor ID in HEX:

0x28, 0x78, 0x1C, 0x5C, 0x02, 0x00, 0x00, 0xFF 28781C5C020000FF location A
0x28, 0x54, 0x51, 0x5C, 0x02, 0x00, 0x00, 0x31 2854515C02000031 location B
0x28, 0xBC, 0x5E, 0x5C, 0x02, 0x00, 0x00, 0xD6 28BC5E5C020000D6 location C
0x28, 0x3E, 0x30, 0xBF, 0x03, 0x00, 0x00, 0x8B 283E30BF0300008B location D
0x28, 0x3E, 0x67, 0x5C, 0x02, 0x00, 0x00, 0x25 283E675C02000025 location E
0x28, 0x5F, 0x2C, 0x5C, 0x02, 0x00, 0x00, 0x48 285F2C5C02000048 location F
0x28, 0xDF, 0x64, 0xBF, 0x03, 0x00, 0x00, 0x1F 28DF64BF0300001F location G
0x28, 0xFF, 0xD7, 0x79, 0x52, 0x14, 0x00, 0x9F 28FFD7795214009F location H
0x28, 0xFF, 0x64, 0x2C, 0x52, 0x14, 0x00, 0xC7 28FF642C521400C7 location I
0x28, 0xFF, 0x27, 0x69, 0x52, 0x14, 0x00, 0x01 28FF276952140001 location J

fantom
Posts: 301
Joined: Thursday 26 March 2015 11:40
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: 1Wire ID code in HEX and ...?

Post by fantom » Wednesday 24 February 2016 13:48

This is the same.
But reverse.

Fantom

Jumper3126
Posts: 52
Joined: Thursday 31 December 2015 16:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: 1Wire ID code in HEX and ...?

Post by Jumper3126 » Wednesday 24 February 2016 14:55

:o
LOL
your right! :lol:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest