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
is not the good way to do this. Any hints ?Code:echo "ATZ" >> /dev/usb/tts/0
Edit :
Usingi 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...Code:serialcomm /dev/usb/tts/1 <ATCOMMAND>
Edit 2 :
Here is my modified watch-wan script
I increased the initial delay to 300 seconds, as it seems that 60 secs was too short. Let's see if this helps.......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






Reply With Quote
