In the reception data path, we needed to check the MCPS CONFIRMATION type
not the MCPS INDICATION type. Indication message type is for downlink message type
which can be UNCONFIRMED even if we have sent a CONFIRMED one, e.g., an ACK.
Fixes error: IOTCLT-2506 [GitHub] Cannot set registration time if server does not use max age option
Improvements; Extend blockwise message transfer status to have states for sending as well.
NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
Our config file for lwIP had TCP_QUEUE_OOSEQ disabled - this can
cause significant performance problems, as observed during testing.
One lost packet can lock an input stream into a mode where the
transmitter keeps thinking packets are being lost, so keeps slowing
down. This caused test failures - a transfer that would normally
take 10s hit a 60s timeout.
Turning this on increases code size, but doesn't significantly increase
static memory use. The memory used for out-of-order packets comes from
the same pbuf pool as for outgoing TCP segments, so there is contention
when running bidirectionally.
Out-of-order processing is on by default for lwIP - this seems to be
another example of us excessively paring it back.
6df2572 add unit test support for mac (#81)
git-subtree-dir: features/frameworks/mbed-trace
git-subtree-split: 6df2572dfb803596049b87fbad4d761acaef69c3
82bbdcc Merge branch 'release_internal' into release_external
7c7568d address error sent when matching entry found. (#1695)
0860ae7 Keep parent mle_entry in child_update_req timeout (#1693)
92044d6 Changed BBR router upgrade status (#1661)
e4a9657 Compiler warning clean-up (#1690)
a573bc4 Detection of duplicate address entries updated (#1686)
f28cce8 pbbr route handling updated (#1681)
389fab0 MLE parent request timeout fixes (#1676)
feb1784 Remove fragment/PMTU handling dropped by RFC 8200
073f7e8 entry keep alive flag set to true if entry already exists. (#1675)
1584759 Extra Thread-specific address check handling
934687b Tighten core "for us" check for unicast addresses
58a60e7 address query logic implemented(#1667)
c25df78 Fix for Router advertisement process in REED (#1658)
f8b227f Thread DHCP address allocation fix (#1657)
41ca387 removed the dependence of AE message relay on DUA prefix (#1655)
9e7e9e0 REED parser refactoring for MLE advertisement (#1654)
4fda90e Clear data request flag in child_id_req timeout (#1649)
5af4a39 updated mleid rloc sync in leader. (#1645)
564d3fe Added filter callback for MLE messages (#1638)
9f85599 Security bits handled correctly (#1642)
9e6c3a1 Update Thread MLE neighbor list cleanup, attempt #2 (#1640)
1060c34 file version checking handled after other errors. (#1641)
9c6b876 added nvm support for leader router id allocation. (#1626)
4f5e97d Revert "Update Thread MLE neighbor list cleanup (#1637)" (#1639)
a20a0ba Update Thread MLE neighbor list cleanup (#1637)
32cfb6b Fix to partition selection rules (#1633)
0d655ed Update MLE receiver in Child ID req timeout error (#1634)
2378dad Discard late Child ID responses (#1630)
3e8b4ce Multicast registration time fix (#1631)
f5530b1 Thread key ID change during attach (#1627)
1b7fdc0 Skip discovery request if MLE table is full (#1625)
4022ad9 Add new test API for clearing Thread stack values (#1624)
ffb47a2 additional reed advertisement (#1609)
cfb1e81 Thread tx failure handling update (#1620)
15846ed refactored network data sync as leader (#1615)
a5c67fd data request resent if leader after resync does not receive data response.(#1614)
f8a39da documentation fix: (#1608)
b69ba04 Allow MLE entry forced saving to MAC (#1600)
0e85099 Update router id sequence number in router sync (#1594)
f2cd4cf Read the short addr as 16-bit value before calling mac api (#1585)
912cf02 purge old partition data when child id response is received (#1588)
648ef89 Remove unnecessary call to mac (#1583)
09cff0e Fix uninitialised memory defect found by valgrind (#1582)
a1acffc Update Thread publishing during address change (#1581)
d2ddb1a Send new a/sd immediately after address change (#1576)
c18d1fd added check for parent info before processing child update (#1577)
96e86b6 implemented Sleepy End Device child update requests. (#1570)
33cb7cb Flag check updated. (#1572)
9f8e7f2 Merge pull request #1566 from ARMmbed/ut_fix
565da92 Update socket_api_test.cpp
59545f9 Update socket_api_test.cpp
09414e1 ML-EID is now added to address registration tlv. (#1565)
beddb01 unittest fix for newer release of cpputest
git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 82bbdcc7ec63355fc19bf2c6054716584742b99b
Application can give battery_level callback method what Lora stack
uses to query battery level for DevStatusReq MAC command response.
The problem was that this callback was never called.
This commit fixes this problem and if application does not set
battery_level callback at all, value 255 (= The end-device was not able to
measure the battery level.) will be returned to lora gateway.
Currently test assumes that 1 sec is long enough to set RTC time and read same time which has been set.
In some cases extra time for synchronisation between clock domains is needed and after setting/reading operations the read value might be different than one which has been set (+1 sec).
Additionally in some cases when lp ticker is based on RTC, the RTC implementation may use mechanism to trace elapsed seconds without modifying RTC registers. In such case it is possible that second will change immediately after setting time.
Add 1 sec tolerance (min possible) for such checks.
In current implementation `rtc_read` function returns number of elapsed us and `rtc_write` function sets RTC time to specified value in us.
Mbed HAL API expects that these functions operate on seconds.
Since lp ticker is also based on RTC provide mechanism to trace elapsed seconds without modifying RTC registers.