diff options
author | John Klug <john.klug@multitech.com> | 2019-08-05 17:38:15 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-11-11 11:33:18 -0600 |
commit | ee346bbbc64f52d97c971a8aecb1ec354fa64e72 (patch) | |
tree | 753ac381ea9b918fcfdbd6075a33147fe04d246d | |
parent | e4a4782ec31990224bd94d0616393fb13cfe71bc (diff) | |
download | meta-mlinux-ee346bbbc64f52d97c971a8aecb1ec354fa64e72.tar.gz meta-mlinux-ee346bbbc64f52d97c971a8aecb1ec354fa64e72.tar.bz2 meta-mlinux-ee346bbbc64f52d97c971a8aecb1ec354fa64e72.zip |
Add L4N1 and L4E1 modems, and add COPS dialer strings to non-VZ LTE modems
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/l4e1 | 11 | ||||
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/l4e1_chat | 25 | ||||
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/l4n1 | 11 | ||||
l--------- | recipes-core/multitech/config/ppp/peers/l4n1_chat | 1 | ||||
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz | 48 | ||||
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/l4n1_chat_vz | 44 | ||||
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/lna3_chat_non_vz | 2 | ||||
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/lsp3_chat | 6 |
8 files changed, 148 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/ppp/peers/l4e1 b/recipes-core/multitech/config/ppp/peers/l4e1 new file mode 100644 index 0000000..d6359cd --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/l4e1 @@ -0,0 +1,11 @@ +linkname ppp0 +230400 +defaultroute +replacedefaultroute +usepeerdns +ipcp-max-failure 10 +ipcp-restart 10 +noauth +crtscts +novj +connect '/usr/sbin/chat -v -t 90 -f /etc/ppp/peers/l4e1_chat' diff --git a/recipes-core/multitech/config/ppp/peers/l4e1_chat b/recipes-core/multitech/config/ppp/peers/l4e1_chat new file mode 100644 index 0000000..3a297ed --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/l4e1_chat @@ -0,0 +1,25 @@ +SAY "L4E1 chat\n" +ECHO OFF +ABORT 'NO DIAL TONE' +ABORT 'NO DIALTONE' +ABORT 'NO ANSWER' +ABORT 'NO CARRIER' +ABORT 'DELAYED' +ABORT 'VOICE' +ABORT 'BUSY' +'' 'AT' +OK 'ATZ' +OK 'AT+CSQ' +# ---------------------------------- +# Set the APN for your provider here +# ---------------------------------- +OK 'AT+COPS=2' +OK 'AT+CGDCONT=1,"IP","internet"' +OK 'AT+COPS=0' +OK 'AT+CGDCONT?' +SAY "Dialing...\n" +OK 'ATD*99***1#' +SAY "Waiting for CONNECT...\n" +TIMEOUT 120 +CONNECT '' +SAY "Connected\n" diff --git a/recipes-core/multitech/config/ppp/peers/l4n1 b/recipes-core/multitech/config/ppp/peers/l4n1 new file mode 100644 index 0000000..c0b4beb --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/l4n1 @@ -0,0 +1,11 @@ +linkname ppp0 +230400 +defaultroute +replacedefaultroute +usepeerdns +ipcp-max-failure 10 +ipcp-restart 10 +noauth +crtscts +novj +connect '/usr/sbin/chat -v -t 90 -f /etc/ppp/peers/l4n1_chat' diff --git a/recipes-core/multitech/config/ppp/peers/l4n1_chat b/recipes-core/multitech/config/ppp/peers/l4n1_chat new file mode 120000 index 0000000..36db4e2 --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/l4n1_chat @@ -0,0 +1 @@ +l4n1_chat_non_vz
\ No newline at end of file diff --git a/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz b/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz new file mode 100644 index 0000000..ea5907e --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz @@ -0,0 +1,48 @@ +#---------------------------------------- +# Do NOT use this CHAT script with +# Verizon wireless. It will bind +# this SIM and device to the wrong +# APN. +# +# mlinux-set-apn can be used to set +# the APN. +# +# mlinux-switch-cell-fw can be used +# to switch the firmware settings +# and set the correct CHAT script. +# +# # mlinux-set-apn "APN" +# +# And to switch the firmware to Verizon: +# # mlinux-switch-cell-fw 1 +# +# And to switch to AT&T: +# # mlinux-switch-cell-fw 0 +#---------------------------------------- +SAY "L4N1 chat not for Verizon\n" +ECHO OFF +ABORT 'NO DIAL TONE' +ABORT 'NO DIALTONE' +ABORT 'NO ANSWER' +ABORT 'NO CARRIER' +ABORT 'DELAYED' +ABORT 'VOICE' +ABORT 'BUSY' +'' 'AT' +OK 'ATZ' +OK 'AT+CSQ' +#------------------------------------------- +# Set the non-Verizon APN on the next line +#------------------------------------------- +#OK 'AT+CGDCONT=3,"IP","proxy"' +#OK 'AT+CGDCONT=3,"IP","ISP.CINGULAR"' +#OK 'AT+CGDCONT=3,"IP","internet2.voicestream.com"' +OK 'AT+COPS=2' +OK 'AT+CGDCONT=3,"IP","phone"' +OK 'AT+COPS=0' +SAY "Dialing...\n" +OK 'ATD*99***3#' +SAY "Waiting for CONNECT...\n" +TIMEOUT 120 +CONNECT '' +SAY "Connected\n" diff --git a/recipes-core/multitech/config/ppp/peers/l4n1_chat_vz b/recipes-core/multitech/config/ppp/peers/l4n1_chat_vz new file mode 100644 index 0000000..1bc3652 --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/l4n1_chat_vz @@ -0,0 +1,44 @@ +#---------------------------- +# This chat script has no +# APN because Verizon +# requires the chat script +# not set the APN. +# This is because Verizon +# pushes the APN from their +# network. Image 1 on an +# LNA3 product is used +# with a Verizon SIM. +#---------------------------- +SAY "L4N1 chat Verizon\n" +ECHO OFF +ABORT 'NO DIAL TONE' +ABORT 'NO DIALTONE' +ABORT 'NO ANSWER' +ABORT 'NO CARRIER' +ABORT 'DELAYED' +ABORT 'VOICE' +ABORT 'BUSY' +'' 'AT' +OK 'ATZ' +OK 'AT+CSQ' +# ----------------------------------------- +# Do not enter the AT+CGDCONT, because it +# will cause +# a fault for a Verizon SIM and will push +# the new APN to the network, which will +# cause failures. +# To switch the firmware to Verizon: +# mlinux-switch-cell-fw 1 +# And to switch to AT&T (non-Verizon): +# mlinux-switch-cell-fw 0 +# ----------------------------------------- +# Log APN (current context) for +# diagnostic purposes +#----------------------------------- +OK 'AT+CGDCONT?' +SAY "Dialing...\n" +OK 'ATD*99***3#' +SAY "Waiting for CONNECT...\n" +TIMEOUT 120 +CONNECT '' +SAY "Connected\n" diff --git a/recipes-core/multitech/config/ppp/peers/lna3_chat_non_vz b/recipes-core/multitech/config/ppp/peers/lna3_chat_non_vz index 1e9740a..033efde 100644 --- a/recipes-core/multitech/config/ppp/peers/lna3_chat_non_vz +++ b/recipes-core/multitech/config/ppp/peers/lna3_chat_non_vz @@ -37,7 +37,9 @@ OK 'AT+CSQ' #OK 'AT+CGDCONT=3,"IP","proxy"' #OK 'AT+CGDCONT=3,"IP","ISP.CINGULAR"' #OK 'AT+CGDCONT=3,"IP","internet2.voicestream.com"' +OK 'AT+COPS=2' OK 'AT+CGDCONT=3,"IP","phone"' +OK 'AT+COPS=0' SAY "Dialing...\n" OK 'ATD*99***3#' SAY "Waiting for CONNECT...\n" diff --git a/recipes-core/multitech/config/ppp/peers/lsp3_chat b/recipes-core/multitech/config/ppp/peers/lsp3_chat index 3fcdfc2..347c3b8 100644 --- a/recipes-core/multitech/config/ppp/peers/lsp3_chat +++ b/recipes-core/multitech/config/ppp/peers/lsp3_chat @@ -10,6 +10,12 @@ ABORT 'BUSY' '' 'AT' OK 'ATZ' OK 'AT+CSQ' +# ---------------------------------- +# Set the APN for your provider here +# ---------------------------------- +OK 'AT+COPS=2' +OK 'AT+CGDCONT=1,"IP","internet"' +OK 'AT+COPS=0' OK 'AT+CGDCONT?' SAY "Dialing...\n" OK 'ATD*99***2#' |