Page 1
ATBTLC1000 BluSDK HID Mouse Device – Getting Started Guide USER GUIDE Introduction This getting started guide describes the setup of ATBTLC1000 with a supported platform bringing up an example profile supplied as part of BluSDK. This document explains the bring-up of HID Mouse device example application that is embedded as part of the software release package.
Pressing the button on the SAM L21 platform simulates movement of mouse in a pre-defined pattern as described in later in this document. HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
ATBTLC1000 Xplained Pro Extension Connected to a SAM L21 Xplained Pro SAM D21 Xplained Pro HID Device Setup Figure 4-2. BTLC1000 Xplained Pro Extension Connected to a SAM D21 Xplained Pro HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
ATBTLC1000 Xplained Pro Extension Connected to a SAM G55 Xplained Pro SAM 4S Xplained Pro HID Device Setup Figure 4-4. ATBTLC1000 Xplained Pro Extension Connected to a SAM 4S Xplained Pro HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
The user may need to modify few macros in hid_device.h (HID Profile) for configuring the profile for HID Mouse application as per the desired application use-case. Figure 5-1. HID Code Hierarchy HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
Page 8
Currently the maximum number of report supported is 10. #define HID_NUM_OF_REPORT User should configure the desired number of service instances. Currently the maximum number of service supported is 2. #define HID_SERV_INST HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
Software Setup Installation Steps 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) Atmel USB Driver Installer from http://www.atmel.com/tools/atmelstudio.aspx.
The following procedure is explained for SAML21 application example. The same procedure is valid for the case of all the other supported platform as well. Select New Example Project. Figure 6-1. Creating a New Project HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-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 Mouse 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 Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-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 Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
Android from version 4.4 (Android KitKat) and upwards. The phone must include support a Bluetooth chipset supporting BT 4.0 or upwards on the mobile phone, In Bluetooth settings scan for the devices, device with “ATMEL-HID” will be found as shown below. Click on “ATMEL-HID” to get connected.
Page 15
Figure 8-4. Enter PIN as Indicated by the Terminal Console on the Device Side Figure 8-5. Click OK to Start Pairing HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
Page 16
Once the pairing done connected device is listed in paired device. Figure 8-6. ATMEL-HID Device Shown as Connected Console log on HID device side for pairing and connection procedure. Figure 8-7. HID Mouse Device Console Log after Connection and Pairing Completion HID Mouse Device –...
Page 17
Next 5 Button Press: Cursor moved up The same sequence is repeated based on user input. A snapshot of the console logs are shown below. Figure 8-9. HID Device Console Log for Movement HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
Page 18
(5 moves RIGHT) Cursor position after pressing SW0 button 15 Cursor position after pressing SW0 button 10 times from start (5 moves LEFT) times from start (5 moves DOWN) HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
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. Figure 9-1. BluSDK Software Architecture HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
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.
Figure 4.4 is updated with SAM4S Xplained Pro image. Section 6.1 Installation Steps are updated. Figure 3-1 is updated. 42524B 11/2015 The screenshots in Chapter 6 are updated. 42524A 09/2015 Initial document release. HID Mouse Device – Getting Started Guide [USER GUIDE] Atmel-42524C-ATBTLC1000-BluSDK-HID-Mouse-Device-Getting-Started-Guide_USERGUIDE_022016...
Page 22
DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel produ cts. 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.