Skip to content

Latest commit

 

History

History
116 lines (59 loc) · 3.84 KB

lab2.md

File metadata and controls

116 lines (59 loc) · 3.84 KB

alt text

Lab 2 : Enable Alexa on the NxP MCU kit

In this lab, you will learn how to configure the NxP microcontroller kit to connect to Alexa Voice service and AWS IoT Core. You will start to use Alexa voice commands on the kit.

You will continue to build step 1a of this architecture :

alt text

A. Configure the NxP kit with Alexa

alt text

You need to establish serial connection to the device :

  1. Please connect both the USB ports to the adapter provided, and connect the adapter to the laptop. alt text

  2. Connect to the hardware kit using the below instructions -

  3. Once you are connected to device, using the respective terminal software , please ENTER and run the below commands , one by one, in the SHELL :

    Please enter the commands similar to the screenshot below -

    alt text

    Copy the commands from here :

    set_avs_client_id "copy Client id from config.json"
    
    set_avs_product_id "copy Alexa Product ID from config.json"
    
    set_aws_endpoint_url "copy IoT core URL from lab1 "
    
    set_aws_account_id "copy AWS Account ID provided to you"
    
    set_cbl_mode 1
    
    reset
    

    This will restart your device , please connect back to the device using serial command and run the below.

      enable_usb_log
      logs
    

    If the session exits for some reason anywhere, please connect to the serial terminal again.

    You will get the User code and the URL from the console :

    alt text

  4. Copy the user code from the logs and navigate to amazon.code on your browser to authenticate -

    • Login with the same email , if prompted, that you used for the Alexa developers console prior in Lab 1
    • Paste the user code and submit. Registration successful should appear on the web page

    alt text

  5. Check back on the serial terminal -

    • Device will periodically check for a token, may take up to 60 seconds
    • After that it will register and be ready to use.
    • The log will show if any errors.

    alt text

    If connection and auth is successful , the board will only have the power green led on.

    alt text

    If the board is muted there will be a red led on, along with the green power led.

    alt text

Try Alexa, time in las vegas

*And get to know about the fantastic weather in vegas.*

B. Navigate to AWS IoT console

Please login to the AWS IoT Console and select Manage (on the left pane) -> Things.

  1. Check if you can see the Thing created with the serial # of your NxP kit (on the right pane).
  2. Click on Monitor (left pane) and check on the graphs (in the right pane) for successfull Connections and Messages.

To learn more about AVS Integration for AWS IoT, please click here.

Try Alexa, time in las vegas once again on the device

And check in the IoT Test console , you will see messages appearing in the monitor console.

Congratulations! You now have access to the Alexa Voice Service APIs from your hardware and able to subscribe the messages from the hardware using AWS IoT console.

See you in lab3.