Good day all,

I am trying to capture wifi frames using the fmcomms4 and Matlab. I was able to successfully stream data, but I could not get the beacon frame receiver to work.

I looked at the beacon frame receiver example found on the link below

I saw that this example requires Matlab 2014b. I ran the example using Matlab 2014a and I got the following errors.

[ Warning: Attempt to reference field of non-structure array.

Error in getModelResourcesFiles (line 37)

notes = chart.find('-isa', 'Stateflow.Note');

Error in slxPackager/partDefResources>i_save (line 47)

Error in Simulink.SLXPartHandler/pExecute (line 52)

feval(cb,packager);

Error in Simulink.SLXPartHandler/doSave (line 41)

pExecute(obj,packager,cb,'Save');

Error in slxPackager/executeSaveCallbacks (line 59)

Error in slxPackager/save (line 62)

Error in slprivate (line 11)

[varargout{1:nargout}] = feval(function_name, varargin{1:end});

]

It appears that this error is related to the Matlab version. Is there a way to save the capture so that I can use the data to perform Matlab's implementation of the beacon frame receiver example?

Thank You

David

Hi,

If you want to convert the data into a human readable form, e.g. a csv file you can use the hexdump tool.

If you capture one pair of I/Q use `hexdump -e '2/2 "% 8.d,\t" "\n"'`, if you capture two pairs of I/Q use `hexdump -e '4/2 "% 8.d,\t" "\n"'`.

E.g. either directly capture into a csv file use `iio_readdev iio:device4 | hexdump -e '2/2 "% 8.d,\t" "\n"' > capture_data.csv`. An alternative is to first capture the data `iio_readdev iio:device4 > capture_data.bin` and then convert it `hexdump -e '2/2 "% 8.d,\t" "\n"' capture_data.bin > capture_data.csv`.

- Lars