Use Bluetooth to communicate with mobile phones in Debian Linux

Source: Internet
Author: User
DebianLinux Uses Bluetooth to communicate with mobile phones-Linux Release Technology-Debian information. See the following for details. Use Ericsson T68i, Sony Ericsson T628, and Billionton USB Bluetooth Adapter to pass the test in the Debian Kernel-2.6.0 Kernel.

(I purchased Billionton USB Bluetooth Adapter with Win98/2 k/xp drivers and software widcomm1.3.2.7. To use it in win2003, the latest version 1.4.2.10 is required, however, license is required for playing this game. You can refer to it if you want to play it in LINUX)

The kernel supports usb_hci rfcomm.

Software bluez

Load module:
# Modprobe hci_usb
# Modprobe rfcomm
# Hciconfig hci0 up

# Hciconfig hci0 up

View status:
# Hciconfig-
Hci0: Type: USB
BD Address: 00: 10: 60: A3: 68: 9F acl mtu: 192: 8 sco mtu: 64: 8
UP RUNNING PSCAN ISCAN
RX bytes: 1860 acl: 10 sco: 0 events: 88 errors: 0
TX bytes: 1432 acl: 10 sco: 0 commands: 52 errors: 0
Features: 0xff 0xff 0x0f 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'debian'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)

Scan the peripheral bluetooth device:

# Hcitool scan

Scanning...
00: 80: 37: B5: A8: 3A T68i
00: 0E: 07: 1C: AE: 1D T628

Ping to see:

# L2ping 00: 0E: 07: 1C: AE: 1D # (l2ping, in lower case, L, not number 1)

Ping: 00: 0E: 07: 1C: AE: 1D from 00: 10: 60: A3: 68: 9F (data size 20 )...
0 bytes from 00: 0E: 07: 1C: AE: 1D id 200 time 39.62 ms
0 bytes from 00: 0E: 07: 1C: AE: 1D id 201 time 35.25 ms
0 bytes from 00: 0E: 07: 1C: AE: 1D id 202 time 33.60 ms
0 bytes from 00: 0E: 07: 1C: AE: 1D id 203 time 40.57 ms
0 bytes from 00: 0E: 07: 1C: AE: 1D id 204 time 38.96 ms
0 bytes from 00: 0E: 07: 1C: AE: 1D id 205 time 34.60 ms
6 sent, 6 dead Ed, 0% loss

Local host configuration file (host name and other parameters ):
/Etc/bluetooth/hcid. conf

PIN pairing code file:

/Etc/bluetooth/pin

Load the configuration file:

# Hcid-f/etc/bluetooth/hcid. conf
Related Article

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.