Commit a389495
committed
Improve firmware update handling and logging
Clarify and harden firmware update flow: enhance debug logging for ACK advancement and duplicate UPDATE_MD_GET handling to better describe sequential cases, and increase NOP/version refresh scheduling delays (delayedExecutor from 2s to 10s and added extra waitTimeSeconds offset) to reduce race conditions. Update unit test timeout to match the longer delay. Refactor ZWaveThingHandler: reorder firmware-related fields, replace direct callback identity check with Objects.equals, and add advanceFirmwareProgressTo helper to advance progress steps safely. Minor cleanup: move FirmwareDownloadStatus enum within ZWaveFirmwareUpdateCommandClass, tweak author tags in ZWaveNode, and trim incidental whitespace.
Signed-off-by: Bob Eckhoff <katmandodo@yahoo.com>1 parent b132da1 commit a389495
6 files changed
Lines changed: 85 additions & 76 deletions
File tree
- src
- main/java/org/openhab/binding/zwave
- actions
- firmwareupdate
- handler
- internal/protocol
- commandclass
- test/java/org/openhab/binding/zwave/firmwareupdate
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | 166 | | |
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
732 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
733 | 741 | | |
734 | 742 | | |
735 | 743 | | |
| |||
745 | 753 | | |
746 | 754 | | |
747 | 755 | | |
748 | | - | |
749 | | - | |
750 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
751 | 766 | | |
752 | 767 | | |
753 | | - | |
754 | 768 | | |
755 | 769 | | |
756 | 770 | | |
| |||
1059 | 1073 | | |
1060 | 1074 | | |
1061 | 1075 | | |
1062 | | - | |
| 1076 | + | |
1063 | 1077 | | |
1064 | 1078 | | |
1065 | 1079 | | |
| |||
1081 | 1095 | | |
1082 | 1096 | | |
1083 | 1097 | | |
1084 | | - | |
| 1098 | + | |
1085 | 1099 | | |
1086 | 1100 | | |
1087 | 1101 | | |
| |||
Lines changed: 30 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 123 | | |
135 | 124 | | |
136 | 125 | | |
| |||
139 | 128 | | |
140 | 129 | | |
141 | 130 | | |
| 131 | + | |
142 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
143 | 141 | | |
144 | 142 | | |
145 | | - | |
146 | 143 | | |
147 | 144 | | |
148 | 145 | | |
149 | 146 | | |
150 | | - | |
151 | 147 | | |
152 | 148 | | |
153 | 149 | | |
| |||
2228 | 2224 | | |
2229 | 2225 | | |
2230 | 2226 | | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
2231 | 2245 | | |
2232 | 2246 | | |
2233 | 2247 | | |
| |||
2420 | 2434 | | |
2421 | 2435 | | |
2422 | 2436 | | |
2423 | | - | |
| 2437 | + | |
2424 | 2438 | | |
2425 | 2439 | | |
2426 | 2440 | | |
| |||
2462 | 2476 | | |
2463 | 2477 | | |
2464 | 2478 | | |
2465 | | - | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | | - | |
2472 | | - | |
2473 | | - | |
2474 | | - | |
2475 | | - | |
2476 | | - | |
2477 | | - | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | | - | |
2483 | 2479 | | |
2484 | | - | |
2485 | | - | |
| 2480 | + | |
| 2481 | + | |
2486 | 2482 | | |
2487 | 2483 | | |
2488 | 2484 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Lines changed: 29 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | 385 | | |
415 | 386 | | |
416 | 387 | | |
| |||
502 | 473 | | |
503 | 474 | | |
504 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
0 commit comments