Connect Debian and Nokia phones with Bluetooth

Source: Internet
Author: User

This method has been tested with Debian 4.0, Nokia 9300 and a hl-united USB Bluetooth adapter, which is very effective.
1. Install the necessary packages:
#apt-get Install Gnome-bluetooth bluez-utils

2. Plug in the Bluetooth adapter to mount the necessary kernel modules:
#modprobe L2cap
#modprobe Rfcomm

3. Create a new Bluetooth device. We set up a virtual binding from USB to serial device:
#mknod/DEV/RFCOMM0 C 216 0

4. Activate the Bluetooth connection for your phone.

5. Search for your phone:
$hcitool Scan
This command will scan the surrounding Bluetooth devices. It will show some information like this:
Scan in ...
00:12:62:89:2c:3a Nokia 9300
The starting number is the MAC address of the phone. Of course, everyone's phone MAC address is different.

6. Edit the/etc/bluetooth/rfcomm.conf this file and add the following text:
RFCOMM0 {
Device 00:12:62:89:2c:3a
Channel 10;
Comment "Nokia 9300";
}

When finished, the entire file content should look like this:
#
# RFCOMM configuration file.
#
#rfcomm0 {
# # automatically bind the device at startup
# Bind No;
#
# # Bluetooth Address of the device
# device 11:22:33:44:55:66;
#
# # RFCOMM channel for the connection
# channel 1;
#
# # Description of the connection
# comment "Example Bluetooth device";
#}
RFCOMM0 {
Device 00:12:62:89:2c:3a
Channel 10;
Comment "Nokia 9300";
}

It is necessary to note that
The string behind the device is the MAC address of the phone that was scanned in the previous step;
The number behind the channel is the phone's default channel for Bluetooth communication, Nokia's default is 10, other brands will be different, please find it yourself online;
The next part of comment is to define the name of the Bluetooth connection, which can be defined at will.

7. Add Nokia Channel (10) to communicate with your phone:
#sdptool Add--channel=10 Opush

8. Bindings:
#rfcomm BIND/DEV/RFCOMM0 00:12:62:89:2c:3a 10
Note Here to use your own MAC address instead of using this in my example.

Well, the work on the software is done. The following can be tested to be able to connect:
First test transfer files from Debian to your phone, open the terminal:
$gnome-obex-send foo.jpg
A dialog window will appear allowing you to choose which Bluetooth device to send to, of course, because only one Bluetooth device is active at this time, so only Nokia will be shown
9300, select it with the mouse, then click "OK", then the phone will be prompted to have a Bluetooth connection request access, ask if you allow, click Allow, the transfer started. <BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Then test transfer files from your phone to the Debian system:
$gnome-obex-server
First select a file in your phone and select Send with Bluetooth. At this point, the Debian system will indicate whether to receive the connection, check always receive, and then confirm that the file transfer will begin. The file is saved on the desktop when it is finished. If you want to quit receiving file status, just press CTRL + C to do so. <BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
The whole process is quite perfect, and finally don't have to start the slow Nokia pc suit at win every time, hehe.
Finally, I have to say that this article mainly refers to the
http://www.linuxsir.org/bbs/showthread.php?t=201913, I would like to extend my sincere thanks.

Connect Debian and Nokia phones with Bluetooth

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.