Skip to content

Corrected mbed-mesh-api thread/6lowpan tasklets interface disconnect/connect #7878

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
Aug 28, 2018
Merged

Corrected mbed-mesh-api thread/6lowpan tasklets interface disconnect/connect #7878

merged 2 commits into from
Aug 28, 2018

Conversation

mikaleppanen
Copy link

@mikaleppanen mikaleppanen commented Aug 24, 2018

Description

Thread tasklet: Added check for valid interface ID to network scan timer start so that it is not triggered after disconnect. Added variable for mac api so that it is not tried to set again after re-connecting.

6lowpan tasklet: Removed main tasklet ID and used instead tasklet id. Added check for valid interface ID to network scan timer start so that it is not triggered after disconnect. Added small delay to re-connect
so that stack has time to send its status events to application after disconnect.

This pull request and changes from:

#7818

Fixes issue:

#5023

Pull request type

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

@mikaleppanen
Copy link
Author

@SeppoTakalo @artokin Please review.

@0xc0170 0xc0170 requested a review from a team August 24, 2018 09:24
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.

Style changes - still needs to be done for this modules? I think yes, so shall do soon

@@ -130,6 +134,11 @@ nsapi_error_t Nanostack::Interface::register_phy()
{
NanostackLockGuard lock;

if (_device_id >= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I have an equivalent but differently-written equivalent to this hunk in the pending https://github.com/ARMmbed/mbed-os/pull/7818/files. Could you make it match, to avoid conflicts?

Copy link
Author

@mikaleppanen mikaleppanen Aug 27, 2018

Choose a reason for hiding this comment

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

I removed my changes to rf phy registration from MeshInterfaceNanostack.cpp. Issues will be fixed in your pull request.

Mika Leppänen added 2 commits August 27, 2018 15:08
Removed main tasklet ID and used instead tasklet id. Added check
for valid interface ID to network scan timer start so that it
is not triggered after disconnect. Added small delay to re-connect
so that stack has time to send its status events to application
after disconnect.
Added check for valid interface ID to network scan timer start so that it
is not triggered after disconnect. Added variable for mac api so that it
is not tried to set again after re-connecting.
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 27, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Aug 27, 2018

Build : SUCCESS

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

Triggering tests

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

@mbed-ci
Copy link

mbed-ci commented Aug 27, 2018

@mbed-ci
Copy link

mbed-ci commented Aug 28, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 28, 2018

/morph export-build

@mbed-ci
Copy link

mbed-ci commented Aug 28, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 28, 2018

@mikaleppanen

This pull request and changes from:
#7818

This is dependency or not?

@mikaleppanen
Copy link
Author

This can be merged as it is. The #7818 is needed for full fix of the issue #5023, but both PRs can be merged individually.

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 28, 2018

Thanks, I tagged both for 5.10. This could potentially be in 5.9.7 .

@mikaleppanen mikaleppanen deleted the mesh_conn_corr branch August 30, 2018 09:53
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