Microchip Wireless Solutions
“Taking the RF out of Wireless”
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Wired Communication Solutions
Agenda
●
●
Microchip Wireless Solutions
Wi-Fi and the Cloud

Connecting your device to the cloud

●
Bluetooth

Cable Replacement



Using Bluetooth to make UART replacement
Demo 2 – Cable Replacement with 2* RN BT Modules
BT Smart and Apps


●
Demo 1 – Connect RN-171-EK to Cloud Service
Connect BT Smart to a smartphone app
Demo 3 – Overview of App Development
Wrap-Up
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
2
Wireless Technologies
General
www.microchip.com/zigbee
www.microchip.com/wifi
www.microchip.com/miwi
www.microchip.com/bluetooth
Microchip - Fortronic Wireless Jun14
www.microchip.com/rf4ce
© 2014, Microchip Technology Incorporated, All Rights Reserved.
3
Route to Market
RF Design or Wireless Application?
●
●
Taking the RF Out of Wireless
Microchip focused on enabling customers
get to market quicker



●
RF Design is a Specialist Field
Too few RF Design Engineers
Module Approach creates a wireless system
design rather than RF Design
Module Approach




Design Engineers focus on their end application
Wireless provided as pre-certified modules
Software stacks to enable faster time to market
Application focused, no need for wireless
expertise
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
4
Route to Market
Chip or Module?
●
Profile of a chip customer




●
Very high volume(s), 200K to 300K per annum
MUST have RF hardware experience
Wi-Fi knowledge
Long term revenue goals
Module customer



All Volumes: 100 to 100K per annum
Application focused, no need for wireless expertise
Chip-level customers start with modules




Get an initial product to market
Learn about customer requirements
Generate some revenue
Time to implement cost down chip-level design
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
5
Microchip’s Solution
Balancing time and investment
Data Link
(2)
Physical
(1)
•
Chip down solutions
Microchip - Fortronic Wireless Jun14
•
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Days /
Wks
Plus
certification cost(s)
‘Bargain’ Modules
‘Time-To-Market’
solutions
Lowest
Apparent Cost
Network
(3)
12-18
months
Transport
(3)
Low cost module
solutions
18-24+ months
Upper Layers
(4-7)
Plus multiple board spins &
certification cost(s)
END
APPLICATION
• Microchip
MRFxxx/RNxxx Solutions
6
Regulatory Approval
Benefits

Wi-Fi certification proven

Wi-Fi certification ensures compatibility



Regulatory completed



RoHS compliant
USA/ Europe/Canada/Korea
Low Power


does not extend to end products
Optional for final products
Several low power modes depending on family
Complete Stack is provided

Either on-board or in source depending on application need
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
7
Embedded Wireless
System Options
•Local
configuration,
Monitoring
and control
•Remote
Configuration,
Monitoring
Cloud
Server Infrastructure
Star
Mesh
Microchip - Fortronic Wireless Jun14
•Gateway/Bridge to Low Power PAN
•MiWi™, Zigbee, IPv6lowPAN, Proprietary
•433/868/915/2400MHz
© 2014, Microchip Technology Incorporated, All Rights Reserved.
8
Microchip Wireless Solutions
Embedded WiFi
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Product Portfolio
KEY FEATURES
TCP/IP
Stack
Application
UART/SPI
RN-171/RN-131
• TCP/IP stack onboard module
• Soft AP and WPS Mode
• Ultra-low power, fast connect (<100ms)
• 802.11 b/g
• Works with any microcontroller
• Simple Services
• http client, FTP, SNTP, WPS
• http server (configuration only)
• Applications on Host MCU
KEY FEATURES
TCP/IP
Stack
Application
SPI
MRF24WB/G
Microchip - Fortronic Wireless Jun14
• Microchip TCP/IP stack
• 802.11 b & b/g
• Footprint compatible
• Microchip dev environment
• Richer services: HTTP Server and Client
• EAP, Wi-Fi Direct, WPS, SoftAP
© 2014, Microchip Technology Incorporated, All Rights Reserved.
10
Embedded
Wireless
®
Wi-Fi End Node
●
RN-171-EK



Complete, battery powered, Wi-Fi dev kit
Can operate as stand alone, self contained
sensor interface
Simple command interface to setup
USB or Battery
Powered
LED Indicators
GPIO and
UART Interface
PCB Trace
Antenna
Sensor
Interface
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
11
Demos

Demo 1: Interface to CLOUD server

Objective: Take an existing application and make it send data and retrieve commands from a

Tools: Wifi Module RN-171 connected through USB to a PC, terminal
application, Access Point,Instance of XAMPP, html website
Cloud Server
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
12
DEMO 1
●
●
Imagine you have an application with an
MCU with an available UART.
You had the request from your customer to
have the possibility to see some data and
send some commands to the system from a
Cloud Server on the Internet
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
13
DEMO 1
●
●
We’ll add a Wi -Fi Module RN-171 connected
to the UART
Let’s take it out of the box and connect it
through USB to our PC

This emulates the commands to be used by a host
MCU over serial port in an embedded system
+
TeraTerm, HyperTerminal, CoolTerm
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
14
DEMO 1
●
Take an Access Point connected to Internet

●
in our case we will simulate in a LAN running a local
LAMP server
Connect the module to the AP
set wlan ssid <name>
set wlan pass <passphrase>
set wlan join 1
Microchip - Fortronic Wireless Jun14
.wifly-EZX Ver: 4.41 Build: r1057, Jan 17 2014
10:23:54 on RN-171
MAC Addr=00:06:66:80:8f:9d
*READY*
Auto-Assoc ZEUS chan=1 mode=MIXED SCAN
OK
Joining ZEUS now..
Associated!
DHCP: Start
DHCP in 6019ms, lease=86400s
IF=UP
DHCP=ON
IP=192.168.0.17:2000
NM=255.255.255.0
GW=192.168.0.1
Listen on 2000
© 2014, Microchip Technology Incorporated, All Rights Reserved.
15
DEMO 1
●
What is a LAMP Server…






●
Linux
Apache
MySQL
PHP
A collection of applications, in this case Linux based, providing the Apache Web
Server, MySQL Database and PHP Admin functions to create a dynamic
database driven web server capability
PHP allows incoming data from Web Server to be checked and entered into a
database field. The database can also be checked for any outgoing messages
back to clients.
LAMP Server Implementation

Dedicated Linux implementation



Physical Server
Virtual Server Instance e.g. Amazon AWS
Local Server running as an application

XAMPP,
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
16
Client-Server Sequence
- Dynamic Web Site (Apache + PHP + MySQL)
Web Browser
The Internet
time
Web server at
server.com
PHP
Processor
Disk Drive at
server.com
MySQL database
server
Enter URL
Look up the IP
Request main page
using IP
Receive request
Fetch Page
Contains PHP
Process PHP
Execute SQL
Receive Data
Return Page
Receive and display
page
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
17
DEMO 1
●
●
Launch an instance of XAMPP or MAMP or LAMP …
Set up Mysql Database and HTML/JAVASCRIPT/PHP code
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
18
DEMO 1


Open a connection from the module to the
server
Post data
USB
Actually runs as XAMPP
Server on local PC….
>
>
LAMP
Server
open <IP address> 80
GET /Microchip/scripts/newmsg.php?
name=fortronic&message=hi%20from%20here
HOST: <IP address>
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
19
DEMO 1
●
●
Add Command from the Server page to be sent to
the module
Retry posting data
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
20
DEMO 1: Conclusion
<4.41> open 192.168.0.9 80
Connect to 192.168.0.9:80
<4.41> *OPEN**CLOS*CMD
open 192.168.0.9 80
Connect to 192.168.0.9:80
<4.41> *OPEN*Hi there!*CLOS*
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
21
Microchip Wireless Solutions
Bluetooth
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Microchip’s Bluetooth
Portfolio
New
RN41 / 41N
RN42 / RN42N
RN52
RN4020
Class 1 Bluetooth 2.1
Class 2 Bluetooth 2.1
Class 2 Bluetooth
3.0
Bluetooth LE
Interfaces
UART / USB
Analog spk and mic,
i2S, SPDIF, PCM,
UART
UART
Profiles
SPP / HID / iAP / HCI
A2DP / ARVCP /
HSP / HFP / SPP /
iAP
GATT, Health,
Fitness, Proximity,
etc.; Custom data
Type
Power
Antenna
3.3 VDC
ceramic on board
Size (mm)
Certifications
Microchip - Fortronic Wireless Jun14
13.4 x 25.8 x 2.0
PCB
13.4 x 30 x 3.0
11.5 x 19.5 x2.5
BT SIG / FCC / CE / ICS
© 2014, Microchip Technology Incorporated, All Rights Reserved.
23
RN-4020 Bluetooth Low Energy
Module
●
RN4020 Bluetooth Low-Energy Module






●
Stack on board style module
Simple ASCII Command interface over UART
Flexible Bluetooth SIG profile support
MLDP (Microchip Low-energy Data Profile) custom data
Scripting for stand alone operation
Field upgradable
PICTail Plus Daughter board for development


RN4020 paired with an eXtreme Low Power XLP PIC
MCU
Multiple options for programming and experimentation
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
24
Features and Benefits
●
A complete “stack on-board” solution

●
Bluetooth 4.1 Compliant / Bluetooth SIG Certified


●

Worldwide regulatory certification enables broad market deployment.
FCC, IC, CE, etc.
ASCII Command set over UART

●
Standards based for compatibility
All standard profiles are on-board
Regulatory approvals

●
Enables use with any MCU with a UART or standalone
Enables easy integration into embedded designs with or without a
Microcontroller
Unique Non-Compile Scripting


Scripts can be written using the ASCII commands and do not require
special tools or compiling of code
Enables the module to collect data and communicate over BTLE in
standalone mode
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
25
BTLE Services Supported
Service
Bitmap
Used in Profiles
Device Information
0x80000000
Blood Pressure, Cycling Speed Cadence, Glucose, Health
Thermometer, Heart Rate, Running Speed Cadence
Battery
Heart Rate
Health Thermometer
Glucose
Blood Pressure
Running Speed Cadence
Cycling Speed Cadence
Current Time
Next DST Change
Reference Time Update
Link Loss
Immediate Alert
TX Power
Alert Notification
Phone Alert Status
Scan Parameters
Location & Navigation
User Defined Private Service
0x40000000
0x20000000
0x10000000
0x08000000
0x04000000
0x02000000
0x01000000
0x00800000
0x00400000
0x00200000
0x00100000
0x00080000
0x00040000
0x00020000
0x00010000
0x00004000
0x00001000
0x00000001
Microchip - Fortronic Wireless Jun14
Heart Rate
Health Thermometer
Glucose
Blood Pressure
Running Speed Cadence
Cycling Speed Cadence
Time
Time
Time
Proximity
Find Me, Proximity
Proximity
Alert Notification
Phone Alert Status
Scan Parameters
Location & Navigation
User Defined Private Profile
© 2014, Microchip Technology Incorporated, All Rights Reserved.
26
RN4020 BTLE Dev Board
–
–
On-board connection
and data status LED’s
USB to UART Interface to
quickly get started
(backside)
–
–
–
RN4020 on board
Bluetooth 4.1 Compliant with
7dBm output power
–
PICTail and PICTail Plus
interfaces for connection to
Microchip development boards
–
PICKit Serial Programmer /
debugger interface to PIC18 MCU
Extreme Low Power
PIC18F25K50 on Board
(backside)
Part# RN-4020-PICtail
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Price: $49
27
Bluetooth Low Energy
RN4020
• Complete solution
- Stack on-board
- All standard BT Sig profiles + Microchip’s
Low-Energy Data Profile (MLDP)
- Built-in antenna
• Transmit Power: 7.0dBm Typical
• RX Sensitivity: -92.5dBm
• UART command interface
• Bluetooth 4.1 compliant
• Bluetooth SIG certified
• International regulatory certifications
• Compact size: 11.5 x 19.5 x 2.5mm
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
28
Microchip Wireless Solutions
Bluetooth
Serial Cable Replacement
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Bluetooth Profiles:
Serial Port Profile (SPP)

Bluetooth Classic SPP Profile Emulates COM port over BT




Cable Replacement Applications
Bluetooth driver on host computer creates a virtual COM port after successful pairing
When COM port is open the Bluetooth connection to the slave is opened
Bluetooth LE or Smart has no equivalent standard streaming data
profile

So is it possible to obtain an equivalent capability using BT LE?
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
30
Demos

Demo 2: Bluetooth Cable replacement


Objective: Take an existing applications that exchange data on a UART
cable and replace it with a Bluetooth Low Energy wireless connection
Tools: 2 BTLE module RN4020 connected through USB to a PC, terminal
application.
*Source: ZDnet/IDC Data
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
31
DEMO 2
●
●
Imagine you have an MCU application with
cable connected to the UART .
You had the request from your customer to
replace it with a wireless connection
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
32
DEMO 2
●
●
We’ll add 2 RN-4020 BTLE Module connected
to the UARTs
Let’s take them out of the box and connect
them through USB to our PC
+
TeraTerm, HyperTerminal, CoolTerm,
Smarter Terminal from Microchip
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
33
DEMO 2

Open your preferred terminal in 2 instances and
inject proper configuration:


One module will act as central
One module will act as peripheral
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
34
DEMO 2: Conclusion
●
Activate MLDP and start chatting
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
35
Microchip Wireless Solutions
Bluetooth
Interfacing to Smart Device and App
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Development Environments
●
Android developers use Eclipse

●
Can use NetBeans™
Apple® developers use Xcode
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
37
Eclipse
●
Widely used

●
Runs on many platforms

●
To develop Android, BlackBerry®, Windows®, Linux®
applications
Windows, Linux, OS X®
Open


Uses many different components
Many plug-ins available
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
38
Eclipse
●
Complicated install procedure






Java Development Kit (JDK)
Eclipse IDE
ADT plug-in for Eclipse
Android SDK
Build Targets for SDK
USB Driver
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
39
Eclipse
●
●
●
Tutorials on Android website
No registration or license fee required to
develop
Register for a Google Play™ publisher account


To publish apps on Play Store
Can distribute APK (install) files without publishing
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
40
Android and BTLE
●
For BTLE Development on Android


●
Need to use Android 4.3 or later
Prior to this version BTLE support was fragmented and
reliant on vendor implementation
BTLE support still maturing
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
41
iOS Bluetooth®
●
●
●
●
●
●
Developing accessories for iPod®, iPhone® and
iPad® using one of the controlled interfaces*
requires a MFi license from Apple
BTLE support resides outside iAP
iOS BTLE Support is mature
Public Apps must release thorough App Store
App Development requires registration with
Apple Developer Program
For more information:
http://developer.apple.com/mfi
* iAP is a controlled interface
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
42
Demos

Demo 3: Simplest way to Connect to IOS APP


Objective: Take an existing applications and add connection to IOS APP
Tools: 1 BTLE module RN4020 connected through USB to a PC, terminal
application, iPhone 5, Xcode application with source
*Source: ZDnet/IDC Data
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
43
DEMO 3
●
●
Imagine you have an application with an
MCU with an available UART
You had the request from your customer to
make it connect to an iPhone.
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
44
DEMO 3
●
●
Imagine you have an application with an
MCU with an available UART
You had the request from your customer to
make it connect to an iPhone.
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
45
DEMO 3
●
●
●
We’ll add 1 BTLE Module RN4020 connected to the UARTs
Let’s take it out of the box and connect it through USB to our
PC
“Suppose” you have an iPhone and you’re a registered Apple
developer
+
+
Mac Book, CoolTerm or Smarter
Terminal from Microchip, Xcode
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
46
DEMO 3

Open your preferred terminal and inject proper
configuration:

module will act as peripheral
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
47
DEMO 3
●
Launch Sensor Demo
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
48
DEMO 3: Conclusion
●
●
Explore Xcode application and Apple Core
Bluetooth library
Where to start in BTLE APP development
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
49
Additional Resources
●
Online Design Centers:
www.microchip.com/mla
www.microchip.com/tcpip
www.microchip.com/wifi
www.rovingnetworks.com/products/Wi_Fi_Products
www.rovingnetworks.com/products/Bluetooth_Products
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
50
Any Questions?
Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
51
Thank You
Note: The Microchip name and logo, dsPIC, MPLAB and PIC are registered trademarks of Microchip Technology Inc. in the U.S.A. and other countries.
MiWi, PICDEM and PICtail are trademarks of Microchip Technology Inc. in the U.S.A. and other countries.
All other trademarks mentioned herein are property of their respective companies.
© 2014, Microchip Technology Incorporated, All Rights Reserved.
Trademarks

The Microchip name and logo, the Microchip logo, dsPIC, KeeLoq, KeeLoq logo,
MPLAB, PIC, PICmicro, PICSTART, PIC32 logo, rfPIC and UNI/O are registered
trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, MXDEV, MXLAB,
SEEVAL and The Embedded Control Solutions Company are registered trademarks
of Microchip Technology Incorporated in the U.S.A.

Analog-for-the-Digital Age, Application Maestro, chipKIT, chipKIT logo, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense,
HI-TIDE, In-Circuit Serial Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified
logo, MPLIB, MPLINK, mTouch, Omniscient Code Generation, PICC, PICC-18,
PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE, rfLAB, Select Mode, Total
Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other countries.

SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their respective companies.
© 2014, Microchip Technology Incorporated, All Rights Reserved.


Microchip - Fortronic Wireless Jun14
© 2014, Microchip Technology Incorporated, All Rights Reserved.
53