Skip to content
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

Cellular: Added API for setting default parameters to a network inter… #9287

Conversation

mirelachirica
Copy link
Contributor

Description

Added API for setting default parameters to a network interface.

Reason:
A network interface instantiated directly is initially unconfigured. This API can be used to set the default parameters that would have been set if the interface had been requested using NetworkInterface::get_default_instance().

This is needed when instantiating NonIP cellular interface for example and NetworkInterface::get_default_instance() cannot be used.

Pull request type

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

Teppo Järvelin and others added 30 commits December 4, 2018 11:01
Moved methods to classes CellularDevice and CellularInformation.
SIM interface was removed to simplify cellular usage and
methods better suite new classes.
Updated greentea and unit tests.
-added an API for checking network eps ciot optimization support
-renamed the API for getting the UE parameters
-the API for setting the UE parameters includes now a callback, which
will be called once network support for eps ciot optimization is known
…n_feature_branch

Cellular ciot eps on feature branch
Cellular: changed support features to CellularProperty array.
After this change we were able to change methods
ATHandler::set_urc_handler and CellularDevice::set_ready_cb to void
and simplify error handling.
Cellular: Removed unnecessary checks after new
This change enables removing function has_registration from
class AT_CellularNetwork and all targets inheriting
AT_CellularNetwork.
After AT_CellularNetwork::has_registration was replaced with
CellularProperties and better
AT_CellularNetwork::set_access_technology_impl default
implementation we can delete most of the target specific classes
that inherit AT_CellularNetwork.
Change usage of AT_CellularContext::stack_type_supported to
AT_CellularBase::get_property. This way we can rid of
targets overriding stack_type_supported and delete
unnecessary classes and simplify new targets.
Generic cellular module (GENERIC_AT3GPP) can by used as a default
module when porting new cellular module. It's a good starting point
and eases porting of new modules. GENERIC_AT3GPP uses only standard
3GPP AT commands when communicating with the modem.
_sim_pin was changed to pointer from array and length was checked with
strlen. If _sim_pin was null it caused crash. Fix by checking _sim_pin against NULL.
Power class could have been called without checking if power is NULL. Fix by checking
that power class is not null.
Fix state machine to return correct states when queried.
Cellular: added setting of data carrier support for UART.
@mirelachirica
Copy link
Contributor Author

It's on master now

I'm not sure about the cherry picking commit. It ran into conflict because travis file was many commits behind. I took the content as it is now in master. Is that ok?

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 11, 2019

yes, should be

@cmonr
Copy link
Contributor

cmonr commented Jan 11, 2019

Trying a thing. Standby.

@cmonr cmonr closed this Jan 11, 2019
@cmonr cmonr removed the needs: CI label Jan 11, 2019
@cmonr cmonr reopened this Jan 11, 2019
@cmonr
Copy link
Contributor

cmonr commented Jan 11, 2019

This is getting really annoying...
We've been seeing more and more commits not get triggered in the past couple of days. Not sure if the problem is with GitHub or Travis CI...

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 14, 2019

This will go into CI once 5.11.2 RC test completes (soon in the current queue)

@mirelachirica mirelachirica force-pushed the feature-cellular-refactor_nonip_app branch from 85047bb to d2d8215 Compare January 14, 2019 16:11
@0xc0170
Copy link
Contributor

0xc0170 commented Jan 15, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 15, 2019

Test run: FAILED

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

Failed test jobs:

  • jenkins-ci/mbed-os-ci_unittests

Mirela Chirica and others added 2 commits January 15, 2019 17:34
…face

A network interface instantiated directly is initially unconfigured.
This API can be used to set the default parameters that would
have been set if the interface had been requested using
NetworkInterface::get_default_instance()
Corrected simplified astyle job behavior when base branch is not master

Consolidated efforts from PR ARMmbed#9336.

Previous job's env vars would not be populated correctly if the base branch of a PR was not master.
Corected by pulling remaining respository information to perform comparison between read-only instance of PR and base branch.
@mirelachirica mirelachirica force-pushed the feature-cellular-refactor_nonip_app branch from d2d8215 to d6c42f7 Compare January 15, 2019 15:38
@mirelachirica
Copy link
Contributor Author

Fixed the CI UT linking error

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 17, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 17, 2019

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

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

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 22, 2019

Latest rebase caused few conflicts here.

@mirelachirica
Copy link
Contributor Author

This PR was added to feature branch during rebase by Ari:
"The remaining PRs #9273 and #9287 going to the feature-branch can be closed, they were already approved so I added them in the feature-branch as well."

Based on this I will close this PR.

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.