linux-80211n-csitool-supplementary icon indicating copy to clipboard operation
linux-80211n-csitool-supplementary copied to clipboard

CSI amplitude not stable

Open Statisticss opened this issue 6 years ago • 14 comments

Hi everyone,

When I was plotting the amplitude of CSI, I found that it seems like there are two levels, as the figure shows below: default

I was wondering why it looks like this.., I mean, I sent all the packets in one channel within a very short time, and the Tx and Rx are unmoved. Does the transmitter change its power? But I thought it may be fixed to 15 dBm, right? Has anyone had the similar situation?

@dhalperi @dpward @asifhanif1122 @DiDomenicoSimone @linkin8834

Statisticss avatar May 12 '18 02:05 Statisticss

Hi,

I think that I see this behaviour from time to time. Yes the Txpower is 15dBm but your RX AGC could behave differently for different packets... You might try to plot the scaled version using get_scale_csi (or something similar to this). Also, take a look into the noise level / SNR / RSSI.

linkin8834 avatar May 12 '18 07:05 linkin8834

Thanks for your quick reply! @linkin8834

But actually, this is the result after using the get_scale_csi. I also checked the AGC values, they are all the same (32). The RSSI value is either 37 or 38, but they are not matching the figure, I mean, those packets with RSSI 37 doesn't necessarily the lower lines in the figure. The data was collected in monitor mode so the noise level is unavailable and set to -92 in get_scale_csi by default. BTW, I used only 1 Tx and 1 Rx antenna for testing. And I did several experiments, all of them have the similar situation...

Do you have any suggestions about that? Thanks...

Statisticss avatar May 13 '18 18:05 Statisticss

Hello @Statisticss ,

In fact I also see same issue many times in my experiments.

csi_variation_laptop_as_ap

A large variation in CSI can be seen even if the measurements are taken within a short interval and everything in the room is stationary.

sandeep-bastola avatar Jun 26 '18 13:06 sandeep-bastola

Hello @Statisticss,

The CSI should be reported only when you are in HT mode which means that the receiver will use all 3 antennas to receive it. using only one antenna at rx..how did you collect your data?

lax7 avatar Jul 03 '18 19:07 lax7

@chukku Thanks for your confirmation! @laxima In fact, HT mode doesn't necessarily mean multiple antennas... Please see the MCS table in FAQ 1 for reference

Statisticss avatar Jul 03 '18 19:07 Statisticss

HI @Statisticss , You mentioned you use one antenna at RX, how did you do that? Can you please share and also what rate did you use.

lax7 avatar Jul 11 '18 00:07 lax7

Hi @laxima , sorry for the delay. To use one antenna at Rx, you may want to check #34 I just used 0x4101 as the Tx rate

Statisticss avatar Jul 11 '18 22:07 Statisticss

@Statisticss , thanks for your reply.

lax7 avatar Jul 12 '18 12:07 lax7

@Statisticss are you able to vary/control tx power?

lax7 avatar Jul 15 '18 17:07 lax7

@laxima No I can't

Statisticss avatar Jul 20 '18 18:07 Statisticss

Make sure that you have a good router. Start from two 5300 with 3x3 configuration if you worry about rate adaption problem which might change the TX/RX antenna.

You cannot change Txpower if you are using 5300 with modified firmware and driver enabled. To adjust Txpower, find a router that allows you to change power, e.g., a laptop running soft AP mode with compatible WiFi card (do not use 5300 in this case otherwise you still cannot change your Txpower) then tries to change the Txpower of your AP.

linkin8834 avatar Jul 25 '18 06:07 linkin8834

@linkin8834 Thanks for your suggestion! But I'm wondering that if a router is necessary or not? (I'm currently using laptops with external antennas, and cannot get good results) And about the Tx power changing, I don't quite get it... Do you mean that I can change Tx power with another WiFi card, and then change back to 5300? Because even if I can change Tx power with other WiFi cards, it doesn't make sense since other cards cannot get CSI

Statisticss avatar Jul 25 '18 14:07 Statisticss

@Statisticss If you really want to change TxPower, you need to do it at the transmitter side. To change the TxPower at the transmitter side, you are not allowed to use 5300 as the transmitter since the firmware disallows you to do so.

Therefore, you can use a laptop equipped with another WiFi card and then run hostapd to start an AP. In this case, you should be able to change the TxPower of your AP. Your receiver or client is still a 5300 laptop. As long as the packet from the AP is 802.11n, you should be able to get the CSIs even if the transmitter is non-5300. You can check their FAQ for more details.

Are you experimenting with two laptops in monitor/injection mode? If so, I can get good results all the time. I am using internal antennas for my experiments. In this aspect, it can be problem with your external antennas. Are your external antennas designed for 5GHz?

Also, are you showing the amplitude of raw CSIs in the figure? Is it in linear scale or dB scale?

linkin8834 avatar Jul 25 '18 15:07 linkin8834

@linkin8834 Sorry for the delay, I was traveling these days. Thanks for your answer! I got your point about changing the Tx power. Yes, I'm currently using two laptops in monitor/injection mode, and the picture I posted is the raw CSI data without any processing and it is in linear scale. It could be a problem of my external antennas, thanks for your suggestion! I will check the antennas soon.

Statisticss avatar Aug 08 '18 19:08 Statisticss