Commit Graph

5224 Commits (79568dbe6dfac4206b51f72ddb8e82b2785d5ee4)

Author SHA1 Message Date
Laurent Meunier 79568dbe6d STM32WB: Set a random static address during init 2019-04-05 12:27:05 +01:00
Laurent Meunier dbfe97d649 STM32WB: add debug trace group in BLE Transport Layer 2019-04-05 12:27:05 +01:00
Laurent Meunier e57771f375 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-04-05 12:27:04 +01:00
Laurent Meunier ee64f1543f 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-04-05 12:27:04 +01:00
Laurent Meunier 879ca1db24 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-04-05 12:27:03 +01:00
Laurent Meunier e26eaa1c9d 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-04-05 12:27:03 +01:00
bcostm be1e80512e NUCLEO_WB55RG: add WB Cube files reused for BLE transport layer 2019-04-05 12:27:03 +01:00
paul-szczepanek-arm e607fe923f add default services first 2019-04-05 12:27:00 +01:00
Kimmo Vaisanen a2857bac97 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-05 12:27:00 +01:00
mudassar-ublox 603808ea42 wait increased for all cases 2019-04-05 12:26:58 +01:00
mudassar-ublox dc1e1b20a3 power on wait increased for C030_U201 2019-04-05 12:26:58 +01:00
David Saada ff6c6b9523 Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file) 2019-04-05 12:26:58 +01:00
Marc Emmers 9401844ccb Removed function calls from mbed_assert, which caused the functions to be ignored in release mode 2019-04-05 12:26:57 +01:00
Michal Paszta ffe97fa5a0 Nanostack::EthernetInterface::bringdown() can handle blocking mode
This let the tests-network-interface test pass for nanostack.
2019-04-05 12:26:57 +01:00
Desmond Chen 0eccb9e529 BLE:Fix gattserver authorization list update permission check 2019-04-05 12:26:57 +01:00
Nick d7acaf646a Formatting fix 2019-04-05 12:26:57 +01:00
Nick 6041d3ef8d Adding variable length attributes to Maxim Feather 2019-04-05 12:26:57 +01:00
Hasnain Virk 23edd94a15 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-04-05 12:26:56 +01:00
Arto Kinnunen 2a459d1a1e Fix compiler warnings in Nanostack HAL
Fix compiler warnings:
 -"warning: 'size' argument to memset is '0'"
 -"warning: implicit declaration of function"
2019-04-05 12:26:56 +01:00
Arto Kinnunen 2794c31ebc 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-04-05 12:26:56 +01:00
Kari Haapalehto 16f74c6a8a 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-04-05 12:26:29 +01:00
mudassar-ublox 468084212f cellular_network_test compilation error removed 2019-04-05 12:26:28 +01:00
paul-szczepanek-arm d28d49cbab simplify call 2019-04-05 12:26:28 +01:00
paul-szczepanek-arm aa6ff686fb update comments 2019-04-05 12:26:28 +01:00
paul-szczepanek-arm cfe0c34dbd bounce scan timeout of the queue 2019-04-05 12:26:28 +01:00
Amir Cohen c5a0d469ff Improve general Block Device tests
Fixing all rand issues, aligning erase addresses, moving prints to debug mode.
2019-04-05 12:26:26 +01:00
Hasnain Virk 1f322d23eb 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-04-05 12:26:26 +01:00
Hasnain Virk 8e298cc98d 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-04-05 12:26:26 +01:00
Tymoteusz Bloch 4897ff28e5 Fixed compilation error in LWIPStack class if lwip tcp is disabled. 2019-04-05 12:26:26 +01:00
itziar c4c6515ad3 Applied suggested astyle fix(es) 2019-04-05 12:26:25 +01:00
itziar 18e8671b68 Bug related to downlink sequence counter rollover 2019-04-05 12:26:25 +01:00
mudassar-ublox 4402908bbd C030_N2XX default interface 2019-04-05 12:26:20 +01:00
Ari Parkkila c65fec37c9 Cellular: Fix max packet size for BC95 driver 2019-04-05 12:26:19 +01:00
Teppo Järvelin a12f8cd5db 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-04-05 12:26:18 +01:00
Teppo Järvelin 811984aa26 Cellular: fix astyle for files that already in master 2019-04-05 12:26:18 +01:00
Teemu Kultala d2a645da72 cellular: remove last CELLULAR_DEVICE references 2019-04-05 12:26:17 +01:00
Teppo Järvelin 390eea4852 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-04-05 12:26:17 +01:00
Sebastian Stockhammer c9fcf72b77 Setup connection profile with username and password 2019-04-05 12:26:17 +01:00
Ari Parkkila c2e730c15c Cellular: Remove compile dependency of UARTSerial 2019-04-05 12:26:16 +01:00
Sebastian Stockhammer f78e7c7365 Disable dual stack mode for ehs5-e 2019-04-05 12:26:16 +01:00
Sebastian Stockhammer bd15aeaa05 Revert "Disable dual stack mode"
This reverts commit 8611474e6c.
2019-04-05 12:26:15 +01:00
Sebastian Stockhammer 4408bb696c Disable dual stack mode 2019-04-05 12:26:15 +01:00
Sebastian Stockhammer 7d37750b5c Fix registration modes and disable CGSN with type 2019-04-05 12:26:15 +01:00
Sebastian Stockhammer f0e61e7f41 Support Cinterion EHS5-E cellular module 2019-04-05 12:26:15 +01:00
Desmond Chen 7482a86de0 BLE:fix on_phy_update_complete function 2019-04-05 12:26:15 +01:00
Mirela Chirica 6cbe74f794 Cellular: AT information response to return false on empty prefix 2019-04-05 12:26:15 +01:00
Arto Kinnunen afcf6941ad Update nanostack-interface error mapping
Use status NSAPI_ERROR_PARAMETER instead of NSAPI_ERROR_UNSUPPORTED
when error is caused by parameter.
2019-04-05 12:26:14 +01:00
Vincent Coubard ab06c1f9ea BLE - Use LowPower Ticker and Timer for address rotation and scan timeout. 2019-04-05 12:26:14 +01:00
Vincent Coubard 165732938f BLE - Use LowPowerTimer instead of Timer in the Cordio stack. 2019-04-05 12:26:14 +01:00
paul-szczepanek-arm 46f935723c change tick rate to 1 ms 2019-04-05 12:26:14 +01:00