Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes GID1 parsing for QMI UIM reads so SIMs that return non-colon-delimited hex (e.g. FF) are parsed correctly and can be used for MVNO/APN selection.
Changes:
- Replace GID1 parsing in the QMI modem mode driver with a simpler extraction that does not rely on the generic qmicli-to-table parser.
- Add a new Lua test file covering simple/complex GID1 outputs and the qmicli command error path.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/services/hal/drivers/modem/mode/qmi.lua |
Updates uim_get_gids() to parse GID1 directly from qmicli --uim-read-transparent output. |
tests/test_hal_qmi.lua |
Adds tests for the updated GID1 parsing behavior and error handling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@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.
What type of PR is this? (check all applicable)
Description
A partner box was not able to connect to the internet via either modems. When the same sim was tried on an older box with older software both modems could connect.
After investigation it was found that the sim card had a GID1 of FF. The current code parsed GID1 as a hex string in the form
HH:HH:HH:HH:...which was dependent on colons being present, this meant that the GID1 for this sim was never successfully parsed. GID1 is a requirement for APN selection so the absence of it stopped any connection requests from being made.I have updated the GID parsing to no longer use the general purpose qmi to table converter as it does not catch this edge case and is not worth fixing while our fibers-next migration drops this utility. The new parsing is more robust for extracting GID.
Related Issues, Tickets & Documents
https://app.clickup.com/t/869c3r94g
Manual test
Manual test description
I have run this code on bb-ss, bb-v1 and the original box which presented the issue, all passed. scp the code over and rerun device code, make sure the modems connect
Added tests?
Added to documentation?