Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iButton Dallas DS1904 (RTC) support #3561

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

bettse
Copy link
Contributor

@bettse bettse commented Apr 2, 2024

What's new

  • iButton Dallas DS1904 (RTC) support
  • Rough draft, I was targeting reading/writing of the iButtons since I don't have a way to test emulation.

Verification

  • Scan DS1904 and see it detected and time shown
  • TBD: How to handle "write" to set the clock and "device control byte"

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix


static bool
dallas_ds1904_emulate_write_clock(OneWireSlave* bus, const uint8_t* device_control_byte) {
// What does it mean to write the clock of a virtualized RTC?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a way to validate emulation either

@skotopes
Copy link
Member

@doomwastaken can you get some samples of ds1904

@doomwastaken
Copy link
Member

ds1904
checked with two flippers and then there is difference when I emulate said key with flipper
ds1904-re-emulated
Also attaching you a key from flipper (change res to ibtn from txt). Only way I had to verify
1904.txt
is via key copier, but it only gives UID

@hedger hedger added New Feature Contains an IMPLEMENTATION of a new feature iButton labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iButton New Feature Contains an IMPLEMENTATION of a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants