![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
This program collects raw time series data from the ADC using the NXP board that will later be post processed by PFP Cyber-security cloud base machine learning engine to determine the state of the device.
Dependencies: FXAS21002 FXOS8700Q
Diff: update_default_resources.c
- Revision:
- 1:0c589850480e
- Parent:
- 0:977e87915078
- Child:
- 2:990c985a69ae
diff -r 977e87915078 -r 0c589850480e update_default_resources.c --- a/update_default_resources.c Wed Aug 28 19:24:56 2019 +0000 +++ b/update_default_resources.c Wed Nov 20 18:58:49 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[] = { + 0xc5, 0x76, 0xdf, 0x70, 0xe5, 0x72, 0xfe, 0x9f, 0xdc, 0x4a, 0xba, 0x88, 0x29, 0x92, 0xef, 0x4d, + 0x42, 0x1e, 0x7a, 0x8c, 0x47, 0xa0, 0x4f, 0xb3, 0x6e, 0xe0, 0x9d, 0xcf, 0x54, 0xc1, 0xb2, 0x64 +}; 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, 0x5f, 0x83, + 0x92, 0x50, 0xcd, 0xe4, 0xa9, 0x0c, 0x03, 0x1d, 0xd1, 0xa4, 0xee, 0x8c, 0xe8, 0xf6, 0x1c, 0xfa, + 0xf7, 0x29, 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, 0x31, 0x31, 0x32, 0x30, 0x31, 0x38, + 0x34, 0x38, 0x31, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x31, 0x31, 0x32, 0x30, 0x30, 0x35, 0x30, + 0x30, 0x30, 0x30, 0x5a, 0x30, 0x14, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, + 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 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, 0x7a, 0x82, 0x06, 0xec, 0x80, 0xc6, 0x86, 0x36, 0x34, 0xac, 0x38, + 0xd5, 0x0b, 0x3a, 0x0f, 0xd5, 0x9d, 0xd2, 0x4e, 0x02, 0xfe, 0x4a, 0x62, 0x1d, 0xcf, 0x4c, 0xc2, + 0x1e, 0xa6, 0x93, 0x93, 0xf4, 0x91, 0xbb, 0xb9, 0x5f, 0xa9, 0x1c, 0xbb, 0xbb, 0x74, 0xc5, 0x66, + 0x17, 0x70, 0xb7, 0x3b, 0xb5, 0x07, 0x98, 0xc4, 0x0e, 0x8e, 0x99, 0x62, 0x41, 0xe3, 0x12, 0x4c, + 0x70, 0x6a, 0x84, 0xf2, 0xdc, 0xa3, 0x24, 0x30, 0x22, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x1d, 0x0f, + 0x04, 0x04, 0x03, 0x02, 0x07, 0x80, 0x30, 0x13, 0x06, 0x03, 0x55, 0x1d, 0x25, 0x04, 0x0c, 0x30, + 0x0a, 0x06, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03, 0x30, 0x0a, 0x06, 0x08, 0x2a, + 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x02, 0x03, 0x47, 0x00, 0x30, 0x44, 0x02, 0x20, 0xad, 0x42, + 0x89, 0x42, 0xd2, 0x60, 0x00, 0x59, 0x4d, 0x7f, 0x31, 0x99, 0xc2, 0xae, 0xea, 0x06, 0xae, 0x38, + 0xb4, 0x0b, 0x4c, 0x83, 0xb2, 0x72, 0x34, 0x9e, 0x2c, 0xfe, 0x5d, 0x12, 0x1a, 0x9e, 0x02, 0x20, + 0xfa, 0x96, 0xaf, 0xf8, 0xa2, 0x32, 0x36, 0xc1, 0x49, 0x94, 0xcc, 0x09, 0x77, 0x78, 0x5f, 0xb6, + 0xdd, 0xaf, 0x15, 0xcb, 0xdd, 0x8b, 0x7e, 0x79, 0x6a, 0x2f, 0x4a, 0x74, 0x21, 0x73, 0x24, 0x6b +}; +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