Commit Graph

3024 Commits (mbed-os-5.9.4)

Author SHA1 Message Date
TomoYamanaka 73fedecfd8 Revise heap and stack size for Ethernet of GR-PEACH
I changed stack size because the deafult stack size may not be enough for
Ethernet of GR-PEACH(Cortex-A).
- Stack size is default size + 128 byte
In order to maximize the performance of Ethernet, I changed heap size to
below.
- Heap size is default size * 32 byte(send descriptor num is 16 and recv
descriptoer num is 16).
2018-07-30 10:41:47 -05:00
Hasnain Virk 5da9794156 LoRaWAN: Wrong return code for JoinRequest retry
51f92b0efd introduced
handling for connection attempts while a connection was already underway or have been
completed. Unfortunately a similar check slipped through and the stack was not able to continue
sending join requests if an error happened.
2018-07-27 13:43:54 -05:00
ccli8 974c52b416 Fix Greentea test code with Cortex-M23/M33
Enlarge stack size of forked thread for Cortex-M23/M33 targets
2018-07-27 13:30:07 -05:00
David Saada 20387d41d3 Unity: Add macros for test skipping.
The TEST_SKIP and TEST_SKIP_UNLESS macros (w/ and w/o messages) allow the test
to skip the test case execution from the point the macro was called (without
failing the test).
2018-07-27 13:30:00 -05:00
Steven Cooreman 43c81dee40 Add EFM32GG11 Ethernet driver 2018-07-27 13:29:56 -05:00
David Saada a8d99d619f NVStore tests: Tune memory consumption; stop threads greafully
- Tune thread stack size in nvstore test using heap stats
- Stop threads gracefully instead of killing them (in multi-thread test)
2018-07-27 13:29:55 -05:00
Hasnain Virk 5d50cf1836 Streamlining connect() API with posix like retcodes
For ABP: First call to connect() or connect(params) will return LORAWAN_STATUS_OK
         and a CONNECTED event will be sent. Any subsequent call will return
         LORAWAN_STATUS_ALREADY_CONNECTED (posix EISCONN) and no event is generated.

FOR OTAA: First call to connect() or connect(params) will return LORAWAN_STATUS_CONNECT_IN_PROGRESS
          and a CONNECTED event will be sent whenever the JoinAccept is received. If the application
          calls connect again before receiving the CONNECTED event, LORAWAN_STATUS_BUSY will be returned.
          After the CONNECTED event is dispatched, any subsequent call to connect() or connect(params) API
          will be returned with LORWAN_STATUS_ALREADY_CONNECTED.

No new parameters are accepted after the first call. The application must disconnect before making
a connect() call with new parameters.
2018-07-15 22:54:26 -05:00
Hasnain Virk 000adb03f0 Updating docs
API documentation is updated to clear how the connection related return codes will
work from now on.
2018-07-15 22:54:26 -05:00
Hasnain Virk b6fbb97892 LoRaWAN: Handling re-joining when already Joined
This is a remedy for the issue #7230.
While the device is joining, LORAWAN_STATUS_CONNECT_IN_PROGRESS is returned.
However, if the device is already joined, we will return LORAWAN_STATUS_ALREADY_CONNECTED.
2018-07-15 22:54:26 -05:00
Mirela Chirica 5d05e443bb Cellular: Fix socket_send unit test 2018-07-15 22:53:59 -05:00
Ari Parkkila 594e5283be Cellular: Removed max_packet_size 2018-07-15 22:53:59 -05:00
Kevin Bracey 063092f256 Add Apache licenses to ns_hal files 2018-07-15 22:53:45 -05:00
Kevin Bracey 23cf0ed7a6 Add option to make Nanostack use global event queue 2018-07-15 22:53:45 -05:00
Mirela Chirica 0d52fc3a20 Cellular: More unit tests for ATHandler's read routines 2018-07-15 22:53:45 -05:00
Mirela Chirica de2290aed6 Cellular: Fix for ATHandler's read string and hexstring NULL termination 2018-07-15 22:53:44 -05:00
Brendan McDonnell a65e92ea95 FatFs 0.13b hotfix - fix readdir() never terminates when dir is full.
http://elm-chan.org/fsw/ff/patches.html
http://elm-chan.org/fsw/ff/ff13b_p1.diff
https://github.com/ARMmbed/mbed-os/issues/5780
2018-07-15 22:53:31 -05:00
ccli8 6de4b3532c Fix memory leakage with MBR on exiting error path 2018-07-15 22:53:30 -05:00
Tero Jääskö 7e68ac09e6 netsocket: dns: make dns-cache-size:0 remove whole DNS cache code
Setting ""nsapi.dns-cache-size": 0" still left some of the DNS
caching code in. Add crude #if to remove all of it.
This allows one to save 429 bytes of flash and 48 bytes of RAM on
ARMC5 builds.
2018-07-15 22:48:50 -05:00
Amanda Butler 1f155291be Copy edit LoRaWANBase.h
Copy edit for precise language and comma use.
2018-07-15 22:48:50 -05:00
Amanda Butler 59097d0611 Copy edit LoRaWANinterface.h
Copy edit for precise language and comma use.
2018-07-15 22:48:50 -05:00
Hasnain Virk 62165514ee Correcting doxygen
Use of MSG_FLAGS was updated in previous PRs but the doc was not updated
accordingly.
2018-07-15 22:48:50 -05:00
mudassar-ublox 603adcfade Cellular: Fixed set_sim_pin method calling 2018-07-15 22:48:50 -05:00
Hasnain Virk 0d2e199280 LoRaWAN: Fixing transport of fatal TX timeout event
This commit fixes the issue reported in #7285.
If the radio is unable to transmit, its a fatal error and can happen
both while joining or sending a normal packet. In the case of such
a catastrophy we ought to tell the application that this happened.

A fix for the radio driver will also be patched.
2018-06-29 17:11:50 +01:00
jeromecoutant 8397a9d38b TARGET_STM USB astyle 2018-06-29 17:11:50 +01:00
jeromecoutant 5612dac3b7 TARGET_STM_EMAC astyle 2018-06-29 17:11:50 +01:00
jeromecoutant 66a099867e TARGET_STM mbedtls astyle 2018-06-29 17:11:50 +01:00
Teppo Järvelin 92eab0f99f Cellular: improved observing of disconnect for callbacks. 2018-06-29 17:10:17 +01:00
Antti Yli-Tokola 88798899ae Update mbed-coap to version 4.5.0
Fix error:  IIOTCLT-2769 - mbed-coap: extra response received after registration

Added own flag to enable blockwise support, without setting default blockwise
payload size. This allows to receive blockwise messages while still sending
without blockwise.

Fix CoAP request blockwise response handling
When request is sent, response can have blockwise option set. All requests must
be stored to the linked list.
2018-06-29 17:10:17 +01:00
Teppo Järvelin 90f67902ba Cellular: review fixes for cellularinformation tests. 2018-06-29 17:10:17 +01:00
Teppo Järvelin 789a1c1720 Cellular: added greentea tests for CellularInformation. 2018-06-29 17:10:17 +01:00
Teppo Järvelin 7e82eb5647 Cellular: added more CellularInformation unit tests. 2018-06-29 17:10:17 +01:00
Christopher Haster 69ed638e2e Fixed issue with MBR init asserting on bad partition size 2018-06-29 17:10:17 +01:00
Vincent Coubard a5df9176a9 Nordic BLE: Fix return value verification 2018-06-29 17:10:17 +01:00
Vincent Coubard 2d97c91561 Nordi BLE: Fix formatting 2018-06-29 17:10:17 +01:00
Vincent Coubard 5711b295da Nordic BLE:
Cancel pairing if the device fail to allocate the resources necessary for the pairing operation.
2018-06-29 17:10:17 +01:00
Vincent Coubard 01f5c456f3 Nordic BLE: Fix pairing cancellation.
Depending on the role and the current state of the local device; pairing cancelation should be made with a call to a specific function. Normally the Nordic stack would reject invalid calls if the device is not in the correct state; therefore it was assumed that it was possible to detect the state from sd errors. Unfortunatelly this is not true with the latest softdevices as some calls succeed even if the device is not in the right state.

To solve that issue cancelation looks at the current state of the device first to select the right function that will trigger the pairing cancellation.

Note: the call to sd_ble_gap_authenticate was missing in the previous algorithm
2018-06-29 17:10:17 +01:00
Vincent Coubard e8b783b702 Nordic BLE: Store locally role for a given connection. 2018-06-29 17:10:17 +01:00
Vincent Coubard a6eefdfdcf Nordic BLE: Add default parameter to get the local instance of nrF5xn 2018-06-29 17:10:17 +01:00
Vincent Coubard c4ecbfb796 Nordic BLE: Improve return of nRF5xn::getGap.
Return the derived type instead of the abstract one. This is legal as C++ supports covariant returns.
2018-06-29 17:10:17 +01:00
Teppo Järvelin 9527ab33a8 Cellular: fixed unit tests after rebasing with master. 2018-06-29 17:10:17 +01:00
Teppo Järvelin 0e4ca1c46b Cellular: Added network unit tests. 2018-06-29 17:10:17 +01:00
Teppo Järvelin 440c10ad88 Cellular: added greentea tests for CellularNetwork. 2018-06-29 17:10:17 +01:00
Kari Haapalehto b955eb7e49 Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530 2018-06-29 17:10:17 +01:00
paul-szczepanek-arm a0b20720dd reuse existing call 2018-06-29 17:10:17 +01:00
paul-szczepanek-arm 338a8fc696 use sets to apply limits 2018-06-29 17:10:17 +01:00
paul-szczepanek-arm c17c674c82 add setScanParams overload 2018-06-29 17:10:17 +01:00
Amanda Butler e60566e85e Copy edit CellularConnectionFSM.h
Copy edit for consistent tense and comma usage.
2018-06-29 17:10:17 +01:00
Teppo Järvelin 83fbeea304 Cellular: fixed defect where SIM interface was closed too early causing crash with certain configurations. 2018-06-29 17:10:17 +01:00
Mika Leppänen 787ea51bad K64F, K66F: Update the ENET PHY driver
PHY init and autonegotation is split into own functions.
2018-06-29 17:10:17 +01:00
Mika Leppänen f1416c76fa Added delay to K64F/K66F ethernet TX when all descriptors are in use
Currently, if all TX descriptors are in use and IP stack calls K64F/K66F
ethernet driver link out, link out drops the packet. Added 10ms delay
to link out to wait for a descriptor to become available before dropping
the packet.
2018-06-29 17:10:17 +01:00