Commit bcbf2ff
committed
Z/IP Gateway Watchdog (Reopen for review) (#4)
* FIX ZGW-3422: zipgateway got stuck in RD_probe_cc_version.c
+ Fixed zipgw stuck if controller send VERSION_COMMAND_CLASS_GET in the inclusion phase without receiving VERSION_COMMAND_CLASS_REPORT from the end-node
+ Put the NULL checking of pCmd first; added extra NULL checking for ep & ep->node
Fixes: #ZGW-3422
Signed-off-by: silabs-tuD <tu.dao@silabs.com>
Reviewed-on: SiliconLabs#34
* ZGW-3422: Z/IP got stuck after sending VERSION_COMMAND_CLASS_GET without receving report from the end-node (#1)
* ZGW-3422: Fix: Z/IP GW got stuck without receiving VERSION_COMMAND_CLASS_REPORT from the end-node
* Put the NULL checking of pCmd first; added extra NULL checking for ep & ep->node
* Fix/zgw 3422 getting stuck on command class version (#2)
+ Fixed errors on ctest with the Null Check of pCmd
* Z/IP Gateway Watchdog
Implement the watchdog feature for Z/IP Gateway working as below:
- Create a “soft_reset_timer” with 2-minnute timeout.
- During 2 mins, if Z/IP GW only receive TRANSMIT_COMPLETE_FAIL status, it will try to resend the previous failed serial-API command to the controller.
- After timeout (2 mins), Z/IP GW will call ZW_SoftReset() to reset the controller and wait for 10 seconds to ensure the reset process is successful.
- Z/IP GW will also send a soft_reset report back to ZWare.
Fixes: #ZGW-3433
Signed-off-by: silabs-tuD <tu.dao@silabs.com>
Authored-by: hanguyen3_silabs <Ha.Nguyen3@silabs.com>
Reviewed-by: silabs-tuD <tu.dao@silabs.com>
Origin: SiliconLabs#35
* Resolve comments on PR
---------
Signed-off-by: silabs-tuD <tu.dao@silabs.com>1 parent 3b3ef4b commit bcbf2ff
8 files changed
Lines changed: 319 additions & 64 deletions
File tree
- contiki/platform/linux
- files
- src
- transport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
436 | 465 | | |
437 | 466 | | |
438 | | - | |
| 467 | + | |
439 | 468 | | |
440 | 469 | | |
441 | 470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| 637 | + | |
637 | 638 | | |
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
641 | | - | |
| 642 | + | |
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
647 | | - | |
| 648 | + | |
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
| |||
662 | 663 | | |
663 | 664 | | |
664 | 665 | | |
665 | | - | |
| 666 | + | |
666 | 667 | | |
667 | 668 | | |
668 | 669 | | |
| |||
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| 679 | + | |
678 | 680 | | |
679 | 681 | | |
680 | 682 | | |
| |||
1348 | 1350 | | |
1349 | 1351 | | |
1350 | 1352 | | |
1351 | | - | |
| 1353 | + | |
1352 | 1354 | | |
1353 | 1355 | | |
1354 | 1356 | | |
| |||
1667 | 1669 | | |
1668 | 1670 | | |
1669 | 1671 | | |
1670 | | - | |
| 1672 | + | |
| 1673 | + | |
1671 | 1674 | | |
| 1675 | + | |
1672 | 1676 | | |
1673 | 1677 | | |
1674 | | - | |
| 1678 | + | |
| 1679 | + | |
1675 | 1680 | | |
1676 | 1681 | | |
1677 | 1682 | | |
1678 | 1683 | | |
1679 | 1684 | | |
1680 | 1685 | | |
1681 | 1686 | | |
| 1687 | + | |
1682 | 1688 | | |
1683 | 1689 | | |
1684 | 1690 | | |
| |||
1746 | 1752 | | |
1747 | 1753 | | |
1748 | 1754 | | |
1749 | | - | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1750 | 1758 | | |
1751 | 1759 | | |
1752 | 1760 | | |
| |||
1764 | 1772 | | |
1765 | 1773 | | |
1766 | 1774 | | |
1767 | | - | |
| 1775 | + | |
| 1776 | + | |
1768 | 1777 | | |
1769 | 1778 | | |
1770 | | - | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1771 | 1782 | | |
1772 | 1783 | | |
1773 | 1784 | | |
1774 | 1785 | | |
1775 | 1786 | | |
1776 | | - | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
1789 | 1804 | | |
1790 | 1805 | | |
1791 | 1806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1214 | 1214 | | |
1215 | 1215 | | |
1216 | 1216 | | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
1217 | 1223 | | |
0 commit comments