-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Update cellular debug prints #8767
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
Conversation
@mirelachirica @jarvte please review. |
3665457
to
fb14d6a
Compare
I recommend rebasing now ( to get latest astyle update) and get the latest numbers for styling changes |
fb14d6a
to
edd183f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the texts from description to the commit msg as well?
UNITTESTS/features/cellular/framework/AT/at_cellularnetwork/at_cellularnetworktest.cpp
Show resolved
Hide resolved
@0xc0170 enum was added just to mark how many debug string need to be in array. Unittests expected value that can't be printed because value was not part of AT spec, but yes, strictly speaking that is a change that I can revert. |
Can leave it but separate it with decription. Not certain why it was squashed all to one commit with one-line commit msg |
@AriParkkila Is this aiming to get into 5.11 ? If yes, please let us know and adress the latest comments here |
Updated cellular debug trace prints: - Removed unnecessary prints. - Tracing more in DEBUG level. - Read/write bytes not printed on big packets. - Signal quality (RSSI) traced to log network problems. - Dismissed AT data is traced. - Modem type and firmware version are traced. Network registration returns NotRegistered instead of StatusNotAvailable, because that's not in 3GPP TS 27.007.
edd183f
to
9bdeb68
Compare
@0xc0170 updated commit message, so I guess there are no more open requests. |
Test run: FAILEDSummary: 4 of 7 test jobs failed Failed test jobs:
|
Triggering the build + exporters (test might be aborted due to some issues there) /morph build |
Build : SUCCESSBuild number : 3674 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 3278 |
Info: This PR has been re-bundled into a new rollup PR (#8838 ). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. |
@@ -485,6 +496,12 @@ nsapi_error_t AT_CellularNetwork::get_signal_quality(int &rssi, int &ber) | |||
return NSAPI_ERROR_DEVICE_ERROR; | |||
} | |||
|
|||
if (rssi == 99) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this was already integrated, during the rollup review, these numbers were questions - I assume rssi is a value 0-99, but then what below means, on line 502 might help to add a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xc0170 RSSI value is always in dBm, and actual range is -51 ... -113 dBm Previously returned values 0..99 were raw values from AT protocol spec due to conversion implementation was missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That explains it, however we have in the code magic values that do not , either create defines or add a comment describing this calculation. You can send a new PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xc0170 thx, I will fix that within another PR.
Description
Cellular traces need to be improved:
Network registration returns NotRegistered instead of previous StatusNotAvailable (which is not part of 3GPP TS 27.007).
Pull request type