Jump to content

Submit Your 3G Modem Configurations


Sebkinne

Recommended Posts

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

Link to comment
Share on other sites

*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

Link to comment
Share on other sites

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

}

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...

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

;;

Link to comment
Share on other sites

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

Link to comment
Share on other sites

To start the usb stick


sdparm /dev/sda -v
sdparm /dev/sda1 -v
sdparm /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

;;

Link to comment
Share on other sites

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 network
sleep 2; rmmod usbserial
sleep 3; insmod usbserial vendor=0x19d2 product=0x0063
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
[/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 by Bluedevil266
Link to comment
Share on other sites

  • 3 months later...

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

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