← Back to team overview

sslug-teknik team mailing list archive

Problemer med ppp script

 

Jeg forsøger at forbinde min computer til nettet via min 3G mobiltelefon . Jeg har tilsluttet telefonen til computeren via USB, og telefonen bliver til device /dev/ttyACM0 . Jeg prøver at bruge nogle ppp scripts jeg fandt til at forbinde til data.tre.dk med telefonen. Det virker dog ikke.

Scripts:

3g
---------------------------

#Set this to the device allocated to the Card
/dev/ttyACM0
#Baudrate
230400
#Idle time for closing connection
idle 7200
#Lock the device for this PPPD process use only
lock
#Use normal handshaking
crtscts
#Assume it is a modem device and force modem control methods
modem
#Any user can start the connection
noauth
#If a default route exists replace it with the ppp link
#You get an error if this command is not supported
#by your version of PPPD
replacedefaultroute
#Make the ppp link the default root
defaultroute
#Username and Password for computer/GlobeTrotter ppp link
#Normally ignored. Change if GSM Operator requires it
user web
password web
#Change the path to chat if required for your version of Linux
connect '/usr/sbin/chat -v -f /etc/ppp/3g-chat'
#Accept IP address provided by network
noipdefault
#Detach PPPD from console used to run the program {optional}
#updetach
#Get DNS addresses from operator
usepeerdns
#Don’t use VJ compression for ppp link
novj

----------------------------------

3g-chat
----------------------------------

ABORT BUSY
ABORT ‘NO CARRIER’
ABORT ERROR
REPORT CONNECT
TIMEOUT 100
“” “AT&F”
OK “ATE1″
OK “AT+CGDCONT=1,\042IP\042,\042data.tre.dk\042″
SAY “Calling 3g GPRS\n”
TIMEOUT 60
OK “ATD*99***1#”
CONNECT \c

----------------------------------

Jeg kører så:
# pon 3g

Der sker tilsyneladende intet. Udskrift fra /var/log/messages:

Sep 28 00:30:34 user-laptop pppd[29307]: pppd 2.4.4 started by user, uid 1000
Sep 28 00:30:36 user-laptop pppd[29307]: Exit.


Har i nogen ide til hvad der kan være galt?


Follow ups