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

Committer:
vithyat
Date:
Wed Nov 20 18:58:49 2019 +0000
Revision:
1:0c589850480e
Parent:
0:977e87915078
Child:
2:990c985a69ae
Add support for run time on cloud.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vithyat 1:0c589850480e 1
vithyat 0:977e87915078 2 #ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE
vithyat 0:977e87915078 3 #include MBED_CLOUD_CLIENT_USER_CONFIG_FILE
vithyat 0:977e87915078 4 #endif
vithyat 1:0c589850480e 5
vithyat 0:977e87915078 6 #include <stdint.h>
vithyat 1:0c589850480e 7
vithyat 0:977e87915078 8 #ifdef MBED_CLOUD_DEV_UPDATE_ID
vithyat 1:0c589850480e 9 const uint8_t arm_uc_vendor_id[] = {
vithyat 1:0c589850480e 10 0x8b, 0x9c, 0x29, 0x91, 0xfc, 0xf8, 0x55, 0x8a, 0xa5, 0x30, 0x1d, 0xd4, 0x05, 0xb4, 0x83, 0xb9
vithyat 1:0c589850480e 11 };
vithyat 0:977e87915078 12 const uint16_t arm_uc_vendor_id_size = sizeof(arm_uc_vendor_id);
vithyat 1:0c589850480e 13
vithyat 1:0c589850480e 14 const uint8_t arm_uc_class_id[] = {
vithyat 1:0c589850480e 15 0x95, 0x9e, 0xdf, 0x33, 0xe0, 0x68, 0x55, 0xc2, 0x80, 0x7f, 0xb1, 0x6b, 0xa9, 0x8d, 0x29, 0x6a
vithyat 1:0c589850480e 16 };
vithyat 0:977e87915078 17 const uint16_t arm_uc_class_id_size = sizeof(arm_uc_class_id);
vithyat 0:977e87915078 18 #endif
vithyat 1:0c589850480e 19
vithyat 0:977e87915078 20 #ifdef MBED_CLOUD_DEV_UPDATE_CERT
vithyat 1:0c589850480e 21 const uint8_t arm_uc_default_fingerprint[] = {
vithyat 1:0c589850480e 22 0xc5, 0x76, 0xdf, 0x70, 0xe5, 0x72, 0xfe, 0x9f, 0xdc, 0x4a, 0xba, 0x88, 0x29, 0x92, 0xef, 0x4d,
vithyat 1:0c589850480e 23 0x42, 0x1e, 0x7a, 0x8c, 0x47, 0xa0, 0x4f, 0xb3, 0x6e, 0xe0, 0x9d, 0xcf, 0x54, 0xc1, 0xb2, 0x64
vithyat 1:0c589850480e 24 };
vithyat 0:977e87915078 25 const uint16_t arm_uc_default_fingerprint_size =
vithyat 0:977e87915078 26 sizeof(arm_uc_default_fingerprint);
vithyat 1:0c589850480e 27
vithyat 1:0c589850480e 28 const uint8_t arm_uc_default_subject_key_identifier[] = {
vithyat 1:0c589850480e 29 };
vithyat 1:0c589850480e 30 const uint16_t arm_uc_default_subject_key_identifier_size =
vithyat 1:0c589850480e 31 sizeof(arm_uc_default_subject_key_identifier);
vithyat 1:0c589850480e 32
vithyat 1:0c589850480e 33 const uint8_t arm_uc_default_certificate[] = {
vithyat 1:0c589850480e 34 0x30, 0x82, 0x01, 0x4c, 0x30, 0x81, 0xf4, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x14, 0x5f, 0x83,
vithyat 1:0c589850480e 35 0x92, 0x50, 0xcd, 0xe4, 0xa9, 0x0c, 0x03, 0x1d, 0xd1, 0xa4, 0xee, 0x8c, 0xe8, 0xf6, 0x1c, 0xfa,
vithyat 1:0c589850480e 36 0xf7, 0x29, 0x30, 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x02, 0x30, 0x14,
vithyat 1:0c589850480e 37 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
vithyat 1:0c589850480e 38 0x68, 0x6f, 0x73, 0x74, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x39, 0x31, 0x31, 0x32, 0x30, 0x31, 0x38,
vithyat 1:0c589850480e 39 0x34, 0x38, 0x31, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x31, 0x31, 0x32, 0x30, 0x30, 0x35, 0x30,
vithyat 1:0c589850480e 40 0x30, 0x30, 0x30, 0x5a, 0x30, 0x14, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
vithyat 1:0c589850480e 41 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x30, 0x59, 0x30, 0x13, 0x06, 0x07,
vithyat 1:0c589850480e 42 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02, 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01,
vithyat 1:0c589850480e 43 0x07, 0x03, 0x42, 0x00, 0x04, 0x7a, 0x82, 0x06, 0xec, 0x80, 0xc6, 0x86, 0x36, 0x34, 0xac, 0x38,
vithyat 1:0c589850480e 44 0xd5, 0x0b, 0x3a, 0x0f, 0xd5, 0x9d, 0xd2, 0x4e, 0x02, 0xfe, 0x4a, 0x62, 0x1d, 0xcf, 0x4c, 0xc2,
vithyat 1:0c589850480e 45 0x1e, 0xa6, 0x93, 0x93, 0xf4, 0x91, 0xbb, 0xb9, 0x5f, 0xa9, 0x1c, 0xbb, 0xbb, 0x74, 0xc5, 0x66,
vithyat 1:0c589850480e 46 0x17, 0x70, 0xb7, 0x3b, 0xb5, 0x07, 0x98, 0xc4, 0x0e, 0x8e, 0x99, 0x62, 0x41, 0xe3, 0x12, 0x4c,
vithyat 1:0c589850480e 47 0x70, 0x6a, 0x84, 0xf2, 0xdc, 0xa3, 0x24, 0x30, 0x22, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x1d, 0x0f,
vithyat 1:0c589850480e 48 0x04, 0x04, 0x03, 0x02, 0x07, 0x80, 0x30, 0x13, 0x06, 0x03, 0x55, 0x1d, 0x25, 0x04, 0x0c, 0x30,
vithyat 1:0c589850480e 49 0x0a, 0x06, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03, 0x30, 0x0a, 0x06, 0x08, 0x2a,
vithyat 1:0c589850480e 50 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x02, 0x03, 0x47, 0x00, 0x30, 0x44, 0x02, 0x20, 0xad, 0x42,
vithyat 1:0c589850480e 51 0x89, 0x42, 0xd2, 0x60, 0x00, 0x59, 0x4d, 0x7f, 0x31, 0x99, 0xc2, 0xae, 0xea, 0x06, 0xae, 0x38,
vithyat 1:0c589850480e 52 0xb4, 0x0b, 0x4c, 0x83, 0xb2, 0x72, 0x34, 0x9e, 0x2c, 0xfe, 0x5d, 0x12, 0x1a, 0x9e, 0x02, 0x20,
vithyat 1:0c589850480e 53 0xfa, 0x96, 0xaf, 0xf8, 0xa2, 0x32, 0x36, 0xc1, 0x49, 0x94, 0xcc, 0x09, 0x77, 0x78, 0x5f, 0xb6,
vithyat 1:0c589850480e 54 0xdd, 0xaf, 0x15, 0xcb, 0xdd, 0x8b, 0x7e, 0x79, 0x6a, 0x2f, 0x4a, 0x74, 0x21, 0x73, 0x24, 0x6b
vithyat 1:0c589850480e 55 };
vithyat 1:0c589850480e 56 const uint16_t arm_uc_default_certificate_size = sizeof(arm_uc_default_certificate);
vithyat 1:0c589850480e 57 #endif
vithyat 1:0c589850480e 58
vithyat 1:0c589850480e 59
vithyat 1:0c589850480e 60 #ifdef MBED_CLOUD_DEV_UPDATE_PSK
vithyat 1:0c589850480e 61 const uint8_t arm_uc_default_psk[] = {
vithyat 1:0c589850480e 62
vithyat 1:0c589850480e 63 };
vithyat 1:0c589850480e 64 const uint8_t arm_uc_default_psk_size = sizeof(arm_uc_default_psk);
vithyat 1:0c589850480e 65 const uint16_t arm_uc_default_psk_bits = sizeof(arm_uc_default_psk)*8;
vithyat 1:0c589850480e 66
vithyat 1:0c589850480e 67 const uint8_t arm_uc_default_psk_id[] = {
vithyat 1:0c589850480e 68
vithyat 1:0c589850480e 69 };
vithyat 1:0c589850480e 70 const uint8_t arm_uc_default_psk_id_size = sizeof(arm_uc_default_psk_id);
vithyat 1:0c589850480e 71 #endif