How to operate Bluetooth mobile phone under Linux operating system

Source: Internet
Author: User
Tags linux

The so-called operation, to now only through Bluetooth to do two things:

First, through the virtual serial port connected to the mobile phone, executive at command to operate mobile phone (text messages only)

Second, the mobile phone and computer transfer files

If you use Redhat 9.0, the kernel version is 2.4.20, to support Bluetooth, you have to upgrade the kernel, so you might as well update the release. such as FC5 support Bluetooth, and with the relevant software.

1, start the Bluetooth service, find the phone's Mac is 00:13:e0:2a:99:6a, provide dail-up networking in Channel 1, provide channel Object push service in Obex 9/etc/ Init.d/bluetooth start

Nov 5 20:43:50 hjh hcid[1766]: Bluetooth HCI Daemon

Nov 5 20:43:50 hjh sdpd[1769]: Bluetooth SDP Daemon

...

Sdptool Browse

...

2, generate virtual serial connection device:

[Root@hjh ~]# rfcomm bind 0 ' cat ~/6600_mac ' 1

[Root@hjh ~]# LL/DEV/RFCOMM0

CRW-------1 root 216, 0 Nov 5 20:49/dev/rfcomm0

3, try to be able to connect with mobile phone:

Cat </DEV/RFCOMM0

Sometimes appears:

Operation already in progress may have to be restarted. The specific reason is unknown.

Then you can use the terminal software to connect to the phone, and then use the AT command to operate the phone, you can use minicom, but sometimes some problems, performance in: The phone prompts input pin, but soon the computer display Minicom:cannot open/dev/rfcomm0:no such File or directory does not know how to fix it, and there is nothing wrong with Kermit:

Set LINE/DEV/RFCOMM0

Set Speed 9600

Connect-> Enter at command. Such as:

Ati3

Nokia 6600 will be able to use the texting at command

Exit: Ctrl-click C again

4, FC5 In addition to Obex_test, also added a obex_push for computers and Bluetooth devices (mobile) between the transfer of files

* Use Obex_push to transfer files to mobile phone:

Obex_push 9 ' cat ~/6600_mac '/mnt/d/mig-29.jpg

* Receive file (default exists/tmp)

Obex_push

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.