i collected data from a spectrum analyzer and it saved as a .mat file. I confirmed that the signals I collected are baseband signals. Do I still need to create a .bb format file from this data? How is the .mat file different from the .bb file?
8 views (last 30 days)
I collected data of a bluetooth device using a spectrum analyzer. I saved the data as a .mat file to be used in MATLAB. I am trying to use the Communication library to analyze the data. Using the library, I have run across .bb files and most of the communications examples I have seen have used .bb files instead of just the .mat file. What is the difference? My data is already in baseband, do I need to still convert my .mat files to .bb files?
Also, in using the bluetooth toolbox, I have seen in the example that (https://www.mathworks.com/help/comm/examples/bluetooth-low-energy-receiver.html) OQPSK was the modulation type used. Bluetooth utilizes GFSK. Why is OQPSK used in the analysis?
Ajay Pattassery on 30 Dec 2019
It is not mandatory to save base band signal in the .bb format.
comm.BasebandFileWriter object store the base band signals in .bb format.
This object associate properties like Sample rate, Center Frequency, meta data which can be any numeric, logical or character data type and with any number of dimensions.
This additional information that can be associated with the base band signal helps during further data processing whereas with the .mat file with just the base band data, the associated properties needs to stored and tracked separately.
Refer here for more information regarding usage of comm.BasebandFileWriter.
In the Bluetooth Low Energy example link provided, GMSK demodulation is done to retrieve the data bits.
% Extract message information
[cfgLLAdv,pktCnt,crcCnt,remStartIdx] = helperBLEPhyBitRecover(rcvFilt,...
In the above part, the helperBLEPhyBitRecover function uses GMSK demodulator for demodulation.