Commit Graph

66 Commits (c26311b071ef6072097b8f86157d5c1cb047b506)

Author SHA1 Message Date
Antti Yli-Tokola 8fdae13642 Update mbed-coap to version 4.4.1
- Fixes error: IOTCLT-2539 Block wise messaging call-backs not working logically
- Allow TCP+TLS transport method to send larger messages without blockwising.

NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-04-03 13:58:40 +03:00
Antti Yli-Tokola 2e3651c2f7 Update mbed-coap to version 4.4.0
Make sn_coap_protocol_send_rst as public needed for CoAP ping sending
Allow disabling resendings by defining SN_COAP_DISABLE_RESENDINGS
2018-03-14 15:34:15 +02:00
Martin Kojtal d2f00a054c
Merge pull request #6171 from anttiylitokola/master
Update mbed-coap to version 4.3.0
2018-03-08 17:44:17 +01:00
Tero Jääskö f0cc00ef3b nanostack-hal: add alternative critical section implementation
The nanostack hal's critical section uses a mutex for mutual exclusion,
which is nice for many use cases. But when one needs to use the critical
section from interrupts, the RTX will have a assertion failure and panic.

Add a configurable for mbed_lib, which can be used to enable a alternative
version of critical section, which uses the underlying OS primitives, which
disables the interrupts.

Note: the default behavior is not changed, one needs to override the
"nanostack-hal.critical-section-usable-from-interrupt" to have "true".

Reason for this change is that there is a need for sending events using
nanostack event queue from interrupt context, eg. from a socket callback.
2018-02-27 17:12:55 +02:00
Tero Jääskö 09b8245cba nanostack-hal: remove connection from event loop init and dispatch thread
The thread flag signaling mechanism is problematic if a separate event
loop thread is not used. The problem is, that one needs to know the
thread id of the loop dispathcer, and that knowledge can be derived
only from the caller thread of the initialization function.

Remove the magic connection from caller thread to dispatcher thread
by using event flags instead of thread flags on signaling. As the
event flags require the massive amount 20 bytes of RAM whereas
thread flags requires none, keep the code behind flag.
2018-02-23 15:37:33 +02:00
Tero Jääskö aed2a0cd9f nanostack-hal: modify eventloop to allow running it in a main thread
The separate eventloop thread may not be necessary on all uses, as one
can use the existing main thread for event dispatching. Add a
conditional nanostack-hal.event-loop-dispatch-from-application, which
disables the thread creation.

Note: the ns_hal_init must be ran from the same thread which will be
used to execute the event loop later.
2018-02-23 15:37:32 +02:00
Antti Yli-Tokola 1b27317e6c Update mbed-coap to version 4.3.0
Add new api to clear whole sent blockwise message list
2018-02-22 17:57:12 +02:00
Antti Yli-Tokola 47e0922830 Update mbed-coap to version 4.2.0
* Add new API to remove sent blockwise message from the linked list
2018-02-07 13:03:12 +02:00
Jani Suonpera e0e3dbb7f8 CHANGELOG updated 2018-01-22 10:53:14 +02:00
Jani Suonpera 5d10878b8f Update CoAP to 4.1.1
Combined CoAP changes 4.0.11 and 4.1.0
Fixed regression with 4.0.11
2018-01-18 16:03:38 +02:00
Antti Yli-Tokola 93b3cfc288 mbed-coap update to version 4.1.0
- New API to control whether coap itself sends a next GET(block2) request or not
 - Fixes error IOTCLT-2203 mbed-coap does not handle PUT or POST if they indicate a smaller block size preference
2018-01-18 16:00:25 +02:00
Jani Suonpera fe80b6751a Update CoAP to 4.0.11
This PR implement https://tools.ietf.org/html/rfc7959#section-2.5
"The error code 4.13 (Request Entity Too Large) can be returned at any
time by a server that does not currently have the resources to store
blocks for a block-wise request payload transfer that it would intend
to implement in an atomic fashion. (Note that a 4.13 response to a
request that does not employ Block1 is a hint for the client to try
sending Block1, and a 4.13 response with a smaller SZX in its Block1
Option than requested is a hint to try a smaller SZX.)
2018-01-17 14:49:46 +02:00
Arto Kinnunen 4d08d5b34e Merge commit 'db48ee553797312ab0b796797942a1c14db16c62' into nanostack-release-candidate
* commit 'db48ee553797312ab0b796797942a1c14db16c62':
  Squashed 'features/FEATURE_COMMON_PAL/nanostack-libservice/' changes from 854505d..09056ed
2017-11-16 14:22:17 +02:00
Arto Kinnunen d25c27475a Merge commit 'a5a8e95bd4ed695254159b6d84904116231ad640' into nanostack-release-candidate
* commit 'a5a8e95bd4ed695254159b6d84904116231ad640':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from b731d95..6d3590f
2017-11-16 14:22:03 +02:00
Arto Kinnunen 0f471518d7 Merge commit '829a5273f99d632340333ae4c404780db3f9202f' into nanostack-release-candidate
* commit '829a5273f99d632340333ae4c404780db3f9202f':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-client-randlib/' changes from 26cdd39..531457e
2017-11-16 14:21:49 +02:00
Martin Kojtal 5bddd881e9 Merge pull request #4406 from kjbracey-arm/shared_equeues
mbed_events.h: Add ability to request a shared event queue
2017-09-04 16:55:50 +01:00
Kevin Bracey b55af5c620 Use shared event queue for timer
Don't create our own timer thread - use the shared event queue.
2017-09-01 13:26:09 +03:00
Antti Yli-Tokola e7c8a4d71f Update mbed-coap to version 4.0.10
Fixes following error: IOTMAC-615 Node mDS registration failure during OTA transfer
2017-08-31 17:02:40 +03:00
Jimmy Brisson 4978a08ae2 Merge pull request #4960 from artokin/master
Nanostack update for mbed-os-5.6
2017-08-29 13:46:47 -05:00
Arto Kinnunen a1c4db2c90 Merge commit '33b0820afc856ebe8808cb0a8c1071bc74780743'
* commit '33b0820afc856ebe8808cb0a8c1071bc74780743':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from af5f59c..b731d95
2017-08-23 15:48:29 +03:00
Arto Kinnunen 8e3df07eaa Merge commit 'dd2b0955ae955137785c1dc6587594ea2c5161c5'
* commit 'dd2b0955ae955137785c1dc6587594ea2c5161c5':
  Squashed 'features/FEATURE_COMMON_PAL/sal-stack-nanostack-eventloop/' changes from 1fc996d..be7cdd6
2017-08-23 15:10:21 +03:00
Antti Yli-Tokola 83f7301800 Updating mbed-coap to version 4.0.9
Fixes error reported in Github.
 - https://github.com/ARMmbed/mbed-coap/issues/24
 - https://github.com/ARMmbed/mbed-os/issues/4374
2017-08-21 11:21:40 +03:00
Yogesh Pande 02ec6530f4 Updating mbed-coap to version 4.0.8
Fixes errors reported in Github

 - #4798
   - Fixed Lwm2m blockwise data transfer (using Block1 option) with Leshan
 - ARMmbed/mbed-client#512
   - Fixed an ongoing blocktransfer (Block 1 option) interruption by out of order Block to return error 4.08 Request Entity Incomplete as specified in the coap specification.
 - ARMmbed/mbed-client#511
   - Fixed detected duplicate message duplications will not stop mbed-client
2017-08-08 05:04:56 -07:00
Jimmy Brisson a0c9c8840c Merge pull request #4715 from kjbracey-arm/libservice_update
Nanostack+mbed-client libservice update
2017-07-27 09:42:03 -05:00
Yogesh Pande fbb12adbc4 Fix inconsistent mbed-trace dummy defines and original function declarations. 2017-07-12 06:39:09 -07:00
Kevin Bracey 17f1111817 Merge commit '0613e29fde32daa609eb6ae4ad785112b8fd9729'
* commit '0613e29fde32daa609eb6ae4ad785112b8fd9729':
  Squashed 'features/FEATURE_COMMON_PAL/nanostack-libservice/' changes from 6444c8a..854505d
2017-07-06 12:03:42 +03:00
Seppo Takalo 2f5b03e876 Fix typo that used 16kB for stack.
Intend is to use 2kB for stack, not 16kB, but the divide operand
has been forgotten here.
2017-06-07 15:36:09 +03:00
Antti Yli-Tokola d399395eab Revert Initialize remove_from_list flag to true.
* Cause regression in cloud registration
2017-06-06 13:48:42 +03:00
Antti Yli-Tokola fe808e0db5 mbed-coap fixes.
This commit includes:
 * Add support for sending response to duplicate messages
 * Add randomness for retransmission time
 * Fix usage sn coap blockwise max time data stored
 * CoAP parser option handler does not seem to handle "Option Length" completely according to spec
 * Handle '0' value if duplication buffer size is set through the sn_coap_protocol_set_duplicate_buffer_size()
2017-06-06 09:43:21 +03:00
Russ Butler 96bd943ea2 RTX5: Enable priority inheritance and robust mode
Add the attribute flash to enable priority inheritance and robust mode.
The robust flag allows mutexes held by terminated threads to be
properly released.
2017-06-02 23:50:36 -05:00
Sam Grove 5f138810a9 Merge pull request #4294 from ARMmbed/feature_cmsis5
Update CMSIS-Core and RTX to version 5
2017-06-02 23:44:32 -05:00
Hasnain Virk f602c936ff Redirecting LWIP debug trace to mbed-trace
This piece of code redirects LWIP debug trace to mbed-trace if configured.
This enables us to have universal traces.
2017-05-31 15:02:11 +03:00
Bartek Szatkowski b01f13d1a0 Make sure all system threads and mutexes have clear names 2017-05-30 18:55:55 +01:00
Bartek Szatkowski b793a3fb89 Update codebase for CMSIS5/RTX5
Update all of mbed-os to use RTX5.
2017-05-30 18:55:52 +01:00
Sam Grove ede77621d4 Merge pull request #4332 from yogpan01/master
Fix for blockwise observation failure
2017-05-26 17:03:17 -05:00
Seppo Takalo ad094fc5b6 Merge commit 'dcfe6c8f37971fa8a587eb488aca0437ead84f29' as 'features/FEATURE_COMMON_PAL/sal-stack-nanostack-eventloop' 2017-05-18 11:45:57 +03:00
Seppo Takalo 92c284e85d Remove event-loop, to be added as a subtree 2017-05-18 11:15:02 +03:00
Yogesh Pande 8062837848 Initialize remove_from_list flag to true 2017-05-17 02:32:14 -07:00
Yogesh Pande 95b657bfee Fix for blockwise observation failure
This commit includes
 - Fix for https://github.com/ARMmbed/mbed-client/issues/481
 - Detailed Changelog available here https://github.com/ARMmbed/mbed-coap/compare/v4.0.3...v4.0.4
2017-05-16 22:04:53 -07:00
Seppo Takalo bb7eecaedc Merge commit '1d3c49a408faa231d18d83fb03c65425cf22c507' into nanostack-libservice
* commit '1d3c49a408faa231d18d83fb03c65425cf22c507':
  Squashed 'features/FEATURE_COMMON_PAL/nanostack-libservice/' changes from 67affc61b..6444c8a4f
2017-05-11 13:38:20 +03:00
Seppo Takalo fb91d73606 Merge commit '8d65f6d10a610bd4305528f7338e081059a93fb8' as 'features/FEATURE_COMMON_PAL/nanostack-libservice' 2017-04-27 15:19:39 +03:00
Seppo Takalo 210508b801 Remove libservice, to be added as a subtree 2017-04-27 15:15:30 +03:00
Anna Bridge fd5c327de1 Merge pull request #3976 from yogpan01/master
mbed-coap error fixes merge to mbed OS
2017-03-23 15:40:41 +00:00
Yogesh Pande cf8863c53b mbed-coap error fixes merge to mbed OS
This commit includes
 - Error fixes done on mbed-coap merge back to mbed OS.
 - Detailed CHANGELOG  is available here (https://github.com/ARMmbed/mbed-coap/compare/v4.0.2...v4.0.3)
2017-03-21 12:39:11 +02:00
Seppo Takalo da80d6bd4b Update mbed-trace
* commit 'c8a16cc274fbbb074909690a78a9d2aaf5411d5a':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from 31e338c23..af5f59cd2
2017-03-16 10:54:21 +02:00
Sam Grove 371aaa53c3 Merge pull request #3789 from yogpan01/master
Separating CoAP library from mbed-client-c
2017-02-23 15:44:58 -06:00
Seppo Takalo 9137ba8f8a Add NS_DUMMY_DEFINITIONS_OK
Add definition from master repository.
This fixes compilation of coap_service.c on non-secure platforms.
2017-02-23 14:44:59 +02:00
Yogesh Pande f51329b858 Reverting fix for IOTCLT-1439 because of regression 2017-02-23 12:29:49 +02:00
Yogesh Pande 9f8271e495 Taking error fix for IOTCLT-1439 2017-02-23 08:23:39 +02:00
Yogesh Pande f57433a00a Separating CoAP library from mbed-client-c
This commit includes
 - Removing CoAP sources from mbed-client-c to its own repository.
 - mbed-client-c is moved outside of mbed-os source tree because it is used by mbed-client, so
   it will be part of mbed-client offering.
 - CoAP sources are used by coap-service which is a part of nanostack deliveries hence coap now existing
   as independent module under mbed-coap.

 - Commit handles the interdepdency of coap-service with mbed-client-c because of coap sources, coap-service
   header files are now fixed to point to right header directory.
2017-02-16 19:08:28 +02:00