:Primero averiguamos la mac del fonito...
# hcitool scan
Scanning ...
00:1D:6E:64:E9:06 phone
:En caso de q hay algun dispositivo configurado...
:Primero liberamos el puerto y despues le configuramos nuestro fono
# rfcomm release rfcomm0
# rfcomm bind rfcomm0 00:1D:6E:64:E9:06
# rfcomm -a
rfcomm0: 00:1D:6E:64:E9:06 channel 1 clean
:Chequeamos que el modem este funcionando... para esto primero lo configuramos en el minicom
# minicom -s
<pre>
Welcome to minicom 2.3
OPTIONS: I18n
Compiled on Feb 24 2008, 16:35:15.
Port /dev/rfcomm0
Press CTRL-A Z for help on special keys
AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
OK
</pre>
:Cremos este archivo de configuracion...
'''# cat /etc/ppp/peers/cti
<pre>
lcp-echo-failure 0
lcp-echo-interval 0
debug
show-password
connect "/usr/sbin/chat -v -V -f /etc/chatscripts/gprs-connect -T internet.ctimovil.com.ar"
disconnect "/usr/sbin/chat -v -V -f /etc/chatscripts/gprs-disconnect"
/dev/rfcomm0 # Bluetooth serial port one
115200 # fast enough
crtscts # serial cable, Bluetooth and USB, on some occations with IrDA too
local
noipdefault
ipcp-accept-local
defaultroute
replacedefaultroute
usepeerdns
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
noauth
user "ctigprs"
nomagic
</pre>
:y estos otros dos...
'''# cat /etc/chatscripts/gprs-connect
<pre>
TIMEOUT 5
#ECHO ON
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "RING"
"" \rAT
TIMEOUT 12
OK ATH
OK ATE1
OK AT+CGDCONT=1,"IP","\T"
OK ATD*99#
TIMEOUT 22
CONNECT ""
</pre>
'''cat /etc/chatscripts/gprs-disconnect
<pre>
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
#SAY "\nEnviando break al modem...\n"
"" "\K"
"" "+++ATH"
</pre>
:Ahora nos conectamos y verificamos...
# pon cti
# tail -f /var/log/syslog
:esto marca el inicio de nuestro log
pppd 2.4.4 started by root, uid 0
:el telefono es reconocido...
<debug> [1222956780.800916] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/bluetooth_acl_1d6e64e912').
:y todo esto es el log de conexion...
Oct 2 11:13:02 sdf1 chat[939]: expect (OK)
Oct 2 11:13:02 sdf1 chat[939]: ^MAT^M^M
Oct 2 11:13:02 sdf1 chat[939]: OK
Oct 2 11:13:02 sdf1 chat[939]: -- got it
Oct 2 11:13:02 sdf1 chat[939]: send (ATH^M)
Oct 2 11:13:02 sdf1 chat[939]: expect (OK)
Oct 2 11:13:02 sdf1 chat[939]: ^M
Oct 2 11:13:02 sdf1 chat[939]: ATH^M^M
Oct 2 11:13:02 sdf1 chat[939]: OK
Oct 2 11:13:02 sdf1 chat[939]: -- got it
Oct 2 11:13:02 sdf1 chat[939]: send (ATE1^M)
Oct 2 11:13:02 sdf1 chat[939]: expect (OK)
Oct 2 11:13:02 sdf1 chat[939]: ^M
Oct 2 11:13:02 sdf1 chat[939]: ATE1^M^M
Oct 2 11:13:02 sdf1 chat[939]: OK
Oct 2 11:13:02 sdf1 chat[939]: -- got it
Oct 2 11:13:02 sdf1 chat[939]: send (AT+CGDCONT=1,"IP","internet.ctimovil.com.ar"^M)
Oct 2 11:13:02 sdf1 chat[939]: expect (OK)
Oct 2 11:13:02 sdf1 chat[939]: ^M
Oct 2 11:13:02 sdf1 chat[939]: AT+CGDCONT=1,"IP","internet.ctimovil.com.ar"^M^M
Oct 2 11:13:02 sdf1 chat[939]: OK
Oct 2 11:13:02 sdf1 chat[939]: -- got it
Oct 2 11:13:02 sdf1 chat[939]: send (ATD*99#^M)
Oct 2 11:13:03 sdf1 chat[939]: timeout set to 22 seconds
Oct 2 11:13:03 sdf1 chat[939]: expect (CONNECT)
Oct 2 11:13:03 sdf1 chat[939]: ^M
Oct 2 11:13:04 sdf1 chat[939]: ATD*99#^M^M
Oct 2 11:13:04 sdf1 chat[939]: CONNECT
Oct 2 11:13:04 sdf1 chat[939]: -- got it
Oct 2 11:13:04 sdf1 chat[939]: send (^M)
Oct 2 11:13:04 sdf1 pppd[936]: Serial connection established.
Oct 2 11:13:04 sdf1 pppd[936]: using channel 3
Oct 2 11:13:04 sdf1 pppd[936]: Using interface ppp0
Oct 2 11:13:04 sdf1 pppd[936]: Connect: ppp0 <--> /dev/rfcomm0
Oct 2 11:13:04 sdf1 pppd[936]: rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
Oct 2 11:13:04 sdf1 pppd[936]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>]
Oct 2 11:13:04 sdf1 pppd[936]: sent [LCP ConfAck id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
Oct 2 11:13:04 sdf1 pppd[936]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>]
Oct 2 11:13:04 sdf1 pppd[936]: sent [PAP AuthReq id=0x1 user="sdf1" password=""]
Oct 2 11:13:04 sdf1 pppd[936]: rcvd [PAP AuthAck id=0x1 ""]
Oct 2 11:13:04 sdf1 pppd[936]: PAP authentication succeeded
Oct 2 11:13:04 sdf1 pppd[936]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
Oct 2 11:13:04 sdf1 pppd[936]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Oct 2 11:13:04 sdf1 pppd[936]: rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]
Oct 2 11:13:04 sdf1 pppd[936]: sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>]
Oct 2 11:13:04 sdf1 pppd[936]: rcvd [LCP ProtRej id=0x0 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
Oct 2 11:13:04 sdf1 pppd[936]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Oct 2 11:13:05 sdf1 pppd[936]: rcvd [IPCP ConfNak id=0x1 <addr 10.61.201.70> <ms-dns1 200.49.193.140> <ms-dns3 200.49.206.140>]
Oct 2 11:13:05 sdf1 pppd[936]: sent [IPCP ConfReq id=0x2 <addr 10.61.201.70> <ms-dns1 200.49.193.140> <ms-dns3 200.49.206.140>]
Oct 2 11:13:05 sdf1 pppd[936]: rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]
Oct 2 11:13:05 sdf1 pppd[936]: sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>]
Oct 2 11:13:05 sdf1 pppd[936]: rcvd [IPCP ConfAck id=0x2 <addr 10.61.201.70> <ms-dns1 200.49.193.140> <ms-dns3 200.49.206.140>]
Oct 2 11:13:05 sdf1 pppd[936]: replacing old default route to ath0 [192.168.1.1]
Oct 2 11:13:05 sdf1 pppd[936]: Cannot determine ethernet address for proxy ARP
Oct 2 11:13:05 sdf1 pppd[936]: local IP address 10.61.201.70
Oct 2 11:13:05 sdf1 pppd[936]: remote IP address 10.6.6.6
Oct 2 11:13:05 sdf1 pppd[936]: primary DNS address 200.49.193.140
Oct 2 11:13:05 sdf1 pppd[936]: secondary DNS address 200.49.206.140
Oct 2 11:13:05 sdf1 pppd[936]: Script /etc/ppp/ip-up started (pid 944)
Oct 2 11:13:06 sdf1 pppd[936]: Script /etc/ppp/ip-up finished (pid 944), status = 0x0
:Y ahora nos desconectamos...
# poff movistar
# tail -f /var/log/syslog
Oct 2 11:13:16 sdf1 pppd[936]: rcvd [LCP TermAck id=0x2]
Oct 2 11:13:16 sdf1 pppd[936]: Connection terminated.
Oct 2 11:13:16 sdf1 chat[976]: abort on (BUSY)
Oct 2 11:13:16 sdf1 chat[976]: abort on (ERROR)
Oct 2 11:13:16 sdf1 chat[976]: abort on (NO DIALTONE)
Oct 2 11:13:16 sdf1 chat[976]: send (\K^M)
Oct 2 11:13:16 sdf1 chat[976]: send (+++ATH^M)
Oct 2 11:13:16 sdf1 pppd[936]: Serial link disconnected.
Oct 2 11:13:16 sdf1 pppd[936]: Exit.
Oct 2 11:13:18 sdf1 NetworkManager: <debug> [1222956798.469120] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/bluetooth_acl_1d6e64e912').