/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
Huawei 220 telmore debian testing, hjælp t~
Fra : bofhenator@gmail.com


Dato : 01-04-08 14:30

Jeg er en anelse på bar bund, jeg starter pppd således:

pppd call h3g.chat

Jeg har følgende filer:
/etc/ppp/peers/h3g.chat:
lock
connect "/usr/sbin/chat -v -f /etc/ppp/h3g.chat"
#Use the first of the serial ports.
/dev/ttyUSB0
hide-password
noauth
debug
novj
460800
#This options tells pppd to create automatically a default route for
this connection
#in the routing table upon connection.
#This works if you do not have set (you must not indeed!) the
'gateway' option
# for any network interface you have (eg eth0).
defaultroute
noipdefault
user anyuser
password anypassword
modem
crtscts
#Do not use the peer given DNSs, since the ones received from the peer
are wrong. Vi prøver!
usepeerdns
nodeflate
nobsdcomp

og /etc/ppp/h3g.chat
ABORT BUSY
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
"" "AT&F"
OK "AT+COPS?"
#This is to be sure of being connected to HSDPA of Tre and not anyone
else ('roaming' costs too much!).
#'+COPS: 0,0,"3 Italy",2' "ATZ"
OK "ATE1"
OK "ATS0=0"
OK 'AT+CGDCONT=1,"IP"'
OK "ATDT*99#"
TIMEOUT 30
CONNECT \d\c

Jeg ender med at pppd dør:Apr 1 22:22:54 Pedersen-hp pppd[11431]:
pppd 2.4.4 started by root, uid 0
Apr 1 22:22:55 Pedersen-hp chat[11432]: abort on (BUSY)
Apr 1 22:22:55 Pedersen-hp chat[11432]: abort on (ERROR)
Apr 1 22:22:55 Pedersen-hp chat[11432]: report (CONNECT)
Apr 1 22:22:55 Pedersen-hp chat[11432]: timeout set to 10 seconds
Apr 1 22:22:55 Pedersen-hp chat[11432]: send (AT&F^M)
Apr 1 22:22:55 Pedersen-hp chat[11432]: expect (OK)
Apr 1 22:22:55 Pedersen-hp chat[11432]: AT&F^M^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: OK
Apr 1 22:22:55 Pedersen-hp chat[11432]: -- got it
Apr 1 22:22:55 Pedersen-hp chat[11432]: send (AT+COPS?^M)
Apr 1 22:22:55 Pedersen-hp chat[11432]: expect (OK)
Apr 1 22:22:55 Pedersen-hp chat[11432]: ^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: AT+COPS?^M^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: +COPS: 0,0,"TELMORE",2^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: ^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: OK
Apr 1 22:22:55 Pedersen-hp chat[11432]: -- got it
Apr 1 22:22:55 Pedersen-hp chat[11432]: send (ATE1^M)
Apr 1 22:22:55 Pedersen-hp chat[11432]: expect (OK)
Apr 1 22:22:55 Pedersen-hp chat[11432]: ^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: ATE1^M^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: OK
Apr 1 22:22:55 Pedersen-hp chat[11432]: -- got it
Apr 1 22:22:55 Pedersen-hp chat[11432]: send (ATS0=0^M)
Apr 1 22:22:55 Pedersen-hp chat[11432]: expect (OK)
Apr 1 22:22:55 Pedersen-hp chat[11432]: ^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: ATS0=0^M^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: OK
Apr 1 22:22:55 Pedersen-hp chat[11432]: -- got it
Apr 1 22:22:55 Pedersen-hp chat[11432]: send (AT+CGDCONT=1,"IP"^M)
Apr 1 22:22:55 Pedersen-hp chat[11432]: expect (OK)
Apr 1 22:22:55 Pedersen-hp chat[11432]: ^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: AT+CGDCONT=1,"IP"^M^M
Apr 1 22:22:55 Pedersen-hp chat[11432]: OK
Apr 1 22:22:55 Pedersen-hp chat[11432]: -- got it
Apr 1 22:22:55 Pedersen-hp chat[11432]: send (ATDT*99#^M)
Apr 1 22:22:56 Pedersen-hp chat[11432]: timeout set to 30 seconds
Apr 1 22:22:56 Pedersen-hp chat[11432]: expect (CONNECT)
Apr 1 22:22:56 Pedersen-hp chat[11432]: ^M
Apr 1 22:22:56 Pedersen-hp chat[11432]: ATDT*99#^M^M
Apr 1 22:22:56 Pedersen-hp chat[11432]: CONNECT
Apr 1 22:22:56 Pedersen-hp chat[11432]: -- got it
Apr 1 22:22:56 Pedersen-hp chat[11432]: send (\d)
Apr 1 22:22:57 Pedersen-hp pppd[11431]: Serial connection
established.
Apr 1 22:22:57 Pedersen-hp pppd[11431]: using channel 4
Apr 1 22:22:57 Pedersen-hp pppd[11431]: Using interface ppp0
Apr 1 22:22:57 Pedersen-hp pppd[11431]: Connect: ppp0 <--> /dev/
ttyUSB0
Apr 1 22:22:58 Pedersen-hp pppd[11431]: sent [LCP ConfReq id=0x1
<asyncmap 0x0> <magic 0x463c9329> <pcomp> <accomp>]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: rcvd [LCP ConfReq id=0xb
<asyncmap 0x0> <auth chap MD5> <magic 0x104551b> <pcomp> <accomp>]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: sent [LCP ConfAck id=0xb
<asyncmap 0x0> <auth chap MD5> <magic 0x104551b> <pcomp> <accomp>]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: rcvd [LCP ConfAck id=0x1
<asyncmap 0x0> <magic 0x463c9329> <pcomp> <accomp>]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: sent [LCP EchoReq id=0x0
magic=0x463c9329]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: rcvd [LCP DiscReq id=0xc
magic=0x104551b]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: rcvd [CHAP Challenge id=0x1
<6e59e9939e90eebcf8d558d2aaf847c6>, name = "UMTS_CHAP_SRVR"]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: sent [CHAP Response id=0x1
<c8f4c0dce1ec161605567e5fd008811e>, name = "anyuser"]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: rcvd [LCP EchoRep id=0x0
magic=0x104551b 46 3c 93 29]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: rcvd [CHAP Success id=0x1 ""]
Apr 1 22:22:58 Pedersen-hp pppd[11431]: CHAP authentication succeeded
Apr 1 22:22:58 Pedersen-hp pppd[11431]: CHAP authentication succeeded
Apr 1 22:22:58 Pedersen-hp pppd[11431]: sent [IPCP ConfReq id=0x1
<addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Apr 1 22:22:59 Pedersen-hp pppd[11431]: rcvd [IPCP ConfNak id=0x1 <ms-
dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins
10.11.12.14>]
Apr 1 22:22:59 Pedersen-hp pppd[11431]: sent [IPCP ConfReq id=0x2
<addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
Apr 1 22:22:59 Pedersen-hp pppd[11431]: Hangup (SIGHUP)
Apr 1 22:22:59 Pedersen-hp pppd[11431]: Modem hangup
Apr 1 22:22:59 Pedersen-hp pppd[11431]: Connection terminated.
Apr 1 22:23:00 Pedersen-hp pppd[11431]: Exit.

Nogle gode råd?

/Magnus

 
 
Jesper Staun Hansen (01-04-2008)
Kommentar
Fra : Jesper Staun Hansen


Dato : 01-04-08 21:44

bofhenator@gmail.com wrote:
> Jeg er en anelse på bar bund, jeg starter pppd således:
>
> pppd call h3g.chat
>
> Jeg har følgende filer:
> /etc/ppp/peers/h3g.chat:
> lock
> connect "/usr/sbin/chat -v -f /etc/ppp/h3g.chat"
> #Use the first of the serial ports.
> /dev/ttyUSB0
> hide-password
> noauth
> debug
> novj
> 460800
> #This options tells pppd to create automatically a default route for
> this connection
> #in the routing table upon connection.
> #This works if you do not have set (you must not indeed!) the
> 'gateway' option
> # for any network interface you have (eg eth0).
> defaultroute
> noipdefault
> user anyuser
> password anypassword
> modem
> crtscts
> #Do not use the peer given DNSs, since the ones received from the peer
> are wrong. Vi prøver!
> usepeerdns
> nodeflate
> nobsdcomp
>
> og /etc/ppp/h3g.chat
> ABORT BUSY
> ABORT ERROR
> REPORT CONNECT
> TIMEOUT 10
> "" "AT&F"
> OK "AT+COPS?"
> #This is to be sure of being connected to HSDPA of Tre and not anyone
> else ('roaming' costs too much!).
> #'+COPS: 0,0,"3 Italy",2' "ATZ"
> OK "ATE1"
> OK "ATS0=0"
> OK 'AT+CGDCONT=1,"IP"'
> OK "ATDT*99#"
> TIMEOUT 30
> CONNECT \d\c
>
<snip>
>
> Nogle gode råd?
>
> /Magnus

Muligvis din ATDT der er forkert.
Der findes nogle forskellige afhængig af teleudbyder.
Har selv denne (M1 på TDCs netværk):
# cat /etc/ppp/peers/BluetoothDialup
debug
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0


# cat /etc/chatscripts/BluetoothDialup
TIMEOUT 35
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
OK 'AT+CGDCONT=1,"IP","internet"'
OK ATD*99***1#
CONNECT ""

Tonni Aagesen (01-04-2008)
Kommentar
Fra : Tonni Aagesen


Dato : 01-04-08 22:42

bofhenator@gmail.com wrote:

> Nogle gode råd?

Følgende fungerede for mig med deres HUAWEI modem:

cello ~ # cat /etc/ppp/chat-tre
TIMEOUT 30
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' '\rATz'
OK '\rATE0V1&D2&C1S0=0+IFC=2,2'
OK '\rAT+cgdcont=1,"IP","bredband.tre.dk"'
OK '\rATD*99***1#'
CONNECT ''

cello ~ # cat /etc/ppp/peers/tre
connect '/usr/sbin/chat -v -f /etc/ppp/chat-tre'
noauth
defaultroute
usepeerdns
/dev/ttyUSB0
115200


--
Mvh
Tonni Aagesen

Magnus Pedersen (01-04-2008)
Kommentar
Fra : Magnus Pedersen


Dato : 01-04-08 22:54

Tonni Aagesen wrote:
> bofhenator@gmail.com wrote:
>
>> Nogle gode råd?
>
> Følgende fungerede for mig med deres HUAWEI modem:
>
> cello ~ # cat /etc/ppp/chat-tre
> TIMEOUT 30
> ECHO ON
> ABORT '\nBUSY\r'
> ABORT '\nERROR\r'
> ABORT '\nNO ANSWER\r'
> ABORT '\nNO DIALTONE\r'
> ABORT '\nRINGING\r\n\r\nRINGING\r'
> '' '\rATz'
> OK '\rATE0V1&D2&C1S0=0+IFC=2,2'
> OK '\rAT+cgdcont=1,"IP","bredband.tre.dk"'
> OK '\rATD*99***1#'
> CONNECT ''
>
> cello ~ # cat /etc/ppp/peers/tre
> connect '/usr/sbin/chat -v -f /etc/ppp/chat-tre'
> noauth
> defaultroute
> usepeerdns
> /dev/ttyUSB0
> 115200
>
>
Tak for input

Hvis jeg sletter den sidste del "bredband.tre.dk" fra nedenstående
linie, mon det så ikke spiller med telmore

OK '\rAT+cgdcont=1,"IP","bredband.tre.dk"'

/Magnus
Der nok skal melde tilbage hvis det virker

bofhenator@gmail.com (03-04-2008)
Kommentar
Fra : bofhenator@gmail.com


Dato : 03-04-08 11:50

On Apr 1, 11:54 pm, Magnus Pedersen <bofhena...@gmail.com> wrote:
> Tonni Aagesen wrote:
> > bofhena...@gmail.com wrote:
>
> >> Nogle gode råd?
>
> > Følgende fungerede for mig med deres HUAWEI modem:
>
> > cello ~ # cat /etc/ppp/chat-tre
> > TIMEOUT 30
> > ECHO ON
> > ABORT '\nBUSY\r'
> > ABORT '\nERROR\r'
> > ABORT '\nNO ANSWER\r'
> > ABORT '\nNO DIALTONE\r'
> > ABORT '\nRINGING\r\n\r\nRINGING\r'
> > '' '\rATz'
> > OK '\rATE0V1&D2&C1S0=0+IFC=2,2'
> > OK '\rAT+cgdcont=1,"IP","bredband.tre.dk"'
> > OK '\rATD*99***1#'
> > CONNECT ''
>
> > cello ~ # cat /etc/ppp/peers/tre
> > connect '/usr/sbin/chat -v -f /etc/ppp/chat-tre'
> > noauth
> > defaultroute
> > usepeerdns
> > /dev/ttyUSB0
> > 115200
>
> Tak for input
>
> Hvis jeg sletter den sidste del "bredband.tre.dk" fra nedenstående
> linie, mon det så ikke spiller med telmore
>
> OK '\rAT+cgdcont=1,"IP","bredband.tre.dk"'
>
> /Magnus
> Der nok skal melde tilbage hvis det virker

Jeg ændrede bredband.tre.dk til internet... og nu virker det

/Magnus

Søg
Reklame
Statistik
Spørgsmål : 177547
Tips : 31968
Nyheder : 719565
Indlæg : 6408797
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste