Results 1 to 15 of 68

Thread: [HowTo] GPRS/3G/HSDPA/UMTS USB modem Huawei E220 on Asus router

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #23
    Join Date
    May 2004
    Location
    France...
    Posts
    159
    Hi all,

    I had no problems running koppel fw with an E169 modem, recently i changed my modem for an E220 and i am facing the same problem as malks.

    Soft rebooting does not restore the connection, the only thing that helps is switching power off/on.
    I tried the watch_wan script from newbiefan, but did not help...
    Now i am trying to modify the script to send AT reset command to the modem before restarting PPPD. But it seems that using
    Code:
    echo "ATZ" >> /dev/usb/tts/0
    is not the good way to do this. Any hints ?

    Edit :
    Using
    Code:
    serialcomm /dev/usb/tts/1 <ATCOMMAND>
    i can send commands and read response from the modem. What is weird is that the log reports that ppd is using /dev/usb/tts/0 and i only get errors when trying to communicate with this device...


    Edit 2 :
    Here is my modified watch-wan script
    Code:
    #!/bin/sh
    #Script watch_wan, controls inet connection, when lost - a new dial in is performed
    #Improved script by newbiefan
    #Original script from member Anttu @ asusforum (wl500g.info)
    #published under GPLx (at your coice)
    #a good place to store this script is /tmp/local/sbin/watch_wan
    #this script read the content of file address stored anywhere
    #Content of file address is google.de yahoo.com aldi.de krone.at
    #File address should have at least one address
    #Version 0.2-04/2008
    
    
    maxad=0  #set maxaddresscounter to 0
    # read file addresses into a var called addresses and use them one by one
    #please change the dirs and filename as well as content to your needs
    addresses=google.de yahoo.com aldi.de krone.at   #adjust path if needed 
    #access each address to count how many they are
    for address in ; do
            let maxad=+1  #how many addresses in list
    #        echo 
    done
    #
    #choose any writeable directory and any name for your loglocation
    #loglocation=/tmp/harddisk/wan-watchdog#this is your logfile
    loglocation=/dev/null #if you don't want a logfile, send any message to linux-nirwana
    #
    
    i=1 #start with first address
    sleep 300
    while [ true ]; do  #endless loop 
    
    for address in ; do
      sleep 60#wait 60 seconds until next ping, change it as you want
      ping_resp=#ping address 1,2,3,4,5 aso
    #uncomment the next three lines if you need to control function of script
    #  echo -n .Web address:  >> 
    #  echo  >> 
    #  echo 
      if [  =  ]; then   #if ping is not successful then
          echo -n Connection lost at  >> 
          date >>  
          if [ -n 325 ]; then
             echo Stopping pppd >> 
             echo ------------- >> 
             killall pppd
            else   #if pppd is not running, reboot
             echo Rebooting, pppd is not running! >> 
             echo ------------------------------ >> 
             reboot
          fi
          sleep 60#just wait a bit longer to establish a connection again
      fi
     let i=+1
     if [  -gt  ]; then i=1; fi #end is reached, start again with counter
    done
    done
    I increased the initial delay to 300 seconds, as it seems that 60 secs was too short. Let's see if this helps.......
    Last edited by max2950; 04-08-2009 at 11:01.
    The Struggle Continues...
    Asus WL500g #1 with fw 1.9.2.7-7f running as main home gateway, with Philipps PWC730k
    Asus WL500g #2 with fw 1.9.2.7-7f running as Wireless Client, running palantir 2.6 with SPCA5xx camera on 128MB generic USB key

Similar Threads

  1. Asus RT-N16 & LTE 4G/3G/CDMA modem
    By ua1onp in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 111
    Last Post: 18-08-2017, 17:49
  2. Asus WL-330N3G Travel Router - 3G Router из коробки
    By Romtron in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 24
    Last Post: 09-09-2013, 15:38
  3. [HowTo] Use Dropbox to download torrents on router
    By ryzhov_al in forum WL-500gP Tutorials
    Replies: 1
    Last Post: 13-01-2013, 10:54
  4. 3G USB Modem + Asus
    By dziadek in forum Polish Discussion - Polski (PL)
    Replies: 22
    Last Post: 20-10-2012, 08:21
  5. HOWTO use your WL-500g as IPv6 router
    By phedny in forum WL-500g/WL-500gx Tutorials
    Replies: 8
    Last Post: 17-02-2008, 08:19

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •