background image

Intel

®

 IoT Gateway Development Kit

DK200 Series

Getting Started Guide

April 2015

Order No.: 330295-004

Summary of Contents for DK200 Series

Page 1: ...Intel IoT Gateway Development Kit DK200 Series Getting Started Guide April 2015 Order No 330295 004...

Page 2: ...or incompatibilities arising from future changes to them The information here is subject to change without notice Do not finalize a design with this information The products described in this document...

Page 3: ...3 At the login prompt use root for both the login ID and password The Target Device is now booted with the sample runtime image This sample runtime image is for evaluation purposes only After you hav...

Page 4: ...d Workbench steps Added Triage Tool appendix to aid in debugging Command and other modifications throughout October 2014 002 Corrected References Added steps to use Workbench to build project August 2...

Page 5: ...nux Packages and Wind River Linux Host Tools on the Host System 30 7 0 Build Intelligent Device Platform XT Runtime Software 38 8 0 Put Intelligent Device Platform XT Runtime Image onto USB Flash Driv...

Page 6: ...45 23 Ask Question 46 24 Title Question 46 25 Categorize Question 46 26 Tagged Question 47 27 Submit Question 47 28 Subscribe to Forum Tags 48 29 Untrusted Certificate 49 30 WebIF Application 50 31 Wo...

Page 7: ...7 Change Flow Control 78 58 Change to SCO Function Keys 79 59 Save Settings 80 60 Update Session with Correct tty Port 81 Figures Intel IoT Gateway Development Kit DK200 Series Intel IoT Gateway Devel...

Page 8: ...14 3 Recommended Development Hosts 15 4 Login IDs and Passwords 15 5 Target Device Errata 82 Intel IoT Gateway Development Kit DK200 Series Tables Intel IoT Gateway Development Kit DK200 Series Getti...

Page 9: ...N WI Fi Access Point Bluetooth MQTT ZigBee ZigBee is enabled by third party hardware Runtime environments Java OSGi Lua I O 2x Ethernet 10 100 USB 2 0 host device RS 232 Audio line in out mini PCIe fo...

Page 10: ...Serial USB VPN Wi Fi Access Point MQTT CAN Audio in out ZigBee enabled by third party hardware McAfee Embedded Control Wind River Development Environment Wind River Linux 5 0 1 Intel Processor Based S...

Page 11: ...commands to your Linux terminal use Intel IoT Gateway Development Kit DK200 Series Getting Started Guide Commands at https downloadcenter intel com Detail_Desc aspx agr Y DwnldID 24331 lang eng wapkw...

Page 12: ...ustrations A white background indicates steps you have completed A blue background indicates the step you are about to work on A gray background indicates future steps Figure 3 Sample You Are Here Put...

Page 13: ...0 Security Guide https www ssl intel com content www us en embedded design tools evaluation platforms gateway solutions wind river idp security guide html wapkw wind river Platform Security Overview S...

Page 14: ...free disk space 4 GB or more RAM One USB 2 0 port Connect the Target Device to a Host System on page 18 The minimum hardware requirements are Intel Pentium 2 processor 80 GB free disk space 768 MB RAM...

Page 15: ...orted Linux development hosts and for additional Linux host requirements see the Wind River Intelligent Device Platform XT 2 0 Release Notes at http www intel com content www us en embedded design too...

Page 16: ...opment Toolkit for Data Gateways In addition to Intel Premier Support registered users can use the Intel IoT Gateway Knowledge Forum to ask how to questions Follow the instructions in Intel IoT Gatewa...

Page 17: ...ure 2 on page 11 in making your connections Remember Target Device refers to the gateway device that is included in the Development Kit Host System refers to the Ubuntu 14 04 system that you will use...

Page 18: ...Serial line type dev ttyUSB0 2 From your Host System HOME command prompt display the available TTY ports Use the following command ls dev tty Write down the resulting TTY port information You will use...

Page 19: ...the Target Device 1 From the PuTTY Virtual Terminal issue the following command to determine the wireless SSID of the Target Device grep ssid etc config wireless The output displays the SSID option ss...

Page 20: ...lowing command from the PuTTY Virtual Terminal command line to determine the IP address used for the network Access Point ifconfig br lan The output includes the IP address denoted by inet addr as sho...

Page 21: ...lowing command on the Target Device update rc d sshd defaults 5 To remotely login to the Target Device from the Host System at the Host System execute the following command substituting TARGET_DEVICE_...

Page 22: ...ion times in the table below are based on Ubuntu Desktop 14 04 running on an Intel Core i5 second generation processor and with an internet connection running at approximately 3 MB per second You will...

Page 23: ...ion Prepare Host System for Wind River Software Put Runtime Software on Flash Drive Register Target Device Install Linux and Wind River Packages on Host System Build Runtime on Host System Update SPI...

Page 24: ...uild requires approximately 10 GB of free space in this directory Use these commands to create the directories cd HOME mkdir WindRiver mkdir Installer mkdir Project mkdir Project build cache You must...

Page 25: ...t System Register Target Device Before you begin the installation process you must register your Development Kit The registration process submits a license key request to Wind River to permit you to d...

Page 26: ...nformation Click Submit after filling in your information 5 Follow the correct path If your email address was not recognized you will be prompted to create a user account See Figure 6 on page 26 Type...

Page 27: ...2 Version 2 0 2 0 2 08 Jul 2014 08 Jul 2014 9 Click the version link for your product in the table of products to go to the product page The following screen displays Figure 9 Intel Registration Cente...

Page 28: ...lly Completed You can use Intel Premier Support for technical support of this Development Kit See the sample message below Figure 10 Email Message Intel Premier Support Registration Successfully Compl...

Page 29: ...this license key when you install the Wind River Components on the Host System in Installing the Wind River Host Tools on page 30 Register Your Development Kit Intel IoT Gateway Development Kit DK200...

Page 30: ...0 1 Wind River Intelligent Device Platform XT 2 0 Wind River Workbench 3 3 5 If possible begin these steps at the end of the day and in a location that can be unattended so you can allow the installa...

Page 31: ...rform the updates using the following command sudo apt get install libstdc 6 i386 libgtk2 0 0 i386 libxtst6 i386 b After the update command completes repeat the setup_linux command 4 In the Installer...

Page 32: ...defaults selected as shown Figure 14 Online Update Settings Part 2 Intel IoT Gateway Development Kit DK200 Series Install Linux Packages and Wind River Linux Host Tools on the Host System Intel IoT G...

Page 33: ...from Wind River Figure 15 Activation Type 9 On the page Host Information choose the Ethernet adapter that will be used for downloading the Host System tools from the internet This is used to link your...

Page 34: ...minute Note The MAC address of eth0 for your Host System is the only address allowed to use this license 12 On the page Choose Installation Filters click Deselect all and then select only Intel Click...

Page 35: ...Your screen will look similar to the following Figure 18 Select Products Install Linux Packages and Wind River Linux Host Tools on the Host System Intel IoT Gateway Development Kit DK200 Series Intel...

Page 36: ...k Next A thank you message displays with a link to a readme file Recommended Leave the default check next to the readme file 17 Click Finish to exit the Installer window The readme file opens in a bro...

Page 37: ...below if you receive a response similar to the following Following packages need to be installed package 1 package 2 4 You should already be in the HOME WindRiver wrlinux 5 scripts directory If not g...

Page 38: ...ironment to build your Target Device runtime file system and operating system then see Building an Intelligent Device Platform Project Using Wind River Workbench on page 51 The steps in this section w...

Page 39: ...feature opc feature recovery feature opc_demo feature ipsec_vpn feature l2tp feature openjdk bin feature online_updates feature bluetooth feature boot_delay_network feature pptp_vpn feature intel wil...

Page 40: ...hard drive 1 From the Host System HOME directory use the following command to display the mounted devices df Your output will look similar to the following Look for the USB file system name in the loc...

Page 41: ...e the appropriate command for your circumstances replacing the in sd with the information you wrote down in the previous step sudo deploy sh u f export intel quark glibc idp standard dist srm tar bz2...

Page 42: ...lows ls media username wr_usb_boot opt 7 Your output should include rootfs dist tar bz2 If you do not see this file Verify your configure command was correct in Build Intelligent Device Platform XT Ru...

Page 43: ...ponents on the Target Device s hard drive What you need to do 1 To install the Intelligent Device Platform XT from the USB flash drive to the Target Device SD drive use the following command tgt dev m...

Page 44: ...Both questions and answers can be edited by any user on the Knowledge Forums Refrain from posting proprietary confidential or controlled information on the Knowledge Forums Intel Corporation and Wind...

Page 45: ...e escalated Note If your issue is urgent or related to BSP development on a specific project create an issue ticket through Intel Premier Support instead of relying on this forum for answers The scree...

Page 46: ...your test development environment including Detailed information about your question Software such as Intelligent Device Platform XT release Wind River Linux version BIOS FW etc Hardware such as board...

Page 47: ...agged Question 5 Click Ask Your Question to submit the question See the red box in the following figure Figure 27 Submit Question Intel IoT Gateway Knowledge Forum Intel IoT Gateway Development Kit DK...

Page 48: ...ing See the red box in the following figure Figure 28 Subscribe to Forum Tags In Intel IoT Gateway Knowledge Forum Intel IoTGateway KnowledgeForum 2 Click Change frequency of emails to set up how ofte...

Page 49: ...nection from your Host System to your Target Device type the following URL into the internet browser on your Host System https TARGET_DEVICE_IP_ADDRESS where TARGET_DEVICE_IP_ADDRESS is the IP address...

Page 50: ...m XT 2 0 Programmer s Guide at https www ssl intel com content www us en embedded design tools evaluation platforms gateway solutions wind river idp xt2 programmers guide html wapkw wind river See als...

Page 51: ...tories that you created You followed the instructions in Installing the Wind River Host Tools on page 30 You know how to deploy a runtime image on your Target Device See Install Intelligent Device Pla...

Page 52: ...operating system Choose Wind River Linux Platform Base 5 0 1 as shown and then click Next Figure 33 Selecting Target Operating System Intel IoT Gateway Development Kit DK200 Series Building an Intell...

Page 53: ...y Project Name Important You must enable wr idp as an addon before selecting the RootFS type Make sure you correctly complete steps 7 8 Building an Intelligent Device Platform Project Using Wind River...

Page 54: ...n below Figure 36 Enable Addons Intel IoT Gateway Development Kit DK200 Series Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit DK200 Series...

Page 55: ...If you do not click Reload you cannot use glibc idp as the RoofFS type Figure 37 Reload Configurations Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Dev...

Page 56: ...Intel Atom processor select intel atom baytrail If your Target Device has an Intel Quark processor select intel quark 11 For Kernel select standard Intel IoT Gateway Development Kit DK200 Series Buil...

Page 57: ...elow Figure 39 Add Layers Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit DK200 Series Intel IoT Gateway Development Kit DK200 Series April...

Page 58: ...oad Figure 40 Add wr intel support Intel IoT Gateway Development Kit DK200 Series Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit DK200 Ser...

Page 59: ...lick the Add button in the Option group as shown in figure below Figure 42 Adding Options Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit D...

Page 60: ...ick OK Figure 43 enable jobs 50 Intel IoT Gateway Development Kit DK200 Series Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit DK200 Series...

Page 61: ...f CPUs in your system See the following figure Then click OK Figure 44 enable parallel pkgbuilds number of CPUs Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gat...

Page 62: ...e 45 Finalize Configuration Intel IoT Gateway Development Kit DK200 Series Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit DK200 Series Get...

Page 63: ...xecution will take a few minutes Figure 46 Configuration Script Progress Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit DK200 Series Intel...

Page 64: ...pleted You are ready to build your project Follow the steps in the next section Intel IoT Gateway Development Kit DK200 Series Building an Intelligent Device Platform Project Using Wind River Workbenc...

Page 65: ...system that was running an Intel Core i7 4900 processor at 2 8 GHz with Intel Hyper Threading technology and 8 GB RAM 1 From the main menu select Project Build Project Figure 48 Build Project Buildin...

Page 66: ...xamine the config file generated by Workbench The config file looks similar to the following Figure 50 Config File Intel IoT Gateway Development Kit DK200 Series Building an Intelligent Device Platfor...

Page 67: ...Project Completion 3 Deploy your project to your Target Device Building an Intelligent Device Platform Project Using Wind River Workbench Intel IoT Gateway Development Kit DK200 Series Intel IoT Gate...

Page 68: ...Ensuring CAN Network is Properly Terminated If you are using a high speed CAN network ensure that your CAN network is terminated correctly Use the following information and diagrams The Target Device...

Page 69: ...e image that you built for the Target Device See Build Intelligent Device Platform XT Runtime Software on page 38 For information about adding userspace applications see the Wind River Linux 5 0 1 Use...

Page 70: ...ate CAN traffic and send at 100 ms intervals Use the following commands ifconfig slcan0 up cangen slcan0 g 100 You will see the traffic detected by the sniffer Intel IoT Gateway Development Kit DK200...

Page 71: ...n hciconfig BT DEVICE NAME The expected response is UP_RUNNING 3 Use the following commands to enable another Bluetooth device and ensure it is visible to others hcitool scan flush hciconfig BT DEVICE...

Page 72: ...rations USB soundcard interface connected to the CPU External speaker microphone jacks Maxim Integrated 9867 I2S codec that interfaces with a Telit HE910 GSM modem 3 Select one of the following suppor...

Page 73: ...ch_mode 4 Set an audio path between the external speaker microphone and the GSM modem for hands free cellular voice calls This option is suitable for 2 way voice call between vehicle occupant and call...

Page 74: ...ccel_ axis _raw XXInstantaneous raw acceleration value for axes x y and z sys bus iio devices iio device0 in_accel_scale_available XX Scaling value for each of the axes x y and z sys bus iio devices i...

Page 75: ...ge On your Host System the script is in the project directory The example below shows the usage In the example i install dir is the path to Wind River Intelligent Device Platform installation director...

Page 76: ...is also available from http ubuntu com sudo apt get install putty 2 Type your password at the prompt sudo password for username 3 Type y at the prompt Do you want to continue Y n Starting and Configu...

Page 77: ...option will be available after you change the Connection type to Serial See number 2 in the following figure Figure 56 Change to Serial with Speed of 115200 Installing and Configuring PuTTY Intel IoT...

Page 78: ...the Flow control to None See number 1 and 2 in the following figure Figure 57 Change Flow Control Intel IoT Gateway Development Kit DK200 Series Installing and Configuring PuTTY Intel IoT Gateway Dev...

Page 79: ...ction keys and keypad to SCO See number 1 and 2 in the following figure Figure 58 Change to SCO Function Keys Installing and Configuring PuTTY Intel IoT Gateway Development Kit DK200 Series Intel IoT...

Page 80: ...ll be displayed in the Saved Sessions list See the numbered items in the following figure Figure 59 Save Settings 2 Click Cancel to return to your Host Development System command prompt Intel IoT Gate...

Page 81: ...e to dev ttyUSB0 and then click Save See numbers 3 and 4 in the figure 4 Click Open to open a PuTTY Virtual Terminal session See number 5 in the figure Figure 60 Update Session with Correct tty Port A...

Page 82: ...Point or Ethernet WAN interface may exhibit functional instability when loaded with concurrent traffic from multiple Wi Fi and or Ethernet clients Fixed in Wind River Intelligent Device Platform XT 2...

Reviews: