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
samples: mesh: enable SMP service for DFU [v1.14.0 milestone] #13135
Conversation
@jhedberg @carlescufi @nvlsianpu @ccollins476ad @jhedberg @SebastianBoe @mbolivar For reference I have used: $zephyr/samples/subsys/mgmt/mcumgr/smp_svr. As per my opinion, this should be a part of 1.14 :) |
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/common.h
Outdated
Show resolved
Hide resolved
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/prj.conf
Outdated
Show resolved
Hide resolved
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/smp_svr.c
Outdated
Show resolved
Hide resolved
@mbolivar As of now, implementing things as per your suggestions is beyond my scope. So please bare me !! I don't wanna make this App by default compatible for #mcuboot |
Codecov Report
@@ Coverage Diff @@
## master #13135 +/- ##
=======================================
Coverage 48.76% 48.76%
=======================================
Files 319 319
Lines 46892 46892
Branches 10840 10840
=======================================
Hits 22867 22867
Misses 19391 19391
Partials 4634 4634 Continue to review full report at Codecov.
|
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/CMakeLists.txt
Outdated
Show resolved
Hide resolved
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/main.c
Outdated
Show resolved
Hide resolved
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/main.c
Outdated
Show resolved
Hide resolved
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/smp_svr.c
Outdated
Show resolved
Hide resolved
No problem. This is not my area in Zephyr but I've tried to leave you a few more hints. |
@@ -20,3 +23,5 @@ zephyr_include_directories( | |||
src/ | |||
src/mesh | |||
) | |||
|
|||
zephyr_sources_ifdef(CONFIG_BOOTLOADER_MCUBOOT src/smp_svr.c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not depends on CONFIG_MCUMGR istead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done !!
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/src/smp_svr.c
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Structurally I just see one more issue with this PR. After that is resolved I think it is up to the application maintainer.
samples/boards/nrf52/mesh/onoff_level_lighting_vnd_app/CMakeLists.txt
Outdated
Show resolved
Hide resolved
This commit enable Bluetooth SMP Service which will help us to do Device Firmware Upgrade over thr air. By default it is not enable. Reference: $zephyr/samples/subsys/mgmt/mcumgr/smp_svr Signed-off-by: Vikrant More <vikrant8051@gmail.com>
@mbolivar Done !! And thanks for more appropriate suggestion. |
@jhedberg @nvlsianpu I see no obvious issues with this pull request, so I've dismissed -1 and will leave it up to you from here. |
I see no obstacles for this PR merge. |
@nvlsianpu haven't forgotten about this, but since it's not a bug fix I think it may need to wait until 1.14 is released. |
^^ yes. |
This sample (/zephyrproject/zephyr/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app) doesnt build corrcectly under zephyr 2.1.99 |
@zakariae87 I just tried building it with latest master and had no problems (for board nrf52840_pca10056) |
This commit enable Bluetooth SMP Service which will help
us to do Device Firmware Upgrade over thr air. By default
it is not enable.
Reference: $zephyr/samples/subsys/mgmt/mcumgr/smp_svr
Signed-off-by: Vikrant More vikrant8051@gmail.com