Copyright © Shimmer 2017
Realtime Technologies Ltd Shimmer User Manual
All rights reserved Rev3p
7
2.4.2. Bluetooth Pairing in Linux
The operation of pairing a Shimmer device in Linux may vary from distribution to distribution. The
following procedure has been tested in Ubuntu 10.04, Slackware 13 and OpenSuse 11.3.
All the commands given here should be entered from the command line (in a terminal window).
Bluetooth Radio
The BlueZ Bluetooth libraries and tools need to be installed. See http://www.bluez.org for details.
Ensure the Bluetooth radio is available by running the hciconfig command.
tiny2@ShimmerLive:~/Desktop$ hciconfig
hci0: Type: USB
BD Address: 00:19:0E:0A:D6:62 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:1013 acl:0 sco:0 events:34 errors:0
TX bytes:1347 acl:0 sco:0 commands:34 errors:0
Search for Shimmer Devices
Scan for the Shimmer by running the hcitool scan command.
tiny2@ShimmerLive:~/Desktop$ hcitool scan
Scanning ...
00:06:66:42:22:BD RN42-22BD
00:A0:96:28:DF:E8 FireFly-DFE8
00:06:66:42:24:18 RN42-2418
Pair to a Shimmer device
To use the Shimmer, for example, with Bluetooth radio ID “RN42-2418”, it must be bound to an
rfcomm device. The rfcomm bind <n> <MAC_ADDRESS> command achieves this. The <n> parameter
gives the rfcomm device number, which must be different for each Shimmer paired, and the
<MAC_ADDRESS> parameter is the Shimmers MAC address which can be obtained from the hcitool
scan output above. This command normally needs root privileges, so “sudo” is used.
tiny2@ShimmerLive:~/Desktop$ sudo rfcomm bind 0 00:06:66:42:24:18
[sudo] password for tiny2:
Verify a Successful Bluetooth Pairing
Running the rfcomm command with no arguments shows which Shimmer is bound to which rfcomm
device, along with the current connection status.
tiny2@ShimmerLive:~/Desktop$ rfcomm
rfcomm0: 00:06:66:42:24:18 channel 1 clean
rfcomm1: 00:A0:96:28:DF:E8 channel 1 clean
2.5. Setting up a Shimmer data stream
2.5.1. Setting up a Shimmer data stream on Linux
ShimmerCapture is a host side application used to configure a single Shimmer and stream data from
it. The application is available for the Linux operating system and is available from the Shimmer User
Resources or for download from the members section of the Shimmer website. Follow the steps
below on setting up a stream in ShimmerCapture.