Skip to content

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

Merged
merged 1 commit into from
Nov 24, 2018

Conversation

AriParkkila
Copy link

@AriParkkila AriParkkila commented Nov 16, 2018

Description

Cellular traces need to be improved:

  • 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 previous StatusNotAvailable (which is not part of 3GPP TS 27.007).

Pull request type

[ ] Fix
[x] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@AriParkkila
Copy link
Author

@mirelachirica @jarvte please review.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 16, 2018

I recommend rebasing now ( to get latest astyle update) and get the latest numbers for styling changes

@AriParkkila
Copy link
Author

@jarvte fixed debug ifdefs. I'd like to keep timeouts, there are cases when we may need to wait up to 3 minutes without anything happening on modem.

@0xc0170 yes, rebase helped to get rid of excessive coding guideline fixes.

@AriParkkila AriParkkila changed the title Cellular: Update coding style and debug prints Cellular: Updated cellular debug prints Nov 16, 2018
@0xc0170 0xc0170 requested a review from a team November 16, 2018 11:03
Copy link
Contributor

@0xc0170 0xc0170 left a 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?

@AriParkkila
Copy link
Author

@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.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 16, 2018

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

@0xc0170 0xc0170 changed the title Cellular: Updated cellular debug prints Cellular: Update cellular debug prints Nov 19, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 19, 2018

@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.
@AriParkkila
Copy link
Author

@0xc0170 updated commit message, so I guess there are no more open requests.

@mbed-ci
Copy link

mbed-ci commented Nov 19, 2018

Test run: FAILED

Summary: 4 of 7 test jobs failed
Build number : 2
Build artifacts
Build logs

Failed test jobs:

  • jenkins-ci/mbed-os-ci_mbed2-build-ARM
  • jenkins-ci/mbed-os-ci_mbed2-build-IAR
  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_mbed2-build-GCC_ARM

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 19, 2018

Triggering the build + exporters (test might be aborted due to some issues there)

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 19, 2018

Build : SUCCESS

Build number : 3674
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8767/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Nov 19, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 22, 2018

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.
If any more commits are made in this PR, this PR will remain open and have to go through CI on its own.

@0xc0170 0xc0170 merged commit 9bdeb68 into ARMmbed:master Nov 24, 2018
@0xc0170 0xc0170 removed the needs: CI label Nov 24, 2018
@@ -485,6 +496,12 @@ nsapi_error_t AT_CellularNetwork::get_signal_quality(int &rssi, int &ber)
return NSAPI_ERROR_DEVICE_ERROR;
}

if (rssi == 99) {
Copy link
Contributor

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

Copy link
Author

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.

Copy link
Contributor

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

Copy link
Author

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.

@cmonr cmonr removed the rollup PR label Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants