
Page 12
Copyright © 2017 Matrix Technology Solutions Limited
www.matrixtsl.com
Bluetooth setup
Raspberry Pi and Linux
The Raspberry Pi is a popular single-board computer.
The most common operating system used on the
Raspberry Pi is a variety of Linux called Raspbian.
The instructions here for pairing the MIAC AllCode are
not limited to a Raspberry Pi and should apply to most
Linux-based computers.
Setting up Bluetooth is relatively easy on a Raspberry Pi and can be done in a number of
ways. The following steps are perhaps a more complex way of setting it up, but it should
work in all situations. Note the Pi needs a Bluetooth USB dongle.
Step 1 – Get your Bluetooth settings
Open a command-line terminal and type the command “hciconfig”. This will bring up a list
of Bluetooth devices available on your RPi. The important thing to note is the identifier of
the Bluetooth module – in my case it is “hci0”:
Step 2 – Detect the MIAC AllCode
Switch on the MIAC and then type “hcitool scan”. When I did this, it showed two devices.
Mine was the latter (“API_B”) and you will need to take note of the 6 pairs of hexadecimal
numbers that are the MAC address, a unique identifier to the MIAC – in my case,
“00:BA:55:23:1C:20”.
Step 3 – Pair the MIAC with the RPi
To pair, you can use the “bluez-simple-agent” command using the “hci0” and MAC
address found in the previous steps.
MIAC AllCode
Instructional Guide
Содержание MI3932 MIAC AllCode
Страница 1: ......