linux-80211n-csitool-supplementary
linux-80211n-csitool-supplementary copied to clipboard
No CSI logging after ping
Hi, all. Thank you for sharing your awesome tool. I searched a lot of debugging and followed them but.. when I do the last step---"log_to_file csi.dat"and"ping AP IP " at another terminal, I can't capture any data.
Here are some codes, I tried.
moon@moon-P34V4:~$ sudo modprobe -r iwlwifi mac80211 [sudo] password for moon: rmmod: ERROR: missing module name. modprobe: FATAL: Error running remove command for iwlwifi moon@moon-P34V4:~$ sudo modprobe iwlwifi connector_log=0x1 moon@moon-P34V4:~$ iwconfig eth0 no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
lo no wireless extensions.
moon@moon-P34V4:~$ iw dev wlan0 link Not connected. moon@moon-P34V4:~$ sudo ifconfig wlan0 up moon@moon-P34V4:~$ sudo ifconfig eth0 up moon@moon-P34V4:~$ sudo iwconfig wlan0 essid TEST moon@moon-P34V4:~$ sudo dhclient wlan0 moon@moon-P34V4:~$ sudo linux-80211n-csitool-supplementary/netlink/log_to_file csi.dat ^CCaught signal 2
And ping command at another terminal.
moon@moon-P34V4:~$ ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=2.95 ms ... 64 bytes from 192.168.0.1: icmp_seq=402 ttl=64 time=2.14 ms 64 bytes from 192.168.0.1: icmp_seq=403 ttl=64 time=2.94 ms 64 bytes from 192.168.0.1: icmp_seq=404 ttl=64 time=2.94 ms ^C --- 192.168.0.1 ping statistics --- 404 packets transmitted, 404 received, 0% packet loss, time 403375ms rtt min/avg/max/mdev = 1.218/3.437/25.145/1.803 ms
I can't capture CSI data and csi.dat is empty. So I tried to figure out where I did wrong. here are some codes.
moon@moon-P34V4:~$ uname -a Linux moon-P34V4 4.2.0-36-generic #42~14.04.1-Ubuntu SMP Fri May 13 17:27:22 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux moon@moon-P34V4:~$ iw dev wlan0 link Connected to 00:26:66:6d:d0:6c (on wlan0) SSID: TEST freq: 2467 RX: 2473054 bytes (14741 packets) TX: 191996 bytes (1525 packets) signal: -15 dBm tx bitrate: 65.0 MBit/s MCS 7
bss flags: short-slot-time
dtim period: 1
beacon int: 100
moon@moon-P34V4:~$ sudo iw dev wlan0 scan BSS 00:26:66:6d:d0:6c (on wlan0) -- associated TSF: 1367150066 usec (0d, 00:22:47) freq: 2467 beacon interval: 100 capability: ESS ShortSlotTime APSD (0x0c01) signal: -18.00 dBm last seen: 0 ms ago Information elements from Probe Response frame: SSID: TEST Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 DS Parameter set: channel 12 ERP: Barker_Preamble_Mode Extended supported rates: 6.0* 12.0* 24.0* 48.0 HT capabilities: Capabilities: 0x106e HT20/HT40 SM Power Save disabled RX HT20 SGI RX HT40 SGI No RX STBC Max AMSDU length: 3839 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 4 usec (0x05) HT RX MCS rate indexes supported: 0-15, 32 HT TX MCS rate indexes are undefined HT operation: * primary channel: 12 * secondary channel offset: below * STA channel width: any * RIFS: 0 * HT protection: 20 MHz * non-GF present: 1 * OBSS non-GF present: 0 * dual beacon: 0 * dual CTS protection: 0 * STBC beacon: 0 * L-SIG TXOP Prot: 0 * PCO active: 0 * PCO phase: 0 WMM: * Parameter version 1 * u-APSD * BE: CW 15-1023, AIFSN 3 * BK: CW 15-1023, AIFSN 7 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec * VO: CW 3-7, AIFSN 2, TXOP 1504 usec WPS: * Version: 1.0 * Wi-Fi Protected Setup State: 1 (Unconfigured) * Response Type: 3 (AP) * UUID: bc329e00-1dd8-11b2-8601-0026666dd06c * Manufacturer: Ralink Technology, Corp. * Model: Ralink Wireless Access Point * Model Number: RT2860 * Serial Number: 12345678 * Primary Device Type: 6-0050f204-1 * Device name: RalinkAPS * Config methods: Label, PBC * RF Bands: 0x1 BSS 90:9f:33:5a:8b:90 (on wlan0) TSF: 1835519077 usec (0d, 00:30:35) freq: 2412 .......
moon@moon-P34V4:~$ dmesg | grep -5 -i iwl [ 161.363488] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 161.363491] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 161.363493] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A) [ 161.363495] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 161.363497] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 161.365821] iwlwifi: unknown parameter 'connector_log' ignored [ 161.365934] Intel(R) Wireless WiFi driver for Linux [ 161.365935] Copyright(c) 2003- 2015 Intel Corporation [ 161.366016] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002) [ 161.366325] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-5000-5.ucode failed with error -2 [ 161.366328] iwlwifi 0000:04:00.0: request for firmware file 'iwlwifi-5000-5.ucode' failed. [ 161.366339] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-5000-4.ucode failed with error -2 [ 161.366341] iwlwifi 0000:04:00.0: request for firmware file 'iwlwifi-5000-4.ucode' failed. [ 161.366351] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-5000-3.ucode failed with error -2 [ 161.366352] iwlwifi 0000:04:00.0: request for firmware file 'iwlwifi-5000-3.ucode' failed. [ 161.380128] iwlwifi 0000:04:00.0: Firmware has old API version, expected v5, got v2. [ 161.380131] iwlwifi 0000:04:00.0: New firmware can be obtained from http://www.intellinuxwireless.org/. [ 161.380189] iwlwifi 0000:04:00.0: loaded firmware version 8.24.2.12 op_mode iwldvm [ 161.390574] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUG disabled [ 161.390576] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUGFS enabled [ 161.390577] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled [ 161.390578] iwlwifi 0000:04:00.0: Detected Intel(R) Ultimate N WiFi Link 5300 AGN, REV=0x24 [ 161.390627] iwlwifi 0000:04:00.0: L1 Disabled - LTR Disabled [ 161.416808] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs' [ 182.629349] iwlwifi 0000:04:00.0: L1 Disabled - LTR Disabled [ 182.632992] iwlwifi 0000:04:00.0: Radio type=0x0-0x2-0x0 [ 182.773125] iwlwifi 0000:04:00.0: L1 Disabled - LTR Disabled [ 182.776120] iwlwifi 0000:04:00.0: Radio type=0x0-0x2-0x0 [ 182.805001] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 207.384990] wlan0: authenticate with 00:26:66:6d:d0:6c [ 207.385005] wlan0: capabilities/regulatory prevented using AP HT/VHT configuration, downgraded [ 207.389924] wlan0: send auth to 00:26:66:6d:d0:6c (try 1/3) [ 207.391757] wlan0: authenticated [ 505.883758] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 505.883759] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 505.883761] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A) [ 505.883762] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 505.883763] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 505.924985] iwlwifi 0000:04:00.0: L1 Disabled - LTR Disabled [ 617.860873] r8169 0000:03:00.0 eth0: link down [ 618.477470] cfg80211: World regulatory domain updated: [ 618.477474] cfg80211: DFS Master region: unset [ 618.477476] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 618.477478] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 618.477480] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 618.477482] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A) [ 618.477484] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 618.477485] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [ 618.479657] iwlwifi: unknown parameter 'connector_log' ignored [ 618.479776] Intel(R) Wireless WiFi driver for Linux [ 618.479777] Copyright(c) 2003- 2015 Intel Corporation [ 618.480083] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-5000-5.ucode failed with error -2 [ 618.480086] iwlwifi 0000:04:00.0: request for firmware file 'iwlwifi-5000-5.ucode' failed. [ 618.480095] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-5000-4.ucode failed with error -2 [ 618.480097] iwlwifi 0000:04:00.0: request for firmware file 'iwlwifi-5000-4.ucode' failed. [ 618.480105] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-5000-3.ucode failed with error -2 [ 618.480107] iwlwifi 0000:04:00.0: request for firmware file 'iwlwifi-5000-3.ucode' failed. [ 618.480268] iwlwifi 0000:04:00.0: Firmware has old API version, expected v5, got v2. [ 618.480271] iwlwifi 0000:04:00.0: New firmware can be obtained from http://www.intellinuxwireless.org/. [ 618.480392] iwlwifi 0000:04:00.0: loaded firmware version 8.24.2.12 op_mode iwldvm [ 618.493702] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUG disabled [ 618.493704] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUGFS enabled [ 618.493705] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled [ 618.493706] iwlwifi 0000:04:00.0: Detected Intel(R) Ultimate N WiFi Link 5300 AGN, REV=0x24 [ 618.493755] iwlwifi 0000:04:00.0: L1 Disabled - LTR Disabled [ 618.517774] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs' [ 631.231832] iwlwifi 0000:04:00.0: L1 Disabled - LTR Disabled [ 631.235525] iwlwifi 0000:04:00.0: Radio type=0x0-0x2-0x0 [ 631.375138] iwlwifi 0000:04:00.0: L1 Disabled - LTR Disabled [ 631.378100] iwlwifi 0000:04:00.0: Radio type=0x0-0x2-0x0 [ 631.406984] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 644.503256] wlan0: authenticate with 00:26:66:6d:d0:6c [ 644.503261] wlan0: capabilities/regulatory prevented using AP HT/VHT configuration, downgraded [ 644.507151] wlan0: send auth to 00:26:66:6d:d0:6c (try 1/3) [ 644.508987] wlan0: authenticated
And now I'm checking these questions.
- Do you have the pings being received by both endpoints successfully? yes, I think --- 192.168.0.1 ping statistics --- 404 packets transmitted, 404 received, 0% packet loss, time 403375ms
- Are the packets being transmitted using 802.11n HT rates? I checked my router to be changed n-only mode. but How can I sure my router transmite HT rates?
- Did you install the correct firmware? yes, I think from [ 618.480392] iwlwifi 0000:04:00.0: loaded firmware version 8.24.2.12 op_mode iwldvm
- Did you load the driver with the correct flags? moon@moon-P34V4:~$ sudo modprobe -r iwlwifi mac80211 moon@moon-P34V4:~$ sudo modprobe iwlwifi connector_log=0x1
- Did you re-compile and run log_to_file? moon@moon-P34V4:~$ sudo linux-80211n-csitool-supplementary/netlink/log_to_file csi.dat
Any help would be highly appreciated. Let me know if you want additional info. of my setup. Thank you.
@ekuno90 hi did you solve the problem? Im having the same problem. Can someone please help?
Did you ever solve this issue, i have a similar issue with the network AP i am trying to set up but on a generic WiFi Guest AP it work great every time???
I have the same problem. When pinging, no data are being captured - there are no messages in the terminal window, and the log file remains empty. Can someone please help?
How i read csi data in matlab ? Sm.aghayi@gmail .com
How i read csi data in matlab ? sm.aghayi@gmail .com