Commit Graph

311 Commits (96a1c1ae8fc7589554658e80fb098f0af5055367)

Author SHA1 Message Date
Martin Kojtal 9e87200809
Merge pull request #11556 from mikter/master
modified Wi-SUN tasklet to return success when calling connect twice
2019-10-18 16:07:25 +02:00
Mika Leppänen 3c39dbd737 Corrected nanostack PAE controller 2019-10-15 09:53:36 +03:00
Martin Kojtal 57c4a08e48
Merge pull request #11539 from mikaleppanen/cert_key_len_supp
Enable DER coded certificate support to Wi-SUN mesh API
2019-10-15 13:05:23 +08:00
Anna Bridge 917d982913
Merge pull request #11639 from JarkkoPaso/nanostack_release_for_mbedos_5_14_1
Nanostack patch release for mbedos 5.14.1
2019-10-11 10:59:16 +01:00
Jarkko Paso 4cab344c59 Merge commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d'
* commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d':
  Squashed 'features/nanostack/coap-service/' changes from e9edb1b..b919a33
2019-10-07 13:08:20 +03:00
Jarkko Paso c15478021b Merge commit '3e6cb31659a56d343c7b8fe37645f195eb87ffcf'
* commit '3e6cb31659a56d343c7b8fe37645f195eb87ffcf':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from c473148..0824752
2019-10-07 13:00:49 +03:00
Mika Tervonen 86e3a5a021 Modified Wi-SUN tasklet to return correct status when calling connect twice
When calling mesh connect method twice NSAPI_ERROR_IS_CONNECTED is returned
instead of NSAPI_ERROR_DEVICE_ERROR Following the mesh API documentation.
2019-09-30 14:15:14 +03:00
int_szyk a60df639fe thread_mle_message_handler: fix null comparison.
Fixes Coverity issue about comparing nullptr.
2019-09-24 12:53:53 +02:00
Mika Leppänen 47e5dd74e2 Enabled DER coded certificate support to Wi-SUN mesh API
Wi-SUN mesh API uses now nanostack certificate interface with length parameters.
This enables that either PEM or DER formatted certificates can be used. Using
the length configuration for certificates and keys is optional, so existing
applications using the PEM certificates do not require changes.
2019-09-20 13:15:28 +03:00
Jaeden Amero 60f383e01f tls: Update export keys callback to use const
Mbed TLS's export keys callback requires the hello.random (for both
server and client) to be const. Make the callbacks in Mbed OS that use
the key export feature use const to match.
2019-09-17 12:57:05 +01:00
Jarkko Paso 4ebbbc592d Merge commit '396dae52ab4eef15910011432f2c7a4261fc22b7'
* commit '396dae52ab4eef15910011432f2c7a4261fc22b7':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 4a19dc4..c473148
2019-09-05 14:28:22 +03:00
Jarkko Paso da0fe81bfd Mesh API, Wi-SUN: Initialize Wi-SUN settings with values from json 2019-09-04 15:53:21 +03:00
Martin Kojtal d6304e322c
Merge pull request #11181 from artokin/mbed_wisun_api_update
mbed-mesh-api: Add new API for Wi-SUN configuration
2019-08-28 13:50:13 +02:00
Martin Kojtal a6372e521c
Merge pull request #11345 from yogpan01/fix-bare-metal-pdmc
Fix bare-metal configuration to support Pelion Device Management Client
2019-08-28 13:07:36 +02:00
Arto Kinnunen f8289ec0ac mbed-mesh-api: Add API set_file_system_root_path 2019-08-28 09:34:30 +03:00
Arto Kinnunen 774162dd83 mbed-mesh-api: Add new Wi-SUN certificate API
Add new API for setting Wi-SUN:
-Setting own/trusted certificates
-Removing own/trusted certificates
2019-08-28 09:34:30 +03:00
Arto Kinnunen c0f3cb7568 mbed-mesh-api: Add new Wi-SUN API
Add new API for setting Wi-SUN:
 -network name
 -regulatory domain, operating mode and operating class
2019-08-28 09:34:30 +03:00
Yogesh Pande 6edab0e13a Fix to use correct build flag MBED_CONF_NANOSTACK_CONFIGURATION
The bare-metal configuration should be using MBED_CONF_NANOSTACK_CONFIGURATION
instead of MBED_CONF_NANOSTACK_CONFIG.

Fixing the typo for flagging.
2019-08-27 17:20:40 +03:00
Yogesh Pande 076deeb4a9 Bare metal support for running PDMC
PDMC requires event loop to also support bare metal configuration.
It requires to adapt eventloop for bare-metal configuration.
2019-08-27 13:09:56 +03:00
Jarkko Paso 2bcb1a6c9d Merge commit '7c99079717dd610f0674f6cf38a77af14f987dc6'
* commit '7c99079717dd610f0674f6cf38a77af14f987dc6':
  Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 7745556..276ff28
2019-08-26 15:46:10 +03:00
Jarkko Paso b0f3ff2156 Merge commit '928754fbc507c71890fa69fbd9cd20ab37f1d2a6'
* commit '928754fbc507c71890fa69fbd9cd20ab37f1d2a6':
  Squashed 'features/nanostack/coap-service/' changes from 3b447d2..e9edb1b
2019-08-26 15:21:38 +03:00
Jarkko Paso 00bf399628 Merge commit 'b7910939daa15a8e658dbc58bccaeb3bb101d338'
* commit 'b7910939daa15a8e658dbc58bccaeb3bb101d338':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 3c7d50e..4a19dc4
2019-08-26 15:13:00 +03:00
Martin Kojtal cf6fbda971
Merge pull request #11250 from JarkkoPaso/master
hal fhss timer: removed unnecessary and potentially unsafe memset
2019-08-23 10:19:20 +02:00
Martin Kojtal edcde1ce8c
Merge pull request #10796 from NXPmicro/tickless
NXP: Enable MBED_TICKLESS on various NXP platforms
2019-08-22 10:30:14 +02:00
Mika Leppänen ab3a4699c9 Added missing header to wisun interface 2019-08-20 13:37:12 +03:00
Mika Leppänen a2df462f65 Nanostack changes for PPP service
Created PPP interface for PPP service. Re-used the ethernet tasklet
and PHY driver structure for PPP.
2019-08-20 13:37:12 +03:00
Jarkko Paso 2aacb1c527 hal fhss timer: all static functions inside anonymous namespace 2019-08-19 13:20:46 +03:00
Jarkko Paso 3e9d7b3598 hal fhss timer: removed unnecessary and potentially unsafe memset 2019-08-16 11:46:10 +03:00
Mahesh Mahadevan 9ebbdbf1bb MCUXpresso: Update KW41 nanostack drivers to not enter deep sleep when active
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:57:11 -05:00
Arto Kinnunen d902c1a135 Merge commit 'c51a57a0334645b14794f6082737b11d8b8c56db' into prepare_for_mbedos_5_13_3
* commit 'c51a57a0334645b14794f6082737b11d8b8c56db':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 0345477..3c7d50e
2019-08-02 13:52:37 +03:00
Arto Kinnunen dac37a8994 Merge commit '489fa3adeb46ef38d46db4339dfe8935c9444b02' into prepare_for_mbedos_5_13_3
* commit '489fa3adeb46ef38d46db4339dfe8935c9444b02':
  Squashed 'features/nanostack/coap-service/' changes from 3c79829..3b447d2
2019-08-02 13:51:07 +03:00
Kevin Bracey 0bb4c050b7 SingletonPtr: API extensions, make constexpr
* Adjust definition to make the default constructor `constexpr`.
  This permits use in classes that want lazy initialization and their
  own `constexpr` constructor, such as `mstd::mutex`.

* Add `get_no_init()` method to allow an explicit optimisation for
  paths that know they won be the first call (such as
  `mstd::mutex::unlock`).

* Add `destroy()` method to permit destruction of the contained object.
  (`SingletonPtr`'s destructor does not call its destructor - a cheat
  to omit destructors of static objects). Needed if using in a class
  that needs proper destruction.
2019-07-18 20:02:04 +03:00
Tero Jääskö 14bb4399b3 nanostack: silence compiler warnings for implicit virtual call_in
ARMCC reminds of the missing virtual declaration of call_in in the
Nanostack.h.

Warnings silenced:
---8<---8<---
Compile [ 52.3%]: LoWPANNDInterface.cpp
[Warning] Nanostack.h@278,0:  #1300-D: call_in inherits implicit virtual
Compile [ 52.4%]: NanostackEMACInterface.cpp
[Warning] Nanostack.h@278,0:  #1300-D: call_in inherits implicit virtual
Compile [ 52.5%]: MeshInterfaceNanostack.cpp
[Warning] Nanostack.h@278,0:  #1300-D: call_in inherits implicit virtual
Compile [ 52.6%]: NanostackEthernetInterface.cpp
[Warning] Nanostack.h@278,0:  #1300-D: call_in inherits implicit virtual
Compile [ 52.7%]: ThreadInterface.cpp
[Warning] Nanostack.h@278,0:  #1300-D: call_in inherits implicit virtual
ompile [ 53.0%]: WisunInterface.cpp
[Warning] Nanostack.h@278,0:  #1300-D: call_in inherits implicit virtual
2019-06-26 16:55:10 +03:00
Kevin Bracey 2fbbd9d2ca Introduce Semaphore::acquire methods
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().

Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".

Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Martin Kojtal b2abfc3529
Merge pull request #10624 from artokin/prepare_for_mbedos513
Nanostack release for Mbed OS 5.13
2019-05-23 11:16:56 +01:00
Arto Kinnunen 07aac7b911 Merge commit '1c29564f653e93a2bda270b257c9bb239de9b61e' into prepare_for_mbedos513
* commit '1c29564f653e93a2bda270b257c9bb239de9b61e':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 84a07ce..0345477
2019-05-21 14:22:20 +03:00
Arto Kinnunen a24db795a5 Squashed 'features/nanostack/coap-service/' changes from 086e7ba..3c79829
3c79829 Merge pull request #122 from ARMmbed/sync_with_mbedOS
5dd3ab9 (via Mbed OS) test_soap_connection_handler leaks memory when open_connection fails

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 3c79829ee3bb2bf7d9308a88f2b5c3596f6fea4b
2019-05-21 14:21:19 +03:00
Arto Kinnunen 9687f59555 Update mesh related configuration help texts
-Update mbed-mesh-api nanostack heap-size configuration help
-Add WISUN to netsocket default-mesh-type configuration help
2019-05-20 13:29:53 +03:00
Mika Leppänen 9e22354f63 Corrected json and added check to ensure that needed json options are set 2019-05-17 10:42:26 +03:00
Mika Leppänen 5fbbfee201 Added Wi-Sun certificate options to mesh api configuration json
Added possibility to configure Wi-Sun root certificate, own certificate
and own certificate keys to mesh api.
2019-05-16 15:04:03 +03:00
Anna Bridge f28b82b831
Merge pull request #10475 from kivaisan/ns_eventloop_tick_timer
Implement nanostack eventloop tick timer
2019-04-26 13:38:17 +01:00
Anna Bridge 1647282de9
Merge pull request #10462 from michalpasztamobica/nanostack_semaphore_release_connecting
Nanostack: release connect_semaphore only when it is pending
2019-04-26 13:37:53 +01:00
Anna Bridge 016ce322b4
Merge pull request #10434 from michalpasztamobica/nanostack_network_handler_fix
Nanostack network handle does not always call status cb for BOOTSTRAP events
2019-04-26 13:33:46 +01:00
Anna Bridge 9f18456114
Merge pull request #10410 from michalpasztamobica/nanostack_translate_sendmsg_errors
Nanostack: translate errors from sendmsg
2019-04-26 13:32:59 +01:00
Anna Bridge b1cd3dab16
Merge pull request #10258 from davidsaada/david_remove_feature_storage
Remove FEATURE_STORAGE and all underlying deprecated features
2019-04-26 13:31:37 +01:00
Kimmo Vaisanen 7349bc8a47 Implement nanostack eventloop tick timer
Nanostack eventloop tick timer can be used in case high resolution
platform timer is not needed. One usecase for that is Pelion
Cloud client when using for example cellular connectivity. This enables
PDMC application to enter deep sleep state.
2019-04-25 12:01:52 +03:00
Michal Paszta 2b26a62cc7 Nanostack: release connect_semaphore only when it is pending
Only release if the current _connect_status is CONNECTING. If the semaphore is released many times for each connect, then the next connect will not wait(), as it will be able to decrement the semaphore imediatelly.
2019-04-24 11:31:16 +03:00
Michal Paszta 8d1edc7db8 Nanostack network handle does not always call status cb for BOOTSTRAP events
UBLOX_EVK_ODIN_W2 advertises more events than we expect.
1) When disconnecting first network connectivity is lost and then an
actual disconnection event arrives. The first one is unexpected.
2) When reconnecting MESH_BOOTSTRAP_START_FAILED shows up, but the board
eventually manages to connect
2019-04-17 19:31:36 +03:00
Kevin Bracey 69c6cc341b Networking: Fix some ARMC6 warnings
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-17 16:03:44 +03:00
Michal Paszta d1d0118752 Nanostack: translate errors from sendmsg
Translate errors to NSAPI_ERROR_*, instead of always returning
NSAPI_ERROR_DEVICE_ERROR
2019-04-16 15:03:50 +03:00