Tema: Re: Asus ir 3G arba 4G internetas. Tomui J. Q
Autorius: klaustukas
Data: 2009-12-17 17:14:30
Aciu, pabandysiu, o esamos konfiguracijos nereikia pasalinti? Jei taip, 
kokiu budu tai padaryti?

Zilvis
"Tomas J." <tomas@novena.lt> wrote in message 
news:hgdfkk$276$1@trimpas.omnitel.net...
> Pabandyk
>
> uzeiname i dir-320:
> telnet 192.168.1.1 (login: admin, passwd: admin)
> sukuriame papke peers
>
> mkdir /tmp/ppp/peers
> paleidziame vidini redaktoriu1. vi
> ir paspaude raide i ikopijuojame (Copy/Paste) vat tai:
> debug
> /dev/usb/tts/0
> 921600
> mtu 1400
> mru 1400
> crtscts
> noipdefault
> ipcp-accept-local
> lcp-echo-interval 60
> lcp-echo-failure 5
> usepeerdns
> noauth
> nodetach
> user 'omni'
> password 'omni'
> connect "/usr/sbin/chat -s -S -V -t 60 -f /tmp/ppp/dialup.chat 
> 2>/tmp/chat.log"
> Spaudziame ESC ir issaugome::w /tmp/ppp/peers/dialup
> Iseiname is redaktoriaus
> :q
>
> Vel paleidziame redaktoriu
> 2. vi
> '' ''
> '' 'ATZ'
> '' 'AT+CFUN=1'
> '' 'AT+CGDCONT=1,IP,omnitel'
> 'OK' 'ATD *99#'
> 'CONNECT' ''
> Vel ESC ir issaugome
> :w /tmp/ppp/dialup.chat
> :q
>
>
>
> 4. Sukuriame dar viena papke:
> mkdir /tmp/local/sbin
>
> 5. Velgi paleidziame redaktoriu ir i ji ikopijuojame vat tai:
>
> #! /bin/sh
> rmmod printer
> insmod usbserial vendor=0x19d2 product=0x0015 maxSize=4096 <- cia savo 
> yrasai vendor produkt
> DEVICE=1
> while true; do
> sleep 5
> if [ -e /dev/usb/tts/${DEVICE} ]; then
> echo 'modem found. call dialup'
> mpcs -c /tmp/local &
> sleep 2
> pppd call dialup
> killall -15 pppd
> rmmod usb-ohci; sleep 2
> insmod usb-ohci; sleep 2
> else
> fi
> done
> Spaudziame ESC ir issaugome:
>
> :w /tmp/local/sbin/post-boot
> :q
>
> 6. Velgi paleidziame redaktoriu ir i ji ikopijuojame vat tai:
>
> #! /bin/sh
> rmmod printer
> insmod usbserial vendor=0x19d2 product=0x0015 maxSize=4096 <- cia savo 
> irasai vendor produkt
> DEVICE=1
> while true; do
> sleep 5
> if [ -e /dev/usb/tts/${DEVICE} ]; then
> echo 'modem found. call dialup'
> mpcs -c /tmp/local &
> sleep 2
> pppd call dialup
> killall -15 pppd
> rmmod usb-ohci; sleep 2
> insmod usb-ohci; sleep 2
> else
> fi
> done
> Spaudziame ESC ir issaugome:
>
> :w /tmp/local/sbin/post-mount
> :q
>
> 7. Sukuriame linkus i ka tik sukurtus failiukus
>
> echo /tmp/ppp/peers/dialup > /tmp/local/.files
> echo /tmp/ppp/dialup.chat >> /tmp/local/.files
> echo /tmp/ppp//tmp/local/sbin/post-mount >> /tmp/local/.files
> echo /tmp/ppp//tmp/local/sbin/post-boot >> /tmp/local/.files
>
> 8. Suteikiame ka tik sukurtam skriptui paleidimo teises:
> chmod +x /tmp/local/sbin/post-boot
>
> 9. Issaugome visa atlikta darba ir perkrauname DIR'a:
> flashfs save && flashfs commit && flashfs enable
> reboot
>
>
>
>
> "klaustukas" <omni@me.net> wrote in message 
> news:hgdelb$ll$1@trimpas.omnitel.net...
>> As naudojau WL500gpv2-1.9.2.7-d-r627M.trx
>> ir dariau toki konfiga:
>>
>> telnet 192.168.1.1 (login: admin, passwd: admin)
>>
>> Sukuriame reikiamus katalogus:
>> mkdir /tmp/local/sbin
>> mkdir /tmp/ppp/peers
>>
>> 3. Sukuriame reikiamus failus:
>>
>> vi /etc/usb_modeswitch.conf
>>
>> CheckSuccess=2
>>
>> # ZTE MF633
>>
>> #
>>
>> # Contributor: Joakim Wennergren
>>
>>
>>
>> DefaultVendor=  0x19d2
>>
>> DefaultProduct= 0x2000
>>
>>
>>
>> TargetVendor=   0x19d2
>>
>> TargetProduct=  0x0031
>>
>>
>>
>> MessageEndpoint=0x01
>>
>>
>>
>> MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
>>
>>
>>
>> # if that command doesn't work, try the other ("eject")
>>
>> MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
>>
>> vi /tmp/local/sbin/post-boot
>>
>> #!/bin/sh
>> chmod 777 /tmp
>> usb_modeswitch
>> sleep 5
>> rmmod usbserial
>> sleep 5
>> s=0
>> DEVICE=2
>> insmod usbserial vendor=0x19d2 product=0x0031 maxSize=4096
>> sleep 10
>> while true; do
>> if [ -e /dev/usb/tts/${DEVICE} ]; then
>> echo 'modem on'
>> /tmp/local/sbin/post-pppd start &
>> sleep 20
>> s=0
>> else
>> echo 'modem off'
>> fi
>> while [ -e /dev/usb/tts/${DEVICE} ]; do
>> if [ -n "`pidof pppd`" ]
>> then
>> sleep 30
>> else
>> break #end while
>> echo "pppd down"
>> fi
>> done
>> echo ''
>> if [ $s = 0 ]; then
>> killall pppd
>> killall -SIGHUP pppd
>> killall /dev/usb/tts/*
>> killall chat
>> killall cat
>> s=1
>> else
>> sleep 30
>> fi
>> done
>>
>> vi /tmp/local/sbin/post-pppd
>>
>> #! /bin/sh
>> sleep 10
>> pppd call dialup
>> sleep 60
>> cat /dev/usb/tts/1 &
>>
>> vi /tmp/ppp/peers/dialup
>>
>> debug
>> /dev/usb/tts/2
>> 921600
>> mtu 1400
>> mru 1400
>> crtscts
>> noipdefault
>> ipcp-accept-local
>> ipcp-accept-remote
>> lcp-echo-interval 180
>> lcp-echo-failure 3
>> mppc
>> maxfail 1
>> usepeerdns
>> defaultroute
>> noauth
>> persist
>> holdoff 10
>> user ''
>> password ''
>> connect "/usr/sbin/chat -s -S -V -t 60 -f /tmp/ppp/dialup.chat 
>> 2>/tmp/chat.log"
>>
>> vi /tmp/ppp/dialup.chat
>>
>> '' ''
>> '' 'ATZ'
>> '' 'AT+CFUN=1'
>> '' 'ATQ0 V1 E1 S0=0 &C1 &D0 +FCLASS=0'
>> '' 'AT+ZSNT=0,0,1'
>> '' 'AT+ZOPRT=5'
>> '' 'AT+ZSTART'
>> '' 'AT+CPBS="SM"'
>> '' 'AT+CPMS="SM","SM",""'
>> '' 'AT+CGDCONT=1,"IP","omnitel"'
>> 'OK' 'ATD *99#'
>> 'CONNECT' ''
>>
>> 4. Viska issaugom su funkcijom:
>> echo /tmp/ppp/peers/dialup > /tmp/local/.files
>> echo /tmp/ppp/dialup.chat >> /tmp/local/.files
>> echo /etc/usb_modeswitch.conf >> /tmp/local/.files
>> chmod +x /tmp/local/sbin/post-boot
>> chmod +x /tmp/local/sbin/post-pppd
>> flashfs save && flashfs commit && flashfs enable && reboot
>>
>> "Tomas J." <tomas@novena.lt> wrote in message 
>> news:hgcvjh$7p3$1@trimpas.omnitel.net...
>>> Viskas gerai, as truputi skriptus pakeiciau nei standartiniai, 
>>> pasileidzia omni connectas tiek isjungus ijungus dlinka, tiek istraukus 
>>> ir atgal ikisus modema.
>>>
>>> "klaustukas" <omni@me.net> wrote in message 
>>> news:hgcojq$s84$1@trimpas.omnitel.net...
>>>> Tomai, tureciau tau klausima: kaip tau startuoja 3G po isjungimo is el. 
>>>> tinklo? Nes pas mane kaipo ir veikia bet jei isjungiu dlink'a is 
>>>> rozetes ir vel ijungiu per telnet matau usb device error'a po keliu 
>>>> software'iniu restartu- pasileidzia.. Butu kokiu minciu? Aciu.
>>>>
>>>> Zilvis
>>>>
>>>> "Tomas J." <tomas@novena.lt> wrote in message 
>>>> news:hgclkm$nnb$1@trimpas.omnitel.net...
>>>>> Kaip cia pasakius apie ju darba, pvz. dlinko DIR-320 firmwaras su 3G 
>>>>> labai nepatiko, stabilumo nulis, perrasius asuso firmwara i ji ir 
>>>>> paburus truputuka dirba stabiliai.
>>>>>
>>>>> "Yksas" <karosas_istrinti@gmail.com> wrote in message 
>>>>> news:hgb3cq$lsh$1@trimpas.omnitel.net...
>>>>>> rasiau, kad pradziai reiktu su 3G, o uz metu kokiu su 4G
>>>>>> Taip kad per metus tiktai tuos draiverius parasys entziastai :)
>>>>>> Dabar idomiausia, ar dirba jis su 3G modemais?
>>>>>> Nes skaiciau, kad nauji routeriai jau defolt dirba su 3G modemais 
>>>>>> naudodami gimtaja firmware
>>>>>>
>>>>>>
>>>>>> "RolF2" <123@123.123> wrote in message news:hg92cf$hqf$1@trimpas.om 
>>>>>> nitel.net...
>>>>>>> RT-N16 sukasi 2.6 kernelis linuxo , ant wl500 - 2.4 . jei sugebesi 
>>>>>>> susikompilint driverius mezono jam - kodel gi ne :)
>>>>>>>
>>>>>>>
>>>>>>> "Yksas" <karosas_istrinti@gmail.com> wrote in message 
>>>>>>> news:hg8j8q$2j9$1@trimpas.omnitel.net...
>>>>>>>> Noriu pradziai per Asus routeri pasileistiOmni Connect(3g), veliau 
>>>>>>>> MEZON (4G)
>>>>>>>>
>>>>>>>> http://mezon.projektas.lt/ raso, kad tinka  WL-500gp, WL-500gpv2 
>>>>>>>> arba WL-500W
>>>>>>>> Atsirades yra modelis Asus RT-N16. Ar kazkas susidure  su siuo 
>>>>>>>> routeriu, ar iseina ji perdirbti?
>>>>>>>> Ar galesiu ji pamaitinti 3g ir 4g internetu, kad jis man per WI-FI 
>>>>>>>> interneta skleistu po visa nama?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>