Skip to content

Bluetooth: Mesh: FU Server should not update internal state on error #64258

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

Conversation

omkar3141
Copy link
Collaborator

According to conditions in the DFU spec section 6.1.3.7 (Sending a Firmware Update Status message) and in 'Idempotency' part of section 6.1.3.4 (Receiving a Firmware Update Start message), the FU Server should not update internal state when 'Wrong Phase' error condition is triggered.

PavelVPV
PavelVPV previously approved these changes Oct 23, 2023
@omkar3141
Copy link
Collaborator Author

PTS logs run from Alperen's local server:

1/24   DFU       DFU/SR/FU/BV-23-C   FATAL ERROR    9.891                  
(140081045420256) Starting PTS 192.168.12.117:65000 ...
(140081045420256) OK
2/24   DFU       DFU/SR/FU/BV-24-C   FATAL ERROR    9.189                  
(140081045420256) Starting PTS 192.168.12.117:65000 ...
(140081045420256) OK
3/24   DFU       DFU/SR/FU/BV-02-C   PASS           48.92                  
4/24   DFU       DFU/SR/FU/BV-15-C   PASS           44.669                  
5/24   DFU       DFU/SR/FU/BV-14-C   PASS           43.903                  
6/24   DFU       DFU/SR/FU/BV-10-C   PASS           37.431                  
7/24   DFU       DFU/SR/FU/BV-22-C   PASS           38.572                  
8/24   DFU       DFU/SR/FU/BV-17-C   PASS           44.686                  
9/24   DFU       DFU/SR/FU/BV-07-C   PASS           44.04                  
10/24   DFU       DFU/SR/FU/BV-04-C   PASS           108.581                  
11/24   DFU       DFU/SR/FU/BV-16-C   PASS           108.989                  
12/24   DFU       DFU/SR/FU/BV-20-C   PASS           34.126                  
13/24   DFU       DFU/SR/FU/BV-08-C   PASS           33.792                  
14/24   DFU       DFU/SR/FU/BV-19-C   PASS           41.056                  
15/24   DFU       DFU/SR/FU/BV-18-C   PASS           40.035                  
16/24   DFU       DFU/SR/FU/BV-11-C   PASS           34.857                  
17/24   DFU       DFU/SR/FU/BV-05-C   PASS           39.837                  
18/24   DFU       DFU/SR/FU/BV-09-C   PASS           41.031                  
19/24   DFU       DFU/SR/FU/BV-21-C   PASS           108.548                  
20/24   DFU       DFU/SR/FU/BV-01-C   PASS           33.948                  
21/24   DFU       DFU/SR/FU/BV-13-C   PASS           38.01                  
22/24   DFU       DFU/SR/FU/BV-12-C   PASS           107.479                  
23/24   DFU       DFU/SR/FU/BV-03-C   PASS           43.476                  
24/24   DFU       DFU/SR/FU/BV-06-C   PASS           37.565

 

1/2   DFU       DFU/SR/FU/BV-23-C   PASS           44.643                  
2/2   DFU       DFU/SR/FU/BV-24-C   PASS           169.731

Andrewpini
Andrewpini previously approved these changes Oct 23, 2023
@alxelax alxelax added the DNM This PR should not be merged (Do Not Merge) label Oct 23, 2023
@omkar3141 omkar3141 force-pushed the bugfix/dfu_dont_update_internal_state_when_ideompotency_check_fails2 branch from 4eb4017 to c2106f7 Compare October 23, 2023 15:11
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Oct 23, 2023
@omkar3141
Copy link
Collaborator Author

omkar3141 commented Oct 23, 2023

Based on internal tests, all DFU/SR/FD/* and DFU/SR/FU* tests pass for commit b4eef4d.

According to conditions in the DFU spec section 6.1.3.7 (Sending a
Firmware Update Status message) and in 'Idempotency' part of section
6.1.3.4 (Receiving a Firmware Update Start message), the FU Server
should not update internal state when 'Wrong Phase' error condition
is triggered.

Signed-off-by: Omkar Kulkarni <[email protected]>
@omkar3141 omkar3141 dismissed stale reviews from Andrewpini and PavelVPV via b4eef4d October 23, 2023 15:16
@omkar3141 omkar3141 force-pushed the bugfix/dfu_dont_update_internal_state_when_ideompotency_check_fails2 branch from c2106f7 to b4eef4d Compare October 23, 2023 15:16
m-alperen-sener pushed a commit to m-alperen-sener/sdk-zephyr that referenced this pull request Oct 23, 2023
…state on error

According to conditions in the DFU spec section 6.1.3.7 (Sending a
Firmware Update Status message) and in 'Idempotency' part of section
6.1.3.4 (Receiving a Firmware Update Start message), the FU Server
should not update internal state when 'Wrong Phase' error condition
is triggered.

Upstream PR: zephyrproject-rtos/zephyr#64258
Signed-off-by: Omkar Kulkarni <[email protected]>
(cherry picked from commit b4eef4da68a5c1f4b02c4d10ee0340375f775a14)
cvinayak pushed a commit to nrfconnect/sdk-zephyr that referenced this pull request Oct 23, 2023
…state on error

According to conditions in the DFU spec section 6.1.3.7 (Sending a
Firmware Update Status message) and in 'Idempotency' part of section
6.1.3.4 (Receiving a Firmware Update Start message), the FU Server
should not update internal state when 'Wrong Phase' error condition
is triggered.

Upstream PR: zephyrproject-rtos/zephyr#64258
Signed-off-by: Omkar Kulkarni <[email protected]>
(cherry picked from commit b4eef4da68a5c1f4b02c4d10ee0340375f775a14)
@carlescufi carlescufi merged commit 3de9864 into zephyrproject-rtos:main Oct 24, 2023
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.

6 participants