Monday, June 14, 2010

Connecting to the net via a bluetooh mobile...

... using the command line on Ubuntu. These are just the core bluetooth commands and the hint does not deal with specific mobile devices or the settings for your specific provider. It is basically a reminder for myself. First you need to identify the bluetooth address and the channel using sdptool:
sdptool search DUN
Inquiring ...

Searching for DUN on 00:23:F1:21:63:0F ...
Service Name: Dial-up Networking
Service RecHandle: 0x2008003
Service Class ID List:
  "Dialup Networking" (0x1103)
  "Generic Networking" (0x1201)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0101
The modem device can now be added with rfcomm:
sudo rfcomm connect DUN 00:23:F1:21:63:0F 1
Connected /dev/rfcomm0 to 00:23:F1:21:63:0F on channel 1
Press CTRL-C for hangup
The tool reports that the modem device can now be used at /dev/rfcomm0. This can now be set in /etc/wvdial.conf to connect to the provider.

1 comment:

  1. This can be done quite nicely through /etc/conf.d/net and the pppd module. What I've never been able to get working is using PAN/NAP instead of dial-up but I suspect my phone is partly to blame. It works the other way round though.