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
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
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
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
Cruz Monrreal
9c381f27ec
Merge pull request #10243 from michalpasztamobica/nanostack_bringdown_blocking
...
Nanostack::EthernetInterface::bringdown() can handle blocking mode
2019-03-29 10:20:47 -05:00
Cruz Monrreal
48c78ae79a
Merge pull request #9971 from KariHaapalehto/status_callback
...
Correct thread status callback functionality
2019-03-28 17:05:34 -05:00
Michal Paszta
ccc83f7e3b
Nanostack::EthernetInterface::bringdown() can handle blocking mode
...
This let the tests-network-interface test pass for nanostack.
2019-03-27 16:34:46 +02:00
Kari Haapalehto
d9448364da
Correct thread status callback functionality.
...
At the start-up, there was 2 NSAPI_STATUS_CONNECTING callbacks,
so extra one removed from ThreadInterface.cpp.
At the network lost case, there was NSAPI_STATUS_DISCONNECTED and
NSAPI_STATUS_LOCAL_UP callbacks. NSAPI_STATUS_DISCONNECTED has been removed,
since the NSAPI_STATUS_LOCAL_UP is enought.
2019-03-12 13:13:55 +02:00
Arto Kinnunen
7ec9be6a6d
Update Wi-SUN network default name
2019-03-04 10:07:31 +02:00
Cruz Monrreal
39441655bf
Merge pull request #9684 from KariHaapalehto/ethernet_tasklet_correction
...
enet_tasklet_disconnect() should generate event to tasklet.
2019-02-14 09:13:15 -06:00
Cruz Monrreal
b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
...
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Kari Haapalehto
31c40130d6
enet_tasklet_disconnect() should generate event to tasklet.
...
enet_tasklet_disconnect() is now generating event to ethernet_tasklet,
which will then handle it.
2019-02-13 13:57:03 +02:00
Jimmy Brisson
724487d545
Require dependencies from nanostack mbed_lib.json
2019-02-07 09:39:10 -06:00
Martin Kojtal
272bc14cde
Merge pull request #9546 from jarlamsa/mesh_api_fixes
...
Mesh api fixes
2019-01-31 11:19:55 +01:00
Michal Paszta
53a82faa5a
Prevent double attempt to connect mesh api
...
Socket network interface tests were failing due to DICONNECTED event
being advertised, where GLOBAL_UP was expected. It turned out that
nanostack receives two events: APPL_EVENT_CONNECT and
APPL_BACKHAUL_INTERFACE_PHY_UP. The second attempt to connect obviously
returns errors, but it also causes events to be sent out to the
application. The second attempt should not take place in case the
bootstrap is already started.
I also fixed two reports being sent with DISCONNECT status, while they
are actually something else.
2019-01-30 15:08:11 +02:00
Jarno Lamsa
740488d061
Set tasklet parameters before connecting
...
Set tasklet parameters before connecting to prevent the parameters to be set to 0.
The tasklet parameters are reset to 0 when wisun_tasklet_connect gets called,
thus those need to be set in the wisun_tasklet_configure_and_connect_to_network
before they are used. This is also done this way in other tasklets.
2019-01-30 13:06:17 +02:00
Jarno Lamsa
d7af9418da
Remove yotta-specific lines from .gitignore
2019-01-30 13:04:08 +02:00
Brian Daniels
ee5281abef
Remove unused yotta module metadata
2019-01-24 15:30:20 -06:00
Mahesh Mahadevan
585a4b6ddd
Add nanostack support for KW41Z
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-09 07:43:41 -06:00
Kari Haapalehto
7068e456dd
Correcting the error-case trace from mesh-api interfaces
2019-01-07 10:48:46 +02:00
Antti Kauppila
02b0f79e15
mbed.h includes removed
2018-12-28 14:36:10 +02:00
Cruz Monrreal
8bd9772d5d
Merge pull request #8975 from KariHaapalehto/fix_valid_mac_address
...
Initialize the interface at the construction
2018-12-18 13:22:30 -06:00
Alastair D'Silva
d527585394
Align prototype & implementation of enet_tasklet_disconnect & friends
...
Rework of #8698
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-14 22:19:39 +11:00
Mel W
8de7a36061
Capitalization and punctuation
2018-12-12 11:38:10 +02:00
Kari Haapalehto
7e7af773ea
Modify enet_tasklet.h
...
Change enet_tasklet_network_init() and enet_tasklet_disconnect()
declarations to match code. Also add document enet_tasklet.h functions
2018-12-10 15:49:47 +02:00
Kari Haapalehto
f7de4a4a0f
Initialize the interface at the construction and make sure
...
that it's done only once.
2018-12-05 14:44:27 +02:00
Kari Haapalehto
6d8320fd8c
Coverity fixes.
...
These issues has been found by coverity.
2018-12-04 15:32:02 +02:00
Martin Kojtal
bf36ff77c1
Merge pull request #8855 from michalpasztamobica/warnings_fix
...
Fix compilation warnings (apart from nanostack)
2018-12-03 13:31:55 +01:00
Cruz Monrreal
92a0e48435
Merge pull request #8817 from KariHaapalehto/ethernet_cable_status_callback_correction
...
Correct network status callbacks with ethernet and nanostack
2018-11-30 17:55:15 -06:00
Michal Paszta
e101943cce
Fix compilation warnings (apart from nanostack)
2018-11-26 14:27:48 +01:00
Martin Kojtal
f1f64266c0
Merge pull request #8600 from KariHaapalehto/wisuninterface_created
...
Wi-SUN interface implementation.
2018-11-22 10:55:58 +01:00
Kari Haapalehto
26beb983d4
Correct network status callbacks with Nanostack.
...
Ethernet-tasklet needs to be registered for emac link state changes.
Ethernet-tasklet will then handle ethernet cable connection/disconnection events.
2018-11-21 10:27:52 +02:00
Martin Kojtal
3aab38140a
nanostack mesh: fix coding style
2018-11-15 07:20:12 +00:00
Kari Haapalehto
6163e6f425
Review changes corrected
2018-11-08 14:50:54 +02:00
Cruz Monrreal II
75368766f7
Merge branch 'fix_compile_warning' of ssh://github.com/KariHaapalehto/mbed-os into rollup
2018-11-06 21:29:08 -06:00
Kari Haapalehto
4aaf013b0e
Fix memory leak
2018-11-05 13:09:56 +02:00
Kari Haapalehto
c7afb91f62
Fix compile warning about initializing and variable order
2018-11-05 12:45:53 +02:00
Kari Haapalehto
4440612d42
This is a initial version of Wi-Sun interface implementation.
...
To get Wi-Sun mesh network working, also nanostack with Wi-Sun support
is needed. ws_empty_functions.c and ws_management_api.h are temporary
included here, so that wisun_tasklet will compiled without problems.
They will replaced with the official versions with next nanostack release.
2018-10-31 15:48:33 +02:00
deepikabhavnani
451cf7ccb3
Add required namespace instead of relying on mbed.h
...
mbed.h has 'using namespace mbed;', hence some of the files skip
adding required namespace to the code, it is always good to specify the
namespace around the elements in header and `using namespace` in
specific CPP files, instead of all
2018-10-25 12:43:59 -05:00
Cruz Monrreal
8054060bf2
Merge pull request #8439 from KariHaapalehto/connection_status
...
Correct mesh network connection status callback functionality.
2018-10-17 17:41:46 -05:00
Kari Haapalehto
1b1f5e7c0d
Correct mesh network connection status callback functionality.
...
Now the status callback is only called if the status changed.
2018-10-17 08:30:58 +03:00
Deepika
9db31d299b
Resolve build issues in test
...
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
Deepika
a47c6b8139
Nanostack: Add required header file and namespace element instead add all
2018-10-15 10:57:21 -05:00
Seppo Takalo
1ef04796ee
On KW24D and NCS36510 default to smaller Nanostack configuration
...
These boards do not fit the full Nanostack, so we need to select
6LoWPAN-ND as a default.
2018-09-01 12:37:46 -05:00
Cruz Monrreal
06a98e7dcf
Merge pull request #7778 from SeppoTakalo/provide_default_mesh
...
Fix MeshInterface::get_default_instance()
2018-08-30 16:11:00 -05:00