[ubuntu-ar] Celular como modem para laptop

Diego Gaustein diego at gaustein.com.ar
Tue Jul 1 04:04:27 BST 2008


2008/6/30 Daniel Garnero <eldanigarnero en gmail.com>:

> Conclusión: les pido
> que, por favor, me comenten si alguno de Uds. usó esa función (modem
> para laptop) por otra via que no sea USB. Saludos y gracias!


no lo había probado todavía (tengo un 2630) así que aproveché tu pregunta
para hacerlo, y anda de 10. Seguí las instrucciones de
http://litljay.com/howtos/tether/pppd.html .

mini-tutorial:

$ hcitool scan
Scanning ...
    *00:1E:3A:BF:5D:CE*    Nokia 2630

$ sdptool browse 00:1E:3A:BF:5D:CE
Browsing 00:1E:3A:BF:5D:CE ...
Service Name: Network Access Point Service
Service Description: Personal Ad-hoc Network Service which provides access
to a network
Service RecHandle: 0x10000
Service Class ID List:
  "Network Access Point" (0x1116)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 15
  "BNEP" (0x000f)
    Version: 0x0100
    SEQ8: dd 6
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Network Access Point" (0x1116)
    Version: 0x0100

Service Name: OBEX Object Push
Service RecHandle: 0x10001
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 9
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0100

Service Name: OBEX File Transfer
Service RecHandle: 0x10002
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100

*Service Name: Dial-up networking
Service RecHandle: 0x10003
Service Class ID List:
  "Dialup Networking" (0x1103)
  "Generic Networking" (0x1201)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100*

Service Name: Nokia PC Suite
Service RecHandle: 0x10004
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 15
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

Service Name: COM 1
Service RecHandle: 0x10005
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

Service Name: Voice Gateway
Service RecHandle: 0x10006
Service Class ID List:
  "Handfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 13
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0105

Service Name: Audio Gateway
Service RecHandle: 0x10007
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 12
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: SyncML Client
Service RecHandle: 0x10009
Service Class ID List:
  UUID 128: 00000002-0000-1000-8000-0002ee000002
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 11
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

Service Name: SIM ACCESS
Service RecHandle: 0x1000e
Service Class ID List:
  "SIM Access" (0x112d)
  "Generic Telephony" (0x1204)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "SIM Access" (0x112d)
    Version: 0x0101

/etc/bluetooth/rfcomm.conf:

rfcomm0 {
        bind yes;
        device* 00:1E:3A:BF:5D:CE*;
        channel 1;
        comment "Nokia 2630";
}

/etc/ppp/peers/nokia:

/dev/rfcomm0 115200
connect '/usr/sbin/chat -v -f /etc/ppp/nokia_connect'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault

/etc/ppp/nokia_connect:

''
ATZ OK
AT+CGDCONT=1,"IP","*internet.ctimovil.com.ar*"
OK "*ATD*99#*"
CONNECT
''

(con las comillas ahí y todo)

$ sudo /etc/rc.d/bluetooth restart (en ubuntu sería /etc/init.d/bluetooth
restart)

para comprobar que esté todo bien ejecutamos
$ rfcomm
rfcomm0: 00:1E:3A:BF:5D:CE channel 1 open

y ya nos podemos conectar.

$ sudo pppd call nokia
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
not replacing existing default route via 10.0.0.2
Cannot determine ethernet address for proxy ARP
local  IP address 170.51.223.73
remote IP address 10.6.6.6
primary   DNS address 170.51.255.100
secondary DNS address 170.51.242.18

así que la próxima vez que se corte Arnet no me voy a molestar tanto :)

saludos.
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: https://lists.ubuntu.com/archives/ubuntu-ar/attachments/20080701/a78036c2/attachment-0001.htm 


More information about the Ubuntu-ar mailing list