Atmel ATBTLC1000 BluSDK User Manual
Atmel ATBTLC1000 BluSDK User Manual

Atmel ATBTLC1000 BluSDK User Manual

Hid keyboard device
Hide thumbs Also See for ATBTLC1000 BluSDK:

Advertisement

Quick Links

ATBTLC1000 BluSDK
HID Keyboard Device – Getting Started Guide
USER GUIDE
Introduction
This getting started guide describes the setup of Atmel
®
ATBTLC1000 with a supported platform
bringing-up an example profile supplied as part of BluSDK. This document explains the bring-up of
HOGP Keyboard device example application that is embedded as part of the software release
package.
Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016

Advertisement

Table of Contents
loading

Summary of Contents for Atmel ATBTLC1000 BluSDK

  • Page 1 HID Keyboard Device – Getting Started Guide USER GUIDE Introduction This getting started guide describes the setup of Atmel ® ATBTLC1000 with a supported platform bringing-up an example profile supplied as part of BluSDK. This document explains the bring-up of HOGP Keyboard device example application that is embedded as part of the software release package.
  • Page 2: Table Of Contents

    Build Procedure ........................... 10 Console Display ......................14 Running the Demo ..................... 14 BluSDK Software Architecture ................. 17 10 ATMEL EVALUATION BOARD/KIT IMPORTANT NOTICE AND DISCLAIMER ..18 11 Revision History ......................19 HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 3: Description

    (“Hello Atmel”.) HID Keyboard Device – Getting Started Guide [USER GUIDE]...
  • Page 4: Demo Setup

    Demo Setup Figure 2-1. Demo Setup of HID Keyboard Device Application on ATBTLC1000 Android mobile phone ATBTLC1000+ “Notepad text editor app” Atmel Supported MCU (HOGP Host role) (HID Keyboard Device Application) BLE L Supported Hardware Platforms and IDEs BluSDK – Supported Hardware and IDEs Table 3-1.
  • Page 5: Hardware Setup

    ATBTLC1000 Xplained Pro Extension Connected to a SAM L21 Xplained Pro SAM D21 Xplained Pro HID Keyboard Device Setup Figure 4-2. ATBTLC1000 Xplained Pro Extension Connected to a SAMD21 Xplained Pro HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 6: Sam G55 Xplained Pro Hid Keyboard Setup

    ATBTLC1000 Xplained Pro Extension Connected to a SAM G55 Xplained Pro SAM 4S Xplained Pro HID Keyboard Setup Figure 4-4. ATBTLC1000 Xplained Pro Extension Connected to a SAM 4S Xplained Pro HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 7: Configuration For Hid Keyboard Application

    The user may need to modify few macros in hid_device.h (HID Profile) for configuring the profile for Keyboard application as per the desired application use-case. Figure 5-1. HID Profile Code Hierarchy HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 8 10. #define HID_NUM_OF_REPORT 2. User should configure the desired number of service instances. Currently the maximum number of service supported is 2. #define HID_SERV_INST HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 9: Software Setup

    Installation Steps 1. Atmel Studio installation [Atmel Studio 7.0 (build 594) Installer – with .NET] http://www.atmel.com/tools/atmelstudio.aspx (Note: SAM L21 Rev B/SAM D21/SAM G55/SAM 4S part pack is built-in as part of Atmel Studio 7.0) 2. Atmel USB Driver Installer from http://www.atmel.com/tools/atmelstudio.aspx.
  • Page 10: Build Procedure

    The following procedure is explained for SAM L21 application example. The same procedure is valid for the case of all the other supported platforms (see Chapter 3) as well. 1. Select New Example Project. Figure 6-1. Creating a New Project HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 11 Enter “ble-hid” in search window and expand Atmel Corp Projects. The location and the name of the project can be selected in the respective fields. Click OK. Figure 6-2. Selecting HID Device Application from Example Projects Accept the license Agreement. The studio will generate the BLE-HID Keyboard project for SAM L21.
  • Page 12 Building the HID Device Application Download the application via the DEBUG USB to the SAM L21 board using Device Programming option available in Tools as shown below. Figure 6-4. Selecting Device Programming Option HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 13 Program the device to download the HID Device application as shown below. Figure 6-5. Flashing the Application on Atmel MCU HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 14: Console Display

    Android from version 4.4 (Android KitKat) and upwards. The phone must include support a Bluetooth chipset supporting BT 4.0 and upwards. On the mobile phone, go to Bluetooth settings page, scan for the devices. A device with “ATMEL-HID” will be found as shown below. Click on “ATMEL-HID” to get connected.
  • Page 15 Figure 8-3. Pairing Procedure with HID Device Once the pairing done connected device is listed in paired devices section. Figure 8-4. ATMEL-HID Device Shown as Connected Console logs showing the device connected to the peer. Figure 8-5. HID Keyboard Device Connected 10.
  • Page 16 Button "SW0" on SAM L21 12. User can see a letter for each press in the application “Fast notepad” as shown below. 13. User can see a complete “Hello Atmel” in the application as shown below. ”Hello Atmel” Displayed in the Application Figure 8-7.
  • Page 17: Blusdk Software Architecture

    The following diagram illustrates the various layers in the BLE subsystem for the ATBTLC1000 configuration. The External host can be supported platform (see Chapter 3). Figure 9-1. BluSDK Software Architecture HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 18: Atmel Evaluation Board/Kit Important Notice And Disclaimer

    User indemnifies Atmel from any claim arising from user's handling or use of this evaluation board/kit. Except for the limited purpose of internal development and evaluation as specified above, no license, express or implied, by estoppel or otherwise, to any Atmel intellectual property right is granted hereunder.
  • Page 19: Revision History

    Figure 4.4 is updated with SAM4S Xplained Pro image. Section 6.1 Installation Steps are updated. Figure 3-1 is updated. 42529B 11/2015 The screenshots in Chapter 6 are updated. 42529A 09/2015 Initial document release. HID Keyboard Device – Getting Started Guide [USER GUIDE] Atmel-42529C-ATBTLC1000-BluSDK-HID-Keyboard-Device-Getting-Started-Guide_UserGuide_022016...
  • Page 20 DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, b y estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel pro ducts. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON -INFRINGEMENT.

Table of Contents