This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843AOPEVM: matlab與mss傳輸.cfg問題

Part Number: IWR6843AOPEVM
Other Parts Discussed in Thread: IWR6843, UNIFLASH, MMWAVEICBOOST

我使用的模組是 IWR6843 + mmaveicboost

然後想利用 matlab 仿製一個 GUI 介面

利用 Uniflash 燒錄 vital_signs_demo_68xx.bin 到 mmwaveicboost 後

執行 ..\68xx_vital_signs\gui\gui_exe 時可以完全正常使用

但是當我利用 matlab 跟 mss 進行設定時

在 calibDcRangeSig -1 0 0 0 0 出現 ERROR

從 mss 回傳的訊息:

calibDcRangeSig -1 0 0 0 0

Error: Number of averaged chirps is not power of two

Error -1

想請問如何解決此問題呢?謝謝!!

以下是我的代碼 by matlab 2021R2:

clc,close,clear;

threshold_breath=10;
threshold_heart=0.1;
plot_yaxis_max_breath=1.0;
plot_yaxis_max_heart=0.5;

user_com=serialport("COM3",115200);
data_com=serialport("COM4",921600);

flush(user_com);
flush(data_com);

cfg=[
    "sensorStop",...
    "flushCfg",...
    "dfeDataOutputMode 1",...
    "channelCfg 15 3 0",...
    "adcCfg 2 1",...
    "adcbufCfg -1 0 0 1 0",...
    "profileCfg 0 60.25 7 6 57 0 0 65 1 200 4000 0 0 40",...
    "chirpCfg 0 0 0 0 0 0 0 1",...
    "frameCfg 0 0 2 0 50 1 0",...
    "lowPower 0 1",...
    "guiMonitor 0 0 0 0 1",...
    "calibDcRangeSig -1 0 0 0 0",...
    "vitalSignsCfg 0.3 0.9 256 512 4 0.1 0.05 100000 300000",...
    "motionDetection 1 20 2.0 0",...
    "sensorStart",...
    ];

for index=1:15
    writeline(user_com,cfg(index));
    pause(0.5);
    disp(read(user_com,user_com.NumBytesAvailable,"string"));
end

clear user_com;
clear data_com;

以下是回傳的資料 by matlab 2021R2:

sensorStop
Done

mmwDemo:/>
flushCfg
Done

mmwDemo:/>
dfeDataOutputMode 1
Done

mmwDemo:/>
channelCfg 15 3 0
Done

mmwDemo:/>
adcCfg 2 1
Done

mmwDemo:/>
adcbufCfg -1 0 0 1 0
Done

mmwDemo:/>
profileCfg 0 60.25 7 6 57 0 0 65 1 200 4000 0 0 40
Done

mmwDemo:/>
chirpCfg 0 0 0 0 0 0 0 1
Done

mmwDemo:/>
frameCfg 0 0 2 0 50 1 0
Done

mmwDemo:/>
lowPower 0 1
Done

mmwDemo:/>
guiMonitor 0 0 0 0 1
Done

mmwDemo:/>
calibDcRangeSig -1 0 0 0 0
Error: Number of averaged chirps is not power of two

Error -1

mmwDemo:/>
vitalSignsCfg 0.3 0.9 256 512 4 0.1 0.05 100000 300000
Done

mmwDemo:/>
motionDetection 1 20 2.0 0
Done

mmwDemo:/>
sensorStart
Debug: Init Calibration Status = 0xffe

Done

mmwDemo:/>