Commit Graph

5320 Commits (af3a7656a442d47f97d84569e96135b17ad9880c)

Author SHA1 Message Date
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
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
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
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