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

DS2502 write command CRC seems incorrect #137

Open
polarbub opened this issue Jun 9, 2024 · 0 comments
Open

DS2502 write command CRC seems incorrect #137

polarbub opened this issue Jun 9, 2024 · 0 comments

Comments

@polarbub
Copy link

polarbub commented Jun 9, 2024

When trying to write to the emulated DS2502 the CRC comes back as incorrect. I get the correct CRC from a real DS2502, but I am unable to write to it as I don't have a progpulse circuit. With same circuit I am also able to read the data from the emulator just fine, so I know it isn't an issue with my setup or code.

I am using two Arduino Unos. One as the emulator and one to read. This is the code for the emulator. It is just the example code for DS2502, but with the data and id changed. This is the code for the writer. All the code is compiled in Arduino IDE 1.8.9 on Arch Linux.

I used the logic analyzer in SimulIDE to get a trace between the two Arduinos emulated-simulide.zip. This issue does happen with real hardware as well. I also have a real logic analyzer and I can get a real trace if it would be helpful.

Here is how the devices are connected.
real
hub

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