Temat: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Hej jak pisalem w dawniejszym temacie usilnie staram sie uruchomić modemy e353u-2 w trubie NDIS
ostatnio zainstalowałem paczkę kmod-huawei-hw-cdc lecz niestety pomimo tego ze zaczął router wykrywać 2 urządzenia NDIS przy pomocy tego modułu, po restarcie nie wstanie chyba ze z wyłączonymi modemami, a po ich podłączeniu sie resetuje.

czy ktoś wie co może być przyczyną?


Brakujące moduły?
Próbowałem również odinstalować zwykły cdc-ether nic nie dało wciąż takie samo zachowanie.
logread -f wyświetlił tylko loga do czasu przełączenia modeswitchem.

root@Gargoyle:~# logread -f
Apr  7 20:03:42 Gargoyle kern.info kernel: [  274.380000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Apr  7 20:03:42 Gargoyle kern.info kernel: [  274.530000] scsi0 : usb-storage 1-1:1.0
Apr  7 20:03:42 Gargoyle kern.info kernel: [  274.550000] scsi1 : usb-storage 1-1:1.1
Apr  7 20:03:43 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr  7 20:03:43 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:1446 for mode switching
Apr  7 20:03:43 Gargoyle syslog.notice usb_modeswitch: switching device 12d1:1446 on 001/002
Apr  7 20:03:43 Gargoyle kern.info kernel: [  275.060000] usb 1-1: USB disconnect, device number 2
Apr  7 20:03:47 Gargoyle kern.info kernel: [  279.010000] usb 1-1: new high-speed USB device number 3 using ehci-platform

Aktualnie wywaliłem moduł huawei i używam jak dawniej, choć nie jest to 100% stabilne połączenie.

2

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

A weź wróć do konfiguracji domyślnej i włącz modem tak samo jak dla e3276 i zobacz. http://eko.one.pl/?p=openwrt-gargoylepl masz to opisane w changelogu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

ale czy ten skrypt wspiera na raz 3 modemy?

4

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Nie.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez qbasasa 2013-04-08 05:50:40)

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

no właśnie.
A czy jest możliwe abym w miarę szybko samemu przepisał go by obsługiwał?
Udało mi się innymi paczkami sprawić ze jakieś moduły uznają te urządzenia za "swoje"

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=03 Dev#=  5 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 0.00
S:  Manufacturer=Huawei Technologies
S:  Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=c0 MxPwr=500mA
A:  FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=09 Driver=cdc_wdm
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=08 Driver=qmi_wwan
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=03 Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=02 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Oraz ifconfig -a

eth0.1    Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2678 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:814609 (795.5 KiB)  TX bytes:639679 (624.6 KiB)

imq0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                                                                                                                                                              -00
          NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

imq1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                                                                                                                                                              -00
          NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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:282 errors:0 dropped:0 overruns:0 frame:0
          TX packets:282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22422 (21.8 KiB)  TX bytes:22422 (21.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:25896 (25.2 KiB)

wwan0     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wwan1     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wwan2     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

6

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Jeżeli qmi go obsługuje to teraz ściągnij paczkę i włącz go przez qmi. http://eko.one.pl/forum/viewtopic.php?pid=57394#p57394

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Tak jest!
A zadam jedno sakramentalne pytanie, czy mogę odpalić tak więcej niż jeden modem?

8

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

niestety coś to qmi nie bangla.
raz sie polaczylo a tak nie chce dzialac, nawet jak sie polaczylo i dalem ifup mam ip i wszystko cacy ale nie ida pakiety.

root@Gargoyle:~# qmicli -d /dev/cdc-wdm2 --wds-start-network=darmowy --client-no-release-cid  -v
[08 Apr 2013, 16:23:24] [Debug] QMI Device at '/dev/cdc-wdm2' ready
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Assuming service 'wds' is supported...
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Allocating new client ID...
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:01

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 15
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<<   type       = "Service" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = wds

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Received message...
>>>>>> RAW:
>>>>>>   length = 24
>>>>>>   data   = 01:17:00:80:00:00:01:01:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:01:05

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 23
>>>>>>   flags   = 0x80
>>>>>>   service = "ctl"
>>>>>>   client  = 0
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Allocate CID" (0x0022)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Allocation Info" (0x01)
>>>>>>   length     = 2
>>>>>>   value      = 01:05
>>>>>>   translated = [ service = 'wds' cid = '5' ]

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Registered 'wds' (version unknown) client with ID '5'
[08 Apr 2013, 16:23:24] [Debug] Asynchronously starting network...
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message...
<<<<<< RAW:
<<<<<<   length = 23
<<<<<<   data   = 01:16:00:00:01:05:00:01:00:20:00:0A:00:14:07:00:64:61:72:6D:6F:77:79

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 22
<<<<<<   flags   = 0x00
<<<<<<   service = "wds"
<<<<<<   client  = 5
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 10
<<<<<<   message     = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<<   type       = "APN" (0x14)
<<<<<<   length     = 7
<<<<<<   value      = 64:61:72:6D:6F:77:79
<<<<<<   translated = darmowy

[08 Apr 2013, 16:23:25] [Debug] [/dev/cdc-wdm2] Received message...
>>>>>> RAW:
>>>>>>   length = 25
>>>>>>   data   = 01:18:00:80:01:05:02:01:00:20:00:0C:00:02:04:00:01:00:0E:00:10:02:00:ED:03

[08 Apr 2013, 16:23:25] [Debug] [/dev/cdc-wdm2] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 24
>>>>>>   flags   = 0x80
>>>>>>   service = "wds"
>>>>>>   client  = 5
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Start Network" (0x0020)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 01:00:0E:00
>>>>>>   translated = FAILURE: CallFailed
>>>>>> TLV:
>>>>>>   type       = "Call End Reason" (0x10)
>>>>>>   length     = 2
>>>>>>   value      = ED:03
>>>>>>   translated = gsm-wcdma-insufficient-resources

error: couldn't start network: QMI protocol error (14): 'CallFailed'
call end reason (1005): gsm-wcdma-insufficient-resources
[/dev/cdc-wdm2] Client ID not released:
        Service: 'wds'
            CID: '5'
[08 Apr 2013, 16:23:25] [Debug] [/dev/cdc-wdm2] Unregistered 'wds' client with ID '5'
[08 Apr 2013, 16:23:25] [Debug] Client released
root@Gargoyle:~# qmicli -d /dev/cdc-wdm1 --wds-start-network=darmowy --client-no-release-cid  -v
[08 Apr 2013, 16:23:46] [Debug] QMI Device at '/dev/cdc-wdm1' ready
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Assuming service 'wds' is supported...
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Allocating new client ID...
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:01

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 15
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<<   type       = "Service" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = wds

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 24
>>>>>>   data   = 01:17:00:80:00:00:01:01:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:01:15

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 23
>>>>>>   flags   = 0x80
>>>>>>   service = "ctl"
>>>>>>   client  = 0
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Allocate CID" (0x0022)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Allocation Info" (0x01)
>>>>>>   length     = 2
>>>>>>   value      = 01:15
>>>>>>   translated = [ service = 'wds' cid = '21' ]

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Registered 'wds' (version unknown) client with ID '21'
[08 Apr 2013, 16:23:46] [Debug] Asynchronously starting network...
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<<   length = 23
<<<<<<   data   = 01:16:00:00:01:15:00:01:00:20:00:0A:00:14:07:00:64:61:72:6D:6F:77:79

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 22
<<<<<<   flags   = 0x00
<<<<<<   service = "wds"
<<<<<<   client  = 21
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 10
<<<<<<   message     = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<<   type       = "APN" (0x14)
<<<<<<   length     = 7
<<<<<<   value      = 64:61:72:6D:6F:77:79
<<<<<<   translated = darmowy

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 27
>>>>>>   data   = 01:1A:00:80:01:15:02:01:00:20:00:0E:00:02:04:00:00:00:00:00:01:04:00:90:66:CE:02

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 26
>>>>>>   flags   = 0x80
>>>>>>   service = "wds"
>>>>>>   client  = 21
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 14
>>>>>>   message     = "Start Network" (0x0020)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Packet Data Handle" (0x01)
>>>>>>   length     = 4
>>>>>>   value      = 90:66:CE:02
>>>>>>   translated = 47081104

[/dev/cdc-wdm1] Network started
        Packet data handle: 47081104
[/dev/cdc-wdm1] Client ID not released:
        Service: 'wds'
            CID: '21'
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Unregistered 'wds' client with ID '21'
[08 Apr 2013, 16:23:46] [Debug] Client released
root@Gargoyle:~#

9

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Ty aero masz. Czemu się bawisz tym zamiast normalnie na ppp to zrobić? Dla sportu?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10 (edytowany przez qbasasa 2013-04-08 18:19:50)

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Jest problem z PPP, czasem jak się rozłączy to modemy już nie chcą się połączyć tylko migają na niebiesko  że jest sieć a pppd w logach wypisuje No Carrier...

Chciał bym żeby to stabilnie działało.

na przykład teraz modem świeci się na niebiesko, czyli podłączony a oto co wyświetla ppp:

Apr  8 19:18:42 Gargoyle daemon.notice pppd[16270]: pppd 2.4.5 started by root, uid 0
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: abort on (BUSY)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: abort on (NO CARRIER)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: abort on (ERROR)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: report (CONNECT)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: timeout set to 10 seconds
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: send (AT&F^M)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: expect (OK)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: AT&F^M^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: OK
Apr  8 19:18:44 Gargoyle local2.info chat[16332]:  -- got it
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: send (ATE1^M)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: expect (OK)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ATE1^M^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: OK
Apr  8 19:18:44 Gargoyle local2.info chat[16332]:  -- got it
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: timeout set to 30 seconds
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: expect (OK)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: AT+CGDCONT=1,"IP","darmowy"^M^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ERROR
Apr  8 19:18:44 Gargoyle local2.info chat[16332]:  -- failed
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: Failed (ERROR)
Apr  8 19:18:44 Gargoyle daemon.err pppd[16270]: Connect script failed
Apr  8 19:18:45 Gargoyle daemon.info pppd[16270]: Exit.
Apr  8 19:18:45 Gargoyle daemon.notice netifd: Interface 'wan' is now down

11

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Bo raczej modem Ci się wiesza skoro nie chce rozmawiać z ppp.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

12

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

A da się coś na to poradzić, czy to wina mojej złej konfiguracji, modemu czy sam nie wiem czego?

13

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Pewnie jak odłączysz modem od zasilania to się znów połączy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Tak się stanie, ale czy da się coś zrobić aby się nie wieszały?

15

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Spróbuj mu wcześniej ATZ wysłać, może się obudzi.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16 (edytowany przez qbasasa 2013-04-08 19:32:53)

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

spróbuje zaktualizować w nich firmware do wersji 11.810.09.20.264.B726
bo moje nie wiem jaką mają wersje ale są z irlandii. i dodam ATZ do skryptu łączącego

Wyczytałem gdzieś że problemy z połączeniem się mogą być spowodowane brakiem adresów ip w aero...
qmi łączy się po pewnym czasie, teraz muszę wymyślić jak sprawdzić kiedy się rozłączyło i wznowić połączenie a następnie ifup wan3.... poniewaz modem swieci sie na niebiesko nawet kiedy juz nie dziala....

17

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

qmi status chyba miało.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Będę sprawdzał(muszę odczekać jedną godzinę aby napisać co zwraca status), zauważyłem też że multiwan dość niechętnie wspiera 3 połączenia ppp, torrent jest w stanie tylko używać na raz jedno, co jest przykre, ale możliwe że to tylko moja przypadłość.

19 (edytowany przez qbasasa 2013-04-09 10:05:28)

Odp: kmod-huawei-hw-cdc oraz e353u-2 router wam nie wstanie.

Ok, udało mi się stworzyć coś takiego,
wspiera teoretycznie wiele interfejsów i wymaga modyfikacji skryptu /usr/bin.qmi-network.
Modyfikacja jest konieczna aby zmienna z numerem id sesji połączenia miała się gdzie zapisać jeżeli startujemy więcej niż jedno połączenie qmi.

qmi_monitor.sh:

#!/bin/bash
print_usage ()
{
        echo "usage: $0 [DEVICE] [WAN]"
}

check_conn()
{
        if [ "$(qmi-network $DEVICE status $WAN|grep connected)" == 'Status:  connected' ] ;
        then
#       logger "Status of QMI: $DEVICE INTERFACE: $WAN - connected"
        echo "0"
        return
        fi
        logger "Status of QMI: $DEVICE INTERFACE: $WAN - not connected"
        echo "1"
        return
}

restart_conn()
{
ifdown $WAN

TEST=$(qmi-network $DEVICE start $WAN)

if [[ "$TEST" == *"PDH already exists"* ]] ;
then
qmi-network $DEVICE stop $WAN
logger "Old instance of QMI: $DEVICE INTERFACE: $WAN - STOPPED"
fi

while [[ "$TEST" != *"Network started successfully"* ]];
        do
        logger "Connecting QMI: $DEVICE INTERFACE: $WAN - failed"
        TEST=$(qmi-network $DEVICE start $WAN)
        done
        
if [[ "$(qmi-network $DEVICE status $WAN|grep connected)" == *"connected"* ]] ;
    then
    logger "Connecting QMI: $DEVICE INTERFACE: $WAN - completed"
    ifup $WAN
    else
    logger "Connecting QMI: $DEVICE INTERFACE: $WAN - Error"
    fi

}

if [ $# -ne 2 ]; then
   echo "error: missing arguments" 1>&2
   print_usage
   exit 255
fi

DEVICE=$1
WAN=$2

logger "Started script for QMI: $DEVICE INTERFACE: $WAN"
while :
do
if [ "$(check_conn)" == "1" ];
        then
        restart_conn
fi
sleep 10
done

modyfikacja qmi-network:

print_usage ()
{
    echo "usage: $0 [DEVICE] [COMMAND] [WAN]"
}

if [ $# -ne 3 ]; then
    echo "error: missing arguments" 1>&2
    print_usage
    exit 255
fi

DEVICE=$1
COMMAND=$2
WANNR=$3
STATE_FILE=/tmp/qmi-network-state$WANNR
PROFILE_FILE=/etc/qmi-network.conf