dhalperi / linux-80211n-csitool-supplementary

802.11n CSI Tool based on iwlwifi and Linux-2.6
http://dhalperi.github.com/linux-80211n-csitool/
195 stars 128 forks source link

the 'db' function belongs to the signal package from Octave Forge but has not yet been implemented. #393

Open chinmoy009 opened 6 years ago

chinmoy009 commented 6 years ago

I am using octave version 4.2.2 and was trying to execute "csi = get_scaled_csi(csi_entry); " command which gave me a warning which states , " the 'db' function belongs to the signal package from Octave Forge but has not yet been implemented." followed by few errors given below-

" error: 'db' undefined near line 21 column 11 error: called from get_total_rss at line 21 column 9 get_scaled_csi at line 12 column 14 "

It seems that db function does not implemented in octave signal package. Is there any way to make that command work on octave?

mirasarkis commented 6 years ago

Im getting the same error, knowing that I've been using the tool since more than a year and it's only now that I got this error.

sidharthpanicker commented 6 years ago

@chinmoy009 @mirasarkis Did you find a solution? We are facing the same issue. Any luck on the problem?

mirasarkis commented 6 years ago

I believe that db refers to decibel. The function db, as called in the csi tool, aims at transforming power ratios into decibel.

So, I just created a function called db that returns10*log(power/1).

Hope this helps. Mira

Le ven. 27 juil. 2018 à 04:43, Sidharth Panicker notifications@github.com a écrit :

@chinmoy009 https://github.com/chinmoy009 @mirasarkis https://github.com/mirasarkis Did you find a solution? We are facing the same issue. Any luck on the problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dhalperi/linux-80211n-csitool-supplementary/issues/393#issuecomment-408294578, or mute the thread https://github.com/notifications/unsubscribe-auth/AFV41JhtKepX5jValkwgfjTPlBo_dy0dks5uKn43gaJpZM4U9IV3 .

Mandar-Kulkarni commented 6 years ago

Hi @mirasarkis , can you elaborate a little? From what I understand, csi_trace struct contains 29 elements which have 29 objects each with every object being a 3x3 matrix. How to exactly calculate the db? Is there any equivalent function in Octave?

duynht commented 6 years ago

@Mandar-Kulkarni based on this documentation we can implement a function that returns the decibel value, which is 10*log(x/1) for power.