User Tools

Site Tools


bluetooth

Bluetooth

Find devices

$ hcitool scan

e.g. 01:23:45:67:89:AB

Find channel for a device

$ sdptool search DUN

e.g. channel 1

Bind a device

Manually

$ sudo rfcomm bind 0 01:23:45:67:89:AB 1

Automatically

Note: Bluetooth(stick) needs to be connected when bluetooth-service is started.

/etc/bluetooth/rfcomm.conf
rfcomm0 {
	# Automatically bind the device at startup
	bind yes;

	# Bluetooth address of the device
	device 00:18:0F:A7:B2:A3;

	# RFCOMM channel for the connection
	channel	1;

	# Description of the connection
	comment "5500-Nokia Handy";
}

Dial

Install gnome-ppp

$ sudo apt-get install gnome-ppp

Example settings for o2

  • Username: <nothing>
  • Password: <nothing>
  • Phone number: *99***1#
  • Device: /dev/rfcomm0
  • Type: USB Modem
  • Speed: 460800
  • Phone Line: Tone
  • Wait for dialtone [x]
  • Init Strings:
    • Init2: ATZ
    • Init3: ATE1
    • Init4: AT+CGDCONT=1,"IP","surfo2","",0,0
  • Networking:
    • Dynamic IP address
    • Automatic DNS
  • Options:
    • Check carrier line
    • Check default route
    • Ignore terminal strings
    • Idle time: 0
bluetooth.txt · Last modified: 2010-10-24 16:19 CEST by dominik