Jump to content

Vanguard4893

Active Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by Vanguard4893

  1. Many thanks guys, that did it. I can now successfully get a 3G connection.

    For reference, here is my config:

    *19d2:1003*) echo "ZTE K3805-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/ttyACM0
    			 uci set network.wan2.apn=giffgaff.com
    			 uci set network.wan2.username=giffgaff
    			 uci set network.wan2.password=password
    			 uci set network.wan2.defaultroute=1
    			 uci commit network
    sleep 2; rmmod usbserial
    sleep 10; insmod usbserial vendor=0x19d2 product=0x1003
    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
    ;;
    

    All that needs installing is the kmod-usb-acm module & it then connects fine. It was a serial issue all along. :)

  2. Hey guys, on hearing about the stable v2.8.0, I've upgraded my Pineapple, yet now the package cannot be found at all in the repo:


    root@Pineapple:~# opkg update
    Downloading http://cloud.wifipineapple.com/packages/2.8.0/Packages.gz.
    Updated list of available packages in /var/opkg-lists/snapshots.
    root@Pineapple:~# opkg install kmod-usb-acm
    Unknown package 'kmod-usb-acm'.
    Collected errors:
    * opkg_install_cmd: Cannot install package kmod-usb-acm.
    

    Could this package possibly be added?

  3. I have found a thread on another forum (in Polish), that has got this modem working with OpenWRT. However I cannot install the module they used, due to a kernel version mismatch. Here's the thread:

    http://eko.one.pl/forum/viewtopic.php?id=2748

    And here is what I get when I try to install the module:

    root@Pineapple:~# opkg install kmod-usb-acm
    Installing kmod-usb-acm (3.7.9-1) to root...
    Downloading http://cloud.wifipineapple.com/packages/kmod-usb-acm_3.7.9-1_ar71xx.ipk.
    Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
    Collected errors:
     * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-acm:
     * 	kernel (= 3.7.9-1-72522afaaa8115c1fda634dab1bea774) * 
     * opkg_install_cmd: Cannot install package kmod-usb-acm.
    root@Pineapple:~# uname -a
    Linux Pineapple 3.7.6 #7 Sun Feb 10 23:47:40 GMT 2013 mips GNU/Linux
    

    Is there anywhere I might find a version of this module that will work with the latest Pineapple kernel version?

  4. Yes it's mounting the disk, but it's definitely modeswitching automatically to the modem section as what happens on my laptop when I plug in the modem is mirrored on the Pineapple, all apart from connecting of course :) (The modem identifies at first with :1001 as the second part of the USB ID & then modeswitches to :1003). If I issue a modeswitch command on the Pineapple I get this:

    Looking for default devices ...
    found matching product ID
    adding device
    Found device in default mode, class or configuration (1)
    Accessing device 005 on bus 001 ...
    Getting the current device configuration ...
    OK, got current device configuration (1)
    Using interface number 0
    Error: message endpoint not given or found. Aborting
    

    I shall take a look at your link to see if that is of any help. :)

    Power is provided by a USB battery pack, Capable of 2A output at 5v, directly to a custom USB-Extension, as well as powering the Pineapple, so bypassing the internal Pineapple 5v regulator for it's USB port. (When run from a 5v supply, the Pineapple's USB voltage is around 4.7v).

  5. Thanks for the suggestions webdirector, however it's still not having any of it :)

    I tried the username & password my laptop use before, to no avail.

    With my own script modified with your first post's changes, i get this returned:


    root@Pineapple:~# /pineapple/3g/3g.sh
    Searching for attached 3G Modems
    19d2:1003 1d6b:0002
    ZTE K3805-Z HSDPA detected. Attempting to connect
    Looking for default devices ...
    found matching product ID
    adding device
    Found device in default mode, class or configuration (1)
    Accessing device 005 on bus 001 ...
    Getting the current device configuration ...
    OK, got current device configuration (1)
    Using interface number 0
    Error: message endpoint not given or found. Aborting
    

    As far as I know the modem I am using doesn't require a usb_modeswitch command, as the kernel seems to do this automatically when it's plugged in.

    Plugging in the modem generates this in the logs:


    18:23:33 Pineapple kern.notice kernel: [ 796.460000] sd 7:0:0:1: [sda] Attached SCSI removable disk
    18:23:33 Pineapple kern.notice kernel: [ 796.440000] sd 7:0:0:1: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    18:23:33 Pineapple kern.notice kernel: [ 796.430000] sd 7:0:0:1: [sda] Write Protect is off
    18:23:33 Pineapple kern.notice kernel: [ 796.430000] sd 7:0:0:1: [sda] 15751168 512-byte logical blocks: (8.06 GB/7.51 GiB)
    18:23:33 Pineapple kern.notice kernel: [ 796.420000] sd 7:0:0:1: Attached scsi generic sg1 type 0
    18:23:33 Pineapple kern.notice kernel: [ 796.410000] scsi 7:0:0:1: Direct-Access Vodafone Storage 0001 PQ: 0 ANSI: 0
    18:23:33 Pineapple kern.notice kernel: [ 796.400000] scsi 7:0:0:0: CD-ROM Vodafone USB SCSI CD-ROM 0001 PQ: 0 ANSI: 0
    18:23:33 Pineapple kern.notice kernel: [ 796.400000] scsi 7:0:0:0: Attached scsi generic sg0 type 5
    18:23:33 Pineapple kern.info kernel: [ 796.450000] sda: sda1
    18:23:33 Pineapple kern.debug kernel: [ 796.440000] sd 7:0:0:1: [sda] Mode Sense: 0f 00 00 00
    18:23:32 Pineapple kern.warn kernel: [ 795.420000] usbserial_generic: probe of 1-1:1.9 failed with error -5
    18:23:32 Pineapple kern.warn kernel: [ 795.410000] usbserial_generic: probe of 1-1:1.8 failed with error -5
    18:23:32 Pineapple kern.warn kernel: [ 795.330000] usbserial_generic: probe of 1-1:1.3 failed with error -5
    18:23:32 Pineapple kern.warn kernel: [ 795.290000] usbserial_generic: probe of 1-1:1.1 failed with error -5
    18:23:32 Pineapple kern.warn kernel: [ 795.270000] usbserial_generic: probe of 1-1:1.0 failed with error -5
    18:23:32 Pineapple kern.info kernel: [ 795.400000] scsi7 : usb-storage 1-1:1.7
    18:23:32 Pineapple kern.info kernel: [ 795.380000] cdc_ether 1-1:1.5 wwan0: register 'cdc_ether' at usb-ehci-platform-1, Mobile Broadband Network Device, 02:e8:5e:fe:3e:5a
    18:23:32 Pineapple kern.info kernel: [ 795.370000] usb 1-1: generic converter now attached to ttyUSB1
    18:23:32 Pineapple kern.info kernel: [ 795.360000] usbserial_generic 1-1:1.4: generic converter detected
    18:23:32 Pineapple kern.info kernel: [ 795.350000] usbserial_generic 1-1:1.4: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
    18:23:32 Pineapple kern.info kernel: [ 795.340000] usbserial_generic 1-1:1.4: The "generic" usb-serial driver is only for testing and one-off prototypes.
    18:23:32 Pineapple kern.info kernel: [ 795.320000] usbserial_generic 1-1:1.2: generic converter detected
    18:23:32 Pineapple kern.info kernel: [ 795.320000] usb 1-1: generic converter now attached to ttyUSB0
    18:23:32 Pineapple kern.info kernel: [ 795.300000] usbserial_generic 1-1:1.2: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
    18:23:32 Pineapple kern.info kernel: [ 795.290000] usbserial_generic 1-1:1.2: The "generic" usb-serial driver is only for testing and one-off prototypes.
    18:23:32 Pineapple kern.err kernel: [ 795.410000] usbserial_generic 1-1:1.9: Generic device with no bulk out, not allowed.
    18:23:32 Pineapple kern.err kernel: [ 795.400000] usbserial_generic 1-1:1.8: Generic device with no bulk out, not allowed.
    18:23:32 Pineapple kern.err kernel: [ 795.330000] usbserial_generic 1-1:1.3: Generic device with no bulk out, not allowed.
    18:23:32 Pineapple kern.err kernel: [ 795.280000] usbserial_generic 1-1:1.1: Generic device with no bulk out, not allowed.
    18:23:32 Pineapple kern.err kernel: [ 795.270000] usbserial_generic 1-1:1.0: Generic device with no bulk out, not allowed.
    18:23:31 Pineapple kern.info kernel: [ 795.120000] usb 1-1: new high-speed USB device number 9 using ehci-platform
    18:23:25 Pineapple user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/19d2:1001 for mode switching
    18:23:25 Pineapple user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    18:23:25 Pineapple syslog.notice usb_modeswitch: switching device 19d2:1001 on 001/008
    18:23:25 Pineapple kern.info kernel: [ 789.060000] usb 1-1: USB disconnect, device number 8
    18:23:25 Pineapple kern.info kernel: [ 788.840000] scsi6 : usb-storage 1-1:1.0
    18:23:25 Pineapple kern.info kernel: [ 788.690000] usb 1-1: new high-speed USB device number 8 using ehci-platform
    

    However the scripts seem to be doing more than before, as I now get this in the logs:


    18:30:40 Pineapple local2.info chat[5915]: timeout set to 10 seconds
    18:30:40 Pineapple local2.info chat[5915]: send (AT&F^M)
    18:30:40 Pineapple local2.info chat[5915]: report (CONNECT)
    18:30:40 Pineapple local2.info chat[5915]: expect (OK)
    18:30:40 Pineapple local2.info chat[5915]: abort on (NO CARRIER)
    18:30:40 Pineapple local2.info chat[5915]: abort on (ERROR)
    18:30:40 Pineapple local2.info chat[5915]: abort on (BUSY)
    18:30:39 Pineapple daemon.notice pppd[5911]: pppd 2.4.5 started by root, uid 0
    18:30:39 Pineapple daemon.info dnsmasq[1100]: using nameserver 8.8.8.8#53
    18:30:39 Pineapple daemon.info dnsmasq[1100]: using nameserver 192.168.1.1#53
    18:30:39 Pineapple daemon.info dnsmasq[1100]: using local addresses only for domain lan
    18:30:39 Pineapple daemon.info dnsmasq[1100]: reading /tmp/resolv.conf.auto
    18:30:37 Pineapple daemon.notice netifd: Interface 'wan2' is now down
    18:30:37 Pineapple daemon.info pppd[5887]: Exit.
    18:30:36 Pineapple local2.info chat[5891]: alarm
    18:30:36 Pineapple local2.info chat[5891]: Failed
    18:30:36 Pineapple daemon.err pppd[5887]: Connect script failed
    18:30:26 Pineapple local2.info chat[5891]: timeout set to 10 seconds
    18:30:26 Pineapple local2.info chat[5891]: send (AT&F^M)
    18:30:26 Pineapple local2.info chat[5891]: report (CONNECT)
    18:30:26 Pineapple local2.info chat[5891]: expect (OK)
    18:30:26 Pineapple local2.info chat[5891]: abort on (NO CARRIER)
    18:30:26 Pineapple local2.info chat[5891]: abort on (ERROR)
    18:30:26 Pineapple local2.info chat[5891]: abort on (BUSY)
    18:30:25 Pineapple daemon.notice pppd[5887]: pppd 2.4.5 started by root, uid 0
    18:30:25 Pineapple daemon.info dnsmasq[1100]: using nameserver 8.8.8.8#53
    18:30:25 Pineapple daemon.info dnsmasq[1100]: using nameserver 192.168.1.1#53
    18:30:25 Pineapple daemon.info dnsmasq[1100]: using local addresses only for domain lan
    18:30:25 Pineapple daemon.info dnsmasq[1100]: reading /tmp/resolv.conf.auto
    

    We seem to be making some progress at least!

  6. You're not the only one :D

    Hopefully there's someone out there that will be able to answer my issue, these modems are very common in the UK, so it shouldn't be long until something can be sorted.

    It seems though that there's nobody else using the Orange network on these forums, I may try with a different carrier. :)

  7. Also, if it helps, this is what happens when I plug the device in & attempt to connect. Appears to be a USB-Serial issue?

    20:04:40 Pineapple kern.warn kernel: [ 4307.840000] usbserial_generic: probe of 1-1:1.1 failed with error -5
    20:04:40 Pineapple kern.warn kernel: [ 4307.820000] usbserial_generic: probe of 1-1:1.0 failed with error -5
    20:04:40 Pineapple kern.info kernel: [ 4307.870000] usbserial_generic 1-1:1.2: generic converter detected
    20:04:40 Pineapple kern.info kernel: [ 4307.870000] usb 1-1: generic converter now attached to ttyUSB0
    20:04:40 Pineapple kern.info kernel: [ 4307.860000] usbserial_generic 1-1:1.2: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
    20:04:40 Pineapple kern.info kernel: [ 4307.850000] usbserial_generic 1-1:1.2: The "generic" usb-serial driver is only for testing and one-off prototypes.
    20:04:40 Pineapple kern.info kernel: [ 4307.810000] usbserial: USB Serial support registered for generic
    20:04:40 Pineapple kern.info kernel: [ 4307.800000] usbcore: registered new interface driver usbserial_generic
    20:04:40 Pineapple kern.info kernel: [ 4307.800000] usbcore: registered new interface driver usbserial
    20:04:40 Pineapple kern.err kernel: [ 4307.830000] usbserial_generic 1-1:1.1: Generic device with no bulk out, not allowed.
    20:04:40 Pineapple kern.err kernel: [ 4307.820000] usbserial_generic 1-1:1.0: Generic device with no bulk out, not allowed.
    20:04:37 Pineapple kern.info kernel: [ 4304.760000] usbserial_generic 1-1:1.2: device disconnected
    20:04:37 Pineapple kern.info kernel: [ 4304.760000] usbcore: deregistering interface driver usbserial
    20:04:37 Pineapple kern.info kernel: [ 4304.750000] usbserial_generic 1-1:1.4: device disconnected
    20:04:37 Pineapple kern.info kernel: [ 4304.740000] usbcore: deregistering interface driver usbserial_generic
    20:04:37 Pineapple kern.info kernel: [ 4304.740000] generic ttyUSB0: generic converter now disconnected from ttyUSB0
    20:04:37 Pineapple kern.info kernel: [ 4304.730000] usbserial: USB Serial deregistering driver generic
    20:04:37 Pineapple kern.info kernel: [ 4304.730000] generic ttyUSB1: generic converter now disconnected from ttyUSB1
    20:04:34 Pineapple user.notice root: 3G: Connection Script here, searching for modems
    20:03:46 Pineapple user.notice usb-modeswitch: 1-1:1.9: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:46 Pineapple user.notice usb-modeswitch: 1-1:1.8: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:46 Pineapple user.notice usb-modeswitch: 1-1:1.7: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:46 Pineapple user.notice usb-modeswitch: 1-1:1.6: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:45 Pineapple user.notice usb-modeswitch: 1-1:1.5: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:45 Pineapple user.notice usb-modeswitch: 1-1:1.4: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:45 Pineapple user.notice usb-modeswitch: 1-1:1.3: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:45 Pineapple user.notice usb-modeswitch: 1-1:1.2: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:45 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    20:03:44 Pineapple user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Vodafone Product=K3805-z Serial=77855382DFE85EFE3E5A9969D6797946FCA44D2B
    
  8. Gave that a try, unfortunately it's a no-go.

    In the settings on my laptop, it's there's a number it appears to be dialling, (*99#). Is there an option for this that I can add? Also, even though the Orange website specifies a blank username & password, in the APN settings on the laptop, they are both set to "orange". (I have tried adding those auth details as well, but still no go).

  9. Output of lsusb:

    root@Pineapple:~# lsusb
    Bus 001 Device 003: ID 19d2:1003 ZTE WCDMA Technologies MSM 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
    

    Setup Script (Tweaked version of other user's script that is for a similar modem):

    *19d2:1003*) echo "ZTE K3805-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/ttyUSB0
    			 uci set network.wan2.apn=orangeinternet
    			 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=0x1003
    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
    

    Note that when the insmod usbserial command is run, two devices are created in /dev/, ttyUSB0 & ttyUSB1.

  10. Hey folks, just a quick query regarding 3G.

    I have a ZTE K3805-Z USB modem (UK), which the Pineapple seems to find OK, but cannot connect.

    A search reveals another user with a very similar modem, but I cannot seem to get this working no matter how much tweaking I do. A generic Google search also reveals little about getting this working in terminal in general.

    My APN settings are correct, but the 3G connection script appears to do nothing, just the "attempting to connect" message, but it doesn't bring the network up.

    Does anyone else have this modem or perhaps be able to provide some tips on getting this working?

×
×
  • Create New...