1wire Devices

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

1wire Devices

Post by Docara »

Hi,

Generally, when you buy a 1wire device does the 64 bit ID code come with, be itit on a piece of paper or whatever?

ta

Matt

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 1wire Devices

Post by Benj »

Hi Matt,

Yes I think the ID comes pre-programmed to ensure it is unique.

Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Re: 1wire Devices

Post by Docara »

Hi Ben,

Yes but does the ID COME WITH IT within any supplied literature?

I will need to find addresses for approx. 14 devices (not all temp sensors).

The reason I'm asking for is that their are a couple of chips out there which have an onboard search algorithm for 1 wire devices - for simplicity do I need to incorporate one of these into a design. or can I physically type in an address against a location in a GUI?

Thanks

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: 1wire Devices

Post by EtsDriver »

Docara wrote:
Yes but does the ID COME WITH IT within any supplied literature?
It would be total madness that every chip coming to production line in a roll would have thousands of tiny confetti papers with them. You have to use some kind of onewire discovery algorithim to find the ID of the chip.

In one card i've seen there was a buffer used to "cut" all other sensors out from the network and then the board was automagically finding which one of the sensors is referencing which connector... (and those isolated-buffers were so easily blown, that card had very short lifespan).
We had a student make a "1-wire discovery" device with LCD and a ZIF socket, LCD was showing the one connected sensors's ID number to help troubleshooting.

Maxim has documented this search pretty well:
https://www.maximintegrated.com/en/app-notes/index.mvp/id/187
Ill just keep the good work up!

Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Re: 1wire Devices

Post by Docara »

Thanks matey - I was afraid that was going to be the reponse :(

I was half hoping it was printed on during packaging but Hey Ho!!!

Matt

Post Reply