Xiangyu-Gao / mmWave-radar-signal-processing-and-microDoppler-classification

Codes and template data for paper "Experiments with mmWave Automotive Radar Test-bed"
MIT License
277 stars 66 forks source link

Reading .bin #20

Closed xdindincx closed 3 months ago

xdindincx commented 1 year ago

Hi Xiangyu,

I have a raw adc data file (.bin) I have obtained from Infineon's BGT60TR24C. I have renamed it and placed it in the location as mentioned in read_bin.m. However I am getting an error

Error using reshape
Size arguments must be real integers.

Error in readDCA1000 (line 59)
    LVDS = reshape(LVDS, numADCSamples*numRX, numChirps);

Error in read_bin (line 10)
data = readDCA1000(folder_location, samples);

Here is the file:

bin_data.zip

Can you please help with this.

Thanks.

Xiangyu-Gao commented 1 year ago

Your radar configuration might be different from mine, e.g., numADCSamples, numRX, numChirps, etc.

mahajanpushkar commented 10 months ago

Hi Xiangyu,

I am using IWR6843ISK-ODS and recorded a .bin file from mmWave Industrial Visualizer. On using the function readDCA1000 I get the same error. I am using the correct parameters from my config file and ran code before line generating error of readDCA1000.m (using function as provided in TI docs and you have the same function) and got following outputs:

  1. adcData = 117104x1 double
  2. filesize = 117104
  3. LVDS = 1x58552 complex double
  4. numADCBits = 16
  5. numADCSamples = 384
  6. numChirps = 38.119791666666664
  7. numLanes = 2
  8. numRX = 4

Now the problem is numChirps is not an integer and if I round it off then it can't reshape as (size of LVDS) > (size of numADCSamplesXnumRXXnumChirps).

From config file, 'profileCfg 0 60 216 7 200 0 0 20 1 384 2000 0 0 158' where 384 is the numADC samples.

Here's the bin file. pHistBytes_1.zip.

Could you please suggest what can be wrong? Thank you.

Xiangyu-Gao commented 10 months ago

readDCA1000.m is designed for parsing the ADC data collected from DCA1000 hardware. I did not verify the readDCA1000 for the ADC bin data collected from the mmWave Industrial Visualizer and the bin data format might be different. Besides, 'profileCfg 0 60 216 7 200 0 0 20 1 384 2000 0 0 158' should give a hint of the number of chirps. Is it close to your calculated one 38.119791666666664?