Temat: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Witam
Zakupilem modem HUAWEI E1750 w iplus i router jak w temacie. Chce skonfigurowac go tak aby byl internet przez modem ale tez nieraz mozna bylo podpiac kabel WAN i staly internet. Czy pomoze ktos dokladnie skonfigurowac OPENWRT z LUCI dla tego modemu i dla portu WAN ? Chce internet kierowac na WIFI i 4 porty LAN.

2

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Zainstaluj mój obraz, tam masz gotowca do 3g. Niezbędne zmiany masz opisane przez jednego z forumowiczów w tym wątku: http://eko.one.pl/forum/viewtopic.php?id=652

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

3 (edytowany przez dk75 2010-06-19 22:16:59)

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Wszystko jak tam tylko 3g.chat inny.

Przetestowany pod OpenWRT:

3g.chat

ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 30
""      "ATZ"
OK      'AT+CGDCONT=1,"IP","$USE_APN"'
SAY     "Calling UMTS/GPRS"
OK      "ATD*99#"
CONNECT ' '

Aby wyedytować 3g.chat należy połączyć się z routerem przez SSH.
Na Linuxie trzeba w terminalu wpisać

ssh root@192.168.1.1

na Windows najlepiej użyć PuTTY i skonfigurować połączenie na ten sam adres, czyli root@192.168.1.1

po zalogowaniu do routera

vi /etc/chatscripts/3g.chat

VIm standardowo uruchamia się w CommandMode i aby coś wpisać należy przełączyć się do InsertMode przez pojedyncze wciśnięcie "i".
Po skończonym pisaniu naciśnięcie "Esc" wraca do command i wtedy wpisanie ":w" zapisuje plik a ":q" zamyka VIm - można to połączyć w sekwencję ":wq".

W trybie insert można dodawać nowe linie ale nie kasować. Robi się to w command dwa razy naciskając "d".

Dziś już nie zdążę ale jeszcze nie sprzedałem E1750 tak więc jutro po południu mogę się z nim pobawić pod OpenWRT gdyby coś nie działało.

TP-Link WR1043ND
Backfire 10.03 + Gargoyle 1.3.9 (by obsy)
3G - Huawei E122

4

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

jakbys mogl sprawdzic czy to zadziala bo ja dzis nie zdazylem kupic iplusa...

5

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

OK. Przetestowałem. Wyedytowałem poprzedni post aby był tam aktualny działający skrypt chat.
Okazuje się, że IPCop potrzebował "+++" do przełączenia w CommandMode a OpenWRT reaguje na to alergicznie.

Proponuję również wyedytować /etc/ppp/options zmienić 2 linijki z:

lcp-echo-failure 5
lcp-echo-interval 1

na

lcp-echo-failure 3
lcp-echo-interval 3

każdy modem pracuje wtedy o wiele stabilniej

PS: wysłane z E1750

TP-Link WR1043ND
Backfire 10.03 + Gargoyle 1.3.9 (by obsy)
3G - Huawei E122

6

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

no wiec zrobilem jak napisales . Mam modem z playa E1750C mysle ze nie powinien sie roznic od E1750.

Jestes w stanie jakos na gg lub skype pomoc mi krok po kroku skonfigurowac to wszystko ? Zrobilem wedlug opisu jednak modem nie laczy neta. Ciagle na niebiesko mryga dioda a chyba powinna sie na stale zapalic. Bede Ci ogromnie wdzieczny. Aha napisales o tych +++ a nie widze ich nigdzie w konfiguracji co napisales ?

7

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Wynik logread pokaż po próbe połączenia oraz zawartość /etc/config/network (żeby zobaczy co tam faktycznie zrobiłeś)

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

8

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

a mozesz mi dokladniej napisac jakie polecenia wydac ?

9

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

logread
cat /etc/config/network

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

10

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Jun  1 23:15:00 OpenWrt user.info kernel: mtd: partition "rootfs_data" created a                                                                             utomatically, ofs=480000, len=370000
Jun  1 23:15:00 OpenWrt user.notice kernel: 0x000000480000-0x0000007f0000 : "roo                                                                             tfs_data"
Jun  1 23:15:00 OpenWrt user.notice kernel: 0x0000007f0000-0x000000800000 : "art                                                                             "
Jun  1 23:15:00 OpenWrt user.notice kernel: 0x000000020000-0x0000007f0000 : "fir                                                                             mware"
Jun  1 23:15:00 OpenWrt user.notice kernel: Realtek RTL8366RB ethernet switch dr                                                                             iver version 0.2.0
Jun  1 23:15:00 OpenWrt user.info kernel: rtl8366rb rtl8366rb: using GPIO pins 1                                                                             8 (SDA) and 19 (SCK)
Jun  1 23:15:00 OpenWrt user.info kernel: rtl8366rb rtl8366rb: RTL5937 ver. 3 ch                                                                             ip found
Jun  1 23:15:00 OpenWrt user.info kernel: rtl8366-rtl: probed
Jun  1 23:15:00 OpenWrt user.info kernel: eth0: Atheros AG71xx at 0xb9000000, ir                                                                             q 4
Jun  1 23:15:00 OpenWrt user.debug kernel: eth0: using fixed link parameters
Jun  1 23:15:00 OpenWrt user.info kernel: Atheros AR71xx hardware watchdog drive                                                                             r version 0.1.0
Jun  1 23:15:00 OpenWrt user.debug kernel: ar71xx-wdt: timeout=15 secs (max=21)
Jun  1 23:15:00 OpenWrt user.info kernel: TCP westwood registered
Jun  1 23:15:00 OpenWrt user.info kernel: NET: Registered protocol family 17
Jun  1 23:15:00 OpenWrt user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <g                                                                             reearb@candelatech.com>
Jun  1 23:15:00 OpenWrt user.info kernel: All bugs added by David S. Miller <dav                                                                             em@redhat.com>
Jun  1 23:15:00 OpenWrt user.warn kernel: VFS: Mounted root (squashfs filesystem                                                                             ) readonly on device 31:2.
Jun  1 23:15:00 OpenWrt user.info kernel: Freeing unused kernel memory: 152k fre                                                                             ed
Jun  1 23:15:00 OpenWrt user.warn kernel: Please be patient, while OpenWrt loads                                                                              ...
Jun  1 23:15:00 OpenWrt user.info kernel: gpio-buttons driver version 0.1.2
Jun  1 23:15:00 OpenWrt user.info kernel: input: gpio-buttons as /devices/platfo                                                                             rm/gpio-buttons/input/input0
Jun  1 23:15:00 OpenWrt user.info kernel: Button Hotplug driver version 0.3.1
Jun  1 23:15:00 OpenWrt user.debug kernel: ar71xx: pll_reg 0xb8050014: 0x1a00000                                                                             0
Jun  1 23:15:00 OpenWrt user.info kernel: eth0: link up (1000Mbps/Full duplex)
Jun  1 23:15:00 OpenWrt user.info kernel: Registered led device: tl-wr1043nd:gre                                                                             en:usb
Jun  1 23:15:00 OpenWrt user.info kernel: Registered led device: tl-wr1043nd:gre                                                                             en:system
Jun  1 23:15:00 OpenWrt user.info kernel: Registered led device: tl-wr1043nd:gre                                                                             en:qss
Jun  1 23:15:00 OpenWrt user.info kernel: Registered led device: tl-wr1043nd:gre                                                                             en:wlan
Jun  1 23:15:00 OpenWrt user.info kernel: mini_fo: using base directory: /
Jun  1 23:15:00 OpenWrt user.info kernel: mini_fo: using storage directory: /ove                                                                             rlay
Jun  1 23:15:00 OpenWrt user.info kernel: eth0: link down
Jun  1 23:15:01 OpenWrt user.debug kernel: ar71xx: pll_reg 0xb8050014: 0x1a00000                                                                             0
Jun  1 23:15:01 OpenWrt user.info kernel: eth0: link up (1000Mbps/Full duplex)
Jun  1 23:15:01 OpenWrt user.info kernel: Compat-wireless backport release: comp                                                                             at-wireless-2010-06-04-4-gf135eab
Jun  1 23:15:01 OpenWrt user.info kernel: Backport based on wireless-2.6.git v2.                                                                             6.35-rc2-47270-ge46da0f
Jun  1 23:15:01 OpenWrt user.info kernel: device eth0.1 entered promiscuous mode
Jun  1 23:15:01 OpenWrt user.info kernel: device eth0 entered promiscuous mode
Jun  1 23:15:01 OpenWrt user.info kernel: br-lan: port 1(eth0.1) entering forwar                                                                             ding state
Jun  1 23:15:02 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world                                                                              regulatory domain
Jun  1 23:15:03 OpenWrt user.info sysinit: 0.openwrt.pool.ntp.org: Unknown host
Jun  1 23:15:03 OpenWrt user.info sysinit: 1.openwrt.pool.ntp.org: Unknown host
Jun  1 23:15:03 OpenWrt user.info sysinit: 2.openwrt.pool.ntp.org: Unknown host
Jun  1 23:15:03 OpenWrt user.info sysinit: 3.openwrt.pool.ntp.org: Unknown host
Jun  1 23:15:03 OpenWrt user.notice kernel: SCSI subsystem initialized
Jun  1 23:15:04 OpenWrt user.info kernel: usbcore: registered new interface driv                                                                             er usbfs
Jun  1 23:15:04 OpenWrt user.info kernel: usbcore: registered new interface driv                                                                             er hub
Jun  1 23:15:05 OpenWrt user.info kernel: usbcore: registered new device driver                                                                              usb
Jun  1 23:15:05 OpenWrt user.info kernel: cfg80211: World regulatory domain upda                                                                             ted:
Jun  1 23:15:05 OpenWrt user.info kernel:     (start_freq - end_freq @ bandwidth                                                                             ), (max_antenna_gain, max_eirp)
Jun  1 23:15:05 OpenWrt user.info kernel:     (2402000 KHz - 2472000 KHz @ 40000                                                                              KHz), (300 mBi, 2000 mBm)
Jun  1 23:15:05 OpenWrt user.info kernel:     (2457000 KHz - 2482000 KHz @ 20000                                                                              KHz), (300 mBi, 2000 mBm)
Jun  1 23:15:05 OpenWrt user.info kernel:     (2474000 KHz - 2494000 KHz @ 20000                                                                              KHz), (300 mBi, 2000 mBm)
Jun  1 23:15:05 OpenWrt user.info kernel:     (5170000 KHz - 5250000 KHz @ 40000                                                                              KHz), (300 mBi, 2000 mBm)
Jun  1 23:15:05 OpenWrt user.info kernel:     (5735000 KHz - 5835000 KHz @ 40000                                                                              KHz), (300 mBi, 2000 mBm)
Jun  1 23:15:06 OpenWrt user.debug kernel: phy0: Selected rate control algorithm                                                                              'minstrel_ht'
Jun  1 23:15:06 OpenWrt user.info kernel: phy0: Atheros AR9100 MAC/BB Rev:0 AR21                                                                             33 RF Rev:a2 mem=0xb80c0000, irq=2
Jun  1 23:15:07 OpenWrt user.info kernel: PPP generic driver version 2.4.2
Jun  1 23:15:08 OpenWrt user.info kernel: ip_tables: (C) 2000-2006 Netfilter Cor                                                                             e Team
Jun  1 23:15:08 OpenWrt user.info kernel: NET: Registered protocol family 24
Jun  1 23:15:08 OpenWrt user.info kernel: ehci_hcd: USB 2.0 'Enhanced' Host Cont                                                                             roller (EHCI) Driver
Jun  1 23:15:08 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: Atheros AR91x                                                                             x built-in EHCI controller
Jun  1 23:15:08 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: new USB bus r                                                                             egistered, assigned bus number 1
Jun  1 23:15:08 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: irq 3, io mem                                                                              0x1b000000
Jun  1 23:15:08 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: USB 2.0 start                                                                             ed, EHCI 1.00
Jun  1 23:15:08 OpenWrt user.info kernel: usb usb1: configuration #1 chosen from                                                                              1 choice
Jun  1 23:15:08 OpenWrt user.info kernel: hub 1-0:1.0: USB hub found
Jun  1 23:15:08 OpenWrt user.info kernel: hub 1-0:1.0: 1 port detected
Jun  1 23:15:09 OpenWrt user.warn kernel: nf_conntrack version 0.5.0 (460 bucket                                                                             s, 1840 max)
Jun  1 23:15:09 OpenWrt user.warn kernel: CONFIG_NF_CT_ACCT is deprecated and wi                                                                             ll be removed soon. Please use
Jun  1 23:15:09 OpenWrt user.warn kernel: nf_conntrack.acct=1 kernel parameter,                                                                              acct=1 nf_conntrack module option or
Jun  1 23:15:09 OpenWrt user.warn kernel: sysctl net.netfilter.nf_conntrack_acct                                                                             =1 to enable it.
Jun  1 23:15:09 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:09 OpenWrt user.info kernel: usb 1-1: new high speed USB device usi                                                                             ng ar71xx-ehci and address 2
Jun  1 23:15:09 OpenWrt user.info kernel: usb 1-1: configuration #1 chosen from                                                                              1 choice
Jun  1 23:15:09 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:09 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:10 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driv                                                                             er usbserial
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for gene                                                                             ric
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driv                                                                             er usbserial_generic
Jun  1 23:15:10 OpenWrt user.info kernel: usbserial: USB Serial Driver core
Jun  1 23:15:10 OpenWrt user.info kernel: Initializing USB Mass Storage driver..                                                                             .
Jun  1 23:15:10 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:10 OpenWrt user.info kernel: scsi0 : SCSI emulation for USB Mass St                                                                             orage devices
Jun  1 23:15:10 OpenWrt user.debug kernel: usb-storage: device found at 2
Jun  1 23:15:10 OpenWrt user.debug kernel: usb-storage: waiting for device to se                                                                             ttle before scanning
Jun  1 23:15:10 OpenWrt user.info kernel: scsi1 : SCSI emulation for USB Mass St                                                                             orage devices
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driv                                                                             er usb-storage
Jun  1 23:15:10 OpenWrt user.info kernel: USB Mass Storage support registered.
Jun  1 23:15:10 OpenWrt user.debug kernel: usb-storage: device found at 2
Jun  1 23:15:10 OpenWrt user.debug kernel: usb-storage: waiting for device to se                                                                             ttle before scanning
Jun  1 23:15:10 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for GSM                                                                              modem (1-port)
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driv                                                                             er option
Jun  1 23:15:10 OpenWrt user.info kernel: option: v0.7.2:USB Driver for GSM mode                                                                             ms
Jun  1 23:15:10 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for Sier                                                                             ra USB modem
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driv                                                                             er sierra
Jun  1 23:15:10 OpenWrt user.info kernel: sierra: v.1.3.8:USB Driver for Sierra                                                                              Wireless USB modems
Jun  1 23:15:11 OpenWrt user.info kernel: fuse init (API version 7.13)
Jun  1 23:15:11 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:11 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:11 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:11 OpenWrt user.info sysinit: 'radio0' is disabled
Jun  1 23:15:12 OpenWrt user.info sysinit: 'radio0' is disabled
Jun  1 23:15:12 OpenWrt user.info sysinit: Loading defaults
Jun  1 23:15:13 OpenWrt user.info sysinit: Loading synflood protection
Jun  1 23:15:13 OpenWrt user.info sysinit: Adding custom chains
Jun  1 23:15:13 OpenWrt user.info sysinit: Loading zones
Jun  1 23:15:13 OpenWrt user.info sysinit: Loading forwarding
Jun  1 23:15:13 OpenWrt user.info sysinit: iptables v1.4.6: Couldn't load target                                                                              `zone_3g_ACCEPT':File not found
Jun  1 23:15:13 OpenWrt user.info sysinit: Try `iptables -h' or 'iptables --help                                                                             ' for more information.
Jun  1 23:15:13 OpenWrt user.info sysinit: Loading redirects
Jun  1 23:15:13 OpenWrt user.info sysinit: Loading rules
Jun  1 23:15:13 OpenWrt user.info sysinit: Loading includes
Jun  1 23:15:13 OpenWrt user.info sysinit: Loading zone defaults
Jun  1 23:15:14 OpenWrt user.notice root: adding lan (br-lan) to firewall zone l                                                                             an
Jun  1 23:15:14 OpenWrt authpriv.info dropbear[1023]: Running in background
Jun  1 23:15:15 OpenWrt user.notice kernel: scsi 0:0:0:0: CD-ROM            HUAW                                                                             EI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jun  1 23:15:15 OpenWrt user.debug kernel: usb-storage: device scan complete
Jun  1 23:15:15 OpenWrt user.notice kernel: scsi 1:0:0:0: Direct-Access     HUAW                                                                             EI   SD Storage       2.31 PQ: 0 ANSI: 2
Jun  1 23:15:15 OpenWrt user.notice kernel: sd 1:0:0:0: [sda] Attached SCSI remo                                                                             vable disk
Jun  1 23:15:15 OpenWrt user.debug kernel: usb-storage: device scan complete
Jun  1 23:15:19 OpenWrt daemon.info dnsmasq[1073]: started, version 2.52 cachesi                                                                             ze 150
Jun  1 23:15:19 OpenWrt daemon.info dnsmasq[1073]: compile time options: IPv6 GN                                                                             U-getopt no-DBus no-I18N DHCP TFTP
Jun  1 23:15:19 OpenWrt daemon.info dnsmasq-dhcp[1073]: DHCP, IP range 192.168.1                                                                             .100 -- 192.168.1.250, lease time 12h
Jun  1 23:15:19 OpenWrt daemon.info dnsmasq[1073]: using local addresses only fo                                                                             r domain lan
Jun  1 23:15:19 OpenWrt daemon.warn dnsmasq[1073]: no servers found in /tmp/reso                                                                             lv.conf.auto, will retry
Jun  1 23:15:19 OpenWrt daemon.info dnsmasq[1073]: read /etc/hosts - 1 addresses
Jun  1 23:15:19 OpenWrt daemon.info dnsmasq-dhcp[1073]: read /etc/ethers - 0 add                                                                             resses
Jun  1 23:15:20 OpenWrt daemon.info dnsmasq-dhcp[1073]: DHCPREQUEST(br-lan) 192.                                                                             168.1.100 00:16:d4:xx:xx:xx
Jun  1 23:15:20 OpenWrt daemon.info dnsmasq-dhcp[1073]: DHCPACK(br-lan) 192.168.                                                                             1.100 00:16:d4:xx:xx:xx Piotrek_Laptop
Jun  1 23:15:21 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:21 OpenWrt user.info sysinit: No default vendor/product ID given. A                                                                             borting.
Jun  1 23:15:21 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:21 OpenWrt user.info sysinit: setting up led WLAN
Jun  1 23:15:21 OpenWrt user.debug kernel: ar71xx-wdt: enabling watchdog timer
Jun  1 23:15:24 OpenWrt daemon.info dnsmasq-dhcp[1073]: DHCPINFORM(br-lan) 192.1                                                                             68.1.100 00:16:d4:xx:xx:xx
Jun  1 23:15:24 OpenWrt daemon.info dnsmasq-dhcp[1073]: DHCPACK(br-lan) 192.168.                                                                             1.100 00:16:d4:xx:xx:xx Piotrek_Laptop


-------------------------------------------------------------------

root@OpenWrt:/# cat /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 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

config 'interface' '3g'
        option 'device' '/dev/ttyUSB0'
        option 'service' 'umts'
        option 'proto' '3g'
        option 'hotplug' '1'
        option 'apn' 'Internet'

config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '0 5t'

11

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Ale tu nie ma info o połączeniu.

ifup 3g

zrób i dopiero wtedy pokaż wynik logread.

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

12

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

pepe_lodz
Jeśli chcesz żeby połączenie 3g zostało ustanowione zaraz po starcie routera musisz wyciąć poniższy fragment kodu ze skryptu /lib/network/3g.sh:

    # figure out hardware specific commands for the card
    case "$service" in
        cdma|evdo) chat="/etc/chatscripts/evdo.chat";;
    *)
        cardinfo=$(gcom -d "$device" -s /etc/gcom/getcardinfo.gcom)
        if echo "$cardinfo" | grep Novatel; then
            case "$service" in
                umts_only) CODE=2;;
                gprs_only) CODE=1;;
                *) CODE=0;;
            esac
            mode="AT\$NWRAT=${CODE},2"
        elif echo "$cardinfo" | grep Option; then
            case "$service" in
                umts_only) CODE=1;;
                gprs_only) CODE=0;;
                *) CODE=3;;
            esac
            mode="AT_OPSYS=${CODE}"
        fi
        # Don't assume Option to be default as it breaks with Huawei Cards/Sticks

        PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || {
            echo "$config(3g): Failed to set the PIN code."
            set_3g_led 0 0 0
            return 1
        }
        test -z "$mode" || {
            MODE="$mode" gcom -d "$device" -s /etc/gcom/setmode.gcom
        }
    esac

Problem polega na tym, że gcom nie jest uruchomiony podczas startu skryptu (prawdopodobnie trzeba by było inaczej napisać skrypt żeby gcom został uruchomiony). Po wycięciu tego fragmentu nie będzie działało wpisywanie pin'u ale połączenie zostanie ustanowione po starcie routera. Pin można wprowadzić za pomocą chat'a.

13

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Dlaczego? Można 3g jako wan zdefiniować i będzie się łączył, bez przeróbek w 3g.sh

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

14

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Cezar ja ustawilem jako wan polaczenie 3G i nie laczy. Chyba ze cos zle ustawilem. Jestes w stanie powiedziec mi jak ustawic zeby startowalo polaczenie samo ?


A czy istenieje taka mozliwosc zeby tak skofigurowac ze ustanawia sie polaczenie wtedy gdy np komputer po kablu LAN lub WIFI potrzebuje skorzystac a jak nic nie korzysta zeby rozlanczalo sie ? Poprostu aby oszczedzac transfer... troche malo daja te transfery

15

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Wiec wynik logread pokaż.

I podstawy - nie ma takiej potrzeby. Jeżeli nic nie jest trasmitowane to nie zjada Ci transferu, to że jest sesja podtrzymywana to nie znaczy że coś tam leci. Chyba że sprawdzasz pocztę, pogodę czy synchronizujesz czas. Wręcz przeciwnie - ponieważ rozliczane jest to do pełnie np. 100KB to każdorazowe rozłączenie powoduje utratę pozostałości tej paczki co tylko wpływa na większe zużycie przeznaczonego limitu.

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

16

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

wklepalem ifup 3g i takie cos mam
root@OpenWrt:/# ifup 3g
Can't open device /dev/ttyUSB0.
3g(3g): Failed to set the PIN code.
root@OpenWrt:/#

Wpisalem pin w przegladarce i nadal to samo. PIN z kartki play spisalem. Wczesniej bez pinu probowalem i to samo sad

17

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Mi tam się łączy modem zaraz po uruchomieniu routera - tylko wstawiłem wywołanie /etc/hotplug.d/usb/99-3g do rc.local.
Wszystko opisane w linku który podał Cezary w pierwszym poście.

Natomiast co do modemu - wyciągnij go z routera przy włączonym routerze i potem wsadź ponownie i po 1min. skopiuj tutaj wynik polecenia

cat /proc/bus/usb/devices

PS: E1750C wcale nie musi się inicjować tak jak E1750

PS2: co do +++ to wywaliłem gdyż pod OpenWRT sprawia kłopoty - co system to inaczej

TP-Link WR1043ND
Backfire 10.03 + Gargoyle 1.3.9 (by obsy)
3G - Huawei E122

18

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

root@OpenWrt:/# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.32.10 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=ar71xx-ehci
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#=  4 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1446 Rev= 0.00
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

19

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Ty go w ogóle nie przełączyłeś. Nadal jest widoczony jako usb-storage, czyli nośnik ze sterownikami. Uzyj usb_modeswitch, a raczej odkomentuj odpowiednie sekcje w jego pliku konfiguracyjnym.

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

20

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Cezary a mozesz jasniej napisac mi jak to mam robic. Ja niby zrobilem wedlug tych instrukcji co mialem tutaj dawane. Nie wiem dlaczego tak jest ze sie nie przelaczyl.

21

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Cezary napisał/a:

Dlaczego? Można 3g jako wan zdefiniować i będzie się łączył, bez przeróbek w 3g.sh

Próbowałem i niestety też nie działa jeśli ifup wan jest wywołane ze skryptu hotplug'owego.

dk75 napisał/a:

Mi tam się łączy modem zaraz po uruchomieniu routera - tylko wstawiłem wywołanie /etc/hotplug.d/usb/99-3g do rc.local.

Też próbowałem ale bez skutku.

Być może dzieje się tak ponieważ zmodyfikowałem skrypt 99-3g i uruchamia się on tylko raz (jeśli zostanie wykryty modem 3g na 0 interfejsie).

pepe_lodz
Możesz problem z przełączaniem modemu rozwiązać następująco:
1. Pobrać ze strony USB_ModeSwitch plik z konfiguracjami dla modemów: http://www.draisberghof.de/usb_modeswit … 18.tar.bz2, rozpakować i wrzucić do /etc/usb_modeswitch.d (w Twoim przypadku wystarczy tylko jeden plik - 12d1_1446).
2. Stworzyć skrypt /etc/hotplug.d/20-usb_modeswitch

#!/bin/sh

ums_data_dir="/etc/usb_modeswitch.d"

case "$ACTION" in
    add)
        #logger "PRODUCT: $PRODUCT TYPE: $TYPE INTERFACE: $INTERFACE DEVICENAME: $DEVICENAME"
        if [ "$INTERFACE" = "8/6/80" ] && [ "${DEVICENAME##*.}" = "0" ]; then
            Vendor=${PRODUCT%%/*}
            _ProdID=${PRODUCT#*/}
            ProdID=${_ProdID%/*}
            case ${#Vendor} in
                1)
                    Vendor=000$Vendor
                    ;;
                2)
                    Vendor=00$Vendor
                    ;;
                3)
                    Vendor=0$Vendor
            esac
            case ${#ProdID} in
                1)
                    ProdID=000$ProdID
                    ;;
                2)
                    ProdID=00$ProdID
                    ;;
                3)
                    ProdID=0$ProdID
            esac
            Manufacturer=""
            if [ "$Vendor"_"$ProdID" = "05c6_1000" ]; then
                if ( grep Option /proc/bus/usb/devices ); then
                    Manufacturer="_sVe=Option"
                elif ( grep AnyDATA /proc/bus/usb/devices ); then
                    Manufacturer="_uMa=AnyDATA"
                elif ( grep SAMSUNG /proc/bus/usb/devices ); then
                    Manufacturer="_uMa=SAMSUNG"
                elif ( grep Vertex /proc/bus/usb/devices ); then
                    Manufacturer="_uMa=Vertex"
                fi
            fi
            #logger "Vendor=$Vendor ProdID=$ProdID Manufacturer=$Manufacturer"
            if [ -e $ums_data_dir/$Vendor"_"$ProdID$Manufacturer ]; then
                sleep 5
                logger "Switch ZeroCD usb device ($Vendor"_"$ProdID$Manufacturer)"
                usb_modeswitch -c $ums_data_dir/$Vendor"_"$ProdID$Manufacturer
            fi
        fi
esac

Skrypt sprawdza czy typ podpiętego urządzenia na 0 interfejsie jest usb-storage. Jeśli tak sprawdza czy ma odpowiednią konfigurację dla niego a następnie przełącza modem.

22 (edytowany przez pepe_lodz 2010-06-21 07:00:37)

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

frutis ale co mam zawartosc pliku 12d1_1446 wrzucic do pliku  /etc/usb_modeswitch.d  ??



A w tym skrypcie maja byc nazwy modemow Option, Anydata, vertex itd ? Czy nie powinno  byc HUAWEI?

23

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Moment - jeżeli chodzi o mój mod - firmware to żaden dodatkowy plik nie jest potrzebny. Wszystko jest już w systemie - plik konfiguracyjny od usb_modeswitch jest /etc, a sam program wywołuje się na starcie systemie w hotplugu. Trzeba odkomentować tylko odpowiednią sekcję związaną z danym modem, tak żeby wyłączyć wbudowany nośnik ze sterownikami i tyle.

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

24

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

No ok narazie nie dodawalem zadnego pliku tylko prosze o pomoc jak odkomentowac to bo zrobilem wedlug instrukcji wczesniej i jak narazie nie laczy mi sie modem nadal. Moze gdzies mam bledy ale prosze o pomoc gdyz nie znam sie na tym az tak.

25

Odp: OPENWRT na tplink tl-wr 1043nd i konfiguracja modemu HAWEI E1750

Podłączyłeś modem. Z tego co pokazałeś to w ogóle nie został on przełączony - więc edytorem vi (lub nano, który musisz sobie doinstalować) edytujesz plik /etc/usb_modeswitch.setup

vi /etc/usb_modeswitch.setup

Musisz znaleźć sekcję która zawiera info dotyczące tego modemu; linie od niego będą zakomentowane znakiem ";" na początku linii. Trzeba te średniki usunąć, zapisać pliki i restart. Jeżeli wszystko jest ok, to w logach dostaniesz info o pojawieniu się /dev/ttyUSB0, 1 czasami jeszcze 2. I wtedy spróbuj się połączyć.
PS. W konfiguracji nie masz pinkodu podanego - jak go nie podasz to nie będzie się łączył automatycznie bo nie będzie odblokowana karta sim. Chyba że go już nie masz.

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