Sebkinne Posted July 19, 2012 Posted July 19, 2012 Hey everyone, We would like to ask you all to submit your 3g modem configurations so that we can add as many 3g modems as possible to the next firmware release. If your modem is not one of the "officially supported" ones in the 3g.sh scripts and you modified it to make your modem work, please submit your modifications! Thank you all for your help, Sebkinne Quote
inTheDMZ Posted July 21, 2012 Posted July 21, 2012 *19d2:0031*) echo "ZTE MF637 (3UK) 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=three.co.uk 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 ;; I am using a T-Mobile (uk) branded MF637 It is unlocked and i have tested it with both 3UK and Giffgaff (02) networks, the giffgaff sim will require username and password options to be enabled Quote
kevambert Posted July 21, 2012 Posted July 21, 2012 for Huawei Modem's E160 E1762 and K3765 all three have an ID of 12d1:140c 3g script *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=3internet 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 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 I am not using the modeswitch as I get errors in the log file so I have it commented out Fstab to mount the sd card in the modem's (Credit to whistle master) config global automount option from_fstab 1 option anon_mount 1 config global autoswap option from_fstab 1 option anon_swap 1 config mount option target /usb option device /dev/sda option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 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 1 Fix for POE/LAN not working after mounting the SD card (again credit goes to whistle master) you need to Edit /etc/init.d/fstad to add sleep 15 in the start() function like this: start() { . /lib/functions/mount.sh sleep 15 config_load fstab mkdir -p /var/lock lock /var/lock/fstab.lck [ -e /tmp/fstab ] || { echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /tmp/fstab } lock -u /var/lock/fstab.lck config_foreach do_swapon swap config_foreach do_mount mount config_foreach do_swapon swap # do swap a second time so that swap on filesystems is enabled } Quote
TonTon Posted July 22, 2012 Posted July 22, 2012 Working with Huawei usb stick E1752, but the SD card is not working: *12d1:141b*) echo "Huawei E1752 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=your.apn.tld uci set network.wan2.username=user uci set network.wan2.password=pass uci set network.wan2.pincode=xxxx uci set network.wan2.defaultroute=1 uci commit network usb_modeswitch -v 12d1 -p 141b -H 1 -n 1 -s 20 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x12d1 product=0x141b 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 Quote
zyrax Posted August 31, 2012 Posted August 31, 2012 Does anyone know if the Huawei E173s-2 is compatible with the MKIV? I have tried a lot without success. Quote
TonTon Posted September 4, 2012 Posted September 4, 2012 Working Config for the "Option ICON 225": *0af0:6971*) echo "Option ICON 225 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=yourapn.tld uci set network.wan2.username=user uci set network.wan2.password=pass uci set network.wan2.pincode=xxxx uci set network.wan2.defaultroute=1 uci commit network usb_modeswitch -v 0af0 -p 6971 -R 1 -n 1 -s 20 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x0af0 product=0x6971 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 ;; Quote
mr_skater99 Posted September 5, 2012 Posted September 5, 2012 Telstra (Australia) branded MF626s *19d2:0031*) echo "Telstra MF626s Modem 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=telstra.internet uci set network.wan2.defaultroute=1 uci set network.wan2.pppd_options=debug uci set network.wan2.pppd_options=noauth uci commit network uci commit network sleep 10; rmmod usbserial sleep 3; 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 Quote
boomer007 Posted September 9, 2012 Posted September 9, 2012 To start the usb stick sdparm /dev/sda -vsdparm /dev/sda1 -vsdparm /dev/sda2 -v[/CODE]*1410:7030*) echo "Novatel MC998D (bell) 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/sda 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 7030 -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 ;; Quote
dustbyter Posted September 9, 2012 Posted September 9, 2012 Any tips on setting up internet sharing with a personal hotspot device such as the Clear 4G? I suspect you would use the USB Wifi antenna to connect to the hotspot's internet connection? Quote
Bluedevil266 Posted September 16, 2012 Posted September 16, 2012 (edited) Here is mine for the K3565-Z from Vodafone (at least they sell it here in germany) It´s unlock tough so it can be used with any provider. Oh yeah i can turned off the virtual CD-Rom drive when i unlocked it so no need or a modeswitch here because it will come online with the modem right away. But i am sure i would get it to work with modeswitch too just don´t want to turn the drive back on to test it. The sd memory is usable too. *19d2:0063*) echo "ZTE K3665-Z HSDPA detected. Attempting to connect" 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.vodafone.de uci set network.wan2.username= uci set network.wan2.password= uci set network.wan2.defaultroute=1 uci commit networksleep 2; rmmod usbserialsleep 3; insmod usbserial vendor=0x19d2 product=0x0063iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADEiptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPTiptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT[/CODE]I am still looking for a solution to bring the E585 from Huwaei to work with the pineapple wich would be awesome.Of course i can connect to it via a second wlan but it would be nice to use it over the usb connection so i can turn off wlan from the device itself. Edited September 16, 2012 by Bluedevil266 Quote
d1000 Posted January 11, 2013 Posted January 11, 2013 Hi, just upgrade to 2.7.3 to try fixing a microsd mount problem using HUAWEI 1750. Just notice the 3G script don't bring my configuration. If it helps, here it goes. *12d1:1001*) echo "Huawei E1750 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=tmn uci set network.wan2.password=tmn 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 ;; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.