Roobo DDK2C7M1 User Manual

Smart audio dev kit 2

Advertisement

Quick Links

ROOBO Smart Audio Dev Kit 2 DDK2C7M1
User Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DDK2C7M1 and is the answer not in the manual?

Questions and answers

Summary of Contents for Roobo DDK2C7M1

  • Page 1 ROOBO Smart Audio Dev Kit 2 DDK2C7M1 User Guide...
  • Page 2 Beijing ROOBO Technology Co., Ltd. TRADEMARKS ROOBO is a trademark of Beijing ROOBO Technology Co., Ltd. All other trademarks and registered trademarks are property of their respective companies. DISCLAIMER Beijing ROOBO Technology Co., Ltd.
  • Page 3: Table Of Contents

    Content 1.Introduction ........................ 3 1.1 In the Box ......................3 1.2 Dev Kit2 Specification ..................4 1.3 Circular 7-Mic Array ..................5 1.3.1 Mic Array Specs ..................5 1.3.2 Mic Array Board Sample and layout ............. 6 1.4 Core Board Sample and Layout ................ 7 1.5 Audio Data Path ....................
  • Page 4: Dev Kit2 Specification

    •1x 6+1 digital microphone array board •1x mainboards held by acrylic stand •1x USB Power cable 1.2 Dev Kit2 Specification Items Specs MTK MT8516AAAA/B Quad core A35 1.3GHz CPU Linux 4.4 WIFI 802.11b/g/n Bluetooth 4.0+HS DDR3L+NAND Flash, 1Gb(64M x 16) + 1Gb 7 circular array (6+1) MIC Array Audio Line out...
  • Page 5: Circular 7-Mic Array

    UART 1 x UART I²C 1 x I²C GPIO 3 x GPIOs TF Card Support, up to 32GB(FAT32) 5 x Keys(Reset, Mute, Volume Up, Volume Down, play/pause) Power Indicator Support Power Indicator Mic Array Indicator 12xRGB LEDs Work Temperature -4~131℉(-20~55℃) Certification FCC ID 1.3 Circular 7-Mic Array...
  • Page 6: Mic Array Board Sample And Layout

    7 circular array (6+1) Array Type 7 Analog microphone Mic Quantity Mics are placed horizontally and evenly in a circle and microphone ports face upward Dimension 42.5 Array Distance Wakeup Distance <10m Listening Range <5m (Room environment) Signal to Noise Ratio 65dBA Sampling Rate Sensitivity...
  • Page 7: Core Board Sample And Layout

    1.4 Core Board Sample and Layout Items Description Antenna Terminal 2.4GHz Wi-Fi antenna terminal Line out 3.5mm Audio interface USB Debug Interface USB 2.0 Device Audio input Pin pitch 0.5mm, 24 pins, Connected to mic array board...
  • Page 8: Audio Data Path

    The static noise generally occurs when an adapter is used to power the dev kit, and the quality of the speaker is low. If you want recommendations for speakers, please contact us at rooboddk@roobo.com. 1.5 Audio Data Path Analog Mic1...
  • Page 9: Development Environment

    2. Development Environment 2.1 Install SDK Execute the installation script for the installation. $ sh oecore-x86_64-aarch64-toolchain-nodistro.0.sh You can enter the installation path or select the default installation path /usr/local/oecore-x86_64 Extracting SDK..... Setting it up ..done Indicates that the compile chain was successfully installed. 2.2 Compile environment configuration Step1- Install the USB driver To decompress the USB driver package, double-click “DriverInstall.exe”...
  • Page 10 Input the actual Device ID information into the " android_winusb.inf " file. [MediaTek.NTx86] ..%SingleAdbInterface% = USB_Install, <The ID actually identified> [MediaTek.NTamd64] ..%SingleAdbInterface% = USB_Install, < The ID actually identified > Step2-install Python2.7.5 Decompress python2.7.5 installer and install it, add the installation path to the environment variable after the installation is finished.
  • Page 11 Decompress the ADB toolkit, add the path to the system environment variable: , Add the dynamic link library for ADB running to the system environment The dynamic link library is stored under the adb directory: AdbWinApi.dll, AdbWinUsbApi.dll Place it in the following two directories: C:\Windows\System32 C:\Windows\SysWOW64 Notes:...
  • Page 12 upgrade program and release the Volume+ button. After the upgrade is completed, a prompt message will be displayed telling you that the upgrade is successful. After the upgrade is successful, you will see success prompt and the platform system will be automatically restarted.
  • Page 13: Filesystem Operations

    3. Filesystem operations 1, Set filesystem access authority The device rootfs access is read-only, so if you want to pass app or lib into the file system, you need to modify rootfs access after logging in to the device: # mount -o remount, rw / Change the”/”...
  • Page 14: Key

    4.2 Key There’re five keys in DDK, these all can be configured as a normal key. The key driver reports key events to the input subsystem, you can get key events through the standard input event framework, and can also use libinputevent.so to get the events reported by the key drive The input event reported by libinputevent.so needs to be used to realize the key-press event and the combination of key-press events。...
  • Page 15: I2C Program

    4.3 I2C program DDK2 leads to the i2c0 bus share reserved for developers. You can read and write from the device node /dev/i2c0. 1. Open i2c device. 2. Set slave station address (7-bit address) 3. read/write The sample code is as follows: #include <stdio.h>...
  • Page 16: Sdk Multi-Media Function

    2, Refer to the MTK SampleCode 3, Refer to ROOBO’s package on ALSA, use libasndaudio. so to record \ play \ audio continuous reading About API,you can refer to the head file of libasndaudio.so: sysroots/aarch64-poky-linux/usr/include/asndaudio.h The sample code is as follows:...
  • Page 17 include the head file: sysroots/aarch64-poky-linux/usr/include/AssistantDef.h sysroots/aarch64-poky-linux/usr/include/AssistantCmd.h sysroots/aarch64-poky-linux/usr/include/CmdHubApi.h The list of instructions is as follows: typedef enum //Assistant Center send to appmainprog ASSISTANT_CMD_PLAY = 0, ASSISTANT_CMD_PLAY_VOICE_PROMPT, ASSISTANT_CMD_PLAY_VOICE_LOCAL, ASSISTANT_CMD_PLAY_TTS, ASSISTANT_CMD_PLAY_PREV_AUDIO, ASSISTANT_CMD_PLAY_NEXT_AUDIO, ASSISTANT_CMD_SET_VOLUME, ASSISTANT_CMD_SET_SYSTEM_STATUS, ASSISTANT_CMD_SET_BT_NAME, ASSISTANT_CMD_BT_MODE_SWITCH, ASSISTANT_CMD_BT_STOP_INQUIRY, ASSISTANT_CMD_BT_CONNECT, ASSISTANT_CMD_BT_UNPAIR, ASSISTANT_CMD_BT_PAIRED_LIST_UPDATE, ASSISTANT_CMD_BT_INQUIRY, ASSISTANT_CMD_START_BT_PAIR, ASSISTANT_CMD_DEL_BT_PAIRED, ASSISTANT_CMD_OPEN_BLE, ASSISTANT_CMD_CLOSE_BLE, ASSISTANT_CMD_BT_POWER_ON,...
  • Page 18 ASSISTANT_CMD_OTA_UPGRADE, ASSISTANT_CMD_ADJUST_PROGRESS, ASSISTANT_CMD_STOP, ASSISTANT_CMD_FACTORY_RESET_RESULT, ASSISTANT_CMD_HFP_FREE_MIC_RESULT, //appmainprog send to Assistant Center ASSISTANT_CMD_PLAY_DONE, ASSISTANT_CMD_PLAY_TTS_DONE, ASSISTANT_CMD_SYSTEM_STATUS_CHANGE, ASSISTANT_CMD_PLAYER_STATUS_CHANGE, ASSISTANT_CMD_NETWORK_STATUS_CHANGE, ASSISTANT_CMD_BLUETOOTH_STATUS_CHANGE, ASSISTANT_CMD_BUTTON, ASSISTANT_CMD_OTA_PROGRESS, ASSISTANT_CMD_HFP_STATUS_CHANGE, ASSISTANT_CMD_BT_SRC_AVRCP_CMD, ASSISTANT_CMD_BT_BLE_MESH_STATUS_CHANGE, ASSISTANT_CMD_KEY, ASSISTANT_CMD_MAX } ASSISTANT_CMD_E; Each instruction corresponds to a different json command. You can learn the details and implications of each command through <Appmainprog_Communication_Protocol.pdf> . Programming reference routines or MTK SampleCode #include "AssistantDef.h"...
  • Page 19 printf("status: %s", play_status->player.status); printf("source: %s", play_status->player.source); printf("audioId: %s", play_status->player.audioId); printf("audioUid: %s", play_status->player.audioUid); printf("audioSource:%s", play_status->player.audioSource); printf("audioName: %s", play_status->player.audioName); printf("audioAnchor:%s", play_status->player.audioAnchor); printf("audioAlbum: %s", play_status->player.audioAlbum); printf("progress: %d", play_status->player.progress); printf("audioExt: %s", play_status->player.audioExt); int main(int argc, char const *argv[]) handle_t assistant_handler = CmdHubInit(player_callback); ASSISTANT_CMD_PLAY_VOICE_PROMPT_T voice_prompt; memset(&voice_prompt, 0, sizeof(voice_prompt));...
  • Page 20 -- Consult the dealer or an experienced radio/TV technician for help. To maintain compliance with FCC’s RF Exposure guidelines, This equipment should be installed and operated with minimum distance between 20cm the radiator your body: Use only the supplied antenna. FCC ID: 2ASEF-DDK2C7M1...

Table of Contents