Dallas 1Wire spoofing iButton ID

Good afternoon my favorite tinkerers. So I have a question. Is there a way to spoof a Serial number for a Dallas 1-wire iButton? I want to be able to output that number to the system I am creating and want to have the same S/N for everyone, or be able to download a new S/N. This is an existing iButton system.

I am using the DS1990R#F5.

Thanks!

Did I get that right? You would like to mimic an iButton device with a specific serial number?
Try the 1-wire slave library.
Or is it something else? This is not my native language, so maybe I did not understand :slight_smile:

I would like to take a DS1990 S/N and mimic that S/N through Arduino.

Here is the product.

Hi,

Is there a way to spoof a Serial number for a Dallas 1-wire iButton?

Explain "spoof".

I "think' what you want is an arduino to imitate an iButton reader that has an iButton connected, so everytime your system that it is connected to reads the "IButton Reader" output it gets the same ref no.

Tom.... :slight_smile:

TomGeorge:
Hi,
Explain "spoof".

I "think' what you want is an arduino to imitate an iButton reader that has an iButton connected, so everytime your system that it is connected to reads the "IButton Reader" output it gets the same ref no.

Tom.... :slight_smile:

Pretty much. I have a system in place that is looking for a "Master" iButton. The current system is using a Maxim DS1990 iButton and just reads the CRC and Hardware MAC S/N. I want to mimic the MAC S/N and have the arduino output a cloned MAC S/N from one of the output pins. So when the system gets GND/DATA connected from the Arduino to the reader on the "system" it reads the arduino's fake/made up MAC S/N using a DS1990 CRC.

Any help?

Try the 1-wire slave library

Did you look for this? Did you try it?

It's actually called OneWireSlave, and is available here (Mayhugh v1.2) and here (Lange v1.1).

There is a lengthy discussion here about all the things it takes to make something like this work, especially debugging techniques.

The short answer is that the files in this post finally worked for the OP. There are some differences, perhaps crucial, identified a few posts later, in #186. The recvBit difference is suspected as the required change. YMMV.

Cheers,
/dev