Skip to content

Cellular: Ublox cellular context activation updated for C030_R412M #10877

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
Aug 2, 2019

Conversation

mudassar-ublox
Copy link
Contributor

@mudassar-ublox mudassar-ublox commented Jun 20, 2019

Description

UBLOX_C030_R412M cellular context activation updated for 2G. Updated RAT and AUTH configuration and other minor fixes.

Pull request type

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

Reviewers

Release Notes

@mudassar-ublox
Copy link
Contributor Author

@fahim-ublox @wajahat-ublox

@ciarmcom ciarmcom requested review from a team June 20, 2019 13:00
@ciarmcom
Copy link
Member

@mudassar-ublox, thank you for your changes.
@ARMmbed/mbed-os-wan @ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 28, 2019

Please fix astyle

@mudassar-ublox
Copy link
Contributor Author

Astyle issue fixed and update PR as well, updated RAT and AUTH configurations. Please review.

@artokin
Copy link
Contributor

artokin commented Jul 9, 2019

@mudassar-ublox , would you please resolve the conflicts?

@mudassar-ublox mudassar-ublox force-pushed the ubx_context_activation branch from dd568a6 to a9f7909 Compare July 9, 2019 10:03
@mudassar-ublox
Copy link
Contributor Author

@mudassar-ublox , would you please resolve the conflicts?

Conflict resolved.

@@ -155,6 +155,11 @@ static void test_other()
{
TEST_ASSERT(nw->get_3gpp_error() == 0);

#ifdef TARGET_UBLOX_C030
nsapi_error_t err = nw->detach();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test should not contain #ifdef target, either works or not - handling this should be in the target code or driver.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed target specific code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will it work (test pass) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, handled in driver, return UNSUPPORTED if try to change RAT while in attach state.

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 9, 2019

@ARMmbed/mbed-os-wan Please review

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 10, 2019

Please review astyle failures

@mudassar-ublox
Copy link
Contributor Author

mudassar-ublox commented Jul 10, 2019

Please review astyle failures

Please review, Astyle issue fixed. AriParkkila once shared asytle software for styling and I used that for styling. Seems its not correct software for it as now getting style issue on my PR's.
Also attaching cellular tests result logs.
R412M_Cellular_Test.txt

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 10, 2019

@mudassar-ublox use astylerc as config for astyle, it has all needed

@mudassar-ublox mudassar-ublox force-pushed the ubx_context_activation branch from 1f9dae7 to 1ec6117 Compare July 11, 2019 04:35
@wajahat-abbas
Copy link
Member

@mudassar-ublox This fixes #9711 correct?

@mudassar-ublox
Copy link
Contributor Author

mudassar-ublox commented Jul 12, 2019

@mudassar-ublox This fixes #9711 correct?

Not sure about this issue but now we can set auth type from main application, set_authentication_type. Let me ask on ticket #9711.

@mudassar-ublox
Copy link
Contributor Author

Anything else required on this PR?

@mudassar-ublox
Copy link
Contributor Author

@0xc0170 any update on this PR?

@SeppoTakalo
Copy link
Contributor

@mudassar-ublox Please don't merge from master into your branch. Makes review and history really annoying.
Please remove the merge commit and rebase your branch on top of master.

@mudassar-ublox mudassar-ublox force-pushed the ubx_context_activation branch from e20b269 to ee3e8e6 Compare July 24, 2019 12:58
@mudassar-ublox
Copy link
Contributor Author

Issue fixed and re-based branch to latest master. Please review now.

@mudassar-ublox mudassar-ublox force-pushed the ubx_context_activation branch from ee3e8e6 to ae4edde Compare July 26, 2019 06:06
@SeppoTakalo
Copy link
Contributor

Thanks.
CI tests started now.

@mbed-ci
Copy link

mbed-ci commented Jul 26, 2019

Test run: FAILED

Summary: 3 of 4 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

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

@SeppoTakalo
Copy link
Contributor

@mudassar-ublox Please check the build failures

2019-07-26T08:11:22.017Z] [2019-07-26T08:11:22.017Z] [Warning] UBLOX_AT_CellularNetwork.cpp@101,13: 'wait_ms' is deprecated: 'wait_ms' is deprecated in favor of explicit sleep functions. To sleep, 'wait_ms' should be replaced by 'ThisThread::sleep_for' (C++) or 'thread_sleep_for' (C). If you wish to wait (without sleeping), call 'wait_us'. 'wait_us' is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]

[2019-07-26T08:11:22.017Z] [2019-07-26T08:11:22.017Z] Compile [ 10.9%]: UBLOX_PPP.cpp

[2019-07-26T08:11:22.017Z] [2019-07-26T08:11:22.017Z] Compile [ 11.0%]: sn_coap_builder.c

[2019-07-26T08:11:22.017Z] [2019-07-26T08:11:22.017Z] Compile [ 11.1%]: sn_coap_protocol.c

[2019-07-26T08:11:22.018Z] [2019-07-26T08:11:22.017Z] Compile [ 11.3%]: UBLOX_N2XX.cpp

[2019-07-26T08:11:22.018Z] [2019-07-26T08:11:22.018Z] Compile [ 11.4%]: UBLOX_AT_CellularStack.cpp

[2019-07-26T08:11:22.018Z] [2019-07-26T08:11:22.018Z] Compile [ 11.5%]: stoip4.c

[2019-07-26T08:11:22.018Z] [2019-07-26T08:11:22.018Z] Compile [ 11.6%]: UBLOX_AT_CellularContext.cpp

[2019-07-26T08:11:22.018Z] [2019-07-26T08:11:22.018Z] [Error] UBLOX_AT_CellularContext.cpp@87,22: use of undeclared identifier 'define_context'

[2019-07-26T08:11:22.018Z] [2019-07-26T08:11:22.018Z] Failed to build library

@mudassar-ublox mudassar-ublox force-pushed the ubx_context_activation branch from ae4edde to 6cd6017 Compare July 30, 2019 07:20
@mudassar-ublox
Copy link
Contributor Author

@SeppoTakalo Build failure fixed. Please review now.

@mbed-ci
Copy link

mbed-ci commented Aug 1, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 2
Build artifacts

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 9, 2019

Moving to 5.14 due to conflicts in cellular framework files . If needed earlier, PR for 5.13 branch that we could cherry pick would be good if needed earlier.
I tried to manually resolved but did not manage to get the changes from master from this changeset.

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.

8 participants