Bluetooth Extreme has been designed to make high performance and massive Bluetooth connections as it allows to discover up to 250 devices in a certain area, and to perform long range connections with them (up to 30 m with line of sight). It works in Linux, Windows and MacOS.
Preparation Time: 15 minutesBuy now
There is a female SMA connector soldered onto the Bluetooth Extreme which allows the user to connect to an external 2.4 GHz antenna of their choice.
For using all the features described in this tutorial, you have to install the following programs in your Linux machine.
sudo aptitude install btscanner bluez-hcidump
First of all, connect the USB dongle to PC and open a terminal window.
Type âhciconfigâ to see if your PC has correctly detected your bluetooth device.
If you have several bluetooth devices, the PC identifies them with the prefix âhciâ (hci0, hci1...).
Some of the following instructions may need to be root.
To configure the friendly name of Bluetooth Extreme, type âhciconfig -a hciX name DesiredNameâ. hciX is the bluetooth device and DesiredName the friendly name.
hciconfig -a hci0 name BtCookingHacks
You can type âhciconfig -a hciX nameâ to check the bluetooth name configuration.
To make Bluetooth Extreme visible for inquiries, type âhciconfig -a hciX piscanâ.
hciconfig -a hci0 piscan
Now you can scan and connect to Bluetooth Extreme from your Smartphone or any device with bluetooth radio.
On the other hand, if you don't want to be visible for inquiries, type âhciconfig -a hciX noscanâ.
hciconfig -a hci0 noscan
To scan remote bluetooth devices type âhcitool -i hciX scanâ. All discovered devices will be listed with MAC address and friendly name.
hcitool -i hci0 scan
The command âhcidumpâ gives us a lot of information about bluetooth connections. For example to get the RSSI signal strength of each Bluetooth device.
First, run hcidump program. In this case âhcidump -V > tmp/bluetoothpacketsâ launches hcidump with verbose decoding and stores the results in âtmp/bluetoothpacketsâ.
hcidump -V > tmp/bluetoothpackets
Second, launch a scan in parallel. hcidump program will read raw HCI data coming from and going to the Bluetooth device and stores it in the selected file.
Next image shows an example of a hcidump file where you can identify the signal strength:
In this example, RSSI is -40. Therefore, 'joki' Bluetooth device is quite near.
The stored hcidump file also allows us to identify the Class of Device:
Focusing on the bits 8, 9 and 10 of the class we can identify the type of the bluetooth device.
001 â Computer
010 â Smartphone
011 â LAN/Network AP
100 â Handsfree
In this example, 0x5A020C is 010110100000001000001100. Therefore, 'joki' Bluetooth device is a Smartphone.
After a bluetooth scan is performed, you can make connections to those devices typing âhcitool -i hciX -cc MAC_ADDRâ. MAC_ADDR is the MAC address of a discovered device.
hcitool -i hci0 scan
Once the bluetooth device is configured, a bluetooth icon appears in the top right corner of the screen (next to the clock). Click the bluetooth icon and select âSend files to device...â.
Then select the file to send and press open
If you haven't created the connection before, the program will ask you for the destination bluetooth device.
Finally, you will receive the file âlogo.pngâ in your smartphone.
Windows recognizes automatically Bluetooth Extreme. Therefore, you only have to connect the USB dongle to PC.
There are many program in Windows to handle bluetooth features. Bluetooth assistant for Windows is good enough and easy to use.
First, select Send a file or Receive a file and press Next.
Then, select a discovered bluetooth device and press Accept.
Then, select if you want to use a security key or not and press Next.
Select the file to send and press Open.
Finally, if everything went fine, you will see next image:
As for Windows, MacOS detects automatically Bluetooth Extreme. Therefore, you only have to connect the USB dongle to PC.
In this case, MacOS has an application to scan, send and receive data using the bluetooth device.
For scanning and setting up bluetooth devices, go to System Preferences â Bluetooth
Then select Set up New Device...
And a list with the devices in the range will appear.
Click Continue and you can set up the bluetooth device with the MAC to synchronize files or another features.
For sending files, press the bluetooth icon that appears in the top right corner of the screen.
Then select a file.
And select a bluetooth device.
Press Send and the file will be sent to the bluetooth device.
If you are interested in Internet of Things (IoT) or M2M projects check our open source sensor platform Waspmote which counts with more than 100 sensors available to use 'off the shelf', a complete API with hundreds of ready to use codes and a low consumption mode of just 0.7µA to ensure years of battery life.
Know more at:
Get the Starter Kits at: