K6xF board with BG96 of WIZnet for CatM1 board.
Dependencies: FXAS21002 FXOS8700Q
This document is based on https://os.mbed.com/teams/NXP/code/pelion-example-frdm/
This code could be access via Cat.M1(BG96 module) of SK telecom network in Korea. Need a WIZnet BG96 board or can connect directly to M2Mnet BG96 module and development board.

- FRDM-K64F - onboard Ethernet and onboard SD card holder.
- FRDM-K66F - onboard Ethernet and onboard SD card holder.
-------------------------------

- BG96 RESET = D7
- BG96 PWRKEY = D9
- BG96 TX = D1
- BG96 RX = D0
- BG96 VCC = VCC(5V)
- BG96 GND = GND
Requirement
- FRDM-K64F or FRDM-K66F
- WIZnet BG96 I/F board or M2Mnet BG96 module include SIM card.
Example functionality
This example showcases the following device functionality:
Read onboard FXOS8700Q accelerometer and magnetometer, and report the values as Pelion LWM2M resources (see image below). (FRDM-K66F only) Read onboard FXAS21002 gyroscope and report the values as Pelion LWM2M resources. On user button click, increment Pelion LWM2M button resource. Allow the user to change the state of the board LED from Pelion LWM2M led_state resource and PUT request.
1. Import the application into your desktop:
mbed import http://os.mbed.com/users/Daniel_Lee/code/BG96_K6xF_pelion-example-frdm/ cd BG96_K6xF_pelion-example-frdm
2. Install the CLOUD_SDK_API_KEY
mbed config -G CLOUD_SDK_API_KEY <PELION_DM_API_KEY>
For instructions on how to generate your API key, please see the documentation.
3. Initialize firmware credentials (done once per repository). You can use the following command:
mbed dm init -d "<your company name in Pelion DM>" --model-name "<product model identifier>" -q --force
If the above command does not work for your Mbed CLI, please consider upgrading Mbed CLI to version 1.9.x or above.
4. Compile and program:
mbed compile -t <toolchain> -m <TARGET_BOARD>
(supported toolchains : GCC_ARM / ARM / IAR)
5. If successfully connect to cellular networks(SKTelecom) then you can get below message
[BOOT] Mbed Bootloader [BOOT] ARM: 00000000000000000000 [BOOT] OEM: 00000000000000000000 [BOOT] Layout: 0 83A8 [BOOT] Active firmware integrity check: [BOOT] SHA256: 2DD1793----------------------------------------------------------------- [BOOT] Version: 1563983916 [BOOT] Slot 0 is empty [BOOT] Active firmware up-to-date [BOOT] Application's start address: 0x10400 [BOOT] Application's jump address: 0x10B11 [BOOT] Application's stack address: 0x20030000 [BOOT] Forwarding to application... Starting Simple Pelion Device Management Client example You can hold the user button during boot to format the storage and change the d. M2Mnet(BG96) Power ON Sensors configuration: FXOS8700Q accelerometer = 0xC7 FXOS8700Q magnetometer = 0xC7 Connecting to the network using the default network interface... Connected to the network successfully. IP address: 000:000:000:000:000:000:000:0 Initializing Pelion Device Management Client... Initialized Pelion Device Management Client. Registering... Press the user button to increment the LwM2M resource value... Registered to Pelion Device Management. Endpoint Name: "xx Your Endpoint Name xx" *** Button notification, status Subscribed (6) FXOS8700Q mag: -2.426 x, -0.902 y, -1.611 z [gauss] FXOS8700Q acc: -0.054 x, -0.309 y, 4.306 z [g]
Revision 11:34e86cb4dd2f, committed 2019-07-24
- Comitter:
- Daniel_Lee
- Date:
- Wed Jul 24 16:03:48 2019 +0000
- Parent:
- 10:7ddb51dd0316
- Commit message:
- Added BG96 power on sequence
Changed in this revision
--- a/main.cpp Tue Jun 18 07:07:03 2019 +0000
+++ b/main.cpp Wed Jul 24 16:03:48 2019 +0000
@@ -83,6 +83,24 @@
#endif /* TARGET_K66F */
#endif /* SEND_ALL_SENSORS */
+
+void BG96_Modem_PowerON(void)
+{
+ DigitalOut BG96_RESET(D7);
+ DigitalOut BG96_PWRKEY(D9);
+
+ BG96_RESET = 1;
+ BG96_PWRKEY = 1;
+ wait_ms(200);
+
+ BG96_RESET = 0;
+ BG96_PWRKEY = 0;
+ wait_ms(300);
+
+ BG96_RESET = 1;
+ wait_ms(5000);
+}
+
// An event queue is a very useful structure to debounce information between contexts (e.g. ISR and normal threads)
// This is great because things such as network operations are illegal in ISR, so updating a resource in a button's fall() function is not allowed
EventQueue eventQueue;
@@ -234,6 +252,9 @@
printf("You can hold the user button during boot to format the storage and change the device identity.\n");
}
+ BG96_Modem_PowerON();
+ printf("M2Mnet(BG96) Power ON\n");
+
sensors_init();
// Connect to the Internet (DHCP is expected to be on)
--- a/mbed-os.lib Tue Jun 18 07:07:03 2019 +0000 +++ b/mbed-os.lib Wed Jul 24 16:03:48 2019 +0000 @@ -1,1 +1,1 @@ -https://github.com/DanielDmlee/mbed-os/#fd5cbf6361ca37def29ab7f997dcb7912bb369da +https://github.com/DanielDmlee/mbed-os/#820e0a323641a88fdf5981e0d51219a3104c5ea0
--- a/mbed_cloud_dev_credentials.c Tue Jun 18 07:07:03 2019 +0000
+++ b/mbed_cloud_dev_credentials.c Wed Jul 24 16:03:48 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited. All rights reserved.
+ * Copyright (c) 2018 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
@@ -15,39 +15,200 @@
*/
#ifndef __MBED_CLOUD_DEV_CREDENTIALS_H__
#define __MBED_CLOUD_DEV_CREDENTIALS_H__
-
-#if MBED_CONF_DEVICE_MANAGEMENT_DEVELOPER_MODE == 1
-#error "Replace mbed_cloud_dev_credentials.c with your own developer cert."
-#endif
-
+
#include <inttypes.h>
-
-const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = "";
-const char MBED_CLOUD_DEV_ACCOUNT_ID[] = "";
-const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = "";
-
-const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] =
-{ 0x0 };
-
-const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] =
-{ 0x0 };
-
-const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY[] =
-{ 0x0 };
-
+
+const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = "015f4f6940ed02420a01420703c00000";
+const char MBED_CLOUD_DEV_ACCOUNT_ID[] = "0158779038b402420a014c1100000000";
+const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = "coaps://bootstrap.us-east-1.mbedcloud.com:5684?aid=0158779038b402420a014c1100000000";
+
+const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] =
+{ 0x30, 0x82, 0x02, 0x6e, 0x30, 0x82, 0x02, 0x15,
+ 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x11, 0x00,
+ 0xfd, 0x75, 0x25, 0xc4, 0x04, 0xe8, 0x4f, 0x1e,
+ 0xae, 0x08, 0x65, 0xd3, 0x1e, 0x5f, 0x6f, 0x13,
+ 0x30, 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce,
+ 0x3d, 0x04, 0x03, 0x02, 0x30, 0x81, 0xa2, 0x31,
+ 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06,
+ 0x13, 0x02, 0x47, 0x42, 0x31, 0x17, 0x30, 0x15,
+ 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x0e, 0x43,
+ 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65,
+ 0x73, 0x68, 0x69, 0x72, 0x65, 0x31, 0x12, 0x30,
+ 0x10, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x09,
+ 0x43, 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67,
+ 0x65, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55,
+ 0x04, 0x0a, 0x0c, 0x07, 0x41, 0x52, 0x4d, 0x20,
+ 0x4c, 0x74, 0x64, 0x31, 0x29, 0x30, 0x27, 0x06,
+ 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x20, 0x30, 0x31,
+ 0x35, 0x38, 0x37, 0x37, 0x39, 0x30, 0x33, 0x38,
+ 0x62, 0x34, 0x30, 0x32, 0x34, 0x32, 0x30, 0x61,
+ 0x30, 0x31, 0x34, 0x63, 0x31, 0x31, 0x30, 0x30,
+ 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x29,
+ 0x30, 0x27, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
+ 0x20, 0x30, 0x31, 0x35, 0x66, 0x34, 0x66, 0x36,
+ 0x39, 0x34, 0x30, 0x65, 0x64, 0x30, 0x32, 0x34,
+ 0x32, 0x30, 0x61, 0x30, 0x31, 0x34, 0x32, 0x30,
+ 0x37, 0x30, 0x33, 0x63, 0x30, 0x30, 0x30, 0x30,
+ 0x30, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31,
+ 0x30, 0x32, 0x34, 0x31, 0x37, 0x32, 0x33, 0x33,
+ 0x38, 0x5a, 0x17, 0x0d, 0x32, 0x37, 0x31, 0x30,
+ 0x32, 0x34, 0x31, 0x37, 0x32, 0x33, 0x33, 0x38,
+ 0x5a, 0x30, 0x81, 0xa2, 0x31, 0x0b, 0x30, 0x09,
+ 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x47,
+ 0x42, 0x31, 0x17, 0x30, 0x15, 0x06, 0x03, 0x55,
+ 0x04, 0x08, 0x0c, 0x0e, 0x43, 0x61, 0x6d, 0x62,
+ 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x68, 0x69,
+ 0x72, 0x65, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03,
+ 0x55, 0x04, 0x07, 0x0c, 0x09, 0x43, 0x61, 0x6d,
+ 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x31, 0x10,
+ 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c,
+ 0x07, 0x41, 0x52, 0x4d, 0x20, 0x4c, 0x74, 0x64,
+ 0x31, 0x29, 0x30, 0x27, 0x06, 0x03, 0x55, 0x04,
+ 0x0b, 0x0c, 0x20, 0x30, 0x31, 0x35, 0x38, 0x37,
+ 0x37, 0x39, 0x30, 0x33, 0x38, 0x62, 0x34, 0x30,
+ 0x32, 0x34, 0x32, 0x30, 0x61, 0x30, 0x31, 0x34,
+ 0x63, 0x31, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30,
+ 0x30, 0x30, 0x30, 0x31, 0x29, 0x30, 0x27, 0x06,
+ 0x03, 0x55, 0x04, 0x03, 0x0c, 0x20, 0x30, 0x31,
+ 0x35, 0x66, 0x34, 0x66, 0x36, 0x39, 0x34, 0x30,
+ 0x65, 0x64, 0x30, 0x32, 0x34, 0x32, 0x30, 0x61,
+ 0x30, 0x31, 0x34, 0x32, 0x30, 0x37, 0x30, 0x33,
+ 0x63, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x59,
+ 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce,
+ 0x3d, 0x02, 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48,
+ 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03, 0x42, 0x00,
+ 0x04, 0x6a, 0x60, 0x52, 0x1a, 0x40, 0xb1, 0x6a,
+ 0x06, 0x03, 0x01, 0x4b, 0x92, 0x17, 0x61, 0x8b,
+ 0x94, 0x0c, 0x7d, 0xc0, 0x61, 0x0f, 0x28, 0xcc,
+ 0xb0, 0x4d, 0x23, 0x9b, 0x5a, 0xdf, 0x10, 0x60,
+ 0x98, 0x9d, 0xe7, 0x1e, 0xe7, 0x5e, 0xb5, 0x1f,
+ 0xb7, 0xaa, 0x87, 0x05, 0xe8, 0x15, 0x3c, 0xbd,
+ 0x6d, 0x1a, 0x3d, 0x3d, 0x3d, 0x3f, 0x50, 0xc4,
+ 0x1e, 0xd3, 0x88, 0xed, 0x2e, 0x3d, 0x9a, 0x75,
+ 0x25, 0xa3, 0x2a, 0x30, 0x28, 0x30, 0x12, 0x06,
+ 0x09, 0x2b, 0x06, 0x01, 0x04, 0x01, 0xa0, 0x20,
+ 0x81, 0x49, 0x04, 0x05, 0x02, 0x03, 0x40, 0x00,
+ 0x91, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d, 0x13,
+ 0x01, 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01,
+ 0x01, 0xff, 0x02, 0x01, 0x00, 0x30, 0x0a, 0x06,
+ 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03,
+ 0x02, 0x03, 0x47, 0x00, 0x30, 0x44, 0x02, 0x20,
+ 0x35, 0xf1, 0xc6, 0x56, 0x4e, 0xd6, 0xee, 0x38,
+ 0x27, 0x8f, 0x1e, 0x2d, 0x0a, 0x82, 0xbb, 0xe3,
+ 0x7e, 0x6c, 0x3a, 0x6e, 0x76, 0x42, 0xe4, 0x65,
+ 0x69, 0xc3, 0x20, 0xf4, 0x16, 0x98, 0x4a, 0xeb,
+ 0x02, 0x20, 0x37, 0x9a, 0xce, 0x1f, 0x21, 0x77,
+ 0xe1, 0xc4, 0x9a, 0xc5, 0x6f, 0xf2, 0x47, 0x05,
+ 0x6d, 0x1f, 0x10, 0x0d, 0xd5, 0x88, 0xad, 0xbf,
+ 0x2a, 0xc4, 0x13, 0x20, 0x7b, 0xbf, 0x69, 0x34,
+ 0x55, 0xb6 };
+
+const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] =
+{ 0x30, 0x82, 0x02, 0x1f, 0x30, 0x82, 0x01, 0xc5,
+ 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x10, 0x3c,
+ 0x63, 0x38, 0x70, 0x08, 0xd3, 0xc9, 0x8a, 0x4c,
+ 0x72, 0x1f, 0x8f, 0x45, 0xeb, 0xd8, 0xf3, 0x30,
+ 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d,
+ 0x04, 0x03, 0x02, 0x30, 0x67, 0x31, 0x0b, 0x30,
+ 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02,
+ 0x47, 0x42, 0x31, 0x17, 0x30, 0x15, 0x06, 0x03,
+ 0x55, 0x04, 0x08, 0x13, 0x0e, 0x43, 0x61, 0x6d,
+ 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x68,
+ 0x69, 0x72, 0x65, 0x31, 0x12, 0x30, 0x10, 0x06,
+ 0x03, 0x55, 0x04, 0x07, 0x13, 0x09, 0x43, 0x61,
+ 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x31,
+ 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0a,
+ 0x13, 0x07, 0x41, 0x52, 0x4d, 0x20, 0x4c, 0x74,
+ 0x64, 0x31, 0x19, 0x30, 0x17, 0x06, 0x03, 0x55,
+ 0x04, 0x03, 0x13, 0x10, 0x41, 0x52, 0x4d, 0x20,
+ 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61,
+ 0x70, 0x20, 0x43, 0x41, 0x30, 0x20, 0x17, 0x0d,
+ 0x31, 0x37, 0x30, 0x34, 0x30, 0x33, 0x31, 0x34,
+ 0x30, 0x33, 0x33, 0x36, 0x5a, 0x18, 0x0f, 0x32,
+ 0x30, 0x35, 0x32, 0x30, 0x34, 0x30, 0x33, 0x31,
+ 0x34, 0x31, 0x33, 0x33, 0x36, 0x5a, 0x30, 0x67,
+ 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
+ 0x06, 0x13, 0x02, 0x47, 0x42, 0x31, 0x17, 0x30,
+ 0x15, 0x06, 0x03, 0x55, 0x04, 0x08, 0x13, 0x0e,
+ 0x43, 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67,
+ 0x65, 0x73, 0x68, 0x69, 0x72, 0x65, 0x31, 0x12,
+ 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13,
+ 0x09, 0x43, 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64,
+ 0x67, 0x65, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03,
+ 0x55, 0x04, 0x0a, 0x13, 0x07, 0x41, 0x52, 0x4d,
+ 0x20, 0x4c, 0x74, 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x8a, 0x51, 0xea, 0xe6, 0x83, 0x73,
+ 0xdb, 0x33, 0x89, 0x0b, 0xa0, 0x0a, 0x06, 0x08,
+ 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07,
+ 0xa1, 0x44, 0x03, 0x42, 0x00, 0x04, 0x6a, 0x60,
+ 0x52, 0x1a, 0x40, 0xb1, 0x6a, 0x06, 0x03, 0x01,
+ 0x4b, 0x92, 0x17, 0x61, 0x8b, 0x94, 0x0c, 0x7d,
+ 0xc0, 0x61, 0x0f, 0x28, 0xcc, 0xb0, 0x4d, 0x23,
+ 0x9b, 0x5a, 0xdf, 0x10, 0x60, 0x98, 0x9d, 0xe7,
+ 0x1e, 0xe7, 0x5e, 0xb5, 0x1f, 0xb7, 0xaa, 0x87,
+ 0x05, 0xe8, 0x15, 0x3c, 0xbd, 0x6d, 0x1a, 0x3d,
+ 0x3d, 0x3d, 0x3f, 0x50, 0xc4, 0x1e, 0xd3, 0x88,
+ 0xed, 0x2e, 0x3d, 0x9a, 0x75, 0x25 };
+
const char MBED_CLOUD_DEV_MANUFACTURER[] = "dev_manufacturer";
-
+
const char MBED_CLOUD_DEV_MODEL_NUMBER[] = "dev_model_num";
-
+
const char MBED_CLOUD_DEV_SERIAL_NUMBER[] = "0";
-
+
const char MBED_CLOUD_DEV_DEVICE_TYPE[] = "dev_device_type";
-
+
const char MBED_CLOUD_DEV_HARDWARE_VERSION[] = "dev_hardware_version";
-
+
const uint32_t MBED_CLOUD_DEV_MEMORY_TOTAL_KB = 0;
+
const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE);
const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE);
const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY);
-
-#endif //__MBED_CLOUD_DEV_CREDENTIALS_H__
\ No newline at end of file
+
+#endif //__MBED_CLOUD_DEV_CREDENTIALS_H__
--- a/sensors/FXAS21002.lib Tue Jun 18 07:07:03 2019 +0000 +++ b/sensors/FXAS21002.lib Wed Jul 24 16:03:48 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/MSS/code/FXAS21002/#8461f7fe0a7f +https://os.mbed.com/teams/MSS/code/FXAS21002/#ee0bdc90f4fb
--- a/sensors/FXOS8700Q.lib Tue Jun 18 07:07:03 2019 +0000 +++ b/sensors/FXOS8700Q.lib Wed Jul 24 16:03:48 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/NXP/code/FXOS8700Q/#834488c11340 +https://os.mbed.com/teams/NXP/code/FXOS8700Q/#192bb7e45280
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/update_certificate.pem Wed Jul 24 16:03:48 2019 +0000 @@ -0,0 +1,9 @@ +-----BEGIN CERTIFICATE----- +MIIBTDCB9KADAgECAhTqrnmdFtYnlHZam3d+a/vROQEkFzAKBggqhkjOPQQDAjAU +MRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcNMTkwNzI0MTU1MjA5WhcNMjAwNzI0MTUw +MDAwWjAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwWTATBgcqhkjOPQIBBggqhkjOPQMB +BwNCAARuu3AR6j4cfyxOEgdAQ3/UXnJn96X19NwK/x9710FhR4ngOH3PyxLGgrZX +zIFnWA1aN7PmguPFZGTuqAVi+1YCoyQwIjALBgNVHQ8EBAMCB4AwEwYDVR0lBAww +CgYIKwYBBQUHAwMwCgYIKoZIzj0EAwIDRwAwRAIgw/mqX0mmJY2IG+rAU9VXxSph +/eINxDgiz5b+1b/MRpoCIEJOOMr0tDBhqr1U/vY9smQSwKcuyojdWK/N8ybbpw2d +-----END CERTIFICATE-----
--- a/update_default_resources.c Tue Jun 18 07:07:03 2019 +0000
+++ b/update_default_resources.c Wed Jul 24 16:03:48 2019 +0000
@@ -1,41 +1,71 @@
-// ----------------------------------------------------------------------------
-// Copyright 2016-2017 ARM Ltd.
-//
-// SPDX-License-Identifier: Apache-2.0
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ----------------------------------------------------------------------------
-
+
#ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE
#include MBED_CLOUD_CLIENT_USER_CONFIG_FILE
#endif
-
+
#include <stdint.h>
-
+
#ifdef MBED_CLOUD_DEV_UPDATE_ID
-const uint8_t arm_uc_vendor_id[16] = { "dev_manufacturer" };
+const uint8_t arm_uc_vendor_id[] = {
+ 0x8b, 0x9c, 0x29, 0x91, 0xfc, 0xf8, 0x55, 0x8a, 0xa5, 0x30, 0x1d, 0xd4, 0x05, 0xb4, 0x83, 0xb9
+};
const uint16_t arm_uc_vendor_id_size = sizeof(arm_uc_vendor_id);
-
-const uint8_t arm_uc_class_id[16] = { "dev_model_number" };
+
+const uint8_t arm_uc_class_id[] = {
+ 0x95, 0x9e, 0xdf, 0x33, 0xe0, 0x68, 0x55, 0xc2, 0x80, 0x7f, 0xb1, 0x6b, 0xa9, 0x8d, 0x29, 0x6a
+};
const uint16_t arm_uc_class_id_size = sizeof(arm_uc_class_id);
#endif
-
+
#ifdef MBED_CLOUD_DEV_UPDATE_CERT
-const uint8_t arm_uc_default_fingerprint[32] = { 0 };
+const uint8_t arm_uc_default_fingerprint[] = {
+ 0xf2, 0x35, 0x6b, 0x7b, 0x7b, 0xf8, 0x67, 0xf5, 0xe9, 0x64, 0xbc, 0x74, 0x46, 0xc2, 0xcb, 0x03,
+ 0x7b, 0xcf, 0x97, 0x95, 0xb4, 0x1b, 0x0b, 0x0f, 0x34, 0x31, 0xf0, 0xc8, 0xf0, 0x52, 0x34, 0x52
+};
const uint16_t arm_uc_default_fingerprint_size =
sizeof(arm_uc_default_fingerprint);
-
-const uint8_t arm_uc_default_certificate[1] = { 0 };
-const uint16_t arm_uc_default_certificate_size =
- sizeof(arm_uc_default_certificate);
-#endif
\ No newline at end of file
+
+const uint8_t arm_uc_default_subject_key_identifier[] = {
+};
+const uint16_t arm_uc_default_subject_key_identifier_size =
+ sizeof(arm_uc_default_subject_key_identifier);
+
+const uint8_t arm_uc_default_certificate[] = {
+ 0x30, 0x82, 0x01, 0x4c, 0x30, 0x81, 0xf4, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x14, 0xea, 0xae,
+ 0x79, 0x9d, 0x16, 0xd6, 0x27, 0x94, 0x76, 0x5a, 0x9b, 0x77, 0x7e, 0x6b, 0xfb, 0xd1, 0x39, 0x01,
+ 0x24, 0x17, 0x30, 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x02, 0x30, 0x14,
+ 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
+ 0x68, 0x6f, 0x73, 0x74, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x39, 0x30, 0x37, 0x32, 0x34, 0x31, 0x35,
+ 0x35, 0x32, 0x30, 0x39, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x37, 0x32, 0x34, 0x31, 0x35, 0x30,
+ 0x30, 0x30, 0x30, 0x5a, 0x30, 0x14, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
+ 0x09, 0x6c, 0x6f, 0x63, 0x61, 0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x9a, 0x02, 0x20,
+ 0x42, 0x4e, 0x38, 0xca, 0xf4, 0xb4, 0x30, 0x61, 0xaa, 0xbd, 0x54, 0xfe, 0xf6, 0x3d, 0xb2, 0x64,
+ 0x12, 0xc0, 0xa7, 0x2e, 0xca, 0x88, 0xdd, 0x58, 0xaf, 0xcd, 0xf3, 0x26, 0xdb, 0xa7, 0x0d, 0x9d
+};
+const uint16_t arm_uc_default_certificate_size = sizeof(arm_uc_default_certificate);
+#endif
+
+
+#ifdef MBED_CLOUD_DEV_UPDATE_PSK
+const uint8_t arm_uc_default_psk[] = {
+
+};
+const uint8_t arm_uc_default_psk_size = sizeof(arm_uc_default_psk);
+const uint16_t arm_uc_default_psk_bits = sizeof(arm_uc_default_psk)*8;
+
+const uint8_t arm_uc_default_psk_id[] = {
+
+};
+const uint8_t arm_uc_default_psk_id_size = sizeof(arm_uc_default_psk_id);
+#endif
Daniel Lee