Cruz Monrreal
4c973e3aa0
Merge pull request #6702 from AriParkkila/single-stack
...
Cellular: Fix to prefer IPv6 single stack with fallback to IPv4
2018-04-24 12:16:34 -05:00
Cruz Monrreal
0e86fa2529
Merge pull request #6692 from kivaisan/remove_singleton
...
Lora: Remove singleton pattern
2018-04-24 12:14:05 -05:00
Cruz Monrreal
35bd8b9de1
Merge pull request #6682 from jarvte/fix_cellular_unittests
...
Fixed cellular unittests
2018-04-23 10:57:50 -05:00
Ari Parkkila
b37532addf
Cellular: Fix to prefer IPv6 single stack with fallback to IPv4
2018-04-23 09:57:23 +03:00
Steven Cooreman
c0ee42a6e7
Update to EFR32 15.4 driver
...
* Updates driver library to v2.3.1 (2018q1) for bugfixes and convenience functions
* Provides library in correct format (2-byte wchar_t flag) for compiling with ARMCC (#6695 uncovered by #6577 )
* Reverts to using a statically-allocated packet buffer since malloc is not thread-safe (and the asserts have been turned on)
2018-04-22 23:23:02 -05:00
Christopher Haster
a97a47978a
mbr: Added assertions for overlapping partitions
2018-04-22 08:28:06 -05:00
Vincent Coubard
b0d5ba33bb
BLE: return an error when application tries to turn down encryption.
2018-04-20 15:49:14 +01:00
Vincent Coubard
6a90232b6b
BLE: Update cordio stack binaries.
...
The new build contains a fix related to permission verification of
characteristic that requires signed write.
2018-04-20 14:57:14 +01:00
Kimmo Vaisanen
2b2ce300ea
Lora: Remove singleton construction of LoRaWANStack
...
After changing LoRaMacCrypto as C++ class, we no longer have static variables
in LoRa implementation. Therefore singleton pattern can be removed.
2018-04-20 16:01:55 +03:00
Kimmo Vaisanen
b933cc6aeb
Lora: Change LoRaCrypto to a C++ class
...
In order to get rid of static variables, LoRaCrypto functionality is now
in a C++ class.
2018-04-20 16:01:49 +03:00
Vincent Coubard
cbb33ea938
BLE: Add comments to GenericSecurityManager::on_identity_list_retrieved.
2018-04-20 10:22:56 +01:00
Vincent Coubard
0b92397840
BLE: Fix flag IRK stored in Memory security DB.
2018-04-20 10:22:13 +01:00
paul-szczepanek-arm
d1f3e4fd27
don't require master sends keys for signing key
2018-04-20 09:33:54 +01:00
Donatien Garnier
f9b371fc0f
Handle required BLE5 softdevice commands
2018-04-19 09:40:41 -07:00
Donatien Garnier
aeab2ecbbf
Fix potential race condition in nRF5xn.cpp
2018-04-19 09:40:41 -07:00
Marcus Chang
97426d63e9
NRF52 BLE: Fix GCC C++11 include error
...
Change <memory> include to <new>
From: d001fb1c66
2018-04-19 09:40:41 -07:00
Donatien Garnier
64baf717e8
Upgrade NRF52 BLE API to version 5
...
* Add NRF_SD_BLE_API_VERSION=5 macro to MCU_NRF52832 target
* Added initial Softdevice v5 API support for nRF5XPalGattClient.cpp
* Added initial Softdevice v5 API support for nRF5xGap.h
* Added initial Softdevice v5 API support for nRF5xGattServer.cpp
* Make sure the ah() hash function used by the security manager is declared with C linkage
* Removed 'ARM porting pending' checks in Nordic SDK
* Added BLE configuration to mbed_lib.json for NRF52x targets
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in btle.cpp; adopted polling dispatch model
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in nRF5xn.cpp
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in nRF5xGap.cpp
* Added const qualifier to hwCallbacks's p_ble_evt parameter in nRF5xGattServer
* Add workaround to enable Radio Notification module from Nordic SDK
* Disabled SWI1 interrupt manually from SWI driver module
* Added missing include directive for "nrf_nvic.h" in ble_radio_notification.c
* Set correct number of custom UUIDs
* Adjust Softdevice RAM requirements for NRF52832/S132
* RAM settings for the application were adjusted as follow:
* Start: 0x20003800
* Size: 0xC800
* Adjust Softdevice RAM requirements for NRF52840/S140
* RAM settings for the application were adjusted as follow:
* Start: 0x20003700 (was 0x20003000)
* Size: 0xC900
* Added 3dBm as a permitted TX Power value for NRF52832
* Fix address type recovery in GAP
* Return min non-connectable adv interval compatible with infrastrcture's expectations
* Moved BLE driver from TARGET_SDK_14_2/FEATURE_BLE to TARGET_SDK_14_2/TARGET_SOFTDEVICE_COMMON/ble
2018-04-19 09:40:41 -07:00
Martin Kojtal
951e70f36f
Merge pull request #6604 from geky/lfs-fix-lookahead-trust
...
littlefs: Fix some issues with lookahead trust
2018-04-19 17:27:19 +02:00
Martin Kojtal
13913c7301
Merge pull request #6628 from kivaisan/mlme_indication_and_auto_uplink_config
...
Lora: Make automatic uplink message configurable
2018-04-19 17:25:33 +02:00
Martin Kojtal
7f98f5b796
Merge pull request #6652 from jarvte/update_doxygen_for_deprecated_apis
...
Cellular: Updated doxygen for deprecated API's.
2018-04-19 17:23:53 +02:00
Martin Kojtal
a37ba4b3ab
Merge pull request #6614 from pauluap/compiler_warning_macro_expression
...
Macro expansion leads to a bare expression
2018-04-19 17:22:52 +02:00
Teppo Järvelin
6a2eefba9c
Cellular: fixed null pointer bug.
...
Null pointer could have been called after stop() in cellular state machine.
2018-04-19 14:30:33 +03:00
Martin Kojtal
cbb10335b4
Merge pull request #6663 from kjbracey-arm/nshal-static-removal
...
Use SingletonPtr in Nanostack HAL
2018-04-19 12:43:08 +02:00
Teppo Järvelin
025e0dfc49
Cellular: moved one function in cellularnetwork to public as it was accidently set as protected.
2018-04-19 13:40:33 +03:00
Teppo Järvelin
5ebdb439af
Cellular: fixed cellular unit tests and one bug which was found while fixing.
2018-04-19 13:35:53 +03:00
Martin Kojtal
9cc4302c51
Merge pull request #6629 from jarvte/add_select_plmn_to_cellularfsm
...
Cellular: add plmn for CellularConnectionFSM
2018-04-19 12:07:20 +02:00
Martin Kojtal
15cac12f7e
Merge pull request #6660 from marcuschangarm/fix-greentea
...
Enable flow control in Greentea
2018-04-19 09:25:31 +02:00
Martin Kojtal
c0f0a8e61f
Merge pull request #6653 from kjbracey-arm/lwip-ticks
...
Stop lwIP using us_ticker
2018-04-18 14:17:54 +02:00
Paul Szczepanek
a99a4b8593
Merge pull request #33 from pan-/fix-cordio-addresses-type
...
BLE: Handle new addresses type in GenericGap.
2018-04-18 11:34:13 +01:00
Teppo Järvelin
55f4360680
Cellular: review fixes to cellularfsm and cellularnetwork.
2018-04-18 12:35:38 +03:00
Kevin Bracey
123c182033
Use SingletonPtr in Nanostack HAL
...
Avoid static data/code overhead when Nanostack HAL isn't in use.
Preparation for removal of FEATURE_COMMON_PAL.
2018-04-18 10:40:56 +03:00
Kimmo Vaisanen
d336ceeee8
Lora: Make automatic uplink message configurable
...
Currently lora stack will automatically send an empty uplink message to lora gateway in case of:
- Node received message with pending bit set.
- Node received MAC command which requires instant response (sticky MAC command)
- Node received confirmed message in class C mode
This commit makes this configurable via config item
"automatic-uplink-message": {
"help": "In case of pending bit, class c confirmed message or sticky MAC command, stack will automatically send empty uplink message",
"value": true
}
Default value is true. If sending an empty message fails, stack will send event AUTOMATIC_UPLINK_ERROR application.
If automatic uplink sending is disabled, stack will send application UPLINK_REQUIRED -event to indicate
application should issue a new uplink to gateway as soon as possible.
2018-04-18 09:29:20 +03:00
Marcus Chang
595a98b313
Enable flow control in Greentea
...
Flow control is enabled in Greentea for targets that has
console-uart-flow-control set.
2018-04-17 14:16:31 -07:00
Amanda Butler
a83745bcdd
Copy edit UARTCellularInterface.h
...
Copy edit file for grammar.
2018-04-17 11:51:24 -05:00
Amanda Butler
8389bbfc61
Copy edit PPPCellularInterface.h
...
Copy edit file for grammar.
2018-04-17 11:49:20 -05:00
Amanda Butler
0f8a2c75e7
Copy edit OnboardCellularInterface.h
...
Copy edit file for grammar.
2018-04-17 11:44:28 -05:00
Amanda Butler
5835d83efa
Copy edit CellularInterface.h
...
Copy edit for grammar.
2018-04-17 11:41:59 -05:00
Vincent Coubard
169e579de7
BLE: Handle new addresses type in GenericGap.
2018-04-17 17:05:41 +01:00
Cruz Monrreal
853384a5ca
Merge pull request #6627 from TeroJaasko/nanostack_hal_timer_shortcut
...
Nanostack hal timer shortcut
2018-04-17 10:55:26 -05:00
Cruz Monrreal
4522405d06
Merge pull request #6588 from hasnainvirk/base_structs
...
[IOTCELL-741] Separating public data structures
2018-04-17 10:54:45 -05:00
Cruz Monrreal
259f9fd877
Merge pull request #6570 from jarvte/add_cellular_detach
...
Cellular: add detach from the network
2018-04-17 10:54:09 -05:00
paul-szczepanek-arm
f56f57bf15
reorder enum to add new values at the end
2018-04-17 16:25:35 +01:00
Vincent Coubard
951a6be4c8
BLE: retrieve and fill resolving list at GenericSecurityManager startup.
2018-04-17 15:58:21 +01:00
Vincent Coubard
ede3d43743
BLE: Add function to querry the list of identity addresses present in the SecureDB.
2018-04-17 15:57:30 +01:00
Vincent Coubard
77b1903634
BLE: Add bonded device to resolving list at the end of bonding.
2018-04-17 14:16:35 +01:00
Vincent Coubard
ae8d5b4de1
BLE: Implement identity retrieval in secure DB.
2018-04-17 14:15:28 +01:00
Vincent Coubard
f905d2a4d4
BLE: Improve DB entry lookup.
...
The DB entry lookup now looks at the identity address and/or connection address to find a DB entry associated to an address.
If the entry has not been found in the DB and a new entry is returned then the connection address is not stored for private addresses.
2018-04-17 14:14:53 +01:00
Vincent Coubard
a3bb18d724
BLE: store identity address type in DB.
2018-04-17 14:11:05 +01:00
Vincent Coubard
06e0aa3440
BLE: flag that irk has been stored in the security entry.
2018-04-17 14:10:19 +01:00
Vincent Coubard
6fc74fbc44
BLE: Fix MemorySecurityDB constructor warning.
2018-04-17 14:09:00 +01:00
Vincent Coubard
15fa3bfd37
BLE: Add a function to retrieve a device identity.
2018-04-17 14:08:01 +01:00
Vincent Coubard
e8041510a6
BLE: Add a flag that indicate if the identity address is public or not.
2018-04-17 14:07:19 +01:00
Vincent Coubard
ab6821aab8
BLE: Add a flag indicating if irk is stored in the distribution flags.
2018-04-17 14:06:47 +01:00
Vincent Coubard
9643b57159
BLE: Remove flag SecurityDistributionFlags_t::local_address_is_public
...
This flag was not used and not useful.
2018-04-17 14:06:00 +01:00
Vincent Coubard
dfbf383614
BLE: Fix const correctness of ::Gap::getRandomAddressType
2018-04-17 14:03:57 +01:00
Vincent Coubard
51e1c76b4a
BLE: Set default mac address to all 00.
2018-04-17 14:03:20 +01:00
Kevin Bracey
e7206cdc8e
Stop lwIP using us_ticker
...
lwIP was using us_ticker unnecessarily, complicating the code and
potentially causing grief with power saving, and possible glitches
on timer wrap. Switch it to use the RTOS tick count.
2018-04-17 12:40:04 +03:00
Teppo Järvelin
3b1c8c0a94
Cellular: Updated doxygen for deprecated API's.
2018-04-17 12:30:16 +03:00
Teppo Järvelin
1990f63382
Cellular: fixed state machine after rebase.
2018-04-17 10:24:19 +03:00
Teppo Järvelin
e78e1d28db
Cellular: check plmn against network to verify correct network and don't try to register again if we are are already in correct nw.
2018-04-17 10:16:32 +03:00
Teppo Järvelin
e4c37f2275
Cellular: plmn used when registering can be given for CellularConnectionFSM.
2018-04-17 10:16:32 +03:00
Vincent Coubard
b3c871c960
BLE: Implement privacy on Nordic targets.
2018-04-16 18:18:05 +01:00
Vincent Coubard
2a9d80c5f0
BLE: Change nRF5xSecurityManager::resolve_address signature
...
Return the resolving list entry instead of accepting in parameters.
2018-04-16 18:18:04 +01:00
Vincent Coubard
a18283d897
BLE: change nRF5xSecurityManager::get_resolving_list return
...
It now returns a resolving list entry.
2018-04-16 18:18:04 +01:00
Vincent Coubard
fb680db621
BLE: Implement resolving list in Nordic PAL security manager
2018-04-16 18:18:04 +01:00
Vincent Coubard
365f3d2527
BLE: Add ah in Nordic CryptoToolbox.
2018-04-16 18:18:04 +01:00
Vincent Coubard
a7f2384e10
BLE: Add default privacy configuration
2018-04-16 18:18:04 +01:00
Cruz Monrreal
e2567e5dad
Merge pull request #6599 from jeromecoutant/PR_WARNING
...
STM32 compilation warning issues
2018-04-16 10:41:36 -05:00
Cruz Monrreal
c867934178
Merge pull request #6613 from pauluap/compiler_warning_macro_expansion_constant_boolean
...
Macro expansion results in a constant boolean expression
2018-04-16 10:35:27 -05:00
Cruz Monrreal
7188c8a4b8
Merge pull request #6620 from jarvte/cellular_fixing_at_unit_tests
...
Cellular: fixed athandler unit tests.
2018-04-16 10:34:58 -05:00
Cruz Monrreal
7f9e69d491
Merge pull request #6632 from TeemuKultala/error_messages
...
cellular: Error messages
2018-04-16 10:34:04 -05:00
paul-szczepanek-arm
9a9167602d
moved init code into non-const for clarity
2018-04-16 15:58:03 +01:00
paul-szczepanek-arm
12899b1e09
fix const induced recursive call
2018-04-16 15:34:15 +01:00
paul-szczepanek-arm
6b67a6d0a6
missing deref after signature change
2018-04-16 15:06:37 +01:00
Teemu Kultala
0caef1b8a4
cellular: trace errors only if tracing enabled
2018-04-16 09:15:32 +03:00
Cruz Monrreal
df47efc4ca
Merge pull request #6626 from jarvte/activate_pdp_context_state_to_cellularconnectionfsm
...
Cellular: Separated context activation in CellularConnectionFSM.
2018-04-13 18:51:50 -05:00
Cruz Monrreal
a2899367d7
Merge pull request #6618 from anttiylitokola/master
...
Update mbed-coap to version 4.4.2
2018-04-13 18:39:08 -05:00
Cruz Monrreal
4343253533
Merge pull request #6600 from hasnainvirk/fix_au915
...
[IOTCELL] Setting up channels for AU915
2018-04-13 10:47:21 -05:00
Paul Thompson
8e7615087a
Switch to using ip_addr_isany_val
2018-04-13 05:08:29 -07:00
Tero Jääskö
a23b7cffea
nanostack-hal: eventloop: silence compiler warning for unused variable
...
Compiler reminded that a variable declaration was left behind when
the code using it was put behind #ifdef. Add the missing #ifdef.
Warning being fixed:
---8<---8<----
[Warning] ns_event_loop.c@44,0: #177-D: variable "event_thread_id"
was declared but never referenced
2018-04-13 13:49:22 +03:00
Tero Jääskö
b710f08b3a
nanostack-hal: timer: conditionalize the use of high pri event thread
...
nanostack-hal.critical-section-usable-from-interrupt -tunable was
previously added to optionally make critical section code interrupt safe.
The IRQ safe critical section is a prequisite for interrupt safe timer
callbacks.
The same flag can be used to enable calling of the timer callbacks
directly from the timer interrupt context, without bouncing them via
event thread. This removes the code and RAM consumed by EventQueue
and the thread serving the high priority events.
If the system does not have any dependencies on mbed_shared_queues,
by setting this flag the static RAM usage is now further reduced
by ~1600 bytes and code size by 4KB.
Note: the default behavior is not changed, one needs to override the
"nanostack-hal.critical-section-usable-from-interrupt" to have "true".
2018-04-13 13:49:15 +03:00
Teemu Kultala
c597d8447c
cellular: sim pin setting
2018-04-13 12:33:43 +03:00
Hasnain Virk
c34b5e6d6f
[IOTCELL-741] Separating public data structures
...
Any data structure used in LoRaWANBase class should be available
in a separate header in order to make the code easy to port and
easy to read as the developer doesn't need to know about all the
internal data structures being used in Mbed LoRaWAN stack.
2018-04-13 10:41:06 +03:00
Teemu Kultala
7b6208c0db
cellular: error message changes
2018-04-13 09:01:57 +03:00
Teppo Järvelin
94ecc4567b
Cellular: Separated context activation in CellularConnectionSFM.
2018-04-13 08:28:18 +03:00
Cruz Monrreal
68ebbb0637
Merge pull request #6569 from kivaisan/LORAWAN_FEATURE_BRANCH
...
Lora: small fixes
2018-04-12 18:43:01 -05:00
Cruz Monrreal
94103f9306
Merge pull request #6586 from kivaisan/new_receive_method
...
Lora: Introduce new receive API which returns port and flags
2018-04-12 18:32:12 -05:00
Cruz Monrreal
e1a63f9046
Merge pull request #6587 from AnttiKauppila/include_fix
...
LoRa: Internal include paths corrected
2018-04-12 18:31:28 -05:00
Cruz Monrreal
7f671960e8
Merge pull request #6595 from OpenNuvoton/nuvoton_fix_nvstore
...
Fix typo with NVStore
2018-04-12 18:31:02 -05:00
Paul Thompson
449541c464
Explicitly ignore return value or bare expression (macro expands to a number)
...
Compile: lwip_stack.c
In file included from ../features/FEATURE_LWIP/lwip-interface/lwip_stack.c:41:0:
../features/FEATURE_LWIP/lwip-interface/lwip_stack.c: In function 'mbed_lwip_bringup_2':
../features/FEATURE_LWIP/lwip-interface/ppp_lwip.h:58:44: warning: statement with no effect [-Wunused-value]
#define ppp_lwip_disconnect() ERR_IF
^
../features/FEATURE_LWIP/lwip-interface/lwip_stack.c:858:21: note: in expansion of macro 'ppp_lwip_disconnect'
ppp_lwip_disconnect();
^~~~~~~~~~~~~~~~~~~
../features/FEATURE_LWIP/lwip-interface/ppp_lwip.h:58:44: warning: statement with no effect [-Wunused-value]
#define ppp_lwip_disconnect() ERR_IF
^
../features/FEATURE_LWIP/lwip-interface/lwip_stack.c:875:21: note: in expansion of macro 'ppp_lwip_disconnect'
ppp_lwip_disconnect();
^~~~~~~~~~~~~~~~~~~
2018-04-12 09:45:25 -07:00
Paul Szczepanek
d8f5100822
Merge pull request #30 from pan-/sm-privacy
...
BLE: Add Gap privacy interfaces.
2018-04-12 14:59:27 +01:00
Teppo Järvelin
6533c98983
Cellular: fixed athandler unit tests.
2018-04-12 16:20:40 +03:00
Teppo Järvelin
0b5fae3670
Cellular: added deprecation note for parameter timeout in set_attach.
2018-04-12 13:37:49 +03:00
Teppo Järvelin
9b0b92bb1c
Cellular: added detach from the network.
2018-04-12 13:37:49 +03:00
Vincent Coubard
90c85955ad
BLE: Fix GAP privacy related signatures.
2018-04-12 11:04:44 +01:00
Vincent Coubard
2811e00868
BLE: Fix Gap privacy related documentation
2018-04-12 10:37:13 +01:00
jeromecoutant
2d0dce1db5
STM32F7 : correct compilation warnings
2018-04-12 10:55:02 +02:00
jeromecoutant
2fcf8d8990
STM32F4 : correct compilation warnings
2018-04-12 10:52:21 +02:00
jeromecoutant
4e9e9f5c62
STM32F2 : correct compilation warnings
2018-04-12 10:51:18 +02:00
Antti Yli-Tokola
1feb700267
Update mbed-coap to version 4.4.2
...
Contains one error fix:
IOTCLT-2469 CoAP UDP retransmission does not work for blocks after first one for requests (Eg. registration POST)
NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-04-12 10:04:50 +03:00
Christopher Haster
9e03b24120
littlefs: Fixed lookahead overflow and removed unbounded lookahead pointers
...
As pointed out by davidefer, the lookahead pointer modular arithmetic
does not work around integer overflow when the pointer size is not a
multiple of the block count.
To avoid overflow problems, the easy solution is to stop trying to
work around integer overflows and keep the lookahead offset inside the
block device. To make this work, the ack was modified into a resetable
counter that is decremented every block allocation.
As a plus, quite a bit of the allocation logic ended up simplified.
2018-04-11 22:34:40 -05:00
Christopher Haster
47bee2343c
littlefs: Fixed issue with lookahead trusting old lookahead blocks
...
One of the big simplifications in littlefs's implementation is the
complete lack of tracking free blocks, allowing operations to simply
drop blocks that are no longer in use.
However, this means the lookahead buffer can easily contain outdated
blocks that were previously deleted. This is usually fine, as littlefs
will rescan the storage if it can't find a free block in the lookahead
buffer, but after changes that caused littlefs to more conservatively
respect the alloc acks (e611cf5), any scanned blocks after an ack would
be incorrectly trusted.
The fix is to eagerly scan ahead in the lookahead when we allocate so
that alloc acks are better able to discredit old lookahead blocks. Since
usually alloc acks are tightly coupled to allocations of one or two blocks,
this allows littlefs to properly rescan every set of allocations.
This may still be a concern if there is a long series of worn out
blocks, but in the worst case littlefs will conservatively avoid using
blocks it's not sure about.
Found by davidefer
2018-04-11 14:41:01 -05:00
Paul Szczepanek
9be8837f77
Merge pull request #29 from paul-szczepanek-arm/no-sign-when-encrypted
...
check encryption before signing
2018-04-11 15:51:02 +01:00
Vincent Coubard
8643fd55ed
BLE: Add stub for signing API in Nordic pal security manager.
2018-04-11 14:22:51 +01:00
Vincent Coubard
1f02913a2c
BLE: Add Gap privacy interfaces.
...
This commit adds API to enable and configure the device privacy.
It deprecates address random types present in Gap::AddressType as these types are not appropriate for scan reports, connection initiation and the connection event. Now user should use the function Gap::getRandomAddressType to find the type of a random address.
The function gap::setAddress is deprecated as it is not portable and can colide with privacy.
2018-04-11 14:18:42 +01:00
Hasnain Virk
ec34796fd5
[IOTCELL] Setting up channels for AU915
...
Bug was reported by @tpet93 and it was correctly diagnosed that channels
were not being set in the phy_params structure. This commit fixes the bug
and sets up channels correctly.
2018-04-11 15:41:22 +03:00
paul-szczepanek-arm
1e6455da0b
check encryption before signing
2018-04-11 13:37:04 +01:00
paul-szczepanek-arm
3aaedf6f48
fixed missed function rename
2018-04-11 12:34:57 +01:00
Teppo Järvelin
9c185d9b63
Cellular: Fixing to skip greentea test if sim pin is not configured.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
b3226acbbf
Cellular: Fixed rebase error.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
f7f21dc377
Cellular: review fixes and fixed unit tests.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
12e1f07150
modified at timeout while doing attach and connect as it might take up to one minute and at timeout was 10s.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
31428533ba
Fixed missing doxygen param.
2018-04-11 09:38:13 +03:00
Mirela Chirica
9531bbeaf5
BC95 fixes
2018-04-11 09:38:13 +03:00
Teppo Järvelin
c036b6698d
Doxygen fixes for copy-paste errors.
2018-04-11 09:38:13 +03:00
Ari Parkkila
d828959b87
Cellular: Greentea test timeouts increased
2018-04-11 09:38:13 +03:00
Teppo Järvelin
dcdb7a5da2
Fixed state machine to accept roaming as valid registration.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
c82fd31735
Removed double attach from EasyCellularConnection.
2018-04-11 09:38:13 +03:00
Ari Parkkila
8c019e6c83
Cellular: Remove excessive destructor declaration to fix compile error
2018-04-11 09:38:13 +03:00
Ari Parkkila
d7cabe2183
Cellular Greentea tests fixed
2018-04-11 09:38:13 +03:00
ccli8
d52b502fea
Fix typo with NVStore
2018-04-11 14:34:54 +08:00
Teppo Järvelin
ac9b882049
Fixed bug in state machine registaring phase.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
6f3eebcd36
Fixed possible crash and removed trace from greentea.
2018-04-11 09:31:44 +03:00
Ari Parkkila
ea9869e330
Cellular: Greentea tests for UDP socket
2018-04-11 09:31:44 +03:00
Teppo Järvelin
f6a0403c82
Fixed build by removing unnecessary include.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
af2890da03
Improved registration phase in state machine.
2018-04-11 09:31:44 +03:00
Ari Parkkila
6072407ec9
Cellular: async FSM updates
2018-04-11 09:31:44 +03:00
Teppo Järvelin
84b445f51c
Fixed coverity warnings for class ATHandler and removed unnecessary assert from state machine.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
54ab974846
Fixed coverity warnings for targets folder. Also fixed one bug while copying sim.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
fa61f094db
Fixed coverity warning for class CellularUtil.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
12b0bc4a36
Fixed coverity warnings for AT_CellularStack.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
af0de8ece0
Fixed coverity warnings for class AT_CellularDevice.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
0ebfa35d7b
Fixed coverity warnings for class CellularConnectionFSM
2018-04-11 09:31:44 +03:00
Teppo Järvelin
f6be35c0f2
Fixed coverity warnings for AT_CellularSMS.cpp
2018-04-11 09:31:44 +03:00
Teppo Järvelin
89843246ac
Separated context activation from connect, increased stack size to 2048 to avoid stack underflows and changed connection callback call.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
f0026e4c48
review fixed and some minor improvements.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
b400d18a0c
Wait for modem ready signal in startup sequence.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
231458dc36
Picked Ari's changed to reduce stack size. Removed device info printing from state machine.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
d1f2e91e93
Working version of async registration.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
2b14a9ee5f
temp
2018-04-11 09:31:44 +03:00
Teppo Järvelin
702efc1de5
Temp commit, not compiling...
2018-04-11 09:31:44 +03:00
Teppo Järvelin
c26311b071
async works. Retry logic needs refining.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
83ea9be5f5
temp commit while changing work...
2018-04-11 09:31:44 +03:00
Teppo Järvelin
1661fc2744
Modified state machine, added cellular state and callback.
2018-04-11 09:31:44 +03:00
Cruz Monrreal
1c6d485da0
Merge pull request #6572 from TeemuKultala/at_send_wait
...
cellular: ATHandler send delay
2018-04-10 17:58:00 -05:00
Paul Szczepanek
6c900642e5
Merge pull request #28 from paul-szczepanek-arm/signing-counter
...
sign counter added
2018-04-10 17:06:14 +01:00
paul-szczepanek-arm
1ba920a338
missing init
2018-04-10 16:47:29 +01:00
paul-szczepanek-arm
70067105d6
class in header
2018-04-10 16:42:43 +01:00
paul-szczepanek-arm
a2484b63b0
Signing event monitor proxy to bind both server and client
2018-04-10 14:58:29 +01:00
Martin Kojtal
495ae06c70
Merge pull request #6509 from k-stachowiak/nvseed-check
...
Add an NV_SEED test to the config adjustment script
2018-04-10 14:38:47 +02:00
Antti Kauppila
67157fc3bd
LoRa: Internal include paths corrected
2018-04-10 14:04:18 +03:00
Kimmo Vaisanen
19883f12f8
Lora: Introduce new receive API which returns port and flags
...
This is a fix for issue #6389 .
Currently when application receives RX_DONE event from stack, it has to provide the correct port
value to receive method in order to read the received message. The problem is that current
API does not provide any way to know in to which port message was received.
This commit introduces a new receive() method, which instead of checking these values, will return
them to application.
2018-04-10 13:04:23 +03:00
Kimmo Vaisanen
01fd8804df
Fix Coverity warning
...
Fixed Coverity warning "stored value is overwritten before it can be used".
2018-04-10 10:19:03 +03:00
Kimmo Vaisanen
10c269bcfa
Add some debug traces
2018-04-10 10:19:03 +03:00
Kimmo Vaisanen
f6decc0131
Initialize mcps_indication status
...
_mcps_indication.status is not initialized properly and it can cause incorrect
status value to be returned.
2018-04-10 10:13:40 +03:00
paul-szczepanek-arm
4fff20583d
sign counter kept track by the class using it
2018-04-09 17:49:54 +01:00
paul-szczepanek-arm
deeb0ea7e0
redundant store for sign counter
2018-04-09 15:11:26 +01:00
paul-szczepanek-arm
637dcb9bc8
missing *
2018-04-09 15:10:25 +01:00
paul-szczepanek-arm
55d3423a5e
typedef uint32_t
2018-04-09 13:35:17 +01:00
Kevin Bracey
96610a6aed
LoRa: Improved region macro handling
2018-04-09 15:22:48 +03:00
paul-szczepanek-arm
be912ded5b
normalised the getters const insanity
2018-04-09 12:14:52 +01:00
Teemu Kultala
328919c852
cellular: doxygen correction
2018-04-09 14:09:44 +03:00
Teemu Kultala
d7960620b6
cellular: ATHandler send delay
2018-04-09 13:46:40 +03:00
Antti Kauppila
1a86bb3604
Removed default values from internal functions
...
- Also removed useless else from loraphy_target.h
2018-04-09 13:30:08 +03:00
Antti Kauppila
db167af3c1
LoRa: Fixed doxygen error, enabled commented out code
2018-04-09 11:48:03 +03:00
Antti Kauppila
fa062fff76
LoRa: Moved connect logic from LoRaWANStack to LoRaMac class
...
- Internal change only
2018-04-09 11:10:40 +03:00
Antti Kauppila
1310392d1b
LoRa: Removed unneeded function and cleaned up some code
2018-04-09 11:10:40 +03:00
Antti Kauppila
d1bbd21e01
LoRa: Improved handling of region selection
...
- This implements IOTCELL-697
- This touches API, but does not break it, old ones still work in a same manner!
2018-04-09 11:10:40 +03:00
Vincent Coubard
f53a0e4906
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into sc-nordic
2018-04-09 09:09:01 +01:00
Martin Kojtal
65ac615d2d
Merge pull request #6557 from AnttiKauppila/IOTCELL-754
...
LoRa: Fixed cflist decoding issue
2018-04-06 16:40:18 +02:00
Martin Kojtal
f5385e7a14
Merge pull request #6524 from forGGe/fix_address_parsing_
...
Fix IPv4 address parsing due to not-so-portable scanf modifier
2018-04-06 12:26:37 +02:00
Martin Kojtal
f331ac34c4
Merge pull request #6402 from u-blox/cellular_test_target
...
Renaming Ublox library for mbed cellular framework
2018-04-06 12:19:58 +02:00
Antti Kauppila
6ef331b9db
LoRa: Fixed cflist decoding issue
...
- This fixes defect IOTCELL-754
2018-04-06 12:54:01 +03:00
Martin Kojtal
02d4631c13
Merge pull request #6528 from anttiylitokola/mbed_coap_4.4.1
...
Update mbed-coap to version 4.4.1
2018-04-06 10:05:39 +02:00
paul-szczepanek-arm
57149b69e4
monitor for signing events and set local counter
2018-04-04 19:24:00 +01:00
paul-szczepanek-arm
1d74dfa1f9
redundant funcs removed
2018-04-04 18:02:16 +01:00
Vincent Coubard
dcff810457
BLE: replace byte_array_t::buffer with byte_array_t::data
2018-04-04 17:20:08 +01:00
paul-szczepanek-arm
acfc5b218d
set cordio csrk and counter
2018-04-04 17:16:34 +01:00
paul-szczepanek-arm
2e1c5fc123
completely redundant
2018-04-04 17:16:16 +01:00
Cruz Monrreal
75cb4d7512
Merge pull request #6411 from AnttiKauppila/stack_refactoring
...
Stack refactoring
2018-04-04 10:26:55 -05:00
paul-szczepanek-arm
539a11ee31
sign counter added
2018-04-04 15:59:10 +01:00
Vincent Coubard
17b3e26429
BLE: remove trace in Nordic PAL security manager
2018-04-04 15:42:47 +01:00
Vincent Coubard
04ab07ff16
BLE: Add documentation to CryptoToolbox.
2018-04-04 15:41:20 +01:00
Vincent Coubard
59a301a256
BLE: CryptoToolbox enhancement
...
- Rename LescCrypto into CryptoToolbox
- Use ArrayView of fixed size as parameters
- Add licence
2018-04-04 15:31:31 +01:00
Vincent Coubard
cd39406d20
BLE: Add conversion function from byte_array_t to ArrayView.
2018-04-04 15:28:52 +01:00
Vincent Coubard
5761caff00
BLE: Extend ArrayView to encode size in type.
...
With this change, it is possible to encode the size of the array viewed by an ArrayView into the type itself: ArrayView<T, Size>. Such objects are lighter than ArrayView of arbitrary size and allows verification of the size at compile time.
This change also fix operator== and bring new make_ArrayView overloads.
2018-04-04 15:28:17 +01:00
Vincent Coubard
9e1f0b34f8
BLE: Fix byte_array_t subscript operator
2018-04-04 15:22:15 +01:00
Vincent Coubard
d8f3d9c5ef
BLE: provide non const overload of byte_array_t::data member function.
2018-04-04 15:21:54 +01:00
Vincent Coubard
bf41bb3164
BLE: Export byte_array_t size exploitable at compile time.
2018-04-04 15:21:05 +01:00
Vincent Coubard
7bf0eb009a
BLE: use ArrayView to pass and get parameters in Crypto API
...
This change allow vendor pal code to use its own array format.
2018-04-04 11:04:13 +01:00
paul-szczepanek-arm
cbf80e9da5
typos, style and other review fixes
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
c1e2e07241
missing line from commit
...
(github client fail)
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
15c06acfe4
style fix
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
dfdfcfb25e
style fix
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
e276478d58
only bother reacting to verification failures if we want to use signing
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
f5fee68f99
fixed naming for sig failure count
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
9283413c4c
count failures, trigger reparing when verification fails
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
780d8a4375
let the stack know whether csrk is authenticated
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
511135f31c
signing only for the slave, unless keys requested to be sent by master
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
8d966dbe8c
invalid mic event
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
5ae9cc3b53
set peer csrk on pal
2018-04-03 15:41:43 +01:00
Paul Szczepanek
381b99bc61
Merge pull request #25 from paul-szczepanek-arm/oob-gen
...
generate oob at will and without passing in connection handle
2018-04-03 15:30:21 +01:00
paul-szczepanek-arm
576796b289
reset OOB on use
2018-04-03 15:29:26 +01:00
paul-szczepanek-arm
26b047549c
extra comments for api
2018-04-03 15:17:15 +01:00
paul-szczepanek-arm
0a494a0bbc
all_zeros now free functions
2018-04-03 14:47:27 +01:00
paul-szczepanek-arm
ba5b0f30d2
added comments about address for oob generation
2018-04-03 13:54:29 +01:00
Antti Kauppila
10ad173091
LoRa: Small fixes
...
- changed few static variables to have const
2018-04-03 14:58:01 +03:00
paul-szczepanek-arm
3c1a5a4a56
incorrect retval usage fixed
2018-04-03 12:16:49 +01:00
Antti Yli-Tokola
8fdae13642
Update mbed-coap to version 4.4.1
...
- Fixes error: IOTCLT-2539 Block wise messaging call-backs not working logically
- Allow TCP+TLS transport method to send larger messages without blockwising.
NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-04-03 13:58:40 +03:00
Max Payne
bd47110554
Fix IPv4 address parsing due to not-so-portable scanf modifier
...
Bug is raised when using newlib-based toolchains.
%hh format is only avaliable in scanf if newlib is compiled
with _WANT_IO_C99_FORMATS option.
2018-04-02 23:33:21 +03:00
Marcus Chang
791e42eefe
Inrease thread stack size to 1024 bytes in NVStore test for NRF52
2018-03-30 11:32:55 -07:00
Jimmy Brisson
2429d5e042
Merge pull request #6494 from donatieng/securitydb_fix_casing
...
[BLE] Fixed inconsistent casing issue for SecurityDb
2018-03-29 12:00:36 -05:00
Jimmy Brisson
64df0ddee8
Merge pull request #6408 from davidsaada/david_erase_size_addr
...
Add overloaded get_erase_size API with address parameter to BlockDevice
2018-03-29 11:59:28 -05:00
Vincent Coubard
3272863f83
BLE Nordic: Support LESC.
2018-03-29 17:24:46 +01:00
Vincent Coubard
f0e18fa007
BLE: Add LESC crypto toolbox for Nordic.
2018-03-29 17:23:54 +01:00
Vincent Coubard
3218e79805
BLE: Fix reference to security manager in Nordic event handler.
2018-03-29 17:23:24 +01:00
Vincent Coubard
95cd37b491
BLE: Add const overload for byte_array_t subscribt operator.
2018-03-29 17:22:48 +01:00
Krzysztof Stachowiak
ebb28b32af
Move the new check into the end of the previous line
2018-03-29 15:07:29 +02:00
Krzysztof Stachowiak
717573f44e
Add an NV_SEED test to the config adjustment script
2018-03-29 11:53:50 +02:00
Donatien Garnier
8b66c4bd28
[BLE] Fixed inconsistent casing issue for SecurityDb
2018-03-28 10:44:09 +01:00
paul-szczepanek-arm
aa90f0df65
rely solely on random vlalue to know if already calculating
...
simplify by setting a fake random value at the start so that first run is the same as subsequent runs
2018-03-27 12:25:50 +01:00
Bilal
c376e501aa
Moving deprecated warnings outside the class
2018-03-27 12:55:38 +05:00
Cruz Monrreal
062164eaad
Merge pull request #6452 from ARMmbed/revert-6086-gatt-client-unit-tests
...
Revert "BLE: Gatt client unit tests"
2018-03-26 14:33:52 -05:00
Cruz Monrreal
26737580ce
Merge pull request #6313 from SeppoTakalo/doxygen
...
Add missing Doxygen descriptions for Nanostack
2018-03-26 14:28:51 -05:00
Cruz Monrreal
57b48f6e05
Merge pull request #6416 from kjbracey-arm/lwip_netconntype_fix
...
lwIP: fix some IPv6 errors, eg TCP keepalive
2018-03-26 14:27:09 -05:00
paul-szczepanek-arm
c542650734
removed unused param from call
2018-03-26 18:07:29 +01:00
paul-szczepanek-arm
e1885486fa
only generate oob if using oob
2018-03-26 18:00:05 +01:00
paul-szczepanek-arm
d1b4713ae6
removed redundancy
2018-03-26 17:53:40 +01:00
paul-szczepanek-arm
02ba2848a8
avoid recalculating oob fi already calculating
2018-03-26 17:48:32 +01:00
Vincent Coubard
87c2045f5e
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into sc-nordic
2018-03-26 17:12:37 +01:00
Vincent Coubard
db20ecbbde
Merge branch 'security-manager-dev' into oob-gen
2018-03-26 16:49:55 +01:00
Vincent Coubard
3579653533
Cordio: Implement missing functions for secure connection
2018-03-26 15:48:59 +01:00
Bilal
c07ef92470
Adding deprecated warnings for old name
2018-03-26 19:34:42 +05:00
mudassar-ublox
eb806b681d
Renaming Ublox library for mbed cellular framework
...
(cherry picked from commit 737609736591d12ea369d5b364d132e7a6367ae2)
2018-03-26 17:08:23 +05:00
Martin Kojtal
afeb3066c3
Revert "BLE: Gatt client unit tests"
2018-03-26 11:51:29 +01:00
paul-szczepanek-arm
98efb9da06
generate oob at will and without passing in connection handle
2018-03-23 18:31:27 +00:00
Cruz Monrreal
6dc0c9d6c3
Merge pull request #6388 from davidsaada/david_nvstore_set_alloc_key
...
NVStore: key management enhancements
2018-03-23 11:03:53 -05:00
Cruz Monrreal
387027dddb
Merge pull request #6086 from pan-/gatt-client-unit-tests
...
BLE: Gatt client unit tests
2018-03-23 10:56:09 -05:00
Vincent Coubard
b859907481
Cordio: remove generate_public_key from the security manager.
2018-03-23 12:06:08 +00:00
Vincent Coubard
0a710e5331
BLE: Initialize the pal in GenericSecurityManager
2018-03-23 12:06:08 +00:00
Vincent Coubard
e25d5c9aa3
BLE: qualification of SecurityManager types
2018-03-23 12:06:08 +00:00
Paul Szczepanek
d7595803d0
Merge pull request #23 from paul-szczepanek-arm/legacy-oob
...
allow preloading legacy oob, generate tk
2018-03-23 10:48:11 +00:00
David Saada
a6048005d7
Add overloaded get_erase_size API with address parameter to all block devices
2018-03-23 00:34:45 +02:00
paul-szczepanek-arm
6833c79fb3
don't request encrypt when pending
2018-03-22 17:54:13 +00:00
paul-szczepanek-arm
81cb1f9c83
enable encryption for slave request added
2018-03-22 17:11:15 +00:00
paul-szczepanek-arm
350924129f
fix the attempt oob flag if we receive oob
2018-03-22 12:32:01 +00:00
paul-szczepanek-arm
2b2d9a2453
reset pending state when attempt ends, added comments
2018-03-22 12:23:37 +00:00
paul-szczepanek-arm
c848c79a5b
avoid code redundancy
2018-03-22 12:10:21 +00:00
paul-szczepanek-arm
909f9513cf
allow preloading legacy oob, generate tk
2018-03-22 12:01:34 +00:00
Kimmo Vaisanen
c1983570b4
Fix compilance test compilation
...
Fix compilation of compilance test and at the same time refactor compliance
test handler. Renamed mcps_request as test_request as it is only used for
compliance test. Also fixed a bug with null buffer in send_compliance_test_frame_to_mac.
2018-03-21 14:39:18 +02:00