- Make sure that your bluetooth device is plugged in.
- Reset all bluetooth devices:-
$hciconfig reset- Optionally, you can also check if the device exists:-
$hcitool dev- Register a serial port:-
$sdptool add --channel=2 SP- Now, listening to the channel:-
$rfcomm listen rfcomm2 2Now, switch on the bluetooth on the device and open the PyS60 Interpreter on the mobile and do Options->Bluetooth Console.. You will get the output like-
shadyabhi@shadyabhi-desktop:~$ rfcomm listen rfcomm2 2That means you are not connected. As told in the official documentation, when i did-
Waiting for connection on channel 2
Connection from 00:21:FC:FA:B8:3A to /dev/rfcomm2
Press CTRL-C for hangup
$ cu -l /dev/rfcomm2I was getting the following error.. So, by a bit of googling i succeded by using another program screen by typing:-
cu: /dev/rfcomm2: Line in use
$screen /dev/rfcomm2Now, you will be connected & a new blank screen will come up.
Suppose, you want to make a call to your buddy whose phone number is 9510216275.. Simply type in your terminal...
import telephoneThis way, you can dial your buddy phone number in mobile by typing from your computer terminal....