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

DS2431 wrong answer (0x55) at Copy Scratchpad Command #133

Open
bauergeorg opened this issue Sep 12, 2023 · 0 comments
Open

DS2431 wrong answer (0x55) at Copy Scratchpad Command #133

bauergeorg opened this issue Sep 12, 2023 · 0 comments

Comments

@bauergeorg
Copy link

Hi folks,
we are using OneWireHub and we are very happy about this cool project. Thanks a lot!

Bug
By using the DS2431 with an own server implementation we found a hysteric behavior by writing memory function.
I found a different behavior between the real chip and the emulation. The real chip answers with 0xAA, the emulation answers with 0x55 (or different) during the “Copy Scratchpad” procedure.

Here is an extract of the DS2431s datasheet.

image

Below you can see a timing diagram of a logic analyzer (Saleae Logic Analyzer) of the real chip (Answer 0xAA):
image

Below you can see a timing diagram of a logic analyzer (Saleae Logic Analyzer) of the emulated chip (Answer 0x55):
image

Environment

  • We found the line in the code. But we can’t find any error. It looks perfect.
  • We used a Arduino Nano and a Arduino Uno. Same devices showed the same behavior (answering 0x55).
  • Changing the timing behavior (changing a little bit the code) we saw in some case an answer 0xFF.
  • We checked the same behavior with two one-wire-master applications: an own python application and Maxim's OneWireViewer.

Thank's a lot!

Georg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant