Jump to content

using 3g usb dongle in the uk


moonoi
 Share

Recommended Posts

hi all,

please help? after days of searching forums etc… i can not find a 3g dongle that works here in the uk with the pineapple. I have plugged the dongle in to a windows machine and all ok, light stays blue on the dongle etc… Any help much appreciated! thanks. I think the one i have the best chance with is E173 for which i have listed the logs etc here for. Please take a look?

root@Pineapple:~# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 005: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)

i updated the script with the correct APN settings etc… but need some help please

root@Pineapple:~# cat /pineapple/3g/3g

3g-keepalive.sh 3g.sh

root@Pineapple:~# cat /pineapple/3g/3g.sh

#!/bin/sh

# ---------------------------------------------------------

# 3G Connection Script for WiFi Pineapple. "Does the thing"

#

# Version: 2012-02-17

# Supports:

#

# ZTE MF591 (T-Mobile) -dkitchen

# Novatel MC760 (Virgin) -dkitchen

# Novatel MC760 (Ting) -dkitchen

# Sierra 598u (Ting) -brianzimm

# And more.

#

# Updates: wifipineapple.com

# ---------------------------------------------------------

# -----------------------------------------------------------

# Configure /etc/ppp/options with hard-coded working settings

# -----------------------------------------------------------

echo "

logfile /dev/null

noaccomp

nopcomp

nocrtscts

lock

maxfail 0" > /etc/ppp/options

# --------------------------------------------------------------------------------------------------

# Check for known usb modem vendor and product IDs then switch 'em from storage to serial modem mode

# --------------------------------------------------------------------------------------------------

echo "Searching for attached 3G Modems"

logger "3G: Connection Script here, searching for modems"

MODEM=$(lsusb | awk '{ print $6 }')

echo $MODEM

case "$MODEM" in

*19d2:1523*) echo "ZTE MF591 (T-Mobile) 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=epc.tmobile.com

uci set network.wan2.username=internet

uci set network.wan2.password=internet

uci set network.wan2.defaultroute=1

uci commit network

usb_modeswitch -v 19d2 -p 1523 -V 19d2 -P 1525 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20

sleep 10; rmmod usbserial

sleep 3; insmod usbserial vendor=0x19d2 product=0x1525

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

;;

*1410:6002* | *1410:5031*) echo "Novatel MC760 (Virgin Mobile) 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/ttyUSB0

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 5031 -V 1410 -P 6002 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20

sleep 10; rmmod usbserial

sleep 3; insmod usbserial vendor=0x1410 product=0x6002

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

;;

*1410:5030*) echo "Novatel MC760 (Ting) 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/ttyUSB0

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

;;

*1199:0025*) echo "Sierra 598u (Ting) 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/ttyUSB0

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 1199 -p 0025

sleep 10; rmmod usbserial

sleep 3; insmod usbserial vendor=0x1199 product=0x0025

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

;;

*12d1:1436*) echo "Huawei E173 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=payandgo.o2.co.uk

uci set network.wan2.username=payandgo

uci set network.wan2.password=password

uci set network.wan2.defaultroute=1

uci commit network

usb_modeswitch -v 12d1 -p 1436

sleep 10; rmmod usbserial

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

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

;;

*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

;;

esac

root@Pineapple:~# ls /dev/ttyUSB*

/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2

2.31 PQ: 0 ANSI: 2

Jan 1 00:12:46 Pineapple kern.notice kernel: [ 766.600000] sd 15:0:0:0: Attached scsi generic sg1 type 0

Jan 1 00:12:46 Pineapple kern.notice kernel: [ 766.610000] sd 15:0:0:0: [sda] Attached SCSI removable disk

Jan 1 00:13:14 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:15 Pineapple user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:15 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:15 Pineapple user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:15 Pineapple user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:16 Pineapple user.notice usb-modeswitch: 1-1:1.4: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:16 Pineapple user.notice usb-modeswitch: 1-1:1.5: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:16 Pineapple user.notice usb-modeswitch: 1-1:1.6: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

Jan 1 00:13:21 Pineapple user.notice root: 3G: Connection Script here, searching for modems

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.670000] usbcore: deregistering interface driver usbserial_generic

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.680000] generic ttyUSB2: generic converter now disconnected from ttyUSB2

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.680000] usbserial_generic 1-1:1.4: device disconnected

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.690000] generic ttyUSB1: generic converter now disconnected from ttyUSB1

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.700000] usbserial_generic 1-1:1.3: device disconnected

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.700000] generic ttyUSB0: generic converter now disconnected from ttyUSB0

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.710000] usbserial_generic 1-1:1.0: device disconnected

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.710000] USB Serial deregistering driver generic

Jan 1 00:13:34 Pineapple kern.info kernel: [ 814.720000] usbcore: deregistering interface driver usbserial

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.760000] usbcore: registered new interface driver usbserial

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.770000] USB Serial support registered for generic

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.770000] usbserial_generic 1-1:1.0: generic converter detected

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.780000] usb 1-1: generic converter now attached to ttyUSB0

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.780000] usbserial_generic 1-1:1.3: generic converter detected

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.790000] usb 1-1: generic converter now attached to ttyUSB1

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.790000] usbserial_generic 1-1:1.4: generic converter detected

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.800000] usb 1-1: generic converter now attached to ttyUSB2

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.800000] usbcore: registered new interface driver usbserial_generic

Jan 1 00:13:37 Pineapple kern.info kernel: [ 817.810000] usbserial: USB Serial Driver core

Jan 1 00:13:42 Pineapple user.notice root: 3G: firewall stopped

root@Pineapple:~#

Link to comment
Share on other sites

Use one dongle at a time and show logs and dmesg output. Power cycle, and repeat.

Your dongle's aren't being properly disconnected from the system's kernel so they end up using the next ttyUSB_X (eg /dev/ttyUSB[1 2 3]), where the config is always looking on /dev/ttyUSB0 for the ppp modem

I've used a Huwawei in the past with no issues. My pineapple is on loan to a friend, so I cant check my config right now.

Lastly check your apn address ; this varies per contract/provider.

username and password are usually blank, as authentication is usually provided at the SIM level.

I tend to travel quite a bit, I've used a pineapple in the USA, various European Countries and Australia (with an appropriate dongle and SIM depending on location).

Edited by midnitesnake
Link to comment
Share on other sites

Hi there, thanks for the reply. Sorry for my slow response, only had chance again today.

So since power off and on, now getting this; but no public ip/ internet access?

00:09:13 Pineapple daemon.notice pppd[2219]: CHAP authentication succeeded

00:09:13 Pineapple daemon.info pppd[2219]: CHAP authentication succeeded

00:09:12 Pineapple user.notice root: 3G: firewall stopped

00:09:12 Pineapple local2.info chat[2223]: timeout set to 30 seconds

00:09:12 Pineapple local2.info chat[2223]: send (ATD*99***1#^M)

00:09:12 Pineapple local2.info chat[2223]: send ( ^M)

00:09:12 Pineapple local2.info chat[2223]: expect (OK)

00:09:12 Pineapple local2.info chat[2223]: expect (CONNECT)

00:09:12 Pineapple local2.info chat[2223]: ^M

00:09:12 Pineapple local2.info chat[2223]: ^M

00:09:12 Pineapple local2.info chat[2223]: OK

00:09:12 Pineapple local2.info chat[2223]: CONNECT

00:09:12 Pineapple local2.info chat[2223]: ATD*99***1#^M^M

00:09:12 Pineapple local2.info chat[2223]: AT+CGDCONT=1,"IP","payandgo.o2.co.uk"^M^M

00:09:12 Pineapple local2.info chat[2223]: -- got it

00:09:12 Pineapple local2.info chat[2223]: -- got it

00:09:12 Pineapple daemon.notice pppd[2219]: Connect: 3g-wan2 <--> /dev/ttyUSB0

00:09:12 Pineapple daemon.info pppd[2219]: Using interface 3g-wan2

00:09:12 Pineapple daemon.info pppd[2219]: Serial connection established.

00:09:11 Pineapple local2.info chat[2223]: timeout set to 10 seconds

00:09:11 Pineapple local2.info chat[2223]: send (ATE1^M)

00:09:11 Pineapple local2.info chat[2223]: send (AT+CGDCONT=1,"IP","payandgo.o2.co.uk"^M)

00:09:11 Pineapple local2.info chat[2223]: send (AT&F^M)

00:09:11 Pineapple local2.info chat[2223]: report (CONNECT)

00:09:11 Pineapple local2.info chat[2223]: expect (OK)

00:09:11 Pineapple local2.info chat[2223]: expect (OK)

00:09:11 Pineapple local2.info chat[2223]: abort on (NO CARRIER)

00:09:11 Pineapple local2.info chat[2223]: abort on (ERROR)

00:09:11 Pineapple local2.info chat[2223]: abort on (BUSY)

00:09:11 Pineapple local2.info chat[2223]: ^M

00:09:11 Pineapple local2.info chat[2223]: OK

00:09:11 Pineapple local2.info chat[2223]: OK

00:09:11 Pineapple local2.info chat[2223]: ATE1^M^M

00:09:11 Pineapple local2.info chat[2223]: AT&F^M^M

00:09:11 Pineapple local2.info chat[2223]: -- got it

00:09:11 Pineapple local2.info chat[2223]: -- got it

00:09:10 Pineapple daemon.notice pppd[2219]: pppd 2.4.5 started by root, uid 0

00:09:10 Pineapple daemon.notice netifd: wan2 (2181): Trying to set mode

00:09:10 Pineapple daemon.info dnsmasq-dhcp[1466]: DHCPREQUEST(br-lan) 172.16.42.207 64:d9:89:c5:4e:31

00:09:10 Pineapple daemon.info dnsmasq-dhcp[1466]: DHCPOFFER(br-lan) 172.16.42.207 64:d9:89:c5:4e:31

00:09:10 Pineapple daemon.info dnsmasq-dhcp[1466]: DHCPDISCOVER(br-lan) 64:d9:89:c5:4e:31

00:09:10 Pineapple daemon.info dnsmasq-dhcp[1466]: DHCPACK(br-lan) 172.16.42.207 64:d9:89:c5:4e:31 RLDP

00:09:07 Pineapple kern.info kernel: [ 547.140000] usbserial: USB Serial Driver core

00:09:07 Pineapple kern.info kernel: [ 547.140000] usbcore: registered new interface driver usbserial_generic

00:09:07 Pineapple kern.info kernel: [ 547.130000] usbserial_generic 1-1:1.4: generic converter detected

00:09:07 Pineapple kern.info kernel: [ 547.130000] usb 1-1: generic converter now attached to ttyUSB2

00:09:07 Pineapple kern.info kernel: [ 547.120000] usb 1-1: generic converter now attached to ttyUSB1

00:09:07 Pineapple kern.info kernel: [ 547.110000] usbserial_generic 1-1:1.3: generic converter detected

00:09:07 Pineapple kern.info kernel: [ 547.110000] usb 1-1: generic converter now attached to ttyUSB0

00:09:07 Pineapple kern.info kernel: [ 547.100000] usbserial_generic 1-1:1.0: generic converter detected

00:09:07 Pineapple kern.info kernel: [ 547.100000] USB Serial support registered for generic

00:09:07 Pineapple kern.info kernel: [ 547.090000] usbcore: registered new interface driver usbserial

00:09:07 Pineapple daemon.info hostapd: wlan0: STA 64:d9:89:c5:4e:31 IEEE 802.11: authenticated

00:09:07 Pineapple daemon.info hostapd: wlan0: STA 64:d9:89:c5:4e:31 IEEE 802.11: associated (aid 1)

00:09:04 Pineapple kern.info kernel: [ 544.050000] usbcore: deregistering interface driver usbserial

00:09:04 Pineapple kern.info kernel: [ 544.050000] USB Serial deregistering driver generic

00:09:04 Pineapple kern.info kernel: [ 544.040000] usbcore: deregistering interface driver usbserial_generic

00:08:51 Pineapple user.notice root: 3G: Connection Script here, searching for modems

00:08:28 Pineapple user.notice usb-modeswitch: 1-1:1.6: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:08:28 Pineapple user.notice usb-modeswitch: 1-1:1.5: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:08:28 Pineapple user.notice usb-modeswitch: 1-1:1.4: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:08:28 Pineapple user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:08:28 Pineapple user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:08:28 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:08:28 Pineapple user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:08:27 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:07:59 Pineapple kern.notice kernel: [ 479.380000] sd 7:0:0:0: [sda] Attached SCSI removable disk

00:07:59 Pineapple kern.notice kernel: [ 479.370000] sd 7:0:0:0: Attached scsi generic sg1 type 0

00:07:59 Pineapple kern.notice kernel: [ 479.360000] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2

00:07:59 Pineapple kern.notice kernel: [ 479.350000] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2

00:07:59 Pineapple kern.notice kernel: [ 479.350000] scsi 6:0:0:0: Attached scsi generic sg0 type 5

00:07:58 Pineapple kern.info kernel: [ 478.360000] scsi7 : usb-storage 1-1:1.6

00:07:58 Pineapple kern.info kernel: [ 478.350000] scsi6 : usb-storage 1-1:1.5

00:07:58 Pineapple kern.info kernel: [ 478.330000] cdc_ether 1-1:1.1: wwan0: register 'cdc_ether' at usb-ehci-platform-1, Mobile Broadband Network Device, 02:50:f3:00:00:00

00:07:58 Pineapple kern.info kernel: [ 478.180000] usb 1-1: new high-speed USB device number 3 using ehci-platform

00:07:54 Pineapple syslog.notice usb_modeswitch: switching device 12d1:1446 on 001/002

00:07:54 Pineapple kern.info kernel: [ 474.110000] usb 1-1: USB disconnect, device number 2

00:07:53 Pineapple user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:1446 for mode switching

00:07:53 Pineapple user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?

00:07:53 Pineapple kern.info kernel: [ 473.590000] scsi1 : usb-storage 1-1:1.1

00:07:53 Pineapple kern.info kernel: [ 473.570000] scsi0 : usb-storage 1-1:1.0

00:07:53 Pineapple kern.info kernel: [ 473.420000] usb 1-1: new high-speed USB device number 2 using ehci-platform

00:05:02 Pineapple user.notice root: CLEANUP: memory looking good

00:05:02 Pineapple user.notice root: CLEANUP: Karma log looking good

00:05:02 Pineapple user.notice root: 3G: Interface 3g-wan2 seems down. Attempting 3g connect script again

00:05:02 Pineapple user.notice root: 3G: Connection Script here, searching for modems

00:05:01 Pineapple user.notice root: CLEANUP: Clean-up Script Executed

00:05:01 Pineapple user.notice root: 3G: Keep-Alive Script Executed

00:05:01 Pineapple cron.info crond[1386]: crond: USER root pid 1673 cmd /pineapple/3g/3g-keepalive.sh

00:05:01 Pineapple cron.info crond[1386]: crond: USER root pid 1672 cmd /pineapple/scripts/cleanup.sh

00:01:16 Pineapple user.info sysinit: sh: write error: Invalid argument

00:01:16 Pineapple user.info sysinit: setting up led WLAN

00:01:16 Pineapple user.info sysinit: setting up led WAN

00:01:16 Pineapple user.info sysinit: setting up led USB

Here is the output from dmesg

root@Pineapple:~# dmesg

[ 0.000000] Linux version 3.3.8 (www-data@buildbot) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #96 Sun Oct 14 10:17:26 EDT 2012

[ 0.000000] MyLoader: sysp=f0f0f0f0, boardp=f0f0f1f0, parts=f0f0f0f0

[ 0.000000] bootconsole [early0] enabled

[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)

[ 0.000000] SoC: Atheros AR9330 rev 1

[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz

[ 0.000000] Determined physical RAM map:

[ 0.000000] memory: 02000000 @ 00000000 (usable)

[ 0.000000] Initrd not found or empty - disabling initrd

[ 0.000000] Zone PFN ranges:

[ 0.000000] Normal 0x00000000 -> 0x00002000

[ 0.000000] Movable zone start PFN for each node

[ 0.000000] Early memory PFN ranges

[ 0.000000] 0: 0x00000000 -> 0x00002000

[ 0.000000] On node 0 totalpages: 8192

[ 0.000000] free_area_init_node: node 0, pgdat 802cb680, node_mem_map 81000000

[ 0.000000] Normal zone: 64 pages used for memmap

[ 0.000000] Normal zone: 0 pages reserved

[ 0.000000] Normal zone: 8128 pages, LIFO batch:0

[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

[ 0.000000] pcpu-alloc: [0] 0

[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128

[ 0.000000] Kernel command line: board=HORNET-UB console=ttyATH0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6144k(rootfs),1600k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd

[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)

[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.

[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes

[ 0.000000] Writing ErrCtl register=00000000

[ 0.000000] Readback ErrCtl register=00000000

[ 0.000000] Memory: 29276k/32768k available (2082k kernel code, 3492k reserved, 396k data, 204k init, 0k highmem)

[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[ 0.000000] NR_IRQS:51

[ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)

[ 0.080000] pid_max: default: 32768 minimum: 301

[ 0.080000] Mount-cache hash table entries: 512

[ 0.090000] NET: Registered protocol family 16

[ 0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79

[ 0.100000] MIPS: machine is ALFA NETWORKS Hornet-UB

[ 0.540000] bio: create slab <bio-0> at 0

[ 0.550000] Switching to clocksource MIPS

[ 0.550000] NET: Registered protocol family 2

[ 0.560000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

[ 0.560000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)

[ 0.560000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

[ 0.570000] TCP: Hash tables configured (established 1024 bind 1024)

[ 0.580000] TCP reno registered

[ 0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)

[ 0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[ 0.590000] NET: Registered protocol family 1

[ 0.600000] PCI: CLS 0 bytes, default 32

[ 0.620000] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[ 0.620000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.

[ 0.630000] msgmni has been set to 57

[ 0.630000] io scheduler noop registered

[ 0.640000] io scheduler deadline registered (default)

[ 0.640000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled

[ 0.650000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART

[ 0.650000] console [ttyATH0] enabled, bootconsole disabled

[ 0.670000] m25p80 spi0.0: found mx25l6405d, expected m25p80

[ 0.670000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)

[ 0.680000] 7 cmdlinepart partitions found on MTD device spi0.0

[ 0.680000] Creating 7 MTD partitions on "spi0.0":

[ 0.690000] 0x000000000000-0x000000040000 : "u-boot"

[ 0.690000] 0x000000040000-0x000000050000 : "u-boot-env"

[ 0.700000] 0x000000050000-0x000000650000 : "rootfs"

[ 0.710000] mtd: partition "rootfs" set to be root filesystem

[ 0.710000] mtd: partition "rootfs_data" created automatically, ofs=560000, len=F0000

[ 0.720000] 0x000000560000-0x000000650000 : "rootfs_data"

[ 0.720000] 0x000000650000-0x0000007e0000 : "kernel"

[ 0.730000] 0x0000007e0000-0x0000007f0000 : "nvram"

[ 0.730000] 0x0000007f0000-0x000000800000 : "art"

[ 0.740000] 0x000000050000-0x0000007e0000 : "firmware"

[ 0.760000] ag71xx_mdio: probed

[ 0.770000] eth0: Atheros AG71xx at 0xba000000, irq 5

[ 1.320000] eth0: Found an AR7240/AR9330 built-in switch

[ 2.350000] eth1: Atheros AG71xx at 0xb9000000, irq 4

[ 2.900000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]

[ 2.910000] TCP cubic registered

[ 2.910000] NET: Registered protocol family 17

[ 2.920000] 8021q: 802.1Q VLAN Support v1.8

[ 2.930000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.

[ 2.930000] Freeing unused kernel memory: 204k freed

[ 6.300000] Registered led device: alfa:blue:lan

[ 6.300000] Registered led device: alfa:blue:usb

[ 6.300000] Registered led device: alfa:blue:wan

[ 6.300000] Registered led device: alfa:blue:wlan

[ 6.300000] Registered led device: alfa:blue:wps

[ 9.600000] JFFS2 notice: (451) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 13 of xref (0 dead, 5 orphan) found.

[ 10.320000] SCSI subsystem initialized

[ 10.630000] usbcore: registered new interface driver usbfs

[ 10.640000] usbcore: registered new interface driver hub

[ 10.640000] usbcore: registered new device driver usb

[ 11.220000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[ 11.220000] ehci-platform ehci-platform: Generic Platform EHCI Controller

[ 11.230000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1

[ 11.270000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000

[ 11.290000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00

[ 11.290000] hub 1-0:1.0: USB hub found

[ 11.290000] hub 1-0:1.0: 1 port detected

[ 11.420000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

[ 11.540000] uhci_hcd: USB Universal Host Controller Interface driver

[ 11.660000] Initializing USB Mass Storage driver...

[ 11.660000] usbcore: registered new interface driver usb-storage

[ 11.670000] USB Mass Storage support registered.

[ 33.070000] Compat-wireless backport release: compat-wireless-2012-07-13

[ 33.070000] Backport based on wireless-testing.git master-2012-07-16

[ 33.080000] compat.git: wireless-testing.git

[ 33.110000] cfg80211: Calling CRDA to update world regulatory domain

[ 33.120000] cfg80211: World regulatory domain updated:

[ 33.120000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

[ 33.130000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 33.140000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

[ 33.140000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

[ 33.150000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 33.160000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 34.160000] cfg80211: World regulatory domain updated:

[ 34.170000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

[ 34.180000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 34.180000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

[ 34.190000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

[ 34.200000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 34.210000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 34.550000] usbcore: registered new interface driver rt73usb

[ 34.700000] usbcore: registered new interface driver rtl8187

[ 34.730000] ath: EEPROM regdomain: 0x833a

[ 34.730000] ath: EEPROM indicates we should expect a country code

[ 34.730000] ath: doing EEPROM country->regdmn map search

[ 34.730000] ath: country maps to regdmn code: 0x37

[ 34.730000] ath: Country alpha2 being used: GB

[ 34.730000] ath: Regpair used: 0x37

[ 34.730000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'

[ 34.740000] Registered led device: ath9k-phy0

[ 34.740000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2

[ 34.760000] usbcore: registered new interface driver rt2800usb

[ 34.840000] cfg80211: Calling CRDA for country: GB

[ 34.840000] cfg80211: Regulatory domain changed to country: GB

[ 34.850000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

[ 34.850000] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)

[ 34.860000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)

[ 34.870000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)

[ 34.870000] cfg80211: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)

[ 34.890000] Button Hotplug driver version 0.4.1

[ 35.130000] RPC: Registered named UNIX socket transport module.

[ 35.130000] RPC: Registered udp transport module.

[ 35.140000] RPC: Registered tcp transport module.

[ 35.140000] RPC: Registered tcp NFSv4.1 backchannel transport module.

[ 35.490000] PPP generic driver version 2.4.2

[ 35.630000] tun: Universal TUN/TAP device driver, 1.6

[ 35.640000] tun: © 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

[ 35.900000] ip_tables: © 2000-2006 Netfilter Core Team

[ 36.120000] NET: Registered protocol family 24

[ 36.250000] nf_conntrack version 0.5.0 (460 buckets, 1840 max)

[ 37.060000] usbcore: registered new interface driver ath9k_htc

[ 37.320000] usbcore: registered new interface driver usbserial

[ 37.320000] USB Serial support registered for generic

[ 37.330000] usbcore: registered new interface driver usbserial_generic

[ 37.330000] usbserial: USB Serial Driver core

[ 37.370000] usbcore: registered new interface driver cdc_ether

[ 37.480000] Error: Driver 'gpio-keys-polled' is already registered, aborting...

[ 37.580000] usbcore: registered new interface driver rndis_host

[ 57.320000] device eth0 entered promiscuous mode

[ 58.000000] eth0: link up (1000Mbps/Full duplex)

[ 58.030000] br-lan: port 1(eth0) entered forwarding state

[ 58.030000] br-lan: port 1(eth0) entered forwarding state

[ 60.030000] br-lan: port 1(eth0) entered forwarding state

[ 60.960000] device wlan0 entered promiscuous mode

[ 61.030000] br-lan: port 2(wlan0) entered forwarding state

[ 61.040000] br-lan: port 2(wlan0) entered forwarding state

[ 63.040000] br-lan: port 2(wlan0) entered forwarding state

[ 70.560000] device wlan0 left promiscuous mode

[ 70.560000] br-lan: port 2(wlan0) entered disabled state

[ 71.320000] device wlan0 entered promiscuous mode

[ 71.400000] br-lan: port 2(wlan0) entered forwarding state

[ 71.410000] br-lan: port 2(wlan0) entered forwarding state

[ 71.620000] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006400

[ 71.630000] ath: phy0: Could not stop RX, we could be confusing the DMA engine when we start RX up

[ 73.410000] br-lan: port 2(wlan0) entered forwarding state

[ 473.420000] usb 1-1: new high-speed USB device number 2 using ehci-platform

[ 473.570000] scsi0 : usb-storage 1-1:1.0

[ 473.590000] scsi1 : usb-storage 1-1:1.1

[ 474.110000] usb 1-1: USB disconnect, device number 2

[ 478.180000] usb 1-1: new high-speed USB device number 3 using ehci-platform

[ 478.330000] cdc_ether 1-1:1.1: wwan0: register 'cdc_ether' at usb-ehci-platform-1, Mobile Broadband Network Device, 02:50:f3:00:00:00

[ 478.350000] scsi6 : usb-storage 1-1:1.5

[ 478.360000] scsi7 : usb-storage 1-1:1.6

[ 479.350000] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2

[ 479.350000] scsi 6:0:0:0: Attached scsi generic sg0 type 5

[ 479.360000] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2

[ 479.370000] sd 7:0:0:0: Attached scsi generic sg1 type 0

[ 479.380000] sd 7:0:0:0: [sda] Attached SCSI removable disk

[ 544.040000] usbcore: deregistering interface driver usbserial_generic

[ 544.050000] USB Serial deregistering driver generic

[ 544.050000] usbcore: deregistering interface driver usbserial

[ 547.090000] usbcore: registered new interface driver usbserial

[ 547.100000] USB Serial support registered for generic

[ 547.100000] usbserial_generic 1-1:1.0: generic converter detected

[ 547.110000] usb 1-1: generic converter now attached to ttyUSB0

[ 547.110000] usbserial_generic 1-1:1.3: generic converter detected

[ 547.120000] usb 1-1: generic converter now attached to ttyUSB1

[ 547.130000] usbserial_generic 1-1:1.4: generic converter detected

[ 547.130000] usb 1-1: generic converter now attached to ttyUSB2

[ 547.140000] usbcore: registered new interface driver usbserial_generic

[ 547.140000] usbserial: USB Serial Driver core

root@Pineapple:~#

Link to comment
Share on other sites

PPP script is firing off ok - but not finding the carrier - probably due to the drivers not being loaded yet.

Secondly:

cdc_ether 1-1:1.1: wwan0[/CODE]

- is your 3g-interface, not the ttyUSB0......yet [/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]then usbmodeswitch kicks in, ttyUSB0,1,2 are created which are probably the CDC interface , CDROM emulation, and SDcard.[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]If you can re-run the ppp script after this 2nd stage - hopefully it will work. [/font][/color]

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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...