一 概述
CSE7759B 為單相多功能計量芯片,其提供高頻脈沖 CF 用于電能計量,通過 UART 可以直接讀取電流、電壓和功率的相關參數(shù)(如:系數(shù)、周期);串口波特率為 4800 bps(±2%),8 位數(shù)據(jù),1 位偶校驗,1 停止位。本芯片采用 SOP8 封裝。
CSE7759B 使用 SOP8 封裝。
二 芯片應用
如圖 2 所示,在 CSE7759B 的電源端,應并聯(lián)兩個小電容,以濾除來自電網(wǎng)高頻及低頻噪聲。電流信號通過錳銅電阻采樣后接入 CSE7759B,電壓信號則通過電阻網(wǎng)絡后輸入到 CSE7759B。
注:CSE7759B 為免校準電能計量芯片,芯片出廠校準后偏差為±2%,那么外部器件的精度最終影響客戶產(chǎn)品的整體精度,圖 2 中標識的 1%精度器件,其精度越高則客戶整機精度越高。 從圖 2 可看出,電流通道影響電流精度的元器件為 1mR 錳銅電阻,電壓通道影響電壓精度的元器件為 1M 電阻和與之相連的 1K 電阻,當這三個元器件精度均在±1%內(nèi)時,則 CSE7759B 免校準整機誤差可控制在±3%內(nèi)。 電壓通道 1M 電阻應選擇耐高壓 1000V 1%電阻(或更高精度);否則需拆分成 5 個 0805 1%(或更高精度)電阻。避免使用過程中由于電阻耐壓值不夠,造成整機損壞。 CSE7759B 部分采集強電信號,根據(jù)安規(guī)標準任何人體可能觸碰的地方需進行隔離,圖 2 中使用光耦隔離(客戶自行選擇隔離方式,并不限制)。 選擇零線做地或火線做地均可,建議使用零線做地。
圖 3 為 CSE7759B 非隔離方案,MCU 工作電壓 3.3V。
若 MCU 工作電壓 5V,則 TI 與 MCU 之間接 200R 電阻。
三 數(shù)據(jù)協(xié)議
用戶可以通過 UART 串口協(xié)議(RI、TI)讀取電壓、電流、功率、電量的相關參數(shù),通過運算得到電壓、電流、功率、電量。目前該串口只支持 4800bps 的波特率(允許誤差±2%),接收口 RI 暫時預留,沒有實際功能。串口每隔 50ms 自動將電壓系數(shù)、電壓周期、電流系數(shù)、電流周期、功率系數(shù)、功率周期、校準次數(shù)、CF 脈沖個數(shù)的數(shù)據(jù)包通過 TI 發(fā)送(數(shù)據(jù)以十六進制發(fā)送)。數(shù)據(jù)包的具體格式為:包頭(2*(1byte 數(shù)據(jù)+1bit 偶校驗))→電壓系數(shù)(3*(1byte 數(shù)據(jù)+1bit 偶校驗))→電壓周期(3*(1byte 數(shù)據(jù)+1bit 偶校驗))→電流系數(shù)(3*(1byte 數(shù)據(jù)+1bit 偶校驗))→電流周期(3*(1byte 數(shù)據(jù)+1bit 偶校驗))→功率系數(shù)(3*(1byte 數(shù)據(jù)+1bit 偶校驗))→功率周期(3*(1byte 數(shù)據(jù)+1bit 偶校驗))→校準次數(shù)(1*(1byte 數(shù)據(jù)+1bit 偶校驗))→CF 脈沖個數(shù)(2*(1byte數(shù)據(jù)+1bit 偶校驗))→包尾(1byte 數(shù)據(jù)+1bit 偶校驗)。共 24byte,4800bps 用時 54.912ms
將串口調(diào)試助手中接收到的數(shù)據(jù)提取出來,即
F2 5A 02 CD F8 06 DB 73 00 3F 70 03 CE 34 51 67 D8 B2 66 E6 61 00 00 BE
F2 5A 02 CD F8 06 E0 30 00 3F 70 05 DA 3D 51 67 D8 6C E7 AB 61 00 00 97
F2 5A 02 CD F8 06 E0 30 00 3F 70 05 DA 3D 51 67 D8 6E 81 10 61 00 00 98
F2 5A 02 CD F8 06 E0 30 00 3F 70 05 DA 3D 51 67 D8 70 1A 75 61 00 00 98
F2 5A 02 CD F8 06 E0 30 00 3F 70 05 DA 3D 51 67 D8 71 B4 D9 61 00 00 97
按照“CSE7759B 用戶手冊 V1.1”文檔 3.4 章節(jié)介紹,將第一次數(shù)據(jù)數(shù)據(jù)細化后為
F2 5A 包頭 2 字節(jié)
02 CD F8 電壓系數(shù) 3 字節(jié)
06 DB 73 電壓周期 3 字節(jié)
00 3F 70 電流系數(shù) 3 字節(jié)
03 CE 34 電流周期 3 字節(jié)
51 67 D8 功率系數(shù) 3 字節(jié)
B2 66 E6 功率周期 3 字節(jié)
61 校準次數(shù) 1 字節(jié)
00 00 CF 脈沖個數(shù) 2 字節(jié)
BE 句尾 checksum1 1 字節(jié)
共 24 字節(jié)
注:由用戶手冊表 3-1 可知,每顆芯片的電壓系數(shù)、電流系數(shù)、功率系數(shù)為固定值(第一行黑色粗體字)。
四 組件的使用
注意:芯片供電電壓為5V,所以串口電平也是5V,接主控需要注意。串口波特率4800.
硬件使用開源 4G 空開 DTU 和 CSE7759B 評估板
1 Gitee鏈接地址
Demo位于amaziot_bloom_os_sdksample3rd6.0_CSE7759B
Gitee源碼地址:https://gitee.com/ning./hongdou
Github源碼地址:https://github.com/ayumid/hongdou
編譯指令:.build.bat -l .amaziot_bloom_os_sdksample3rd6.0_CSE7759B
2 組件功能介紹
接收CSE7795B的串口數(shù)據(jù),計算出電壓,電流,功率等參數(shù),并通過OLED實時顯示。
3 代碼講解
1 am_ty_sw_deal_uart_data
功能:該函數(shù)用于,處理串口數(shù)據(jù),從數(shù)據(jù)中計算出電壓,電流,功率等參數(shù)。
參數(shù):
參數(shù) | 釋義 |
inData | 串口數(shù)據(jù)指針 |
recvlen | 串口數(shù)據(jù)長度 |
返回值:1 正常,-1 錯誤
示例:
if (uart_data.port == 0) am_ty_sw_deal_uart_data(uart_data.data,uart_data.len);
2 am_ty_sw_get_VIP_value
功能:該函數(shù)用于,獲取電壓、電流、功率的有限數(shù)據(jù)。
參數(shù):
參數(shù) | 釋義 |
arr | 參數(shù)數(shù)組 |
返回值:0
示例:
voltage_t = am_ty_sw_get_VIP_value(voltage_a);
3 am_ty_sw_need_updata
功能:該函數(shù)用于,檢測電壓電流功率是否需要更新。
參數(shù):
參數(shù) | 釋義 |
arr | 當前參數(shù) |
dat | 保存的舊參數(shù) |
返回值:無
示例:
menu_handle_init(hMENU); // 初始化
4 am_ty_sw_updata_VIP_value
功能:該函數(shù)用于,更新電壓、電流、功率的列表。
參數(shù):
參數(shù) | 釋義 |
arr | 參數(shù)數(shù)組 |
dat | 更新值 |
返回值:無
示例:
am_ty_sw_updata_VIP_value(voltage_a,voltage_t);
5 am_ty_sw_reset_VIP_value
功能:該函數(shù)用于,更新菜單選中下標。
參數(shù):
參數(shù) | 釋義 |
arr | 參數(shù)數(shù)組 |
dat | 更新值 |
返回值:無
示例:
am_ty_sw_reset_VIP_value(power_a,power_t);
4 Demo實戰(zhàn)
4.1 創(chuàng)建一個Demo
復制4.2_hal_UART示例工程,到同一個文件夾下,修改文件名為6.0_CSE7759B,如圖:
4.2 修改makefile
增加文件組件所在目錄頭文件路徑,和源文件路徑,如圖:
4.3 增加頭文件
使用代碼編輯器,將新建的工程文件加入代碼編輯器中,打開main.c,修改main.c,加入am.h等頭文件,如圖:
4.4 修改代碼
在Phase2Inits_exit 創(chuàng)建一個任務,如圖:
4.5 宏定義介紹
sample_uarts_uart_printf
輸出日志到DEBUG 串口,日志比較少,可以輸出到這個串口,如果日志比較多,需要輸出到usb口,以免不必要的問題出現(xiàn)
sample_uarts_catstudio_printf
輸出日志到USB 串口,使用catstudio查看,catstudio查看日志需要更新對應版本mdb.txt文件,軟件打開filtter過濾日志,只查看用戶輸出的日志
SAMPLE_CSE7759B_TASK_STACK_SIZE
棧空間宏定義
4.6 全局變量介紹
sample_cse7795b_task_stack
任務棧空間,本例使用動態(tài)內(nèi)存實現(xiàn),用戶在做項目時,可以預先估算下當先任務需要的大致棧空間,OS沒有提供可以查看棧空間使用情況的API
sample_cse7795b_task_ref
任務指針
sample_cse7759b_oled_stack_ptr
任務棧空間,本例使用動態(tài)內(nèi)存實現(xiàn),用戶在做項目時,可以預先估算下當先任務需要的大致棧空間,OS沒有提供可以查看棧空間使用情況的API
sample_cse7759b_oled_task_ref
OLED任務指針
4.7 函數(shù)介紹
Phase1Inits_enter
底層初始化,本例空
Phase1Inits_exit
底層初始化,本例空
Phase2Inits_enter
底層初始化,本例空
Phase2Inits_exit
創(chuàng)建主任務,初始化消息隊列,定時器,任務等。
代碼片段:
OSA_STATUS status; sample_cse7759b_uart_printf("%s[%d]: starting...n", __FUNCTION__, __LINE__); status = OSAMsgQCreate(&sample_cse7795b_msgq, "sample_cse7795b_msgq", sizeof(uartParam), 300, OS_FIFO); ASSERT(status == OS_SUCCESS); sample_cse7795b_task_stack = malloc(SAMPLE_CSE7759B_TASK_STACK_SIZE); ASSERT(sample_cse7795b_task_stack != NULL); status = OSATaskCreate(&sample_cse7795b_task_ref, sample_cse7795b_task_stack, SAMPLE_CSE7759B_TASK_STACK_SIZE, 82, "sample_cse7759b_uart_thread", sample_cse7759b_uart_thread, NULL); ASSERT(status == OS_SUCCESS); status = OSAMsgQCreate(&sample_cse7795b_oled_msgq, "sample_cse7795b_oled_msgq", sizeof(eleParam), 300, OS_FIFO); ASSERT(status == OS_SUCCESS); sample_cse7759b_oled_stack_ptr = malloc(SAMPLE_CSE7759B_OLED_STACK_SIZE); ASSERT(sample_cse7759b_oled_stack_ptr != NULL); status = OSATaskCreate(&sample_cse7759b_oled_task_ref, sample_cse7759b_oled_stack_ptr, SAMPLE_CSE7759B_OLED_STACK_SIZE, 100, "cse7759b_oled_task", sample_cse7759b_oled_task, NULL); ASSERT(status == OS_SUCCESS);
sample_uarts_main_uart_recv_cbk
串口回調(diào)函數(shù),提供給UART_OPEN 調(diào)用。
代碼片段:
{ uartParam uart_data = {0}; OSA_STATUS osa_status; // UART_SEND_DATA(recv_data, recv_len); char *tempbuf = (char *)malloc(recv_len); memset(tempbuf, 0x0, recv_len); memcpy(tempbuf, (char *)recv_data, recv_len); // // sample_cse7759b_uart_printf("%s[%d]: recv_len:%d", __FUNCTION__, __LINE__, recv_len); uart_data.data = (UINT8 *)tempbuf; uart_data.len = recv_len; uart_data.port = 0; osa_status = OSAMsgQSend(sample_cse7795b_msgq, sizeof(uartParam), (UINT8*)&uart_data, OSA_NO_SUSPEND); ASSERT(osa_status == OS_SUCCESS);
sample_cse7759b_uart_thread
串口數(shù)據(jù)接收任務,收到回調(diào)函數(shù)的消息后,處理消息中的數(shù)據(jù)。
代碼片段:
while (1) { memset(&uart_data, 0x00, sizeof(uartParam)); status = OSAMsgQRecv(sample_cse7795b_msgq, (UINT8 *)&uart_data, sizeof(uartParam), OSA_SUSPEND); //recv data from uart if (status == OS_SUCCESS) { if (uart_data.data) { // for(i = 0; i < uart_data.len; i++) // { // sample_cse7759b_uart_printf("%02X", uart_data.data[i]); // } if (uart_data.port == 0) am_ty_sw_deal_uart_data(uart_data.data,uart_data.len); // UART_SEND_DATA(uart_data.data,uart_data.len); // else if (uart_data.port == 1) // UART3_SEND_DATA(uart_data.data,uart_data.len); // else if (uart_data.port == 2) // UART4_SEND_DATA(uart_data.data,uart_data.len); data = lib_get_cse7759b_data(); // sample_cse7759b_uart_printf("%s[%d] V:%dV I:%dA P:%dW Q:%fKwh", __FUNCTION__, __LINE__, data-?>voltage, data->electricity / 1000, data->power / 1000, data->quantity * 0.001); // sample_cse7759b_uart_printf("%s[%d] V:%dV I:%dmA P:%dmW Q:%fwh", __FUNCTION__, __LINE__, data->voltage, data->electricity, data->power, data->quantity); if((data->quantity - q_temp) > 0.000001) { eleParam *param = malloc(sizeof(eleParam)); memset(param, 0x0, sizeof(eleParam)); param->voltage = data->voltage; param->electricity = data->electricity; param->power = data->power; param->quantity = data->quantity; uart_sdata.data = (UINT8 *)param; uart_sdata.len = sizeof(eleParam); status = OSAMsgQSend(sample_cse7795b_oled_msgq, sizeof(uartParam), (UINT8*)&uart_sdata, OSA_NO_SUSPEND); ASSERT(status == OS_SUCCESS); } q_temp = data->quantity; free(uart_data.data); uart_data.data = NULL; } } }
sample_cse7759b_oled_task
OLED任務,顯示收到的電壓,電流,功率,電量到OLED。
代碼片段:
while(1) { status = OSAMsgQRecv(sample_cse7795b_oled_msgq, (UINT8 *)&uart_data, sizeof(eleParam), OSA_SUSPEND); if (status == OS_SUCCESS) { if (uart_data.data != NULL) { eleparam = (eleParam*)uart_data.data; sample_cse7759b_uart_printf("%s[%d] V:%dV I:%dmA P:%dmW Q:%fwh", __FUNCTION__, __LINE__, eleparam->voltage, eleparam->electricity, eleparam->power, eleparam->quantity); drv_ssd1315_clear(); //顯示漢字 drv_ssd1315_show_chinese(0,0,14,16,1);// drv_ssd1315_show_chinese(18,0,15,16,1);// drv_ssd1315_show_chinese(0,16,16,16,1);// drv_ssd1315_show_chinese(18,16,17,16,1);// drv_ssd1315_show_chinese(0,32,18,16,1);// drv_ssd1315_show_chinese(18,32,19,16,1);// drv_ssd1315_show_chinese(0,48,20,16,1);// drv_ssd1315_show_chinese(18,48,21,16,1);// //顯示字符,數(shù)字 if(eleparam->power > 0) { snprintf(vol, SAMPLE_CSE7759B_DISPLAY_BUF_MAX_LEN, ":%dV", eleparam->voltage); snprintf(curr, SAMPLE_CSE7759B_DISPLAY_BUF_MAX_LEN, ":%dmA", eleparam->electricity); snprintf(power, SAMPLE_CSE7759B_DISPLAY_BUF_MAX_LEN, ":%dmW", eleparam->power); snprintf(quant, SAMPLE_CSE7759B_DISPLAY_BUF_MAX_LEN, ":%.3fwH", eleparam->quantity); drv_ssd1315_show_string(36, 0, (UINT8*)vol, 16, 1); drv_ssd1315_show_string(36, 16, (UINT8*)curr, 16, 1); drv_ssd1315_show_string(36, 32, (UINT8*)power, 16 ,1); drv_ssd1315_show_string(36, 48, (UINT8*)quant, 16, 1); } drv_ssd1315_refresh(); free(uart_data.data); uart_data.data = NULL; } } }
4.8 編譯
在SDK根目錄打開命令行,輸入命令.build.bat -l .amaziot_bloom_os_sdksample3rd6.0_CSE7759B
PS F:3.asr-bcat.1-asr16061.softwareBlOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF λ .build.bat -l .amaziot_bloom_os_sdksample3rd6.0_CSE7759B 子目錄或文件 outbin 已經(jīng)存在。 命令語法不正確。 子目錄或文件 buildobj 已經(jīng)存在。 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/3rd/6.0_CSE7759B' 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=""07 24 2024"" -DBUILD_TIME=""11:24:52"" -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-b/cat.1-asr1606/1.software/BlOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/3rd/6.0_CSE7759Baminc -IF:/3.asr-b/cat.1-asr1606/1.software/BlOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRF/amaziot_bloom_os_sdk/sample/3rd/6.0_CSE7759Batcmdsinc -IF:3.asr-bcat.1-asr16061.softwareBlOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFamaziot_bloom_os_sdklibraries -IF:3.asr-bcat.1-asr16061.softwareBlOOM_OS_1606_OPENCPU_1191_A09_WIHT_NEWRFamaziot_bloom_os_sdklibrariesair_4g_swair_sw4_tuya -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/3rd/6.0_CSE7759B/atcmds/src/ext_at_cmds.c armlink.exe buildobj/main.o buildobj/ext_at_cmds.o buildobj/ext_at_controller.o buildobj/am_ty_sw_ele.o -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.80064a80.0000cde8.80065000|0000cde8->00003000 |This Is LteOnly 4M| |RW_CPZ_2|PS_NCAH |7e388000.80071868.00001300.80068000|00001300->00001000 |This Is LteOnly 4M| |RW_CPZ_3|ITCM |7e3dac00.80072b68.0000f51c.80069000|0000f51c->0000a000 |This Is LteOnly 4M| |RW_CPZ_4|CODE_PS |7e1aa000.80082084.0002fe38.80073000|0002fe38->0001e000 |This Is LteOnly 4M| |RW_CPZ_5|CODEPSB |7e1dc000.800b1ebc.000339c0.80091000|000339c0->0001b000 |This Is LteOnly 4M| |RW_CPZ_6|CODEPSC |7e213000.800e587c.000323ec.800ac000|000323ec->0001b000 |This Is LteOnly 4M| |RW_CPZ_7|CODEPSD |7e249000.80117c68.00028d88.800c7000|00028d88->0001a000 |This Is LteOnly 4M| |RW_CPZ_8|CODEPSE |7e277000.801409f0.0002e310.800e1000|0002e310->0001a000 |This Is LteOnly 4M| |RW_CPZ_9|CODEPSF |7e2a9000.8016ed00.0001c948.800fb000|0001c948->00011000 |This Is LteOnly 4M| |RW_CPZ_A|CODE_PL |7e2ca000.8018b648.0002fa44.8010c000|0002fa44->0001e000 |This Is LteOnly 4M| |RW_CPZ_B|CODEPLB |7e2fa000.801bb08c.00039058.8012a000|00039058->00021000 |This Is LteOnly 4M| |RW_CPZ_C|CODEPLC |7e337000.801f40e4.000268d4.8014b000|000268d4->00011000 |--------|--------|--------.--------.--------.--------|------------------------------| | | 0x002039b8 -> 0x00145000| | | 2.014(MB) -> 1.270(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/3rd/6.0_CSE7759B' "copy NEZHAC_CP_CNR_MIFI_TX.bin to ./ " 已復制 1 個文件。
4.9 生成固件
參考入門中開發(fā)工具,生成工具。
4.10 測試
測試步驟:
參考編譯教程,和文檔開頭的編譯指令,進行編譯
按照編譯教程選擇對應的選項
燒錄
4.11 固件
上電后,debug串口會打印出計算出的數(shù)據(jù);
OLED屏幕會顯示參數(shù)信息
點擊下載 CSE7759B Demo 固件
5 生態(tài)組件鏈接
電量計量芯片
本文章源自奇跡物聯(lián)開源的物聯(lián)網(wǎng)應用知識庫Cellular IoT Wiki,更多技術干貨歡迎關注收藏Wiki:Cellular IoT Wiki 知識庫(https://rckrv97mzx.feishu.cn/wiki/wikcnBvAC9WOkEYG5CLqGwm6PHf)
歡迎同學們走進AmazIOT知識庫的世界!
這里是為物聯(lián)網(wǎng)人構建的技術應用百科,以便幫助你更快更簡單的開發(fā)物聯(lián)網(wǎng)產(chǎn)品。
Cellular IoT Wiki初心:
在我們長期投身于蜂窩物聯(lián)網(wǎng) ODM/OEM 解決方案的實踐過程中,一直被物聯(lián)網(wǎng)技術碎片化與產(chǎn)業(yè)資源碎片化的問題所困擾。從產(chǎn)品定義、芯片選型,到軟硬件研發(fā)和測試,物聯(lián)網(wǎng)技術的碎片化以及產(chǎn)業(yè)資源的碎片化,始終對團隊的產(chǎn)品開發(fā)交付質(zhì)量和效率形成制約。為了減少因物聯(lián)網(wǎng)碎片化而帶來的重復開發(fā)工作,我們著手對物聯(lián)網(wǎng)開發(fā)中高頻應用的技術知識進行沉淀管理,并基于 Bloom OS 搭建了不同平臺的 RTOS 應用生態(tài)。后來我們發(fā)現(xiàn),很多物聯(lián)網(wǎng)產(chǎn)品開發(fā)團隊都面臨著相似的困擾,于是,我們決定向全體物聯(lián)網(wǎng)行業(yè)開發(fā)者開放奇跡物聯(lián)內(nèi)部沉淀的應用技術知識庫 Wiki,期望能為更多物聯(lián)網(wǎng)產(chǎn)品開發(fā)者減輕一些重復造輪子的負擔。
Cellular IoT Wiki沉淀的技術內(nèi)容方向如下:
奇跡物聯(lián)的業(yè)務服務范圍:基于自研的NB-IoT、Cat1、Cat4等物聯(lián)網(wǎng)模組,為客戶物聯(lián)網(wǎng)ODM/OEM解決方案服務。我們的研發(fā)技術中心在石家莊,PCBA生產(chǎn)基地分布在深圳、石家莊、北京三個工廠,滿足不同區(qū)域&不同量產(chǎn)規(guī)模&不同產(chǎn)品開發(fā)階段的生產(chǎn)制造任務。跟傳統(tǒng)PCBA工廠最大的區(qū)別是我們只服務物聯(lián)網(wǎng)行業(yè)客戶。
連接我們,和10000+物聯(lián)網(wǎng)開發(fā)者一起 降低技術和成本門檻
讓蜂窩物聯(lián)網(wǎng)應用更簡單~~
哈哈你終于滑到最重要的模塊了,
千萬不!要!劃!走!忍住沖動!~
歡迎加入飛書“開源技術交流群”,隨時找到我們哦~
點擊鏈接如何加入奇跡物聯(lián)技術話題群(https://rckrv97mzx.feishu.cn/docx/Xskpd1cFQo7hu9x5EuicbsjTnTf)可以獲取加入技術話題群攻略
Hey 物聯(lián)網(wǎng)從業(yè)者,
你是否有了解過奇跡物聯(lián)的官方公眾號“eSIM物聯(lián)工場”呢?
這里是奇跡物聯(lián)的物聯(lián)網(wǎng)應用技術開源wiki主陣地,歡迎關注公眾號,不迷路~
及時獲得最新物聯(lián)網(wǎng)應用技術沉淀發(fā)布
注:本文部分內(nèi)容來源于網(wǎng)絡,如有侵權,請及時聯(lián)系我們。
-
芯片
+關注
關注
453文章
50387瀏覽量
421782 -
物聯(lián)網(wǎng)
+關注
關注
2903文章
44262瀏覽量
371211 -
電能計量
+關注
關注
5文章
109瀏覽量
21879 -
uart
+關注
關注
22文章
1227瀏覽量
101170
發(fā)布評論請先 登錄
相關推薦
評論