65.9K
CodeProject is changing. Read more.
Home

Intel® Edison Board Getting Started with Bluetooth

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Jun 11, 2015

CPOL

1 min read

viewsIcon

5832

Intel® Edison has built-in Bluetooth, this document demonstrates how to enable Bluetooth and pair to a device.

Get access to the new Intel® IoT Developer Kit, a complete hardware and software solution that allows developers to create exciting new solutions with the Intel® Galileo and Intel® Edison boards. Visit the Intel® Developer Zone for IoT.

Intel® Edison has built-in Bluetooth*, this document demonstrates how to enable Bluetooth* and pair to a device.

Run the following commands to enable Bluetooth*:

     rfkill unblock bluetooth
     bluetoothctl

bluetoothctl will start BlueZ command line utility, when inside the BlueZ command line utility you will see [bluetooth]# at the beginning of each line.

Register an agent and set it to default:

     agent KeyboardDisplay
     default-agent

Scan for Bluetooth* devices by running scan on. The available Bluetooth devices are displayed.

     scan on

To pair to a Bluetooth* device you need the device ID to run the following command.

     pair <Device ID>

Once the device pairs successfully, connect to the device by running this command:

     connect <Device ID>

To see more commands type help. To exit BlueZ command line utility type exit. See Figure 1 for a screenshot of the process.


Figure 1- Screenshot of Bluetooth* setup.

Resources

Intel® Developer Zone for IoT

Start inventing today with the Intel® IoT Developer Program which offers knowledge, tools, kits and a community of experts to quickly and easily turn your innovative ideas into IoT Solutions.

Dream it, Build it with the Intel® IoT Developer Kit for Intel® Edison and Intel® Galileo platforms. These kits are versatile, performance-optimized and fully integrated end-to-end IoT solutions supporting a variety of programming environments, tools, security, cloud connectivity and hardware.

For more resources and to learn how the new Intel® IoT Developer Kit v1.0 can help streamline your IoT projects: