LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2016, 03:53 AM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
mobile broad band internet using netctl profile


Hello.

I'm trying to connect to the internet using a Huawei K3772 using a netctl profile. The mode of the device changed using usb_modeshwitch and the lsub command returns me this:

Code:
Bus 002 Device 012: ID 12d1:14cf Huawei Technologies Co., Ltd. K3772
That's my profile config

Code:
Description='Example PPP mobile connection'
Interface=ttyUSB0
Connection=mobile_ppp

# Use default route provided by the peer (default: true)
#DefaultRoute=true
# Use DNS provided by the peer (default: true)
#UsePeerDNS=true

# The user and password are not always required
#User='example@yourprovider.com'
#Password='very secret'

# The access point name you are connecting to
#AccessPointName=apn
AccessPointName=internet

# If your device has a PIN code, set it here. Defaults to 'None'
#Pin=None
Pin=5102

# Mode can be one of 3Gpref, 3Gonly, GPRSpref, GPRSonly, None
# These only work for Huawei USB modems; all other devices should use None
Mode=3Gpref
After this, I'm running
Code:
sudo netctl start mobile_ppp
and I'm getting these results in journalctl

Code:
Jul 01 14:27:51 ribosome.cell.org systemd[1]: Starting Networking for netctl profile mobile_ppp...
Jul 01 14:27:51 ribosome.cell.org network[7445]: Starting network profile 'mobile_ppp'...
Jul 01 14:27:51 ribosome.cell.org pppd[7464]: pppd 2.4.7 started by root, uid 0
Jul 01 14:27:51 ribosome.cell.org network[7445]: Started network profile 'mobile_ppp'
Jul 01 14:27:51 ribosome.cell.org systemd[1]: Started Networking for netctl profile mobile_ppp.
Jul 01 14:27:51 ribosome.cell.org sudo[7439]: pam_unix(sudo:session): session closed for user root
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (BUSY)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (NO CARRIER)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (VOICE)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (NO DIALTONE)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (NO DIAL TONE)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (NO ANSWER)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (DELAYED)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: report (CONNECT)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: timeout set to 6 seconds
Jul 01 14:27:52 ribosome.cell.org chat[7486]: send (ATQ0^M)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: expect (OK)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: ATQ0^M^M
Jul 01 14:27:52 ribosome.cell.org chat[7486]: OK
Jul 01 14:27:52 ribosome.cell.org chat[7486]:  -- got it
Jul 01 14:27:52 ribosome.cell.org chat[7486]: send (ATZ^M)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: timeout set to 3 seconds
Jul 01 14:27:52 ribosome.cell.org chat[7486]: expect (OK)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: ^M
Jul 01 14:27:52 ribosome.cell.org chat[7486]: ATZ^M^M
Jul 01 14:27:52 ribosome.cell.org chat[7486]: OK
Jul 01 14:27:52 ribosome.cell.org chat[7486]:  -- got it
Jul 01 14:27:52 ribosome.cell.org chat[7486]: send (AT+CFUN=1^M)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: expect (OK)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: ^M
Jul 01 14:27:52 ribosome.cell.org chat[7486]: AT+CFUN=1^M^M
Jul 01 14:27:52 ribosome.cell.org chat[7486]: OK
Jul 01 14:27:52 ribosome.cell.org chat[7486]:  -- got it
Jul 01 14:27:52 ribosome.cell.org chat[7486]: send (AT+CPIN="5102"^M)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: expect (OKd)
Jul 01 14:27:52 ribosome.cell.org chat[7486]: ^M
Jul 01 14:27:52 ribosome.cell.org chat[7486]: AT+CPIN="5102"^M^M
Jul 01 14:27:52 ribosome.cell.org chat[7486]: +CME ERROR: 3^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: alarm
Jul 01 14:27:55 ribosome.cell.org chat[7486]: send (AT^M)
Jul 01 14:27:55 ribosome.cell.org chat[7486]: expect (OK)
Jul 01 14:27:55 ribosome.cell.org chat[7486]: AT^M^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: OK
Jul 01 14:27:55 ribosome.cell.org chat[7486]:  -- got it
Jul 01 14:27:55 ribosome.cell.org chat[7486]: send (ATI^M)
Jul 01 14:27:55 ribosome.cell.org chat[7486]: expect (OK)
Jul 01 14:27:55 ribosome.cell.org chat[7486]: ^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: ATI^M^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: Manufacturer: Vodafone (Huawei)^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: Model: K3772^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: Revision: 21.157.40.00.11^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: IMEI: 861020006814806^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: +GCAP: +CGSM,+DS,+ES^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: ^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: OK
Jul 01 14:27:55 ribosome.cell.org chat[7486]:  -- got it
Jul 01 14:27:55 ribosome.cell.org chat[7486]: send (ATZ^M)
Jul 01 14:27:55 ribosome.cell.org chat[7486]: expect (OK)
Jul 01 14:27:55 ribosome.cell.org chat[7486]: ^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: ATZ^M^M
Jul 01 14:27:55 ribosome.cell.org chat[7486]: OK
Jul 01 14:27:55 ribosome.cell.org chat[7486]:  -- got it
Jul 01 14:27:55 ribosome.cell.org chat[7486]: send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)
Jul 01 14:27:56 ribosome.cell.org chat[7486]: expect (OK)
Jul 01 14:27:56 ribosome.cell.org chat[7486]: ^M
Jul 01 14:27:56 ribosome.cell.org chat[7486]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M^M
Jul 01 14:27:56 ribosome.cell.org chat[7486]: COMMAND NOT SUPPORT^M
Jul 01 14:27:59 ribosome.cell.org chat[7486]: alarm
Jul 01 14:27:59 ribosome.cell.org chat[7486]: Failed
Jul 01 14:27:59 ribosome.cell.org pppd[7464]: Connect script failed
Jul 01 14:28:00 ribosome.cell.org pppd[7464]: Exit.
Does anyone knows why I'm getting that COMMAND NOT SUPPORT ?

Any idea or hint is welcome.
 
Old 07-01-2016, 05:54 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Clearly the chat script sends an invalid parameter or character and this is causing problems. I'm not familiar with netctl so I'm not sure if this is hard-coded (eg within mobile_ppp) or can be adjusted via a config file somewhere. It might be that a bug report is required.

There are other ways to get connected though eg
https://wiki.archlinux.org/index.php...options-mobile
https://wiki.archlinux.org/index.php/USB_3G_Modem

In the interim, you could try using 'wvdial' instead. I've used this successfully in the past to activate various 3G mobile broadband devices. Use 'wvdialconfig' to get an initial config file generated (/etc/wvdial.conf) then edit it with the appropriate settings for your device and service provider.

This might be helpful to you
https://wiki.archlinux.org/index.php/User:Crazystick
 
Old 07-04-2016, 10:56 AM   #3
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
Thank you for your answer.

I have already read these but i insist to use netctl because the sim card I'm using is from my mobile and i don't want to disable the pin. Netctl gives you the opportunity to set your pin in its configuration. wvdial as i understood doesn't support pin number.
 
Old 07-04-2016, 11:44 AM   #4
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Have you seen this:
https://bbs.archlinux.org/viewtopic.php?id=167801

Might be of some help.

Best regards,
HMW
 
Old 07-04-2016, 05:40 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Thank you for your answer.

I have already read these but i insist to use netctl because the sim card I'm using is from my mobile and i don't want to disable the pin. Netctl gives you the opportunity to set your pin in its configuration. wvdial as i understood doesn't support pin number.
Actually, in general wvdial supports any feature accessible via the standard Hays command set, including PIN. For exampe...

http://tlab.org/index.php?page=huawe...n-ubuntu-linux

But, back to your netctl issue...may be worth submitting a bug report.
 
Old 07-11-2016, 02:59 PM   #6
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
Thank you very much guys. Finally it worked with wvdial.

As for the bug, i posted it in arch forums but there was no answer at all from the members.
 
Old 07-11-2016, 03:14 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Glad to have been of help. BTW, you could try contacting one of the developers directly...

https://github.com/joukewitteveen/ne...master/AUTHORS
https://git.archlinux.org/netctl.git/commit/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
webmin and mobile broad band and mail x11 johnh10000 Linux - Newbie 1 05-08-2009 02:50 PM
Broad band installation--help thewiz103 Linux - Newbie 1 11-30-2008 04:32 PM
sharing broad band internet cable atomas123 Linux - Networking 2 11-22-2006 12:28 PM
connecting to Internet through broad band lngmn7 Linux - Networking 3 07-31-2005 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration