-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Bluetooth: Mesh: Move dfu mbt models into their own elements #81531
Bluetooth: Mesh: Move dfu mbt models into their own elements #81531
Conversation
Alinging the bot for mesh blob client tests with zephyr tester. zephyrproject-rtos/zephyr#81531 Signed-off-by: alperen sener <[email protected]>
Aligning the bot for mesh blob client tests with zephyr tester. zephyrproject-rtos/zephyr#81531 Signed-off-by: alperen sener <[email protected]>
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.
Looks fine to me, of course there are some old naming conventions issues, but it is up to you if you want to fix it.
8267976
to
03eb447
Compare
03eb447
to
e18dadd
Compare
e18dadd
to
b0ff4ee
Compare
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.
LGTM at the moment. When you satisfy the Compliance checker, I'll approve it.
b0ff4ee
to
53303c3
Compare
53303c3
to
b2323de
Compare
@sjanc, could you please look at this PR? |
659fdc7
b2323de
to
659fdc7
Compare
Tried to shorten error log messages without losing explanation for what the actual problem is. The key point is "not being on the same element", just saying "missing" might not give the message, or puzzle people. I am OK with removing all err logs anyway 👍 |
659fdc7
to
39665bc
Compare
It is not necessary at all. If there is a problem, the log messages anyway print files names, etc. Even if MINIMAL is enabled, simply searching by string globally one can easily locate the log strings in code base. I feel, we shouldn't treat log messages as a way to educate users about what is the right thing to do. Instead, use them to actually print error codes or some useful information. This keeps application footprint low at development stage itself. |
Referring to MshDFU_v1.0 Sections 6.1.1, 6.2.1 and 7.1.1 model descriptions: DFU/DFD server/clients extend BLOB Transfer root models and DFD server requires Firmware Update Client on the same element. For this reason we need to make sure that those main models or root models exist on the same element. And also firmware update client can not be forced to be in the first element. For all model extention call return the error code in case of an error. Signed-off-by: alperen sener <[email protected]>
Moving the blob client, dfd server and dfu server to their own elements and increasing the CONFIG_BT_MESH_TX_SEG_MAX to 8 to fit new composition data into composition data page status message. Standalone mesh blob client and DFU distributor/update server models requires one element and those elements only contain the main models and the models they extend to. Referring to MshMBT_v1.0 Section 6.1: The BLOB Transfer Client model defines the messages listed in Table 6.1 , and requires one element: the BLOB Transfer Client Main element. The BLOB Transfer Client Main element contains the BLOB Transfer Client main model. And referring to MshDFU_v1.0 Sections 6.1.1 and 6.2.1: 6.1.1 The Firmware Update Server model adds the state instances listed in Table 6.1 and Table 6.2 and the messages listed in Table 6.3 to the model it extends, and requires one element: the Firmware Update Main element. The Firmware Update Main element contains the Firmware Update Server main model and all the models that the main model extends. 6.2.1 The Firmware Distribution Server model adds the state instances listed in Table 6.7 and Table 6.8 and the messages listed in Table 6.9 to the model it extends, and requires one element: the Firmware Distribution Main element. The Firmware Distribution Main element contains the Firmware Distribution Server main model and all the models that the main model extends. Signed-off-by: alperen sener <[email protected]>
39665bc
to
ae56d8b
Compare
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.
Thanks. Looks good to me.
@sjanc PTAL |
Aligning the bot for mesh blob client tests with zephyr tester. zephyrproject-rtos/zephyr#81531 Signed-off-by: alperen sener <[email protected]>
Tests: Bluetooth: Tester: Mesh DFUM and BLOB should have own elements
Moving the blob client, dfd server and dfu server to their own elements and increasing the CONFIG_BT_MESH_TX_SEG_MAX to 8 to fit new composition data into composition data page status message.
Standalone mesh blob client and DFU distributor/update server models requires one element and those elements only contain the main models and the models they extend to.
Referring to MshMBT_v1.0 Section 6.1: The BLOB Transfer Client model defines the messages listed in Table 6.1 , and requires one element: the BLOB Transfer Client Main element. The BLOB Transfer Client Main element contains the BLOB Transfer Client main model.
And referring to MshDFU_v1.0 Sections 6.1.1 and 6.2.1:
6.1.1
The Firmware Update Server model adds the state instances listed in Table 6.1 and Table 6.2 and the messages listed in Table 6.3 to the model it extends, and requires one element: the Firmware Update Main element. The Firmware Update Main element contains the Firmware Update Server main model and all the models that the main model extends.
6.2.1
The Firmware Distribution Server model adds the state instances listed in Table 6.7 and Table 6.8 and the messages listed in Table 6.9 to the model it extends, and requires one element: the Firmware Distribution Main element. The Firmware Distribution Main element contains the Firmware Distribution Server main model and all the models that the main model extends.
Bluetooth: Mesh: Check that required models exists on the same element
Referring to MshDFU_v1.0 Sections 6.1.1, 6.2.1 and 7.1.1 model descriptions: DFU/DFD server/clients extend BLOB Transfer root models and DFD server requires Firmware Update Client on the same element. For this reason we need to make sure that those main models or root models exist on the same element. And also firmware update client can not be forced to be in the first element.
For all model extention call return the error code in case of an error.