gprs timeout

openSUSE, SUSE Linux Enterprise

Модератор: Модераторы разделов

Ответить
Аватара пользователя
roor
Сообщения: 46

gprs timeout

Сообщение roor »

в общем долго и упорно пытался, настроить GPRS инет через мобильный, увенчалось это дело успехом, но есть одно но, продолжение подключения длится всего лишь 4.9 минуты в среднем, а дальше обрыв :(
вот что пишет messages:
Aug 21 01:31:36 ghost kernel: usb 2-1: generic converter now attached to ttyUSB0
Aug 21 01:31:39 ghost pppd[9524]: pppd 2.4.4 started by root, uid 0
Aug 21 01:31:39 ghost chat[9525]: abort on (BUSY)
Aug 21 01:31:39 ghost chat[9525]: abort on (NO CARIER)
Aug 21 01:31:39 ghost chat[9525]: send (AT^M)
Aug 21 01:31:39 ghost chat[9525]: expect (OK)
Aug 21 01:31:39 ghost chat[9525]: AT^M^M
Aug 21 01:31:39 ghost chat[9525]: OK
Aug 21 01:31:39 ghost chat[9525]: -- got it
Aug 21 01:31:39 ghost chat[9525]: send (AT+CGDCONT=1,"IP","internet","",0,0d*99#^M)
Aug 21 01:31:40 ghost chat[9525]: timeout set to 60 seconds
Aug 21 01:31:40 ghost chat[9525]: expect (CONNECT)
Aug 21 01:31:40 ghost chat[9525]: ^M
Aug 21 01:31:42 ghost chat[9525]: AT+CGDCONT=1,"IP","internet","",0,0d*99#^M^M
Aug 21 01:31:42 ghost chat[9525]: CONNECT
Aug 21 01:31:42 ghost chat[9525]: -- got it
Aug 21 01:31:42 ghost pppd[9524]: Serial connection established.
Aug 21 01:31:42 ghost pppd[9524]: Using interface ppp0
Aug 21 01:31:42 ghost pppd[9524]: Connect: ppp0 <--> /dev/ttyUSB0
Aug 21 01:31:43 ghost pppd[9524]: local IP address 91.145.206.142
Aug 21 01:31:43 ghost pppd[9524]: remote IP address 212.58.163.130
Aug 21 01:31:43 ghost pppd[9524]: primary DNS address 212.58.160.33
Aug 21 01:31:43 ghost pppd[9524]: secondary DNS address 212.58.160.34
Aug 21 01:31:44 ghost modify_resolvconf: Service pppd modified /etc/resolv.conf. See info block in this file
Aug 21 01:31:44 ghost ip-up: SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Aug 21 01:31:44 ghost SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Aug 21 01:31:44 ghost SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Aug 21 01:31:44 ghost SuSEfirewall2: batch committing...
Aug 21 01:31:44 ghost SuSEfirewall2: Firewall rules successfully set
Aug 21 01:31:44 ghost pppd[9524]: Script /etc/ppp/ip-up finished (pid 9532), status = 0x0
Aug 21 01:31:49 ghost ip-up: sendmail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Aug 21 01:31:49 ghost ip-up: sendmail: warning: inet_protocols: configuring for IPv4 support only
Aug 21 01:31:49 ghost ip-up: postqueue: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Aug 21 01:31:49 ghost ip-up: postqueue: warning: inet_protocols: configuring for IPv4 support only
Aug 21 01:32:06 ghost firmware.sh[9701]: Cannot find firmware file 'bcm43xx_microcode5.fw'
Aug 21 01:32:06 ghost kernel: bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
Aug 21 01:32:06 ghost kernel: bcm43xx: core_up for active 802.11 core failed (-2)
Aug 21 01:34:10 ghost kernel: bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
Aug 21 01:34:10 ghost kernel: bcm43xx: core_up for active 802.11 core failed (-2)
Aug 21 01:34:10 ghost firmware.sh[9710]: Cannot find firmware file 'bcm43xx_microcode5.fw'
Aug 21 01:36:14 ghost kernel: bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
Aug 21 01:36:14 ghost kernel: bcm43xx: core_up for active 802.11 core failed (-2)
Aug 21 01:36:14 ghost firmware.sh[9714]: Cannot find firmware file 'bcm43xx_microcode5.fw'
Aug 21 01:36:35 ghost pppd[9524]: LCP terminated by peer (^A)
Aug 21 01:36:35 ghost pppd[9524]: Connect time 4.9 minutes.
Aug 21 01:36:35 ghost pppd[9524]: Sent 25148 bytes, received 204299 bytes.
Aug 21 01:36:36 ghost modify_resolvconf: restored /etc/resolv.conf.saved.by.pppd.ppp0 to /etc/resolv.conf
Aug 21 01:36:36 ghost ip-down: SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Aug 21 01:36:36 ghost SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Aug 21 01:36:36 ghost SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Aug 21 01:36:36 ghost SuSEfirewall2: batch committing...
Aug 21 01:36:36 ghost SuSEfirewall2: Firewall rules successfully set
Aug 21 01:36:36 ghost pppd[9524]: Script /etc/ppp/ip-down finished (pid 9717), status = 0x0
Aug 21 01:36:37 ghost kernel: usb 2-1: USB disconnect, address 38
Aug 21 01:36:37 ghost kernel: usbserial_generic 2-1:1.0: device disconnected
Aug 21 01:36:37 ghost pppd[9524]: Hangup (SIGHUP)
Aug 21 01:36:37 ghost pppd[9524]: Modem hangup
Aug 21 01:36:37 ghost pppd[9524]: Connection terminated.
Aug 21 01:36:37 ghost kernel: generic ttyUSB0: generic converter now disconnected from ttyUSB0
Aug 21 01:36:37 ghost pppd[9524]: Exit.
Aug 21 01:36:37 ghost kernel: usb 2-1: new full speed USB device using ohci_hcd and address 39
Aug 21 01:36:38 ghost kernel: usb 2-1: new device found, idVendor=22b8, idProduct=4224

я так понимаю это все из-за
Aug 21 01:36:35 ghost pppd[9524]: LCP terminated by peer (^A)
только, что это, и как с ним боротся?
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: gprs timeout

Сообщение vr13 »

действительно из-за этого и как буд-то бы происходит по инициативе провайдера (или телефона). нужно включить debug пакетов pppd (см pppd options) и посмотреть что приходит на самом деле, перед тем как завершится pppd

кстати, в "пользу" того, что это инициатива телефона, говорит и то, что тут же, после завершения pppd, разрывается и usbserial соединение
Спасибо сказали:
Аватара пользователя
roor
Сообщения: 46

Re: gprs timeout

Сообщение roor »

на счет дебуг, надо проверить, а телефон действительно после разрыва связи сразу переходит с модемного режима, хотя там минута таймаута
Спасибо сказали:
Аватара пользователя
roor
Сообщения: 46

Re: gprs timeout

Сообщение roor »

мдя, дебаг, ничего нового мне не сказал :(, и что делать я даж не знаю....
Спасибо сказали:
Ответить