AnsweredAssumed Answered

ADALM PLUTO to find RSSI of wifi

Question asked by joe6663 on Aug 12, 2017
Latest reply on Aug 14, 2017 by travisfcollins

I was using the following matlab code to get rssi value

 

clear;
clc;
sdrdev('Pluto');
s = iio_sys_obj_matlab; 
s.ip_address = '192.168.2.1';
s.dev_name = 'ad9361';
s.in_ch_no = 0;
s.out_ch_no = 1;
s.in_ch_size = 0;
s.out_ch_size = 3660;

 


s = s.setupImpl();
Fs = 30.72e6;
Fc = 1e6;
m=length(s.iio_dev_cfg.cfg_ch);
noIp = s.in_ch_no + length(s.iio_dev_cfg.cfg_ch);
input = cell(1, noIp);

t = 1/Fs:1/Fs:s.in_ch_size/Fs;
for i=1:s.in_ch_no
input{i} = data;
end
input{s.in_ch_no+1} = 2.4e9;
input{s.in_ch_no+2} = 40e4;
input{s.in_ch_no+3} = 18.0e2;
input{s.in_ch_no+4} = 'slow_attack';
input{s.in_ch_no+5} = 0;

output = cell(1, s.out_ch_no + length(s.iio_dev_cfg.mon_ch));

for i = 1:5
output = stepImpl(s, input);
rssi1 = output{s.out_ch_no+1};
end

s.releaseImpl();

 

But the value is always +ve (80 - 120)

Did anyone know what could i possibly went wrong

Outcomes