Jump to content

kevambert

Active Members
  • Posts

    95
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kevambert

  1. This worked for me

    Huawei E160G 12d1:140c, however you cant use the 3g on boot option as the micro SD card needs to mount first, but adding the 3G connection script to whistle master's button module sorts that out :)

    /etc/usb_modeswitch.d /12d1:140c ( I renamed the 12d1:1003 file to 12d1:140c and edited it to)

    ########################################################

    # Huawei E160G

    DefaultVendor= 0x12d1

    DefaultProduct=0x140c

    TargetClass=0xff

    CheckSuccess=20

    HuaweiMode=1

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

    Fstab:

    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 swap

    option device /dev/sda2

    option enabled 1

    resourcesh.jpg

  2. Ok guys thanks again for your feedback, i really need it! : ) I've changed the default 11 channel to 6 and now pineapple seems to work a lot better..Before changing the channel devices at 10 metres from pineapple couldn't connect to it and now i'm receiving a ping around 2 ms that's good..Is it normal such a high preformance gaining just switching the channel? Regarding to this topic i think it's useful to share range related issues and wifi perfomances as well, such as ping results, power of the signal and so on

    After reading you post I decided to test my pineapple iv and I have the very same results, changing to channel 6 more than doubled the range of the wifi signal.

    could this be because of tx power been just 18 dbm ?

  3. My E160 had an device id of 12d1:1003 but after I updated the modem firmware it gave me an id of 12d1:140c, as there was no usb_modeswitch file in /etc/usb_modeswitch.d for 12d1:140c I renamed the 12d1:1003 file to 12d1:140c and edited like so (using winSCP)

    ########################################################

    # Huawei E220, E160, E230, E270, E870

    DefaultVendor= 0x12d1

    DefaultProduct=0x140c

    TargetClass=0xff

    CheckSuccess=20

    HuaweiMode=1

    Then using the web interface I edited the Mobile Broadband Configuration script under USB to (using my apn of 3internet as im in Ireland)

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

    This works well even with 3G on boot enabled.

    to get the micro sd working I followed Darren Kitchen's tutorial Enable Mass Storage With Swap Partition however if you use the 3G on boot option the micro sd card doesn't mount so you will have to use the force connection now option after the pineapple boots and the micro sd card mounts.

    reboot the wifi pineapple iv an leave out the dongle till you Update Fstab then after a couple of secs stick it in,once it shows in resources you can then enable the swap

    "Quote/ Darren Kitchen"

    b. Plug in the USB drive and wait a minute for everything to settle.

    c. SSH into the WiFi Pineapple (typically "ssh root@172.16.42.1")

    d. Issue "mkswap /dev/sda2"

    my micro sd card shows up as sda in /dev so my Fstab looks like this

    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 swap

    option device /dev/sda2

    option enabled 1

  4. Thank You!

    I edited the steps in your tutorial to fit location/mnt points for a microSD in a ZTE MF591 'rocket'.

    Still need to ln sbin or use absolute paths for warez, but it works like a charm. Ran tcpdump all night last nite on a 16GB sd-card.

    Now it is possible to autossh -M 2000 -N -R 4255:localhost:22 root@myipaddy

    then from diff laptop ssh into root@myipaddy

    from there ssh localhost -p 4255

    myipaddy acts as relay

    can't seem to log out of pineapple ssh session and keep autossh session alive. I'm still learning (thank god)

    and I also used gparted. I was concerned about Darrens instruction for 'take ownership' of filesystem, as gparted did not give an option to disable/uncheck. But it worked perfectly. Again. Thank you. Thank you for subjecting me to such a fun device.

    condor could you please share the steps you took to do this as im having no luck mounting my microsd in my huawei modem, i have the card formatted as per darrens instructions.

    Thanks

  5. im new to the pineapple myself but i see in your script you have

    uci set network.wan2.proto=evdo

    should that not be

    uci set network.wan2.proto=3g

    did you edit and rename the file in /etc/usb_modeswitch.d you could try

    DefaultVendor= 0x19d2

    DefaultProduct=0xfff1

    TargetClass=0xff

    CheckSuccess=20

    HuaweiMode=1

    anyway thats how i set up mine only mine is a huawei 12d1:140c.

    then again if you look in /etc/chatscripts your evdo.chat file says

    ABORT BUSY

    ABORT 'NO CARRIER'

    ABORT ERROR

    ABORT 'NO DIAL TONE'

    ABORT 'NO ANSWER'

    ABORT DELAYED

    REPORT CONNECT

    TIMEOUT 10

    '' AT

    OK ATZ

    SAY 'Calling CDMA/EVDO'

    TIMEOUT 30

    OK ATDT#777

    CONNECT ''

    so in your script it says

    uci set network.wan2.service=umts

    where it should say,

    uci set network.wan2.service=cdma

    you could try it anyway

  6. whats your PID and VID number if its 19d2:fff1

    if you look in /etc/usb_modeswitch.d you will see that there is no configuration file for 19d2:fff1, however if you look at 19d2:fff6

    ########################################################

    # ZTE "fff" devices 2

    DefaultVendor= 0x19d2

    DefaultProduct=0xfff6

    TargetVendor= 0x19d2

    TargetProduct= 0xfff1

    MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"

    CheckSuccess=20

    you could edit the file to look like this, and then rename the file to 19d2:fff1,

    ########################################################

    # ZTE "fff" devices 2

    DefaultVendor= 0x19d2

    DefaultProduct=0xfff1

    TargetVendor= 0x19d2

    TargetProduct= 0xfff1

    MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"

    CheckSuccess=20

    it worked for me with a Huawei modem.

  7. mine is also a Huawei but its a E220, ID 12d1:1003 same as yours, but i can not get it setup

    ok I got it going now

    *12d1:1003*) echo "E220 HSDPA 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=wcdma

    uci set network.wan2.device=/dev/ttyUSB0

    uci set network.wan2.apn=maxisbb

    uci set network.wan2.username=maxis

    uci set network.wan2.password=maxis

    uci set network.wan2.defaultroute=1

    uci commit network

    usb_modeswitch -v 12d1 -p 1003 -V 12d1 -P 1003 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20

    sleep 10; rmmod usbserial

    sleep 3; insmod usbserial vendor=0x12d1 product=0x1003

    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

×
×
  • Create New...