User manual

MediaTek LinkIt™ Smart 7688 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 3 o
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
Table of contents
1. Introduction ..................................................................................................................................................... 7
1.1. What is MediaTek LinkIt? ................................................................................................................................ 7
1.2. What is MediaTek LinkIt Smart 7688 Development Platform ...................................................... 7
1.3. Hardware Development Kits ......................................................................................................................... 7
1.4. Programming Environment ........................................................................................................................... 7
1.5. Software Development Kit ............................................................................................................................ 7
1.6. Get Started............................................................................................................................................................. 8
1.7. More Information ................................................................................................................................................ 8
1.8. Join the MediaTek Labs Ecosystem ........................................................................................................... 9
2. Hardware Development Kit ..................................................................................................................... 10
2.1. MediaTek MT7688AN Chip Specification Summary ......................................................................... 10
2.2. LinkIt Smart 7688 .............................................................................................................................................. 11
2.3. LinkIt Smart 7688 Duo .................................................................................................................................... 19
2.4. FCC, CE and NCC Certifications ................................................................................................................. 26
3. Programming Environment Guide ......................................................................................................... 27
3.1. Platform operating system.......................................................................................................................... 27
3.2. Programming Environment Overview .................................................................................................... 27
3.3. Programming Model for Different Boards ........................................................................................... 28
3.4. Choosing the right programming model .............................................................................................. 29
3.5. Network Environment ................................................................................................................................... 29
3.6. Programming in C/C++ .................................................................................................................................. 30
3.7. Programming in Python ..................................................................................................................................31
3.8. Programming in Node.js ................................................................................................................................ 32
4. Software Development Kit and related tools .................................................................................. 34
4.1. Software Development Kit ......................................................................................................................... 34
4.2. Supported Host Environments ................................................................................................................. 34
4.3. Default OpenWrt Packages ........................................................................................................................ 34
4.4. OPKG Packager Manager ..............................................................................................................................35
4.5. System Configuration .................................................................................................................................... 36
4.6. System configuration tasks ........................................................................................................................ 45
4.7. File Editor and Transfer .................................................................................................................................53
5. Peripheral Programming on LinkIt Smart 7688 .............................................................................. 59
5.1. How to Access LinkIt Smart 7688 Peripheral using MRAA .......................................................... 59
5.2. How to use UPM to access sensors and peripherals ...................................................................... 66
6. Peripheral Programming on LinkIt Smart 7688 Duo ..................................................................... 68
6.1. Installing Arduino IDE .................................................................................................................................... 68
6.2. Installing Board Support Package ........................................................................................................... 68
6.3. Installing LinkIt Smart 7688 Duo COM Port Driver............................................................................ 72
6.4. Programming model for LinkIt Smart 7688 Duo ............................................................................... 73
6.5. Programming with Primitive UART Connection ................................................................................. 76
6.6. Programming with Firmata Protocol ...................................................................................................... 78
6.7. Programming with Yun Bridge Library ................................................................................................... 90
7. Troubleshooting Guide ............................................................................................................................. 92
7.1. My firmware upgrade won’t start or failed. Why? ............................................................................ 92
7.2. I can’t connect to URL mylinkit.local using a browser, why is that? ........................................ 92
7.3. My virtual machine cannot detect the board when in Station mode, why? ........................ 92
7.4. I’m not able to SSH access with an error showing “Host Identification Has Changed”,
what can I do? .................................................................................................................................................... 93