Commit Graph

5546 Commits (4625221f1e00df13412e5a0217d8dc9a4018ac28)

Author SHA1 Message Date
Anna Bridge 41fe7ed728
Merge pull request #10496 from andrewc-arm/patch-1
Allow application to override LWIP_RAW
2019-05-07 15:59:22 +01:00
Anna Bridge 0ac1c97ed2
Merge pull request #10355 from OpenNuvoton/nuvoton_kvstore_other_bd
KVStore: Support external storage out of mbed-os tree
2019-05-07 15:56:41 +01:00
Tymoteusz Bloch 461efaae0a LWIP 2.1.2 tcpip thread stack overflow fix.
Applied missing LWIP patch to PPP/utils.c
"Major Refactoring & extensions" commited on May 23, 201 by hasnainvirk
LWIP 2.1.2 tcpip thread stack is restored to 1200 bytes
2019-05-07 15:19:41 +02:00
Martin Kojtal 13880dcd1b
Merge pull request #10465 from jarvte/fix_imsi_length
Cellular: fix calls to ATHandler::read_string(...) give correct size
2019-05-03 08:38:40 +01:00
Martin Kojtal 4da21c04fe
Merge pull request #10463 from mirelachirica/wise_1570_tcp_endpoint_close
Cellular:  Add WISE-1570 handling for socket closing URC
2019-05-03 08:35:45 +01:00
Martin Kojtal 3eaad5fd9f
Merge pull request #10485 from JanneKiiskila/nvstore-compiler-warning
NVStore.cpp compiler warning removal (os_ret)
2019-05-03 08:20:45 +01:00
Lin Gao 84b8517905 Increase tcpip thread size for MTS_DRAGONFLY_F411RE 2019-05-02 11:34:30 -05:00
Lin Gao 2c22f549e9 Add option to keep post_binary_hook and make it default. It can be disabled by setting it to null 2019-05-02 11:25:20 -05:00
Yossi Levy 130cab4bb4 Removing FLASHIAP support form general_filesystem tests as it is marked as skip anyway 2019-05-02 15:40:48 +03:00
Yossi Levy f74d545a9d When reading ROT from KVStore the return ROT key size was ignored 2019-04-30 17:44:24 +03:00
Martin Kojtal 094f648123
Merge pull request #10488 from kivaisan/add_cellularproperty_description
Cellular: Add description for CellularProperty
2019-04-30 09:40:08 +01:00
Martin Kojtal 1ce073a9c2
Merge pull request #10402 from jarvte/disconnect_per_context
Cellular: send disconnect to correct ctx
2019-04-29 13:17:59 +01:00
Andrew Chong aba02273ea This removes many const char* warnings related with LWIP_ASSERT() 2019-04-27 22:47:00 +08:00
Andrew Chong 058f07452a
Allow application to override LWIP_RAW 2019-04-27 00:22:00 +09: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 1b63aadb5e
Merge pull request #10461 from caixue1102/mbed-os-rda
Update wifi driver for rda target UNO_91H
2019-04-26 13:37:28 +01:00
Anna Bridge a98157a387
Merge pull request #10453 from hasnainvirk/minor_doc_update
Cellular: Minor doc update for CellualrSocket object
2019-04-26 13:37:01 +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
Kevin Bracey 87396e0bf6 Assembler atomics
Reimplement atomic code in inline assembly. This can improve
optimisation, and avoids potential architectural problems with using
LDREX/STREX intrinsics.

API further extended:
* Bitwise operations (fetch_and/fetch_or/fetch_xor)
* fetch_add and fetch_sub (like incr/decr, but returning old value -
  aligning with C++11)
* compare_exchange_weak
* Explicit memory order specification
* Basic freestanding template overloads for C++

This gives our existing C implementation essentially all the functionality
needed by C++11.

An actual Atomic<T> template based upon these C functions could follow.
2019-04-26 13:12:35 +03:00
Kimmo Vaisanen 38aa56efa8 Cellular: Add description for CellularProperty 2019-04-26 12:37:52 +03:00
Mirela Chirica 948f8b52d0 Cellular: Added WISE-1570 handling for socket closing URC 2019-04-26 10:12:12 +03:00
Janne Kiiskila 300c3e767c NVStore.cpp compiler warning removal (os_ret)
One gets this compiler warning from nvstore.cpp:

```
Compile [ 48.6%]: nvstore.cpp
[Warning] nvstore.cpp@814,9: variable 'os_ret' set but not used [-Wunused-but-set-variable]
```

Turns out it's caused by the fact that the variable is only used
with MBED_ASSERTs, which get optimized out or not, depending on your
build profile. In reality we do not need a separate variable for that
in my opinion though, so we can just use the ret-variable instead
and drop the os_ret variable completely and thus avoid this
compiler warning.
2019-04-25 22:55:29 +03: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
Teppo Järvelin 1abf600d03 Cellular: fix calls to ATHandler::read_string(...) give correct size
ATHandler::read_string(...) buffer size param was changed a long time ago
to include also NULL. Some calls still gave wrong size after this change.
2019-04-25 11:20:05 +03:00
ccli8 63d9cde507 KVStore: Support block device out of mbed-os tree
To support block device out of mbed-os tree in KVStore, user needs to:
1. Configure blockdevice to "other".
2. Override get_other_blockdevice() to provide block device out of mbed-os tree.
2019-04-25 09:56:20 +08: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
蔡雪 (Xue Cai) d6730f5afc Update wifi driver for rda target UNO_91H 2019-04-24 11:29:50 +08:00
Hasnain Virk 4eaffb4b03 Minor doc update
Socket ID is usually spitted out by the modem, however there are cases
when the modem is actully taken in as an input argument, e.g., in the
case of QUECTEL M26 modem. This minor knit clarifies that the
CellularSocket::id can be an input argument.
2019-04-23 12:36:29 +03:00
Chris Trowbridge a457b80e81
More access modifier changes 2019-04-18 15:14:08 -04:00
Chris Trowbridge b59228988c
Make AT_CellularContext::get_context() virtual 2019-04-18 15:02:41 -04:00
Martin Kojtal 46603f831e
Merge pull request #10411 from mirelachirica/bg96_tcp_endpoint_close
Cellular: Added BG96 handling for socket closing URC
2019-04-18 18:00:30 +01:00
Martin Kojtal 7392d51460
Merge pull request #10394 from kjbracey-arm/networking_warnings
Networking: Fix some ARMC6 warnings
2019-04-18 13:15:45 +01:00
Martin Kojtal 3ec9c190d0
Merge pull request #10314 from kjbracey-arm/rt1050_dcache
i.MX RT1050: Reactivate data cache
2019-04-18 09:49:13 +01:00
Martin Kojtal 658a41c015
Merge pull request #10417 from paul-szczepanek-arm/fix-coverity
suppress coverity error
2019-04-18 08:16:14 +01:00
Martin Kojtal 998cdf2223
Merge pull request #10418 from marcemmers/fix-cordio-gattserver-insert-characteristic
CordioGattServer: reset settings variable before ANDing the properties to it
2019-04-18 08:14:34 +01: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
Teppo Järvelin 9d67a8b61c Cellular: send disconnect to correct ctx
Disconnect was sent to all CellularContext classes even it concerned
one specific context. Some disconnect events are still sent to all
context classes. These event are coming from network and ment for all
context classes or event did not specify cid.
2019-04-17 13:53:40 +03:00
Mirela Chirica 88ea0db30d Cellular: Added BG96 handling for socket closing URC 2019-04-17 11:25:58 +03:00
Martin Kojtal b2b2fcea7b
Merge pull request #10375 from AriParkkila/cell-context-cleanup
Cellular: Fix to delete PDP context on disconnect
2019-04-17 09:23:52 +01:00
Marc Emmers d11cf287ac Make sure to reset settings before applying the properties 2019-04-16 16:28:28 +02:00
paul-szczepanek-arm 482e9c390c suppress coverity error 2019-04-16 14:19:31 +01: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
Martin Kojtal 1a14b9705a ExhaustibleBD: licensed under Apache 2.0
Fixing license, to the same one as .cpp file.
2019-04-16 10:32:23 +01:00
Martin Kojtal 4401d41428
Merge pull request #10053 from AriParkkila/cellular-state-timeout
Cellular: Make CellularStateMachine timeouts configurable
2019-04-15 08:53:11 +01:00
Martin Kojtal b0ba3d3dad
Merge pull request #10353 from tymoteuszblochmobica/multihoming
Update to LWIP 2.1.2
2019-04-15 08:49:51 +01:00
Cruz Monrreal f1c4a029c2
Merge pull request #9844 from cmonr/travisCI-refactor
Travis CI: Stages, OS update, apt-get relief!
2019-04-12 09:17:55 -05:00
Tymoteusz Bloch 42b5680697 Multihoming fixed according to new LWIP implementation. 2019-04-11 20:54:48 -05:00
Tymoteusz Bloch 1632cc9ee4 Initial version of LWIP 2.1.2 2019-04-11 20:54:48 -05:00
Cruz Monrreal b8410d85ab
Merge pull request #10369 from tymoteuszblochmobica/l3_interfacefix
L3IP interface input handler change.
2019-04-11 20:21:20 -05:00
Martin Kojtal f56808f9bf
Merge pull request #10368 from kfnta/sequana_flash_ps
FUTURE_SEQUANA_PSA fix PSA Protected storage
2019-04-11 14:00:39 +01:00
Ari Parkkila 79c54372f2 Cellular: Fix to delete PDP context on disconnect 2019-04-11 03:58:56 -07:00
Tymoteusz Bloch 7d13b758cb L3IP input now use tcpip_input instead of ip_input 2019-04-10 17:49:04 +02:00
Oren Cohen f70e069838 Configure PS with tdbstore 2019-04-10 17:33:37 +03:00
Hasnain Virk 34fc828601 Flagging WEAK method implementation for default construction
CellularDevice::get_default_instance() is a weak method and is overriden
by either a default construction provided in the code or by application
at some stage. This method needs to be flagged otherwise using another
driver will be hindered by the default overriding of this driver.
2019-04-10 12:52:38 +03:00
Ari Parkkila e0f8b2116a Cellular: Fix CellularStateMachine timeout configurations 2019-04-09 22:02:38 -07:00
Cruz Monrreal 6dbc00dd8a
Merge pull request #10292 from hasnainvirk/ec2x_driver
Cellular: Basic driver for Quectel EC25/EC21
2019-04-09 11:06:51 -05:00
Cruz Monrreal cec5a85761
Merge pull request #10354 from hasnainvirk/compile_error_at_handler
Cellular: Using new rather than malloc in debug_print
2019-04-09 11:06:15 -05:00
Cruz Monrreal d1672d0200
Merge pull request #10341 from mirelachirica/check_urc_resp_stop_1
Cellular: Check for URC during AT response stop
2019-04-09 11:05:56 -05:00
Teppo Järvelin 8234f00506 Cellular: fix state machine to compile after master rebase
Fix automatic rebase error with cellulardevice.cpp
2019-04-09 14:00:59 +03:00
Teppo Järvelin 2470a3611c Cellular: new state machine state and better info from stm
Added new state (signal quality) and more information about progress
so application/driver can build recovery logic.
2019-04-09 13:44:45 +03:00
Hasnain Virk 9229aba87d Using new rather than malloc in debug_print
Using malloc will require us to add stdlib.h somewhere in the path for
the application. Maybe the CI apps are adding stdlib.h and that's why
the code would have worked. In a custom app, it can happen that the
header is not included. Using new avoids the need to add stdlib.h
anywhere and it is more in line with C++.
2019-04-09 12:25:59 +03:00
Martin Kojtal a59ba20aec
Merge pull request #10338 from jarvte/fix_deleting_of_stm
Cellular: Fix deleting of state machine to correct class
2019-04-09 10:59:15 +02:00
Martin Kojtal 47838ea4be
Merge pull request #10340 from paul-szczepanek-arm/fix-negotiate-mtu
BLE: fix missing implementation call
2019-04-09 10:58:59 +02:00
Mirela Chirica f100cd59c8 Cellular: Check for URC during AT response stop 2019-04-09 11:15:28 +03:00
Hasnain Virk 69efed266d Marking TX and RX pins for UARTSerial as NC
For default construction of the driver, it would be necessary to define
the pins. However as we don't know the correct pins, until/unless user
sets them up for us. So it makes sense to mark the pins as NC. It would
be easier to debug if the pins are set to NC if user forgot to set them
up.
2019-04-09 10:20:38 +03:00
Cruz Monrreal II f6b9109934 Fixed littlefs tests to be Py3 compat 2019-04-08 10:45:07 -05:00
Hasnain Virk 7ebfa90753 Adding pin polarity and changing the constructor
To make this driver more useful, we needed to do some changes. The
wirings for the modem can differ on the board so we also need to be
flexible in our approach.
It is now mandatory to provide the power pin and pin polarity in the
constructor alongwith the file handle. Reset pin is optional.
2019-04-08 17:32:52 +03:00
Hasnain Virk 57d9e27532 Tidying up the boiler plate code
A little tidying up was needed as there was some boiler plate code that
could be shoved into a corner and reused.
2019-04-08 17:32:52 +03:00
Hasnain Virk 24178bc374 AT+CGSN with EC2X does not take parameter
Standard 3GPP TS27.007 states that the AT+CGSN command can optionally
have type parameter that determines the output. However Quiectel EC2X
series doesn't accept parameters. We need to reflect that in the
cellular properties setup.
2019-04-08 17:32:52 +03:00
Hasnain Virk df7f8cdfcf CREG can handle lac/ci/lat
AT+CREG command can also provide information regarding lac/ci/lat etc so
we should set the mode correctly in cellular properties structure.
2019-04-08 17:32:52 +03:00
Hasnain Virk ab978bde6c Removing left over tracing
A test trace was left lurking around. Removed in this commit.
2019-04-08 17:32:52 +03:00
Hasnain Virk 04299e45a3 Basic driver for Quectel EC25/EC21
Provides basic power up / power down sequences for Quectel EC2X series
modems. Can be used in PPP mode. For using the on-board IP stack, we
will need to add and implement classes that provide context.

Driver constructor takes power and reset control pins along with the
FileHandle. A default construction is provided which can be chosen by
the application in its mbed_app.json. Otherwise the user is free to
construct as per demand.
2019-04-08 17:32:52 +03:00
paul-szczepanek-arm 217b295f46 missing default impl 2019-04-08 14:56:23 +01:00
Teppo Järvelin fe5f97895b Cellular: Fix deleting of state machine to correct class 2019-04-08 12:50:29 +03:00
paul-szczepanek-arm b6836d9f83 fix missing implementation call 2019-04-08 10:33:09 +01:00
Martin Kojtal 801e555121
Merge pull request #9981 from janjongboom/patch-8
test_soap_connection_handler leaks memory when open_connection fails
2019-04-08 10:39:56 +02:00
Martin Kojtal 71c84e851f
Merge pull request #10299 from NXPmicro/Fix_MXRT1050_ENET
MIMXRT1050: Fix ENET issues
2019-04-04 16:03:24 +02:00
Martin Kojtal c2ebb79723
Merge pull request #9814 from LMESTM/dev_NUCLEO_WB55RG
Adding NUCLEO_WB55RG support
2019-04-04 15:30:07 +02:00
Kevin Bracey 6fe50763f3 i.MX RT1050: Reactivate data cache
Since commit 12c6b1bd8, the i.MX RT1050 has effectively had its data
cache disabled, as the SDRAM was marked Shareable; for the Cortex-M7,
shareable memory is not cached.

This was done to make the Ethernet driver work without any cache
maintenance code. This commit adds cache maintenance and memory barriers
to the Ethernet driver, and removes the Shareable attribute from the
SDRAM, so the data cache is used again.

Cache code in the base fsl_enet.c driver has not been activated - the
bulk of it is in higher-level Read and Write calls that we're not using,
and there is one flawed invalidate in its initialisation. Instead
imx_emac.cpp takes full cache responsibility.

This commit also marks the SDRAM as read/write-allocate. As the
Cortex-M7 has its "Dynamic read allocate mode" to automatically switch
back to read-allocate in cases where write allocate is working poorly
(eg large memset), this should result in a performance boost with no
downside.

Activating write-allocate is also an attempt to provoke any flaws in
cache maintenance - the Ethernet transmit buffers for example will be
more likely to have a little data in the cache that needs cleaning.
2019-04-04 12:06:24 +03:00
Mahesh Mahadevan 65942ba906 MIMXRT1050: Fix ENET issues
This is a fix for Issue 10239. The change aligns
the receive buffer lengths

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-04-03 08:18:58 -05:00
paul-szczepanek-arm 20d6cd9cc5 add default services first 2019-04-03 12:14:06 +01:00
Martin Kojtal 8cbcc55f88
Merge pull request #10121 from kivaisan/improve_at_trace
Cellular: Improve ATHandler AT debug traces
2019-04-03 09:00:30 +02:00
Martin Kojtal 82e6b2fba4
Merge pull request #10229 from u-blox/cellular_device_test
Cellular: Power ON Wait Increased for C030_U201
2019-04-02 09:32:06 +02:00
Cruz Monrreal 0d47e23ed6
Merge pull request #10280 from davidsaada/david_remove_cfstore_version
Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file)
2019-04-01 17:03:31 -05:00
Cruz Monrreal cf4118f4ae
Merge pull request #10056 from jarvte/context_act_ppp_retry_logic
Cellular: retry logic for CellularContext connect
2019-04-01 17:03:17 -05:00
Martin Kojtal 1b4f6ae3c4
Merge pull request #10270 from marcemmers/advertising-builder
BLE SimpleAdvertisingBuilder moved functions out of mbed_assert calls
2019-04-01 11:03:43 +02:00
Kimmo Vaisanen aff3815790 Cellular: Improve ATHandler AT traces
Original AT traces had several issue:
- Can be overwritten by other traces (printf/mbed-trace)
- No way to know which direction message was going (TX or RX)
- <cr> and <ln> characters were not visible in trace
etc.

This commit addresses those issues using mbed-trace and showing separately
each filehandle write and read.
2019-04-01 11:40:04 +03:00
mudassar-ublox 3d960ac272 wait increased for all cases 2019-04-01 10:36:49 +05:00
David Saada 50b2f20172 Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file) 2019-03-31 18:15:12 +03:00
Teppo Järvelin c6e5595cec Cellular: retry logic for CellularContext connect
State machine has retry logic until device is attached to network.
After this CellularContext does the context activation e.g. connect.
There was no retry logic for context activation. Added logic to
CellularContext level so it's available for at and (upcoming)ril layers.
2019-03-29 14:12:23 -05:00
Cruz Monrreal f552f9db24
Merge pull request #10146 from kjbracey-arm/CellularInterface_tidy
CellularBase -> CellularInterface tidy
2019-03-29 10:22:32 -05:00
Laurent Meunier a744343931 STM32WB: disable debug lines when not needed
When doing so, do not disbale GPIO clocks as they may be used by other
drivers !

As a result, debug will be disabled by default, but can be enabled by
either modifying code or selecting MBED debug profile.
2019-03-29 16:21:46 +01:00
Laurent Meunier 6336e4bee7 STM32WB: Handle re-init case of transport layer
Issue was seen when running BLE_GAP example from
mbed-os-example-ble.

In STM32WB, the M0 core cannot be reset except if the whole target
is reset. So in case of re-initialization of the BLE stack, the
transport layer should not be initialized again. The HCI reset
command will do the job.
2019-03-29 16:21:44 +01:00
Laurent Meunier c72b0e7ca4 STM32WB: fix some styling in HCI driver 2019-03-29 16:21:44 +01:00
Laurent Meunier 9b2acb25a3 STM32WB: handle extended reset
as suggested during review, apply same sequence as in:
b96c0ac986
2019-03-29 16:21:44 +01:00
Laurent Meunier fd6f12f8a4 STM32WB: move HCI driver to target specific folder
Need to move stm32wb_HCIDriver.cpp to target specific folder otherwise
it could mess up with other STM targets.
2019-03-29 16:21:44 +01:00
Laurent Meunier 6caa4d487f STM32WB: Add SPDX identifier to new files
also update the copyright year when needed
2019-03-29 16:21:44 +01:00
Laurent Meunier 740e296f6b STM32WB: fix compilation issue with ARMC6 2019-03-29 16:21:43 +01:00
Laurent Meunier 3ebf7c9db3 STM32WB: remove duplicate file 2019-03-29 16:21:43 +01:00
Laurent Meunier c53021b77f STM32WB: Update headers 2019-03-29 16:21:43 +01:00
Laurent Meunier e925bd711b STM32WB: Set a random static address during init 2019-03-29 16:21:42 +01:00
Laurent Meunier 08965e1190 STM32WB: add debug trace group in BLE Transport Layer 2019-03-29 16:21:42 +01:00
Laurent Meunier 5871a712dc STM32WB: Move STM32WB utilies from FEATURE_BLE to targets folder
These files are not BLE specific, but also needed for some clock setting
for instance.

In order to compile an MBED2 application, we need to move the files.
2019-03-29 16:21:40 +01:00
Laurent Meunier 27e7e4d9df NUCLEO_WB55RG: Rework Clock and sleep support
- move hw_conf.h file to targets/TARGET_STM/TARGET_STM32WB directory as
this is used also out of BLE feature.
- create a dedicated hal_deepsleep function as the behavior in WB is a lot
different from other existing STM32 targets
- update clock tree configuration to directly clock the entire tree @ 32MHz
out of HSE. This is needed as we want to let the M0 core running without
any change on M0-side of clocks when M4 enters /exits deep sleep.
2019-03-29 16:21:40 +01:00
Laurent Meunier 6234b3578c NUCLEO_WB55RG: add Cordio HCI and Transport Layer driver
The STM32WB Coridio driver includes:
- the Cordio HCI driver handling the reset sequence. During reset sequence
the TX POWER level is set and the BD address is defined if found in OTP
or option bytes. The rest of the sequence is based on the standard CORDIO
HCI driver example.
- The Transport Layer part handles sending and receiving messages to the
WB controller running on cortex-M0 of the STM32WB target. The messages
are shared through shared memory and mailboxes system based on IPCC HW.
2019-03-29 16:21:39 +01:00
Laurent Meunier 16ed1097aa NUCLEO_WB55RG: WB Transport Layer Cube files modifications
- Need to force ARM packed redefinition
- Configure LL stack in LL mode only
- Remove warning in shci_tl.c (PLACE_IN_SECTION)
2019-03-29 16:21:39 +01:00
bcostm e8a49e9605 NUCLEO_WB55RG: add WB Cube files reused for BLE transport layer 2019-03-29 16:21:39 +01: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 eef1b4868d
Merge pull request #10094 from desmond-blue/fix_ble_gattserver_autorization_list
BLE: Fix ble gattserver autorization list registration
2019-03-29 10:11:50 -05:00
Cruz Monrreal 1c35b95d89
Merge pull request #10072 from nick-atmosphereiot/master
Adding variable length attributes to Maxim Feather
2019-03-29 10:10:21 -05:00
Marc Emmers bd74cb2ab7 Removed function calls from mbed_assert, which caused the functions to be ignored in release mode 2019-03-29 09:47:28 +01:00
Cruz Monrreal 4af3c38078
Merge pull request #10210 from jarvte/cellulardevice_from_context
Cellular: CellularContext must provide access to CellularDevice
2019-03-28 17:09:48 -05:00
Cruz Monrreal 716beb96ad
Merge pull request #10214 from hasnainvirk/rx_metadata_toa
LoRaWAN: Adding TOA and Channel info in RX metadata
2019-03-28 17:07:39 -05:00
Cruz Monrreal cd8d362899
Merge pull request #10231 from artokin/nanostack_armc6_update
Nanostack ARMC6 update
2019-03-28 17:07:32 -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
David Saada 732dd36c90 Remove FEATURE_STORAGE and all underlying deprecated features 2019-03-28 23:10:05 +02:00
Cruz Monrreal d3d0622ac8
Merge pull request #10230 from u-blox/cellular_network_test
Cellular: cellular_network_test Compilation Error Removed
2019-03-27 17:07:32 -05:00
Cruz Monrreal 4cdc3b7cb8
Merge pull request #10219 from paul-szczepanek-arm/fix-legacy-scan-timeout
BLE: fix scan timeout being called from interrupt
2019-03-27 13:35:06 -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
Hasnain Virk 8fd791db49 Adding TOA and Channel info in RX metadata
We provide now downlink channel frequency and time on air for the
received frame in the RX metadata.
Previously the channel information in both TX and RX metada contained
the index number of the channel. That information wasn't very useful
except the index numbers of default channels. To make more sense of the
meta data, we now store the channel frequency in the channel parameter
rather than the index number of the channel.

RX time on air is collected from the radio driver and it is assumed that
the downlink frame had 8 downlink preamble symbols (plus 4.25 of the
preambles added by the chip) for LoRa modulation.

This commit also include a bit of tidying of RX frequency storage in rx
configuration parameters storage. Previously we were missing filling in
the RX1 frequency correctly.
2019-03-27 10:23:43 +02:00
Cruz Monrreal 2520c77e75
Merge pull request #10110 from theamirocohen/improve_gen_bd_tests
Improve genenral BlockDevice tests
2019-03-27 00:34:19 -05:00
Cruz Monrreal a0a265ad84
Merge pull request #10196 from hasnainvirk/premature_rx2_fix
LoRaWAN: Fixing premature RX2 closure
2019-03-27 00:26:12 -05:00
Cruz Monrreal 365cf1143e
Merge pull request #10162 from pan-/cordio-driver-notify-inactivity
BLE - Notify HCI driver of host stack inactivity
2019-03-27 00:26:02 -05:00
Cruz Monrreal e8e6ad4a06
Merge pull request #10190 from tymoteuszblochmobica/fixtcp
Fixed compilation error in LWIPStack class if lwip tcp is disabled.
2019-03-27 00:23:37 -05:00
Cruz Monrreal eff15804b7
Merge pull request #10154 from itziardelatorre/itziar
Fix for LoRaWAN downlink sequence counter rollover
2019-03-27 00:22:37 -05:00
paul-szczepanek-arm 82112b6c52 simplify call 2019-03-26 10:53:10 -05:00
paul-szczepanek-arm de539e146b update comments 2019-03-26 10:53:10 -05:00
paul-szczepanek-arm dad6844167 bounce scan timeout of the queue 2019-03-26 10:53:10 -05:00
mudassar-ublox 71e5a1d2e7 cellular_network_test compilation error removed 2019-03-26 18:04:42 +05:00
Amir Cohen ba6748fe41 Improve general Block Device tests
Fixing all rand issues, aligning erase addresses, moving prints to debug mode.
2019-03-26 14:49:57 +02:00
mudassar-ublox 0ed71541c5 power on wait increased for C030_U201 2019-03-26 17:06:05 +05:00
Arto Kinnunen adedd05139 Fix compiler warnings in Nanostack HAL
Fix compiler warnings:
 -"warning: 'size' argument to memset is '0'"
 -"warning: implicit declaration of function"
2019-03-26 13:19:33 +02:00
Arto Kinnunen f348325dbd Squashed 'features/nanostack/coap-service/' changes from 227cc3d..086e7ba
086e7ba Adjust variable scope (#121)

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 086e7ba8a1afdcfe3df16ae92ef28cae1af5a4a6
2019-03-26 13:19:18 +02:00
Teppo Järvelin b0ee22c96b Cellular: CellularContext must provide access to CellularDevice
When using NetworkInterface::get_default_instance() application gets handle
to CellularInterface which is actually CellularContext derived from CellularInterface.
Application needs also handle to CellularDevice to open other interfaces.
2019-03-26 07:29:11 +02:00
Martin Kojtal ac118eaedc
Merge pull request #10164 from Patater/tls-2.17.0
tls: Update Mbed TLS to 2.17.0
2019-03-23 16:33:52 +01:00
Martin Kojtal f6fc71c501
Merge pull request #10152 from Patater/crypto-1.0.0
crypto: Update Mbed Crypto to 1.0.0
2019-03-23 16:33:32 +01:00
Hasnain Virk 2691b83c4e Fixing premature RX2 abort
A bug while setting up RX start timers would result in premature closusre
of RX2 window. The 'ack_Timeout_timer' would be invoked prematurely and
at that time RX2 window may be being demodulating. This resulted in
massive instability with any test that relied on Confirmed traffic or
lower data rates.

To fix the issue, we must know the length of the RX window in
milliseconds and for this purpose we have extended the
'get_rx_window_params(...)' API. The length of the time the window
may remain open must be accounted for while setting up
'ack_timeout_timer'.
2019-03-22 15:15:51 +02:00
Hasnain Virk 2618813c70 Ack timeout must be at least 2 seconds
While calculating ack timeout, we were ending up getting a random value
which may become less than 2 seconds. This is not allowed as per v1.0.2
specification.

To fix the issue we now take the random number from 0 to 2000 ms and
then add that to the fixed 2000 ms ack timeout value, guaranteeing a
value at least equal to 2000 ms.
2019-03-22 15:15:51 +02:00
Martin Kojtal 1d8c3d4553
Merge pull request #10179 from u-blox/n2xx_provide_default
Cellular: C030_N2XX default interface
2019-03-22 06:33:24 +01:00
Martin Kojtal e7a4658256
Merge pull request #10180 from AriParkkila/fix-wise-1570
Fix SPIF speed for MTB_ADV_WISE_1570 and max packet size for BC95
2019-03-22 06:32:39 +01:00
Tymoteusz Bloch 646c925d60 Fixed compilation error in LWIPStack class if lwip tcp is disabled. 2019-03-21 17:58:31 +01:00
Martin Kojtal 014a5ec487
Merge pull request #10172 from kivaisan/fix_plmn_iar_trace
Cellular: Fix plmn trace for IAR
2019-03-21 10:05:20 +01:00
Ari Parkkila bdd07b6a37 Cellular: Fix max packet size for BC95 driver 2019-03-21 01:11:28 -07:00
mudassar-ublox 2f37e371b4 C030_N2XX default interface 2019-03-21 11:57:32 +05:00
Martin Kojtal 839e977bee
Merge pull request #10138 from jarvte/athandler_filehandle_not_usable
Cellular: don't allow ATHandler read/write if filehandle not usable
2019-03-20 15:39:12 +01:00
Kimmo Vaisanen 06caa0ff14 Cellular: Fix plmn trace for IAR
IAR compiler does not seem to like printing null strings.
2019-03-20 14:39:07 +02:00
Martin Kojtal 23cd1aa083
Merge pull request #10140 from jarvte/astyle_fixes
Cellular: fix astyle for files that already in master
2019-03-20 13:24:23 +01:00
Martin Kojtal c6d3d8326e
Merge pull request #10005 from TeemuKultala/cellular_remove_device
cellular: remove last CELLULAR_DEVICE references
2019-03-20 13:18:23 +01:00
Kevin Bracey 9ad90691a3 CellularBase -> CellularInterface tidy
Remove remaining references to deprecated CellularBase in code, avoiding
one warning.

Add deprecation to Doxygen.
2019-03-20 10:12:14 +02:00
Jaeden Amero 20598bcea1 tls: Update Mbed TLS to 2.17.0
There are no differences from the previously imported version of Mbed
TLS other than the version number.
2019-03-19 16:55:56 +00:00
Vincent Coubard 339c57f6a7 BLE - Use low power timeout in cordio::BLE::callDispatcher . 2019-03-19 16:26:29 +00:00
Vincent Coubard 63b7e69d89 BLE - Signal to the HCI driver when the host stack is inactive 2019-03-19 16:25:24 +00:00
Vincent Coubard 7ee811141b BLE - Add CordioHCIDriver::on_host_stack_inactivity
This callback should be called by the host stack when it has no pending activities. It allows a driver to put its controller to sleep.
2019-03-19 16:08:04 +00:00
itziar 4c1fedd72a Applied suggested astyle fix(es) 2019-03-19 10:11:15 +01:00
itziar 5beef7405c Bug related to downlink sequence counter rollover 2019-03-19 10:11:14 +01:00
Martin Kojtal 54602f55ba
Merge pull request #10108 from theamirocohen/fix_is_valid_erase
Fix functionality for FlashIAPBD & SlicingBD
2019-03-19 09:31:33 +01:00
Jaeden Amero 11ef5a0a72 crypto: Update Mbed Crypto to 1.0.0
There are no differences from Mbed Crypto 1.0.0d7 other than the version
number.
2019-03-18 16:17:02 +00:00
Teppo Järvelin de7520bd97 Cellular: fix astyle for files that already in master 2019-03-18 13:50:10 +02:00
Teppo Järvelin 174d95709c Cellular: don't allow ATHandler read/write if filehandle not usable
For example after going to ppp mode we must block at write and
read as filehandle is not usable.
2019-03-18 13:37:48 +02:00
Martin Kojtal 6b84b14ab6
Merge pull request #10081 from jarvte/move_call_CGEREP
Cellular: call AT+CGEREP after sim is ready
2019-03-18 11:26:41 +01:00
Teemu Kultala 614b014d05 cellular: remove last CELLULAR_DEVICE references 2019-03-18 10:07:30 +02:00
Martin Kojtal 964f5ad321
Merge pull request #10098 from ghseb/credentials-for-connection-profile
Cinterion Cellular: Setup connection profile with username and password
2019-03-18 08:13:32 +01:00
Martin Kojtal 4cf22b39d6
Merge pull request #10029 from AriParkkila/cellular-device_serial
Cellular: Remove compile dependency of UARTSerial
2019-03-18 08:12:27 +01:00
Teppo Järvelin dba3d42362 Cellular: call AT+CGEREP after sim is ready
Current implementation did call AT+CGEREP before sim was ready
and it was failing in most modems.
2019-03-18 08:10:09 +02:00
Cruz Monrreal 05f18fc7f6
Merge pull request #10100 from ghseb/support-ehs5-e
Cellular: Support Cinterion EHS5-E cellular module
2019-03-16 23:00:51 -05:00
Cruz Monrreal c81a292921
Merge pull request #10092 from desmond-blue/fix-ble-on_phy_update_complete
BLE:fix on_phy_update_complete function
2019-03-16 23:00:37 -05:00
Cruz Monrreal 6c4b4a5212
Merge pull request #10084 from mirelachirica/info_resp_issue_8829
Cellular: AT information response to return false on empty prefix
2019-03-16 22:59:24 -05:00
Cruz Monrreal b433b16a11
Merge pull request #10014 from artokin/nanostack_interface_error_mapping
Update nanostack-interface error mapping
2019-03-16 22:58:24 -05:00
Cruz Monrreal 9ecde429f9
Merge pull request #9992 from pan-/ble-use-low-power-ticker
BLE - Use low power timing primitives
2019-03-16 22:56:43 -05:00
Cruz Monrreal 961c9e2e13
Merge pull request #9988 from paul-szczepanek-arm/fix-cordio-tick
BLE: fix tick rate set to 10 ms
2019-03-16 22:56:24 -05:00
Cruz Monrreal e697d3770d
Merge pull request #9935 from jarvte/lwip_timeout_bringup_link
Increased timeout for lwip waiting netif_is_link_up
2019-03-16 22:54:57 -05:00
Cruz Monrreal 7fa995860f
Merge pull request #9921 from desmond-blue/fix_Cordio-insert-characteristic-handle-error
BLE:Cordio:Fix insert characteristic not handle error
2019-03-16 22:54:37 -05:00
Cruz Monrreal 7cdc5b057c
Merge pull request #9919 from pan-/workaround-extended-report
BLE - Report extended advertising in legacy handler
2019-03-16 22:54:21 -05:00
Cruz Monrreal dbb33ef423
Merge pull request #9801 from vmedcy/fix-eventqueue-h
Correctly include EventQueue.h
2019-03-16 22:52:40 -05:00
David Saada eb5cef84fd Add bootloader support for the LPC55S69 board
bla
2019-03-16 00:13:40 +02:00
Martin Kojtal 78a3d99c81
Merge pull request #9941 from marcuschangarm/fix-rspif
Add missing RSPIF component to the defaut BlockDevice handler
2019-03-15 18:08:04 +01:00
Martin Kojtal 686095e213 Merge branch 'remove_no_greentea' of https://github.com/kfnta/mbed-os into rollup 2019-03-15 08:46:14 +00:00
Martin Kojtal 4cf7864bb5 Merge branch 'wisun_network_default_name' of https://github.com/artokin/mbed-os into rollup 2019-03-15 08:45:57 +00:00
Martin Kojtal 4a24bd1f0a Merge branch 'fix_lwip_debug_log_compile' of https://github.com/jarvte/mbed-os into rollup 2019-03-15 08:45:26 +00:00
Martin Kojtal 759627ff12 Merge branch 'plmn_stm_fix2' of https://github.com/jarvte/mbed-os into rollup 2019-03-15 08:45:14 +00:00
Martin Kojtal 74f13dd8de Merge branch 'fix_Cordio-descriptor-set-cback' of https://github.com/desmond-blue/mbed-os into rollup 2019-03-15 08:44:55 +00:00
Martin Kojtal 0597e33765 Merge branch 'patch-9' of https://github.com/janjongboom/mbed-os into rollup 2019-03-15 08:44:40 +00:00
Martin Kojtal 9960ea93ed Merge branch 'fix-ble-cordio-reset-sequence' of https://github.com/desmond-blue/mbed-os into rollup 2019-03-15 08:43:59 +00:00
Sebastian Stockhammer 744e648673 Disable dual stack mode for ehs5-e 2019-03-15 09:32:26 +01:00
Sebastian Stockhammer 6b7b36a3b4 Revert "Disable dual stack mode"
This reverts commit 8611474e6c.
2019-03-15 09:31:49 +01:00
Sebastian Stockhammer 8611474e6c Disable dual stack mode 2019-03-15 09:26:43 +01:00
Sebastian Stockhammer 2c3c14c52b Fix registration modes and disable CGSN with type 2019-03-15 09:00:56 +01:00
Martin Kojtal 0e37fc206c
Merge pull request #10097 from 0xc0170/rollup
Rollup PRs: simple fixes
2019-03-15 08:04:29 +01:00
Desmond Chen 196a7666fe BLE:Fix gattserver authorization list update permission check 2019-03-15 12:11:12 +08:00
Cruz Monrreal 08617098d6
Merge pull request #10088 from avolinski/master
Temporary disable  Crypto HW accelerator on UBLOX_EVK_ODIN_W2
2019-03-14 21:43:59 -05:00
Cruz Monrreal d53ff0b3c4
Merge pull request #10101 from kfnta/nxp_reduce_its
LPC55S69_S: reduce ITS size to 32KB
2019-03-14 13:22:47 -05:00
Amir Cohen 7fac0722a4 Fix functionality for FlashIAPBD & SlicingBD
Due to discovery of inconsistent sector sizes in devices storage the is_valid_erase function was adjusted,
For FlashIAPBD the 'code size' was included to the calculation, preventing faulty "virtual" addresses calculation.
For SlicingBD the same error was fixed and in all 3 validation functions that sent addresses for validation and program/read/erase
different addresses.
2019-03-14 17:46:10 +02:00
avolinski f976ce3c18 Temporary disable Crypto HW accelerator on STM32F439xI chipset due to issue: https://github.com/ARMmbed/mbed-os/issues/10095 2019-03-14 17:00:06 +02:00
Michael Schwarcz dca3ebe9f6 LPC55S69_S: reduce ITS size to 32KB
- Reduce LPC55S69 secure side ITS from 64KB to 32KB
2019-03-14 15:49:44 +02:00
Sebastian Stockhammer febcea00f3 Support Cinterion EHS5-E cellular module 2019-03-14 13:50:10 +01:00
Yossi Levy 0880f90d48 Updating CY8CKIT_062_WIFI_BT_PSA bootloader image 2019-03-14 14:26:23 +02:00