NXP Semiconductors i.MX 8M User Manual
NXP Semiconductors i.MX 8M User Manual

NXP Semiconductors i.MX 8M User Manual

For amazon avs
Hide thumbs Also See for i.MX 8M:

Advertisement

Quick Links

NXP Semiconductors
User's Guide
User's Guide for NXP i.MX 8M Development
Kit for Amazon AVS
1. Introduction
The NXP i.MX 8M Development Kit for Amazon
Alexa Voice Service (AVS) enables its wide customer
base to easily integrate Alexa into their next generation
design based on i.MX processors. The development kit
consists of a 2-Mic array and the Pico i.MX 8M
development kit, both optimized to deliver a low cost
but flexible design to enable fast development to
production.
To enable customers to deliver a high-quality audio
experience we have partnered with DSP Concepts for
audio algorithms including echo cancellation, beam-
forming, and noise reduction to be delivered in
software. This results in a single chip solution, lowering
overall design cost, while ensuring customers to have
the support and expertise needed to deliver a high-
quality user experience in a short development time.
© 2018 NXP B.V.
Document Number: IMX8MAVSUG
Contents
1. Introduction ........................................................................ 1
2. What's in the kit ................................................................. 2
3. Amazon account setup ....................................................... 4
4. Hardware setup .................................................................. 9
5. Flash the board ................................................................. 12
6. Install Alexa SDK ............................................................ 15
7. Running sample AVS App ............................................... 26
8. Download MRM packages ............................................... 29
9. Testing MRM ................................................................... 34
10. Enable auto start of Alexa sample .................................. 44
11. Testing audio ................................................................. 46
11.1.
Testing audio with DSPC ..................................... 46
11.2.
setupAVS.sh) ..................................................................... 47
12. References ..................................................................... 48
12.1.
Support ................................................................. 48
12.2.
Key terms ............................................................. 48
12.3.
Speaker references ................................................ 48
12.4.
Ordering information and web links ..................... 48
Rev. 2
01/2019
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the i.MX 8M and is the answer not in the manual?

Questions and answers

Summary of Contents for NXP Semiconductors i.MX 8M

  • Page 1: Table Of Contents

    7. Running sample AVS App ..........26 design based on i.MX processors. The development kit 8. Download MRM packages ..........29 consists of a 2-Mic array and the Pico i.MX 8M 9. Testing MRM ..............34 10. Enable auto start of Alexa sample ........44 development kit, both optimized to deliver a low cost 11.
  • Page 2: What's In The Kit

    2. What’s in the kit Figure 1. NXP i.MX 8M development kit for Amazon AVS components NOTE Antistatic precautions are recommended for assembling the kit. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 3 Go to speaker references section for recommendations. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 4: Amazon Account Setup

    After entering in the Security Profile and Security Profile description sections, make sure to select Other devices and platforms, as shown in Figure 4. Enter in the Client ID section and select Generate ID. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 5 On the Products page, click Manage and you can view your product details, as shown in Figure Figure 5. Product page When done, the product profile is as shown in Figure 6 Figure User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 6 Amazon account setup Figure 6. Product Details – Information I Figure 7. Product Details – Information II User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 7 Amazon account setup Figure 8. Product Details – Security Profile I User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 8 Hardware setup Figure 9. Product Details – Security Profile II User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 9: Hardware Setup

    Figure 11. J2 on Pico-Pi baseboard 3. Verify the pin headers and jumper settings on the back of the audio hat, as shown in Figure 12 Figure User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 10 6. Plug the audio hat into the pin extenders on the Pico-Pi board, as shown in Figure 14 Figure 14. Audio hat plugged into the pico-pi board User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 0, 11/2018 NXP Semiconductors...
  • Page 11 Connect the speakers to the audio hat’s speaker connectors Figure 15. Hardware connections on the Voice Kit Figure 16. Dev kit plugged-in User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 0, 01/2019 NXP Semiconductors...
  • Page 12: Flash The Board

    Flash the board 5. Flash the board The NXP i.MX 8M Development Kit for Amazon AVS comes pre-loaded with a Yocto Linux image, requiring the user to run the scripts to build and run the sample AVS app. Please check for the latest version of software at https://www.nxp.com/products/processors-and-...
  • Page 13 10. Download and install Win32 Disk Imager from https://sourceforge.net/projects/win32diskimager/. 11. Use the Win32 Disk Imager to flash the extracted image to the board, as show in Figure User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 14 Figure Figure 21. J2 jumpers 13. Reconnect the USB-C cable to the Pico-Pi board to boot into the newly-installed image. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 15: Install Alexa Sdk

    Use values shown in Figure 22 in the Port Settings section. Figure 22. Port Settings An NXP welcome prompt pops up, as shown in Figure User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 16 The first time you boot the image, after login you will be asked to accept the NXP EULA. Please read and accept the NXP License Agreement. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 17 Install Alexa SDK Figure 25. NXP EULA Acceptance User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 18 Use quotation marks if your SSID or password has spaces, as shown in Figure Check whether you have obtained a valid IP address from your Wi-Fi network. to check your IP address. ifconfig User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 19 Start over the whole AVS setup ..1 Just set new AVS Credentials ..2 Calibrate speakers ....3 Type the number of your selection and press Enter ... User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 20 MRM library and apply the patch to the Alexa_SDK. A successful installation message pops up, as shown in 29. Figure 29. Successful MRM installation User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 21 ) and installed. Since this package is downloaded by the script, you need to read and github accept the DSPC license, so this can be installed. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 22 The license will be displayed on the console. Press the Space or Enter to scroll down. Enter Y to accept the DSPC license. Do you accept this DSPC license agreement?[Y/N]: Y Figure 31. Accepting DSPC license User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 23 Set your AVS credentials before starting and running the Alexa Sample App. Find your AVS credentials created in Section 3 Amazon account setup. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 24 When prompted for the Client ID, make sure to use the Client ID from Other devices and platforms. Figure 36. Check your client ID User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 25 Serial number can be any alphanumeric combination you choose, but needs to be unique for each device. Figure 37. Enter your AVS credentials User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 26 Auto start mode. See Section 10 Enable auto start of Alexa sample. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 27: Running Sample Avs App

    Amazon developer account (if not signed in yet), as shown in Figure Figure 42. Register your authentication code User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 28 Figure 44. AVS sample app running 6. A connecting message pops up after the authentication is admitted, as shown in 45. Figure 45. Connecting message User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 29 7. If you have enabled MRM, some related log activities occur if there are other Echo or MRM capable devices in the same network, as shown in 46. Figure 46. Logs for MRM activity User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 30: Download Mrm Packages

    Sign in to your NXP account or create a new one if you do not have one. You will be asked to accept a license agreement. Figure 47. NXP MRM License Agreement User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 31 Use the IP address you got with ifconfig (illustrated on previous steps) to open an ssh connection with the Pico8M board and log in as root, as shown in Figure 49 Figure User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 32 Download MRM packages Figure 49. Connect by ssh using the Pico 8M IP address Figure 50. Login on Pico 8M as root User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 34 SCP, as shown in Figure 51 Figure Figure 51. Drag and drop tarball packages Figure 52. Set destination path User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 35: Testing Mrm

    To make sure both packages were correctly copied, use the ls command to list the content of the mrm_packages directory. — ls ~/Alexa_SDK/mrm_packages Figure 54. List copied MRM packages User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019...
  • Page 36: Testing Mrm

    Alexa app to create a cluster of devices to exercise MRM to download the Amazon Alexa app for your download store. Figure 55. Home on Amazon Alexa app User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 37 57.Your version should be at least 2.2.216250.0, otherwise you may not be able to see 3 party devices (like the Pico 8M) listed for MRM. Figure 56. Go to About Alexa App section User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019...
  • Page 38 Testing MRM Figure 57. Check for App version User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 39 2. Create a new MRM group. a) Click the Settings and go to the Multi-Room-Music section , as shown in Figure 58 Figure Figure 58. Go to settings User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019...
  • Page 40 Testing MRM Figure 59. Go to Multi-Room Music section User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 41 As an example, we use the Everywhere group, as shown in Figure 60 Figure Figure 60. Click on Create New group User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019...
  • Page 42 Testing MRM Figure 61. Selecting Everywhere group User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 43 You can see all available devices listed, including the Pico 8M board (if the Alexa Sample App is running), as shown in Figure Figure 62. See your MRM capable devices listed User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 44 3 echo Dots and the Pico Pi 8M to form our Everywhere group, as shown in Figure Figure 63. Select devices to form MRM groups User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 45 Start an utterance, like Alexa. b) Play music on Everywhere. c) Now the devices on the group start playing same music. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 46: Enable Auto Start Of Alexa Sample

    Figure — cd ~/Alexa_SDK/Scripts/ — vi runAlexaAutoStart.sh User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 47 Testing audio Figure 66. Modify auto start script User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 48: Testing Audio

    It is mandatory to have BOTH speakers connected before you run the scripts, otherwise the calibration might fail or you might be not able to listen to audio on the speaker when connected . User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 49: Testing Audio With Dspc

    DSPC. asound.conf NOTE This step is optional. If you are sure to install DSPC during setupAVS.sh you can omit this step. User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 50 4. Test the playback. — aplay mytest.wav 5. Return to the original (only in case you did Step 1). asound.conf — cp -v /etc/asound.conf.BACKUP /etc/asound.conf User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 51: Testing Audio Without Dspc (Or Before Executing Setupavs.sh)

    4. Test the playback. — aplay mytest.wav 5. Return to the original (only in case you did Step 1). asound.conf — cp -v /etc/asound.conf.BACKUP /etc/asound.conf User's Guide for NXP i.MX 8M Development Kit for Amazon AVS, User's Guide, Rev. 2, 01/2019 NXP Semiconductors...
  • Page 52: References

    This kit will be supported by NXP via the i.MX Community - https://community.nxp.com/community/imx When posting a question, please make sure you specify that the question is related to the NXP i.MX 8M Development Kit for Amazon AVS by stating this in the title of the question 12.2.
  • Page 53 NXP reserves the right to make changes without further notice to any products herein. How to Reach Us: NXP makes no warranty, representation, or guarantee regarding the suitability of its products Home Page: for any particular purpose, nor does NXP assume any liability arising out of the application or nxp.com use of any product or circuit, and specifically disclaims any and all liability, including without Web Support:...

Table of Contents