Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux
is working properly.
The other is returning an error :
Code:
sudo wvdial orange
--> 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
--> Sending: AT+CGDCONT=1,"IP","orange.m2m.spec"
AT+CGDCONT=1,"IP","orange.m2m.spec"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri May 5 15:32:45 2017
--> Pid of pppd: 1272
--> Using interface ppp0
--> pppd: ���v
--> pppd: ���v
--> pppd: ���v
--> pppd: ���v
--> pppd: ���v
--> pppd: ���v
--> pppd: ���v
--> Disconnecting at Fri May 5 15:33:16 2017
--> 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
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","orange.m2m.spec"
AT+CGDCONT=1,"IP","orange.m2m.spec"
OK
--> Modem initialized.
--> 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","orange.m2m.spec"
AT+CGDCONT=1,"IP","orange.m2m.spec"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^RSSI:14
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^BOOT:64069862,0,0,0,6
^CCaught signal 2: Attempting to exit gracefully...
--> Disconnecting at Fri May 5 15:37:59 2017
The var/log/message content is not really inspiring me :
Code:
May 5 15:53:24 raspberrypi pppd[3196]: pppd 2.4.6 started by root, uid 0
May 5 15:53:24 raspberrypi pppd[3196]: Using interface ppp0
May 5 15:53:24 raspberrypi pppd[3196]: Connect: ppp0 <--> /dev/ttyUSB1
May 5 15:53:54 raspberrypi pppd[3196]: LCP: timeout sending Config-Requests
May 5 15:53:54 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Fri May 5 15:54:24 2017 [try http://www.rsyslog.com/e/2007 ]
May 5 15:53:54 raspberrypi pppd[3196]: Connection terminated.
May 5 15:53:54 raspberrypi pppd[3196]: Receive serial link is not 8-bit clean:
May 5 15:53:54 raspberrypi pppd[3196]: Problem: all had bit 7 set to 0
May 5 15:53:54 raspberrypi pppd[3196]: Modem hangup
May 5 15:53:54 raspberrypi pppd[3196]: Exit.
Any guess/hints is more than welcome !
I checked various config files from ppp/options,interfaces,lsusb without much luck.
The only difference I was able to make between the two is the kernel version
4.1.11 (ok) vs 4.1.19 (not working) [edit : I tested also 4.9.25, still not working]
and the firware version
may 2016 (ok) vs may 2017 (not working)
Best regards !
[edit : fixed typo in firware revision which is no working]
May 5 15:53:24 raspberrypi pppd[3196]: Connect: ppp0 <--> /dev/ttyUSB1
May 5 15:53:54 raspberrypi pppd[3196]: LCP: timeout sending Config-Requests
Your modem is sending a Config-Request to the other modem and not receiving a reply within 30 seconds. That probably means that the other modem either did not receive the request or thought it was noise. Perhaps your kernel USB modem is creating a malformed or non existent Config-Request.
Did you compile your own kernel? If so then check to make sure that the USB modem options for kernel 4.1.19 are the same as the USB modem options you set for kernel 4.1.11.
nope, i did not compile my own kernel, I take out the box raspbian linux.
I checked the drivers and they seems the same to me (usb-devices output are strictly the same, printed below). How can I check which modem options where used ? is that the stty command ?
How can I check which modem options where used ? is that the stty command ?
The remote modem is ignoring the "handshaking" request which begins the process of the two modems agreeing on what line speed etc. to talk together with. After 30 seconds of no response your modem is timing out. I suspect that the newer kernel driver or newer firmware is generating an invalid command to send to the remote modem. Back in the day I would attach a diagnostic machine to the line and it would display the actual commands and data on the line as it happened. Without that equipment the best that I can tell you is to try to display the bad traffic by following this diagnostic guide:
thanks for you help, I will investigate the pppd logs (so far nothing was showing up, even following the links you provided, I'll try harder).
Do you yhink this is woth to submit as a "bug" as it was working on previous version of the drivers ?
I suggest that you set up a test with the last kernel that worked and using your current firmware and pppd configuration. If that works OK then you should report a bug in the latest version of the driver.
If that test does not work then the bug is in either your pppd configuration or the latest version of your firmware. In that case you could try running the latest kernel, your old pppd configuration and the latest firmware. This test would show whether or not the bug is in your pppd configuration.
ok, found a combination of kernel / firmware that works :
4.4.50-v7+ #970
the configuration file provided in the begining is valid. If you read this out of despear, just think to update operator specific entry lines of the wvdial conf.
(Init4 apn, username, password and stupid mode)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.