801

Odp: tp-link 3420 z extrootem nie chce pingowac

to poszło ale podłączonych użytkowników nie widzę:
root@Gargoyle:~$ iw dev wlan0 station dump
Station 00:26:b6:9a:e7:08 (on wlan0)
        inactive time:  270 ms
        rx bytes:       4480415
        rx packets:     39511
        tx bytes:       78677084
        tx packets:     61576
        tx retries:     19341
        tx failed:      12
        signal:         -46 dBm
        signal avg:     -42 dBm
        tx bitrate:     65.0 MBit/s MCS 7
        rx bitrate:     65.0 MBit/s MCS 7

802

Odp: tp-link 3420 z extrootem nie chce pingowac

To jest właśnie podłączony użytkownik smile

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

803

Odp: tp-link 3420 z extrootem nie chce pingowac

jak go interpretować w skrypcie jako 1

804

Odp: tp-link 3420 z extrootem nie chce pingowac

iw dev wlan0 station dump | grep Station | wc -l

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

805

Odp: tp-link 3420 z extrootem nie chce pingowac

a co sądzisz o opcji usb=re232+max232+ wyświetlacz

806

Odp: tp-link 3420 z extrootem nie chce pingowac

Witam Czarku
mam takie pytanko jak zmienić skrypt zeby się nie wieszał bo jak areo robi przerwe po godzinie to :
ifconfig: 3g-wan: error fetching interface information: Device not found
ifconfig: 3g-wan: error fetching interface information: Device not found
ifconfig: 3g-wan: error fetching interface information: Device not found
/skrypt.sh: line 34: syntax error:  ( - ) * 100 / 117 / 1024
skrypsik wygląda tak:

#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
PREVD=`ifconfig 3g-wan|grep "RX bytes"|cut -f2 -d":"|cut -f1 -d" "`
PREVU=`ifconfig 3g-wan|grep "RX bytes"|cut -f3 -d":"|cut -f1 -d" "`
PREVUPTIME=`cut -f1 -d" " /proc/uptime|tr -d "."`

while [ 1 ]; do
#ilosc wolnej pamieci
MEMFREE=`grep MemFree /proc/meminfo|cut -c19-24`
MEMBUF=`grep Buffers /proc/meminfo|cut -c19-24`
MEMCACHE=`grep -m1 Cached /proc/meminfo|cut -c19-24`
INFOMEM=$(( $MEMFREE + $MEMBUF + $MEMCACHE ))
#obciazenie procesora
INFOCPU=`cut -c1-4 /proc/loadavg`
#aktualny czas
INFOTIME=`date +"%T"`
#uptime w dniach, oraz roznica czasu miedzy pomiarami
INFOUPTIME=`cut -f1 -d" " /proc/uptime|tr -d "."`
DIFFUPTIME=$(( $INFOUPTIME - $PREVUPTIME ))
PREVUPTIME=$INFOUPTIME
INFOUPTIME=$(( $INFOUPTIME / 8640000 ))
#szybkosc sciagania w kiB/sek
CURRD=`ifconfig 3g-wan|grep "RX bytes"|cut -f2 -d":"|cut -f1 -d" "`
INFODOWNLOAD=$(( ($CURRD - $PREVD) * 100 / $DIFFUPTIME / 1024 ))
PREVD=$CURRD
#szybkosc wysylania w kiB/sek
CURRU=`ifconfig 3g-wan|grep "RX bytes"|cut -f3 -d":"|cut -f1 -d" "`
INFOUPLOAD=$(( ($CURRU - $PREVU) * 100 / $DIFFUPTIME / 1024))
PREVU=$CURRU
#wyslanie wszystkich danych na RS232
echo "AVRLCD;$INFOMEM;$INFOCPU;$INFOTIME;$INFOUPTIME;$INFODOWNLOAD;$INFOUPLOAD">/dev/ttyS0
#odczekanie okolo sekundy i koniec petli
sleep 1
done

807

Odp: tp-link 3420 z extrootem nie chce pingowac

Zrób ifconfig 3g-wan. jak zwróci dane pobieraj dane, jak nie to nie.

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

808

Odp: tp-link 3420 z extrootem nie chce pingowac

Czarku może jakiś przykładzik bo bo za bardzo nie jaże

809

Odp: tp-link 3420 z extrootem nie chce pingowac

A=$(ifconfig 3g-wan 2>/dev/null | grep inet); if [ -n "$A" ]; then echo "jest"; fi

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

810

Odp: tp-link 3420 z extrootem nie chce pingowac

Czarku w którym miejscu to wkleić zeby śmigało?

811

Odp: tp-link 3420 z extrootem nie chce pingowac

Nie masz wklejać, ale przerobić skrypt całkowicie.

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

812

Odp: tp-link 3420 z extrootem nie chce pingowac

zebym jeszcze wiedział jaka zmienna co oznacza to moze bym nad tym popracował

813

Odp: tp-link 3420 z extrootem nie chce pingowac

czarku czemu przy próbie sciągania przez WINSCP z  routera na kompurer pliku o rozmiarze 1.8G router sie rozkłada (restart po około 400mb)

814

Odp: tp-link 3420 z extrootem nie chce pingowac

czarku gdzie wstawiś wywolanie skryptu /skrypt.sh $ zeby uruchamiał się przy starcie systemu bo jak wstawiłem to tu:

DEV=$(awk -F[=\ ] '/P:/ {print $4":"$6}' /proc/bus/usb/devices)
for i in $DEV; do
    P="/etc/usb_modeswitch.d/$i"
    if [ -f "$P" ]; then
        /usr/bin/usb_modeswitch -c "$P"
    fi
done

blkid > /dev/null 2>&1
blkid > /dev/null 2>&1
/skrypt.sh $
exit 0
to router nie wystartował no i wiadomo jeszcze smieci narobił ?

815

Odp: tp-link 3420 z extrootem nie chce pingowac

Dobrze wstawiłeś, ale chyba

/skrypt.sh &

raczej chciałeś. O ile on / jest faktycznie.

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

816

Odp: tp-link 3420 z extrootem nie chce pingowac

Czarku jest jakaś mozliwość połączenia się do openwrt za pośrednictwem Bluetooth a dalej putty .Męcze cię z htc ale nie mogę się z routerem polączyć przez bluta?

817

Odp: tp-link 3420 z extrootem nie chce pingowac

Tak, BT może pełnić rolę dostępowa, więc możesz połączyć. bluez instaluj, na openwrt na forum chyba było coś o konfiguracji.

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

818

Odp: tp-link 3420 z extrootem nie chce pingowac

zainstalowałem wszystkie pakiety  tylko nie mogę sie połączyć  z blutem
oot@Gargoyle:~$ hcitool inq
Inquiring ...
        00:09:2D:00:A2:CF       clock offset: 0x1111    class: 0x100114
root@Gargoyle:~$ l2ping 00:09:2D:00:A2:CF
Ping: 00:09:2D:00:A2:CF from 00:11:67:B3:AB:34 (data size 44) ...
94 bytes from 00:09:2D:00:A2:CF id 0 time 21.00ms
94 bytes from 00:09:2D:00:A2:CF id 1 time 14.69ms
94 bytes from 00:09:2D:00:A2:CF id 2 time 14.72ms
94 bytes from 00:09:2D:00:A2:CF id 3 time 13.33ms
94 bytes from 00:09:2D:00:A2:CF id 4 time 14.76ms
94 bytes from 00:09:2D:00:A2:CF id 5 time 13.46ms
94 bytes from 00:09:2D:00:A2:CF id 6 time 13.46ms
94 bytes from 00:09:2D:00:A2:CF id 7 time 14.76ms
94 bytes from 00:09:2D:00:A2:CF id 8 time 14.72ms
94 bytes from 00:09:2D:00:A2:CF id 9 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 10 time 14.71ms
96 bytes from 00:09:2D:00:A2:CF id 11 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 12 time 13.58ms
96 bytes from 00:09:2D:00:A2:CF id 13 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 14 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 15 time 15.87ms
96 bytes from 00:09:2D:00:A2:CF id 16 time 14.70ms
96 bytes from 00:09:2D:00:A2:CF id 17 time 32.16ms
96 bytes from 00:09:2D:00:A2:CF id 18 time 14.82ms
96 bytes from 00:09:2D:00:A2:CF id 19 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 20 time 13.47ms
96 bytes from 00:09:2D:00:A2:CF id 21 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 22 time 14.68ms
96 bytes from 00:09:2D:00:A2:CF id 23 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 24 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 25 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 26 time 15.98ms
96 bytes from 00:09:2D:00:A2:CF id 27 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 28 time 17.25ms
96 bytes from 00:09:2D:00:A2:CF id 29 time 14.66ms
96 bytes from 00:09:2D:00:A2:CF id 30 time 14.71ms
96 bytes from 00:09:2D:00:A2:CF id 31 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 32 time 13.57ms
96 bytes from 00:09:2D:00:A2:CF id 33 time 14.77ms
96 bytes from 00:09:2D:00:A2:CF id 34 time 14.70ms
96 bytes from 00:09:2D:00:A2:CF id 35 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 36 time 14.71ms
96 bytes from 00:09:2D:00:A2:CF id 37 time 15.75ms
96 bytes from 00:09:2D:00:A2:CF id 38 time 14.70ms
96 bytes from 00:09:2D:00:A2:CF id 39 time 14.76ms
96 bytes from 00:09:2D:00:A2:CF id 40 time 14.70ms
96 bytes from 00:09:2D:00:A2:CF id 41 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 42 time 15.98ms
96 bytes from 00:09:2D:00:A2:CF id 43 time 14.69ms
96 bytes from 00:09:2D:00:A2:CF id 44 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 45 time 14.48ms
96 bytes from 00:09:2D:00:A2:CF id 46 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 47 time 14.44ms
96 bytes from 00:09:2D:00:A2:CF id 48 time 14.71ms
96 bytes from 00:09:2D:00:A2:CF id 49 time 14.56ms
96 bytes from 00:09:2D:00:A2:CF id 50 time 14.69ms
96 bytes from 00:09:2D:00:A2:CF id 51 time 25.66ms
96 bytes from 00:09:2D:00:A2:CF id 52 time 16.22ms
96 bytes from 00:09:2D:00:A2:CF id 53 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 54 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 0 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 1 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 2 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 3 time 15.87ms
96 bytes from 00:09:2D:00:A2:CF id 4 time 14.69ms
96 bytes from 00:09:2D:00:A2:CF id 5 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 6 time 14.71ms
96 bytes from 00:09:2D:00:A2:CF id 7 time 14.75ms
96 bytes from 00:09:2D:00:A2:CF id 8 time 14.70ms
96 bytes from 00:09:2D:00:A2:CF id 9 time 17.15ms
96 bytes from 00:09:2D:00:A2:CF id 10 time 13.56ms
96 bytes from 00:09:2D:00:A2:CF id 11 time 14.54ms
96 bytes from 00:09:2D:00:A2:CF id 12 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 13 time 14.52ms
96 bytes from 00:09:2D:00:A2:CF id 14 time 14.60ms
96 bytes from 00:09:2D:00:A2:CF id 15 time 13.29ms
96 bytes from 00:09:2D:00:A2:CF id 16 time 13.34ms
96 bytes from 00:09:2D:00:A2:CF id 17 time 14.77ms
96 bytes from 00:09:2D:00:A2:CF id 18 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 19 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 20 time 17.12ms
96 bytes from 00:09:2D:00:A2:CF id 21 time 14.35ms
96 bytes from 00:09:2D:00:A2:CF id 22 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 23 time 14.37ms
96 bytes from 00:09:2D:00:A2:CF id 24 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 25 time 14.44ms
96 bytes from 00:09:2D:00:A2:CF id 26 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 27 time 14.39ms
96 bytes from 00:09:2D:00:A2:CF id 28 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 29 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 30 time 27.12ms
96 bytes from 00:09:2D:00:A2:CF id 31 time 14.83ms
96 bytes from 00:09:2D:00:A2:CF id 32 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 33 time 17.11ms
96 bytes from 00:09:2D:00:A2:CF id 34 time 14.36ms
96 bytes from 00:09:2D:00:A2:CF id 35 time 15.97ms
96 bytes from 00:09:2D:00:A2:CF id 36 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 37 time 14.71ms
96 bytes from 00:09:2D:00:A2:CF id 38 time 14.73ms
96 bytes from 00:09:2D:00:A2:CF id 39 time 14.71ms
96 bytes from 00:09:2D:00:A2:CF id 40 time 14.74ms
96 bytes from 00:09:2D:00:A2:CF id 41 time 15.87ms
96 bytes from 00:09:2D:00:A2:CF id 42 time 14.83ms
96 bytes from 00:09:2D:00:A2:CF id 43 time 14.72ms
96 bytes from 00:09:2D:00:A2:CF id 44 time 14.53ms
98 bytes from 00:09:2D:00:A2:CF id 45 time 17.43ms
98 bytes from 00:09:2D:00:A2:CF id 46 time 13.54ms
98 bytes from 00:09:2D:00:A2:CF id 47 time 14.74ms
98 bytes from 00:09:2D:00:A2:CF id 48 time 14.73ms
98 bytes from 00:09:2D:00:A2:CF id 49 time 19.79ms
^C105 sent, 105 received, 0% loss
root@Gargoyle:~$ cd /tmp/lib/bluetooth/*
root@Gargoyle:/tmp/lib/bluetooth/00:11:67:B3:AB:34$ echo "00:09:2D:00:A2:CF 0000" > pinco
des
root@Gargoyle:/tmp/lib/bluetooth/00:11:67:B3:AB:34$

819 (edytowany przez tomasz1111 2012-03-13 13:40:01)

Odp: tp-link 3420 z extrootem nie chce pingowac

niby cos tam na dole wypisuje ale nie wiem nawet który to jest port

root@Gargoyle:~$ sdptool search DUN
Inquiring ...
Searching for DUN on 00:09:2D:00:A2:CF ...
Service Name: SSA
Service RecHandle: 0x10003
Service Class ID List:
  UUID 128: 00001103-0000-1000-8000-00805f9b34fb
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 7
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100



Mar 13 13:07:20 Gargoyle daemon.info hcid[2752]: Unregister path: /org/bluez/hci0
Mar 13 13:07:20 Gargoyle daemon.info hcid[2752]: Stopping SDP server
Mar 13 13:07:20 Gargoyle daemon.info hcid[2752]: Exit
Mar 13 13:07:20 Gargoyle daemon.info hcid[3066]: Bluetooth HCI daemon
Mar 13 13:07:20 Gargoyle daemon.info hcid[3066]: Starting SDP server
Mar 13 13:07:20 Gargoyle daemon.info hcid[3066]: HCI dev 0 registered
Mar 13 13:07:20 Gargoyle daemon.info hcid[3066]: HCI dev 0 already up
Mar 13 13:07:20 Gargoyle daemon.info hcid[3066]: Device hci0 has been added
Mar 13 13:07:20 Gargoyle daemon.info hcid[3066]: Starting security manager 0
Mar 13 13:07:20 Gargoyle daemon.info hcid[3066]: Device hci0 has been activated

820

Odp: tp-link 3420 z extrootem nie chce pingowac

a i jeszce wygląda jak by sterownika do czegoś nie było na samym dole

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=16 #Cfgs=  1
P:  Vendor=1131 ProdID=1004 Rev= 3.73
S:  Manufacturer=ISSC
S:  Product=ISSCEDRBTA
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
I:* If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)

821

Odp: tp-link 3420 z extrootem nie chce pingowac

w ustawieniach znalazłem cos ciekawego  ale jak to ruszyć?


config 'hcid'
    option 'enabled' '1'

config 'hciattach'
    option 'initspeed' '115200'
    option 'tty' 'ttyS1'
    option 'type' 'csr'
    option 'speed' '115200'
    option 'flow' 'noflow'
    option 'enabled' '1'

config 'rfcomm'
    option 'config' '/etc/bluetooth/rfcomm.conf'
    option 'enabled' '0'

config 'dund'
    option 'listen' 'true'
    option 'persist' 'true'
    option 'msdun' 'true'
    option 'interface' 'dund'
    option 'unit' '1'
    option 'pppdopts' 'ktune proxyarp 192.168.1.1:192.168.1.2 ms-dns 192.168.1.1'
    option 'enabled' '0'

config 'pand'
    option 'listen' 'true'
    option 'autozap' 'true'
    option 'role' 'NAP'
    option 'master' 'true'
    option 'persist' 'true'
    option 'enabled' '0'

chodzi mi o interfejs ttyS1

822

Odp: tp-link 3420 z extrootem nie chce pingowac

Czarku jak to ruszyć?

823 (edytowany przez tomasz1111 2012-03-20 22:12:39)

Odp: tp-link 3420 z extrootem nie chce pingowac

Czarku co jest grane zmieniłem modem i error

Booted from EXTERNALL ROOT
root@Gargoyle:~$ /skrypt.sh
Error, serial port '/dev/ttyUSB3' does not exists!
/skrypt.sh: line 56: syntax error:   /1024

824

Odp: tp-link 3420 z extrootem nie chce pingowac

Nie ma takiego interfejsu...

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

825

Odp: tp-link 3420 z extrootem nie chce pingowac

na interfejsie jest usb=rs232 i podaje mi temperature bardaiej chodzi to o ostatnią linijkę