T39m GPRS pres Infra
Zdenek Merta
zmerta at p12.mepnet.cz
Thu Aug 26 09:45:14 CEST 2004
Dobre rano,
snazim se pripojit na internet telefonem Ericsson T39-m pres GPRS pres
IrDA (Eurotel Datanonstop). Postupoval jsem podle navodu Michala Vargy.
Pouzivam FreeBSD 5.1 a kernel PPP.
Konfigurace PPP je nasleduji:
ppp.conf
default:
set log local Chat tun command
set device /dev/ttyqf
set speed 115200
set ctsrts off
set dial "ABORT BUSY \"\" \
ATE1 OK AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
AT+CGQREQ=1,0,0,0,0,0 OK AT+CGQMIN=1,0,0,0,0,0 OK ATDT*99# CONNECT"
set timeout 0
enable dns
set authname eurotel
set authkey gprs
set timeout 300
set ifaddr 0 0 255.255.255.0
add default HISADDR
Vystup z ircomm
nazev# ircomm -v2 -d /dev/cuaa1 -y /dev/ptyqf
discovered T39, address 17d57b69, hints=PnP, Modem, IrCOMM, IrOBEX
query completed
115200 baud
LAP connected
comm connected
ias accept
GetValueByClass Device DeviceName
-> 0 nazev.domain
ias closed
po neuspesne spojeni jeste dopise:
comm disconnected
reset
a ukonci se
Vystup z ppp:
nazev# ppp
Working in interactive mode
Using interface: tun0
tun0: Command: default: set device /dev/ttyqf
tun0: Command: default: set speed 115200
tun0: Command: default: set ctsrts off
tun0: Command: default: set dial ABORT BUSY "" ATE1 OK AT
+CGDCONT=1,\"IP\",\"internet\" OK AT+CGQREQ=1,0,0,0,0,0 OK AT
+CGQMIN=1,0,0,0,0,0 OK ATDT*99# CONNECT
tun0: Command: default: set timeout 0
tun0: Command: default: enable dns
tun0: Command: default: set authname eurotel
tun0: Command: default: set authkey ********
tun0: Command: default: set timeout 300
tun0: Command: default: set ifaddr 0 0 255.255.255.0
tun0: Command: default: add default HISADDR
ppp ON avatar> tun0: Command: /dev/ttyp0: dial
tun0: Chat: deflink: Dial attempt 1 of 1
ppp ON avatar> tun0: Chat: Send: ATE1
tun0: Chat: Expect(30): OK
tun0: Chat: Received: ATE1
tun0: Chat: Received: OK
tun0: Chat: Send: AT+CGDCONT=1,"IP","internet"
tun0: Chat: Expect(30): OK
tun0: Chat: Received: AT+CGDCONT=1,"IP","internet"
tun0: Chat: Received: OK
tun0: Chat: Send: AT+CGQREQ=1,0,0,0,0,0
tun0: Chat: Expect(30): OK
tun0: Chat: Received: AT+CGQREQ=1,0,0,0,0,0
tun0: Chat: Received: OK
tun0: Chat: Send: AT+CGQMIN=1,0,0,0,0,0
tun0: Chat: Expect(30): OK
tun0: Chat: Received: AT+CGQMIN=1,0,0,0,0,0
tun0: Chat: Received: OK
tun0: Chat: Send: ATDT*99#
tun0: Chat: Expect(30): CONNECT
tun0: Chat: Received: ATDT*99#
tun0: Chat: Received: CONNECT
ppp ON avatar>
Na telefonu se objevi pripojuje se, ale nakonec se nikam nepripoji :-(.
Vypis v ppp.log je nasledujici:
Aug 26 09:25:28 avatar ppp[8297]: Phase: Using interface: tun0
Aug 26 09:25:28 avatar ppp[8297]: Phase: deflink: Created in closed
state
Aug 26 09:25:28 avatar ppp[8297]: Phase: PPP Started (interactive
mode).
Aug 26 09:25:33 avatar ppp[8297]: Phase: bundle: Establish
Aug 26 09:25:33 avatar ppp[8297]: Phase: deflink: closed -> opening
Aug 26 09:25:33 avatar ppp[8297]: Phase: deflink: Connected!
Aug 26 09:25:33 avatar ppp[8297]: Phase: deflink: opening -> dial
Aug 26 09:25:35 avatar ppp[8297]: Phase: deflink: dial -> carrier
Aug 26 09:25:36 avatar ppp[8297]: Phase: deflink: carrier -> login
Aug 26 09:25:36 avatar ppp[8297]: Phase: deflink: login -> lcp
Aug 26 09:25:52 avatar ppp[8297]: Phase: deflink: Disconnected!
Aug 26 09:25:52 avatar ppp[8297]: Phase: deflink: lcp -> logout
Aug 26 09:25:52 avatar ppp[8297]: Phase: deflink: logout -> hangup
Aug 26 09:25:52 avatar ppp[8297]: Phase: deflink: Disconnected!
Aug 26 09:25:52 avatar ppp[8297]: Phase: deflink: Connect time: 19
secs: 0 octets in, 265 octets out
Aug 26 09:25:52 avatar ppp[8297]: Phase: deflink: 0 packets in, 5
packets out
Aug 26 09:25:52 avatar ppp[8297]: Phase: total 13 bytes/sec, peak 21
bytes/sec on Thu Aug 26 09:25:41 2004
Aug 26 09:25:52 avatar ppp[8297]: Phase: deflink: hangup -> closed
Aug 26 09:25:52 avatar ppp[8297]: Phase: bundle: Dead
Aug 26 09:28:14 avatar ppp[8297]: Phase: PPP Terminated (normal).
Nevite nekdo, v cem by mohl byt zakopany pes? Predem diky.
ZM
More information about the Users-l
mailing list