一、AES加密功能在物聯網行業中的應用
AES加密功能在物聯網行業中有著廣泛的應用。隨著物聯網技術的不斷發展,越來越多的設備連接到互聯網上,這也增加了數據泄露和網絡攻擊的風險。為了保護物聯網設備和傳輸的數據的安全,AES加密技術被廣泛應用于以下幾個方面:
數據傳輸加密:物聯網設備之間傳輸的數據可以使用AES加密算法進行加密,確保數據在傳輸過程中不被竊取或篡改。
身份驗證:AES加密技術可以用于物聯網設備的身份驗證過程,確保只有合法的設備可以接入物聯網網絡。
安全存儲:物聯網設備上存儲的數據可以使用AES加密算法進行加密,確保數據在設備丟失或被盜時不會被泄露。
總的來說,AES加密技術在物聯網行業中的應用可以提高設備和數據的安全性,保護用戶的隱私和權益。
二、AES加密功能的行業知識介紹
1.AES加密算法定義
AES加密算法(Advanced Encryption Standard)是一種對稱加密算法,也稱為高級加密標準。它是由美國國家標準與技術研究院(NIST)于2001年發布,作為DES加密算法的替代方案。AES加密算法使用128位、192位或256位密鑰對數據進行加密和解密,具有高強度、高速度和易于實現等優點。
2.AES加密算法的原理是什么?
密鑰擴展
根據AES密鑰長度進行密鑰擴展,生成多個輪密鑰。
初始輪
將明文數據分成128位塊,并與第一個輪密鑰進行異或操作。
多輪加密
重復進行多輪加密操作,每輪操作包括四個步驟:
字節替換:將每個字節映射到另一個字節,使用S-Box進行替換。
行移位:對每個128位塊的行進行循環左移,第一行不移動,第二行左移1個字節,第三行左移2個字節,第四行左移3個字節。
列混淆:對每個128位塊的列進行混淆,使用固定矩陣進行乘法運算。
輪密鑰加:將每個128位塊與下一個輪密鑰進行異或操作。
最終輪
最后一輪加密后,將128位塊與最后一個輪密鑰進行異或操作。
輸出
輸出所有塊的加密結果作為密文。
3.AES加密算法的安全性如何?
密鑰長度
AES加密算法支持128位、192位和256位密鑰長度,密鑰長度越長,加密強度越高,可以有效抵御暴力破解和其他攻擊。
算法的強度
AES加密算法采用了高度復雜的算法,包括字節替換、行移位、列混淆等多重操作,使得攻擊者很難找到有效的攻擊路徑。
隨機性和擴散性
AES加密算法具有良好的隨機性和擴散性,能夠抵御差分密碼分析和其他密碼分析攻擊。
算法的公開性
AES加密算法是一種公開的加密算法,任何人都可以使用和實現,這也促進了算法的安全性和可信度。
4.AES加密算法的優點是什么?
安全性高
AES加密算法是一種安全性較高的加密算法,能夠有效抵御暴力破解和其他攻擊。
加密速度快
AES加密算法的加密速度相對較快,尤其是對于128位密鑰長度的加密,可以在硬件上實現高速加密。
硬件實現方便
由于AES加密算法采用了固定的算法結構,因此可以在硬件上實現高效加密。
兼容性好
AES加密算法已經被廣泛應用,許多軟件和硬件設備都支持該算法。
可擴展性強
AES加密算法的密鑰長度可選128位、192位和256位,可以根據安全需求選擇密鑰長度。
開放性好
AES加密算法是一種公開的加密算法,任何人都可以使用和實現。
5.AES加密算法的缺點是什么?
算法復雜度高
AES加密算法的加密過程需要進行多次復雜的操作,包括字節替換、行移位、列混淆等多重操作,因此算法復雜度較高。
密鑰管理困難
AES加密算法需要使用較長的密鑰長度,密鑰管理較為困難,需要特殊的管理措施來保證密鑰的安全性。
密文長度固定
AES加密算法的密文長度固定,無法根據明文長度動態調整,可能會對某些應用場景造成限制。
密文塊的處理
由于AES加密算法是基于塊密碼算法,因此對于大文件的加密需要分塊處理,可能會導致加密速度變慢。
可重放攻擊
在某些情況下,攻擊者可以通過重放加密數據來實現攻擊,這是AES加密算法的一個安全漏洞。
三、AES加密功能的軟件設計方案
1.基于紅豆平臺AES加密源代碼的講解:
int dtu_aes_cipher_encrypt(AM_AES_CIPHER_T* paes)
加密,加密數據、參數的等內容,在AM_AES_CIPHER_T結構體中。
/** * Function : am_aes_cipher_encrypt * Description : * Input : data 加密數據 * exdata 加密后的數據 * data_len 加密數據長度 * Output : * Return : * Auther : zhaoning * Others : **/ int am_aes_cipher_encrypt(AM_AES_CIPHER_T* paes) { int ret = 0; mbedtls_cipher_context_t ctx = {0}; const mbedtls_cipher_info_t* info = NULL; size_t ilen = 0; size_t olen = 0; size_t slen = 0; AM_AES_CIPHER_T* p_aes_cipher = NULL; p_aes_cipher = paes; if(NULL == paes->data || NULL == paes->exdata || NULL == paes->key || NULL == paes->iv || 0 == paes->data_len) { uprintf("%s[%d] params err", __FUNCTION__, __LINE__); return -1; } //初始化cipher結構體 mbedtls_cipher_init(&ctx); //獲取AES模式info info = mbedtls_cipher_info_from_type(p_aes_cipher->type); //設置cipher模式 ret = mbedtls_cipher_setup(&ctx, info); if(0 != ret) { uprintf("%s[%d] setup err", __FUNCTION__, __LINE__); goto exit; } //設置padding模式 ret = mbedtls_cipher_set_padding_mode(&ctx, p_aes_cipher->padding); if(0 != ret) { uprintf("%s[%d] padding err", __FUNCTION__, __LINE__); goto exit; } //設置密鑰 //#ifdef DTU_DATA_PRINTF_DATA_MODE // uprintf("key:%s", dtu_file_ctx->format.key); //#endif /* ifdef DTU_DATA_PRINTF_DATA_MODE.2023-12-21 15:36:29 by: zhaoning */ ret = mbedtls_cipher_setkey(&ctx, p_aes_cipher->key, strlen((void*)p_aes_cipher->key) * 8, MBEDTLS_ENCRYPT); if(0 != ret) { uprintf("%s[%d] setkey err", __FUNCTION__, __LINE__); goto exit; } //設置初始化向量IV //#ifdef DTU_DATA_PRINTF_DATA_MODE // uprintf("iv:%s", dtu_file_ctx->format.iv); //#endif /* ifdef DTU_DATA_PRINTF_DATA_MODE.2023-12-21 15:36:33 by: zhaoning */ ret = mbedtls_cipher_set_iv(&ctx, p_aes_cipher->iv, strlen((void*)p_aes_cipher->iv)); if(0 != ret) { uprintf("%s[%d] setiv err", __FUNCTION__, __LINE__); goto exit; } //更新輸入數據,olen = format_size / 16 ilen = p_aes_cipher->data_len; ret = mbedtls_cipher_update(&ctx, p_aes_cipher->data, ilen, p_aes_cipher->exdata, &olen); if(0 != ret) { uprintf("%s[%d] update err", __FUNCTION__, __LINE__); goto exit; } //#ifdef DTU_DATA_PRINTF_DATA_MODE // temp = malloc(encrypt_len * 2 + 1); // memset(temp, 0, encrypt_len * 2 + 1); // utils_hex2ascii_str(temp, (UINT8*)encrypt, olen); // uprintf("olen:%d", olen); // uprintf("after:%s", temp); // free(temp); //#endif /* ifdef DTU_DATA_PRINTF_DATA_MODE.2023-12-25 15:00:02 by: zhaoning */ //偏移olen = format_size / 16字節,完成最后一個16字節計算 slen = olen; //完成計算,olen = 16 ret = mbedtls_cipher_finish(&ctx, (unsigned char*)(p_aes_cipher->exdata + slen), &olen); if(0 != ret) { uprintf("%s[%d] finish err", __FUNCTION__, __LINE__); goto exit; } //打印加密后的數據,轉為str后,使用uprintf輸出,輸出十六進制多回車換行 #if 0 char* temp = NULL; UINT16 encrypt_len = 0; char arr_temp[33] = {0}; UINT32 p_len = 0; encrypt_len = (data_len / 16 + 1) * 16; temp = malloc(encrypt_len * 2 + 1); p_len = encrypt_len / 16; if(NULL != temp) { memset(temp, 0, encrypt_len * 2 + 1); utils_hex2ascii_str(temp, (UINT8*)exdata, encrypt_len); uprintf("%s[%d] slen:%d olen:%d after encrypt len:%d", __FUNCTION__, __LINE__, slen, olen, encrypt_len); memset(arr_temp, 0, 17); for(UINT32 i = 0; i < p_len;i++) { memcpy(arr_temp, temp + 32 * i, 32); uprintf("%s", arr_temp); } free(temp); } // dtu_send_to_uart(encrypt, encrypt_len); #endif /* ifdef DTU_DATA_PRINTF_DATA_MODE.2023-12-21 11:03:22 by: zhaoning */ exit: //釋放cipher結構體 mbedtls_cipher_free(&ctx); return ret; }
int dtu_aes_cipher_decrypt(AM_AES_CIPHER_T* paes)
解密,解密數據、參數的等內容,在AM_AES_CIPHER_T結構體中。
/** * Function : am_aes_cipher_decrypt * Description : 下行數據處理 * Input : * * Output : * Return : * Auther : zhaoning * Others : **/ int am_aes_cipher_decrypt(AM_AES_CIPHER_T* paes) { int ret = 0; mbedtls_cipher_context_t ctx = {0}; const mbedtls_cipher_info_t* info = NULL; size_t olen = 0; size_t slen = 0; AM_AES_CIPHER_T* p_aes_cipher = NULL; p_aes_cipher = paes; if(NULL == paes->data || NULL == paes->exdata || NULL == paes->key || NULL == paes->iv || 0 == paes->data_len) { uprintf("%s[%d] params err", __FUNCTION__, __LINE__); return -1; } //初始化cipher結構體 mbedtls_cipher_init(&ctx); //獲取AES模式info info = mbedtls_cipher_info_from_type(p_aes_cipher->type); //設置cipher模式 ret = mbedtls_cipher_setup(&ctx, info); if(0 != ret) { uprintf("%s[%d] setup err", __FUNCTION__, __LINE__); goto exit; } //設置padding模式 ret = mbedtls_cipher_set_padding_mode(&ctx, p_aes_cipher->padding); if(0 != ret) { uprintf("%s[%d] padding err", __FUNCTION__, __LINE__); goto exit; } //設置密鑰 ret = mbedtls_cipher_setkey(&ctx, p_aes_cipher->key, strlen((void*)p_aes_cipher->key) * 8, MBEDTLS_DECRYPT); // mbedtls_cipher_setkey(&ctx, (unsigned char*)"]4_PeXYZI_G2KyEf", 128, MBEDTLS_DECRYPT); if(0 != ret) { uprintf("%s[%d] setkey err", __FUNCTION__, __LINE__); goto exit; } //設置初始化向量IV ret = mbedtls_cipher_set_iv(&ctx, p_aes_cipher->iv, strlen((void*)p_aes_cipher->iv)); // mbedtls_cipher_set_iv(&ctx, (unsigned char*)"-5A_#Xi-D1PpS_wD", 16); if(0 != ret) { uprintf("%s[%d] setiv err", __FUNCTION__, __LINE__); goto exit; } //更新輸入數據,olen = format_size / 16 ret = mbedtls_cipher_update(&ctx, p_aes_cipher->data, p_aes_cipher->data_len, p_aes_cipher->exdata, &olen); if(0 != ret) { uprintf("%s[%d] update err", __FUNCTION__, __LINE__); goto exit; } #ifdef DTU_DATA_PRINTF_DATA_MODE // char* temp = NULL; // UINT16 dncrypt_len = 0; // temp = malloc(dncrypt_len * 2 + 1); // memset(temp, 0, dncrypt_len * 2 + 1); // utils_hex2ascii_str(temp, (UINT8*)data->message->payload, data->message->payloadlen); // // uprintf("dl:%s", temp); // free(temp); // uprintf("%s[%d] olen:%d before:%s", __FUNCTION__, __LINE__, olen, data->message->payload); // uprintf("%s[%d] after1:%s", __FUNCTION__, __LINE__, dncrypt); #endif /* ifdef DTU_DATA_PRINTF_DATA_MODE.2023-12-25 15:00:02 by: zhaoning */ //偏移olen = format_size / 16字節,完成最后一個16字節計算 slen = olen; //完成計算,olen = 16 ret = mbedtls_cipher_finish(&ctx, (unsigned char*)(p_aes_cipher->exdata + slen), &olen); if(0 != ret) { uprintf("%s[%d] finish err", __FUNCTION__, __LINE__); goto exit; } //打印加密后的數據,轉為str后,使用uprintf輸出,輸出十六進制多回車換行 // uprintf("%s[%d] after2:%s", __FUNCTION__, __LINE__, dncrypt); #ifdef DTU_DATA_PRINTF_DATA_MODE // char* temp = NULL; // temp = malloc((slen + olen) * 2 + 1); // if(NULL != temp) // { // memset(temp, 0, (slen + olen) * 2 + 1); // utils_hex2ascii_str(temp, (UINT8*)dncrypt, (slen + olen)); // uprintf("%s[%d] slen:%d olen:%d after dncrypt len:%d", __FUNCTION__, __LINE__, slen, olen, dncrypt_len); // uprintf("%s[%d] after:%s", __FUNCTION__, __LINE__, temp); // free(temp); // } #endif /* ifdef DTU_DATA_PRINTF_DATA_MODE.2023-12-21 11:03:22 by: zhaoning */ exit: //釋放cipher結構體 mbedtls_cipher_free(&ctx); return ret; }
2.基于紅豆平臺調用AES加密組件的demo示例:
2.1 創建一個Demo
復制20.2_at_xtu示例工程,到同一個文件夾下,修改文件名為22.1_aes_cipher,如圖:
2.2 修改makefile
增加文件組件所在目錄頭文件路徑,和源文件路徑,以及一些宏定義,如圖:
2.3 增加頭文件
使用代碼編輯器,將新建的工程文件加入代碼編輯器中,打開main.c,修改main.c,加入am.h頭文件,如圖:
2.4 修改代碼
示例使用的是板載5x6卡,用戶的硬件可能是使用外置卡,或者是三合一全網通卡,因為硬件上三種卡使用的模組SIM卡接口不一樣(外置卡SIM1,5x6卡和三合一卡SIM2),所以,需要通過一個全局變量來制定SIM卡硬件接口。
在Phase2Inits_exit 調用文件組件提供的對外API,如圖:
修改main函數中,實現加密解密API調用
2.5 編譯
在SDK根目錄打開命令行,輸入命令.build.bat -l .amaziot_bloom_os_sdksamplelibraries22.1_aes_cipher
PS F:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF λ .build.bat -l .amaziot_bloom_os_sdksamplelibraries22.1_aes_cipher 子目錄或文件 outbin 已經存在。 子目錄或文件 buildmbedTLS 已經存在。 子目錄或文件 buildobj 已經存在。 gnumake: Entering directory `F:/3.asr-b/cat.1-asr1606/1.software/BLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/libraries/22.1_aes_cipher' armcc.exe -c --cpu Cortex-R4 --no_unaligned_access -g -O2 --apcs /inter --diag_suppress 2084,1,2,177,188,223,550,1296,2795,6319,9931,9933 --diag_error=warning --gnu --thumb --loose_implicit_cast -DDATA_COLLECTOR_IMPL -DISPT_OVER_SSP -DDIAG_SSP_DOUBLE_BUFFER_USE_DYNAMIC_ALLOCATION -DENV_XSCALE -DL1_DCXO_ENABLED -DLTE_HIGH_MOBILITY_OPTIMIZATION -DRUN_XIP_MODE -DCRANE_Z2 -DCA_LONG_IPC_MSG -DNEZHA3 -DNEZHA3_1826 -DUPGRADE_PLMS -DUPGRADE_PLMS_SR -DLTE_GSMMULTIBCCH -DGPLC_LTE_RSSI_SCAN -DL1V_NEW_RSSI -DUPGRADE_PLMS_3G -DUPGRADE_PLMS_L1 -DUPGRADE_FG_PLMS -DFG_PLMS_URR -DUPGRADE_L1A_FG_PLMS -DUPGRADE_PLMS_STAGE_2 -DUPGRADE_MBCCH -DMULTI_BCCH_READY_IND -DURR_MRAT_ICS_SEARCH -DUPGRADE_ICS -DMRAT_NAS -DUPGRADE_PLMS_SEARCH_API -DICS_MBCCH -DICS_MBCCH_2G_RSSI -DDIAG_NEWPP -DPHS_SW_DEMO -DPHS_SW_DEMO_TTC -DPHS_SW_DEMO_TTC_PM -DFULL_SYSTEM -D_DDR_INIT_ -D_TAVOR_HARBELL_ -DUPGRADE_ARBEL_PLATFORM -D_TAVOR_B0_SILICON_ -DTDL1C_SPY_ENABLE -DDLM_TAVOR -DTAVOR -DFLAVOR_DUALCORE -DDEBUG_D2_MOR_REG_RESEREVED_ENABLE -D_DIAG_USE_COMMSTACK_ -D_TAVOR_DIAG_ -DPM_DEBUG_MODE_ENABLED -DPM_D2FULL_MODE -DPM_EXT_DBG_INT_ARR -DFEATURE_WB_AMR_PS -DMACRO_FOR_LWG -DHL_LWG -DOPTIMIZE_FOR_2G_BCCH -DPLAT_TEST -D_FDI_USE_OSA_ -DPLAT_USE_THREADX -DLWIP_IPNETBUF_SUPPORT -DCRANE_MCU_DONGLE -DAT_OVER_UART -DPHS_SW_DEMO_TTC_PM -DUPGRADE_LTE_ONLY -DEXT_AT_MODEM_SUPPORT -DLTEONLY_THIN_SINGLE_SIM -DLFS_FILE_SYS -DLFS_FILE_SYS_V2 -DPSM_ENABLE -DNO_PAHO_MQTT -DNO_XML -DNO_LWM2M -DREMOVE_MBEDTLS -DNO_AT_NET -DCRANE_SD_NOT_SUPPORT -DNTP -DYMODEM_EEH_DUMP -DENABLE_DM_LTEONLY -DLTEONLY_THIN -DNO_EXTEND_MY_Q_AT -DNOT_SUPPORT_HTTPS -DNOT_SUPPORT_PM813 -DCRANEL_4MRAM -DREMOVE_PB -DUART_NEW_VERSION -DREMOVE_MEP -DREMOVE_SMS -DREMOVE_ENVSIM -DAPN_INCODE -DLTEONLY_THIN_SINGLE_SIM_2MFLASH -DASR160X_OPENCPU_FEATURE -DENABLE_UART3_FEATRUE -DENABLE_UART4_FEATRUE -DYUGE_MBEDTLS_3_2_1 -DENABLE_MAC_TX_DATA_LOGGING -DDISABLE_NVRAM_ACCESS -DINTEL_UPGRADE_EE_HANDLER_SUPPORT -DLTE_W_PS -DL1_DUAL_MODE -DUPGRADE_HERMON_DUAL -DINTEL_UPGRADE_DUAL_RAT -DINTEL_UPGRADE_GPRS_CIPHER_FLUSH -DUPGRADE_ENHANCED_QUAD_BAND -DINTEL_2CHIP_PLAT -DI_2CHIP_PLAT -DUPGRDE_TAVOR_COMMUNICATION -DRUN_WIRELESS_MODEM -DFLAVOR_DDR12MB_GB1MB5 -DFEATURE_SHMEM -DACIPC_ENABLE_NEW_CALLBACK_MECHANISM -DRELIABLE_DATA -DMAP_NSS -DTV_FNAME=""SW_PLATFORM=PMD2NONE PHS_SW_DEMO PHS_SW_DEMO_PM SRCNUCLEUS FULL_SYSTEM NOACRTC PDFLT PLAT_TEST PV2 DIAGOSHMEM NVM WITHL1V"" -DTV_FDESC=""SW_DESCRIPTION="" -DENABLE_ACIPC -D_DATAOMSL_ENABLED_ -DUSB_CABLE_DETECTION_VIA_PMIC -DMIPS_TEST -DMIPS_TEST_RAM -DFLAVOR_DIET_RAM -DNVM_INCLUDE -DMSL_INCLUDE -DMSL_POOL_MEM -DNO_AUDIO -DOSA_QUEUE_NAMES -D_DIAG_DISABLE_USB_ -DOSA_NUCLEUS -DOSA_USED -DPM_D2NONE_MODE -DCRANE_SOC_TEMPERATURE_SENSOR -DL1_SW_UPDATE_FOR_DIGRF -DPHS_L1_SW_UPDATE_R7 -DUPGRADE_LTE -DFRBD_CALIB_NVM -DFRBD_AGC_CALIB -DFRBD_FDT_CALIB -DHSPA_MPR -DCAPT_PARAMS_OPTIMIZE -DL1_WB_R99_ONLY -DL1V_WB_R99_ONLY -DINTERGRATED_RF_SUPPORT -DL1_RX_DIV_SUPPORT -DENABLE_OOS_HANDLING -DTAVOR_D2_WB_L1_SUPPORT -DL1_DDR_HIGH_FREQ -DUPGRADE_DIGRF3G_SUPPORT -DW_PS_PLUS_G_PAGING -D"NO_APLP=0" -DINTEL_UPGRADE_UNIFIED_VOICE_TASK -DINTEL_UPGRADE_R99 -DAPLP_SPY_ENABLE -D__TARGET_FEATURE_DOUBLEWORD -DWHOLE_UMTS_STACK -DUSE_TTPCOM_CSR_BLUETOOTH_AUDIO_GAIN_CONTROL -DL1_UPGRADE_R5 -DUPGRADE_EDGE -DUPGRADE_R4_FS1 -DINTEL_UPGRADE_GSM_CRL_IF -DUPGRADE_EGPRS_M -DINTEL_UPGRADE_EGPRS_M -DINTEL_UPGRADE_RF_PARAMS_IN_CF_TDS -DINTEL_UPGRADE_2SAMPLES_PER_SYMBOL -D"GPRS_MULTISLOT_CLASS=12" -D"EGPRS_MULTISLOT_CLASS=12" -DMARVELL_UPGRADE_BSIC_REDESIGN -DMSL_INCLUDE -DINTEL_HERMON_SAC -DCRANE_CUST_BUILD -DL1_SW_UPDATE_FOR_DIGRF -DFLAVOR_COM -DSILICON_PV2 -DSILICON_SEAGULL -DSILICON_TTC_CORE_SEAGULL -DPCAC_INCLUDE -Otime -DBUILD_DATE=""02 21 2024"" -DBUILD_TIME=""18:03:58"" -Iatcmdsinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoptelephonyyugeinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalUARTinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalcoreinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalPMUinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalGPIOinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xosposixinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xdiagdiag_logicsrc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xcswSysCfginc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xcswplatforminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xenvwin32inc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xcswBSPinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xcswplatformdev_platbuild -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xososainc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xosthreadxinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xosnu_xscaleinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacpsminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcachttpclientsrc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xdiagdiag_logicinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoptimerinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopintcinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xcswPMinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoppminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilTickManagerinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopBSPinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoptelephonyatcmdsrvinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoptelephonyatparserinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoptelephonysdkinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcachttpclientinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacciinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcaclwipv4v6srcinclude -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcaclwipv4v6srcincludearch -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcaclwipv4v6srcincludeipv4 -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcaclwipv4v6srcincludeipv6 -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcaclwipv4v6srcincludelwip -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcaclwipv4v6srcincludenetif -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopmmi_matinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xtavorArbelinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xtavorenvinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoptelephonymodeminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacdusterinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacfotainc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalI2Cinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalACIPCinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilfatsysflash -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilFDIsrcINCLUDE -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalMMUinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilFDIsrcFDI_ADD -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilFDIsrcFM_INC -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilfatsysfshdr -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutillittlefsinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacttsinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacdialinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilcsw_memoryinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoputilitiesinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopcommpminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilnvminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilEEhandlerinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilEEhandlersrc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopRTCinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhoptelephonyci_clientinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalBT_deviceinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalUARTinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopmrdinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopdmainc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilsoftutilinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhalSPIinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacwebsocketinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacatnet_srvinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xsoftutilfotacomminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xaud_swAudioinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xaud_swACM_COMMinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xaud_swaudio_stubsrc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhopaaminc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xaud_swAudioHALinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xhaldbgshellinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFincludeasr160xpcacopencpuinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFamaziot_bloom_os_sdkutils -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFCSDK_CODEmbedTLSmbedTLS_3_2_1asros -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFCSDK_CODEmbedTLSmbedTLS_3_2_1 -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFCSDK_CODEmbedTLSmbedTLS_3_2_1inc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFCSDK_CODEmbedTLSmbedTLS_3_2_1include -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFCSDK_CODEmbedTLSmbedTLS_3_2_1includembedtls -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFCSDK_CODEmbedTLSmbedTLS_3_2_1incmbedtls -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFCSDK_CODEmbedTLSmbedTLS_3_2_1testsincludetest -DSDK_ENABLE_MBEDTLS -IF:/3.asr-b/cat.1-asr1606/1.software/BLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/libraries/22.1_aes_cipheraminc -IF:/3.asr-b/cat.1-asr1606/1.software/BLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/libraries/22.1_aes_cipher -IF:/3.asr-b/cat.1-asr1606/1.software/BLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/libraries/22.1_aes_cipheratcmdsinc -IF:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/librariesamxtu -o buildobj/ext_at_cmds.o F:/3.asr-b/cat.1-asr1606/1.software/BLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/libraries/22.1_aes_cipher/atcmds/src/ext_at_cmds.c armlink.exe buildobj/main.o buildobj/ext_at_cmds.o buildobj/ext_at_controller.o buildobj/am_aes_cipher.o buildobj/utils_string.o buildCSDK_CODE.lib -o F:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFoutbinArbel_PMD2NONE_40M.axf --via F:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFprebuilt_1606lArbel_PMD2NONE_targ_objliblist.txt --elf --scatter F:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFprebuilt_1606lCrane_DS_4M_Ram_2M_Flash_XIP_CIPSRAM_Common_SingleSIM.sct --predefine="-DLTEONLY_THIN_SINGLE_SIM" --map --symbols --info sizes,totals --list F:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFoutbinArbel_PMD2NONE_40M.map --keep init.o(Header) --keep init.o(Vectors) --diag_suppress 6312,6314,6319,6329 --feedback F:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFoutfeedbackLinkOptLteonlyThin_SingleSim_NoSMS.txt F:3.asr-bcat.1-asr16061.softwareBLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFtoolsbuildimage_1606l.bat SDK_PROD_TYPE : [DM] SDK_CUST_SKU : [THIN_SINGLE_SIM_NO_SMS] SDK_PS_MODE : [LTEONLY] SDK_CHIP_VER : [Z2A0] SDK_OS_TYPE : [TX] Platform Convertion Tools v4.01 with PS option extension Convertion done! |INPUT |outbincp_1606L.bin |MARK |NAME |EXEADDR .LOADADDR.LENGTH .CPZLADDR|COMPRESS STASTIC | |--------|--------|--------.--------.--------.--------|------------------------------| |This Is LteOnly 4M| |RW_CPZ_1|DDR_RW_ |7e119000.8006f1ac.0000cde0.80070000|0000cde0->00003000 |This Is LteOnly 4M| |RW_CPZ_2|PS_NCAH |7e388000.8007bf8c.00001300.80073000|00001300->00001000 |This Is LteOnly 4M| |RW_CPZ_3|ITCM |7e3dac00.8007d28c.0000f51c.80074000|0000f51c->0000a000 |This Is LteOnly 4M| |RW_CPZ_4|CODE_PS |7e1aa000.8008c7a8.00030ce4.8007e000|00030ce4->0001e000 |This Is LteOnly 4M| |RW_CPZ_5|CODEPSB |7e1dc000.800bd48c.000339c0.8009c000|000339c0->0001b000 |This Is LteOnly 4M| |RW_CPZ_6|CODEPSC |7e213000.800f0e4c.000323ec.800b7000|000323ec->0001b000 |This Is LteOnly 4M| |RW_CPZ_7|CODEPSD |7e249000.80123238.00028d88.800d2000|00028d88->0001a000 |This Is LteOnly 4M| |RW_CPZ_8|CODEPSE |7e277000.8014bfc0.0002e310.800ec000|0002e310->0001a000 |This Is LteOnly 4M| |RW_CPZ_9|CODEPSF |7e2a9000.8017a2d0.0001c948.80106000|0001c948->00011000 |This Is LteOnly 4M| |RW_CPZ_A|CODE_PL |7e2ca000.80196c18.0002fa44.80117000|0002fa44->0001e000 |This Is LteOnly 4M| |RW_CPZ_B|CODEPLB |7e2fa000.801c665c.00039058.80135000|00039058->00021000 |This Is LteOnly 4M| |RW_CPZ_C|CODEPLC |7e337000.801ff6b4.000268d4.80156000|000268d4->00011000 |--------|--------|--------.--------.--------.--------|------------------------------| | | 0x0020ef88 -> 0x00150000| | | 2.058(MB) -> 1.313(MB)| |------------------------------------------------------------------------------------| cp_1606L.axf cp_1606L.bin cp_1606L.map gnumake: Leaving directory `F:/3.asr-b/cat.1-asr1606/1.software/BLOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/libraries/22.1_aes_cipher' "copy NEZHAC_CP_CNR_MIFI_TX.bin to ./ " 已復制 1 個文件。
2.6 生成固件
參考入門中開發工具,生成工具。
2.7 查看現象
固件下載到模組,設置參數連接服務器,發送透傳數據,查看服務器數據是否按照配置上報。
配置為AT+FMCFG=1,上報為十六進制數據。配置AT+FMCFG=2,上報JSON數據(注意配置為2,只支持字符串透傳,十六進制盡量配置為1)
(如有侵權,聯系刪除)
審核編輯 黃宇
-
物聯網
+關注
關注
2912文章
44897瀏覽量
375800 -
加密
+關注
關注
0文章
304瀏覽量
23978 -
AES
+關注
關注
0文章
104瀏覽量
33251
發布評論請先 登錄
相關推薦
評論