Method of operating a Bluetooth phone in the Linux operating system, the so-called

  
operation, up to now only via Bluetooth to do two things:

a through virtual serial port connection on the phone, execute AT commands operate mobile phones (text messaging only)

Second, mobile phones and computers to transfer files to

If you use redhat 9.0, kernel version 2.4.20, to support bluetooth, then have to upgrade the kernel, so might as well update release. For example, FC5 supports bluetooth and comes with related software.

1, start the bluetooth service, find the phone's MAC is 00:13:E0:2A:99:6A, provide Dail-up Networking on Channel 1, and provide OBEX Object Push service /etc/on channel 9. 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 port connection device:

[ ,null,null,3],Root@hjh ~]# rfcomm bind 0 `cat ~/6600_mac` 1

[root@hjh ~]# ll /dev/rfcomm0

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

3, try to connect with the phone:

cat < /dev/rfcomm0

Sometimes Appears:

Operation already in progress, may have to restart. The specific reasons are unknown.

can then use a terminal software to connect your phone and operate the phone using AT commands, you can use minicom, but sometimes some problems, in: phone prompts for a pin, but soon the computer display minicom: can not Open /dev/rfcomm0: No such file or directory I don't know how to solve it, but use kermit to have no problem:

set line /dev/rfcomm0

set speed 9600

connect -> Enter the AT command. Such as:

ati3

Nokia 6600 can send text messages using AT commands

exit: Ctrl- \\ Press C

4, FC5 in In addition to obex_test, an obex_push is added for transferring files between the computer and the Bluetooth device (mobile phone).

* Use obex_push to transfer files to the phone:

obex_push 9 `cat ~/6600_mac ` /mnt/d/mig-29.jpg

* Receive file (default exists /tmp)

obex_push
Copyright © Windows knowledge All Rights Reserved