Rewrite system monitoring to use OSHI#2255
Merged
Gold856 merged 42 commits intoPhotonVision:mainfrom Jan 2, 2026
Merged
Conversation
samfreund
requested changes
Dec 24, 2025
photon-core/src/main/java/org/photonvision/common/hardware/HardwareManager.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Show resolved
Hide resolved
photon-server/src/main/java/org/photonvision/server/RequestHandler.java
Outdated
Show resolved
Hide resolved
samfreund
reviewed
Dec 26, 2025
photon-core/src/main/java/org/photonvision/common/hardware/metrics/DeviceMetrics.java
Show resolved
Hide resolved
Member
|
Works on my laptop/rubik, remove fetch button, add current monitoring for rubik if possible so we can warn when we're under 12v. |
samfreund
previously approved these changes
Jan 1, 2026
Gold856
requested changes
Jan 1, 2026
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Show resolved
Hide resolved
...on-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitorRaspberryPi.java
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitorRK3588.java
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitorRK3588.java
Outdated
Show resolved
Hide resolved
Gold856
requested changes
Jan 1, 2026
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/metrics/SystemMonitor.java
Show resolved
Hide resolved
Gold856
requested changes
Jan 1, 2026
Gold856
reviewed
Jan 2, 2026
photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/QCS6490Cmds.java
Show resolved
Hide resolved
Gold856
approved these changes
Jan 2, 2026
7 tasks
crschardt
added a commit
that referenced
this pull request
Jan 30, 2026
…tation (#2343) ## Description #2255 introduced a new, cross-platform method for monitoring hardware and removed the custom shell commands that had been used previously. This PR updates the documentation to reflect the removal of those commands from hardwareConfig.json. ## Meta Merge checklist: - [x] Pull Request title is [short, imperative summary](https://cbea.ms/git-commit/) of proposed changes - [x] The description documents the _what_ and _why_, including events that led to this PR - [ ] If this PR changes behavior or adds a feature, user documentation is updated - [ ] If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly - [ ] If this PR touches configuration, this is backwards compatible with all settings going back to the previous seasons's last release (seasons end after champs ends) - [ ] If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated - [ ] If this PR addresses a bug, a regression test for it is added --------- Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
OSHI is a free (MIT license) JNA-based library for accessing hardware and system performance information. This PR includes a re-write of the metrics monitoring code to be based on OSHI. The original intent was to gain access to data about network traffic for addition to the Settings tab. An additional benefit is that collecting the data is now around two orders of magnitude (or more) faster!
Meta
Merge checklist: