Commit Graph

5549 Commits (09ea361c7e74568de1efd83ac8c72242bb40a1d0)

Author SHA1 Message Date
paul-szczepanek-arm 96040be349 wsf buffer transfers owenrship to controller 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 0de3510d1c service immediately after sending 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 8ddaf84516 use pal version of load bd address 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm f13e966dc0 translate hci types 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm ccddf32f85 cleanup json 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 2232fd045b handle all types 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm d1593fecc1 move nordic ll to target nordic 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm d09f66b4c5 move config to nordic ll 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 900ad78728 add doxygen 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 11abc6704f cordio LL adaptation and config 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 1e8010dd81 cordi link layer 19.02 sources added 2019-05-27 06:16:49 +01:00
Kevin Bracey 5f8b966ff6 NRF52: C++11 fixes 2019-05-24 16:26:15 +03:00
Martin Kojtal a434583b6e
Merge pull request #10442 from trowbridgec/patch-1
Cellular: Make AT_CellularContext::get_context() virtual
2019-05-24 12:38:35 +01:00
Martin Kojtal ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Tomasz Moń 3116f329d7 USBHostMSD: Implement BlockDevice get_type()
This makes it possible to create instances of USBHostMSD class.
2019-05-24 12:40:30 +02:00
Tomasz Moń f5527eaf0e STM USBHALHost: Fix NULL pointer dereference
On STM32F746G Discovery boards, the USB OTG HS port does not have a
dedicated GPIO for controlling the USB VBUS.

This change fixes HardFault (NULL pointer dereference) that triggered
when such USB host port was used.
2019-05-24 11:56:23 +02:00
Martin Kojtal c4cc9c4f1b
Merge pull request #10646 from LDong-Arm/connectionCount
Fix deprecation notice for ble::Gap::getState()
2019-05-24 09:11:58 +01:00
Ari Parkkila e49d7bbdcd Cellular: Add BG96 power control 2019-05-24 00:30:04 -07:00
Martin Kojtal 4567626ade
Merge pull request #10636 from u-blox/activation_status
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00
Martin Kojtal 86bd7f05f0
Merge pull request #10634 from LDong-Arm/ble-api-update
BLE: fix deprecated API calls in battery and thermometer services
2019-05-23 21:37:19 +01:00
Tymoteusz Bloch c1b72a71b5 Fixed LWIP warning issues found by Coverity scan 2019-05-23 18:53:44 +02:00
Lingkai Dong c84a13c0f2 Fix deprecation notice for ble::Gap::getState()
The deprecation notice suggests getConnectionCount() which
did not land in the final API. The proper replacement is keeping
your own record and updating during connection and disconnection
callbacks.
2019-05-23 16:36:28 +01:00
Martin Kojtal 51b835b03b
Merge pull request #10473 from DanielDmlee/BG96_IPV6_only
Add exception case for IPV6 only mode of BG96.
2019-05-23 15:29:34 +01:00
Martin Kojtal 3801d4a1c3
Merge pull request #10635 from LDong-Arm/deprecated_ble_services
BLE: deprecate UARTService and suppress compiler warnings
2019-05-23 14:52:17 +01:00
Martin Kojtal 2a49ff6d50
Merge pull request #10640 from LDong-Arm/therm_char
BLE HealthThermometerService: correct GATT characteristics
2019-05-23 14:49:31 +01:00
Martin Kojtal bd21c0eafa
Merge pull request #10639 from AriParkkila/sock_id_debacle
Cellular: Preventing Socket ID assignment until actual socket creation at the modem
2019-05-23 14:49:01 +01:00
Martin Kojtal b735d73d47
Merge pull request #9221 from kfnta/tfm_musca_a1
Add ARM_MUSCA_A1 target
2019-05-23 14:48:06 +01:00
Jaeden Amero 60252b9988 mbedtls: Update to Mbed TLS 2.18.0-rc1
Update Mbed TLS to 2.18.0-rc1. Update Mbed Crypto to 1.1.0d0.
2019-05-23 14:47:42 +01:00
Jaeden Amero 262617935d mbedtls: Update submodules after checkout
When importing, after checking out the specified release, update any
submodules present.
2019-05-23 14:47:42 +01:00
Jaeden Amero ce2de9a9bf mbedtls: Fetch instead of pull
Do a git fetch of mbedtls instead of a pull. We don't need to checkout
development, only the release specified.
2019-05-23 14:47:42 +01:00
Jaeden Amero bb17408a14 mbedtls: Make imported version tag more verbose
When importing development releases of Mbed TLS into Mbed OS, it is
useful to be able to know a the particular git commit hash that was
imported. This change avoids ever creating a VERSION.txt for Mbed TLS
containing only "development", which is fairly useless since one doesn't
know where the development branch was at the time of import.
2019-05-23 14:47:42 +01:00
Martin Kojtal b3328fdcc0
Merge pull request #10638 from AGlass0fMilk/fix-advertising-uuid-bug
Fix AdvertisingDataBuilder UUID Insertion Bug
2019-05-23 14:46:49 +01:00
Jaeden Amero e3d1e27b89 mbedtls: Source crypto from Mbed Crypto
Use Mbed Crypto implementations of crypto. For example, use aes.c from
Mbed Crypto instead of the Mbed TLS copy.
2019-05-23 12:27:34 +01:00
Bilal Qamar 255e2e5623 Correction in AT Command 2019-05-23 16:15:10 +05:00
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
Bilal Qamar 4a37b13bd0 Coding style corrected 2019-05-23 14:26:38 +05:00
Lingkai Dong ce775d58e9 BLE HealthThermometerService: correct GATT characteristics
As per official specification, temperature measurement requires
the GATT characteristic "INDICATE" instead of "NOTIFY".

Full credits to Jean-Marc Jobin (@jmjobin on GitHub) for
identifying the issue and proposing this fix.
2019-05-23 09:56:01 +01:00
Lingkai Dong f3c29df377 Suppress warnings of deprecated API in deprecated services
Services that already have deprecation notices in place should
not trigger more warnings from the compiler.
2019-05-23 09:17:22 +01:00
Hasnain Virk 9e72fa29e6 Updating Ublox to accomodate socket id assignment
Changes to accomodate socket id assigment upon actual creation of the
socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk 2e53a71d45 Updating M26 to accomodate socket id assignment
This modem is a special case. It uses a given socket ID value rather
than providing one. A naive solution here would be to directly map the
index of a CellularSocket object in the CellularSocket container. But
considering the case where there are multiple sockets being opened (some
sockets being already created at the modem and some yet not created), direct mapping
to indices will not work. As it can happen that the CellularSocket
object is allocated but the socket id is not assigned yet as it is not
actually created on the modem.

In such a case, we check the container and assign the socket id from the
pool if an empty slot was found.
2019-05-22 23:44:09 -07:00
Hasnain Virk 3fffa3bd57 Updating BG95 to accomodate socket id assignment
Changes to accomodate socket id assignment upon actual creation of the
socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk 0308cb826a Updating Gemalto Cinterion to accomodate socked id assignment
Changes introduced to accomodate the socket id assignment upon actual
creation of the socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk 04242c7fa4 Updating BG96 to accomodate socket id assignment
Socket ids will be assigned in the create_socket_impl(...) method. This
is the point where an actual socket creation at the modem takes place.
2019-05-22 23:44:08 -07:00
Hasnain Virk bded22ee98 Prevent assigning socket id until opened at modem
Local modem ip stacks vary in their implementations and the way of
working. Some of the modems may not open a socket until an IP context is
assigned. That's why we came up with a container that stores addresses of
any CellularSocket instances created on-demand by the application. When
the application requests opening a socket we store allocate and store the
premitive in the container however actual socket creation at the modem
may happen at a later stage, e.g., a call to send_to() may result in
actual opening of a socket.

That's why we must not assign socket ids in the CellularSocket object
during construction. It must happen when actual socket is opened and is
alive.

Another implication of the previous model is that we may have multiple
sockets created in our container but the actual socket ids are not
assigned yet, so we cannot directly map the socket id to the container
indices which has been happening previously.

To solve this issue we have promoted the AT_CellularStac::find_socket_index(...) method
to be a protected method rather than being private so that the children
can use the method to determine if the given index in the container
corrsponds to the assigned socket id or not.

We have given up on the socket->created flag and the whole decision
making to actually open a socket on the modem happens on the basis of a
valid socket being assigned or not.
2019-05-22 23:43:41 -07:00
Bilal Qamar fb51501234 Timer stopped after exiting while loop 2019-05-23 11:09:43 +05:00
RFulchiero 69879bd382 Fix dangling #endif from rebase 2019-05-23 11:31:39 +08:00
Desmond Chen b69dc2bdae Update BLE SoftDevice from SDK14 to SDK15
- Adjust memory for SoftDevice
    - Enable PRIO=5 for interrupt priority check
    - Change NRF_SD_BLE_API_VERSION to 6
    - Add handle and buffer for advertising and scanning
    - Remove guard for phy update
    - Change scatter files and mbed_lib.json for PR #8607
2019-05-23 11:31:31 +08:00
George Beckstein 4598a28cb7 Fixed bug that checked the wrong buffer size when inserting UUID information into an advertisement payload. 2019-05-22 15:56:14 -04:00
Oren Cohen ed29d64053 CR changes 2019-05-22 17:25:08 +03:00
Michael Schwarcz 79976e0304 Update storage mbed_lib.json for MUSCA_A1_S 2019-05-22 17:17:21 +03:00
Michael Schwarcz ff1c769c7e Add ARM_MUSCA_A1 as a new target platform
Musca-A1 is a Cortex-M33 based target with security extension enabled.

- ARM_MUSCA_A1 is the non-secure target running mbed-os.
- ARM_MUSCA_A1_S is the secure target running TF-M.
- TF-M sources were imported and patched in previous commits.
- TF-M secure bootloader (McuBoot) for MUSCA_A1 is submitted by a pre-built binary.
- A post-build hook concatenates The secure and non-secure binaries,
  signs it and then concatenates the bootloader with the signed binary.
2019-05-22 17:17:20 +03:00
Lingkai Dong 31edc25ae7 Deprecate UARTService
UARTService is rarely used and has not been actively updated.
2019-05-22 13:49:23 +01:00
Lingkai Dong 1b71c934c4 BLE services: update to use the latest APIs
Update BatterService and HealthThermometerService to use
up-to-date BLE APIs.

Note: HealthThermometerService::updateTemperature() will
not check GAP connection which should be taken care of by
the caller.
2019-05-22 13:44:31 +01:00
Bilal Qamar defc244db2 +UPSND sent to poll activation status 2019-05-22 16:52:03 +05:00
Martin Kojtal 06cf7871b9
Merge pull request #10602 from tymoteuszblochmobica/dns
Runtime DNS server addition implement
2019-05-22 08:51:54 +01:00
Daniel Lee 26c3bcf759 Add a check step of IPv6 network to BG96
Need to check IPv6 address when use IPv6 network via BG96.

Signed-off-by: Daniel Lee <daniel.lee2@arm.com>
2019-05-22 15:49:00 +09:00
Martin Kojtal 2da743625f
Merge pull request #10581 from pan-/cordio-tx-path
BLE - Management of Tx path on Cordio.
2019-05-21 15:04:17 +01:00
Devaraj Ranganna 7765d39283 The targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA are removed
due to partial implementation. Having FUTURE_SEQUANA_M0 and
FUTURE_SEQUANA PSA targets is misleading.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-05-21 15:00:31 +01:00
Martin Kojtal b636241b2d
Merge pull request #10620 from anttiylitokola/update-coap-to-4.8.0
Update mbed-coap to version 4.8.0
2019-05-21 13:49:16 +01:00
Arto Kinnunen 07aac7b911 Merge commit '1c29564f653e93a2bda270b257c9bb239de9b61e' into prepare_for_mbedos513
* commit '1c29564f653e93a2bda270b257c9bb239de9b61e':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 84a07ce..0345477
2019-05-21 14:22:20 +03:00
Martin Kojtal 02eaad45a4
Merge pull request #10476 from tymoteuszblochmobica/closetcp
LWIP TCP socket close - disconnecting fix
2019-05-21 09:34:45 +01:00
Martin Kojtal 5f36041579
Merge pull request #10598 from mikaleppanen/wisun_cert_conf
Add Wi-Sun certificate options to mesh api configuration json
2019-05-21 09:10:34 +01:00
Martin Kojtal 344ad4372c
Merge pull request #10593 from kivaisan/fix_target_flow_control_flags
Cellular: Fix flow control pin configs for BC95 and Gemalto targets
2019-05-21 08:47:07 +01:00
Martin Kojtal 85d72bafeb
Merge pull request #10615 from andrewc-arm/patch_cc1
This allows CPP application to use the functions from cc.h.
2019-05-21 08:42:07 +01:00
Antti Yli-Tokola 68400add4a Update mbed-coap to version 4.8.0
Make sn_coap_protocol_linked_list_duplication_info_remove API to public. User might want to delete some messages from the duplicate list.
Enable support for unified client configuration.
2019-05-21 09:30:04 +03:00
Martin Kojtal 6b7a13f619
Merge pull request #10580 from paul-szczepanek-arm/fix-hardcoded-acl
BLE: put the acl buffer size in config
2019-05-20 14:13:45 +01:00
Tymoteusz Bloch cdd31a5fc7 Runtime DNS server addition implement 2019-05-20 14:21:25 +02: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
Martin Kojtal d4122b0b3a
Merge pull request #10454 from u-blox/ublox_odin_driver_os_5_v3.7.0_rc1
Enterprise_mode_+_wifi_configuraiton_api: update ODIN drivers to v3.7.0 RC1
2019-05-20 10:54:45 +01:00
Andrew Chong 67f8e35201 This allows CPP application to use the functions from cc.h. 2019-05-20 13:32:58 +08:00
Anna Bridge 25019df05e
Merge pull request #10554 from jarvte/remove_compile_warnings
Cellular: fixed compile warnings from cellular
2019-05-17 13:07:51 +01: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
Vincent Coubard cb97b3c2e2 BLE - Document GattClientEventHandler::on_write_command_sent. 2019-05-16 11:40:46 +01:00
Anna Bridge 6344b9db2c
Merge pull request #10579 from kevinong0108/fix_cellular_quectel_bg96
Cellular: fix Quectel BG96 missing unlock at socket_connect
2019-05-16 10:58:32 +01:00
Kimmo Vaisanen d0fff05443 Cellular: Fix flow control pin configs for BC95 and Gemalto targets 2019-05-16 12:15:38 +03:00
paul-szczepanek-arm ebcff4b2d2 improve wording of the docs 2019-05-15 13:25:28 +01:00
Anna Bridge 8e44a75a75
Merge pull request #10575 from paul-szczepanek-arm/CCC-writeback-fix
BLE: fix CCC callback not being called when writing to a CCC
2019-05-15 12:06:58 +01:00
Pekka Pesu 93cb530b94 add BG96 povermanagemet 2019-05-15 00:50:39 -07:00
Pekka Pesu 4d3f1a456d BG96 power handling added 2019-05-15 00:50:32 -07:00
Martin Kojtal 26aa16ff39
Merge pull request #10557 from jarvte/fix_cellularcontext_init
Cellular: Initialize CellularContext member variables in correct class
2019-05-15 08:48:54 +01:00
kevin.ong 75162f9e1a cellular: fix style 2019-05-15 01:08:11 +08:00
Vincent Coubard ca7be271c9 BLE: Remove incorrect calls to GattServer::handleDataSentEvent 2019-05-14 17:16:05 +01:00
Vincent Coubard de482e4029 BLE: Create and handle write_command Event.
This event is raised when a write command has been sent to the controller. It can be used to queue a new write command.
2019-05-14 17:13:51 +01:00
Vincent Coubard e814a3cfb3 BLE: handle GattServerEvents::GATT_EVENT_DATA_SENT 2019-05-14 17:12:02 +01:00
Vincent Coubard 134f71e6ba BLE: Connect generic gatt client as pal EventHandler. 2019-05-14 17:11:29 +01:00
paul-szczepanek-arm 26fe4dd174 add info on rx acl buf size 2019-05-14 16:57:14 +01:00
paul-szczepanek-arm 064e8de93d put the acl buffer size in config 2019-05-14 16:52:24 +01:00
kevin.ong 20a06d8c2d cellular: fix Quectel BG96 missing unlock at socket_connect 2019-05-14 22:39:42 +08:00
paul-szczepanek-arm eda064563c no read callback for CCC 2019-05-14 11:20:14 +01:00
paul-szczepanek-arm de2743b702 not include attribute write cback for CCC 2019-05-14 10:16:08 +01:00
Teppo Järvelin d56c8cafa8 Cellular: fixed compile warnings from cellular 2019-05-14 08:48:29 +03:00
Martin Kojtal 3ea1c56124
Merge pull request #10147 from kjbracey-arm/atomic_bitwise
Assembler atomics
2019-05-13 14:18:05 +01:00
Martin Kojtal 1aa95c017b
Merge pull request #10456 from tymoteuszblochmobica/multihoming
LWIP 2.1.2 tcpip thread stack overflow fix.
2019-05-13 14:17:36 +01:00
Martin Kojtal f65e30eb21
Merge pull request #10523 from yossi2le/yossi_fix_general_filesystem_tests
Removing support of FLASHIAP in general_filesystem tests
2019-05-13 13:28:34 +01:00
Martin Kojtal e7b8ccf0ae
Merge pull request #10511 from AriParkkila/cell-statemachine-timeout
Cellular: Fix setting of statemachine timeout
2019-05-13 06:41:29 +01:00
Martin Kojtal 03cda262c3
Merge pull request #10500 from andrewc-arm/patch-2
This removes many const char* warnings related with LWIP_ASSERT()
2019-05-12 20:07:52 +01:00
Anna Bridge 97e1c9cbaf
Merge pull request #10287 from linlingao/pr10177
Enable MTS_DRAGONFLY_F411RE to register with Pelion
2019-05-10 16:21:46 +01:00
Tymoteusz Bloch 51610cc90c Fixed TCP connection close.
If TCP FSM is in ESTABLISHED state,  waits  for TCP close handshaking until TIME_WAIT
The purpose is to prevent eth/wifi driver stop and  FIN ACK corrupt.
This may happend if network interface disconnect follows immediately after socket_close.
2019-05-10 17:00:38 +02:00
Teppo Järvelin e4ee870b2e Cellular: Initialize CellularContext member variables in correct class
CellularContext member variables were initialized in inheriting class.
Now in base class where they should be initialized so that every inheriting
class don't have to init them.
2019-05-10 11:43:48 +03:00