1,676

(27 odpowiedzi, napisanych Oprogramowanie / Software)

Niestety moja radość z uruchomienia modemu nie trwała długo. Modem notorycznie się zawiesza. Czasami po 15 minutach, a czasami po kilkudziesięciu sekundach (podobnie jak w przypadku modemu adsl SpeedTouch 330 z tym, że połączenie trwa trochę dłużej).

Czasami podczas uruchomienia dostaję taki błąd:

May 31 10:36:35 OpenWrt user.err kernel: usb-ohci.c: OHCI Unrecoverable Error, controller usb-00:03.0 disabled

Czy to ewidentna wina driver'ów czy może sprzętu?

1,677

(27 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

A tu jest dobrze. Tylko zdechło po 10s z braku połączenia z drugiej strony. Nie masz czasami dziś problemów z zasięgiem czy transmisją z tym operatorem?

Faktycznie chyba mam jakiś problem z operatorem. Włożyłem do modemu innego sim'a (inny operator) i wszystko działa smile
Dziękuję za pomoc.

1,678

(27 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Sugerował bym jednak żebyś korzystał z /dev/usb/tts/0

Dla /dev/usb/tts/0 otrzymuję:

May 31 10:35:03 OpenWrt user.info kernel: hub.c: new USB device 00:03.0-1, assigned address 2
May 31 10:35:03 OpenWrt user.info kernel: usbserial.c: Generic converter detected
May 31 10:35:03 OpenWrt user.info kernel: usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
May 31 10:35:03 OpenWrt user.info kernel: usbserial.c: Generic converter detected
May 31 10:35:03 OpenWrt user.info kernel: usbserial.c: Generic converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
May 31 10:35:03 OpenWrt user.info kernel: usbserial.c: Generic converter detected
May 31 10:35:03 OpenWrt user.info kernel: usbserial.c: Generic converter now attached to ttyUSB2 (or usb/tts/2 for devfs)
May 31 10:35:37 OpenWrt daemon.notice pppd[653]: pppd 2.4.3 started by root, uid 0
May 31 10:35:38 OpenWrt local2.info chat[660]: abort on (BUSY)
May 31 10:35:38 OpenWrt local2.info chat[660]: abort on (NO CARRIER)
May 31 10:35:38 OpenWrt local2.info chat[660]: abort on (ERROR)
May 31 10:35:38 OpenWrt local2.info chat[660]: report (CONNECT)
May 31 10:35:38 OpenWrt local2.info chat[660]: timeout set to 10 seconds
May 31 10:35:38 OpenWrt local2.info chat[660]: send (AT&F^M)
May 31 10:35:38 OpenWrt local2.info chat[660]: expect (OK)
May 31 10:35:38 OpenWrt local2.info chat[660]: AT&F^M^M
May 31 10:35:38 OpenWrt local2.info chat[660]: OK
May 31 10:35:38 OpenWrt local2.info chat[660]:  -- got it
May 31 10:35:38 OpenWrt local2.info chat[660]: send (ATE1^M)
May 31 10:35:38 OpenWrt local2.info chat[660]: expect (OK)
May 31 10:35:38 OpenWrt local2.info chat[660]: ^M
May 31 10:35:38 OpenWrt local2.info chat[660]: ATE1^M^M
May 31 10:35:38 OpenWrt local2.info chat[660]: OK
May 31 10:35:38 OpenWrt local2.info chat[660]:  -- got it
May 31 10:35:38 OpenWrt local2.info chat[660]: send (AT+CGDCONT=1,"IP","internet"^M)
May 31 10:35:38 OpenWrt local2.info chat[660]: timeout set to 30 seconds
May 31 10:35:38 OpenWrt local2.info chat[660]: expect (OK)
May 31 10:35:38 OpenWrt local2.info chat[660]: ^M
May 31 10:35:38 OpenWrt local2.info chat[660]: AT+CGDCONT=1,"IP","internet"^M^M
May 31 10:35:38 OpenWrt local2.info chat[660]: OK
May 31 10:35:38 OpenWrt local2.info chat[660]:  -- got it
May 31 10:35:38 OpenWrt local2.info chat[660]: send (ATD*99***1#^M)
May 31 10:35:39 OpenWrt local2.info chat[660]: expect (CONNECT)
May 31 10:35:39 OpenWrt local2.info chat[660]: ^M
May 31 10:35:39 OpenWrt local2.info chat[660]: ATD*99***1#^M^M
May 31 10:35:39 OpenWrt local2.info chat[660]: CONNECT
May 31 10:35:39 OpenWrt local2.info chat[660]:  -- got it
May 31 10:35:39 OpenWrt local2.info chat[660]: send ( ^M)
May 31 10:35:39 OpenWrt daemon.info pppd[653]: Serial connection established.
May 31 10:35:39 OpenWrt daemon.info pppd[653]: Using interface ppp0
May 31 10:35:39 OpenWrt daemon.notice pppd[653]: Connect: ppp0 <--> /dev/usb/tts/0
May 31 10:35:48 OpenWrt daemon.info pppd[653]: No response to 5 echo-requests
May 31 10:35:48 OpenWrt daemon.notice pppd[653]: Serial link appears to be disconnected.
May 31 10:35:54 OpenWrt daemon.notice pppd[653]: Connection terminated.
May 31 10:35:54 OpenWrt daemon.notice pppd[653]: Modem hangup

1,679

(27 odpowiedzi, napisanych Oprogramowanie / Software)

Przy kolejnej próbie połączenie dostałem coś takiego:

May 31 10:44:29 OpenWrt daemon.info pppd[623]: Serial connection established.
May 31 10:44:29 OpenWrt daemon.info pppd[623]: Using interface ppp0
May 31 10:44:29 OpenWrt daemon.notice pppd[623]: Connect: ppp0 <--> /dev/usb/tts/2
May 31 10:44:51 OpenWrt user.err kernel: usb-ohci.c: OHCI Unrecoverable Error, controller usb-00:03.0 disabled
May 31 10:44:54 OpenWrt user.err kernel: usbserial.c: generic_write - port 2: failed submitting write urb (-143)
May 31 10:44:57 OpenWrt user.err kernel: usbserial.c: generic_write - port 2: failed submitting write urb (-143)
May 31 10:45:00 OpenWrt daemon.warn pppd[623]: LCP: timeout sending Config-Requests
May 31 10:45:00 OpenWrt daemon.notice pppd[623]: Connection terminated.
May 31 10:45:00 OpenWrt daemon.warn pppd[623]: Receive serial link is not 8-bit clean:
May 31 10:45:00 OpenWrt daemon.warn pppd[623]: Problem: all had bit 7 set to 0
May 31 10:45:00 OpenWrt daemon.notice pppd[623]: Modem hangup

Czy to problem wyłącznie modułu usb-ohci?

1,680

(27 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Jak zrobisz ifup wan to pokaż wynik

ifconfig
route
cat /etc/config/network

ifconfig:

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:22:15:28:4A:A9
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:478 errors:0 dropped:0 overruns:0 frame:0
          TX packets:661 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:48423 (47.2 KiB)  TX bytes:626337 (611.6 KiB)

eth0      Link encap:Ethernet  HWaddr 00:22:15:28:4A:A9
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:476 errors:0 dropped:0 overruns:0 frame:0
          TX packets:660 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:58721 (57.3 KiB)  TX bytes:631735 (616.9 KiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:22:15:28:4A:A9
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:478 errors:0 dropped:0 overruns:0 frame:0
          TX packets:661 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:50335 (49.1 KiB)  TX bytes:628981 (614.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:318 (318.0 B)  TX bytes:318 (318.0 B)

root@OpenWrt:~# 

route:

root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan
root@OpenWrt:~# 

cat /etc/config/network:

root@OpenWrt:~# cat /etc/config/network

config 'switch' 'eth0'
        option 'vlan0' '1 2 3 4 5*'
        option 'vlan1' '0 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'device' '/dev/usb/tts/2'
        option 'proto' '3g'
        option 'apn' 'internet'
        option 'service' 'umts'

root@OpenWrt:~# 

w logu systemowym mam coś takiego:

May 31 10:34:59 OpenWrt user.info kernel: hub.c: new USB device 00:03.0-1, assigned address 2
May 31 10:34:59 OpenWrt user.info kernel: usbserial.c: Generic converter detected
May 31 10:34:59 OpenWrt user.info kernel: usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
May 31 10:34:59 OpenWrt user.info kernel: usbserial.c: Generic converter detected
May 31 10:34:59 OpenWrt user.info kernel: usbserial.c: Generic converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
May 31 10:34:59 OpenWrt user.info kernel: usbserial.c: Generic converter detected
May 31 10:34:59 OpenWrt user.info kernel: usbserial.c: Generic converter now attached to ttyUSB2 (or usb/tts/2 for devfs)
May 31 10:35:23 OpenWrt authpriv.info dropbear[576]: Child connection from 192.168.1.10:4486
May 31 10:35:29 OpenWrt authpriv.warn dropbear[576]: bad password attempt for 'root' from 192.168.1.10:4486
May 31 10:35:32 OpenWrt authpriv.notice dropbear[576]: password auth succeeded for 'root' from 192.168.1.10:4486
May 31 10:35:40 OpenWrt daemon.notice pppd[623]: pppd 2.4.3 started by root, uid 0
May 31 10:35:41 OpenWrt local2.info chat[630]: abort on (BUSY)
May 31 10:35:41 OpenWrt local2.info chat[630]: abort on (NO CARRIER)
May 31 10:35:41 OpenWrt local2.info chat[630]: abort on (ERROR)
May 31 10:35:41 OpenWrt local2.info chat[630]: report (CONNECT)
May 31 10:35:41 OpenWrt local2.info chat[630]: timeout set to 10 seconds
May 31 10:35:41 OpenWrt local2.info chat[630]: send (AT&F^M)
May 31 10:35:41 OpenWrt local2.info chat[630]: expect (OK)
May 31 10:35:41 OpenWrt local2.info chat[630]: AT&F^M^M
May 31 10:35:41 OpenWrt local2.info chat[630]: OK
May 31 10:35:41 OpenWrt local2.info chat[630]:  -- got it
May 31 10:35:41 OpenWrt local2.info chat[630]: send (ATE1^M)
May 31 10:35:42 OpenWrt local2.info chat[630]: expect (OK)
May 31 10:35:42 OpenWrt local2.info chat[630]: ^M
May 31 10:35:42 OpenWrt local2.info chat[630]: ATE1^M^M
May 31 10:35:42 OpenWrt local2.info chat[630]: OK
May 31 10:35:42 OpenWrt local2.info chat[630]:  -- got it
May 31 10:35:42 OpenWrt local2.info chat[630]: send (AT+CGDCONT=1,"IP","internet"^M)
May 31 10:35:42 OpenWrt local2.info chat[630]: timeout set to 30 seconds
May 31 10:35:42 OpenWrt local2.info chat[630]: expect (OK)
May 31 10:35:42 OpenWrt local2.info chat[630]: ^M
May 31 10:35:42 OpenWrt local2.info chat[630]: AT+CGDCONT=1,"IP","internet"^M^M
May 31 10:35:42 OpenWrt local2.info chat[630]: OK
May 31 10:35:42 OpenWrt local2.info chat[630]:  -- got it
May 31 10:35:42 OpenWrt local2.info chat[630]: send (ATD*99***1#^M)
May 31 10:35:42 OpenWrt local2.info chat[630]: expect (CONNECT)
May 31 10:35:42 OpenWrt local2.info chat[630]: ^M
May 31 10:35:42 OpenWrt local2.info chat[630]: ATD*99***1#^M^M
May 31 10:35:42 OpenWrt local2.info chat[630]: CONNECT
May 31 10:35:42 OpenWrt local2.info chat[630]:  -- got it
May 31 10:35:42 OpenWrt local2.info chat[630]: send ( ^M)
May 31 10:35:42 OpenWrt daemon.info pppd[623]: Serial connection established.
May 31 10:35:42 OpenWrt daemon.info pppd[623]: Using interface ppp0
May 31 10:35:42 OpenWrt daemon.notice pppd[623]: Connect: ppp0 <--> /dev/usb/tts/2
May 31 10:36:14 OpenWrt daemon.warn pppd[623]: LCP: timeout sending Config-Requests
May 31 10:36:14 OpenWrt daemon.notice pppd[623]: Connection terminated.
May 31 10:36:14 OpenWrt daemon.warn pppd[623]: Receive serial link is not 8-bit clean:
May 31 10:36:14 OpenWrt daemon.warn pppd[623]: Problem: all had bit 7 set to 0
May 31 10:36:14 OpenWrt daemon.notice pppd[623]: Modem hangup
May 31 10:36:45 OpenWrt local2.info chat[666]: abort on (BUSY)
May 31 10:36:45 OpenWrt local2.info chat[666]: abort on (NO CARRIER)
May 31 10:36:45 OpenWrt local2.info chat[666]: abort on (ERROR)
May 31 10:36:45 OpenWrt local2.info chat[666]: report (CONNECT)
May 31 10:36:45 OpenWrt local2.info chat[666]: timeout set to 10 seconds
May 31 10:36:45 OpenWrt local2.info chat[666]: send (AT&F^M)
May 31 10:36:45 OpenWrt local2.info chat[666]: expect (OK)
May 31 10:36:45 OpenWrt local2.info chat[666]: AT&F^M^M
May 31 10:36:45 OpenWrt local2.info chat[666]: OK
May 31 10:36:45 OpenWrt local2.info chat[666]:  -- got it
May 31 10:36:45 OpenWrt local2.info chat[666]: send (ATE1^M)
May 31 10:36:45 OpenWrt local2.info chat[666]: expect (OK)
May 31 10:36:45 OpenWrt local2.info chat[666]: ^M
May 31 10:36:45 OpenWrt local2.info chat[666]: ATE1^M^M
May 31 10:36:45 OpenWrt local2.info chat[666]: OK
May 31 10:36:45 OpenWrt local2.info chat[666]:  -- got it
May 31 10:36:45 OpenWrt local2.info chat[666]: send (AT+CGDCONT=1,"IP","internet"^M)
May 31 10:36:45 OpenWrt local2.info chat[666]: timeout set to 30 seconds
May 31 10:36:45 OpenWrt local2.info chat[666]: expect (OK)
May 31 10:36:45 OpenWrt local2.info chat[666]: ^M
May 31 10:36:45 OpenWrt local2.info chat[666]: AT+CGDCONT=1,"IP","internet"^M^M
May 31 10:36:45 OpenWrt local2.info chat[666]: OK
May 31 10:36:45 OpenWrt local2.info chat[666]:  -- got it
May 31 10:36:45 OpenWrt local2.info chat[666]: send (ATD*99***1#^M)
May 31 10:36:46 OpenWrt local2.info chat[666]: expect (CONNECT)
May 31 10:36:46 OpenWrt local2.info chat[666]: ^M
May 31 10:36:46 OpenWrt local2.info chat[666]: ATD*99***1#^M^M
May 31 10:36:46 OpenWrt local2.info chat[666]: NO CARRIER
May 31 10:36:46 OpenWrt local2.info chat[666]:  -- failed
May 31 10:36:46 OpenWrt local2.info chat[666]: Failed (NO CARRIER)
May 31 10:36:46 OpenWrt daemon.err pppd[623]: Connect script failed
May 31 10:37:18 OpenWrt local2.info chat[670]: abort on (BUSY)
May 31 10:37:18 OpenWrt local2.info chat[670]: abort on (NO CARRIER)
May 31 10:37:18 OpenWrt local2.info chat[670]: abort on (ERROR)
May 31 10:37:18 OpenWrt local2.info chat[670]: report (CONNECT)
May 31 10:37:18 OpenWrt local2.info chat[670]: timeout set to 10 seconds
May 31 10:37:18 OpenWrt local2.info chat[670]: send (AT&F^M)
May 31 10:37:18 OpenWrt local2.info chat[670]: expect (OK)
May 31 10:37:18 OpenWrt local2.info chat[670]: AT&F^M^M
May 31 10:37:18 OpenWrt local2.info chat[670]: OK
May 31 10:37:18 OpenWrt local2.info chat[670]:  -- got it
May 31 10:37:18 OpenWrt local2.info chat[670]: send (ATE1^M)
May 31 10:37:18 OpenWrt local2.info chat[670]: expect (OK)
May 31 10:37:18 OpenWrt local2.info chat[670]: ^M
May 31 10:37:18 OpenWrt local2.info chat[670]: ATE1^M^M
May 31 10:37:18 OpenWrt local2.info chat[670]: OK
May 31 10:37:18 OpenWrt local2.info chat[670]:  -- got it
May 31 10:37:18 OpenWrt local2.info chat[670]: send (AT+CGDCONT=1,"IP","internet"^M)
May 31 10:37:19 OpenWrt local2.info chat[670]: timeout set to 30 seconds
May 31 10:37:19 OpenWrt local2.info chat[670]: expect (OK)
May 31 10:37:19 OpenWrt local2.info chat[670]: ^M
May 31 10:37:19 OpenWrt local2.info chat[670]: AT+CGDCONT=1,"IP","internet"^M^M
May 31 10:37:19 OpenWrt local2.info chat[670]: OK
May 31 10:37:19 OpenWrt local2.info chat[670]:  -- got it
May 31 10:37:19 OpenWrt local2.info chat[670]: send (ATD*99***1#^M)
May 31 10:37:19 OpenWrt local2.info chat[670]: expect (CONNECT)
May 31 10:37:19 OpenWrt local2.info chat[670]: ^M
May 31 10:37:19 OpenWrt local2.info chat[670]: ATD*99***1#^M^M
May 31 10:37:19 OpenWrt local2.info chat[670]: NO CARRIER
May 31 10:37:19 OpenWrt local2.info chat[670]:  -- failed
May 31 10:37:19 OpenWrt local2.info chat[670]: Failed (NO CARRIER)
May 31 10:37:19 OpenWrt daemon.err pppd[623]: Connect script failed

1,681

(27 odpowiedzi, napisanych Oprogramowanie / Software)

Witam,

Mam podobny problem z odpaleniem modemu Huawei E156G na routerze Asus WL-520GU. Postępuję zgodnie z procedura opisana na OpenWrt jako router 3G. W modemie został wyłączony wirtualny napęd CD oraz czytnik kart pamięci (dla modemu E156G można to zrobić poleceniem AT^U2DIAG=0). Modem jest poprawnie wykrywany:

hub.c: new USB device 00:03.0-1, assigned address 2
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB2 (or usb/tts/2 for devfs)

Przy próbie połączenia otrzymuję:

root@OpenWrt:~# ifup wan
SIM ready
PIN set successfully
root@OpenWrt:~# 

Status modemu:

root@OpenWrt:~# gcom -d /dev/usb/tts/2
SIM ready
Waiting for Registration..(120 sec max)
Registered on Home network: "POL",2
Signal Quality: 26,99
root@OpenWrt:~# 

Próbowałem też Kamikaze 3G ale efekt jest podobny. Modem jest poprawnie rozpoznawany ale połączenie nie zostaje nawiązane.

frutis

Witam,

Dziękuję za świetny opis instalacji oraz za przygotowanie paczek.

Próba uruchomienia połączenia ADSL na routerze Asus WL-520GU z kamikaze 8.09.1 powiodła się ale niestety połączenie to trwa zaledwie kilka sekund. Po czy router zawiesza się.

Podczas instalacji musiałem użyć innych modułów do obsługi usb (kmod-usb-ohci) ze względu na inny kontroler.
Czy to jakiś znany błąd w modułach do obsługi usb na tym routerze?

Instalacja paczki speedtouch-usb-firmware nie jest możliwa na WL-520GU ze względu ograniczoną ilość wolnego miejsca (4MB flash). Trzeba ręcznie dorzucić pliki z firmware w zależności od wersji modemu.

Pozdrawiam
frutis