Skip to content

Introduce Hardware Revision class - #31

Merged
lumagi merged 43 commits into
mainfrom
hw_revision
Feb 20, 2026
Merged

lumagi merged 43 commits into
mainfrom
hw_revision

Conversation

@lumagi

@lumagi lumagi commented Oct 25, 2025

Copy link
Copy Markdown
Collaborator

This PR introduces a HW revision class to encapsulate all functionality that is dependent on the Shimmer hardware.

@JongChern

Copy link
Copy Markdown
Contributor

hi @lumagi any updates on this, just let us know if we can assist

@lumagi

lumagi commented Nov 24, 2025

Copy link
Copy Markdown
Collaborator Author

I'm sorry, I know I'm working slow. I need to test the class and integrate it with the Bluetooth and reader classes.

@lumagi lumagi self-assigned this Dec 22, 2025
@lumagi

lumagi commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator Author

@JongChern I think a lot of the heavy lifting is done. I don't know if you can contribute to this PR, but if you'd like you can create the Shimmer3R revision class.

JongChern and others added 3 commits December 25, 2025 14:45
* add 3r support

* Update test_bt_commands.py

* Update test_bt_commands.py

* Update test_bt_commands.py

* Update test_bt_commands.py

* Update test_bt_commands.py

* Update test_bt_commands.py

* Update test_bt_commands.py
@JongChern

Copy link
Copy Markdown
Contributor

hi, @lumagi just checking in to see if you need any assistance on this PR?

@lumagi

lumagi commented Feb 7, 2026

Copy link
Copy Markdown
Collaborator Author

@JongChern Thank you. I had some design issue about the revision and version classes that was bugging me. But I think I found a way I am happy with. The current state is that only the Dock and testing classes now rely on the base functions that I'm trying to replace with the revisions. Once they're gone, the PR should be ready to merge.

@lumagi
lumagi marked this pull request as ready for review February 8, 2026 14:21
@lumagi

lumagi commented Feb 8, 2026 •

Copy link
Copy Markdown
Collaborator Author

@JongChern I think it should be ready. Feel free to review the PR if there's something that you think needs changing.

I mostly removed all the global functions and attributes in pyshimmer.dev.base and pyshimmer.dev.channels. They are now encapsulated in the revisions classes. The Bluetooth API should now work with both revisions. The Dock and Reader APIs still statically rely on revision 3. If you'd like that's something you could support with, automatically determining the correct revision in the Dock and Reader APIs.

@JongChern

Copy link
Copy Markdown
Contributor

@lumagi there are issues with the pressure/temp sensor for the 3R, maybe related to the issue reported in #37

investigating now

@JongChern

Copy link
Copy Markdown
Contributor

pressure and temp sensor format update
@lumagi
lumagi merged commit 868ad8b into main Feb 20, 2026
8 checks passed
@lumagi
lumagi deleted the hw_revision branch April 18, 2026 17:45
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

Successfully merging this pull request may close these issues.

2 participants