labs.mediatek.com
Philip HandschinMediaTek Labs
Geek Pic-Nic Master Class
MediaTek LinkIt™ ONE Development Platform
Topics
2
▪ Intro to MediaTek▪ What is MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Demo▪ Other HDK’s▪ Questions
USAUK Denmark
Sweden
Dubai
IndiaSingapore
Mainland China
Korea
Japan
Finland
>12,000 employees worldwide*27 offices located across 12 countries
A global company
Taiwan Hsinchu HQ
3
*including employees of MStar Semiconductor Inc.
MediaTek SOCs are all around us
Wearables
TVsBlu-ray disc players
GPS
Tablets
Smartphones Game station
2015-08-11Copyright © MediaTek Inc. All rights reserved. 4
Source (ranking by revenue of 2014): Strategy Analytics, Gartner, IDC, IC Insight, iSuppli and MediaTek company data* Combined with MStar. Source (Rankings by volume): Strategy Analytics, Displaysearch, iSuppli , MediaTek company data
Feature phone
#1
Digital TV*
#1
Optical disc drive
#1
DVD/BD player
#1
Smartphone
#2
Tablets
#2
Connectivity network
#3
Global company with leading market position
Copyright © MediaTek Inc. All rights reserved.5
MediaTek powered products
6
▪ Sony Android TV
MediaTek powered products
6
▪ Amazon Kindle Fire Tablet
MediaTek powered products
6
Smartphone HTC M9+ / Google Android One
Topics
7
▪ Intro to MediaTek▪ What is MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Demo▪ Other HDK’s▪ Questions
MediaTek Labs™A Developer Centric Ecosystem
▪ Free global program▪ Supporting developers:
• Device creation• App development• Services
▪ labs.mediatek.com
Enabling Developer & Maker Success
labs.mediatek.com SDKs Technical docs HDKs
Discussion Forums, FAQ & Dev Support
Newsletter Solutions Catalog
Business Support and Matchmaking
9
Optional help to find partners• Designers and developers• Manufacturers• MediaTek distributors• Component suppliers
10
Idea Platform Prototype Productize Launch
MediaTek Labs Partner Connect
labs.mediatek.com/partners
Teaming up with MediaTek allowed us to focus on industrial and mechanical designs as well as fashion rather than technology.
Omate SmartWatch – Powered by MT2502
“
- Laurent Le Pen, CEO, Omate”
Topics
12
▪ Intro to MediaTek▪ What is MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Demo▪ Other HDK’s▪ Questions
MediaTek LinkIt™ ONE platform
13
System-on-Chip
Aster (MT2502) – the world’s smallest SoC for Wearables
Companion chipsets for Wi-Fi and GPS
LinkIt ONE HDK
Hardware board based on reference design by MediaTek
Co-design with:
Rich APIs
Feature rich OS to power Wearables and IoT devices
+ ++
LinkIt ONE SDK
Plug-ins for Arduino, libraries for the LinkIt APIs, and board firmware update tool
First offering: SDK for Arduino
labs.mediatek.com/linkit
LinkIt ONE Hardware Dev Kit (HDK)(Front View)
Headphone Jack
USB Jack
Battery Jack
Reset
GPIO
SPI
Seeed “GROVE” system
labs.mediatek.com/linkithdkA/D & GPIOPower Out
SD / SPI Switch
Mass Storage / Normal mode
switch
USB / Battery Power switch
LinkIt ONE HDK (Back View)
GPS Antenna
Wi-Fi / BTAntenna
GSM Antenna
LinkIt ONE HDK (Back View)
GPS Antenna
Wi-Fi / BTAntenna
GSM Antenna
GPS+GLONASS Antenna
Wi-Fi / BTAntenna
GSM Antenna
LinkIt ONE HDK (Back View)
GPS Antenna
Wi-Fi / BTAntenna
GSM Antenna
SIM/SD Slot
Main ProcessorBT GSMMT2502
Wi-FiMT5931
GNSS MT3332
GPS/GLONASS/BEIDOU
Hardware Spec▪ Microcontroller
• MT2502A (Aster) ARM7 EJ-S 260MHz▪ Memory
• Flash 16MB RAM 4MB• SD card: up to 32GB (class 10)
▪ Power• 3.7V~4.2V Lithium battery jack recharge through USB
▪ Digital I/O• 16 pins (D0~D13 SDA SCL) 3.3V 0.3mA~3mA
▪ Analog Input• 3 pins (A0 A1 A2) 0~5V fixed reference voltage
▪ Pulse Width Modulation• 2 sets • Max Resolution: 13bit• Max Frequency@Resolution: 1.6kHz@13bit 50.8kHz@8bit 800kHz@4bit
Hardware Spec
External Interrupts• 2 pins D2 D3
I2C• 1 set Master only
SPI• 1 set Master only
UART• 1x UART on USB
mapped to “Serial”• 1x UART
D0 D1 3.3V mapped to “Serial1”
GSM/GPRS• 850/900/1800/1900 MHz• GPRS Class 12
Bluetooth• EDR BLE (Dual Mode)
Wi-Fi• 802.11 b/g/n (150Mbit/s)
GPS• GPS/GLONASS/BEIDOU
Topics
19
▪ Intro to MediaTek▪ What is MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Demo▪ Other HDK’s▪ Questions
LinkIt ONE Software Development Kit
An extension of Arduino IDE
20
+
Setup
21
Download Arduino
RegisterWith Labs
DownloadSDK
Install SDK
Plug-in to Arduino IDE
Setup
21
Download Arduino
RegisterWith Labs
DownloadSDK
Install SDK
Plug-in to Arduino IDE
Setup
21
Download Arduino
RegisterWith Labs
DownloadSDK
Install SDK
Plug-in to Arduino IDE
Setup
21
Download Arduino
RegisterWith Labs
DownloadSDK
Install SDK
Plug-in to Arduino IDE
Setup
21
Download Arduino
RegisterWith Labs
DownloadSDK
Install SDK
Plug-in to Arduino IDE
Setup continued
22labs.mediatek.com/linkitsdk
Plug-in to Arduino IDE
Setup Board
Create Sketches
Load to LinkIt ONE Run
Setup continued
22labs.mediatek.com/linkitsdk
Plug-in to Arduino IDE
Setup Board
Create Sketches
Load to LinkIt ONE Run
Setup continued
22labs.mediatek.com/linkitsdk
Plug-in to Arduino IDE
Setup Board
Create Sketches
Load to LinkIt ONE Run
Setup continued
22labs.mediatek.com/linkitsdk
Plug-in to Arduino IDE
Setup Board
Create Sketches
Load to LinkIt ONE Run
Setup continued
22labs.mediatek.com/linkitsdk
Plug-in to Arduino IDE
Setup Board
Create Sketches
Load to LinkIt ONE Run
SDK Features
Arduino Core Functions Digital I/O Pulse-Shift I/O Analog Input Serial Time and delay Interrupts Math Servo Stepper SPI I2C
LinkIt ONE Functions (prefixed with L, e.g. LGPS)
GSM GPRS Wi-Fi Bluetooth GPS Audio SD/Flash EEPROM
SMS & Telephony
TCP and UDP socket
TCP and UDP socket
Serial Port Profile / GATT
NMEA Format
MP3 AAC AMR
FAT32
labs.mediatek.com/linkitguide
SMS
Sending and receiving SMS
Classes prefixed with L Waiting for module ready Begin composing SMS to
remote number Finish and send the
message
while(!LSMS.ready()){delay(100);
}
LSMS.beginSMS(“07701234123”); LSMS.print(“Hello world!”);LSMS.endSMS();
24
GPS
Switch GPS on Reports NMEA strings A parsing example in SDK
• Fix• # Satelites• Date stamp• Position
void setup() {Serial.begin(115200);LGPS.powerOn();
}
void loop() {LGPS.getData(&info);Serial.println(info.GPGGA); parseGPGGA(info.GPGGA);
}
25
Audio
Play audio files Stored on SD-Card Set volume Stop playback
LAudio.begin();LAudio.playFile(storageFl
ash,”a.wav”);LAudio.setVolume(6);delay(10000);Laudio.stop();
26
Topics
27
▪ Intro to MediaTek▪ What is MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Demo▪ Other HDK’s▪ Questions
MediaTek Cloud Sandbox
RESTful API’s Visualize Data FOTA
Data monitoring with notifications
Device remote control Web or mobile app
28labs.mediatek.com/mcs
Controller
Visualize Data
Data types• Controller• Display• Hybrid (coming soon)
29
Display
Hybrid
Visualize Data
Visualize• GPS Position• Double values• String values• Control states• Etc...
30
Demo
Upload Temperature to Cloud via Wi-Fi
31
#include "DHT.h"#define DHTPIN 0#define DHTTYPE DHT22
void setup(){
Serial.begin(9600);Serial.println("Geek Pic Nic demo!");dht.begin();
}
32
void loop(){
float t = 0.0;float h = 0.0;if (dht.readHT(&t, &h)){
Serial.println("------------------------------");Serial.print("temperature = ");Serial.println(t);
Serial.print("humidity = ");Serial.println(h);
}delay(2000);
}33
Connect it to the Cloud
34
#include "LGPRS.h"#include "LGPRSClient.h"#include "HttpClient.h"#define SITE_URL "api.mediatek.com"LGPRSClient content;HttpClient http(content);
void setup(){
…while (!LGPRS.attachGPRS("internet", "", "")){
delay(500);}
}
35
36
void upload(float t){
while (!content.connect(SITE_URL, 80)){
Serial.print(".");delay(500);
}
content.println("POST /mcs/v2/devices/Du0VaaVH/datapoints.csv HTT
String data = "temp,," + String(t);
int dataLength = data.length();
content.println("Host: api.mediatek.com");content.println("deviceKey: ZzSJG9PGnNBeOxL6");content.print("Content-Length: ");content.println(dataLength);content.println("Content-Type: text/csv");content.println("Connection: close");content.println();content.println(data);
}37
Topics
38
▪ Intro to MediaTek▪ What is MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox▪ Demo ▪ Other HDK’s▪ Questions
LinkIt Connect 7681
39
▪ Wi-Fi station and access point (AP) modes
▪ TCP/IP stack▪ 5 GPIO’s / 1 UART port
LinkIt Assist 2502
Based on modules Capacitive touch screen SDK for Eclipse
• Compatible with LinkIt ONE
40
Technical Questions?
41
Download Resources:labs.mediatek.com/linkit
MediaTek Cloud Sandbox:labs.mediatek.com/mcs
Check the Forum:labs.mediatek.com/forums
Technical Consultant at booth:Phil
Start by registering as
member of MediaTek Labs –this allows you
to download SDK and use Cloud
Sandbox
Next Steps
42
▪ Fill out feedback form▪ Come to booth
• See demos• Wearables• Win a board• Get a t-shirt• @MediaTekLabs
▪ Join labs – It’s free - labs.mediatek.com
labs.mediatek.com
Copyright © MediaTek Inc. All rights reserved.
Top Related