iMX6- How to configure ppp package to access internet with GSM module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6- How to configure ppp package to access internet with GSM module

Jump to solution
3,276 Views
toanjunifer
Senior Contributor I

Hi everyone,

I have a small question in ppp. My appication is access internet via GSM module.

My configuration:

  • iMX6 UltraLite EVK with Distro 4.9.88-2.0.0 (rocko) and 
  • pppd version 2.4.7.
  • GSM module - Quectel UC15

And the problem is i dont know the exactly way to configure ppp package. The error is:

Connect script failed.

I configured the ppp package follow this steps:

$ nano /etc/ppp/peers/provider

provider file content:

# example configuration for a dialup connection authenticated with PAP or CHAP
# This is the default configuration used by pon(1) and poff(1).
# See the manual page pppd(8) for information on all the options.

# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "myusername@realm"

# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********"

# Serial device to which the modem is connected.
/dev/ttyS

# Speed of the serial line.
115200

# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute

# Makes pppd "dial again" when the connection is lost.
persist

# Do not ask the remote to authenticate.
noauth

 

I changed:

user "myusername@realm" --> I dont know how to get this 

******** --> m-wap <this is an APN of mobile network- MOBIFONE SIM>

/dev/ttyS --> /dev/ttyUSB3

Should I edit another file ?

Labels (3)
1 Solution
2,866 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Dao,

    Refer to the document to port your 4G LTE to your embedded linux system, please!

Embedded Linux Systems - GSM/3G/4G 

Have a nice day!

BR,

Weidong

View solution in original post

2 Replies
2,867 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Dao,

    Refer to the document to port your 4G LTE to your embedded linux system, please!

Embedded Linux Systems - GSM/3G/4G 

Have a nice day!

BR,

Weidong

2,866 Views
toanjunifer
Senior Contributor I

Thank you weidong.sun

0 Kudos