26 (edytowany przez morfik 2015-04-29 16:50:07)

Odp: Wifianalyzer

Ten skrypt u mnie coś dziwnie się zachowuje. Jeśli go wywołam, to dostaje:

#  wifianalyzer.sh

plot '/tmp/tmp.Hj1iM9' ind 0:0 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 1:1 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 2:2 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 3:3 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 4:4 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 5:5 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 6:6 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 7:7 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 8:8 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 9:9 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 10:10 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 11:11 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 12:12 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 13:13 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 14:14 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 15:15 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' ind 16:16 using 1:2 noti w filledcurve smooth csplines, '/tmp/tmp.Hj1iM9' every ::1::1  using 1:2:3 w labels center offset 0,1 notitle
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
"/tmp/tmp.lmqvNN", line 30: Can't calculate splines, need at least 3 points

Jeśli wywołam sam gnuplot na /tmp/tmp.lmqvNN , to również mi zwróci ten sam błąd ale jeśli zrobię małą edycję tego pliku, która polega na usunięciu:

'/tmp/tmp.Hj1iM9' ind 8:8 using 1:2 noti w filledcurve smooth csplines, \

z tego pliku tymczasowego, wtedy nagle graf się narysuje, choć to dziwne bo przecie wszystkie te linijki wyglądają tak samo, tylko się numerkami różnią. xD Zawsze jest to pozycja "ind 8:8". Jak przejrzeć ten drugi plik tmp, to 9 (numerowane od 0) sieć w nim (jeśli to w ten sposób operuje), to jest:

-2 0 "PLAY
Internet 4G "PLAY
2 0 "PLAY

W drugiej linijce brakuje numerka. xD

Tu jest wynik ze skanowania tej sieci:

Cell 09 - Address: F4:9F:F3:4E:DF:EA
          ESSID: "PLAY Internet 4G LTE-DFEA"
          Mode: Master  Channel: 6
          Signal: -87 dBm  Quality: 23/70
          Encryption: WPA2 PSK (CCMP)

Tak przejrzałem na szybko te sieci i wychodzi na to, że to jest jedyna co ma spacje w nazwie, temu prawdopodobnie się chrzani skrypt.

27

Odp: Wifianalyzer

@morfik: pełny wynik skanowania pokaż.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

28

Odp: Wifianalyzer

tak, to jest problemem zapewne.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

29

Odp: Wifianalyzer

Już namierzyłem ten problem:

root@the-mountain:/tmp# cat siec | awk  'BEGIN { FS="[:=]"} /Channel:/ { printf "%s ", $3 } /Signal:/ { printf "%d\n",  100 - ($2 * -1)} /ESSID:/ { printf "%s ", $2 }'
 "PLAY Internet 4G LTE-DFEA"  6 13
root@the-mountain:/tmp# cat siec | awk  'BEGIN { FS="[:=]"} /Channel:/ { printf "%s ", $3 } /Signal:/ { printf "%d\n",  100 - ($2 * -1)} /ESSID:/ { printf "%s ", $2 }' |  awk ' { print ($2 - 2)"
 0 "$1"\n"$2" "$3" "$1"\n"($2 + 2)" 0 "$1"\n\n"}'
-2 0 "PLAY
Internet 4G "PLAY
2 0 "PLAY

Chrzani się ten drugi awk w skrypcie:

iwinfo $WLAN s | \
        awk  'BEGIN { FS="[:=]"} /Channel:/ { printf "%s ", $3 } /Signal:/ { printf "%d\n",  100 - ($2 * -1)} /ESSID:/ { printf "%s ", $2 }' | \
        awk ' { print ($2 - 2)" 0 "$1"\n"$2" "$3" "$1"\n"($2 + 2)" 0 "$1"\n\n"}' >  $FILE

30

Odp: Wifianalyzer

Cezary - uzupełniłem poprzedni mój post - nie masz dla mnie jakiejś innej rady oprócz zgłaszania na dev ?

31

Odp: Wifianalyzer

Tu jest skan:

root@the-mountain:/tmp# iwinfo wlan1 s
Cell 01 - Address: 00:12:2A:AF:9A:5A
          ESSID: "FON_NETIA_FREE_INTERNET"
          Mode: Master  Channel: 1
          Signal: -76 dBm  Quality: 34/70
          Encryption: none

Cell 02 - Address: 00:06:4F:98:41:CA
          ESSID: "be@ka.net"
          Mode: Master  Channel: 1
          Signal: -87 dBm  Quality: 23/70
          Encryption: WPA2 PSK (CCMP)

Cell 03 - Address: 00:12:2A:AF:9A:58
          ESSID: "NETIASPOT-AF9A50"
          Mode: Master  Channel: 1
          Signal: -79 dBm  Quality: 31/70
          Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP)

Cell 04 - Address: 00:1C:F0:87:0E:F8
          ESSID: "Mlody"
          Mode: Master  Channel: 6
          Signal: -82 dBm  Quality: 28/70
          Encryption: WPA PSK (TKIP)

Cell 05 - Address: 68:A0:F6:6A:3A:08
          ESSID: "HUAWEI-E5373-3A08"
          Mode: Master  Channel: 11
          Signal: -53 dBm  Quality: 57/70
          Encryption: WPA2 PSK (CCMP)

Cell 06 - Address: 6C:19:8F:09:51:04
          ESSID: "ACER-KOMPUTER_Network_1"
          Mode: Master  Channel: 11
          Signal: -61 dBm  Quality: 49/70
          Encryption: WPA2 PSK (CCMP)

Cell 07 - Address: 00:1C:4A:A3:53:51
          ESSID: "WLAN_HOME_001"
          Mode: Master  Channel: 1
          Signal: -86 dBm  Quality: 24/70
          Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP)

Cell 08 - Address: F4:9F:F3:4E:DF:EA
          ESSID: "PLAY Internet 4G LTE-DFEA"
          Mode: Master  Channel: 6
          Signal: -87 dBm  Quality: 23/70
          Encryption: WPA2 PSK (CCMP)

Cell 09 - Address: 14:DA:E9:7C:93:00
          ESSID: "ASUS"
          Mode: Master  Channel: 8
          Signal: -86 dBm  Quality: 24/70
          Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP)

Cell 10 - Address: 42:09:B4:1A:57:C8
          ESSID: "Darmowe_Orange_WiFi"
          Mode: Master  Channel: 6
          Signal: -85 dBm  Quality: 25/70
          Encryption: none

Cell 11 - Address: 90:F6:52:40:31:4A
          ESSID: "ola"
          Mode: Master  Channel: 10
          Signal: -93 dBm  Quality: 17/70
          Encryption: WPA2 PSK (CCMP)

Cell 12 - Address: 56:7E:77:E7:40:C7
          ESSID: "MAGDA"
          Mode: Ad-Hoc  Channel: 11
          Signal: -85 dBm  Quality: 25/70
          Encryption: none

Cell 13 - Address: 54:E6:FC:A4:E8:B0
          ESSID: "dlink"
          Mode: Master  Channel: 4
          Signal: -80 dBm  Quality: 30/70
          Encryption: WPA2 PSK (TKIP)

Cell 14 - Address: 4C:09:B4:1A:57:C8
          ESSID: "Livebox-57C8"
          Mode: Master  Channel: 6
          Signal: -89 dBm  Quality: 21/70
          Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP)

Cell 15 - Address: 00:22:75:99:9D:1D
          ESSID: "KARO-NET"
          Mode: Master  Channel: 6
          Signal: -89 dBm  Quality: 21/70
          Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP)

Cell 16 - Address: 3E:46:08:B9:EA:05
          ESSID: "Orange_FunSpot"
          Mode: Master  Channel: 6
          Signal: -88 dBm  Quality: 22/70
          Encryption: none

Cell 17 - Address: 00:16:41:F0:CA:52
          ESSID: "neostrada_24b9"
          Mode: Master  Channel: 10
          Signal: -87 dBm  Quality: 23/70
          Encryption: WEP Open/Shared (WEP-40, WEP-104)

32

Odp: Wifianalyzer

Luci też zaczęło co innego pokazywać:

Błąd przetwarzania XML: niedomknięty token
Obszar: https://openwrt.lan:521/cgi-bin/luci/;stok=1f014e135b62f137252702d7413c967a/admin/network/wireless_join?device=radio1
Numer wiersza: 112, kolumna 5:                <a href="/cgi-bin/luci/;stok=1f014e135b62f137252702d7413c967a/admin/network/diagnostics/
--------------------------------^

33

Odp: Wifianalyzer

Weź sobie teraz skrypt i zobacz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

34

Odp: Wifianalyzer

Co ciekawe teraz również iwlist wprost pokazuje:

root@OpenWrt:~# iwlist wlan1 s
wlan1     Interface doesn't support scanning : Device or resource busy

35

Odp: Wifianalyzer

ath10k na AC też nie skanuje.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

36 (edytowany przez build000 2015-04-29 17:45:09)

Odp: Wifianalyzer

Chyba póki co odpuszczę sobie ten temat i przeczekam znów z diagnozą te kilka(set) rewizji oraz ponowię ewentualnie analizę problemu (o ile nadal będzie to nie działać).
Pisałem tu o tym Cezary bo docelowo też bym chciał uruchomić sobie skrypt Wifianalyzer wink