kevambert
-
Posts
95 -
Joined
-
Last visited
-
Days Won
1
Posts posted by kevambert
-
-
I fixed an error I made in posting the Fstab config I think I doubled pasted it in, Thanks billius for spotting that
-
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
-
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 ?
-
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
-
Yes I have a e160 set up, where are you stuck
-
We'll have a nice solution for all of this very shortly on the HakShop. Imagine some pineapple juice with *over 9000* mAh and dual usb output hooked up to the pineapple and a mini usb powered hub.
Sounds great Darren! I will be first in line to purchase one, I cant wait till I get the pineapple mobile for some inconspicuous Fun lol.
-
ok I got it going now it was simple in the end, the micro sd shows as sda in /dev, so all I had to do was change the line,
option device /dev/sda1
to
option device /dev/sda
then I followed Darrens instructions and it worked perfectly
-
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
-
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
-
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.
-
I changed the modem from a E220 to a E160G and changed service to umts, so far its been 30 mins without any drop outs.
thanks for sharing Mr.miYagi.
-
I managed to get mine connected however it disconnects after 5 - 10 mins
-
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
-
mine is also a Huawei but its a E220, ID 12d1:1003 same as yours, but i can not get it setup
-
Solved, thx
how did you solve it im having the same problem
Huawei Modems With A Pineapple Iv
in WiFi Pineapple Mark IV
Posted · Edited by kevambert
I dont know whistle master I have just been using symbolic links to the sd card mnt/sda1, to be honest I didnt think of puttting another option in Fstab to mount it to /usb, but I will try it now Thanks for the tip :)