Mit meinem 4G-Modul kann ich auf meinem Embedded-Board nicht auf das Internet zugreifenLinux

Linux verstehen
Guest
 Mit meinem 4G-Modul kann ich auf meinem Embedded-Board nicht auf das Internet zugreifen

Post by Guest »

Ich habe ein benutzerdefiniertes Board, das auf Radxa Rock 5 basiert, und versuche, mit meiner 4G-Sim auf das Internet zuzugreifen. Verwendung des PPP-Protokolls zur Ermöglichung der Verbindung und Einwahl ins Internet. Ich verwende Skripte, um den Einwahlvorgang zu automatisieren, und habe meine SIM-Karte mit AT-Befehlen getestet, und meine SIM-Karte funktioniert einwandfrei. Hier sind die Skripte, die ich verwendet habe.

Code: Select all

$ vim /etc/ppp/peers/rasppp
# Hide password when connecting for debugging
hide-password

# Don't need authentication for this phone
noauth

# For call control scripts
connect '/usr/sbin/chat -s -v -f /etc/ppp/peers/rasppp-chat-connect'

# for disconnect scripts
disconnect '/usr/sbin/chat -s -v -f /etc/ppp/peers/rasppp-chat-disconnect'

# Debugging information
debug

# 4G module
/dev/ttyUSB3

# Serial baud rate
115200

# Use default route
defaultroute

# Do not use default IP
noipdefault

# do not use PPP compression
novj
novjccomp
noccp
ipcp-accept-local
ipcp-accept-remote
local

# It is best to lock the serial bus by creating a lock file so that other programs will know that the corresponding serial port is already in use once they discover the existence of this file.
lock
dump

nodetach

# username password (configuration varies by operator)
user ctnet@mycdma.cn
password vnet.mobi

# hardware control flow
crtscts
remotename 3gppp
ipparam 3gppp

# Set the usepeerdns parameter if you want to use the DNS negotiated on the server side.
usepeerdns
$ vim /etc/ppp/peers/raspp-chat-connect

Code: Select all

TIMEOUT 15
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "NO CARRTER"
ABORT "NO DIALTONE"

""AT
OK \rATZ

ok \rAT+CGDCONT=1, "ip","airtelwap.com"

ok-at-ok atdt#777
CONNECT \d\c
$ vim /etc/ppp/peers/rasppp-chat-disconnect

Code: Select all

    ABORT "ERROR"
ABORT "NO DIALTONE"
SAY "\NSending break to the modem\n"
""\k""
""+++ATH""
`SAY "\nGood bye ! \n"
Und dann den Einwahlvorgang ausführen

Code: Select all

sudo pppd call rasppp &
Das Problem, mit dem ich hier konfrontiert bin, ist, dass ich 8.8.8.8 anpingen kann, sobald die Einwahl abgeschlossen ist, aber nicht auf das Internet zugreifen und keine Websites durchsuchen kann. ipconfig zeigt dort oben auch mein ppp0 mit der IP-Adresse an. Brauche sofortige Hilfe und wäre dankbar für jede Idee, wie man das Problem beheben kann.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post