Jump to content

Zte Modems Support On Mark Iv


Recommended Posts

Hi everybody,

I´ve managed to run 3 different ZTE USB Modems with the Pineapple Mark IV. I had to plug each modem through a USB hub plugged directly to the pineapple.

ZTE USB Modems working with the respective switch case are as follow:

ZTE MF668A HSPA+

*19d2:0117*)    echo "ZTE MF668A HSPA+ (COMCEL-COLOMBIA) 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/ttyUSB2     
                uci set network.wan2.apn=internet.comcel.com.co     
                uci set network.wan2.defaultroute=1    
                uci commit network 
		sleep 10; rmmod usbserial
		sleep 5; insmod usbserial vendor=0x19d2 product=0x0117
		#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
                ;;

ZTE MF100

*19d2:2003*)    echo "ZTE MF100 (TIGO-COLOMBIA) 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/ttyUSB3     
                uci set network.wan2.apn=web.colombiamovil.com.co     
                uci set network.wan2.defaultroute=1    
                uci commit network 
		sleep 10; rmmod usbserial
		sleep 5; insmod usbserial vendor=0x19d2 product=0x2003
		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

		;;

ZTE MF616

*19d2:0031*)    echo "ZTE MF616 (TIGO-COLOMBIA) 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/ttyUSB2     
                uci set network.wan2.apn=web.colombiamovil.com.co     
                uci set network.wan2.defaultroute=1    
                uci commit network 
		sleep 10; rmmod usbserial
		sleep 5; insmod usbserial vendor=0x19d2 product=0x0031
		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

                ;;

There is no need to use the usb_modeswitch command because the kernel does the switching alone for ZTE USB sticks with VID/PID 19d2:2000.

Hope it helps. :)

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...