paul-szczepanek-arm
e04fd876f5
units
2018-11-26 10:24:32 +00:00
Vincent Coubard
f136b0cb00
BLE: Rework Gap event handler.
...
Every user facing event handler accept a single parameter type; event that contains all the event fields.
That strategy allows us to extend the type later if required while we do not disrupt existing code.
2018-11-26 10:24:32 +00:00
Vincent Coubard
6a63948a7d
BLE: Add phy in sync exstablished event.
2018-11-26 10:24:32 +00:00
Vincent Coubard
194e2cb4f8
BLE: Move common type from pal to ble namespace.
2018-11-26 10:24:32 +00:00
Vincent Coubard
74c2def5ef
BLE: Fix mutability in ble::advertising_event_t
2018-11-26 10:24:32 +00:00
Vincent Coubard
b6c7bd7960
Merge pull request #1 from paul-szczepanek-arm/vincent
...
connections
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
00da0e571a
fix review comments
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
8733d52da9
event types fixed
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
9b77f9dcba
default values and func names
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
68b5aad2ce
ppm case
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
8cc580d986
only one connection event needed
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
2cdff44f2a
cancel connection
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
365a6c8c4d
set random address
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
c0f4b864ca
clamp values
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
216dd6dcc7
we need clamping while we wait for c++17
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
a3820c89c5
removed impossible case
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
02d9b35bad
assert added
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
32c303d7f3
missing return
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
87887cc9dd
rename phy to index
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
565f1e0131
fix first element of array selection
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
fd880d1e6b
fix swapping
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
62b38cfbc8
connection complete event
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
519f75587a
ppm conversion
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
b98326150d
fix names
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
bd8b7fa87f
use set value on return
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
5e6c0c92f6
compilation errors
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
6fa7a8ffce
fix type
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
9529974572
type already defined in ble types
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
4fe7d5ed90
small cleanup
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
8801ef570a
fix types
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
b489e0957e
pal call
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
a2f461c38e
reference instead of pointer
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
32d3fa9aad
shorten min max
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
edb645b492
handle creating contiguous arrays for the pal call
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
713b5c7e10
add ability to disable phy
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
d00a92d10f
init param to false until user changes it
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
4c4743db7b
extended connection API
2018-11-26 10:24:31 +00:00
paul-szczepanek-arm
afadc1d8c0
convert to correct time units
2018-11-26 10:24:31 +00:00
Vincent Coubard
2f8e336635
BLE: tag missing documentation block.
2018-11-26 10:24:31 +00:00
Vincent Coubard
651bf321db
BLE: Use typedef in signature.
2018-11-26 10:24:31 +00:00
Vincent Coubard
5661bf6bbb
BLE: remove dead code.
2018-11-26 10:24:31 +00:00
Vincent Coubard
31e028f22f
BLE: fix integer overflow in setPeriodicAdvertisingParameters
2018-11-26 10:24:31 +00:00
Vincent Coubard
3eebcc49ad
BLE: Add more precondition check to GenericGap.
2018-11-26 10:24:31 +00:00
Vincent Coubard
d23bd2f268
BLE: Fix compilation error.
2018-11-26 10:24:31 +00:00
Vincent Coubard
297ad78452
BLE: check for periodic advertising enabled in GenericGap::destroyAdvertisingSet
2018-11-26 10:24:31 +00:00
Vincent Coubard
24e6b89ade
BLE: use uint32_t to describe ms interval in Gap::setPeriodicAdvertisingParameters
2018-11-26 10:24:31 +00:00
Vincent Coubard
01b0de2175
BLE: rename Gap:setPeriodicAdvertisingData into setPeriodicAdvertisingPayload.
2018-11-26 10:24:31 +00:00
Paul Szczepanek
eefdc638f7
BLE: fix condition in advertising set allocation.
...
Co-Authored-By: pan- <vincent.coubard@arm.com>
2018-11-26 10:24:31 +00:00
Vincent Coubard
b1c6914e34
BLE: Add periodic sync advertisement management.
2018-11-26 10:24:31 +00:00
Vincent Coubard
5236a70618
BLE: Add default minimiseFragmentationValue for Gap::setAdvertisingScanresponse.
2018-11-26 10:24:31 +00:00
Vincent Coubard
06b3ccd322
BLE: refactor parameters order of Gap::startAdvertising
2018-11-26 10:24:31 +00:00
Vincent Coubard
d6d1ea5c2a
BLE: rework GenericGap::stopAdvertising(AdvHandle)
2018-11-26 10:24:31 +00:00
Vincent Coubard
74356aa7f0
BLE: Rework GenericGap::startAdvertising
2018-11-26 10:24:31 +00:00
Vincent Coubard
b825ffc1f6
BLE: Handle setAdvertisingParameters on legacy controllers.
2018-11-26 10:24:31 +00:00
Vincent Coubard
d2773e9731
BLE: Reduce complexity of GenericGap::setAdvertisingData
2018-11-26 10:24:31 +00:00
Vincent Coubard
0d90671842
BLE: Fix release of advertising sets.
2018-11-26 10:24:31 +00:00
Vincent Coubard
413908d594
BLE: Renaming
...
GenericGap::is_extended_advertising_enabled become GenericGap::is_extended_advertising_available
2018-11-26 10:24:31 +00:00
Vincent Coubard
df5e01bf45
BLE: wrap bitstream manipulation into a BitArray class.
2018-11-26 10:24:31 +00:00
Vincent Coubard
2e8389d4fd
BLE: Create and destroy advertising sets in the controller.
2018-11-26 10:24:31 +00:00
Vincent Coubard
ed012adab3
BLE: Fix create and destroy advertising set.
2018-11-26 10:24:31 +00:00
Vincent Coubard
7882bb3016
BLE: Fix bit access to mapped advertising set.
2018-11-26 10:24:31 +00:00
Vincent Coubard
f6ceafa3e9
BLE: use helper function where appropriate.
2018-11-26 10:24:31 +00:00
Vincent Coubard
d63c7bc948
BLE: use std::min where appropriate.
2018-11-26 10:24:31 +00:00
Vincent Coubard
a628eba212
BLE: cosmetic fixes.
2018-11-26 10:24:31 +00:00
Vincent Coubard
ad3f3c86a5
BLE: Move implementation to cpp file.
2018-11-26 10:24:31 +00:00
Vincent Coubard
87014b71b6
BLE: reorder declaration.
2018-11-26 10:24:31 +00:00
Vincent Coubard
6a55d65660
BLE: Create advertising payload builder.
...
This change set use a data buffer to set data and scan responses.
2018-11-26 10:24:31 +00:00
Vincent Coubard
e24fcdd12a
BLE: move extended advertising parameter in ble/gap folder
2018-11-26 10:24:31 +00:00
Vincent Coubard
7f9be995a2
BLE: Revert GapAdvertisingdata and create new type for extened Advertising data.
2018-11-26 10:24:31 +00:00
Vincent Coubard
e4c27e5071
BLE: Introduce new type for extended advertising parameters.
2018-11-26 10:24:31 +00:00
Vincent Coubard
2c7cf2bbd9
BLE: revert GapScanningParams
2018-11-26 10:24:31 +00:00
Vincent Coubard
61536c3f64
BLE: revert non backward compatible changes.
...
This changeset includes order of function declaration in headers.
2018-11-26 10:24:31 +00:00
Vincent Coubard
dc07e44290
BLE: makes GenericGap::stopGap aware of extended scan.
2018-11-26 10:24:31 +00:00
Vincent Coubard
24460de86f
BLE: Implement new scan API in GenericGap
2018-11-26 10:24:30 +00:00
Vincent Coubard
4835a1afdc
BLE: Add non legacy scan API.
2018-11-26 10:24:30 +00:00
Vincent Coubard
28ead51401
BLE: Add GapScanParameters type.
...
The new type covers what is required by extended and legacy scan parameters.
2018-11-26 10:24:30 +00:00
Vincent Coubard
27ea248863
BLE: Fix GapScanningParams includes.
2018-11-26 10:24:30 +00:00
Vincent Coubard
1a14453da1
BLE: Add mechanism to track use of non compatible scan API.
2018-11-26 10:24:30 +00:00
Vincent Coubard
962b5c34d4
BLE: Tag scanning filter policy mode with FIXME
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
2b00903a30
missing param
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
a1582bd3ac
pointer to ref
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
6663171607
docs
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
2f6d861818
fix packetisation in adv set data
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
23dc808968
handle legacy adv calls
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
587eb9845e
call the right func for set scan response
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
b276e6edaf
fix high duty cycle setting (reversed)
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
238f15b031
doc fixes
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
ca72f5a289
merged adv param types
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
8c253a3dfe
proposed scan type changes
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
60fb78795b
fix adv and scan types
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
5d077e6dbc
new addr types for ext adv
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
c58099f0ee
new scan call
2018-11-26 10:21:32 +00:00
Vincent Coubard
75c0b0ed90
BLE: Fix advertising_channel_map_t constructor.
2018-11-26 10:21:32 +00:00
Vincent Coubard
0c1e01952b
Compilation fixes
2018-11-26 10:21:32 +00:00
Vincent Coubard
fb804bf85a
BLE: Fix GapExtendedAdvertisingParams visibility and constness.
2018-11-26 10:21:32 +00:00
Vincent Coubard
e951fa15ff
BLE: Fix GapExtendedAdvertisingParams::getPeerAddress return type.
2018-11-26 10:21:32 +00:00
Vincent Coubard
426de4a2d9
BLE: Fix GapAdvertisingData copy constructor.
2018-11-26 10:21:32 +00:00
Vincent Coubard
2f53ee896c
BLE: Add setters to advertising_event_t and use it in GapExtendedAdvertisingParams.
2018-11-26 10:21:32 +00:00
Vincent Coubard
d1e3800e79
BLE: Refactor AdvReportOptionalInformation and onAdvertisingReport
2018-11-26 10:21:32 +00:00
Vincent Coubard
5e707731f2
BLE: Wrap advertising data in a span.
2018-11-26 10:21:32 +00:00
Vincent Coubard
dee48e71e3
BLE: Typedef ble::advertising_event_t into Gap::AdvertisingEventType_t
2018-11-26 10:21:32 +00:00
Vincent Coubard
f930905947
BLE: Regactor Gap::EventHandler::onScanRequest signature.
2018-11-26 10:21:32 +00:00
Vincent Coubard
14b24d324c
BLE: Move advertising_handle_t into ble namespace.
2018-11-26 10:21:32 +00:00
Vincent Coubard
f83f32948a
BLE: Fix typo in arguments name.
2018-11-26 10:21:32 +00:00
Vincent Coubard
44d8545dc8
BLE: Add ANONYMOUS in peer_advertising_type_t
2018-11-26 10:21:32 +00:00
Vincent Coubard
e58928def1
Move advertising event and advertising event data status to ble.
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
78a4bdda8a
type translation
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
8794c0b43b
make packetisation common
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
87482b5530
compilation errors fixed
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
a5e1bdb97e
missing parens
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
060d2f5216
advertising data only contains advertising data
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
52f54c032a
compiilation errors
2018-11-26 10:21:32 +00:00
paul-szczepanek-arm
4a86b3dd10
typo in var name
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
019b0c2146
added constructor to use with deprecated data
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
93b0b9f6e2
fix getting value instead of address
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
944d867c79
fix comments and missing comma in constructor
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
9d83a8e134
non braking Advertising data deprecation
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
26f40e07f7
packetisation
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
834e6c4f9b
Update mbed-os/features/FEATURE_BLE/ble/GapAdvertisingData.h
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
56146a44fb
legacy support
2018-11-26 10:21:31 +00:00
Vincent Coubard
7de5d8c763
Merge pull request #4 from pan-/extended
...
Last bit of PAL extended advertising implementation.
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
5efac211be
sid
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
25997d96b9
chek for features
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
6ca5041f53
generic advertising
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
f35ebcc900
simplify params to avoid holding state
2018-11-26 10:21:31 +00:00
Vincent Coubard
b9d7e63911
BLE: Implement Advertising extension and Periodic Advertising on Cordio (WIP)
2018-11-26 10:21:31 +00:00
Vincent Coubard
8fa62ec719
BLE: Add count function to phy_set_t
2018-11-26 10:21:31 +00:00
Vincent Coubard
ca68323930
Add explicit cast to bool.
2018-11-26 10:21:31 +00:00
Vincent Coubard
7d9c3d1432
Improve advertising_event_properties_t constructor.
2018-11-26 10:21:31 +00:00
Vincent Coubard
d836841e0f
Add missing pure qualifier to PAL GAP APIs.
2018-11-26 10:21:31 +00:00
Vincent Coubard
74cf305452
Add PAL declaration for extended and periodic advertising
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
ff68c94ec2
update state on disconnect fix
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
1f2ee0d873
missing include
2018-11-26 10:21:31 +00:00
paul-szczepanek-arm
6932789453
extended advertising scanning and connecting API
2018-11-26 10:21:31 +00:00
Ari Parkkila
d969c4f369
Cellular: Refactored GEMALTO_CINTERION_Module to GEMALTO_CINTERION
2018-11-26 02:16:12 -08:00
Martin Kojtal
0cc134586c
Merge pull request #8851 from KariHaapalehto/disconnect_error_code_change
...
Change error code from NSAPI_ERROR_PARAMETER to NSAPI_ERROR_NO_CONNEC…
2018-11-26 11:03:51 +01:00
Martin Kojtal
7a77e66472
Merge pull request #8643 from RonEld/feature_unsupported_error_support
...
Modify HW accelerator drivers to new error code
2018-11-26 10:59:14 +01:00
Teemu Kultala
a1b1d7c4bd
cellular: registration status change fix
2018-11-26 11:20:21 +02:00
Ari Parkkila
3d79b50dfb
Cellular: Fix ATHandler URC processing
2018-11-25 23:47:23 -08:00
Teppo Järvelin
f31db91cfb
Cellular: astyle fixes for CellularStateMachine.cpp.
2018-11-26 09:37:00 +02:00
Teppo Järvelin
9a9a209eff
Cellular: added radio access technology as configurable in cellular mbed_lib.json.
2018-11-26 09:37:00 +02:00
Martin Kojtal
aae6bb125a
Merge pull request #8836 from SeppoTakalo/clarify_connect_docs
...
Clarify asynchronous NetworkInterface::connect() documentation
2018-11-25 11:27:16 +01:00
Martin Kojtal
7fd4692b32
Merge pull request #8862 from 0xc0170/dev_rollup
...
Rollup 5.11rc v3
2018-11-25 11:25:54 +01:00
Danny Shavit
53728e45b7
Add a new PSA Internal Trusted Storage APIs
2018-11-25 09:57:22 +02:00
Nir Sonnenschein
0283bb84e4
Merge pull request #8667 from davidsaada/kvstore_integration
...
KVStore & derived classes: design docs, implementation & configuration
2018-11-25 07:30:53 +02:00
Martin Kojtal
5ad7c3ee6e
Merge branch 'gracefully_disconnect' of https://github.com/jarvte/mbed-os into dev_rollup
2018-11-24 21:15:38 +00:00
Martin Kojtal
ab7d2ddf1e
Merge branch 'fix_bc95_todo' of https://github.com/jarvte/mbed-os into dev_rollup
2018-11-24 20:50:16 +00:00
Martin Kojtal
b16569dc3f
Merge pull request #8838 from 0xc0170/dev_rollup
...
Rollup v2 for 5.11rc1
2018-11-24 21:37:02 +01:00
Martin Kojtal
860e4befd6
Merge pull request #8859 from Patater/dev/Patater/import-mbed-tls-and-crypto
...
Import Mbed TLS v2.15.0 with Mbed Crypto
2018-11-24 21:35:19 +01:00
Martin Kojtal
5086c3d280
Merge pull request #8814 from jarvte/unify_cellular_return
...
Cellular: unified return value comments on API folder.
2018-11-24 17:08:58 +01:00
David Saada
e073fb69b2
Change Device key to work with KVStore
2018-11-24 17:43:42 +02:00
David Saada
e9c25e23a5
KVStore & derived classes: design docs, implementation & configuration
...
Implement the following:
KVStore base class
TDBStore class
FileSystemStore class
SecureStore class
Global APIs
Configuration framework
Design documentation
2018-11-24 17:43:35 +02:00
Martin Kojtal
cb6f5d65e7
Merge pull request #8766 from jarvte/fix_cellular_backward_com
...
Fix cellular backward compatibility
2018-11-24 08:05:56 +01:00
Jaeden Amero
3900b81d02
Update Mbed TLS to mbedtls-2.15.0
2018-11-23 22:54:09 +00:00
Hanno Becker
70f9497918
Mbed TLS importer: Call `config.pl --force` to accept unknown option
...
The new PSA-aware Mbed TLS importer script calls `config.pl` on the
Mbed TLS config.h to set the PSA configuration option
MBEDTLS_PSA_CRYPTO_STORAGE_C which isn't documented in config.h.
config.pl therefore fails, and so does the importer.
This commit fixes this by calling `config.pl` with the `--force`
option which amends the given `config.h` by a `#define` for the
requested option if the option isn't present in the file.
2018-11-23 22:54:07 +00:00
Mohammad AboMokh
1f4584fc70
Add mbed_lib.json for Mbed Crypto
2018-11-23 22:54:05 +00:00
itayzafrir
b85db484b0
Update adjust-config.sh to enable persistent keys
...
In adjust-config.h, set and unset Mbed Crypto storage configuration options
in order to use persistent keys with PSA ITS storage.
2018-11-23 22:54:04 +00:00
Mohammad AboMokh
15945687bc
Record Mbed Crypto version
...
Record the version of Mbed Crypto into VERSION.txt for easy reference.
2018-11-23 22:54:03 +00:00
Mohammad AboMokh
7ba359a4a6
Update mbedtls importer to import mbed-crypto
2018-11-23 22:54:01 +00:00
Martin Kojtal
0f14f4bf39
Merge branch 'update_coap_to_4.7.2' of https://github.com/anttiylitokola/mbed-os-1 into dev_rollup
2018-11-23 18:40:24 +00:00
Martin Kojtal
b9ea30abf1
Merge branch 'socket_open_deprecated' of https://github.com/michalpasztamobica/mbed-os into dev_rollup
2018-11-23 18:38:02 +00:00
Martin Kojtal
61c7947b47
Merge branch 'cell-trace' of https://github.com/AriParkkila/mbed-os into dev_rollup
2018-11-23 18:37:40 +00:00
Martin Kojtal
b75aae66f4
Merge branch 'block_device_general_tests' of https://github.com/theamirocohen/mbed-os into dev_rollup
2018-11-23 18:37:13 +00:00
Martin Kojtal
95b1e75202
Merge branch 'dtls' of https://github.com/SeppoTakalo/mbed-os into dev_rollup
2018-11-23 18:36:55 +00:00
Kari Haapalehto
d828d2d279
Change error code from NSAPI_ERROR_PARAMETER to NSAPI_ERROR_NO_CONNECTION
...
in a case were there wasn't connection.
2018-11-23 11:54:34 +02:00
Teppo Järvelin
9095635c8f
Cellular: Fixed bc95 to accept only RAT_NB1 as it's only valid rat that modem supports.
2018-11-23 07:52:22 +02:00
Martin Kojtal
78bd53121a
Merge pull request #8291 from theotherjimmy/fix-ff-lpc546xx
...
*LPC546XX: Finish MCU Refactoring
2018-11-22 17:31:18 +01:00
Antti Yli-Tokola
8d341ae0d4
Update mbed-coap to version 4.7.2
...
- Fix handling of duplicate blockwise ACK's
CoAP data buffer was not added into duplication info store when creating response for blockwise request.
This leads to case where whole bootstrap flow just timeouts if received any duplicate messages during blockwise operation.
Fixes error: IOTCLT-3188 - UDP connection fails for lost ACK sending
- Remove error trace when building reset message without options
This makes it possible to build the reset message without allocating option or getting error message.
2018-11-22 14:48:33 +02:00
Seppo Takalo
1b80f6ba5e
Clarify asynchronous NetworkInterface::connect() documentation
2018-11-22 12:52:28 +02:00
Martin Kojtal
f1f64266c0
Merge pull request #8600 from KariHaapalehto/wisuninterface_created
...
Wi-SUN interface implementation.
2018-11-22 10:55:58 +01:00
Kari Haapalehto
26beb983d4
Correct network status callbacks with Nanostack.
...
Ethernet-tasklet needs to be registered for emac link state changes.
Ethernet-tasklet will then handle ethernet cable connection/disconnection events.
2018-11-21 10:27:52 +02:00
c_jin
a9ce7a6836
Add SPDX identifier for GD EMAC driver
2018-11-21 12:46:28 +08:00
Seppo Takalo
5459a7b5c9
Add license headers into TLSSocket files
2018-11-20 11:47:29 +02:00
Seppo Takalo
0f5cec3ebc
Include TLSSocket and DTLSSocket in Doxygen
2018-11-20 11:47:28 +02:00
Teppo Järvelin
c6205628d6
Cellular: unified return value comments on API folder.
2018-11-20 07:47:01 +02:00
Jimmy Brisson
f41b78c6b8
Move EMAC implementation to shared target
2018-11-19 09:37:17 -06:00
Teppo Järvelin
a655a538b0
Cellular: more gracefully disconnect.
2018-11-19 16:02:30 +02:00
Seppo Takalo
bdc355f873
Astyle fixes
2018-11-19 15:31:31 +02:00
Seppo Takalo
5d170f2b3e
Clarify that TLSSocket should not be reopened.
2018-11-19 15:19:50 +02:00
Seppo Takalo
6192ed1480
Compare the intermediate timestamps as well
2018-11-19 15:19:50 +02:00
Seppo Takalo
2229a2f2f5
Need to protect members with MBEDTLS_PK_C and X509_CRT_PARSE flags.
...
This is dependency to X509_CRT_PARSE but just to make sure
that also the 'mbedtls_pk_context' structure is not used if that
flag is not enabled.
2018-11-19 15:19:49 +02:00
Seppo Takalo
46c46019bc
Refactor DTLSSocket to use Socket::getpeername()
...
Also, let DTLSSocket to be a friend of InternetSocket so it can do
the name resolution from its _stack.
+ Some whitespace fixes
2018-11-19 15:19:49 +02:00
Seppo Takalo
695db63df8
Decrease verbosity of the TLSSocketWrapper
2018-11-19 15:19:49 +02:00
Michal Paszta
392bccf835
Add unit tests for TLSSocket and TLSSocketWrapper
...
This also includes their Datagram counterparts: DTLSSocket and DTLSSocketWrapper.
Coverage missing for timer-related functionality, but this would require more advanced stub development.
The extra (d)tls_test_config.h is necessary for successful compilation without HW support for the mbedtls features in unittests.
I reused the mbedtls stub found in features/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c and amended it slightly with a few missing functions.
2018-11-19 15:19:49 +02:00
Seppo Takalo
2ca1fe65dd
Implement DTLSSocket helper
...
This is equivalent of TLSSocket class but for UDP and DTLS.
2018-11-19 15:19:49 +02:00
Seppo Takalo
d22adbdb26
Implement DTLSSocketWrapper and fix non-blocking connections on TLSSocket
...
DTLSSocketWrapper is equivalent of TLSSocketWrapper but uses datagram mode
and timers for handling Mbed TLS timeouts.
Non-blocking connections were not working earlier, now fixed for both
secure socket modes.
2018-11-19 15:19:49 +02:00
Amir Cohen
cf846151eb
Add block device small data size test
2018-11-19 14:49:28 +02:00
Martin Kojtal
31475455ea
Merge pull request #8751 from jarvte/ctx_unittests
...
Cellular: minor fix to CellularDevice and adding updating unit tests after refactoring
2018-11-19 11:54:56 +00:00
Michal Paszta
42940fab3c
Deprecate TCP/UDPSocket open-calling constructors
...
Updated Doxygen, removed the only one call of the deprecated constructor from the tests.
2018-11-19 12:19:52 +01:00
Ari Parkkila
9bdeb68e74
Cellular: Updated debug prints, and network registration return value
...
Updated cellular debug trace prints:
- Removed unnecessary prints.
- Tracing more in DEBUG level.
- Read/write bytes not printed on big packets.
- Signal quality (RSSI) traced to log network problems.
- Dismissed AT data is traced.
- Modem type and firmware version are traced.
Network registration returns NotRegistered instead of StatusNotAvailable,
because that's not in 3GPP TS 27.007.
2018-11-19 02:55:43 -08:00
Teppo Järvelin
a3589ed41f
Fixed cellular backward compatiblity.
2018-11-19 09:04:22 +02:00
c_jin
5a15f810a6
Error modification
2018-11-19 09:41:17 +08:00
c_jin
2b9071afe6
conflicts resolve
2018-11-18 20:19:19 +08:00
chao_king
61d3bc804c
Update licence
2018-11-18 19:30:17 +08:00
chao_king
d2e731bcf5
Update licence
2018-11-18 19:30:07 +08:00
chao_king
9131b3f9ec
Update licence
2018-11-18 19:29:43 +08:00
chao_king
700f3a2c69
Add EMAC driver for GD32_F307VG
2018-11-18 19:26:04 +08:00
Teppo Järvelin
e5c3024849
Cellular: adding unit tests for new class CellularContext and changed classes.
2018-11-16 13:14:38 +02:00
Qinghao Shi
d157e59267
reformat to following codeing style rules
2018-11-16 10:29:31 +00:00
Qinghao Shi
25e8f89567
update wait_ms() to sleep_for()
2018-11-16 10:29:31 +00:00
Qinghao Shi
78b186ec56
Update code according to the reviews
...
* move emac driver to COMPONENT folder
* use mbed rtos C++ API instead of CMSIS API
2018-11-16 10:29:31 +00:00
Qinghao Shi
1a25051f91
override default mem-size in lwIP stack config
2018-11-16 10:27:15 +00:00
Qinghao Shi
e603f1ad49
add FVP EMAC driver
2018-11-16 10:22:42 +00:00
Cruz Monrreal II
b327b12c75
Merge branch 'david_unity_error_code' of ssh://github.com/davidsaada/mbed-os into rollup-b.1
2018-11-15 18:26:14 -06:00
Cruz Monrreal II
49b940c9a7
Merge branch 'prepare_for_mbedos511' of ssh://github.com/artokin/mbed-os into rollup-b.1
2018-11-15 18:26:12 -06:00
Cruz Monrreal II
0e4f843022
Merge branch 'david_buffered_bd_perf' of ssh://github.com/davidsaada/mbed-os into rollup-b.1
2018-11-15 18:26:11 -06:00
Cruz Monrreal II
5c1c7bf71f
Merge branch 'fix_astyle_error' of ssh://github.com/0xc0170/mbed-os into rollup-b.1
2018-11-15 18:26:09 -06:00
Cruz Monrreal II
8cbd310858
Merge branch 'Lora_compliance' of ssh://github.com/AnttiKauppila/mbed-os into rollup-b.1
2018-11-15 18:26:06 -06:00
Cruz Monrreal
fa2077df41
Merge pull request #8685 from bridadan/clean_up_deprecated_feature_code
...
Clean up deprecated feature code
2018-11-15 17:05:22 -06:00
Martin Kojtal
48569e1cf7
Merge branch 'master' of https://github.com/ConradBraam/mbed-os into dev_rollup
2018-11-15 14:04:41 +00:00
Martin Kojtal
9a252cd218
Merge branch 'feature-emac-mxrt1050' of https://github.com/NXPmicro/mbed into dev_rollup
2018-11-15 13:58:27 +00:00
Martin Kojtal
91e1da1f8c
cellular: fix test coding style
2018-11-15 10:47:11 +00:00
Martin Kojtal
f91eed97da
cellular: fix onboard cellular coding style
2018-11-15 10:47:08 +00:00
David Saada
3995779806
Add a Unity macro to assert on platform error code difference
2018-11-15 12:14:44 +02:00
David Saada
50836e76a1
Improve the efficiency of BufferedBlockDevice
2018-11-15 11:52:22 +02:00
chao_king
42bffe2d89
Update licence
2018-11-15 16:01:54 +08:00
chao_king
49b25c9699
Update licence
2018-11-15 16:01:54 +08:00
chao_king
cc94bfa838
Update licence
2018-11-15 16:01:53 +08:00
chao_king
eb39c48841
Add EMAC driver for GD32_F307VG
2018-11-15 16:01:53 +08:00
Martin Kojtal
a2ae34b0e6
cellular: fix coding style
2018-11-15 07:23:37 +00:00
Martin Kojtal
3f9d1a9271
nanostack eventloop: fix coding style
2018-11-15 07:20:13 +00:00
Martin Kojtal
eec4e1329a
nanostack interface: fix coding style
2018-11-15 07:20:12 +00:00
Martin Kojtal
29a1149bd6
nanostakc cmsis rtos: fix coding style
2018-11-15 07:20:12 +00:00
Martin Kojtal
3aab38140a
nanostack mesh: fix coding style
2018-11-15 07:20:12 +00:00
Martin Kojtal
a4500e86f5
blockdevice test: fix coding style
2018-11-15 07:20:09 +00:00
Anna Bridge
4d07bcbd6e
Merge pull request #8579 from jarvte/cellular_context
...
Major refactoring: changing Network inheritance from CellularNetwork to new class CellularContext
2018-11-14 14:37:19 +00:00
Mahesh Mahadevan
12c6b1bd88
MIMXRT1050EVK: Add ENET support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-14 07:13:07 -06:00
Conrad Braam
ef81f4b5a3
Merge pull request #2 from ARMmbed/master
...
catch up from armmbed
2018-11-14 12:25:12 +00:00
Antti Kauppila
cf53494f2e
Compliance test errors fixed
2018-11-14 09:46:38 +02:00
Cruz Monrreal II
4a5ba7f156
Merge branch 'getpeername' of ssh://github.com/SeppoTakalo/mbed-os into rollup
2018-11-13 17:26:49 -06:00
Teppo Järvelin
88213d3e03
Cellular: astyle fixes after introducing CellularContext class and major refactor.
2018-11-13 18:50:35 +02:00
Teppo Järvelin
14f3740c13
Cellular: fixed cellular greentea tests after major refactoring.
2018-11-13 18:33:55 +02:00
Seppo Takalo
619bcb5b4e
Implement Socket::getpeername() API
...
This is equivalent of POSIX getpeername() function. It allows to
get remote address associated with the socket.
For example:
socket *s = server.accept();
SocketAddress remote;
s->getpeername(&remote);
2018-11-13 11:02:51 +02:00
Conrad Braam
6a59fa1e62
State machine step for Erase command
2018-11-12 16:13:21 +00:00
Kevin Bracey
913103c34d
TLSSocketWrapper: decouple error requirements
...
* Don't pull in mbedtls_strerror() if trace is not enabled.
* Output error trace even if mbedtls_strerror() is not available.
2018-11-12 13:12:34 +02:00
Yoshihiro TSUBOI
222b21e593
[Wio BG96] Adding platform HAL
2018-11-11 23:32:22 +09:00
Teppo Järvelin
3f6e088782
Cellular: Fixed backward compatibility with OnBoardCellularInterface and set default values in NetworkInterfaceDefaults.cpp.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
1a047efade
Cellular: review fixes, added missing fixes from master.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
467ae09bef
Cellular: Updated target SARA4_PPP to use new CellularContext class.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
9fb83024ea
Changed CellularContext to inherit from CellularBase instead of NetworkInterface. \n Changed Device constructor to take Filehandle instead of eventqueue.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
dbbe2ddc59
Cellular: fixed to compile even if CELLULAR_DEVICE and rx/tx are not defined.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
d1ff9ed68d
Cellular: added to reset state machine is we get disconnected so application can try again.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
609b0f71be
Cellular: minor doxygen fixes.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
8385b19e5e
Cellular: Deleted unused class CellularConnectionFSM. Application should use CellularContext class instead.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
43e08a0adf
Cellular: fixing unit test after refactor.
2018-11-11 14:12:49 +02:00
Teppo Järvelin
ad2abbe887
Cellular: major refactoring while introducing new CellularContext class.
2018-11-11 14:12:49 +02:00
Teppo Järvelin
8880538eba
Cellular: Introduced new state machine to replace old CellularConnectionFSM
...
CellularDevice class own new state machine. Now we don't have to expose state machine
which may change and so we don't have to make API changes if that happens.
EasyCellularConnection uses now CellularDevice instead of old state machine.
2018-11-11 14:11:21 +02:00
Ron Eldor
9f4e752ef3
Modify HW accelerator drivers to new error code
...
Have the HW accelearation drivers return the platform module
errors about feature unsupported, and hw acceleration failure,
because the moduel specific errors will be removed.
2018-11-11 09:59:18 +02:00
Arto Kinnunen
d879422f5e
Merge commit '77818568c6d9389ef1eb82e40ebfbbf26626c9d3' into mbedos511
...
* commit '77818568c6d9389ef1eb82e40ebfbbf26626c9d3':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from ccd30a3..513a38e
2018-11-10 20:16:03 +02:00
Arto Kinnunen
923ce138f5
Merge commit '661681f65c3fb61aec2e4605bef0fc075cc8cb0d' into mbedos511
...
* commit '661681f65c3fb61aec2e4605bef0fc075cc8cb0d':
Squashed 'features/frameworks/nanostack-libservice/' changes from bb56e37..1d4c358
2018-11-10 20:14:25 +02:00
Cruz Monrreal
9d95d46d6c
Merge pull request #8591 from 0xc0170/fix_coding_style_features
...
features: fix coding style
2018-11-09 09:40:56 -06:00
Arto Kinnunen
e1ef0e4347
Merge commit 'e6a851f0a7310462f5f65e9f7955f9fdc71b84f0' into mbedos511
...
* commit 'e6a851f0a7310462f5f65e9f7955f9fdc71b84f0':
Squashed 'features/nanostack/coap-service/' changes from bc331ca..c45afcd
2018-11-09 16:40:43 +02:00
Arto Kinnunen
9a13e9d5e8
Merge commit '1374a5e5e6775dd6db9533075f25b3112c984b22' into mbedos511
...
* commit '1374a5e5e6775dd6db9533075f25b3112c984b22':
Squashed 'features/frameworks/mbed-trace/' changes from 9eaf0d1..7a1bd34
2018-11-09 15:59:35 +02:00
Arto Kinnunen
ce2ecd5e5b
Merge commit '5d162a08ffd383c97b49e35f3065fcd4638ac87c' as 'features/frameworks/mbed-client-randlib'
2018-11-09 15:52:44 +02:00
Arto Kinnunen
72fc5faab0
Remove mbed-client-randlib
...
Remove mbed-client-randlib and add it later as git subtree
2018-11-09 15:48:41 +02:00
Arto Kinnunen
9e661a9846
Merge commit '623607c9da4ccd5cc1d3d75ff185b3f8d29a473b' as 'features/nanostack/sal-stack-nanostack-eventloop'
2018-11-09 15:31:56 +02:00
Arto Kinnunen
2457efc20a
Remove sal-stack-nanostack-eventloop
2018-11-09 15:29:30 +02:00
Brian Daniels
da6ce029ea
Removing cellular references to COMMON_PAL
2018-11-08 16:55:59 -06:00
Cruz Monrreal II
6ebc5be0f0
Merge branch 'cellular_fsm' of ssh://github.com/marcemmers/mbed-os into rollup
2018-11-08 13:24:20 -06:00
Cruz Monrreal II
e40c357cb2
Merge branch 'internetsocket' of ssh://github.com/marcemmers/mbed-os into rollup
2018-11-08 13:24:14 -06:00
Cruz Monrreal II
60ad33b180
Merge branch 'mbed_client_cli_sync_v040' of ssh://github.com/artokin/mbed-os into rollup
2018-11-08 13:24:08 -06:00
Cruz Monrreal
dee3506fe4
Merge pull request #8676 from 0xc0170/dev_rollup
...
Rollup PR
2018-11-08 17:58:34 -06:00
Martin Kojtal
14eadfac44
Merge pull request #8653 from u-blox/r410m_sdcard
...
mbed_lib.json updated for other all C030 targets and code corrected t…
2018-11-08 14:54:58 +01:00
Kari Haapalehto
6163e6f425
Review changes corrected
2018-11-08 14:50:54 +02:00
Arto Kinnunen
2d10cebd00
Sync mbed-client-cli files with v0.4.0
...
Sync mbed-client-cli with master repo v0.4.0.
2018-11-08 13:21:56 +02:00
Martin Kojtal
0217f69511
Merge branch 'cm3ds_emac' of git://github.com/kapi90/mbed-os into dev_rollup
2018-11-08 09:21:38 +00:00
Martin Kojtal
20646d3da1
littlefs: fix coding style
2018-11-08 08:54:43 +00:00
Martin Kojtal
63160d8c5b
netsocket: fix astyle coding style
2018-11-08 08:54:17 +00:00
Martin Kojtal
884a7748b2
lorawan: fix astyle coding style
2018-11-07 08:56:36 +00:00
Martin Kojtal
7bd258154d
feature deprecated: fix astyle coding style
2018-11-07 08:56:35 +00:00
Martin Kojtal
41c1901318
lwipstack: fix astyle coding style
2018-11-07 08:56:35 +00:00
Martin Kojtal
e54ce88bca
storage: fix astyle coding style
2018-11-07 08:56:35 +00:00
Martin Kojtal
5c79ba5189
lorawan: fix coding style
2018-11-07 08:56:32 +00:00
Martin Kojtal
bfb8b723c3
device key: fix coding style
2018-11-07 08:56:32 +00:00
Martin Kojtal
71d35749f9
cellular: fix coding style
2018-11-07 08:56:32 +00:00
Cruz Monrreal II
75368766f7
Merge branch 'fix_compile_warning' of ssh://github.com/KariHaapalehto/mbed-os into rollup
2018-11-06 21:29:08 -06:00
Cruz Monrreal II
ddd82a9d5e
Merge branch 'fix_possible_memory_leak' of ssh://github.com/KariHaapalehto/mbed-os into rollup
2018-11-06 21:29:02 -06:00
Cruz Monrreal
c792d33112
Merge pull request #8652 from 0xc0170/dev_rollup
...
Rollup PR for docs
2018-11-06 20:40:04 -06:00
Cruz Monrreal
0c2d35f312
Merge pull request #8612 from vidavidorra/master
...
Add names to system thread
2018-11-06 17:00:05 -06:00
Marc Emmers
dcb97f9f74
InternetSocket: Fixed missing unlock before return
2018-11-06 15:02:42 +01:00
Fahim Alavi
2806dd8216
mbed_lib.json updated for other all C030 targets and code corrected to use UBLOX_AT
2018-11-06 17:58:41 +05:00
Martin Kojtal
4cbcd64ca3
Merge branch 'doxy_refactor' of https://github.com/jamesbeyond/mbed-os into dev_rollup
2018-11-06 12:10:10 +00:00
Martin Kojtal
cb4924151e
Merge pull request #8621 from marcuschangarm/fix_include
...
Add missing include for TLSSocket
2018-11-05 17:18:52 +01:00
Martin Kojtal
d55c0da61e
Merge pull request #8613 from SeppoTakalo/tls_fix
...
Make sure that TLSSocketWrapper::close() is called before the transport is destroyed.
2018-11-05 17:17:36 +01:00
Martin Kojtal
73cc54e5f7
Merge pull request #8524 from korjaa/more_blockdevice_tests
...
Add more generic BlockDevice tests.
2018-11-05 17:15:59 +01:00
Arto Kinnunen
ef39a19ba9
Merge commit '6dd01c679db4deb0a4a2c55832f3abe7b19bc51b' into mbedos511
...
* commit '6dd01c679db4deb0a4a2c55832f3abe7b19bc51b':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 2535a6c..ccd30a3
2018-11-05 17:08:28 +02:00
Arto Kinnunen
3c37456f4c
Merge commit '6a6dc452aa482a87421de660b3c57590cd43d6fa' into mbedos511
...
* commit '6a6dc452aa482a87421de660b3c57590cd43d6fa':
Squashed 'features/nanostack/coap-service/' changes from cbe656a..bc331ca
2018-11-05 14:22:43 +02:00
Arto Kinnunen
d7e2bd3f81
Merge commit '7fab5abace6aa9d6fc6c335fa6fcab15a108d646' into mbedos511
...
* commit '7fab5abace6aa9d6fc6c335fa6fcab15a108d646':
Squashed 'features/frameworks/mbed-trace/' changes from 6df2572..9eaf0d1
2018-11-05 14:21:35 +02:00
Arto Kinnunen
66620a2761
Merge commit '0ca91df5905111270a6ec1343be5c726c97fe571' into mbedos511
...
* commit '0ca91df5905111270a6ec1343be5c726c97fe571':
Squashed 'features/frameworks/nanostack-libservice/' changes from 5eb2f3f..bb56e37
2018-11-05 14:17:48 +02:00
Kari Haapalehto
4aaf013b0e
Fix memory leak
2018-11-05 13:09:56 +02:00
Kari Haapalehto
c7afb91f62
Fix compile warning about initializing and variable order
2018-11-05 12:45:53 +02:00
Cruz Monrreal
0e6eac5faa
Merge pull request #8491 from lrusinowicz/new-target-future_sequana
...
New target future sequana
2018-11-03 07:05:58 -05:00
Jeroen de Bruijn
440905a84e
fix: Change cellular FSM thread name
2018-11-02 16:23:52 +01:00
Jeroen de Bruijn
3f635ef813
fix: Update thread names
...
Remove _thread suffix and rename threads.
2018-11-02 13:44:24 +01:00
Cruz Monrreal
430fb3e7ba
Merge pull request #8601 from kjbracey-arm/error_fmtcheck
...
Add format checking to printf-type APIs
2018-11-01 16:09:05 -05:00
Marcus Chang
07eb6bd159
Add missing include for TLSSocket
...
TCP and UDP sockets are automatically available when mbed.h is
included in an application.
This change lets the TLSSocket be used in the same way.
2018-11-01 13:32:37 -07:00
Leszek Rusinowicz
9b1db83eaa
Added required changes outside of TARGET_Cypress tree:
...
1. In drivers/Timer.cpp make sure that hardware timer is initialized outside of critical section.
This is because on PSoC 6 hardware resources are shared between both cores
and we have to make sure that the other core is not already using a particular resource.
This mechanism is based on interprocessor communication taht cannot be handled iside of
critical section.
2. Added support for post-binary hook function for PSoC 6 targets, so the hex image for M0+ CPU core
can be merged with M4 core image for the final image.
3. Added possibility to use hook function from exportes, so the M0+ hex image could be included
in the generated project.
4. Included hex images in the build dependency list, so the update of image is catched by the
build process.
2018-11-01 20:19:21 +01:00
Leszek Rusinowicz
f906aac096
Added BLE support based on CORDIO stack.
2018-11-01 20:15:57 +01:00
Seppo Takalo
f92108c0f3
Make sure that close() is called before the transport is destroyed.
...
Transport is a member of TLSSocket which is derived from TLSSocketWrapper.
Make sure that TLSSocketWrapper::close() is called before the transport is
destroyed.
2018-11-01 15:30:27 +02:00
Jeroen de Bruijn
1f4f623339
feat: Name PPP thread
2018-11-01 13:57:03 +01:00
Jeroen de Bruijn
56a12ce7d6
feat: Name cellular FSM queue thread
2018-11-01 13:55:44 +01:00
Jaakko Korhonen
c3e0e3e75d
Add generic BlockDevice test for get_erase_value().
2018-11-01 14:51:07 +02:00
Jaakko Korhonen
ebef79a05c
Add generic BlockDevice test for contiguous erase/write/read.
2018-11-01 14:51:07 +02:00
Qinghao Shi
60cc0c295d
fixed NetworkInterface Class missing in doxy
2018-10-31 14:50:59 +00:00
Kari Haapalehto
4440612d42
This is a initial version of Wi-Sun interface implementation.
...
To get Wi-Sun mesh network working, also nanostack with Wi-Sun support
is needed. ws_empty_functions.c and ws_management_api.h are temporary
included here, so that wisun_tasklet will compiled without problems.
They will replaced with the official versions with next nanostack release.
2018-10-31 15:48:33 +02:00
Kevin Bracey
fc32d954ac
FATFileSystem: fix format specifiers
2018-10-31 14:49:22 +02:00
Martin Kojtal
2015a61b37
Merge pull request #8580 from tz-arm/fix_incorrect_comment_in_socket_h
...
Fix the incorrect comment for set_blocking()
2018-10-31 13:10:35 +01:00
Cruz Monrreal
fba0669194
Merge pull request #8563 from marcuschangarm/default_qspif
...
Add QSPIF block device to default system storage
2018-10-30 22:32:01 -05:00
Cruz Monrreal
9226c5873d
Merge pull request #8550 from deepikabhavnani/mbed_h_fixes
...
Add required namespace instead of relying on mbed.h
2018-10-30 08:47:04 -05:00
Cruz Monrreal
66968c5bb0
Merge pull request #8371 from u-blox/ublox-cellular-unsupported-features
...
Cellular: Add unsupported features for UBLOX targets
2018-10-30 08:46:47 -05:00
Martin Kojtal
27c0affef7
Merge pull request #8578 from cmonr/rollup
...
Rollup PR: Samll docs changes
2018-10-30 10:03:01 +01:00
Terence Zhang
2c56bd8151
Fix the incorrect comment for set_blocking()
2018-10-30 15:41:32 +08:00
Cruz Monrreal
5ed07c2dd4
Merge pull request #8328 from kjbracey-arm/noreturn
...
Error path tightening: use MBED_NORETURN; add+use core_util_atomic_flag
2018-10-29 20:49:54 -05:00
Amanda Butler
eae570ef08
Edit EMAC.h
...
Change Latin abbreviation to English phrase and fix capitalization of EMAC while I'm at it.
2018-10-29 15:14:07 -05:00
kegilbert
4bc7bf3b1e
Fix typos in Features/Netsocket
2018-10-29 15:14:07 -05:00
Cruz Monrreal
13d6703676
Merge pull request #8401 from mirelachirica/at_handler_changes_2
...
At handler fixes
2018-10-29 12:07:07 -05:00
Bence Kaposzta
9e6b1246a4
This commit adds EMAC driver for CM3DS that uses an SMSC LAN 9220
...
Ethernet controller. To ensure proper operation, some methods
needed to be updated in the SMSC9220's native driver as well.
It passes all related Greentea tests, however when supervised by
the Python environment it tends to fail because of Timeout.
The current timeout is set to 1200s that seems to be a little bit short
to finish all test cases, the timeout happens towards the end of the
last test case.
Change-Id: I914608c34828b493a80e133cd132537a297bfc84
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2018-10-29 15:30:47 +01:00
Cruz Monrreal
9403a2f16c
Merge pull request #8499 from michalpasztamobica/master
...
Socket closing improvements and tests adjustments
2018-10-29 08:47:25 -05:00
Cruz Monrreal
1489900162
Merge pull request #8556 from paul-szczepanek-arm/fix-phy-support
...
BLE: fix using an optional feature before checking for support
2018-10-29 08:46:26 -05:00
Marc Emmers
d55f6a9915
Check if a queue is present. Return an error otherwise
2018-10-29 13:56:45 +01:00
Marc Emmers
2de83fb286
Unchain the queue when connection is stopped
2018-10-29 13:56:25 +01:00
Kevin Bracey
ea16a6ba1d
Add MBED_NORETURN attributes
...
Save some ROM space by putting MBED_NORETURN attributes on error
functions and failed asserts.
mbed_error was documented as returning an error code. It never
actually could return, so documentation updated, but return type
kept.
2018-10-29 13:58:06 +02:00
Mirela Chirica
c8f2ed3d30
Cellular: ATHandler to reset match URC generated errors and continue response handling
2018-10-29 13:33:11 +02:00
Mirela Chirica
4e6cbb8f5f
Cellular: ATHandler's mem_str fixed to work on matching strings
2018-10-29 13:33:10 +02:00
Mirela Chirica
273590f615
Cellular: Added ATHandler option to write parameters without delimiters
2018-10-29 13:33:09 +02:00
Mirela Chirica
f016d1126f
Cellular: AT handler to support only one callback per URC/prefix
2018-10-29 13:32:15 +02:00
Cruz Monrreal
63946d56d8
Merge pull request #8452 from u-blox/ublox_odin_driver_os_5_v3.5.0_rc1
...
ble: update ODIN drivers to v3.5.0 RC1
2018-10-27 09:50:12 -05:00
Cruz Monrreal
737b36f106
Merge pull request #8440 from kivaisan/gemalto_tcp_socket_support
...
Cellular: Gemalto TCP Socket support
2018-10-27 09:17:31 -05:00
Cruz Monrreal
d23d7855fc
Merge pull request #8552 from cmonr/rollup
...
Rollup PR: UK Docathon pt2
2018-10-27 08:27:02 -05:00
Marcus Chang
063a7842ba
Add QSPIF block device to default system storage
2018-10-26 13:00:38 -07:00
Cruz Monrreal II
e8728148ac
Merge branch 'docs-fix-networkiface' of ssh://github.com/paul-szczepanek-arm/mbed-os into rollup
2018-10-26 11:48:45 -05:00
Mel W
2bab24ffc5
Commas
2018-10-26 17:32:47 +03:00
Mel W
ae75dfcf92
Capitalization, formatting of true and false, punctuation.
2018-10-26 17:32:10 +03:00
Mel W
b165fc0f93
Articles and capitalization
2018-10-26 16:18:57 +03:00
Mel W
25b1625fff
Sentence restructuring, punctuation
2018-10-26 15:42:26 +03:00
paul-szczepanek-arm
b77bd223d7
check for feature before using
2018-10-26 12:53:39 +01:00
Michal Paszta
0da0f16d60
TCPSocket accept refactored to close cleanly and icetea test added
...
Private constructor called in TCPSocket accept, when creating a new Socket.
Close() method calls moved "up" to InternetSocket.
InternetSocket::close() returns proper error code when no socket available.
Add TcpSocket::accept icetea tests.
Deleting sockets moved to teardown.
2018-10-26 12:02:25 +03:00
Martin Kojtal
fc741f03a1
Merge pull request #8346 from OpenNuvoton/nuvoton_fix_mbr
...
storage: fix valid partion check with windows formatted sd card
2018-10-26 09:37:28 +01:00
Mel W
495c875871
...remainder of file... to [remainder of file]
2018-10-26 11:17:52 +03:00
Mel W
56bced4ed1
Reformatting heading levels
2018-10-26 11:15:25 +03:00
mudassar-ublox
0b2d508991
Added unsupported features for UBLOX targets
2018-10-26 10:05:37 +05:00
Cruz Monrreal II
8cfdec1087
Merge branch 'readme-update' of ssh://github.com/sbutcher-arm/mbed into rollup
2018-10-25 21:49:49 -05:00
Cruz Monrreal II
e021ec4d08
Merge branch 'docs-fix-internetsocket' of ssh://github.com/paul-szczepanek-arm/mbed-os into rollup
2018-10-25 21:49:41 -05:00
Cruz Monrreal II
05a69de5b4
Merge branch 'docs-fix-udpsocket' of ssh://github.com/paul-szczepanek-arm/mbed-os into rollup
2018-10-25 21:49:36 -05:00
Amanda Butler
8bf4981807
Edit README.md
...
Edit file, mostly for active voice and removal of marketing language.
2018-10-25 15:30:40 -05:00
Amanda Butler
6db0f67690
Edit InternetSocket.h
...
Edit file, mostly for branding, commas and U.S. spelling.
2018-10-25 14:49:48 -05:00
deepikabhavnani
451cf7ccb3
Add required namespace instead of relying on mbed.h
...
mbed.h has 'using namespace mbed;', hence some of the files skip
adding required namespace to the code, it is always good to specify the
namespace around the elements in header and `using namespace` in
specific CPP files, instead of all
2018-10-25 12:43:59 -05:00
Amanda Butler
c02f2164d5
Edit UDPSocket.h
...
Edit file, mostly for minor spelling to existing text.
2018-10-25 11:02:48 -05:00
paul-szczepanek-arm
446ab5d592
review fixes
2018-10-25 16:28:19 +01:00
Paul Szczepanek
85b9b23711
capitalisation
2018-10-25 11:30:59 +01:00
Paul Szczepanek
5241c3b38d
Update WiFiInterface.h
2018-10-25 11:24:11 +01:00
Paul Szczepanek
de261a4673
Update CellularBase.h
2018-10-25 11:22:13 +01:00
Melinda Weed
8c2bd401d2
editorial changes, passive to active, removing redundancy
2018-10-25 10:35:05 +03:00
paul-szczepanek-arm
4f2645b3fc
incorrect doc was copy pasted
...
replaced with copydoc instead
2018-10-24 20:57:25 +01:00
paul-szczepanek-arm
3929f5630b
missing doxy
2018-10-24 20:54:08 +01:00
paul-szczepanek-arm
e31337dab7
remove redundancy and maintainance overhead
2018-10-24 20:49:28 +01:00
paul-szczepanek-arm
5837e3771e
return codes
2018-10-24 20:35:53 +01:00
paul-szczepanek-arm
6cdda58cec
doxygen fixes
2018-10-24 20:24:33 +01:00
paul-szczepanek-arm
8a7d96c75f
doxy cleanup
2018-10-24 17:45:52 +01:00
Simon Butcher
650d8dc355
Improve Mbed TLS README.md
...
Improves the language, formatting and clarity of the Mbed TLS README.md.
2018-10-24 17:07:02 +01:00
paul-szczepanek-arm
fd0612b763
update internetsocket docs
2018-10-24 16:50:35 +01:00
Cruz Monrreal
b18c819837
Merge pull request #8519 from cmonr/rollup
...
Rollup PR - UK Docathon pt1
2018-10-24 09:32:46 -05:00
Martin Kojtal
7cd1478147
Merge pull request #8003 from Taiki-San/patch-2
...
Leverage the simplification of the IPv6 parsing primitive
2018-10-24 14:13:16 +01:00
Martin Kojtal
5b25b6643d
Merge pull request #8478 from JarkkoPaso/fhss_timer_dev
...
Fhss timer dev
2018-10-24 09:43:13 +01:00
Cruz Monrreal II
975be7b622
Merge branch 'conbra01/docaton_networksocket' of ssh://github.com/ConradBraam/mbed-os into rollup
2018-10-23 22:38:30 -05:00
Cruz Monrreal
2a504092b1
Merge pull request #8430 from theamirocohen/block_device_general_tests
...
Block device general tests
2018-10-23 17:35:31 -05:00
Cruz Monrreal
cd559940b5
Merge pull request #7966 from pingdan32/fix_nrf52_total_link
...
nrf52-ble: fix total links count
2018-10-23 12:32:17 -05:00
Amanda Butler
0a82253cf5
Add comma to SocketAddress.h
...
Add comma to existing text.
2018-10-23 11:27:25 -05:00
Cruz Monrreal
39b4872233
Merge pull request #8369 from u-blox/ublox-cellular-target
...
Cellular: UBLOX_C030_R410M cellular target add
2018-10-23 10:54:44 -05:00
Cruz Monrreal
69904ea43e
Merge pull request #8313 from kivaisan/reduce_memory_footprint
...
Reduce cellular memory footprint
2018-10-23 09:05:39 -05:00
Conrad Braam
e919511d98
Explain default port number, and construction
2018-10-23 15:01:28 +01:00
Amir Cohen
54d2f66aec
Fix no block device handling
2018-10-23 16:41:54 +03:00
aqin
9854c1bbeb
updating method name to make it more descriptive
2018-10-23 18:14:32 +05:00
Taiki
3bc33f6c3e
Use the parsing status as a way to detect if the IP string represent a valid IPv6 address
2018-10-23 11:25:52 +02:00
Amir Cohen
7962e0c525
Fix build issues
2018-10-23 10:54:58 +03:00
Amanda Butler
8bca678ed8
Copy edit README.md
...
Copy edit file, mostly for active voice.
2018-10-23 10:54:58 +03:00
Amir Cohen
71431437fd
Fix typos
2018-10-23 10:54:58 +03:00
Amir Cohen
5a2e7e3367
Fix minor issues
2018-10-23 10:54:58 +03:00
Amir Cohen
1b45d00bde
features/storage/TESTS/blockdevice/general_block_device/README.md
2018-10-23 10:54:58 +03:00
Amir Cohen
7d7a553836
Add general block device tests
2018-10-23 10:54:58 +03:00
Cruz Monrreal
ba23fef90b
Merge pull request #8350 from mirelachirica/at_consume_to_tag_fix
...
Cellular: Fix for AT handler consume to tag
2018-10-22 19:45:24 -05:00
Cruz Monrreal
ecb6e6effb
Merge pull request #8483 from paul-szczepanek-arm/eeprom-fix
...
BLE: write size first when writing an eeprom message
2018-10-22 19:03:41 -05:00
Cruz Monrreal
e269d76888
Merge pull request #8465 from SeppoTakalo/secure_socket
...
Flag certificate verification functions with MBEDTLS_X509_CRT_PARSE_C.
2018-10-22 11:32:55 -05:00
Kimmo Vaisanen
963bf8146d
Cellular: Refactor basic AT command stop and response reading into own method
...
This reduces ROM usage by few hundred bytes.
2018-10-22 09:44:12 +03:00
Kimmo Vaisanen
553718ba5b
Cellular: Optimize memory usage for gsm_to_ascii table
...
gsm_to_ascii table contains ASCII codes, so it can be a char table instead of int table.
This reduces ROM usage by 384 bytes.
2018-10-22 08:35:33 +03:00
paul-szczepanek-arm
d5edd3f16c
write size first
2018-10-19 15:15:10 +01:00
Anna Bridge
83dada3bdc
Merge pull request #8404 from anttiylitokola/mbed_coap_4.7.1
...
Update mbed-coap to version 4.7.1
2018-10-19 15:11:31 +01:00
Mirela Chirica
31f153af7d
Cellular: Fix for AT handler consume to tag
...
If sequence from buffer contains tag but symbol before tag is same as
first symbol of the tag, then the tag wasn't detected.
For example, "\r\n" tag was not found from "\r\r\nOK" sequence.
2018-10-19 15:21:02 +03:00
Seppo Takalo
c7643ea9c8
Flag certificate verification functions with MBEDTLS_X509_CRT_PARSE_C.
...
If Mbed TLS support for X509 is not compiled in, this class would
not compile anymore. However, there might be other uses for it, even
if certificates are not used. Therefore add flagging for X509 only
on specific functions.
2018-10-19 12:32:12 +03:00
Cruz Monrreal
f3fee040c5
Merge pull request #8424 from c1728p9/doxygen_cleanup
...
Update doxygens to be in sync
2018-10-18 08:40:55 -05:00
Jarkko Paso
61f4af0320
FHSS timer driver: Check if timeout alloc fails
2018-10-18 16:38:06 +03:00
Cruz Monrreal
116a743ba6
Merge pull request #8381 from michalpasztamobica/master
...
Fix status sequence and reporting for LWIP stack
2018-10-18 08:37:55 -05:00
Jarkko Paso
1b01709b3b
FHSS timer driver: Make number of timeouts configurable
2018-10-18 16:37:51 +03:00
Jarkko Paso
ea0f4863a2
FHSS timer: Calculation in critical state
2018-10-18 16:37:37 +03:00
Jarkko Paso
440fbfd694
NS hal: Implemented FHSS driver
2018-10-18 16:37:00 +03:00
aqin
c539656299
update with ARM coding standard
2018-10-18 14:04:04 +05:00
Cruz Monrreal
8054060bf2
Merge pull request #8439 from KariHaapalehto/connection_status
...
Correct mesh network connection status callback functionality.
2018-10-17 17:41:46 -05:00
Cruz Monrreal
c8ada378ab
Merge pull request #8453 from AnttiKauppila/valgrind_fixes
...
Fixed lorawan unittests valgrind issues
2018-10-17 17:38:38 -05:00
Cruz Monrreal
fc41c3d8e3
Merge pull request #8311 from SeppoTakalo/secure_socket
...
Implement TLSSocket
2018-10-17 12:24:09 -05:00
Antti Kauppila
f0864be1c5
Fixed lorawan unittests valgrind issues
2018-10-17 15:25:53 +03:00
aqin
2ac6cff107
BLE support added
2018-10-17 14:19:14 +05:00
Seppo Takalo
5d1cd2552b
Check that MBEDTLS_ERROR_C is defined before using mbedtls_strerror().
...
If MBEDTLS_ERROR_C is not defined, that strerror function does not
exist, or is just dummy definition if MBEDTLS_ERROR_STRERROR_DUMMY is
defined.
2018-10-17 11:45:31 +03:00
Kari Haapalehto
1b1f5e7c0d
Correct mesh network connection status callback functionality.
...
Now the status callback is only called if the status changed.
2018-10-17 08:30:58 +03:00
Cruz Monrreal
d30ae07b6e
Merge pull request #8008 from deepikabhavnani/cleanup_features
...
Add required header file and namespace element instead add all
2018-10-16 21:37:20 -05:00
Cruz Monrreal
adf9165af2
Merge pull request #8405 from hasnainvirk/QOS_impl_with_utests
...
[LoRaWAN]: Adding QOS in response to LinkADRReq and fixing class C bugs
2018-10-16 15:47:50 -05:00
Deepika
9db31d299b
Resolve build issues in test
...
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
Cruz Monrreal
8ac60bc1b0
Merge pull request #8050 from AriParkkila/cell-ublox-copn
...
Cellular: Fix Greentea tests for UBLOX_C027
2018-10-16 10:22:37 -05:00
Martin Kojtal
8faf40e3b0
Merge pull request #8434 from RonEld/change_platform_error
...
Change Mbed TLS platform error code and value
2018-10-16 07:17:33 -07:00
Kimmo Vaisanen
d7e07164fe
Cellular: Gemalto TCP Socket support
2018-10-16 14:30:24 +03:00
Hasnain Virk
0a9417299b
Fixing coverity findings
...
A couple of the coverity analysis findings are being treated here. For
the rest there will be a separate PR.
2018-10-16 12:23:21 +03:00
Hasnain Virk
7818733728
Proper handling of RX1 frequency in rx_config
...
Previously, we weren't filling in RX1 frequecny in rx_window1_config
structure. However, everything worked as in LoRaPHY::rx_config() API
there was a check which filled in correct RX1 frequency.
Now we are filling in RX1 freq. properly while we are computing
parameters for RX1 window.
2018-10-16 12:23:21 +03:00
Hasnain Virk
9e4487c850
TX post-process for CONFIRMED UL in no-reception case
...
The idea behind the method post_process_no_reception() is to post
process any outgoing TX but we shouldn't do that if a CONFIRMED message
is outgoing and there are still some retries left.
2018-10-16 12:23:21 +03:00
Hasnain Virk
8d4cda11f7
Making sure that RX slots open after state change
...
After transmission we should change the state before invoking opening of
slots as we may start receiving in the rx slots and the state would
suddenly change from SENDING to RECEIVING without going through the
ACK_WAIT state (in case of CONFIRMED messages). Tests show that after
this slight adjustment, our number of ack retries have significantly
reduced.
2018-10-16 12:23:21 +03:00
Hasnain Virk
d5ce0cc96f
Adding QOS handling and fixing bugs for Class C
...
LinkADRReq mac command can be used by the network server to set a
certain level of QOS using NbTrans field which is applicable to
Unconfirmed traffic only for 1.0.2 spec.
This commit introduces mechanisms to facilitate this QOS. It means to
repeat an outgoing unconfirmed message NbTrans times without changing
its frame counter.
For class C, we have retired the ack_expiry_timer_for_class_c and have
replaced it with another timer which mimics the RX2 closure as in Class
A but doesn't actually close RX2 window. It's just a mechanism by which
the state machine is informed that the you can proceed forward, we have
not received anything in RX2 window either. This is needed as RX2
doesn't timeout in class C (i.e., the radio remains in continuous mode).
In addition to that we need to close any pending timers for Receive
windows after the MIC has passed and the Duplicate counter check has
also been passed.
2018-10-16 12:23:21 +03:00
Hasnain Virk
dc702c2df9
Adding check for ongoing automatic-uplink
...
Before going after an automatic uplink, we should check if there was an
automatic uplink already ongoing, i.e., the ack for the previous
automatic uplink cycle has not been received.
If there is we shouldn't queue the new automatic uplink and wait for
the previous Ack cycle to complete.
2018-10-16 12:23:21 +03:00
Hasnain Virk
1fa2589c1e
Style correction
...
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-10-16 12:23:21 +03:00
deepikabhavnani
e95d08e471
Greentea: Add required header file and namespace element instead add all
...
1. RTOS is needed only for Stack stats
Move+Add all required header files for RTOS into MBED_STACK_STATS_ENABLED
define. Also added 'using namespace'
2. Add heap stats only when MBED_HEAP_STATS_ENABLED
2018-10-15 10:57:24 -05:00
Deepika
f58e103758
Netsocket: Add required header file and namespace element instead add all
2018-10-15 10:57:21 -05:00
Deepika
a47c6b8139
Nanostack: Add required header file and namespace element instead add all
2018-10-15 10:57:21 -05:00
Deepika
1fe633799d
Framework: Add required header file and namespace element instead add all
2018-10-15 10:57:21 -05:00
Cruz Monrreal
a6651b868b
Merge pull request #8317 from yossi2le/add-flashiap-bd-as-default
...
Add FlashIAP block device as default block device for WISE 1570
2018-10-15 10:22:34 -05:00
Cruz Monrreal
00f8ecfb7a
Merge pull request #8336 from sentinelt/socket-closed
...
Fix hard-fault when socket created using accept() is closed
2018-10-15 10:22:17 -05:00
Cruz Monrreal
b666cd68dc
Merge pull request #8299 from hasnainvirk/issue_8285
...
Making cancel_sending() API robust
2018-10-15 10:12:27 -05:00
Cruz Monrreal
a9f43239be
Merge pull request #8295 from AriParkkila/cell-cinterion
...
Cellular: Update Cinterion AT drivers
2018-10-15 10:10:23 -05:00
Cruz Monrreal
ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
...
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Cruz Monrreal
e0e915f5db
Merge pull request #8423 from cmonr/rollup2
...
Rollup PR: Additional doc PRs + lingering need:CI PRs
2018-10-15 10:04:04 -05:00
Ron Eldor
2620508e12
Change Mbed TLS platform error code and value
...
Change error from `MBEDTLS_PLATFORM_HW_FAILED` to
`MBEDTLS_PLATFORM_HW_ACCEL_FAILED` and the value to 0x70,
as the previous value cannot be used as a low level error code.
2018-10-15 16:21:54 +03:00
Michal Paszta
bc2a1c1a71
Fix status sequence and reporting for LWIP stack
2018-10-15 14:35:39 +02:00
Ari Parkkila
a38247dc04
Cellular: Fix Greentea tests for UBLOX_C027
2018-10-15 03:50:46 -07:00
Seppo Takalo
7f39bb4453
Implement TLSSocket
...
Provide TLSSocket implementation. This implementation allows TLSSocket
to wrap around any existing socket. Currently only TLS supported. DTLS
not yet implemented.
Design document also provided with the implementation.
Documentation submitted to Mbed OS handbook.
2018-10-15 13:31:36 +03:00
Russ Butler
784fa91294
Update doxygens to be in sync
...
Make the following changes to doxyfile_options:
-Change CASE_SENSE_NAMES so names of files generated match mbed-os docs
-Change DISABLE_INDEX so navigation bar shows
-Change CLASS_DIAGRAMS so inheritance diagram gets generated
-Change USE_MDFILE_AS_MAINPAGE and add DOXYGEN_FRONTPAGE.md to
FILE_PATTERNS so the correct main page is found and used
-Remove DEVICE_ETH from PREDEFINED since this is no longer relevent
-Change GENERATE_XML and XML_OUTPUT so no xml is generated
-Change SEARCHENGINE to match the docs
Make the following changes in doxygen_options.json:
-Add all non-default values in doxyfile_options to the json
-Break json into 3 groups
1. Values that are the same as doxyfile_options
2. Values that must be different from doxyfile_options
3. Values the are overriden by the docs builder
-Make the doxyegn search directory "INPUT" start in mbed-os rather
than one level above mbed-os.
Finally, rename the BLE doxygen front page so it is not confused with
the mbed-os front page.
2018-10-13 19:55:30 -05:00
Cruz Monrreal II
d73b1a26a2
Merge branch 'feature_bootloader' of ssh://github.com/brianesquilona/mbed-os into brianesquilona-feature_bootloader
2018-10-12 21:46:45 -05:00
Cruz Monrreal II
aaead00218
Merge branch 'ublox-cellular-api' of ssh://github.com/u-blox/mbed-os into u-blox-ublox-cellular-api
2018-10-12 21:46:38 -05:00
Cruz Monrreal II
64f560d5e3
Merge branch 'device_key' of ssh://github.com/deepikabhavnani/mbed-os into deepikabhavnani-device_key
2018-10-12 12:07:26 -05:00
Brian Esquilona
f0a92f63f5
Added bootloader bin license and config for DISCO_L475VG_IOT01A
2018-10-12 11:17:03 -05:00
Amanda Butler
2da54cbb4a
Edit DeviceKey.h
...
Standardize tense across documents, and edit some existing text for phrasing.
2018-10-12 10:58:58 -05:00
deepikabhavnani
6031bc2fb1
Updated doxygen comments
2018-10-12 10:41:52 -05:00
Antti Yli-Tokola
032d1f5709
Update mbed-coap to version 4.7.1
...
Add re-scan routine goto if message is caused user callback
This will fix hard fault when blockwise message sending timeouts. This happens cause same list is manipulated through rx callback.
2018-10-12 17:11:21 +03:00
Kevin Bracey
1ef213ec89
Clean up Thread deprecation warnings
...
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Anna Bridge
8dcc949c63
Merge pull request #8002 from deepikabhavnani/storage_remove_mbed_h
...
Storage: Add required header file and namespace element instead add all
2018-10-12 11:06:35 +01:00
Cruz Monrreal II
dd8e9bb954
Revert "Merge pull request #8183 from hasnainvirk/QOS_impl"
...
This reverts commit 5c675d3688
, reversing
changes made to 2b04a02eb2
.
2018-10-11 16:51:46 -05:00
Cruz Monrreal
3568c54da6
Merge pull request #8180 from kivaisan/quectel_bg96_tcp_socket
...
Cellular: Quectel BG96 TCP socket support
2018-10-11 10:14:25 -05:00
Cruz Monrreal
2c296fcfd6
Merge pull request #8273 from anttiylitokola/mbed-coap-4.7.0
...
Update mbed-coap to version 4.7.0
2018-10-11 10:12:54 -05:00
Cruz Monrreal
f9e5167126
Merge pull request #8258 from mirelachirica/fix_compile_warning_network
...
Cellular: Fix compile warnings for CellularNetwork
2018-10-11 10:11:54 -05:00
Cruz Monrreal
0aed6bb43f
Merge pull request #8256 from yossi2le/fix_warnings_in_blockdevices
...
Fix warnings in block devices
2018-10-11 10:10:55 -05:00
Cruz Monrreal
2a91a91313
Merge pull request #8219 from jeromecoutant/PR_EMAC_SLEEP
...
STM32 EMAC : lock deep sleep
2018-10-11 10:10:32 -05:00
Cruz Monrreal
5c675d3688
Merge pull request #8183 from hasnainvirk/QOS_impl
...
Adding QOS in response to LinkADRReq and fixing class C bugs
2018-10-11 10:09:37 -05:00
Cruz Monrreal
2b04a02eb2
Merge pull request #7902 from orenc17/fat_fix
...
Fix overflow in disk_get_sector_size()
2018-10-11 10:08:46 -05:00
Cruz Monrreal
c43a3f4dfb
Merge pull request #8148 from kivaisan/wise_1570_cellular_tcp
...
Cellular: Quectel BC95 TCP socket support
2018-10-10 15:49:30 -05:00
Cruz Monrreal
21b4ecad1a
Merge pull request #8316 from michalpasztamobica/master
...
unittests: Add tests for netsocket classes
2018-10-10 10:11:12 -05:00
Yossi Levy
b84f377b73
Removing nvstore. adding back the option for configuration as in the external repo
2018-10-10 17:15:46 +03:00
Cruz Monrreal
d58f241b75
Merge pull request #8245 from artokin/nanostack_libservice_update
...
Nanostack libservice update
2018-10-10 08:44:09 -05:00
Cruz Monrreal
70252f8271
Merge pull request #8114 from mirelachirica/registration_params_2
...
Registration parameters as struct
2018-10-10 08:42:06 -05:00
Cruz Monrreal
0cf26eb1cb
Merge pull request #7877 from TomoYamanaka/improve_nv_seed_of_tls
...
Improve the config ajustment script of TLS for ENTROPY_NV_SEED
2018-10-10 08:40:06 -05:00
Oren Cohen
9e337bb600
Restore disk_get_sector_size() to return WORD
2018-10-10 14:57:44 +03:00
Oren Cohen
37b5442656
Fix overflow in disk_get_sector_size()
2018-10-10 14:57:42 +03:00
Yossi Levy
473f8d3f94
Fixing the order of component if more than one is included for a target.
...
Revert deprecation of FlashIAPBlockDevice 2 argument constructor has this was a breaking change. This follows a similar change in the external flashiap-driver repo.
2018-10-10 12:32:08 +03:00
Martin Kojtal
313073ca3e
Merge pull request #7958 from andrewleech/nrf_ble_configs
...
nrf_ble: Expose configuration of max characteristics and descriptors
2018-10-09 10:35:11 -05:00
Martin Kojtal
9c28794b2e
Merge pull request #8210 from JarkkoPaso/master
...
platform timer: Call timer start in enable
2018-10-09 10:34:57 -05:00
Mirela Chirica
ffb9cdb4b3
Cellular: Registration parameters as struct
2018-10-09 10:49:47 +03:00
Mirela Chirica
723e913bcc
Cellular: AT handler read string up to delimiter or stop tag
2018-10-09 10:47:25 +03:00
ccli8
8ef23ff54d
Fix mis-recognize that Windows-formatted SD card has valid partitions
...
For Windows-formatted SD card, it is not partitioned (no MBR), but its PBR has the
same boot signature (0xaa55) as MBR. We would easily mis-recognize this SD card has valid
partitions if we only check partition type. We add check by only accepting 0x00 (inactive)
/0x80 (active) for valid partition status.
2018-10-09 11:06:49 +08:00
Cruz Monrreal
b15d09173e
Merge pull request #8315 from kivaisan/fix_cellular_unittests
...
Fix cellular unittests
2018-10-08 10:24:31 -05:00
Cruz Monrreal
bff4f4be6c
Merge pull request #8268 from mirelachirica/fix_gt_set_credentials
...
Cellular: Fix greentea network set credentials test case
2018-10-08 10:17:05 -05:00
Cruz Monrreal
b2f00fb416
Merge pull request #8179 from kivaisan/add_default_cellular_sim_pin
...
Add missing SIM PIN configuration item
2018-10-08 10:12:41 -05:00
Cruz Monrreal
b153bb3f77
Merge pull request #8057 from korjaa/remove_sim_pin_print
...
Removed cellular PIN code print from debug log.
2018-10-08 10:07:11 -05:00
Deepika
8642ece022
Storage: Add required header file and namespace element instead add all
2018-10-08 07:32:04 -05:00
Michal Paszta
5b4634a1fe
unittests: Added tests for netsocket classes
...
New classes covered with unit tests: SocketAddress, EthernetInterface, EMACInterface, WiFiAccessPoint.
Also added missing namespace in front of mbed::Callback usages.
EMACInterface is covered by the EthernetInterface unit tests.
2018-10-08 14:21:01 +02:00
Martin Kojtal
365d61e4a9
Merge pull request #7304 from cedrickkukela-cd/MTS_DRAGONFLY_L471QG_pull_request_feature_changes
...
Add MTS dragonfly, MTS dragonfly l471
2018-10-08 11:06:23 +02:00
mudassar-ublox
9c2686fda6
error handling for socket create
2018-10-08 12:24:40 +05:00
Ari Parkkila
3784dd066e
Cellular: Fixed AT drivers for Gemalto/Cinterion cellular module to close internet service and profile.
2018-10-08 00:14:29 -07:00
Sławek Piotrowski
9b89ad2fa9
Fix hard-fault when socket created using accept() is closed
...
When socket created using accept() is closed by calling the close()
method, "delete this" is executed which triggers the destructor call
on TCPSocket which in turn calls close() once again. Because _stack
is already 0 this results in a hard-fault.
Add a check that skips the rest of the close() method is the _stack
is already 0.
2018-10-06 21:15:29 +02:00
Martin Kojtal
bc706f0329
Merge pull request #8142 from moranpeker/disable-HW-acceleration
...
Disable MBEDTLS_CONFIG_HW_SUPPORT on STM targets.
2018-10-06 07:46:13 +02:00
Martin Kojtal
5faac0e4ba
Merge pull request #8269 from paul-szczepanek-arm/fix-event-malloc
...
BLE: replace malloc with cordio buffer allocation
2018-10-06 07:44:39 +02:00
Martin Kojtal
943130c1fa
Merge pull request #8233 from AnttiKauppila/lora_unittests
...
Lora unittests
2018-10-05 22:20:47 +02:00
Martin Kojtal
f42aab7715
Merge pull request #8121 from deepikabhavnani/thread_safety_info
...
Add thread safety info to FatFs/LittleFs
2018-10-05 16:56:55 +02:00
Martin Kojtal
41711d5240
Merge pull request #8318 from paul-szczepanek-arm/fix-gatt-server
...
BLE: fix use of invalid cccd index
2018-10-05 16:55:05 +02:00
mudassar-ublox
903b6d6d19
C030_R410M cellular target added
2018-10-05 17:21:51 +05:00
Arto Kinnunen
1dac676833
Merge commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf'
...
* commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf':
Squashed 'features/frameworks/nanostack-libservice/' changes from 2705b9b..5eb2f3f
2018-10-05 13:09:29 +03:00
Martin Kojtal
2247494596
Merge pull request #7978 from jarvte/fix_cellular_no_pin
...
Cellular: state machine and easycellular now return error fast if sim…
2018-10-04 13:38:34 +02:00
paul-szczepanek-arm
366a5018b5
fix using an invalid cccd index
2018-10-03 16:16:41 +01:00
Kimmo Vaisanen
05f0ba8e97
Cellular: Fix AT_CellularStack unittest
...
Missing CellularSocket constructor caused uninitialized values to be used.
Also changed comparision macros to ASSERT_EQ as suggested by GoogleTest guide.
2018-10-03 14:44:34 +03:00
Simon Butcher
fee476e481
Update Mbed TLS README.md followng review
...
Numerous changes to language, grammar, and corrections, following review.
2018-10-03 12:16:50 +01:00
Andrew Leech
a6f33a1a35
nrf_ble: Expose configuration of max number of characteristics and descriptors
2018-10-03 10:54:09 +10:00
Moran Peker
333f087386
Disable MBEDTLS_SHA256_ALT on STM targets.
2018-10-02 14:35:22 +03:00
Hasnain Virk
603ee28098
Making cancel_sending() API robust
...
If the packet is already handed over to the PHY layer, we shouldn't be
able to cancel that particular transmission. In addition to that if the
backoff timer is either not applied or has been deactivated, should end
up in no-op rather than having normal termination. A new error code has
been introduced to cover no-op cases. This error code replaces the
compliance test related error code which is no longer relevant.
clear_tx_pipe() does nothing if:
- The stack cannot cancel TX (already handed over to PHY)
- The backoff timer is not active at all
- The event is disaptched to schedule
stop_sending() will only post process ongoin TX if the pipe was
definitely cleared.
2018-10-02 14:07:52 +03:00
Leon Lindenfelser
f0a5dce37f
Delete commented out merge conflict resolution
2018-10-01 08:25:47 -05:00
Jaakko Korhonen
473ac20017
Removed cellular PIN code print from debug log.
2018-10-01 09:11:28 +03:00
Nir Sonnenschein
f1587b50d7
Merge pull request #8262 from juhoeskeli/mbrblockdevice_align
...
Align MBRBlockDevice writes to underlying BlockDevice write size
2018-09-28 13:23:55 +03:00
Leon Lindenfelser
88c1cd1e37
Add header so cellular_power tests compile and run
2018-09-27 15:49:06 -05:00
Leon Lindenfelser
ff817de28c
Fix broken cellular_device test and delete commented code
2018-09-27 14:21:57 -05:00
paul-szczepanek-arm
88a87518b4
assert instead of error
2018-09-27 17:07:40 +01:00
paul-szczepanek-arm
8f5e2725ae
remove pointless cast
2018-09-27 17:03:31 +01:00
paul-szczepanek-arm
64f93586b5
fix namespace errors
2018-09-27 16:58:19 +01:00
Antti Yli-Tokola
4c692c6b45
Update mbed-coap to version 4.7.0
...
- Add function that can be used to clear the received blockwise payloads for example in the case of a connection error.
- Silence compiler warning when CoAP duplicate detection is enabled.
2018-09-27 18:55:46 +03:00
paul-szczepanek-arm
a0df7fc637
change namespace
2018-09-27 16:36:48 +01:00
Cruz Monrreal
6b85ec7c57
Merge pull request #7953 from davidsaada/david_is_valid_erase_fix
...
Fix is_valid_erase function to use get_erase_size with address
2018-09-27 10:20:56 -05:00
Cruz Monrreal
9bd17d33f3
Merge pull request #7934 from wajahat-ublox/psm_method_typo
...
corrected a typo in AT_CellularPower::opt_power_save_mode
2018-09-27 10:20:44 -05:00
paul-szczepanek-arm
5fee50b53d
removed unusused header
2018-09-27 14:05:58 +01:00
paul-szczepanek-arm
abfd647279
moved SimpleEventQueue
2018-09-27 13:56:38 +01:00
paul-szczepanek-arm
46d19d3732
check WsfBufAlloc
2018-09-27 13:45:36 +01:00
paul-szczepanek-arm
90be8d7807
replace malloc with cirdio buffer allocation
2018-09-27 12:20:00 +01:00
Mirela Chirica
85df0b5cce
Cellular: Fix greentea network set credentials test case
2018-09-27 13:51:49 +03:00
Antti Kauppila
a54c271814
cmake Paths corrected
2018-09-27 11:30:52 +03:00
Antti Kauppila
f6ecb319d0
LoRaMac unittested
2018-09-27 11:30:52 +03:00
Antti Kauppila
bd9066431f
LoRaWANStack unit tested
2018-09-27 11:30:52 +03:00
Antti Kauppila
e07940d5e7
LoRaMacCrypto unittested
2018-09-27 10:49:07 +03:00
Antti Kauppila
f3d402f70e
LoRaPHY unittested, small fixed done during tests
2018-09-27 10:49:07 +03:00
Antti Kauppila
0f8cfd8631
LoRa regions unittested, stubs licences revisited
2018-09-27 10:49:07 +03:00
Antti Kauppila
0f83f08043
More lorawan unit tests added
2018-09-27 10:49:07 +03:00
Leon Lindenfelser
97d6a91eb9
Fix rebase conflict file
2018-09-26 15:54:03 -05:00
Leon Lindenfelser
9791e98575
Fix so building for other targets does not fail
2018-09-26 15:39:42 -05:00
Leon Lindenfelser
5ff0eb9d92
Rebase and changes for Dragonfly nano support
2018-09-26 15:39:42 -05:00
Leon Lindenfelser
55bcf93574
Fixed spacing/tabs and clean up targets.json
2018-09-26 15:37:33 -05:00
cedrick kukela
59dda88e05
changes to support mts dragonfly nano ppp
2018-09-26 15:37:33 -05:00
Juho Eskeli
d32b454c5b
Align writes to blockdevice write size in MBRBlockDevice
2018-09-26 22:43:27 +03:00
Simon Butcher
0fd0de6f31
Update the Mbed TLS README.md
...
Add content missing from the README.md taken from the Yotta/Mbed OS 3 Readme.
2018-09-26 16:33:17 +01:00
Mirela Chirica
265255305a
Cellular: Fix compile warnings for CellularNetwork
2018-09-26 16:39:05 +03:00
Martin Kojtal
37654e546a
Merge pull request #7696 from aashishc1988/wizwiki_iar_error
...
skip the flashsim test if not enough memory cannot be allocated for it.
2018-09-26 15:08:23 +02:00
Yossi Levy
dd065e3be1
Fix warnings in block devices
2018-09-26 14:35:48 +03:00
pingdan32
45ae7f75c6
add entry in config file for total links configuration
2018-09-26 13:25:13 +08:00
Cruz Monrreal
3bec1b75c1
Merge pull request #8229 from mirelachirica/fix_network_and_util_ut
...
Fix network and util ut
2018-09-25 10:35:36 -05:00
Martin Kojtal
a999289365
Merge pull request #8034 from EnsilicaEdd/snr_unsigned_signed
...
Changed the reported SNR from unsigned to signed.
2018-09-25 13:23:14 +02:00
Mirela Chirica
983425e4fc
Cellular: Fix cellular network unit test
2018-09-24 15:15:18 +03:00
Martin Kojtal
f0c6a66285
Merge pull request #8005 from paul-szczepanek-arm/fix-whitelist-gen
...
BLE: fix whitelist generation (set correct address type)
2018-09-24 10:17:46 +02:00
Martin Kojtal
2e049ce035
Merge pull request #8019 from jarvte/fix_crash_in_close_cellularnetwork
...
Cellular: fixed crash when closing CellularNetwork via CellularDevice.
2018-09-24 09:06:34 +02:00
Martin Kojtal
e7cd6ae2a9
Merge pull request #7746 from davidsaada/david_nvstore_test_low_mem
...
Handle NVStore tests in a low memory environment
2018-09-24 08:25:20 +02:00
Cruz Monrreal
73a96a68cf
Merge pull request #8147 from AriParkkila/cell-auth
...
Fix authentication on a cellular network for Access Point Name (APN)
2018-09-22 16:25:35 -05:00
Cruz Monrreal
5eb314f65f
Merge pull request #8164 from OpenNuvoton/nuvoton_iot_m487
...
Support Nuvoton's new target NUMAKER_IOT_M487
2018-09-21 21:31:22 -05:00
Cruz Monrreal
caa4279244
Merge pull request #8023 from SiliconLabs/hotfix/nanostack-default-interface
...
Hotfix for PR #7778 on Silicon Labs targets
2018-09-21 12:50:43 -05:00
jeromecoutant
79bef6e2c8
STM32 EMAC : lock deep sleep
2018-09-21 15:14:38 +02:00
Hasnain Virk
bc976c6545
Fixing coverity findings
...
A couple of the coverity analysis findings are being treated here. For
the rest there will be a separate PR.
2018-09-21 15:55:30 +03:00
Hasnain Virk
0d3ec26b4a
Proper handling of RX1 frequency in rx_config
...
Previously, we weren't filling in RX1 frequecny in rx_window1_config
structure. However, everything worked as in LoRaPHY::rx_config() API
there was a check which filled in correct RX1 frequency.
Now we are filling in RX1 freq. properly while we are computing
parameters for RX1 window.
2018-09-21 15:55:30 +03:00
Hasnain Virk
19e87ceab9
TX post-process for CONFIRMED UL in no-reception case
...
The idea behind the method post_process_no_reception() is to post
process any outgoing TX but we shouldn't do that if a CONFIRMED message
is outgoing and there are still some retries left.
2018-09-21 15:55:30 +03:00
Hasnain Virk
c9d6741212
Making sure that RX slots open after state change
...
After transmission we should change the state before invoking opening of
slots as we may start receiving in the rx slots and the state would
suddenly change from SENDING to RECEIVING without going through the
ACK_WAIT state (in case of CONFIRMED messages). Tests show that after
this slight adjustment, our number of ack retries have significantly
reduced.
2018-09-21 15:55:30 +03:00
Hasnain Virk
94eb4c0bc0
Adding QOS handling and fixing bugs for Class C
...
LinkADRReq mac command can be used by the network server to set a
certain level of QOS using NbTrans field which is applicable to
Unconfirmed traffic only for 1.0.2 spec.
This commit introduces mechanisms to facilitate this QOS. It means to
repeat an outgoing unconfirmed message NbTrans times without changing
its frame counter.
For class C, we have retired the ack_expiry_timer_for_class_c and have
replaced it with another timer which mimics the RX2 closure as in Class
A but doesn't actually close RX2 window. It's just a mechanism by which
the state machine is informed that the you can proceed forward, we have
not received anything in RX2 window either. This is needed as RX2
doesn't timeout in class C (i.e., the radio remains in continuous mode).
In addition to that we need to close any pending timers for Receive
windows after the MIC has passed and the Duplicate counter check has
also been passed.
2018-09-21 15:55:30 +03:00
Hasnain Virk
5bfa7c03ba
Adding check for ongoing automatic-uplink
...
Before going after an automatic uplink, we should check if there was an
automatic uplink already ongoing, i.e., the ack for the previous
automatic uplink cycle has not been received.
If there is we shouldn't queue the new automatic uplink and wait for
the previous Ack cycle to complete.
2018-09-21 15:55:30 +03:00
Hasnain Virk
76814d4847
Style correction
...
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-09-21 15:55:30 +03:00
Jarkko Paso
a3ec9f3982
platform timer: Call timer start in enable
...
This timer was never started and therefore read_us returned always 0 causing bad timings.
2018-09-21 11:53:56 +03:00
Martin Kojtal
0c8aa2823d
Merge pull request #8096 from kivaisan/fix_mac_command_retransmission
...
Lora: Fix sticky MAC command retransmissions
2018-09-21 09:47:47 +02:00
Cruz Monrreal
9346a7e781
Merge pull request #7935 from kivaisan/fix_invalid_mac_command_case
...
LoRa: Stop processing MAC commands if command id is unknown
2018-09-20 10:14:59 -05:00
Martin Kojtal
f3af8267c5
Merge pull request #8074 from hasnainvirk/compliance_testing
...
LoRaWAN: Refactoring compliance test code
2018-09-20 13:10:47 +02:00
Kimmo Vaisanen
19d90bd25e
Lora: Fix sticky MAC command retransmission
...
This commit fixes the bug where sticky MAC commands were duplicated in
send buffer everytime send() was called.
2018-09-20 12:20:17 +03:00
David Saada
999042dda3
Handle NVStore tests in a low memory environment
2018-09-20 11:53:51 +03:00
Martin Kojtal
843b15bfc9
Merge pull request #8145 from JaniSuonpera/NUCLEO_F207ZG
...
Add bootloader image for Nucleo F207ZG
2018-09-20 09:10:09 +02:00
Martin Kojtal
d8ec21a99a
Merge pull request #8054 from kivaisan/fix_ADRAckReq
...
Lora: Fix ADRAckReq
2018-09-19 16:59:08 +02:00
Steven
9a0fc98bdc
Hotfix for PR #7778
...
TB_SENSE_12 would have been left behind by the changes in #7778 . This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
2018-09-19 12:30:21 +02:00
Kimmo Vaisanen
7931378245
Cellular: Quectel BG96 TCP socket support
2018-09-19 13:01:48 +03:00
Kimmo Vaisanen
95114fe8ed
Add missing SIM PIN configuration item
2018-09-19 12:24:46 +03:00
Cruz Monrreal
c356f1f9d4
Merge pull request #7883 from juhaylinen/fix-netsocket-warning
...
netsocket: Fix compiler warning
2018-09-18 11:42:21 -05:00