Jump to content

3G - ZTE K3805-Z Issues


Vanguard4893

Recommended Posts

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?

Link to comment
Share on other sites

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?

post the output of lsusb and your setup script

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Your username and password field is blank.

-Foxtrot

Link to comment
Share on other sites

Those fields are supposed to be blank, as per the carrier's instructions :)

Are you sure? Every setup I have seen has usernames and passwords like "orange":"password" or "internet":"internet"

I would double check that and google for instructions on Oranges network.

-Foxtrot

Link to comment
Share on other sites

I'm certain that they're supposed to be blank, i've even tried empty quotes ('') as that worked for another forum member here on 3 Mobile in the UK, but alas it's still not connecting.

I'm not an expert, but try adding

uci set network.wan2.pppd_options=noauth

underneath

uci set network.wan2.defaultroute=1

-Foxtrot

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Doing some reading, I read the *99# is the correct number to dial.

Link to comment
Share on other sites

I'm on the dev version 2.7.7, yeah it's the correct number, but I can't seem to find out how to tell the script to dial it, unless that's something the modem itself takes care of. :)

I'm stumped. I'm yet to battle with 3G/4G, perhaps ask someone lik Seb or Darren :)

Goodluck,

-Foxtrot

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

Hello,

I am not using your 3G modem and I am not using Orange.

But since you say when you are connecting wth the laptop you are using as login and password "orange" so this must be the login and password that you use.

A problem that always happens with 3G is power. Make sure you are using a good power supply connected to mains. I am using a Huawei and mine only seems to work when I connect it to a HUB with 4A output. When I connected it direct to pineapple it would work from time to time only.

I also noticed in you 3G script that you do not have the modeswitch, try adding this after uci commit network:

usb_modeswitch -v 19d2 -p 1003

and change sleep 2 line to sleep 10

rgds

Link to comment
Share on other sites

this is my 3G script you may need to addapt it to your model, vendor a APN ...

*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=internet.eplus.de

uci set network.wan2.username=eplus

uci set network.wan2.password=eplus

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

;;

esac

Edited by webdirector
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

In your first log I can see that it is connect as removable disk " Attached SCSI removable disk "

I am no 3G expert but this to my understanding. This means it is mounting as disk and you do need modeswitch ( ...... my understanding)

On what is the Pineapple connected ? I mean what type of power supply ? ( ... my experience is that 30% have power issues here)

also read this :

https://forum.openwrt.org/viewtopic.php?id=30002

it helped me

Link to comment
Share on other sites

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

Edited by Vanguard4893
Link to comment
Share on other sites

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?

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.

  • Recently Browsing   0 members

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