Skip to content

Commit 0af853d

Browse files
author
Risto Huhtala
authored
Merge pull request #79 from PelionIoT/release-4.9.0
mbed-cloud-client-example 4.9.0
2 parents 8ef8fce + a2f72c2 commit 0af853d

20 files changed

+195
-2773
lines changed

CHANGELOG.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,40 @@
11
# Changelog for Pelion Device Management Client example application
22

3-
## Release 4.8.0 (19.04.2021)
3+
## Release 4.9.0 (20.05.2021)
4+
5+
* [Mbed OS] Increased `SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED` stored time to 15min for mesh to account for long retransmission chains during blockwise transfers.
6+
* [Mbed OS] Updated ISM43362 Wi-Fi driver to #09a71bf with fix to mutex handling.
7+
* Removed unregister resource `5000/0/1` from the application. Device Management Client library now implements OMA resource ` 1/0/4`, which supports deregistration.
8+
* Removed delta-tool from the application.
9+
* The current supported version (2.2.0 or later) of [manifest-tool](https://github.com/PelionIoT/manifest-tool) provides the functionality internally.
10+
* Updated cURL to 7.76.0 in `pal-platform`.
11+
* Fixed Atmel SE configuration.
12+
* Updated to Mbed OS 6.9.0.
13+
* [Linux] Updated Mbed TLS to 2.25.0.
14+
15+
## Release 4.8.0 (24.03.2021)
416

517
* Updated to Mbed OS 6.8.0.
618
* Updated cURL to 7.75.0 in `pal-platform`.
719
* Updated parsec-se-driver to 0.4.0.
8-
* Updated to Pelion end-to-end test library v0.2.10.
20+
* Updated to Pelion E2E test library v0.2.10.
921
* Removed support for SXOS platform in the application.
10-
* Consolidated the K64F ESP8266 configuration to `wifi_esp8266_minimal.json`.
11-
* Removed K66F PSA.
12-
* `DISCO_L475VG_IOT01A` target bootloader increased from 36kB to 38kB.
22+
* Consolidated the K64F ESP8266 configuration to wifi_esp8266_minimal.json.
23+
* K66F PSA has been removed.
24+
* DISCO_L475VG_IOT01A target bootloader was increased from 36kB to 38kB.
1325
* Introduction of upgraded Update client:
1426
* The new features of the upgraded Update client:
1527
* Component update.
1628
* Resume after power failure.
1729
* Defer firmware update installation.
1830
* Candidate encryption on external storage.
19-
* Configured Mbed OS non-mesh and Linux targets to use the new upgraded Update client.
20-
21-
<span class="notes">**Note:** To use legacy Update client in your Mbed OS non mesh target, please refer to the configurations in PDMC example 4.7.1.</span>
22-
31+
* Mbed OS non-mesh and Linux targets are configured to use the new upgraded Update client.
32+
* Note - if you wish to use legacy Update client in your Mbed OS non mesh target, please refer to the configurations in PDMC exmaple 4.7.1.
2333
* Legacy Update client is still used in Mbed OS mesh targets and SDK's targets (NXP, Renesas).
24-
* Upgraded update client bootloaders are located in prebuild-bl folder. Legacy bootloaders are located in tools folder.
25-
* On `K64F`, `NUCLEO_F411RE` and `DISCO_L475VG_IOT01A` targets, the update candidate is stored encrypted on the external storage encrypted.
26-
27-
* Created migration documentation guide for existing customers who wish to migrate legacy Update client to the new Update client.
28-
29-
<span class="notes">**Note:** After you migrate to the new Update client, only the "Component update" feature is available. To use other features of the new Update client, reflash the device with the new configuration and new bootloader.</span>
34+
* Upgraded update client bootloaders are located in prebuild-bl folder. Legacy bootloaders are located in tools folder
35+
* On K64F, NUCLEO_F411RE, DISCO_L475VG_IOT01A targets, the update candidate is stored encrypted on the external storage encrypted.
36+
* Migration documentation guide was created for existing customers that wish to migrate legacy Update client to the new Update client - [TBD Link to https://github.com/PelionIoT/mbed_Cloud_Docs/pull/1689/files].
37+
* Note - once migrated to new Update client, only "Component update" feature will be available. For using other features of new Update client, the device needs to be reflashed with the new configuration and new bootloader.
3038

3139
## Release 4.7.1 (28.01.2021)
3240

configs-psa/eth_v4.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"target_overrides": {
66
"*": {
77
"target.features_add" : ["EXPERIMENTAL_API", "STORAGE"],
8+
"target.c_lib" : "std",
89
"platform.stdio-baud-rate" : 115200,
910
"platform.stdio-convert-newlines" : true,
1011
"platform.stdio-buffered-serial" : true,

configs-psa/eth_v4_with_se_atmel.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"mbed-trace.enable" : null,
3030
"target.OUTPUT_EXT" : "hex",
3131
"mbed-os-atecc608a.i2c-iface-devtype" : "ATECC608A",
32-
"mbed-os-atecc608a.i2c-iface-slave_address" : "0x6C"
32+
"mbed-os-atecc608a.i2c-iface-slave_address" : "0x6C",
33+
"mbed-cloud-client.secure-element-support" : 1
3334
},
3435
"K64F": {
3536
"target.network-default-interface-type" : "ETHERNET",

configs/wisun_mbedTLSConfig_mbedOS.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ----------------------------------------------------------------------------
2-
// Copyright 2016-2019 ARM Ltd.
2+
// Copyright 2016-2021 Pelion.
33
//
44
// SPDX-License-Identifier: Apache-2.0
55
//
@@ -24,6 +24,8 @@
2424

2525
// Enable new define to allow usage of Wi-SUN network security.
2626
#define MBEDTLS_PEM_PARSE_C
27+
#define MBEDTLS_NIST_KW_C
28+
#define MBEDTLS_SHA1_C
2729

2830
#include "mbedtls/check_config.h"
2931

custom_targets.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
{
2-
"NUCLEO_F429ZI_WISUN": {
2+
"NUCLEO_F429ZI_AGGRESSIVE": {
33
"inherits": ["NUCLEO_F429ZI"]
44
},
5-
"NUCLEO_F429ZI_WISUN_SMALL": {
6-
"inherits": ["NUCLEO_F429ZI_WISUN"]
7-
},
8-
"MIMXRT1050_EVK_WISUN": {
5+
"MIMXRT1050_EVK_AGGRESSIVE": {
96
"inherits": ["MIMXRT1050_EVK"]
10-
},
11-
"MIMXRT1050_EVK_WISUN_SMALL": {
12-
"inherits": ["MIMXRT1050_EVK_WISUN"]
137
}
148
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/wifi-ism43362/#3813a4bb8623cc9b0525978748581f60d47142fa
1+
https://github.com/ARMmbed/wifi-ism43362/#09a71bf84fec10704ed2dcecf38f97cb2c95c2b9

main.cpp

100644100755
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@
4949
#include "nanostack-event-loop/eventOS_scheduler.h"
5050
#endif
5151

52-
#ifdef MBED_CLOUD_CLIENT_SUPPORT_MULTICAST_UPDATE
53-
#include "multicast.h"
54-
#endif
55-
5652
#if defined MBED_CONF_MBED_CLOUD_CLIENT_NETWORK_MANAGER && \
5753
(MBED_CONF_MBED_CLOUD_CLIENT_NETWORK_MANAGER == 1)
5854
#include "NetworkInterface.h"
@@ -80,7 +76,6 @@ int main(void)
8076
static M2MResource *button_res;
8177
static M2MResource *pattern_res;
8278
static M2MResource *blink_res;
83-
static M2MResource *unregister_res;
8479
static M2MResource *factory_reset_res;
8580
static M2MResource *large_res;
8681
static uint8_t *large_res_data = NULL;
@@ -182,12 +177,6 @@ void sent_callback(const M2MBase &base,
182177
}
183178
}
184179

185-
void unregister_triggered(void)
186-
{
187-
printf("Unregister resource triggered\r\n");
188-
unregister_res->send_delayed_post_response();
189-
}
190-
191180
void factory_reset_triggered(void *)
192181
{
193182
printf("Factory reset resource triggered\r\n");
@@ -291,7 +280,6 @@ void main_application(void)
291280
* 4. Connect Device Management Client to service using `setup()`. // Implemented in `mbedClient.register_and_connect)`.
292281
*/
293282
(void) mcc_platform_interface_init();
294-
mbedClient.init();
295283

296284
// application_init() runs the following initializations:
297285
// 1. platform initialization
@@ -302,6 +290,8 @@ void main_application(void)
302290
return;
303291
}
304292

293+
mbedClient.init();
294+
305295
#if defined MBED_CONF_MBED_CLOUD_CLIENT_NETWORK_MANAGER &&\
306296
(MBED_CONF_MBED_CLOUD_CLIENT_NETWORK_MANAGER == 1)
307297
printf("Configuring Interface\r\n");
@@ -358,11 +348,6 @@ void main_application(void)
358348
// Use delayed response
359349
blink_res->set_delayed_response(true);
360350

361-
// Create resource for unregistering the device. Path of this resource will be: 5000/0/1.
362-
unregister_res = mbedClient.add_cloud_resource(5000, 0, 1, "unregister", M2MResourceInstance::STRING,
363-
M2MBase::POST_ALLOWED, NULL, false, (void *)unregister_triggered, (void *)sent_callback);
364-
unregister_res->set_delayed_response(true);
365-
366351
// Create optional Device resource for running factory reset for the device. Path of this resource will be: 3/0/5.
367352
factory_reset_res = M2MInterfaceFactory::create_device()->create_resource(M2MDevice::FactoryReset);
368353
if (factory_reset_res) {
@@ -378,15 +363,9 @@ void main_application(void)
378363
button_res->set_auto_observable(true);
379364
pattern_res->set_auto_observable(true);
380365
blink_res->set_auto_observable(true);
381-
unregister_res->set_auto_observable(true);
382366
factory_reset_res->set_auto_observable(true);
383367
#endif
384368

385-
#endif
386-
387-
// TODO! replace when api available in wisun interface
388-
#ifdef MBED_CLOUD_CLIENT_SUPPORT_MULTICAST_UPDATE
389-
arm_uc_multicast_interface_configure(1);
390369
#endif
391370

392371
mbedClient.register_and_connect();

mbed-cloud-client.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/PelionIoT/mbed-cloud-client/#3f00170a0eda5a54ce0762fc7d3d83dc95610102
1+
https://github.com/PelionIoT/mbed-cloud-client/#64904a11eac01714b9131744dc0a6b181224ef09

mbed-os.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/mbed-os/#26606218ad9d1ee1c8781aa73774fd7ea3a7658e
1+
https://github.com/ARMmbed/mbed-os/#c73413893fb98aaaeda74513c981ac68adc8645d

mbed_cloud_client_user_config_mesh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ----------------------------------------------------------------------------
2-
// Copyright 2021 Pelion Ltd.
2+
// Copyright 2021 Pelion.
33
//
44
// SPDX-License-Identifier: Apache-2.0
55
//

0 commit comments

Comments
 (0)