Commit Graph

5469 Commits (7b0915c7d4073a1e40edebab285a0cfb22a5c67c)

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