LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mobile broad band internet using netctl profile (https://www.linuxquestions.org/questions/linux-newbie-8/mobile-broad-band-internet-using-netctl-profile-4175583514/)

netpumber 07-01-2016 03:53 AM

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.

ferrari 07-01-2016 05:54 PM

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

netpumber 07-04-2016 10:56 AM

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.

HMW 07-04-2016 11:44 AM

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

Might be of some help.

Best regards,
HMW

ferrari 07-04-2016 05:40 PM

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.

netpumber 07-11-2016 02:59 PM

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.

ferrari 07-11-2016 03:14 PM

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/


All times are GMT -5. The time now is 04:34 AM.