Commit Graph

1433 Commits (a4ed473afcdd9d9a8733b6a37a40019a49c12c6e)

Author SHA1 Message Date
Vincent Coubard 402a4479d2 BLE: Ensure scan process is stopped before connecting. 2018-11-29 12:22:34 +00:00
Vincent Coubard 78468fb6e3 BLE: Use RANDOM address per default for Advertising, Scan and Connection parameter.
Unlike the public address, the RANDOM address is guaranteed to exist.
If privacy is enabled, it means the controller will generates random resolvable addresses or non resolvable addresses depending on the config.
If privacy is not enabled then the device will use the device's random static address that doesn't change between radio processes.
2018-11-29 12:18:11 +00:00
Vincent Coubard e7ef0b764e BLE: protect event signaling flag from concurent accesses. 2018-11-28 17:25:44 +00:00
Vincent Coubard c23911e3d8 BLE: Fix extraction of advertising element type. 2018-11-28 17:15:54 +00:00
Vincent Coubard c99824892c BLE: Reintroduce changes to address types lost. 2018-11-28 11:29:40 +00:00
Steve Cartmell 353e991410 doc(pan-cordio): Add toolchain version used to compile cordio-ll readme 2018-11-28 10:26:14 +00:00
Steve Cartmell a3bae1c48d doc(pan-cordio): Add readme and license documents for cordio link layer 2018-11-28 10:26:14 +00:00
Donatien Garnier 5a87cfa13d Fix a few more rebasing issues 2018-11-28 10:26:14 +00:00
Donatien Garnier 89aabaec0d Fix some rebasing quirks 2018-11-28 10:26:14 +00:00
Donatien Garnier f9808140df Add number of advertising sets 2018-11-28 10:26:14 +00:00
Donatien Garnier 3ce1d91d35 Amend Nordic HCI driver to support BLE5 features 2018-11-28 10:26:14 +00:00
Steve Cartmell 1b3efa4ccd doc(pan-cordio): Add documentation to README on how to enable Cordio LL 2018-11-28 10:26:14 +00:00
Steve Cartmell 12fdab312e feat(pan-cordio): Add nordic softdevice sources back into repository 2018-11-28 10:26:14 +00:00
Donatien Garnier c68c150bf8 Fix buffer size for NRF Cordio HCI driver 2018-11-28 10:26:13 +00:00
Steve Cartmell 93bf68df0b fix(pan-cordio): Remove erroneous files added after rebasing 2018-11-28 10:26:13 +00:00
Steve Cartmell 1e1486ed18 fix(pan-cordio): Replace the compiled uECC library with the sources 2018-11-28 10:19:08 +00:00
Donatien Garnier 01620b9ba2 Use uECC C99 implementation 2018-11-28 10:19:08 +00:00
Steve Cartmell 0f4ded19ac feat(pan-cordio): Replace NRF51 softdevice BLE stack with cordio 2018-11-28 10:19:08 +00:00
Steve Cartmell f583596fea refactor(pan-cordio): Replace the uECC source with a precompiled library 2018-11-28 10:19:08 +00:00
Steve Cartmell 93267699b8 fix(pan-nordic): Fix memory allocation sizes to resolve NRF52832 issues 2018-11-28 10:19:08 +00:00
Steve Cartmell 815d0d5efc feat(pan-cordio): Add cordio-ll libraries and NORDIC implementation 2018-11-28 10:19:08 +00:00
Steve Cartmell ca2efcdd11 fix(pan-cordio): Reset timer after updating to reduce chance of overflow 2018-11-28 10:19:08 +00:00
Steve Cartmell e5aa84308f refactor(pan-cordio): Use Timer class instead of raw ticker for timing 2018-11-28 10:19:08 +00:00
Steve Cartmell 299ae1d9c6 fix(pan-cordio): Override WSF handler size in a platform specific manner 2018-11-28 10:19:08 +00:00
Steve Cartmell 5782e93a19 fix(pan-cordio): Wrap call to wsfOsReadyToSleep in a critical section
The function wsfOsReadyToSleep should only be called when interrupts are
disabled. Entering a critical section before calling the function fixes
any potential issues.
2018-11-28 10:19:08 +00:00
Steve Cartmell f60c2c9aa8 fix(pan-cordio): Increase the maximum number of supported WSF handlers
NRF52480 fails to complete BLE initialisation due to attempting to set
more event handlers than are supported by the WSF library.

Increasing the number of handlers fixes this issue.
2018-11-28 10:19:08 +00:00
Steve Cartmell 065bad6fa6 fix(pan-cordio): Move stack BLE stack setup to later in initialisation 2018-11-28 10:19:08 +00:00
Vincent Coubard d115e73e7e BLE: Fix iteration on connections in CordioGattServer. 2018-11-27 16:01:56 +00:00
paul-szczepanek-arm 5302a7f599 consistent errors 2018-11-27 15:38:01 +00:00
Vincent Coubard 1a6246f130 BLE: Remove double handling of DM_CONN_OPEN_IND . 2018-11-27 15:30:56 +00:00
Vincent Coubard daee12d623 BLE: Fix set check in GenerigGap::stopAdvertising. 2018-11-27 15:29:52 +00:00
Vincent Coubard 6677fab856 BLE: Move source/Gap.cpp -> source/LegacyGap.cpp 2018-11-27 09:12:28 +00:00
Amanda Butler bbb67a69c8
Edit Types.h
Edit file.
2018-11-26 19:35:43 -06:00
Amanda Butler d00ad8bc96
Edit ScanParameters.h
Edit file, mostly to fix typos.
2018-11-26 19:18:24 -06:00
Amanda Butler fa784c2aff
Edit URIBeaconCOnfigService.h
Edit file for active voice and comma use.
2018-11-26 19:15:31 -06:00
Amanda Butler 08ef3f7209
Edit iBeacon.h
Add commas between two independent clauses joined by a coordinating conjunction.
2018-11-26 19:14:14 -06:00
Amanda Butler 431402c14d
Edit Gap.h
Edit most of file, mostly for U.S. spelling and typos.
2018-11-26 19:08:41 -06:00
Amanda Butler b4c34557d9
Edit Events.h
Edit file for person, capitalization and to fix typos.
2018-11-26 18:47:49 -06:00
Amanda Butler 2e02869173
Edit ConnectionParameters.h
Edit file, mostly for agreement.
2018-11-26 18:40:55 -06:00
Amanda Butler c904ac898a
Edit AdvertisingParameters.h
Edit file, mostly for active voice and U.S. spelling.
2018-11-26 18:32:35 -06:00
Amanda Butler 31a73fc007
Edit AdvertisitngDataSimpleBuilder.h
Edit file, mostly for consistent tense and typos.
2018-11-26 18:17:22 -06:00
Donatien Garnier 5347a8ae4a
Update Duration.h in consistent casing 2018-11-27 00:16:33 +00:00
Amanda Butler 7df90ba3bc
Edit AdvertisingDataBuilder.h
Edit file, mostly to fix typos and standardize hyphen use.
2018-11-26 18:12:56 -06:00
Amanda Butler 451f9aad12
Edit Bounded.h
Edit file, mostly for consistent capitalization and active voice.
2018-11-26 18:01:30 -06:00
Amanda Butler ecf8c7320f
Edit Gap.h
Edit file for capitalization and active voice.
2018-11-26 17:58:50 -06:00
Vincent Coubard a65296e9ee BLE: removed resolved TODO. 2018-11-26 23:44:23 +00:00
Vincent Coubard 7b1e225012 BLE: Fix address name in NRF targets. 2018-11-26 23:36:43 +00:00
Vincent Coubard 66a9e635bd BLE: report correct event type for legacy advertising report. 2018-11-26 23:28:30 +00:00
Vincent Coubard 0c9ce24638 BLE: remove unwanted trace. 2018-11-26 23:16:31 +00:00
paul-szczepanek-arm b552f8c3f0 fix return code for implemented func 2018-11-26 23:06:06 +00:00
Vincent Coubard ef1552a8f5 BLE: report legacy connection event in new event handler. 2018-11-26 23:03:21 +00:00
paul-szczepanek-arm a14f143c85 set active set to false when stoping advertising 2018-11-26 23:00:29 +00:00
paul-szczepanek-arm 4d986bf376 fix is feature enabled condition and made in consistent 2018-11-26 21:11:34 +00:00
Vincent Coubard 56185582aa BLE: Report legacy advertising with new API. 2018-11-26 21:01:14 +00:00
Vincent Coubard 0ef7a40475 BLE: Fix set advertising paylaod dispatch. 2018-11-26 21:00:46 +00:00
Vincent Coubard daf0f429c8 BLE: Fix advertising set issues on legacy controllers. 2018-11-26 19:14:48 +00:00
paul-szczepanek-arm 3ae38ac1e8 always set existing set for legacy handle 2018-11-26 18:53:49 +00:00
Vincent Coubard 7f33145760 BLE: Fix extended advertising check. 2018-11-26 17:12:50 +00:00
Vincent Coubard ac47736259 BLE: Enable cordio extended modules if available. 2018-11-26 16:57:47 +00:00
paul-szczepanek-arm bf535af159 check feature support before calling extended functnions 2018-11-26 16:57:07 +00:00
paul-szczepanek-arm bed7677c81 stop advertising before reseting 2018-11-26 16:51:28 +00:00
paul-szczepanek-arm 6f3a9ca107 legacy handle starts off present in _existing_sets 2018-11-26 16:29:33 +00:00
paul-szczepanek-arm f4a560dace reset advertising sets on reset 2018-11-26 16:25:33 +00:00
paul-szczepanek-arm 2b94b66fd2 deprecate services that are not useless 2018-11-26 15:42:12 +00:00
paul-szczepanek-arm e54e3eaee0 cast no longer needed 2018-11-26 15:42:12 +00:00
Vincent Coubard f71e08ccf1 BLE: tag API uses in GenericGap. 2018-11-26 15:26:24 +00:00
Vincent Coubard 2d63714f2e BLE: Implement connection parameter management in GAP. 2018-11-26 15:25:46 +00:00
Vincent Coubard 89355b9fb0 BLE: Check supervision timeout value in connect. 2018-11-26 15:24:42 +00:00
Vincent Coubard d1b5c8cbb5 BLE: Mark LEGACY_ADVERTISING_HANDLE as active in initialization. 2018-11-26 15:23:53 +00:00
Vincent Coubard 93b6ecfa7e BLE: initialize properly deprecated and non deprecated flags. 2018-11-26 15:23:24 +00:00
Vincent Coubard 3aa91ecbba BLE: return phy_set_t in ConnectionParameters::getPhySet 2018-11-26 15:22:50 +00:00
Vincent Coubard a915748cbe BLE: Fallback to legacy connect when required. 2018-11-26 14:13:07 +00:00
Vincent Coubard 190b9bc125 BLE: Fix address type in ::ble::Gap::connect 2018-11-26 14:13:07 +00:00
paul-szczepanek-arm c9e8501b22 make PHY case consistent 2018-11-26 12:30:57 +00:00
Vincent Coubard d3d93e1ef9 BLE: Improve ble::Gap documentation. 2018-11-26 11:51:00 +00:00
paul-szczepanek-arm bee115c39e replace magic numbers 2018-11-26 11:31:03 +00:00
paul-szczepanek-arm f3a64feaf1 replace magic numbers 2018-11-26 11:26:26 +00:00
paul-szczepanek-arm a03aaa2342 simplify and explain swapping 2018-11-26 11:26:13 +00:00
paul-szczepanek-arm e0e186c831 replace consts with a private enum 2018-11-26 11:21:37 +00:00
paul-szczepanek-arm 528deb168f fix wrong variable being swapped 2018-11-26 11:16:23 +00:00
paul-szczepanek-arm 208b1bd3e9 fix size calculation for UUID data payload 2018-11-26 11:10:39 +00:00
Vincent Coubard 8cbc53617f BLE: Add a simple builder for AdvertisingData. 2018-11-26 10:24:35 +00:00
Vincent Coubard d4a66ae034 BLE: Add an AdvertisingDataParser 2018-11-26 10:24:35 +00:00
Vincent Coubard 09ba26ce4b BLE: Move advertising data types in their own file. 2018-11-26 10:24:35 +00:00
Vincent Coubard be7cc41da4 BLE: doxygen fixes. 2018-11-26 10:24:35 +00:00
Vincent Coubard 0407ee8c81 BLE: move privacy configuration type in ble namespace. 2018-11-26 10:24:35 +00:00
Vincent Coubard dff8f25d49 BLE: Improve Duration documentation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 78d4a9b6c8 BLE: Cleanup enum duplicates in gap/Types.h 2018-11-26 10:24:35 +00:00
Vincent Coubard 884d870b68 BLE: Improve gap/Types.h documentation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 9621b26cab BLE: Reorganize ble::gap documentation group. 2018-11-26 10:24:35 +00:00
Vincent Coubard 27011fd954 BLE: Document ble::ScanParameters. 2018-11-26 10:24:35 +00:00
Vincent Coubard 11b1e91592 BLE: Rework ScanParameters construction. 2018-11-26 10:24:35 +00:00
Vincent Coubard 3119f9488c BLE: Construct a phy_set_t from a phy_t. 2018-11-26 10:24:35 +00:00
Vincent Coubard e130bec6a0 BLE: rework ScanParameters::phy_configuration_t 2018-11-26 10:24:35 +00:00
Vincent Coubard 4db8ddfb90 BLE: fix name of functions in ble::ScanParameters. 2018-11-26 10:24:35 +00:00
Vincent Coubard 936f1c550a BLE: Update ble::Gap documentation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 6b8b1d0b7a BLE: remove minimize fragmentation parameter in Gap. 2018-11-26 10:24:35 +00:00
Vincent Coubard 4058f0908a BLE: Extract computation of minimumSupervisionTimeout. 2018-11-26 10:24:35 +00:00
Vincent Coubard 6cb7645846 BLE: Improve NULL check in ble::AdvertisingDataBuilder implementation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 643fad0162 BLE: Improve code by explaining or textually defining constants 2018-11-26 10:24:35 +00:00
Vincent Coubard 6c09b6c465 BLE: Expose representation type in ble::Duration. 2018-11-26 10:24:35 +00:00
Vincent Coubard ce2460a92a BLE: expose representation type and pointer to the inner storage in SafeEnum. 2018-11-26 10:24:35 +00:00
Vincent Coubard eda3bfb0e3 BLE: Explain magic constant in ble::Gap implementation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 30c6432b5d BLE: Address code formating issue in CordioPalGap implementation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 76416b2f47 BLE: Improve implementation readability of ble::advertising_event_t 2018-11-26 10:24:35 +00:00
Vincent Coubard 27dd08431e BLE: remove ble::pal::extended_advertising_report_event_type_t as it is not used. 2018-11-26 10:24:35 +00:00
Vincent Coubard d32354a7a6 BLE: Fix compiler warning about unused variable. 2018-11-26 10:24:35 +00:00
Vincent Coubard 2a08549b8d BLE: rename ble::Forever into ble::Value. 2018-11-26 10:24:35 +00:00
Vincent Coubard e9637c419a BLE: Remove ble::clamp as it is not used anywhere. 2018-11-26 10:24:35 +00:00
Vincent Coubard b49870d8ae BLE: Fix code formating issues in Gap subsystem. 2018-11-26 10:24:35 +00:00
Vincent Coubard f64b37ba0d BLE: Fix function braces opening in header files. 2018-11-26 10:24:35 +00:00
Vincent Coubard 1b734a46d2 BLE: Improve ble::Gap::EventHandler documentation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 70ec1cf641 BLE: Improve naming consistency of Gap event types. 2018-11-26 10:24:35 +00:00
Vincent Coubard dea2ae9c1f BLE: Exclude Gap Event constructors from documentation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 430777e20b BLE: Update documentation of Gap::Events. 2018-11-26 10:24:35 +00:00
Vincent Coubard 8fc62efbd8 BLE: Improve naming consistency of ble::Gap::EventHandler functions. 2018-11-26 10:24:35 +00:00
Vincent Coubard 6e4e733c1c BLE: Add code example for ble::ConnectionParameters. 2018-11-26 10:24:35 +00:00
Vincent Coubard 49455dcc87 BLE: set the phy as first parameter in ble::ConnectionParameters. 2018-11-26 10:24:35 +00:00
Vincent Coubard 1841f4e75e BLE: Document ble::ConnectionParameters. 2018-11-26 10:24:35 +00:00
Vincent Coubard 8d03d67ae8 BLE: Improve ble::AdvertisingParameters documentation. 2018-11-26 10:24:35 +00:00
Vincent Coubard 52318e464d BLE: rename AdvertisingParameters::*PolicyMode into AdvertisingParameters::*Filter. 2018-11-26 10:24:35 +00:00
paul-szczepanek-arm 2eaec287fb simple scan paramater constructor 2018-11-26 10:24:35 +00:00
paul-szczepanek-arm cd5dabf464 duration added valueInMs 2018-11-26 10:24:35 +00:00
paul-szczepanek-arm c9dcef17dd return func made const 2018-11-26 10:24:35 +00:00
Vincent Coubard 9f39dba429 BLE: Fix constant declaration of ble::AdvertisingParameters. 2018-11-26 10:24:35 +00:00
Vincent Coubard fea3ac87de BLE: Add forever information to ble::adv_duration_t and ble::scan_duration_t 2018-11-26 10:24:35 +00:00
paul-szczepanek-arm 02cf9ea94d moved some funcs to cpp, moved cpp to source folder 2018-11-26 10:24:35 +00:00
Vincent Coubard ba931f1d4c BLE: Document ble::Duration and satelite classes. 2018-11-26 10:24:34 +00:00
Vincent Coubard e602a5f06c BLE: Improve static constant of Range and Duration. 2018-11-26 10:24:34 +00:00
Vincent Coubard 62674e58e6 BLE: Handle forever value in ble::Duration operators. 2018-11-26 10:24:34 +00:00
Vincent Coubard 49f5c7f833 BLE: Fix Bounded constant declaration. 2018-11-26 10:24:34 +00:00
Vincent Coubard 07c05917e0 BLE: Add Duration::forever() function. 2018-11-26 10:24:34 +00:00
paul-szczepanek-arm 7b0cb27427 added type conversion for connection params 2018-11-26 10:24:34 +00:00
paul-szczepanek-arm 7fb863eeb4 missing virtual 2018-11-26 10:24:34 +00:00
Vincent Coubard 80db38c60a BLE: Cleanup bounded and document it. 2018-11-26 10:24:34 +00:00
paul-szczepanek-arm e9c0f587af fix constness to match recent const changes 2018-11-26 10:24:34 +00:00
paul-szczepanek-arm b293426a81 missing overloads 2018-11-26 10:24:34 +00:00
paul-szczepanek-arm ed10543093 missing virtual 2018-11-26 10:24:34 +00:00
paul-szczepanek-arm 1bf5826cdc pull in more inherited overloads 2018-11-26 10:24:34 +00:00
paul-szczepanek-arm e49b5230cc fix missing index 2018-11-26 10:24:34 +00:00
Vincent Coubard 87f36450f5 BLE: return immutable buffer from AdvertisingDataBuilder::getAdvertisingData 2018-11-26 10:24:34 +00:00
Vincent Coubard dfa7749d8a BLE: Split ble/gap/AdvertisingDataBuilder.h into declaration and implementation file. 2018-11-26 10:24:34 +00:00
Vincent Coubard 86dc6d71ee BLE: Fix includes of ble/gap/AdvertisingDataBuilder.h , 2018-11-26 10:24:34 +00:00
Vincent Coubard 0c2efc4dd9 BLE: Fix return value of GenericGap::manageConnectionParametersUpdateRequest. 2018-11-26 10:24:34 +00:00
Vincent Coubard 586aea553b BLE: Move privacy subsystem to ::ble::Gap. 2018-11-26 10:24:34 +00:00
Vincent Coubard c54e0d9862 BLE: Move Gap::StopScan into ::ble::Gap::stopScan . 2018-11-26 10:24:34 +00:00
Vincent Coubard dd2c85d063 BLE: Fix signeness warning in AdvertisingDataBuilder. 2018-11-26 10:24:34 +00:00
Vincent Coubard bc6078eb77 BLE: prevent warning from deprecated API implementation in GenericGap. 2018-11-26 10:24:34 +00:00
Vincent Coubard 4fdb9c7e67 BLE: provide default implementation ::ble::Gap::isFeatureSupported 2018-11-26 10:24:34 +00:00
Vincent Coubard a9fd003803 BLE: Move uses of deprecated Gap functions into isolated and warning free block. 2018-11-26 10:24:34 +00:00