Skip to content

Registration parameters as struct #8114

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 2 commits into from
Oct 10, 2018

Conversation

mirelachirica
Copy link
Contributor

@mirelachirica mirelachirica commented Sep 13, 2018

Description

More registration parameters needed to be supported so struct to hold all the parameters was created.

This PR includes also one commit with the AT handler fix needed/noticed when reading some of the registration parameters.

Pull request type

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

@mirelachirica
Copy link
Contributor Author

@AriParkkila and @jarvte please review.

int AT_CellularNetwork::calculate_periodic_tau(const char *periodic_tau_string, int periodic_tau_length)
{
if (periodic_tau_length != ONE_BYTE_BINARY)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

coding conventions.

int AT_CellularNetwork::calculate_active_time(const char *active_time_string, int active_time_length)
{
if (active_time_length != ONE_BYTE_BINARY)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

coding conventions.

@mirelachirica
Copy link
Contributor Author

Rebased but not Unit Tested.

@cmonr
Copy link
Contributor

cmonr commented Sep 20, 2018

@mirelachirica @jarvte Why were the virtual functions removed?

ac0e211#diff-3bd850d652d556508775518fdd56d09f

@mirelachirica
Copy link
Contributor Author

They were replaced with get_registration_params(...). Registration parameters to be retrieved via registration_params_t object.

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 21, 2018

This type of refactor (does not actually fix anything - there is one fix in here that might be a separate patch?) should be for 5.11 ?

@mirelachirica
Copy link
Contributor Author

Yes it is 5.11 change. More parameters needed to be retrieved so now they are in one structure. There was also a bug in ATHandler when reading these parameters. That is fixed in separate commit.

@mirelachirica
Copy link
Contributor Author

Updated -> google unit tests passing

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 24, 2018

Updated -> google unit tests passing

unittest CI failed, pls review

@mirelachirica
Copy link
Contributor Author

Just noticed this problem on master already. Will check it.

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 24, 2018

I noticed it as well in another PR, not certain how it got in (if there is a bug on master now). Thanks for looking at it

@mirelachirica
Copy link
Contributor Author

When these unit tests started being part of CI?
Should fix for this problem be part of this PR or should there be separate PR?

@mirelachirica
Copy link
Contributor Author

I will generate new PR to include also another fix for features-cellular-framework-common-util.exe test. This common-util error is not seen in master but I have seen it on friday and is due to not null terminated string defined in unit test which might cause unstable behaviour.

@mirelachirica
Copy link
Contributor Author

PR to fix the failure: #8229

@mirelachirica
Copy link
Contributor Author

This needs to proceed. @AriParkkila @AnttiKauppila can you please review?

@NirSonnenschein
Copy link
Contributor

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 4, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 4, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 4, 2018

Build : SUCCESS

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

Triggering tests

/morph test
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Oct 4, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 5, 2018

I restarted Travis, previously failed to report back the status.

@cmonr
Copy link
Contributor

cmonr commented Oct 8, 2018

This needs a rebase.

@mirelachirica mirelachirica force-pushed the registration_params_2 branch from 127f4e2 to ffb9cdb Compare October 9, 2018 08:18
@mirelachirica
Copy link
Contributor Author

rebased

@cmonr
Copy link
Contributor

cmonr commented Oct 9, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 9, 2018

Build : SUCCESS

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

Triggering tests

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

@mbed-ci
Copy link

mbed-ci commented Oct 9, 2018

@mbed-ci
Copy link

mbed-ci commented Oct 9, 2018

@cmonr cmonr merged commit 70252f8 into ARMmbed:master Oct 10, 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.

7 participants