User manual
DA14580/582 Remote control with
voice and motion
UM-B-042
Abstract
This document describes the DA14580/582 Remote control with voice and motion reference
application, based on DA14580 Bluetooth® Smart controllers and DA14582 Bluetooth Smart SoC
with Codec.
UM-B-042
DA14580/582 Remote control with voice and motion
Contents
Abstract ................................................................................................................................................ 1
Contents ............................................................................................................................................... 2
Figures .................................................................................................................................................. 3
Tables ................................................................................................................................................... 3
1
2
3
4
5
Terms and definitions ................................................................................................................... 4
References ..................................................................................................................................... 4
Introduction.................................................................................................................................... 5
Overview......................................................................................................................................... 5
Reference Design hardware ......................................................................................................... 6
5.1 Setting up the hardware ........................................................................................................ 6
5.2 Setting up the software ......................................................................................................... 8
5.2.1
Windows 8.1 host application ................................................................................ 8
5.2.1.1
Preparing the host device .................................................................. 8
5.2.1.2
The windows host application ............................................................ 8
5.2.1.3
Running the application ..................................................................... 9
5.2.2
Android host application ...................................................................................... 10
5.2.2.1
Preparing your host device .............................................................. 10
5.2.2.2
The Android host application ........................................................... 10
5.2.2.3
Running the application ................................................................... 11
5.3 Upgrading the device .......................................................................................................... 11
Bluetooth Smart Voice and Motion Remote Control hardware .............................................. 12
Bluetooth Smart Voice and Motion Remote Control software ............................................... 14
7.1 Source files ......................................................................................................................... 14
7.2 Key functions ....................................................................................................................... 16
7.3 Voice functionality ............................................................................................................... 18
7.3.1
Architecture description ....................................................................................... 18
7.3.2
SC14439 driver API ............................................................................................. 18
7.4 Motion functionality ............................................................................................................. 19
7.4.1
Architecture .......................................................................................................... 19
7.4.2
BMI055 driver API ................................................................................................ 20
7.5 Stream functionality............................................................................................................. 20
Software configuration ............................................................................................................... 21
8.1 hw_config.h ......................................................................................................................... 21
8.2 app_kbd_config.h ................................................................................................................ 21
8.3 app_audio439_config.h ....................................................................................................... 22
8.4 app_con_fsm_config.h ........................................................................................................ 22
HID database and reports ........................................................................................................... 24
6
7
8
9
10 Audio delay calculation .............................................................................................................. 25
11 Power consumption .................................................................................................................... 26
12 Windows 8.1 host application .................................................................................................... 27
Appendix A GATT database ............................................................................................................. 28
Appendix B HID report map.............................................................................................................. 31
User manual
CFR0012-00 Rev 2
Revision 1.0
2 of 40
20-Mar-2015
© 2015 Dialog Semiconductor
UM-B-042
DA14580/582 Remote control with voice and motion
Appendix C DA14580 reference design schematics ...................................................................... 35
Appendix D DA14582 reference design schematics ...................................................................... 37
Revision history ................................................................................................................................. 39
Figures
Figure 1: DA14580 Voice and Motion RCU layout ................................................................................ 6
Figure 2: DA14582 Voice and Motion RCU layout ................................................................................ 7
Figure 3: The Windows Voice RCU host application window ............................................................... 8
Figure 4: The Android Voice RCU host application ............................................................................. 10
Figure 5: HW architecture of the DA14580 Voice and Motion Remote Control .................................. 12
Figure 6: HW architecture of the DA14582 Voice and Motion Remote Control .................................. 12
Figure 7: Voice related software architecture ...................................................................................... 18
Figure 8: Motion related software architecture .................................................................................... 19
Figure 9: Motion data processing in host device ................................................................................. 19
Figure 10: Stream software architecture ............................................................................................. 20
Figure 11: Audio initialization sequence of events .............................................................................. 25
Figure 12: Windows 8.1 host application architecture ......................................................................... 27
Figure 13: DA14580 and gyro/accelerometer schematic diagram ...................................................... 35
Figure 14: DA14580 key-matrix and SC14439 schematic diagram .................................................... 36
Figure 15: DA14582 and gyro/accelerometer schematic diagram ...................................................... 37
Figure 16: DA14582 key-matrix and gyro/accelerometer schematic diagram .................................... 38
Tables
Table 1: Bluetooth Smart Voice and Motion Remote Control hardware blocks .................................. 13
Table 2: Differences between Keyboard and Voice RCU reference design software......................... 14
Table 3: Voice and Motion RCU related software files ........................................................................ 15
Table 4: Audio initialization sequence of events ................................................................................. 25
Table 5: Power consumption ............................................................................................................... 26
User manual
CFR0012-00 Rev 2
Revision 1.0
3 of 40
20-Mar-2015
© 2015 Dialog Semiconductor
UM-B-042
DA14580/582 Remote control with voice and motion
1
Terms and definitions
Define acronyms and abbreviations used in the document.
ADPCM
Adaptive differential pulse-code modulation
BLE
Bluetooth Low Energy
BOM
Bill Of Materials
DIS
Device Information Service
EEPROM
Electrically Erasable Programmable Read Only Memory
FSM
Finite State Machine
GAP
Generic Access Profile
GATT
Generic Attribute Profile
GPIO
General Purpose Input Output
HID
Human Interface Device
HW
hardware
I2C
Inter-Integrated Circuit (bus)
IMA
Interactive Multimedia Association
MITM
Man In The Middle
OOB
Out Of Band
PCB
Printed Circuit Board
PTT
Push To Talk
RCU
Remote Control Unit
SoC
System on a Chip
SPI
Serial Peripheral Interface
USB
Universal Serial Bus
2
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
References
List the documents that are relevant for readers of the document.
DA14580-01 datasheet, Dialog Semiconductor
DA14582 datasheet, Dialog Semiconductor
UM-B-014 – DA14580 Development kit, User manual, Dialog Semiconductor
UM-B-003 – Software Development Guide, User manual, Dialog Semiconductor
UM-B-015 – Software Architecture, User manual, Dialog Semiconductor
HID over GATT Profile Specification, HOGP_SPEC_V10.pdf, Bluetooth SIG
Bluetooth SIG website: Specification Adopted Documents, Bluetooth SIG
UM-B-011 – Memory map and scatter file, User manual, Dialog Semiconductor
UM-B-004 – Peripheral Drivers, User manual, Dialog Semiconductor
UM-B-006 – Sleep mode configuration, User manual, Dialog Semiconductor
UM-B-009 – DA14580 Keyboard reference application, User manual, Dialog Semiconductor
SC14439 datasheet, Dialog Semiconductor
UM-B-012 – DA14580 Creation of a secondary boot loader, User manual, Dialog
Semiconductor
[15] UM-B-030 – DA14580 BLE data streaming application, User manual, Dialog Semiconductor
User manual
CFR0012-00 Rev 2
Revision 1.0
4 of 40
20-Mar-2015
© 2015 Dialog Semiconductor
UM-B-042
DA14580/582 Remote control with voice and motion
3
Introduction
This document describes the Voice and Motion Remote Control Unit reference application which is
based on the DA14580 Bluetooth® Smart controllers and DA14582 Bluetooth Smart SoC with
Codec. This user guide describes the various components and how to set them up. It is also a
developer guide that briefly describes the HW components used and the architecture of the software.
The developer is suggested to get familiar with the DA14580 software and hardware looking into the
development kit
[4],
software development guide
[5],
the software architecture document
[6]
and the
DA14580 Keyboard Reference application
[13].
4
■
■
■
■
■
■
■
■
■
■
■
Overview
Ultra low power operation
27 keys in a 6 x 5 matrix (customizable)
On board non-volatile memory for storing the firmware and the pairing information
Simultaneous key-press
Programmable key de-bouncing
Key de-ghosting
16-bit, 16 kHz Audio IMA ADPCM encoded
Audio over HID data transfer
Audio buffering capabilities exceeding 500 ms
Pointing device functionality using a gyro/accelerometer sensor
Host demo application with audio capabilities for Windows and Android platform
The Voice and Motion RCU reference design supports the following features:
The reference application is based on the HID over GATT Profile
[7].
It is an adaptation of the USB
HID specification for operation over a Bluetooth low energy wireless link. The HID over GATT profile
requires the Generic Attribute Profile (GATT), the Battery Service and the Device Information
Service. The remote application implements the HID Device role. The GATT role is Server and the
GAP role is Peripheral.
The DA14580 reference application exposes the following services:
●
●
●
●
●
Device Information
HID
Battery
GAP
GATT
For more information, see
[8]
HID Service Specification Version 1.0, Device Information Specification
Version 1.1, Battery Service Specification Version 1.0 and Scan Parameters Service Specification
Version 1.0. Bluetooth Core Specification Version 4.0 contains detailed information about GATT and
GAP.
User manual
CFR0012-00 Rev 2
Revision 1.0
5 of 40
20-Mar-2015
© 2015 Dialog Semiconductor
评论