mudassar-ublox
3ad1ee1fe4
Style issue fixed
2019-06-13 16:58:50 +05:00
Anna Bridge
3e6f5eba6c
Merge pull request #10764 from mirelachirica/bg96_sockid_fix_ipv6_support
...
BG96 ipv6 support and socket id fix for BG96 and M26
2019-06-12 17:04:46 +01:00
Anna Bridge
4ad71c4d65
Merge pull request #10802 from Patater/update-to-mbedtls-2.18.0rc4
...
Update to mbedtls 2.18.0rc3
2019-06-12 16:09:02 +01:00
Anna Bridge
cda2031d1b
Merge pull request #10809 from kjbracey-arm/ns_list_stdint
...
ns_list: avoid UINT_FAST8_MAX (fix ARM C 5 builds)
2019-06-12 14:49:47 +01:00
Chris Trowbridge
ea5d8cf26d
Remove unnecessary init AT commands
2019-06-12 09:36:22 -04:00
Teppo Järvelin
6b11ca1371
Cellular: fix athandler to use correct timeout in case of multiple urc's
...
Start time was not updated when multiple urc's were found and so timeout
was set to zero. Now that start time is updated, timeout is correct.
2019-06-12 11:21:00 +03:00
mudassar-ublox
488d47b723
socket close callback
2019-06-12 12:15:10 +05:00
Kevin Bracey
5c3b15cf81
ns_list: avoid UINT_FAST8_MAX
...
Prevent compilation issues when someone has included <stdint.h> before
a header file that needs to include <ns_list.h>.
Some toolchains like ARM C 5 will not provide UINT_FAST8_MAX in C++
unless __STDC_LIMIT_MACROS is defined, and if this was not defined the
first time <stdint.h> was included, it's too late.
We can get the maximum value for our unsigned list offset by casting -1
to it, thanks to modulo arithmetic.
2019-06-11 17:13:27 +03:00
Anna Bridge
fc645bc3ed
Merge pull request #10805 from kjbracey-arm/armc5_blinky
...
Fix ARMC5 compilation
2019-06-11 15:07:43 +01:00
Martin Kojtal
ed69fc12ad
Merge pull request #10794 from tymoteuszblochmobica/dns
...
LWIP DNS servers setting/getting fixed.
2019-06-11 14:14:38 +01:00
Mirela Chirica
0339ffd1b9
Cellular: Added handling for BG96 network PDP context deactivation
2019-06-11 16:05:27 +03:00
Kevin Bracey
3b178a08ef
NSAPI/lwIP: Use netconn_recv_tcp_pbuf
...
Slight RAM+speed efficiency improvement - read the TCP implementation's
native pbufs, rather than forcing netconn_recv to generate netbuf
wrappers for us. Saves one small lwIP heap allocation per TCP packet
received.
2019-06-11 16:00:11 +03:00
Jaeden Amero
1470d06811
mbedtls: PSA entropy is compatible with other entropy
...
When using Mbed Crypto's PSA Entropy Injection feature on Mbed OS, it is
not required to opt out of having entropy sources added to your entropy
contexts by default (via MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES).
As integrated in Mbed OS, MBEDTLS_PSA_INJECT_ENTROPY is compatible with
actual entropy sources. PSA entropy injection is implemented using the
standard Mbed TLS NV Seed feature, and is as compatible with other
entropy sources as the standard Mbed TLS NV Seed feature which does
support entropy mixing.
2019-06-11 12:43:17 +01:00
Kevin Bracey
6df6decdfc
Fix ARMC5 compilation
...
Minor tweaks to fix ARM C 5 compatibility.
Pushing "ns_list.h" include to first makes sure "ns_types.h" is included
first, meaning it gets to define `__STDC_LIMIT_MACROS` before the first
include of <stdint.h>, which ensures that UINT8_MAX etc are defined.
2019-06-11 13:00:14 +03:00
Antti Kauppila
e19249f276
Tracing added for Handle_start + doxygen updates
2019-06-10 17:18:18 +03:00
Jaeden Amero
4917b10725
mbedtls: Update to Mbed TLS 2.18.0-rc3
2019-06-10 13:05:46 +01:00
Jaeden Amero
03b2c53ff6
mbedtls: Update to Mbed Crypto 1.1.0d2
2019-06-10 09:55:55 +01:00
Martin Kojtal
42dbcbdc86
Merge pull request #10772 from LDong-Arm/GenericGap_advParams
...
Workarounds for GAP advertising issues on Cordio
2019-06-09 18:21:41 +01:00
Martin Kojtal
dc77c40fe9
Merge pull request #10709 from LDong-Arm/nrf52_cordio
...
Default to Cordio BLE stack for NRF52* targets
2019-06-09 18:03:34 +01:00
Martin Kojtal
df84eb1b28
Merge pull request #10653 from desowin/stm-usb-host
...
STM USBHALHost: Fix NULL pointer dereference
2019-06-09 18:01:46 +01:00
Tymoteusz Bloch
4005c77f21
LWIP DNS servers setting/getting fixed.
2019-06-07 18:58:05 +02:00
Lingkai Dong
7426a8a860
Remove ArrayView
...
All use of ArrayView within mbed-os have been removed, and
it is not a public API.
2019-06-07 16:19:18 +01:00
Lingkai Dong
6f7f1337cd
BLE: Replace uses of ArrayView with mbed::Span
...
The platform API mbed::Span provides the same features as ArrayView.
2019-06-07 16:18:55 +01:00
paul-szczepanek-arm
1fe06f18c3
exculde test
2019-06-07 13:50:30 +01:00
Martin Kojtal
6a1ab73988
Merge pull request #10770 from Patater/update-to-mbedcrypto-1.1.0d1
...
mbed-crypto: Update to Mbed Crypto 1.1.0d1
2019-06-07 09:18:53 +01:00
Chris Trowbridge
9a1309f5f8
Modify ME910 driver to follow power on/off best practices and add custom get_context() function
2019-06-06 14:29:15 -04:00
Qinghao Shi
81c96a785d
Tests: enable kvstore test for Fastmodel for test code coverage
2019-06-06 18:54:59 +01:00
Qinghao Shi
111daa0a4c
FastModel: enable kvstore
2019-06-06 18:54:58 +01:00
Chris Trowbridge
0a717e435b
Add default soft/hard power on/off sequences for ME910
2019-06-06 10:26:51 -04:00
Chris Trowbridge
0d9facd921
Remove ME910 trace group #define
2019-06-06 10:26:50 -04:00
Chris Trowbridge
21a8ed8108
Remove ME910 flow control debug message
2019-06-06 10:26:50 -04:00
Chris Trowbridge
f0afd1f896
Remove unnecessary #includes
2019-06-06 10:26:50 -04:00
Chris Trowbridge
1a20ea11af
Remove default power on/off functions
2019-06-06 10:26:50 -04:00
Chris Trowbridge
841607d029
Add Telit ME910 driver
2019-06-06 10:26:50 -04:00
Antti Kauppila
43b67459ae
Assert handling added
2019-06-06 13:12:29 +03:00
Lingkai Dong
6165204b15
Workaround for legacy GAP advertising issue on Cordio LL
...
Due to some issue in Cordio link layer, advertising data does not
take effect unless we set it (or set it again) after advertising
parameters are set.
2019-06-06 10:49:35 +01:00
Lingkai Dong
f78364cb5a
Set extended advertising parameters upon first use of API v2
...
Previously, extended advertising parameters failed to be set
during BLE initialisation when the stack was not ready.
To work around this, we delay it to the first use of
useVersionTwoAPI.
2019-06-06 10:49:04 +01:00
Jaeden Amero
9676edd36b
mbed-crypto: Update to Mbed Crypto 1.1.0d1
2019-06-05 16:39:06 +01:00
Lingkai Dong
3373c5d24a
NORDIC_CORDIC pal_crypto: check if cryptocell310 is enabled
...
The config "cryptocell310-acceleration" is set by MCU_NRF52840
but individual targets may have crytocell310 feature disabled.
2019-06-05 09:53:53 +01:00
Martin Kojtal
fbc489e6a5
Merge pull request #10733 from pan-/fix-nrf52-memory-pools
...
Fix nrf52 memory pools
2019-06-04 21:01:15 +01:00
Vincent Coubard
618e1e623e
Cordio: Fix default COC parameters.
...
The stack doesn't cope with zero COC client or channel on IAR.
2019-06-04 14:45:45 +01:00
Martin Kojtal
04d0b0d1c8
Merge pull request #10654 from desowin/usbhost-msd
...
USBHostMSD: Implement BlockDevice get_type()
2019-06-04 12:56:52 +01:00
Martin Kojtal
b050a9df64
Merge pull request #10722 from Patater/auto-enable-psa-entropy-injection
...
mbed-crypto: Automatically enable entropy injection
2019-06-04 09:47:15 +01:00
Antti Kauppila
9d8969daa7
Small fixes and doxygen update
2019-06-04 10:41:16 +03:00
Martin Kojtal
752101d041
Merge pull request #10696 from AriParkkila/cell-ublox-at-connect
...
Cellular: Fix socket connect on UBLOX_AT driver
2019-06-03 08:52:43 +01:00
Martin Kojtal
5d33fe1dfa
unsupported USBHAL: fix coding style
2019-06-03 08:44:41 +01:00
Martin Kojtal
f0696417c5
Merge pull request #10647 from tymoteuszblochmobica/coverity
...
Fix LWIP warning issues found by Coverity scan
lwip_dns.c in function: dns_add_interface_server
CID 1399051 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)10. buffer_size_warning: Calling strncpy with a maximum size argument of 6 bytes on destination array new_interface_server->interface_name of size 6 bytes might leave the destination string unterminated.
line 434 strncpy(new_interface_server->interface_name, interface_name, INTERFACE_NAME_MAX_SIZE);
lwip_ip4_frag.c in function: ip_reass_free_complete_datagram
CID 1373164 (#1 of 1): Dereference after null check (FORWARD_NULL)7. var_deref_model: Passing null pointer prev to ip_reass_dequeue_datagram, which dereferences it. [show details]
line 209 ip_reass_dequeue_datagram(ipr, prev);
lwip_ip4_frag.c in function: ip_reass
CID 1373163 (#1-2 of 2): Dereference after null check (FORWARD_NULL)38. var_deref_model: Passing null pointer ipr_prev to ip_reass_dequeue_datagram, which dereferences it. [show details]
line 663 ip_reass_dequeue_datagram(ipr, ipr_prev);
lwip_api_msg.c in function: lwip_netconn_do_connected
CID 1373162 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)10. var_deref_model: Passing null pointer op_completed_sem to sys_sem_signal, which dereferences it. [show details]
line 1336 sys_sem_signal(op_completed_sem);
2019-06-03 08:41:53 +01:00
Martin Kojtal
9a3c175e96
Merge pull request #10588 from AriParkkila/cell-bg96-power
...
Cell bg96 power
2019-06-03 08:38:58 +01:00
Antti Kauppila
7f199ceeef
Added missing _cid handling
2019-06-02 18:55:50 +03:00
Vincent Coubard
11cb7f0119
BLE - tune Cordio LL default parameters to reduce the memory required.
2019-05-31 16:11:08 +01:00
Vincent Coubard
12bdc0ebdb
BLE - Fix Cordio LL extended advertising size.
2019-05-31 16:10:02 +01:00
Vincent Coubard
a74c4ce57f
BLE - Set rx ACL buffer size to the minimum viable in cordio conf.
2019-05-31 16:09:28 +01:00
Vincent Coubard
0baf04dfb4
Disable l2cap connection oriented channels in Cordio default conf.
2019-05-31 16:08:37 +01:00
Martin Kojtal
a8444bd6ff
Merge pull request #10651 from desowin/usbhost-set-address-wait
...
USBHost: Wait for device to implement SET ADDRESS
2019-05-31 12:37:19 +01:00
Martin Kojtal
523ad23a30
Merge pull request #10656 from jarvte/fix_cellularctx_destr
...
Cellular: AT_CellularContext disconnect in non-blocking mode
2019-05-31 12:35:59 +01:00
Jaeden Amero
4feb15c76a
mbed-crypto: Automatically enable entropy injection
...
Automatically enable entropy injection when the NV Seed feature is
requested on PSA targets. Add a warning note describing the state of the
current implementation of the entropy injection API.
Fixes #10720
2019-05-31 09:11:58 +01:00
Mirela Chirica
b57d978bbd
Cellular: Added IPV6 and IPV4V6 as supported properties for BG96
2019-05-30 14:07:33 +03:00
Mirela Chirica
ff2061aba4
Cellular: Fix requested socket id in socket_connect routines of BG96 and M26
2019-05-30 14:07:33 +03:00
Antti Kauppila
83d62fbb9c
astyle fixes
2019-05-29 20:13:22 +03:00
Antti Kauppila
77e8374058
Cellular: Removed boiler plate code
2019-05-29 16:17:08 +03:00
Ari Parkkila
73164710af
Cellular: Fix socket connect on UBLOX_AT driver
2019-05-29 03:19:07 -07:00
Teppo Järvelin
8922eeb014
Cellular: add method to set authentication type to CellularContext
...
Authentication type must be able to set. It was hard coded to CHAP.
Added unit tests for CellularContext to be able to add test for new function.
2019-05-29 09:46:15 +03:00
Martin Kojtal
9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
...
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
Martin Kojtal
cc491812a8
Merge pull request #10427 from kjbracey-arm/new_standards
...
Set compilers to C++14 and C11
2019-05-28 20:34:00 +01:00
Martin Kojtal
8fc2a3c92a
Merge pull request #10675 from 0xc0170/update-mbedtls-2.18.0-rc1
...
Update mbedtls 2.18.0 rc1
2019-05-28 20:24:18 +01:00
Kevin Bracey
2fbbd9d2ca
Introduce Semaphore::acquire methods
...
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().
Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".
Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
k-stachowiak
948d4379d8
Update Mbed TLS feature to 2.18.0-rc2
2019-05-28 11:00:16 +01:00
Martin Kojtal
19e762298f
Merge pull request #10666 from ARMmbed/feature-nrf52-sdk15
...
Nordic SDK v15 Update
2019-05-28 09:48:44 +01:00
Tomasz Moń
a39cba0e52
USBHost: Wait for device to implement SET ADDRESS
...
The USB Device must change the address within 2 ms after completing
SET ADDRESS status stage.
Wait 2 ms before issuing GET DESCRIPTOR under the new address. In my
case, this completely resolves the timeout issues.
2019-05-27 12:22:59 +02:00
Teppo Järvelin
779fb6defd
Cellular: AT_CellularContext disconnect in non-blocking mode
...
Disconnect was supporting only blocking mode.
2019-05-27 12:23:29 +03:00
paul-szczepanek-arm
9bf2d0ae55
cryptocell acceleration as an option
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
4d236665a2
ifdef 52840 crypto
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
41e02279d3
config fixed for LL hci
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
c050faf268
fix typo
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
16bb7e5f04
fix merge conflixt
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
c9f8ca46ff
config now applies to MCU_840 instead of only DK
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
ac66a0040c
moved config to target nordic
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
0d1ca866ea
license updated
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
6b705c881f
remove usage of gpio and leds from nordic cordio LL as it interferes with normal function
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
e43aa12a5d
removed stray comma
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
1bbadde9c0
configs in mbed json
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
a6f639ba27
zero copy HCI as a config option
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
87f5e1f057
review comments addressed
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
7894a9321d
fix releaseing the WSF msg too early
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
88d000e18e
update LL runtime config to new version
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
00bd959abe
use TIMER2 instead
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
5025022ab8
handle extended reset
2019-05-27 06:16:49 +01:00
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
Arto Kinnunen
a24db795a5
Squashed 'features/nanostack/coap-service/' changes from 086e7ba..3c79829
...
3c79829 Merge pull request #122 from ARMmbed/sync_with_mbedOS
5dd3ab9 (via Mbed OS) test_soap_connection_handler leaks memory when open_connection fails
git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 3c79829ee3bb2bf7d9308a88f2b5c3596f6fea4b
2019-05-21 14:21:19 +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
Ari Parkkila
830b4234e9
Cellular: Fix setting of statemachine timeout
2019-05-09 04:42:30 -07:00
aqin
43759c0c4b
Enterprise mode + wifi configuraiton api
2019-05-08 17:52:04 +05:00
Olli-Pekka Puolitaival
842d145d91
Py3 fixes for test scripts
2019-05-08 13:46:01 +03:00
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