Quick Start Guide v1.0. This Quick Start Guide is relevant to Laird s BT800, BT810 and BT820 Bluetooth modules.



Similar documents
Introducing the Adafruit Bluefruit LE Sniffer

PM0237 Programming manual

Data sheet Wireless UART firmware version 4.02

Grandstream Networks, Inc.

Connecting your Aiki phone to a network

BLUETOOTH SMART CABLE REPLACEMENT

Bluetooth Packet Sniffing Using Project Ubertooth. Dominic Spill

IS187x_BM7x - BLEDK3 v1.01 Release Note

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

Analysis of Methods for Mobile Device Tracking. David Nix Chief Scientific Advisor

BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE

Connecting a Metrologic MS9535 to a USB BT Adapter (Client Mode)

Questions from The New SensorTag - IoT Made Easy Webinar

This guide will help you with setting up an Apple Macintosh for a GPRS connection to O 2 Mobile Web

Wzzard Sensing Platform Bluetooth App User Manual

Bluetooth Health Device Profile and the IEEE Medical Device Frame Work

ViPNet ThinClient 3.3. Quick Start

Bidirectional wireless communication using EmbedRF

Yale Software Library

APx4 Wireless System-on-Module 5/8/2013 1

Bluetooth Serial Adapter

User s manual for Android Application

QUICK START GUIDE Bluetooth Cordless Hand Scanner (CHS)

BLE113 DEVELOPMENT KIT

2X ApplicationServer & LoadBalancer & VirtualDesktopServer Manual

Cloudvue Remote Desktop Client GUI User Guide

KANGAROO MOBILE DESKTOP USER GUIDE

MobileLite Wireless G2 5-in-1 Mobile Companion User Manual

WiLink 8 Solutions. Coexistence Solution Highlights. Oct 2013

Release Note. Bluetooth Stack for Windows by TOSHIBA. Version

Chapter 15: Advanced Networks

Stealth OpenVPN and SSH Tunneling Over HTTPS

Configuring SIP Mobility for CounterPath Bria on the NetVanta 7100 and NetVanta UC Server Systems

GO!Enterprise MDM Device Application User Guide Installation and Configuration for Android with TouchDown

Chapter 3 Safeguarding Your Network

SNMP Manager User s Manual

HP Device Manager 4.6

Performance of Symmetric Neighbor Discovery in Bluetooth Ad Hoc Networks

VoIP Recorder V2 Setup Guide

User Manual Version p BETA III December 23rd, 2015

FNC-1000 User Guide Table of Contents

Tutorial: Assigning Prelogin Criteria to Policies

ReadyNAS Setup Manual

READYNAS INSTANT STORAGE. Quick Installation Guide

UG103.14: Application Development Fundamentals: Bluetooth Smart Technology

2X ApplicationServer & LoadBalancer Manual

Bluetooth for device discovery. Networking Guide

BT LE RFID Reader v1.0

Using WhatsUp IP Address Manager 1.0

Using Dial-up Networking

Smart Card Certificate Authentication with VMware View 4.5 and Above WHITE PAPER

Zebra. Quick Start Guide. Wireless Configuration for n and Bluetooth Radios for. Link-OS Mobile Printers. P Rev.

Mobility with Eye-Fi Scanning Guide

Configuring Your Network s Security

Gigabyte Management Console User s Guide (For ASPEED AST 2400 Chipset)

Contents. Business Everywhere user guide. 1. Introduction. 2. How to Install/Uninstall Business Everywhere. 3. The Business Everywhere interface

SYMETRIX SOLUTIONS: TECH TIP August 2014

Wireless Auditing on a Budget

DUO SECURITY CISCO VPN USER GUIDE 1/27/2016

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

SmartPTT File Transfer User's Guide. Version 2.0

Bluetooth HID Profile

INTEGRATION GUIDE. Bluetooth Connection Instructions for CR2300/CR2600/CR3600 VERSION 03 RELEASE DATE: MARCH 2016

StruxureWare Data Center Expert Release Notes

Bluetooth Version FUZZYSCAN FAMILY. Quick Start Guide WIRELESS SCANNER

Network Connect & Junos Pulse Performance Logs on Windows

StruxureWare Data Center Expert Release Notes

IOTIVITY AND EMBEDDED LINUX SUPPORT. Kishen Maloor Intel Open Source Technology Center

During your session you will have access to the following lab configuration. CLIENT1 (Windows XP Workstation) /24

Capture and analysis of wireless traffic

2X ApplicationServer & LoadBalancer Manual

DV230 Web Based Configuration Troubleshooting Guide

Dell OpenManage Mobile Version 1.4 User s Guide (Android)

NetSupport Manager v11

Bluefruit LE Python Library

Kramer Electronics, Ltd. Site-CTRL and Web Access Online User Guide (Documentation Revision 2)

User Guide Vodafone Pocket WiFi Pro. Designed by Vodafone

Hands-on MESH Network Exercise Workbook

Junos Pulse for Google Android

How To Gather Log Files On A Pulse Secure Server On A Pc Or Ipad (For A Free Download) On A Network Or Ipa (For Free) On An Ipa Or Ipv (For An Ubuntu) On Your Pc

Grid-In-Hand Mobile Grid Revised 1/27/15

Troubleshooting File and Printer Sharing in Microsoft Windows XP

Network Licensing. White Paper 0-15Apr014ks(WP02_Network) Network Licensing with the CRYPTO-BOX. White Paper

White Paper. Security: Cortado Corporate Server for BlackBerry. Information on the Cortado infrastructure and Bluetooth printing

Policy and Profile Reference Guide

F453. TiF453. User guide 10/11-01 PC

Texas Instruments CC2540/41 Bluetooth Low Energy Sample Applications Guide v1.3.1

PayPal PRO Sandbox Testing

Super Manager User Manual. English v /06/15 Copyright by GPC

ThinPoint Quick Start Guide

WiPG Presentation Gateway

For Businesses with more than 25 seats.

User Manual. Ver 1.0. Solutions for the Digital Life

Getting Started What s included Setting up Fitbit One on a computer Mac & PC Requirements... 2

USB HSPA Modem. User Manual

PT Activity: Configure Cisco Routers for Syslog, NTP, and SSH Operations

Networking. General networking. Networking overview. Common home network configurations. Wired network example. Wireless network examples

How to setup a serial Bluetooth adapter Master Guide

GO!Enterprise MDM Device Application User Guide Installation and Configuration for Android

Bluetooth Smart, But Not Smart Enough

Transcription:

v1.0 This is relevant to Laird s BT800, BT810 and BT820 Bluetooth modules. INTRODUCTION The Linux operating system, and Android by extension, has excellent USB support for a variety of devices. This makes it very easy to connect and configure Laird s BT800-series Bluetooth modules in Linux or Android. This guide illustrates how to connect and configure a BT800-series radio to a host machine which is running Linux or Android, as well as how to test Bluetooth and Bluetooth Low Energy connectivity. This guide assumes that you have already physically connected the BT800 to the host PC. For information on hardware integration, see the BT800 Hardware Integration Guide. REQUIREMENTS This guide uses the BT800 module as an example. You will need the following items: Linux PC or Android device BlueZ Linux Bluetooth protocol stack v4.101 or later Laird BT800 Bluetooth module CONNECT THE BT800 VIA COMMAND LINE Verify BT800 Connection In Linux, you may configure and test the BT800 via terminal. The Linux utility to configure and identify Bluetooth is hcitool. A full list of hcitool commands is found in Table 1 of Appendix I: HCITOOL and GATTTOOL Commands. To verify that the BT800 is recognized by the operating system, run hcitool and check for devices as follows: Open the command terminal. Enter the following command: hcitool dev This command displays local devices. If it finds one, it returns the following: Devices: hci0 [MAC Address] This MAC address should correspond to the MAC address of the BT800 module. The hcitool command uses the first available Bluetooth device for its operations. If multiple Bluetooth devices are found, all hcitool commands must specify which device to use, as follows: hcitool [-i <hcix>] [command [command parameters]] In this example, <hcix> must correspond to the HCI device number found using hcitool dev. Scan and Connect with Classic Bluetooth With the device initialized, you may test Bluetooth functionality from the command prompt. To test scanning, you must have a nearby device (such as a tablet or smartphone) set to be discoverable. The command to initialize a scan is: Americas: +1-800-492-2320 Option 3 1 Laird Technologies www.lairdtech.com/wireless

hcitool scan When a scan is initialized, the terminal returns found devices in the following format: Scanning... [MAC Address] Friendly_Name If there are discoverable devices nearby, they appear in this list as they are discovered. To connect to a device, use the hidd command as follows: hidd --connect xx:xx:xx:xx:xx:xx In this example, xx:xx:xx:xx:xx:xx is the MAC address of the device you wish to connect to. Scan and Connect with Bluetooth Low Energy The hcitool commands to scan and connect with Bluetooth Low Energy are distinct from those used in classic Bluetooth connections. They are listed in Table 2 of Appendix I: HCITOOL and GATTTOOL Commands. To initiate a BLE scan from the terminal, issue the following command: #hcitool lescan The terminal returns the following: LE Scan... [MAC Address] [BLE device] To connect to a found device, use the lecc command as follows: hcitool lecc <MAC Address> Connecting with Gatttool The BlueZ software stack includes a utility called Gatttool that allows you to connect, gather advertised data, and other GATT-specific BLE operations. A full list of gatttool commands is found in Table 3 shows commands for gatttool. Table 3 of Appendix I: HCITOOL and GATTTOOL Commands. To connect with the gatttool command, you must first discover another device by running the lescan as follows: #hcitool lescan Note the MAC address of the returned device that you wish to connect to. Then, use the gatttool to connect to the device with the following command: gatttool -b <MAC Address> -I This command connects the BT800 to the device with the specified MAC address. Some BLE devices, including the BL600, come programmed with a random MAC address. To connect to them for the first time, you must use the option t random in the gatttool command. The command is written as follows: Gatttool t random b <MAC ADDRESS> -I Americas: +1-800-492-2320 Option 3 2 Laird Technologies

CONNECT THE BT800 VIA GUI Using the BT800 from the Linux GUI If the BT800 is recognized by hcitool, you may use the Linux GUI to establish connections with the BT800. The example shown in Figure 1 is captured from Linux Mint 14 Nadia. The procedure may vary slightly between different desktop environments. Figure 1: Bluetooth applet in Linux Mint 14 Nadia - Kernel version 3.5.0-17-generic The built-in Bluetooth management software of your OS allows you to connect to remote devices with the BT800. From the Bluetooth manager, you may scan, pair, connect, and disconnect with Bluetooth devices. Using the BT800 from the Android GUI The Android user interface has a built-in Bluetooth device management menu for discovering, pairing, and connecting to remote devices. As of Android 4.0 ICS, this is found in the System Settings menu (Figure 2) by tapping Bluetooth. This opens the Bluetooth Devices menu (Figure 3). From here, you can search for devices, pair or unpair with found devices, change Bluetooth settings, and enable or disable the Bluetooth radio. Figure 2: Android Settings Menu in Android v4.2 Jellybean Figure 3: Bluetooth Devices Menu in Android v4.2 Jellybean Americas: +1-800-492-2320 Option 3 3 Laird Technologies

APPENDIX I: HCITOOL AND GATTTOOL COMMANDS The Linux utility to configure and identify Bluetooth is hcitool. The usage for hcitool is: hcitool [-i <hcix>] [command [command parameters]] If i option is specified, device <hcix> must A list of commands for hcitool is shown in Table 1: General and Classic BT Commands in hcitool Additionally, Bluetooth Low Energy commands are shown in Table 2. Table 1: General and Classic BT Commands in hcitool Command Description Usage dev Display local devices hcitool dev inq Inquire remote devices hcitool inq [--length=n] maximum inquiry duration in 1.28 s units [--numrsp=n] specify maximum number of inquiry responses [--iac=lap] specify the inquiry access code [--flush] flush the inquiry cache scan Scan for remote devices hcitool scan [--length=n] [--numrsp=n] [--iac=lap] [- -flush] [--class] [--info] [--oui] [--refresh] name Get name from remote device hcitool name <bdaddr> info Get information from remote device hcitool info <bdaddr> spinq Start periodic inquiry hcitool spinq epinq Exit periodic inquiry hcitool epinq cmd Submit arbitrary HCI commands hcitool cmd <ogf> <ocf> [parameters] e.g. - cmd 0x03 0x0013 0x41 0x42 0x43 0x44 con Display active connections hcitool con cc Create connection to remote device hcitool cc [--role=m s] [--ptype=pkt_types] <bdaddr> Example: cc --ptype=dm1,dh3,dh5 01:02:03:04:05:06 cc --role=m 01:02:03:04:05:06 dc Disconnect from remote device hcitool dc <bdaddr> [reason] sr Switch master/slave role hcitool sr <bdaddr> <role> cpt Change connection packet type hcitool cpt <bdaddr> <packet_types> rssi Display connection RSSI hcitool rssi <bdaddr> lq Display link quality hcitool lq <bdaddr> tpl Display transmit power level hcitool tpl <bdaddr> [type] afh Display AFH channel map hcitool afh <bdaddr> lp Set/display link policy settings hcitool lp <bdaddr> [link policy] lst Set/display link supervision timeout hcitool lst <bdaddr> [new value in slots] auth Request authentication hcitool auth <bdaddr> enc Set connection encryption hcitool enc <bdaddr> [encrypt enable] key Change connection link key hcitool key <bdaddr> clkoff Read clock offset hcitool clkoff <bdaddr> clock Read local or remote clock hcitool clock [bdaddr] [which clock] Americas: +1-800-492-2320 Option 3 4 Laird Technologies

Table 2: BLE commands in hcitool Command Description Usage lescan Start LE scan hcitool lescan [--privacy] enable privacy hcitool lescan [--passive] set scan type passive (default) hcitool lescan [--discovery=g l] enable general or limited discoveryprocedure hcitool lescan [--duplicates] don't filter duplicates lewladd Add device to LE White List hcitool lewladd [--random] <bdaddr> lewlrm Remove device from LE White List hcitool lewlrm <bdaddr> lewlsz Read size of LE White List hcitool lewlsz lewlclr Clear LE White list hcitool lewlclr lecc Create a LE Connection hcitool lecc [--random] <bdaddr> hcitool lecc whitelist ledc Disconnect a LE Connection hcitool ledc <handle> [reason] lecup LE Connection Update hcitool lecup <handle> <min> <max> <latency> <timeout> Options: -H, --handle <0xXXXX> LE connection handle -m, --min <interval> Range: 0x0006 to 0x0C80 -M, --max <interval> Range: 0x0006 to 0x0C80 -l, --latency <range> Slave latency. Range: 0x0000 to 0x03E8 -t, --timeout <time> N * 10ms. Range: 0x000A to 0x0C80 min/max range: 7.5ms to 4s. Multiply factor: 1.25ms timeout range: 100ms to 32.0s. Larger than max interval Table 3 shows commands for gatttool. Table 3: Commands for gatttool Command gatttool -b <MAC Address> --primary gatttool -b <MAC Address> --characteristics gatttool b <MAC Address> --char-desc gatttool -b <MAC Address> --char-read --uuid=xxxx gatttool -b <MAC Address> --char-write --uuid=xxxx --value=xxxx gatttool -b <MAC Address> --char-write-req --handle=0xxxxx -- value=0100 --listen gatttool -b <MAC Address> --char-write-req --handle=0xxxxx -- value=0200 --listen gatttool -b <MAC Address> --interactive Description Discover available services. Discover characteristics. Discover characteristic descriptors Read characteristic values. Write to characteristic values. Enable notifications. Enable indications. Enter interactive mode. Americas: +1-800-492-2320 Option 3 5 Laird Technologies

REVISION HISTORY Revision Date Description Initiated By 1.0 4 Sep 2014 Initial Release Jonathan Kaye Americas: +1-800-492-2320 Option 3 6 Laird Technologies