View previous topic :: View next topic |
Author |
Message |
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Thu Dec 15, 2011 3:49 am Post subject: [SOLVED] The PPP daemon has died: A modem hung up the phone |
|
|
Hi,
I got an USB 3G from my ISP, model MF190S:
Code: | $ lsusb
Bus 001 Device 006: ID 19d2:0108 ONDA Communication S.p.A. |
It includes the following driver for Linux:
Code: | install.sh Join_Air Join_Air.tar.gz readme.txt zr |
Below is the output when I try to install:
Code: | # ./install.sh
..................start install.................
*** Check for root...ok...
./zr: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
Get resouse file successfully.
..........delete /usr/share/applications/Join_Air*.desktop ok...........
..........delete /usr/share/pixmaps/Join_Air*.png ok...........
..........delete /etc/udev/rules.d/9-cdrom.rules ok...........
...
******Begin to /opt/Join_Air/driver
this is linux driver installtion
make -C /lib/modules/2.6.38-gentoo/build M=/tmp/ONDA_driver_install_V3.3 modules
make[1]: Entering directory `/usr/src/linux-2.6.38-gentoo'
CC [M] /tmp/ONDA_driver_install_V3.3/onda.o
/tmp/ONDA_driver_install_V3.3/onda.c:18599:22: fatal error: usb-wwan.h: No such file or directory
compilation terminated.
make[2]: *** [/tmp/ONDA_driver_install_V3.3/onda.o] Error 1
make[1]: *** [_module_/tmp/ONDA_driver_install_V3.3] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38-gentoo'
make: *** [modules] Error 2
this is customized kernel ,kernel version is: 2.6.38-gentoo
enter customize_driver_install function
cp: cannot stat `onda.ko': No such file or directory
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module onda not found.
disselfirefox.pp driver_install.run nm.pp se End to /opt/Join_Air/driver
usermod: group 'dip' does not exist
usermod: group 'dip' does not exist
usermod: group 'dip' does not exist
usermod: group 'dip' does not exist
usermod: group 'dip' does not exist
install completed!!!
....After setup, you will find the Join_Air in "Applications->Internet->Join_Air". Click the Join_Air and the application will run
press any key to continue....
./Join_Air: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
|
It looks like the GUI is built with Qt3.
Found this topic: https://forums.gentoo.org/viewtopic-t-734417-start-0.html, and installed `emul-linux-x86-qtlibs`, but it didn't help:
Code: | [I] app-emulation/emul-linux-x86-qtlibs
Available versions: *20110129!s *20110722!s (*)20110928!s {development}
Installed versions: 20110928!s(10:21:54 AM 12/15/2011)(-development)
Homepage: http://dev.gentoo.org/~pacho/emul.html
Description: Provides precompiled 32bit libraries |
The installed packages related to Qt:
Code: | $ equery list qt*
* Searching for qt* ...
[IP-] [ ] net-im/qtwitter-0.10.0:0
[I--] [??] x11-libs/qt-core-4.7.3:4
[I--] [??] x11-libs/qt-dbus-4.7.3:4
[I--] [??] x11-libs/qt-declarative-4.7.3:4
[I--] [??] x11-libs/qt-gui-4.7.3:4
[I--] [??] x11-libs/qt-multimedia-4.7.3:4
[I--] [??] x11-libs/qt-opengl-4.7.3:4
[I--] [??] x11-libs/qt-qt3support-4.7.3:4
[I--] [??] x11-libs/qt-script-4.7.3:4
[I--] [??] x11-libs/qt-sql-4.7.3:4
[I--] [??] x11-libs/qt-svg-4.7.3:4
[I--] [??] x11-libs/qt-test-4.7.3:4
[I--] [??] x11-libs/qt-webkit-4.7.3:4
[I--] [??] x11-libs/qt-xmlpatterns-4.7.3:4
[IP-] [ ] x11-libs/qtscriptgenerator-0.1.0:0 |
How can I get rid of this error?
Last edited by quanta on Thu Jan 05, 2012 10:48 am; edited 2 times in total |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Thu Dec 15, 2011 3:38 pm Post subject: |
|
|
GUI:
Qt3 is long gone. What does the readme file say? Does the install shell file have options?
Kernel driver:
Do you have USB modem support in your kernel?
-> Device Drivers
----> USB Support
------> USB Serial Converter Support [M]
--------> USB Driver For GSM/CDMA modems [M] |
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Fri Dec 16, 2011 3:00 am Post subject: |
|
|
sebaro wrote: |
What does the readme file say?
|
It requires Qt3: http://paste.pocoo.org/show/521563/
sebaro wrote: |
Does the install shell file have options?
|
Here's the `install.sh`: http://paste.pocoo.org/show/521565/
sebaro wrote: |
Kernel driver:
Do you have USB modem support in your kernel?
-> Device Drivers
----> USB Support
------> USB Serial Converter Support [M]
--------> USB Driver For GSM/CDMA modems [M] |
Sure, they are already compiled into the running kernel:
Code: | # grep -i usb_serial /usr/src/linux/.config
CONFIG_USB_SERIAL=m |
The other USB 3G models (E173-Eu1) work fine. |
|
Back to top |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 530
|
Posted: Fri Dec 16, 2011 6:11 am Post subject: |
|
|
Reading up on this, it appears the device in question works fine with the Linux built-in drivers, but with one catch - this device doubles a (read-only) mass storage device (so Windows uses can get the driver without a seperate disk). The device had to be switched from mass-storage mode to USB modem mode. There a tool in portage, called usb_modeswitch to do that. It hooks in via udev, so it should be transparent just plug in the device and udev should run the program automatically. |
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Fri Dec 16, 2011 7:25 am Post subject: |
|
|
salahx wrote: | The device had to be switched from mass-storage mode to USB modem mode. There a tool in portage, called usb_modeswitch to do that. It hooks in via udev, so it should be transparent just plug in the device and udev should run the program automatically. |
It is already switched to modem mode:
Code: | [15991.379270] usbserial: USB Serial Driver core
[15991.433461] USB Serial support registered for GSM modem (1-port)
[15991.433555] option 1-1:1.0: GSM modem (1-port) converter detected
[15991.433718] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[15991.433746] option 1-1:1.1: GSM modem (1-port) converter detected
[15991.433828] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[15991.433855] option 1-1:1.2: GSM modem (1-port) converter detected
[15991.433937] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[15991.433964] option 1-1:1.3: GSM modem (1-port) converter detected
[15991.434090] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[15991.434122] usbcore: registered new interface driver option
[15991.434126] option: v0.7.2:USB Driver for GSM modems |
The configuration file was generated with `wvdialconf`:
Code: | [Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB1
Username = ''
Password = ''
Baud = 9600 |
And it hangs up when dialing:
Code: | # wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Dec 16 14:13:22 2011
--> Pid of pppd: 5030
--> Using interface ppp0
--> pppd: [08]
--> F[08]�[08]F[08]
--> pppd: [08]
--> F[08]�[08]F[08]
--> pppd: [08]
--> F[08]�[08]F[08]
--> pppd: [08]
--> F[08]�[08]F[08]
--> pppd: [08]
--> F[08]�[08]F[08]
--> Disconnecting at Fri Dec 16 14:13:53 2011
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Disconnecting at Fri Dec 16 14:14:15 2011 |
Looks like this device cannot run without the shipped driver:
Code: | 2011-12-16T14:13:22+07:00 localhost pppd[5030]: pppd 2.4.5 started by root, uid 0
2011-12-16T14:13:22+07:00 localhost pppd[5030]: Using interface ppp0
2011-12-16T14:13:22+07:00 localhost pppd[5030]: Connect: ppp0 <--> /dev/ttyUSB1
2011-12-16T14:13:22+07:00 localhost NetworkManager[2055]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device dr
iver; ignoring...
2011-12-16T14:13:52+07:00 localhost pppd[5030]: LCP: timeout sending Config-Requests
2011-12-16T14:13:52+07:00 localhost pppd[5030]: Connection terminated.
2011-12-16T14:13:52+07:00 localhost pppd[5030]: Modem hangup
2011-12-16T14:13:52+07:00 localhost pppd[5030]: Exit. |
|
|
Back to top |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 530
|
Posted: Fri Dec 16, 2011 8:01 am Post subject: |
|
|
The driver message from NetworkManager is a red herring, the modem is responding to commands (the AT ones) so I don't think a driver issue. Either the modem requires some init string, or its some ppp option problem. You might be required to set the APN, which is done via AT+CGDCONT command; there's probably a script in the driver that contains it - or maybe a binary in which case run "strings" on it. |
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Fri Dec 16, 2011 9:25 am Post subject: |
|
|
salahx wrote: | You might be required to set the APN, which is done via AT+CGDCONT command; there's probably a script in the driver that contains it - or maybe a binary in which case run "strings" on it. |
I found my APN follow this guide: http://ubuntuforums.org/showthread.php?t=1466490
Code: | # tr -s "\n" < /dev/ttyUSB1
+ZPSTM: 7,5669657474656C20506C7573;2,48756F6E672044616E;3,445620637561205669657474656C;4,586F20536F;5,426F6E67206461;6,546869207472756F6E67;7,586120686F69;8,43686174202620452D6D61696C;
+ZEND
AT
OK
AT
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","e-connect","0.0.0.0",0,0
OK |
and insert an Init3 to the configuration file:
Code: | [Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","e-connect"
Stupid Mode = yes
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB1
Username = ''
Password = ''
Baud = 9600 |
but got the same result. |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Fri Dec 16, 2011 2:47 pm Post subject: |
|
|
Did you try the sakis3g script from sakis3g.org? |
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Fri Dec 16, 2011 3:58 pm Post subject: |
|
|
sebaro wrote: | Did you try the sakis3g script from sakis3g.org? |
I've tried this script. After entering the blank username and password (two single quotes), it simply say "failed to connect". There is only a below line on the terminal:
Quote: | Application asked to unregister timer 0x49000004 which is not registered in this thread. Fix application.
|
|
|
Back to top |
|
|
josehw n00b
Joined: 02 Jan 2012 Posts: 13
|
Posted: Mon Jan 02, 2012 12:22 pm Post subject: |
|
|
Hey quanta,
Gentoo is pretty more up-to-date than ubuntu so you should follow the guide for 11.04 as the above post recommends.
Btw, the packages provided by vendors often come with pppd and even kernel modules and all those things may ruins your system. What will happen when you upgrade your system?
Have a look at usbmodeswitch's data and see some other ZTE's products for reference. |
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Tue Jan 03, 2012 3:19 pm Post subject: |
|
|
Thanks to my friend, the onda driver was compiled successfully:
Code: | # lsmod | grep onda
onda 10902 0
|
but nothing changes:
Quote: | --> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot get information for serial port. |
Quote: | localhost pppd[18509]: Using interface ppp0
localhost pppd[18509]: Connect: ppp0 <--> /dev/ttyUSB1
localhost pppd[18509]: LCP: timeout sending Config-Requests
localhost pppd[18509]: Connection terminated.
localhost pppd[18509]: Modem hangup
localhost pppd[18509]: Exit.
|
I also try the enclosed ppp config in the vendor's package:
Code: | cat /etc/ppp/options
/dev/ttyUSB1
115200
debug
noauth
noipdefault
#persist
defaultroute
usepeerdns
crtscts
lock
asyncmap 20A0000
kdebug 4
netmask 255.255.255.0
-detach
lcp-echo-failure 0
lcp-echo-interval 0
lcp-max-configure 30
ipcp-max-failure 30
ipcp-max-configure 30
-ccp
-vj
#user li
#hide-password |
Code: | cat /etc/ppp/peers/wvdial
noipdefault
ipcp-accept-local
ipcp-accept-remote
defaultroute
debug
noauth
name wvdial
usepeerdns
#lcp-echo-failure 0
#lcp-echo-interval 0
#usepeerdns
|
Is there any way to increase the verbosity level?
PS:
- the Mobile Broadband tab in Network Manager is greyed out
- I can send a testing sms to my mobile phone with gnokii:
Code: | echo "testing sms" | gnokii --sendsms +8491xxxxxxx |
|
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Wed Jan 04, 2012 3:04 am Post subject: |
|
|
quanta wrote: |
Is there any way to increase the verbosity level?
|
Follow this instruction: http://pptpclient.sourceforge.net/howto-diagnosis.phtml#debug belows is the output when enabling the 'debug dump' option in /etc/ppp/options:
Code: | localhost pppd[4357]: pppd options in effect:
localhost pppd[4357]: debug debug#011#011# (from /etc/ppp/peers/wvdial)
localhost pppd[4357]: kdebug 4#011#011# (from /etc/ppp/options)
localhost pppd[4357]: -detach#011#011# (from command line)
localhost pppd[4357]: idle 0#011#011# (from command line)
localhost pppd[4357]: logfd 6#011#011# (from command line)
localhost pppd[4357]: dump#011#011# (from /etc/ppp/options)
localhost pppd[4357]: noauth#011#011# (from /etc/ppp/peers/wvdial)
localhost pppd[4357]: name gentoo#011#011# (from /etc/ppp/peers/wvdial)
localhost pppd[4357]: user ''#011#011# (from command line)
localhost pppd[4357]: usehostname#011#011# (from command line)
localhost pppd[4357]: /dev/ttyUSB1#011#011# (from /etc/ppp/options)
localhost pppd[4357]: 9600#011#011# (from command line)
localhost pppd[4357]: lock#011#011# (from /etc/ppp/options)
localhost pppd[4357]: crtscts#011#011# (from command line)
localhost pppd[4357]: modem#011#011# (from command line)
localhost pppd[4357]: asyncmap 20a0000#011#011# (from /etc/ppp/options)
localhost pppd[4357]: lcp-echo-failure 0#011#011# (from /etc/ppp/options)
localhost pppd[4357]: lcp-echo-interval 0#011#011# (from /etc/ppp/options)
localhost pppd[4357]: lcp-max-configure 30#011#011# (from /etc/ppp/options)
localhost pppd[4357]: -vj#011#011# (from /etc/ppp/options)
localhost pppd[4357]: ipcp-accept-local#011#011# (from /etc/ppp/peers/wvdial)
localhost pppd[4357]: ipcp-accept-remote#011#011# (from /etc/ppp/peers/wvdial)
localhost pppd[4357]: noipdefault#011#011# (from /etc/ppp/peers/wvdial)
localhost pppd[4357]: ipcp-max-configure 30#011#011# (from /etc/ppp/options)
localhost pppd[4357]: ipcp-max-failure 30#011#011# (from /etc/ppp/options)
localhost pppd[4357]: defaultroute#011#011# (from /etc/ppp/peers/wvdial)
localhost pppd[4357]: usepeerdns#011#011# (from command line)
localhost pppd[4357]: netmask 255.255.255.255#011#011# (from /etc/ppp/options)
localhost pppd[4357]: -ccp#011#011# (from /etc/ppp/options)
localhost pppd[4357]: pppd 2.4.5 started by root, uid 0
localhost pppd[4357]: Using interface ppp0
localhost pppd[4357]: Connect: ppp0 <--> /dev/ttyUSB1
localhost NetworkManager[1900]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driv
localhost pppd[4357]: LCP: timeout sending Config-Requests
localhost pppd[4357]: Connection terminated.
localhost pppd[4357]: Modem hangup
localhost pppd[4357]: Exit. |
|
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Wed Jan 04, 2012 3:28 am Post subject: |
|
|
quanta wrote: |
Is there any way to increase the verbosity level?
|
Adding this to the `/etc/rsyslog.conf`:
Code: | daemon.*,local2.* /var/log/ppp.log |
I got the following:
Code: | localhost pppd[5354]: Connect: ppp0 <--> /dev/ttyUSB1
localhost pppd[5354]: sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <magic 0x45470a93> <pcomp> <accomp>]
localhost pppd[5354]: sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <magic 0x45470a93> <pcomp> <accomp>]
localhost pppd[5354]: sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <magic 0x45470a93> <pcomp> <accomp>]
...
localhost pppd[5354]: LCP: timeout sending Config-Requests |
|
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Wed Jan 04, 2012 5:31 am Post subject: |
|
|
sebaro wrote: | Did you try the sakis3g script from sakis3g.org? |
I would like to show you the output when running sakis3g script on DEBUG mode: http://paste.pocoo.org/show/529680/ |
|
Back to top |
|
|
tomtom69 Apprentice
Joined: 09 Nov 2010 Posts: 245 Location: Bavaria
|
Posted: Thu Jan 05, 2012 7:36 am Post subject: |
|
|
Your modem seems to create 4 serial devices /dev/ttyUSB0 to /dev/ttyUSB3.
Did you try a different serial device than /dev/ttyUSB0?
Some 3G modems have several AT command channels but only one of them can be used as a data channel. |
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Thu Jan 05, 2012 10:47 am Post subject: |
|
|
tomtom69 wrote: | Your modem seems to create 4 serial devices /dev/ttyUSB0 to /dev/ttyUSB3.
Did you try a different serial device than /dev/ttyUSB0?
Some 3G modems have several AT command channels but only one of them can be used as a data channel. |
I'm so silly sometimes. `wvdialconf` detected my serial device at /dev/ttyUSB1. A few days ago, I found this link https://bbs.archlinux.org/viewtopic.php?id=114567 with exact model. But after getting "modem is not responding" message with ttyUSB0 and ttyUSB2, I gave up.
Today, change to /dev/ttyUSB3 in both of `/etc/wvdial.conf` and `/etc/ppp/options` and it's working fine:
Code: | # wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","e-connect","0.0.0.0",0,0
AT+CGDCONT=1,"IP","e-connect","0.0.0.0",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Jan 5 17:24:03 2012
--> Pid of pppd: 6323
--> pppd: ��P ��P ��P
--> Using interface ppp0
--> pppd: ��P ��P ��P
--> Authentication (CHAP) started
--> pppd: ��P ��P ��P
--> pppd: ��P ��P ��P
--> Authentication (CHAP) successful
--> pppd: ��P ��P ��P
--> local IP address 171.252.202.x
--> pppd: ��P ��P ��P
--> remote IP address 10.64.64.x
--> pppd: ��P ��P ��P
--> primary DNS address 203.113.188.2
--> pppd: ��P ��P ��P
--> secondary DNS address 203.113.131.1
--> pppd: ��P ��P ��P
--> pppd: ��P ��P ��P
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
|
Tom, thank you very much. You saved my week . |
|
Back to top |
|
|
|