Temat: Dziwne zachowanie modemu GSM.
Witam.
Chcialbym troche poporzadkowac temat swojego modemu E173 na Asus 500 v1.
Mianowicie jak nie pilnuje go czy dziala internet (np skryptem tester.sh) i sie rozlaczy, to w logach mam caly czas cos tego typu :
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: ^M
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: ATE1^M^M
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: OK
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: -- got it
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: send (AT+CGDCONT=1,"IP","internet"^M)
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: timeout set to 30 seconds
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: expect (OK)
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: ^M
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: AT+CGDCONT=1,"IP","internet"^M^M
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: OK
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: -- got it
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: send (ATD*99***1#^M)
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: expect (CONNECT)
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: ^M
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: ATD*99***1#^M^M
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: CONNECT
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: -- got it
Oct 21 03:55:50 OpenWrt local2.info chat[14113]: send ( ^M)
Oct 21 03:55:50 OpenWrt daemon.info pppd[2670]: Serial connection established.
Oct 21 03:55:50 OpenWrt daemon.info pppd[2670]: Using interface 3g-wan
Oct 21 03:55:50 OpenWrt daemon.notice pppd[2670]: Connect: 3g-wan <--> /dev/ttyUSB1
Oct 21 03:55:53 OpenWrt daemon.info pppd[2670]: Hangup (SIGHUP)
Oct 21 03:55:53 OpenWrt daemon.notice pppd[2670]: Modem hangup
Oct 21 03:55:53 OpenWrt daemon.notice pppd[2670]: Connection terminated.
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: abort on (BUSY)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: abort on (NO CARRIER)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: abort on (ERROR)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: report (CONNECT)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: timeout set to 10 seconds
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: send (AT&F^M)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: expect (OK)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: AT&F^M^M
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: OK
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: -- got it
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: send (ATE1^M)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: expect (OK)
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: ^M
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: ATE1^M^M
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: OK
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: -- got it
Oct 21 03:56:26 OpenWrt local2.info chat[14148]: send (AT+CGDCONT=1,"IP","internet"^M)
I tak w kolko. Wystraczy, ze wpisze ifup wan i od razu sie podosi bez problemu :
Oct 21 03:58:26 OpenWrt local2.info chat[14360]: send ( ^M)
Oct 21 03:58:26 OpenWrt daemon.info pppd[14355]: Serial connection established.
Oct 21 03:58:26 OpenWrt daemon.info pppd[14355]: Using interface 3g-wan
Oct 21 03:58:26 OpenWrt daemon.notice pppd[14355]: Connect: 3g-wan <--> /dev/ttyUSB1
Oct 21 03:58:30 OpenWrt daemon.warn pppd[14355]: Could not determine remote IP address: defaulting to 10.64.64.64
Oct 21 03:58:30 OpenWrt daemon.notice pppd[14355]: local IP address 109.243.209.248
Oct 21 03:58:30 OpenWrt daemon.notice pppd[14355]: remote IP address 10.64.64.64
Oct 21 03:58:30 OpenWrt daemon.notice pppd[14355]: primary DNS address 89.108.195.20
Oct 21 03:58:30 OpenWrt daemon.notice pppd[14355]: secondary DNS address 217.17.34.10
Oct 21 03:58:31 OpenWrt user.notice ifup: Enabling Router Solicitations on wan (3g-wan)
Oct 21 03:58:33 OpenWrt user.info firewall: adding wan (3g-wan) to zone wan
No i teraz pytanko : co on caly czas robi jak nie ma podlaczenia, po co co kilka sekund tak jakby sie laczy i rozlacza w kolko ? Czy mozna tego uniknac jakos ?
I drugie pytanie : jak mozna zastapic te dziesiatki linii w logach na temat laczenia sie jakims tylko komunikatem typu : 'laczenie'/'rozlaczenie' ?
Fantom