Beruflich Dokumente
Kultur Dokumente
1.
Wi-Fi overview
1. 2.
3.
Wi-Fi ? Wi-Fi Frequency Wi-Fi Direct Wi-Fi Module Microchip solution vs Others The Internet of Things and Wi-Fi Microchip Products Roadmap Module PCB guideline
2.
3. 4.
2.
3.
Source code overview WIFI TCPIP Demo : webserver & Iperf WIFI TCPIP basic project
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Slide 2 2 Slide
Wi-Fi overview
Ethernet is the most widely deployed datacom network in the world Wi-Fi is wireless Ethernet
Adds mobile internet connectivity Removes the wire, but retains the LAN, WAN, WWW connection
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Wi-Fi overview
AP(Access Point), Wireless Gateway SSID(Service set Identifier), Name of Network Security WEP, WPA,WPA2
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Slide 4 4 Slide
Wi-Fi Frequency
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Slide 5 5 Slide
Wi-Fi Frequency
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Slide 6 6 Slide
Wi-Fi Direct
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Slide 7 7 Slide
Wi-Fi Direct
IPv6 M to M .
( ex. )
, zigbee, RF4CE
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Slide 8 8 Slide
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Slide 9 9 Slide
Wi-Fi Module
MRF24WB0MA and MRF24WB0MB Wi-Fi Transceiver Module Features
Low-power, low data-rate Wi-Fi Connects to standard wireless access points IEEE Std. 802.11b/g/n compatible Integrated PCB antenna (MRF24WB0MA) External antenna option (MRF24WB0MB) with ultra miniature coaxial (U.FL) FCC, Industry Canada and ETSI certification Wi-Fi Certified Works with all PIC microcontrollers SPI interface to PIC microcontrollers Supports WEP, WPA and WPA2 security protocols Single operating voltage: 2.7V-3.6V (3.3V typical) Temperature Range: 0 C to +70 C Commercial Low-current consumption
RX mode 85 mA (typical) -TX mode 154 mA (+10 dBm typical) -Sleep 250 A (typical) -Hibernate <0.1 A (typical)
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Wi-Fi Module
Maximize customer engineering re-use and code preservation Module is FCC certified minimizing customer time and expense SPI interface to the MCU Four different power saving modes for different use models Hibernate mode typically consumes 0.1uA Battery life as long as 10 years for once a day wake-up No-host polling mode allows host processor shut-down(interrupt) WEP/WPA/TKIP accelerators reduce RAM & host processor load On-Chip MAC reduces processor load Driver integrated into IP Stack (<4Kbytes) Easily integrated into 8-bit MCU system Less RAM required reduces cost & allows less expensive MCU Just add WI-FI I/O eliminates system redesign effort Globally certified module eliminates up to $100K in costs
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Microchip
Microchip 8/16 bit MCU
SPI
Wi-Fi
Them
Memory
32 bit MCU
Embedded Linux
Wi-Fi
USB SDIO ARM Royalty
To Access Content
To Interact
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
IPv6 support
CY1Q12
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Demo Source Code and Applications PICtails and PICtail-based development kits shipping now
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
2011 Korea
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
High performance
Full TCP state machine Supports multiple connections
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
SNMP
Telnet
NBNS
DHCP
SMTP
SNTP
HTTP
DNS
FTP
Application
UDP
TCP
Transport
IP
Ethernet MAC/PHY (Silicon)
ARP
Addressing Physical
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Layers at a Glance
Foundation Layers
Functionality handled by the stack Interact only with TCP and/or UDP Just send and retrieve data
UDP
TCP
Transport
IP
Ethernet MAC/PHY (Silicon)
ARP
Addressing Physical
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Layers at a Glance
SNMP
Telnet
NBNS
DHCP
SMTP
SNTP
HTTP
DNS
FTP
Application
Application Layers
Custom applications built on these layers Request and transmit data Respond to incoming requests
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Application Examples
NBNS DNS SNTP
NetBIOS Name Service (Server) Local Host Names Domain Name Service (Client) Global host name resolution Simple Network Time Protocol (Client) Determines the absolute time Dynamic Host Configuration Protocol (Both) Automatic IP and network configuration Simple Network Management Protocol (Server) Enterprise monitoring and control (AN870) Telnet (Server) Command-line interface Simple Mail Transfer Protocol (Client) Sends e-mail messages Hyper-Text Transfer Protocol (Server) Serves web pages and processes web form input
Microchip FS USB Device Class Microchip FS USB Device Slide 2525 Slide
DHCP
SNMP Telnet SMTP HTTP
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Application Examples
Custom Applications
HTTP Client Streaming data / audio Serial to Ethernet bridge Data logging Bootloader Other data transfer
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Selecting an Application
HTTP web server
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
2011 Korea
Multi-tasking
Cooperative Multi-tasking
Potential Pitfalls
Long tasks: add a state machine UART: use an interrupt Delays: use the Tick module
How Often?
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Based on hardware clock Interrupt driven Stable and accurate Implements non-blocking delays Suitable for a Real Time Clock
Microchip FS USB Device Class Microchip FS USB Device Slide 3030 Slide
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
48-bit resolution Requires TMR0 (PIC18) or TMR1 (others) 32-bit unsigned TICK_SECOND, TICK_MINUTE, TICK_HOUR
Defines macros:
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
TICK TickGet()
// low 32 bits
Low 32 bits good for few s to few hours Middle: few minutes to few months High: few days to several years (or absolute)
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Procedure:
Store current time using TickGet Transition state machine and return Compare TickGet to previous value Use TICK_SECOND for easy reference
Example
2011 Korea
WiFi
Source code overview
WiFi Demo
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
WF_Config.h
WIFI Configure file
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
WiFi Demo
Web Server Infra & adhoc
TCPconfig.h Heap
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
Hibernate mode
TCP Server
2011 Microchip Technology Incorporated. AllAll Rights Reserved. 2009 Microchip Technology Incorporated. Rights Reserved.
2011 Korea
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.