Other Parts Discussed in Thread: MMWAVEICBOOST, IWR6843, UNIFLASH
My module is IWR6843 with mmwaveicboost
And then, I want to design a GUI program by matlab 2021R2.
I used "Uniflash" flash vital_signs_demo_68xx.bin to mmwaveicboost, the "..\68xx_vital_signs\gui\gui_exe" is able to run competely.
When I used matlab sent "alibDcRangeSig -1 0 0 0 0" to mss, the mss returned an error message.
The error message:
calibDcRangeSig -1 0 0 0 0
Error: Number of averaged chirps is not power of two
Error -1
How can I fix this problem??
The code by matlab 2021R2 below:
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;
The return message by matlab 2021R2 below:
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:/>