ROOBO Smart Audio Dev Kit 2 DDK2C7M1 User Guide
COPYRIGHT © 2019 Beijing ROOBO Technology Co., Ltd. All rights reserved. No part of this document may be modified, transmitted, transcribed, or translated into any language in any form or by any means without the written permission of 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.
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.
•1x 6+1 digital microphone array board •1x mainboards held by acrylic stand •1x USB Power cable 1.2 Dev Kit2 Specification Items Specs CPU MTK MT8516AAAA/B Quad core A35 1.3GHz CPU OS Linux 4.4 WIFI 802.11b/g/n Bluetooth 4.0+HS RAM DDR3L+NAND Flash, 1Gb(64M x 16) + 1Gb MIC Array 7 circular array (6+1) Audio Line out 1 x 3.
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, Key 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 1.3.
Array Type 7 circular array (6+1) Mic Quantity 7 Analog microphone Dimension Mics are placed horizontally and evenly in a circle and microphone ports face upward Array Distance 42.5mm Wakeup Distance <10m Listening Range <5m (Room environment) Signal to Noise Ratio 65dBA Sampling Rate 16K Sensitivity -38±1 dBV @1kHz ref 1V/Pa 1.3.
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.
TF card socket Insert TF card AP MT8516AAAA/B DDR3L M15T1G1664A-DEBG2CS,ESMT NAND Flash F59L1G81MB,ESMT Reset key Press and hold the button for 2 Seconds for reset Mute key Key for mute Volume up key Key for system volume up Volume down key Key for system volume down Power supply Micro USB 5V 2A supply(at least 5V 1A) User interface Io,uart,i2c,power interface Notes: We strongly recommend using high quality speakers for a better experience.
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.
Input the actual Device ID information into the " android_winusb.inf " file. [MediaTek.NTx86] ... ... %SingleAdbInterface% = USB_Install, [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.
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: You’ll need to have the adb tool installed on your computer and make sure the adb tool is usable.
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.
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”/” directory to read-write Push files to devices or pull files from devices PC push files to devices: #adb push filename dev_path PC pull files from device: #adb pull filename local_path 4. Program guide 4.
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 driver. The input event reported by libinputevent.so needs to be used to realize the key-press event and the combination of key-press events。 About API,you can refer to the head file of libinputevent.
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 #include #include #include #include
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: #include #include #include int main(int argc, char const *argv[]) { asnd_audio_record_wav(“/tmp/record.wav”,”hw:0,1”, 3, 16000, 8, SND_PCM_FORMAT_S32_LE); asnd_audio_play_wav(“/tmp/record.
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.
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, ASSISTA
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.
-- Increase the separation between the equipment and receiver. -- Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. -- 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.