IOT Acsip AI7688H User manual

AI7688H User Manual
-1- Copyright@2016 AcSiP
An IOT Solution Company
V.1 160407

AI7688H User Manual
-2- Copyright@2016 AcSiP
Revision History
Revision Date Author Description
V.1 160407 Kevin New Create

AI7688H User Manual
-3- Copyright@2016 AcSiP
Contents:
1. Introduction…………………………………………….……..4
2. Start AI7688H development …………………..……...5
3. Firmware and Bootloader…………...…………….......9
4. File Storage…………………………………………….……..19
5. Wi-Fi LED State…………………………………….…….….22
6. Network…………………………………………….………....24
7. AWS IoT…………………………………………….….…….…40
8. Peripheral………………………………………….…….…...43
9. C/C++ Programming………………………….…………..51
10. Using USB Webcam………………………………………58
11. Audio Playback and Recording…………..…………59
12. Federal Communication Commission Interference
Statement………………………………………………….….61

AI7688H User Manual
-4- Copyright@2016 AcSiP
1. Introduction
AI7688H integrates a 1T1R 802.11n Wi-Fi radio, a 575/580 MHz MIPSR 24KEcTM CPU, 1-port fast
Ethemet PHY,USB2.0 host,PCIe,SD-XC,I2S/PCM and multiple slow IOs.
AI7688H provides two operation modes – IoT gateway mode and IoT device mode.In IoT gateway
Mode, the PCIe Express interface can connect to 802.11ac chipset for 11ac dual-band concurrent
Gateway. The high performance USB 2.0 allows AI7688H to add 3G/LTE modem support or add a
H.264 ISP for wireless IP camera. For the IoT device mode, AI7688Hsupports eMMC , SD-XC and
USB2.0. AI7688H can support the WiFi high quality audio via 192kbps/24bits I2S interface and
VoIP application through PCM. In IoT device mode, it further supports PWM,SPI slave,3rd UART
and more GPIOs. For IoT gateway, it can connect to touch panel and BLE,Zigbee/Z-Wave and
sub-1G RF for smart home control.

AI7688H User Manual
-5- Copyright@2016 AcSiP
2. Start AI7688H development
2.1 Get S/W
# Download an SSH client (Windows only)
PuTTY provides Secure Socket Shell (SSH) access to the development board
operating system.
# Install Bonjour Print Service (For Windows 7 only)
The AI7688H development board uses mylinkit.local as its local domain. In
Windows7, you’ll need to installBonjour print service because mDNS is not
support.
This helps your computer discover the LinkIt Smart AI7688H’s IP address with
the local domain name. For Windows 8 and later, Mac OS X and Linux, mDNS is
supported and you can use mylinkit.local.
2.2 Power up AI7688H board
After bootup and Wi-Fi initialization completes, which takes about 30 seconds, the Wi-Fi
LED goes off.
This means the system is ready to accept Wi-Fi connection – now we can connect to it. Following
Figure shows how the Wi-Fi LED status matches the system state.

AI7688H User Manual
-7- Copyright@2016 AcSiP
2.5 Get system Info and Upgrade F/W
2.6 Go to OpwnWrt for advanced configuration
Enter your Password

AI7688H User Manual
-8- Copyright@2016 AcSiP
2.7 Access system console
For OS X and Linux:
# Open Terminal application
# At the command prompt type
# ssh [email protected]
#Press return and enter the password you set previously in the Web UI
For Windows:

AI7688H User Manual
-9- Copyright@2016 AcSiP
3Firmware and Bootloader
3.1 Flash F/W from USB drive
# Download lates Firmware
# Unzip it and copy the unzipped lks7688.img file to the root directory of a FAT32
USB Drive
# Attach the USB drive to the HOST port of the board with an OTG cable.
# Hold the WiFi button
# Press the MPU reset button once while holding the WiFi button
# Keep holding WiFi button about 5 seconds. Release WiFi button until the WiFi orange
LED becomes OFF.
Do not press the Wi-Fi button for longer than 20s or it will upgrade the bootloader.
Wait while the WiFi LED blinks fast. This takes about 3 minutes.
The device will automatically reboot after firmware update completed.

AI7688H User Manual
-10- Copyright@2016 AcSiP
3.2 Update bootloader
USB drive must be in FAT file system or the file cannot be recognized by the AI7688H
development platform.
# Save the bootloader file (lks7688.ldr) in the root directory of a USB drive and name it
lks7688.ldr.
# Plug the USB drive to AI7688H.
# Press the WiFi and MPU (Reset) button at the same time, then release the MPU Reset
button but hold the WiFi button for at least 20 seconds.
# After 20 seconds Wi-Fi LED will turn on. Release WiFi button.
The board will start to read the bootloader (WiFi LED blinks fast) and perform the
bootloader upgrade process (Wi-Fi LED blinks slowly). It takes about 2 seconds to finish
the bootloader upgrade process
3.3 Build F/W from Source
The following operations are performed under a Ubuntu LTS 14.04.3 environment. For a
Windows or a Mac OS X host computer, you can install a VM for having the same
environment:
Install prerequisite packages for building the firmware:
$ sudo apt-get install git g++ libncurses5-dev subversion libssl-dev gawk
libxml-parser-perl unzip
Download OpenWrt CC source codes:
$ git clone git://git.openwrt.org/15.05/openwrt.git
Prepare the default configuration file for feeds:
$ cd openwrt
$ cp feeds.conf.default feeds.conf
Table of contents


















