Linux with Bluetooth and mobile communication

Source: Internet
Author: User

Load module:

# modprobe Hci_usb
# modprobe Rfcomm
# Hciconfig Hci0 up
# Hciconfig Hci0 up

View Status:
# hciconfig-a

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 around Bluetooth devices:

# 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, is lowercase l instead of 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 39.62ms
0 bytes from 00:0e:07:1c:ae:1d ID 201 Time 35.25MS
0 bytes from 00:0e:07:1c:ae:1d ID 202 time 33.60ms
0 bytes from 00:0e:07:1c:ae:1d ID 203 time 40.57ms
0 bytes from 00:0e:07:1c:ae:1d ID 204 time 38.96ms
0 bytes from 00:0e:07:1c:ae:1d ID 205 time 34.60ms
6 sent, 6 received, 0% loss

Local Host configuration file (host name, etc.):

/etc/bluetooth/hcid.conf
Pin pairing code is located in the file:
/etc/bluetooth/pin
To load a configuration file:
#hcid-F/etc/bluetooth/hcid.conf

Linux with Bluetooth and mobile communication

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.