Linux realizes ppp dial-up 4G module networking global APN Armenian (Armenian)

Linux realizes ppp dial-up 4G module networking global APN Armenian (Armenian)

亚美尼亚拥有三个网络运营商:
VivaCell MTS (by MTS Armenia)
Beeline (by Veon)
UCOM (formerly Orange)

2G/GSM is on 900 and 1800 MHz, 3G/UMTS is on 2100 MHz (and 900 MHz on UCOM) like in the rest of Europe. VivaCell MTS started with 4G/LTE in 2012 on the 2600 MHz (band 7) and Beeline 2016 on unusual 450 MHz (band 31) and UCOM testing on 800, 1800 and 2600 MHz.

chat script configuration
chat script is mainly used to complete the dialing process of 4G module through AT command

Another commonly used keyword in chat is ABORT. This keyword is used to determine when to terminate the script. During the AT interaction, when an error occurs in the module and some error messages are output, ABORT can stop the current script according to the set word .

The following script is named "gprs-connect-chat" to
modify the gprs-connect-chat script
vi /etc/ppp/peers/gprs-chat-connect

Network operator APN

VivaCell MTS (by MTS Armenia)

ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
TIMEOUT 120
"" AT
OK \rATZ
# Connection to the network
OK  \rAT+CGDCONT=1,"IP","inet.vivacell.am",,0,0
# Dial the number
OK-AT-OK ATDT*99#
CONNECT \d\c 

Beeline

ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
TIMEOUT 120
"" AT
OK \rATZ
# Connection to the network
OK  \rAT+CGDCONT=1,"IP","internet.beeline.am",,0,0
# Dial the number
OK-AT-OK ATDT*99#
CONNECT \d\c 

UCOM (rebranded from Orange)

ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
TIMEOUT 120
"" AT
OK \rATZ
# Connection to the network
OK  \rAT+CGDCONT=1,"IP","internet",,0,0
# Dial the number
OK-AT-OK ATDT*99#
CONNECT \d\c 

Guess you like

Origin blog.csdn.net/weixin_41493857/article/details/108681832