Jump to content

Mark IV and 3G HUAWEI 1750 - Not working


d1000

Recommended Posts

Hi folks,
I've received my new Mark IV that already brings 2.7.0 working on it. I'm trying to put a HUAWEI 3G on it working with a portuguese operator TMN, that uses apn "internet." and no user or password is required.
Errors and info above. Thanks in advance for your help!
Cheers.
Pineapple Hardware Version - Mark IV
Pineapple Software Version - 2.7.0
OS used to connect to the pineapple: Windows 8
Network layout of how your setup is connected (including IP information): Simple default configuration using pineapple eth0 or wlan0
All the tools/options that are running on the pineapple when the issue happened: Stock options and no infusions yet
Ping results from computer to pineapple:
PING 8.8.8.8 (8.8.8.8): 56 data bytes
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
Is the problem repeatable : Yes, every time
Steps taken which created the problem: Just trying to use HUAWEI E1750
Error Messages: Connection error in status page, and no connectivity
Log file information:

00:19:48 Pineapple daemon.notice pppd[7653]: pppd 2.4.5 started by root, uid 0
00:19:48 Pineapple daemon.notice netifd: wan2 (7638): Trying to set mode
00:19:45 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:45 Pineapple daemon.info pppd[7628]: Exit.
00:19:44 Pineapple local2.info chat[7632]: timeout set to 30 seconds
00:19:44 Pineapple local2.info chat[7632]: timeout set to 10 seconds
00:19:44 Pineapple local2.info chat[7632]: send (ATE1^M)
00:19:44 Pineapple local2.info chat[7632]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:44 Pineapple local2.info chat[7632]: send (AT&F^M)
00:19:44 Pineapple local2.info chat[7632]: report (CONNECT)
00:19:44 Pineapple local2.info chat[7632]: expect (OK)
00:19:44 Pineapple local2.info chat[7632]: expect (OK)
00:19:44 Pineapple local2.info chat[7632]: expect (OK)
00:19:44 Pineapple local2.info chat[7632]: abort on (NO CARRIER)
00:19:44 Pineapple local2.info chat[7632]: abort on (ERROR)
00:19:44 Pineapple local2.info chat[7632]: abort on (BUSY)
00:19:44 Pineapple local2.info chat[7632]: ^M
00:19:44 Pineapple local2.info chat[7632]: ^M
00:19:44 Pineapple local2.info chat[7632]: OK
00:19:44 Pineapple local2.info chat[7632]: OK
00:19:44 Pineapple local2.info chat[7632]: Failed (ERROR)
00:19:44 Pineapple local2.info chat[7632]: ERROR
00:19:44 Pineapple local2.info chat[7632]: ATE1^M^M
00:19:44 Pineapple local2.info chat[7632]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:44 Pineapple local2.info chat[7632]: AT&F^M^M
00:19:44 Pineapple local2.info chat[7632]: -- got it
00:19:44 Pineapple local2.info chat[7632]: -- got it
00:19:44 Pineapple local2.info chat[7632]: -- failed
00:19:44 Pineapple daemon.err pppd[7628]: Connect script failed
00:19:43 Pineapple daemon.notice pppd[7628]: pppd 2.4.5 started by root, uid 0
00:19:43 Pineapple daemon.notice netifd: wan2 (7613): Trying to set mode
00:19:40 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:40 Pineapple daemon.info pppd[7603]: Exit.
00:19:39 Pineapple local2.info chat[7607]: timeout set to 30 seconds
00:19:39 Pineapple local2.info chat[7607]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:39 Pineapple local2.info chat[7607]: expect (OK)
00:19:39 Pineapple local2.info chat[7607]: ^M
00:19:39 Pineapple local2.info chat[7607]: OK
00:19:39 Pineapple local2.info chat[7607]: Failed (ERROR)
00:19:39 Pineapple local2.info chat[7607]: ERROR
00:19:39 Pineapple local2.info chat[7607]: ATE1^M^M
00:19:39 Pineapple local2.info chat[7607]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:39 Pineapple local2.info chat[7607]: -- got it
00:19:39 Pineapple local2.info chat[7607]: -- failed
00:19:39 Pineapple daemon.err pppd[7603]: Connect script failed
00:19:38 Pineapple local2.info chat[7607]: timeout set to 10 seconds
00:19:38 Pineapple local2.info chat[7607]: send (ATE1^M)
00:19:38 Pineapple local2.info chat[7607]: send (AT&F^M)
00:19:38 Pineapple local2.info chat[7607]: report (CONNECT)
00:19:38 Pineapple local2.info chat[7607]: expect (OK)
00:19:38 Pineapple local2.info chat[7607]: expect (OK)
00:19:38 Pineapple local2.info chat[7607]: abort on (NO CARRIER)
00:19:38 Pineapple local2.info chat[7607]: abort on (ERROR)
00:19:38 Pineapple local2.info chat[7607]: abort on (BUSY)
00:19:38 Pineapple local2.info chat[7607]: ^M
00:19:38 Pineapple local2.info chat[7607]: OK
00:19:38 Pineapple local2.info chat[7607]: AT&F^M^M
00:19:38 Pineapple local2.info chat[7607]: -- got it
00:19:37 Pineapple daemon.notice pppd[7603]: pppd 2.4.5 started by root, uid 0
00:19:37 Pineapple daemon.notice netifd: wan2 (7588): Trying to set mode
00:19:35 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:34 Pineapple daemon.info pppd[7578]: Exit.
00:19:33 Pineapple local2.info chat[7582]: timeout set to 30 seconds
00:19:33 Pineapple local2.info chat[7582]: timeout set to 10 seconds
00:19:33 Pineapple local2.info chat[7582]: send (ATE1^M)
00:19:33 Pineapple local2.info chat[7582]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:33 Pineapple local2.info chat[7582]: send (AT&F^M)
00:19:33 Pineapple local2.info chat[7582]: report (CONNECT)
00:19:33 Pineapple local2.info chat[7582]: expect (OK)
00:19:33 Pineapple local2.info chat[7582]: expect (OK)
00:19:33 Pineapple local2.info chat[7582]: expect (OK)
00:19:33 Pineapple local2.info chat[7582]: abort on (NO CARRIER)
00:19:33 Pineapple local2.info chat[7582]: abort on (ERROR)
00:19:33 Pineapple local2.info chat[7582]: abort on (BUSY)
00:19:33 Pineapple local2.info chat[7582]: ^M
00:19:33 Pineapple local2.info chat[7582]: ^M
00:19:33 Pineapple local2.info chat[7582]: OK
00:19:33 Pineapple local2.info chat[7582]: OK
00:19:33 Pineapple local2.info chat[7582]: Failed (ERROR)
00:19:33 Pineapple local2.info chat[7582]: ERROR
00:19:33 Pineapple local2.info chat[7582]: ATE1^M^M
00:19:33 Pineapple local2.info chat[7582]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:33 Pineapple local2.info chat[7582]: AT&F^M^M
00:19:33 Pineapple local2.info chat[7582]: -- got it
00:19:33 Pineapple local2.info chat[7582]: -- got it
00:19:33 Pineapple local2.info chat[7582]: -- failed
00:19:33 Pineapple daemon.err pppd[7578]: Connect script failed
00:19:32 Pineapple daemon.notice pppd[7578]: pppd 2.4.5 started by root, uid 0
00:19:32 Pineapple daemon.notice netifd: wan2 (7560): Trying to set mode
00:19:29 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:29 Pineapple daemon.info pppd[7550]: Exit.
00:19:28 Pineapple local2.info chat[7554]: timeout set to 30 seconds
00:19:28 Pineapple local2.info chat[7554]: timeout set to 10 seconds
00:19:28 Pineapple local2.info chat[7554]: send (ATE1^M)
00:19:28 Pineapple local2.info chat[7554]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:28 Pineapple local2.info chat[7554]: send (AT&F^M)
00:19:28 Pineapple local2.info chat[7554]: report (CONNECT)
00:19:28 Pineapple local2.info chat[7554]: expect (OK)
00:19:28 Pineapple local2.info chat[7554]: expect (OK)
00:19:28 Pineapple local2.info chat[7554]: expect (OK)
00:19:28 Pineapple local2.info chat[7554]: abort on (NO CARRIER)
00:19:28 Pineapple local2.info chat[7554]: abort on (ERROR)
00:19:28 Pineapple local2.info chat[7554]: abort on (BUSY)
00:19:28 Pineapple local2.info chat[7554]: ^M
00:19:28 Pineapple local2.info chat[7554]: ^M
00:19:28 Pineapple local2.info chat[7554]: OK
00:19:28 Pineapple local2.info chat[7554]: OK
00:19:28 Pineapple local2.info chat[7554]: Failed (ERROR)
00:19:28 Pineapple local2.info chat[7554]: ERROR
00:19:28 Pineapple local2.info chat[7554]: ATE1^M^M
00:19:28 Pineapple local2.info chat[7554]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:28 Pineapple local2.info chat[7554]: AT&F^M^M
00:19:28 Pineapple local2.info chat[7554]: -- got it
00:19:28 Pineapple local2.info chat[7554]: -- got it
00:19:28 Pineapple local2.info chat[7554]: -- failed
00:19:28 Pineapple daemon.err pppd[7550]: Connect script failed
00:19:27 Pineapple daemon.notice pppd[7550]: pppd 2.4.5 started by root, uid 0
00:19:27 Pineapple daemon.notice netifd: wan2 (7535): Trying to set mode
00:19:24 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:24 Pineapple daemon.info pppd[7525]: Exit.
00:19:23 Pineapple local2.info chat[7529]: timeout set to 30 seconds
00:19:23 Pineapple local2.info chat[7529]: expect (OK)
00:19:23 Pineapple local2.info chat[7529]: ^M
00:19:23 Pineapple local2.info chat[7529]: Failed (ERROR)
00:19:23 Pineapple local2.info chat[7529]: ERROR
00:19:23 Pineapple local2.info chat[7529]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:23 Pineapple local2.info chat[7529]: -- failed
00:19:23 Pineapple daemon.err pppd[7525]: Connect script failed
00:19:22 Pineapple local2.info chat[7529]: timeout set to 10 seconds
00:19:22 Pineapple local2.info chat[7529]: send (ATE1^M)
00:19:22 Pineapple local2.info chat[7529]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:22 Pineapple local2.info chat[7529]: send (AT&F^M)
00:19:22 Pineapple local2.info chat[7529]: report (CONNECT)
00:19:22 Pineapple local2.info chat[7529]: expect (OK)
00:19:22 Pineapple local2.info chat[7529]: expect (OK)
00:19:22 Pineapple local2.info chat[7529]: abort on (NO CARRIER)
00:19:22 Pineapple local2.info chat[7529]: abort on (ERROR)
00:19:22 Pineapple local2.info chat[7529]: abort on (BUSY)
00:19:22 Pineapple local2.info chat[7529]: ^M
00:19:22 Pineapple local2.info chat[7529]: OK
00:19:22 Pineapple local2.info chat[7529]: OK
00:19:22 Pineapple local2.info chat[7529]: ATE1^M^M
00:19:22 Pineapple local2.info chat[7529]: AT&F^M^M
00:19:22 Pineapple local2.info chat[7529]: -- got it
00:19:22 Pineapple local2.info chat[7529]: -- got it
00:19:21 Pineapple daemon.notice pppd[7525]: pppd 2.4.5 started by root, uid 0
00:19:21 Pineapple daemon.notice netifd: wan2 (7507): Trying to set mode
00:19:18 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:18 Pineapple daemon.info pppd[7497]: Exit.
00:19:17 Pineapple local2.info chat[7501]: timeout set to 30 seconds
00:19:17 Pineapple local2.info chat[7501]: timeout set to 10 seconds
00:19:17 Pineapple local2.info chat[7501]: send (ATE1^M)
00:19:17 Pineapple local2.info chat[7501]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:17 Pineapple local2.info chat[7501]: send (AT&F^M)
00:19:17 Pineapple local2.info chat[7501]: report (CONNECT)
00:19:17 Pineapple local2.info chat[7501]: expect (OK)
00:19:17 Pineapple local2.info chat[7501]: expect (OK)
00:19:17 Pineapple local2.info chat[7501]: expect (OK)
00:19:17 Pineapple local2.info chat[7501]: abort on (NO CARRIER)
00:19:17 Pineapple local2.info chat[7501]: abort on (ERROR)
00:19:17 Pineapple local2.info chat[7501]: abort on (BUSY)
00:19:17 Pineapple local2.info chat[7501]: ^M
00:19:17 Pineapple local2.info chat[7501]: ^M
00:19:17 Pineapple local2.info chat[7501]: OK
00:19:17 Pineapple local2.info chat[7501]: OK
00:19:17 Pineapple local2.info chat[7501]: Failed (ERROR)
00:19:17 Pineapple local2.info chat[7501]: ERROR
00:19:17 Pineapple local2.info chat[7501]: ATE1^M^M
00:19:17 Pineapple local2.info chat[7501]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:17 Pineapple local2.info chat[7501]: AT&F^M^M
00:19:17 Pineapple local2.info chat[7501]: -- got it
00:19:17 Pineapple local2.info chat[7501]: -- got it
00:19:17 Pineapple local2.info chat[7501]: -- failed
00:19:17 Pineapple daemon.err pppd[7497]: Connect script failed
00:19:16 Pineapple daemon.notice pppd[7497]: pppd 2.4.5 started by root, uid 0
00:19:16 Pineapple daemon.notice netifd: wan2 (7482): Trying to set mode
00:19:13 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:13 Pineapple daemon.info pppd[7468]: Exit.
00:19:12 Pineapple local2.info chat[7472]: timeout set to 30 seconds
00:19:12 Pineapple local2.info chat[7472]: timeout set to 10 seconds
00:19:12 Pineapple local2.info chat[7472]: send (ATE1^M)
00:19:12 Pineapple local2.info chat[7472]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:12 Pineapple local2.info chat[7472]: send (AT&F^M)
00:19:12 Pineapple local2.info chat[7472]: report (CONNECT)
00:19:12 Pineapple local2.info chat[7472]: expect (OK)
00:19:12 Pineapple local2.info chat[7472]: expect (OK)
00:19:12 Pineapple local2.info chat[7472]: expect (OK)
00:19:12 Pineapple local2.info chat[7472]: abort on (NO CARRIER)
00:19:12 Pineapple local2.info chat[7472]: abort on (ERROR)
00:19:12 Pineapple local2.info chat[7472]: abort on (BUSY)
00:19:12 Pineapple local2.info chat[7472]: ^M
00:19:12 Pineapple local2.info chat[7472]: ^M
00:19:12 Pineapple local2.info chat[7472]: OK
00:19:12 Pineapple local2.info chat[7472]: OK
00:19:12 Pineapple local2.info chat[7472]: Failed (ERROR)
00:19:12 Pineapple local2.info chat[7472]: ERROR
00:19:12 Pineapple local2.info chat[7472]: ATE1^M^M
00:19:12 Pineapple local2.info chat[7472]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:12 Pineapple local2.info chat[7472]: AT&F^M^M
00:19:12 Pineapple local2.info chat[7472]: -- got it
00:19:12 Pineapple local2.info chat[7472]: -- got it
00:19:12 Pineapple local2.info chat[7472]: -- failed
00:19:12 Pineapple daemon.err pppd[7468]: Connect script failed
00:19:11 Pineapple daemon.notice pppd[7468]: pppd 2.4.5 started by root, uid 0
00:19:11 Pineapple daemon.notice netifd: wan2 (7442): Trying to set mode
00:19:08 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:08 Pineapple daemon.info pppd[7432]: Exit.
00:19:07 Pineapple local2.info chat[7436]: timeout set to 30 seconds
00:19:07 Pineapple local2.info chat[7436]: expect (OK)
00:19:07 Pineapple local2.info chat[7436]: ^M
00:19:07 Pineapple local2.info chat[7436]: Failed (ERROR)
00:19:07 Pineapple local2.info chat[7436]: ERROR
00:19:07 Pineapple local2.info chat[7436]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:07 Pineapple local2.info chat[7436]: -- failed
00:19:07 Pineapple daemon.err pppd[7432]: Connect script failed
00:19:06 Pineapple local2.info chat[7436]: timeout set to 10 seconds
00:19:06 Pineapple local2.info chat[7436]: send (ATE1^M)
00:19:06 Pineapple local2.info chat[7436]: send (AT+CGDCONT=1,"IP","internet."^M)
00:19:06 Pineapple local2.info chat[7436]: send (AT&F^M)
00:19:06 Pineapple local2.info chat[7436]: report (CONNECT)
00:19:06 Pineapple local2.info chat[7436]: expect (OK)
00:19:06 Pineapple local2.info chat[7436]: expect (OK)
00:19:06 Pineapple local2.info chat[7436]: abort on (NO CARRIER)
00:19:06 Pineapple local2.info chat[7436]: abort on (ERROR)
00:19:06 Pineapple local2.info chat[7436]: abort on (BUSY)
00:19:06 Pineapple local2.info chat[7436]: ^M
00:19:06 Pineapple local2.info chat[7436]: OK
00:19:06 Pineapple local2.info chat[7436]: OK
00:19:06 Pineapple local2.info chat[7436]: ATE1^M^M
00:19:06 Pineapple local2.info chat[7436]: AT&F^M^M
00:19:06 Pineapple local2.info chat[7436]: -- got it
00:19:06 Pineapple local2.info chat[7436]: -- got it
00:19:05 Pineapple daemon.notice pppd[7432]: pppd 2.4.5 started by root, uid 0
00:19:05 Pineapple daemon.notice netifd: wan2 (7417): Trying to set mode
00:19:02 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:19:02 Pineapple daemon.info pppd[7407]: Exit.
00:19:01 Pineapple local2.info chat[7411]: expect (OK)
00:19:01 Pineapple local2.info chat[7411]: ^M
00:19:01 Pineapple local2.info chat[7411]: Failed (ERROR)
00:19:01 Pineapple local2.info chat[7411]: ERROR
00:19:01 Pineapple local2.info chat[7411]: AT+CGDCONT=1,"IP","internet."^M^M
00:19:01 Pineapple local2.info chat[7411]: -- failed
00:19:01 Pineapple daemon.err pppd[7407]: Connect script failed

Anything else that was attempted to 'fix' the problem:
Try to search and ack some of the problems reported in the forum for HUAWEI 3G pens
Adicional Info: Using Portuguese TMN with APN "internet." and no user and password
USB Connections
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Mobile Broadband Configuration
#!/bin/sh
# ---------------------------------------------------------
# 3G Connection Script for WiFi Pineapple. "Does the thing"
# 
# Version: 2012-02-17
# Supports:
# 
# ZTE MF591 (T-Mobile) -dkitchen 
# Novatel MC760 (Virgin) -dkitchen
# Novatel MC760 (Ting) -dkitchen
# Sierra 598u (Ting) -brianzimm
# And more.
# 
# Updates: wifipineapple.com
# ---------------------------------------------------------




# -----------------------------------------------------------
# Configure /etc/ppp/options with hard-coded working settings
# -----------------------------------------------------------
echo "
logfile /dev/null
noaccomp
nopcomp
nocrtscts
lock
maxfail 0" > /etc/ppp/options


# --------------------------------------------------------------------------------------------------
# Check for known usb modem vendor and product IDs then switch 'em from storage to serial modem mode
# --------------------------------------------------------------------------------------------------
echo "Searching for attached 3G Modems"
logger "3G: Connection Script here, searching for modems"
MODEM=$(lsusb | awk '{ print $6 }')
echo $MODEM


case "$MODEM" in


*19d2:1523*)    echo "ZTE MF591 (T-Mobile) detected. Attempting mode switch"
                uci delete network.wan2         
                uci set network.wan2=interface  
                uci set network.wan2.ifname=ppp0           
                uci set network.wan2.proto=3g           
                uci set network.wan2.service=umts       
                uci set network.wan2.device=/dev/ttyUSB0     
                uci set network.wan2.apn=internet.
                uci set network.wan2.username=       
                uci set network.wan2.password=
                uci set network.wan2.defaultroute=1    
                uci commit network 
usb_modeswitch -v 19d2 -p 1523 -V 19d2 -P 1525 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x19d2 product=0x1525
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT 
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT


;;
*1410:6002* | *1410:5031*) echo "Novatel MC760 (Virgin Mobile) detected. Attempting mode switch"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service=cdma
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.username=internet
uci set network.wan2.password=internet
uci set network.wan2.defaultroute=1
uci set network.wan2.ppp_redial=persist
uci set network.wan2.peerdns=0
uci set network.wan2.dns=8.8.8.8
uci set network.wan2.keepalive=1
uci set network.wan2.pppd_options=debug
uci set network.wan2.pppd_options=noauth
uci commit network
usb_modeswitch -v 1410 -p 5031 -V 1410 -P 6002 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x1410 product=0x6002
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT 
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT


;;
*1410:5030*) echo "Novatel MC760 (Ting) detected. Attempting mode switch"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service=cdma
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.username=internet
uci set network.wan2.password=internet
uci set network.wan2.defaultroute=1
uci set network.wan2.ppp_redial=persist
uci set network.wan2.peerdns=0
uci set network.wan2.dns=8.8.8.8
uci set network.wan2.keepalive=1
uci set network.wan2.pppd_options=debug
uci set network.wan2.pppd_options=noauth
uci commit network
usb_modeswitch -v 1410 -p 5030 -V 1410 -P 6000 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x1410 product=0x6000
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT 
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT


;;
*1199:0025*)    echo "Sierra 598u (Ting) detected. Attempting mode switch"
                uci delete network.wan2
                uci set network.wan2=interface
                uci set network.wan2.ifname=ppp0
                uci set network.wan2.proto=3g
                uci set network.wan2.service=cdma
                uci set network.wan2.device=/dev/ttyUSB0
                uci set network.wan2.username=internet
                uci set network.wan2.password=internet
                uci set network.wan2.defaultroute=1
                uci set network.wan2.ppp_redial=persist
                uci set network.wan2.peerdns=0
                uci set network.wan2.dns=8.8.8.8
                uci set network.wan2.keepalive=1
                uci set network.wan2.pppd_options=debug
                uci set network.wan2.pppd_options=noauth
                uci commit network
                usb_modeswitch -v 1199 -p 0025
                sleep 10; rmmod usbserial
                sleep 3; insmod usbserial vendor=0x1199 product=0x0025
                sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
                logger "3G: firewall stopped"
                iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
                iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT 
                iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT


                ;;
*12d1:1001*) echo "Huawei E173 detected. Attempting mode switch"
 uci delete network.wan2 
 uci set network.wan2=interface 
 uci set network.wan2.ifname=ppp0 
 uci set network.wan2.proto=3g 
 uci set network.wan2.service=umts 
 uci set network.wan2.device=/dev/ttyUSB0 
 uci set network.wan2.apn=internet.
 uci set network.wan2.username= 
 uci set network.wan2.password=
 uci set network.wan2.defaultroute=1
 uci commit network
 usb_modeswitch -v 12d1 -p 1001
 sleep 10; rmmod usbserial
 sleep 3; insmod usbserial vendor=0x12d1 product=0x1001
 sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
 logger "3G: firewall stopped"
 iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
 iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT 
 iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT
 ;;


*12d1:140c*)    echo "Huawei Modem (3-IRL) detected. Attempting mode switch"
                uci delete network.wan2
                uci set network.wan2=interface
                uci set network.wan2.ifname=ppp0
                uci set network.wan2.proto=3g
                uci set network.wan2.service=umts
                uci set network.wan2.device=/dev/ttyUSB0
                uci set network.wan2.apn= internet.
                uci set network.wan2.username=
                uci set network.wan2.password=
                uci set network.wan2.defaultroute=1
                uci commit network
                usb_modeswitch -v 12d1 -p 140c -V 12d1 -P 140c -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20
                sleep 10; rmmod usbserial
                sleep 3; insmod usbserial vendor=0x12d1 product=0x140c
                sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
                logger "3G: firewall stopped"
                iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
                iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT
                iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT


                ;;
esac

Interfaces

br-lan Link encap:Ethernet HWaddr 00:C0:CA:66:98:89
inet addr:172.16.42.1 Bcast:172.16.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1339 errors:0 dropped:71 overruns:0 frame:0
TX packets:511 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:67805 (66.2 KiB) TX bytes:45086 (44.0 KiB)
eth0 Link encap:Ethernet HWaddr 00:C0:CA:66:98:89
UP 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)
Interrupt:5
eth1 Link encap:Ethernet HWaddr 00:C0:CA:66:98:88
UP 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)
Interrupt:4
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:756 errors:0 dropped:0 overruns:0 frame:0
TX packets:756 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:58366 (56.9 KiB) TX bytes:58366 (56.9 KiB)
wlan0 Link encap:Ethernet HWaddr 00:C0:CA:66:98:8A
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1338 errors:0 dropped:0 overruns:0 frame:0
TX packets:1522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:86531 (84.5 KiB) TX bytes:131489 (128.4 KiB)

lsusb Output
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
fstab Configuration

config global automount
option from_fstab 1
option anon_mount 1
config global autoswap
option from_fstab 1
option anon_swap 0
config mount
option target /usb
option device /dev/sda1
option fstype ext4
option options rw,sync
option enabled 1
option enabled_fsck 0
config swap
option device /dev/sda2
option enabled 0

Execute: ls /dev/tty*

/dev/tty
/dev/ttyATH0
/dev/ttyS0
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2

Link to comment
Share on other sites

00:19:12 Pineapple local2.info chat[7472]: abort on (NO CARRIER)
00:19:12 Pineapple local2.info chat[7472]: abort on (ERROR)
00:19:12 Pineapple local2.info chat[7472]: abort on (BUSY)
00:19:12 Pineapple local2.info chat[7472]: ^M
00:19:12 Pineapple local2.info chat[7472]: ^M
00:19:12 Pineapple local2.info chat[7472]: OK
00:19:12 Pineapple local2.info chat[7472]: OK
00:19:12 Pineapple local2.info chat[7472]: Failed (ERROR)
00:19:12 Pineapple local2.info chat[7472]: ERROR
00:19:12 Pineapple local2.info chat[7472]: ATE1^M^M

This would suggest to me that the modem is working, and settings are wrong

Link to comment
Share on other sites

Try using APN=tmn > Username=tmn > Password=tmn or APN=internet > Username=tmn > Password=tmn i came across a post with people having a similar issue with TMN, hope this helps

APN:internet U:tmn P:tmn WORKS!!!!! Many thanks! for your help guys!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...