Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

ZTE USB modem and wvdial

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
ilovebeer
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sat Aug 16, 2008 2:57 am

ZTE USB modem and wvdial

  • Quote

Post by ilovebeer » Mon Dec 22, 2008 11:12 am

Hey all, I have a plug in ZTE proprietry usb modem that i'm trying to get going with wvdial. unfortunately under linux it's not recognised as a modem so wvdialconf reports no modem found. here is the relevant lsusb -v output.

Bus 008 Device 002: ID 19d2:0031
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x19d2
idProduct 0x0031
bcdDevice 0.00
iManufacturer 2 ZTE, Incorporated
iProduct 1 ZTE CDMA Technologies MSM
iSerial 3 1234567890ABCDEF
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 138
bNumInterfaces 5
bConfigurationValue 1
iConfiguration 4 Qualcomm Configuration
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol

I've spent a couple of days on this with no joy! Could someone please push me in the right direction, even just to get this recognised as a modem by wvdial. After that should be relatively easy. Possibly with a few kernel selections that I've missed.
I've done the usual with usbserial etcetera with no result.
Naturally it works under Vista but if i have to use Vista much longer I might do some harm to this computer ;-)
Anybody got the Bigpond 7.2 ZTE usb modem stick working under Linux? I'm getting so desperate I'm thinking of installing gentoo in windows with Virtualbox so at least i'll be in familiar territory.
Thanks
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Dec 22, 2008 4:05 pm

ilovebeer,

google says

Code: Select all

# prompt: USB Option PCMCIA serial driver
# type: tristate
# depends on: CONFIG_USB_SERIAL && CONFIG_USB_OHCI_HCD && CONFIG_PCCARD
# defined in drivers/usb/serial/Kconfig
# found in Linux Kernels: before 2.6.12 version still available on 2.6.27 release
Your device 19d2:0031 is listed there so if you fix your kernel, it should JustWork.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
ilovebeer
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sat Aug 16, 2008 2:57 am

  • Quote

Post by ilovebeer » Mon Dec 22, 2008 10:41 pm

Hey thanks for replying Neddy. I had most of those options selected except ohci_hcd. Unfortunately the device is still not recognised as a modem. Anyway, I'll just keep fiddling away until I make some progress.
Thanks
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Dec 22, 2008 10:58 pm

ilovebeer,

CONFIG_USB_OHCI_HCD is only if you have non intel/via USB 1.
It really means it wants USB 1 support on.

When it works, udev should create you a new USB serial device. You modem will be on the end of that.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
ilovebeer
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sat Aug 16, 2008 2:57 am

  • Quote

Post by ilovebeer » Tue Dec 23, 2008 12:43 am

Hey all, YAHOO! Haven't got it working properly yet but at least I now have /dev/ttyUSB0. The module usb_storage needs to be unloaded before allowing the device to be detected correctly. Then I have to rmmod option usbserial... then modprobe usbserial vendor 0x19d2 product 0x0031 option. It's then that I get /dev/ttyUSB0... but :roll: the device needs a cold boot to reset properly. However a cold boot still loads usb_storage and thus the problem continues.

How can I stop usb_storage from being loaded at startup? &&
How can I make the appends to usbserial permanent on boot?

UPDATE: This thread http://forums.gentoo.org/viewtopic-t-720605.html shows a related problem of mine. *sigh*

Thanks for your help so far.
ilb
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Dec 23, 2008 1:08 pm

ilovebeer,

You can blacklist usbstorage, so udev will not load it,

To pass options to a module at boot time, you make a file in /etc/modules.d/ any name you like, and put the options this file
Look in the file /etc/modules.conf for hints in the syntax. This file is made by concating all the files in /etc/modules.d/* at boot.

emerge minicom and talk to your modem on /dev/ttyUSB0
When you type

Code: Select all

at
it should return

Code: Select all

ok

Code: Select all

atdt<number>
will make it dial a number. Google the Hays command set and play with it.

When minicom works, move on to wvdial.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
ilovebeer
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sat Aug 16, 2008 2:57 am

  • Quote

Post by ilovebeer » Wed Dec 24, 2008 2:35 am

Thanks Neddy, your info will be valuable as soon as i resolve my loading option module problem http://forums.gentoo.org/viewtopic-t-720605.html. Thanks for your assistance.
ilb
Top
Jefferies
n00b
n00b
Posts: 1
Joined: Thu Jan 01, 2009 9:20 am

  • Quote

Post by Jefferies » Thu Jan 01, 2009 9:39 am

I had the same problem. Here is a solution. It is useful after full installation (sorry) - but it might be instructive:

Code: Select all

gedit /etc/wvdial.conf 
Edit the wvdial.conf file to:

Code: Select all

[Dialer Defaults]
modem = /dev/ttyUSB0
Phone = #<number>
Username = <username>
Password = <password>
New PPPD = yes
[Dialer mdsl]
Stupid Mode = on
Modem = /dev/ttyUSB0
Baud = 9216000
Init = ATZ

Phone = #<phone number>
Username = <username>
Password = <username>
New PPPD = yes 
As an example, here in Sudan (! 8O ) , I configure wvdial.conf as follows:

Code: Select all

[Dialer Defaults]
modem = /dev/ttyUSB0
Phone = #777
Username =sudani
Password =sudani
New PPPD = yes
[Dialer mdsl]
Stupid Mode = on
Modem = /dev/ttyUSB0
Baud = 9216000
Init = ATZ

Phone = #777
Username = sudani
Password = sudani
New PPPD = yes   
The phone number, username and password are those given by the provider, natch.

To start connection:

Code: Select all

wvdial mdsl
To close connection CTL C

But better is to use Gnome-ppp.

It works for me. :D
Top
ilovebeer
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sat Aug 16, 2008 2:57 am

  • Quote

Post by ilovebeer » Sat Jan 03, 2009 10:58 pm

Thanks Jefferies, that'll be helpful when I get the modem working.
UPDATE: A few bizarre things happening now. The zte modem is only recognised if i boot from windows straight into gentoo! Obviously Windows imparts something to the modem that sticks for the first boot into Linux because :roll: wvdialconf recognises the modem but then the modem fails to respond with wvdial. Then the devices ttyUSB0-4 disappear! A reboot does not bring ttyUSB0-4 back again with all the same modules present! Only a boot into windows and then a boot straight into Linux will bring ttyUSB0-4 back! I suppose I've got a lot of searching to do 8O I'll post any advances I have but appreciate any ideas you may have. thanks
ilb
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jan 03, 2009 11:09 pm

ilovebeer,

I suspect that windows provides firmware, or the USB ID of the device changes.
Do a cold boot into linux and run lsusb ... note the vendor and device IDs of the modem
Do a cold boot into windows then a reboot (without power cycling) into Linux.
Look at the the Vendor and device IDs. are they the same as the first time ?

Google confirms that many ZTE USB modems need firmware - get the right firmware for yours and put it in /lib/firmware
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
ilovebeer
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sat Aug 16, 2008 2:57 am

  • Quote

Post by ilovebeer » Sat Jan 03, 2009 11:34 pm

Right on the money Neddy!

In Windows as follows vendor=0x19d2 product=0x0031
In Linux as follows vendor=0x19d2 product=0x2000 which is what I've been loading it with.

But all this means?

Thanks for firmware tip I'll start looking.

ilb
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jan 03, 2009 11:57 pm

ilovebeer,

This means the device ID changes when the firmware is loaded.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
kupusc
n00b
n00b
Posts: 5
Joined: Tue Nov 20, 2007 2:41 pm

  • Quote

Post by kupusc » Wed Mar 10, 2010 3:05 pm

Hi,

Your device is recognized as an usb storage. I had exactly the same problem with my ZTE MF100 modem. You should disable the storage option in the modem's chipset via AT commands. Then you will not need any hacking in modules.

Code: Select all

AT+ZCDRUN=8
if I remember correctly.
Top
pa4wdh
Veteran
Veteran
Posts: 1015
Joined: Fri Dec 16, 2005 6:55 pm

  • Quote

Post by pa4wdh » Wed Mar 10, 2010 5:53 pm

Hi,

It seems you're having trouble with a fancy feature called "ZeroCD", this feature emulates a CD-ROM device to the host operating system which contains software to control the modem. However, i never saw any software for GNU/Linux there.

I have a ZTE MF638 stick here, for which i made a description in my GPRS HOWTO: http://www.xs4all.nl/~ernstagn/GPRS-HOW ... tml#ss3.14

The story in short:
- Your kernel needs SCSI and SCSI CD-ROM support in order to see your CD-ROM device (and of course the USB OPTION driver mentioned in this topic for the tty's)
- You can use the eject command (sys-apps/eject) to make it switch to "modem mode"
- After that you can use any PPP tool to make a dail-in connection

If your modem behaves the same as my MF628 you don't need any firmware.

Best regards,
pa4wdh
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Top
Post Reply

14 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic