Cassiopeia Posted December 12, 2012 Posted December 12, 2012 got your pineapple mk4 a while ago, love it! though i want to have the option on using my Huawei e175 in it Pineapple Hardware Version (ex: Mark III, Mark IV, etc.): Mark IV Pineapple Software Version (ex: 2.5.0, 2.6.4): 2.7.0 OS used to connect to the pineapple: Backtrack 5r3 Network layout of how your setup is connected (including IP information): wp4.sh script Is the problem repeatable (Yes/No): yes Steps taken which created the problem: edited the 3g script Error Messages: -see log below- Log file information: -down below- all this is copy pasted from the e173 modem script that is in the 3g script now i never got a username from my provider (telenor) but i did get a password (down below) im at a loss here and i have no idea what could be worng since the log just pokes out alot of letters! 3g script (added section) *12d1:1446*) echo "Huawei E175 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=apn uci set network.wan2.username=username uci set network.wan2.password=8657 uci set network.wan2.defaultroute=1 uci commit network usb_modeswitch -v 12d1 -p 1446 -V 12d1 -P 1001 -M 55534243123456780000000000000011060000000000000000000000000000 -n 1 -s 20 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x12d1 product=0x1446 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 ;; Log file 20:23:42 Pineapple daemon.notice netifd: Interface 'wan2' is now down 20:23:42 Pineapple daemon.info pppd[4864]: Exit. 20:23:41 Pineapple local2.info chat[4880]: timeout set to 30 seconds 20:23:41 Pineapple local2.info chat[4880]: timeout set to 10 seconds 20:23:41 Pineapple local2.info chat[4880]: send (ATE1^M) 20:23:41 Pineapple local2.info chat[4880]: send (AT+CGDCONT=1,"IP","apn"^M) 20:23:41 Pineapple local2.info chat[4880]: send (AT&F^M) 20:23:41 Pineapple local2.info chat[4880]: report (CONNECT) 20:23:41 Pineapple local2.info chat[4880]: expect (OK) 20:23:41 Pineapple local2.info chat[4880]: expect (OK) 20:23:41 Pineapple local2.info chat[4880]: expect (OK) 20:23:41 Pineapple local2.info chat[4880]: abort on (NO CARRIER) 20:23:41 Pineapple local2.info chat[4880]: abort on (ERROR) 20:23:41 Pineapple local2.info chat[4880]: abort on (BUSY) 20:23:41 Pineapple local2.info chat[4880]: ^M 20:23:41 Pineapple local2.info chat[4880]: ^M 20:23:41 Pineapple local2.info chat[4880]: OK 20:23:41 Pineapple local2.info chat[4880]: OK 20:23:41 Pineapple local2.info chat[4880]: Failed (ERROR) 20:23:41 Pineapple local2.info chat[4880]: ATE1^M^M 20:23:41 Pineapple local2.info chat[4880]: AT+CGDCONT=1,"IP","apn"^M^M 20:23:41 Pineapple local2.info chat[4880]: AT&F^M^M 20:23:41 Pineapple local2.info chat[4880]: +CME ERROR 20:23:41 Pineapple local2.info chat[4880]: -- got it 20:23:41 Pineapple local2.info chat[4880]: -- got it 20:23:41 Pineapple local2.info chat[4880]: -- failed 20:23:41 Pineapple daemon.err pppd[4864]: Connect script failed 20:23:40 Pineapple daemon.notice pppd[4864]: pppd 2.4.5 started by root, uid 0 20:23:40 Pineapple daemon.notice netifd: wan2 (4837): Trying to set mode usb connections Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem Quote
Sebkinne Posted December 12, 2012 Posted December 12, 2012 My guess is that your APN details are wrong. Telnor Norway? A quick google came up with this site: http://wiki.apnchanger.org/Norway I would see if changing your settings works. It seems like no username, no password and apn=telnor are the right settings. I see that you left the username as username and the apn as apn. I can almost guarantee that that is wrong and therefore the connection will fail. Quote
no42 Posted December 12, 2012 Posted December 12, 2012 Your Trace: sleep 3; insmod usbserial vendor=0x12d1 product=0x1446 Your USB info: Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem[/CODE][color=#282828][font=helvetica, arial, sans-serif]your script product id 0x1446 != device product id 1001, this might be causing driver problems?[/font][/color]Might be solved by editing the script to "product=0x1001" Quote
coolgeek Posted December 13, 2012 Posted December 13, 2012 Good catch, midnitesnake, usb_modeswitch -v 12d1 -p 1446 -V 12d1 -P 1001 -M 55534243123456780000000000000011060000000000000000000000000000 -n 1 -s 20 The pid was switched from the origianl 0x1446 to 0x1001 prior to the insmod command. 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.