Temat: e3131-s2 hilink tryb modemu

Witam,

Posiadam router tp-link 1043nd i wrzuciłem na niego najnowszą Gargoyle PL. Chciałbym aby działał on z modem e3131 s-2 hilink w trybie modemu. W trybie CDC działa dobrze.

Router wykrywa modem (w statusie pokazuje siłę sygnału) lecz nie chce się połączyć:

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.03
S:  Manufacturer=Linux 3.3.8 ehci_hcd
S:  Product=Generic Platform EHCI Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1c05 Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI HiLink
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=02(comm.) Sub=02 Prot=ff 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= 2 Cls=02(comm.) Sub=02 Prot=ff Driver=option
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=02(comm.) Sub=02 Prot=ff Driver=option
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

Dodałem w rc.local

echo "12d1 1c05" > /sys/bus/usb-serial/drivers/option1/new_id
sleep 2

etc/config/network

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 ifname 'eth0.1'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.3.1'
        option dns '192.168.3.1'

config interface 'wan'
        option auto '1'
        option proto '3g'
        option username 'internet'
        option password 'internet'
        option apn 'internet'
        option mobile_isp 'Polska - Orange'
        option device '/dev/ttyUSB0'

logi z GIU

Mar 27 21:31:48 Gargoyle local2.info chat[16805]: abort on (BUSY)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: abort on (NO CARRIER)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: abort on (ERROR)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: report (CONNECT)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: timeout set to 10 seconds
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: send (AT&F^M)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: expect (OK)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: AT&F^M^M
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: OK
Mar 27 21:31:48 Gargoyle local2.info chat[16805]:  -- got it
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: send (ATE1^M)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: expect (OK)
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: ^M
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: ATE1^M^M
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: OK
Mar 27 21:31:48 Gargoyle local2.info chat[16805]:  -- got it
Mar 27 21:31:48 Gargoyle local2.info chat[16805]: send (AT+CGDCONT=1,"IP","internet"^M)
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: timeout set to 30 seconds
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: expect (OK)
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: ^M
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: AT+CGDCONT=1,"IP","internet"^M^M
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: OK
Mar 27 21:31:49 Gargoyle local2.info chat[16805]:  -- got it
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: send (ATD*99***1#^M)
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: expect (CONNECT)
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: ^M
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: ATD*99***1#^M^M
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: ERROR
Mar 27 21:31:49 Gargoyle local2.info chat[16805]:  -- failed
Mar 27 21:31:49 Gargoyle local2.info chat[16805]: Failed (ERROR)
Mar 27 21:31:49 Gargoyle daemon.err pppd[16801]: Connect script failed

proszę o pomoc

2

Odp: e3131-s2 hilink tryb modemu

Niepotrzebnie do dodałes bo modem musi być najpierw przełączony przez usb-modeswitch.

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

3

Odp: e3131-s2 hilink tryb modemu

usb_modeswitch -v 12d1 -p 1c05 -d 1

Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 002 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using interface number 0
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI HiLink
  Serial No.: not provided
-------------------------
Only detaching storage driver for switching ...
Looking for active driver ...
 No driver found. Either detached before or never attached
-> Run lsusb to note any changes. Bye.

usb_modeswitch -v 12d1 -p 1c05 -H 1

Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 002 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using interface number 0
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI HiLink
  Serial No.: not provided
-------------------------
Sending Huawei control message ...
 OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.

4

Odp: e3131-s2 hilink tryb modemu

po tym znowu się przełączył do trybu karty sieciowej i mam identyfikator 12d1:14db. Proszę o jakieś wskazówki jak mam poprawnie wykonać przełączenie i konfiguracje tego modemu

5

Odp: e3131-s2 hilink tryb modemu

Generalnie w  CDC: http://eko.one.pl/?p=openwrt-modemygsm#huaweieshilink

Jak chcesz przełączyć w tryb modemu na stałe: http://forum.jdtech.pl/Watek-huawei-e31 … u-na-stale

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

6

Odp: e3131-s2 hilink tryb modemu

Modem miałem przełączony na stałe komendami AT dlatego identyfikator  12d1:1c05. Pod windowsem zainstalowałem dashboard drivers które były zamieszczone w temacie przełączania na jdtech. W TNI w żaden sposób nie udało mi się połączyć w tym trybie z kartą Orange free na kartę. Więc chciałem spróbować czy uda mi się połączyć w tym trybie za pomocą routera - chciałbym mieć obsługę 3ginfo (w cdc nie ma takiej możliwości). W logach które załączyłem na początku widać, że jest wybierany numer *99***1#. Orange w konfiguracji podaje *99#. W jaki sposób można zmienić wybierany numer? Czy oba numery są prawidłowe dla Orange free? W GUI nie widzę takiej opcji.