你好,
我使用的是AWR1443 EVM ES2.0,DCA1000,mmWave Studio v1.0.0.0,参数设置1TX,1RX,1LVDS lane, 1024 samples,8 frames,128 chirps,idle time 1000us,ramp end time 100us,periodicity 300ms,sample rate 15000ksps,data rate 300Mbps。
能够画出图:
获取到的adc_data_RAW_0.bin大小为16542kb,adc_data.bin大小为16383kb。
我觉得很奇怪,为什么adc_data.bin大小为16383kb,而不是16384kb。貌似数据有丢失,少了1kb。为了进一步对数据进行处理,我用了手册里提供的matlab代码进行数据读取,发现确实少了98组IQ数据,无法再进一步操作。
代码如下:
function [retVal, raw_data] = readDCA1000(fileName)
%% global variables
% change based on sensor config
numADCBits = 16; % number of ADC bits per sample
numLanes = 4; % do not change. number of lanes is always 4 even if only 1 lane is used. unused lanes
isReal = 0; % set to 1 if real only data, 0 if complex dataare populated with 0 %% read file and convert to signed number
% read .bin file
fid = fopen(fileName,'r');
% DCA1000 should read in two's complement data
adcData = fread(fid, 'int16');
adcData = adcData(1:8387824,1);
% if 12 or 14 bits ADC per sample compensate for sign extension
if numADCBits ~= 16
l_max = 2^(numADCBits-1)-1;
adcData(adcData > l_max) = adcData(adcData > l_max) – 2^numADCBits;
end
fclose(fid);
%% organize data by LVDS lane
% for real only data
if isReal
% reshape data based on one samples per LVDS lane
adcData = reshape(adcData, numLanes, []);
%for complex data
else
% reshape and combine real and imaginary parts of complex number
adcData = reshape(adcData, numLanes*2, []);
adcData = adcData([1,2,3,4],:) + sqrt(-1)*adcData([5,6,7,8],:);
end
%% return receiver data
retVal = adcData;
请问这是什么问题,我该怎么办。
谢谢,祝好!
Wesley He:
全部都使用默认设置会丢帧吗?
换一台使用不同品牌网卡的电脑,会有同一样的情况发生吗?