PIC18 Wireless Application Development
Duration: 5 Days
Course Background
Many embedded application designs involve providing wireless connectivity, whether it be for use in simple point to point and simple mesh networks or for interfacing with smart devices (e.g. mobile phones and tablets, or personal/industrial computer systems. Various technologies and standards have evolved over the last few decades and there is no single dominant technology. In fact, for some applications it may be necessary to develop a range of products supporting several of the available technologies. It is therefore essential for many designers to understand the strengths and weaknesses of the various technologies, as well as be aware of the various chips and solutions available from Microchip and associated companies.
Course Prerequisites and Target Audience
A good knowledge of embedded systems C programming is assumed. Detailed knowledge of wireless technology and associated protocols is not required as this will be covered in depth during the course. A knowledge of the PIC18 architecture and instruction set would also be helpful.
Course Overview
The course will cover both simple Sub 1 GHz solutions where the radio link is, essentially, a simple serial communications link as well as more complex connectivity solutions such as Z-Wave, Zigbee, Bluetooth and WiFi and the use of fully integrated transmit solutions and partial discrete transmit solutions in which the PIC18 microcontroller communicates with an external chip that provides communications capability as well as protocol support. Issues such as receiver selectivity, range, power and antenna selection are discussed. As well as understanding the underlying radio technology and associated standards and protocols the course will cover the design and implementation of software and firmware using PIC18 based microcontroller systems. Simple examples discussed will include applications such as Smart Meters, Remote Key Entry Systems (both building and automotive), Garage Door Openers and Tyre Pressure Monitoring Systems. The course will also explore IEEE 802.15.4/4g and Wireless M-Bus protocols and RF ID. Simple control, measurement data acquisition and automation applications based on Z-Wave, Zigbee and Blue Tooth will also be covered. The course will include practical labs to consolidate the lessons learned. The detailed content of the labs can be tailored to specific customer requirements on demand.
Course Benefits
The course provides a thorough understanding of digital radio frequency communications principles and the development of applications based on devices and technologies working in the sub 1GHz and 2.4 Ghz regions of the frequency spectrum.
Course Outline
- Principles of Radio
- What are radio waves and how are they generated
- Regulations governing the use of the Radio spectrum
- Radio Bandwidth and radio channels
- Noise and Interference
- Signal to Noise ratio
- Shannon's Law
- Decibels (dB, dBw, dBi, dBm)
- Radio Propagation, Multipath, Fading
- Digital aspects of radio - modulation techniques
- Forward Error Correction
- Antennas
- Low Level Radio Design Issues
- Receiver Selectivity
- Power consumption
- Range
- Antenna design
- DSP (Digital Signal Processing) and Modulation mechanisms issues
- Wireless Networks
- Overview of the ISO/OSI 7 layer model
- Mesh networks vs. Star Networks
- Ad Hoc Networks
- Wired networks vs. Wireless networks
- Master-Slave vs. Peer to Peer protocols
- WPAN - Wireless Personal Area Network
- WLAN - Wireless Local Area Network
- WMAN - Wireless Metropolitan Area Network
- Routing and Switching in Wireless Networks
- SUN - Smart Utility Network
- M2M - Machine to Machine
- Wireless Protocols - Intensive Overview
- Sub 1 GHz Wireless
- 802.15.4
- ZigBee
- MiWi and MiWiP2P
- 2.4 GHz Wireless
- 802.15.4
- Zigbee
- Bluetooth
- WiFi
- Bluetooth Low Energy
- 6lowPAN
- Thread
- 802.15.4
- Physical Layer
- MAC Layer
- SSCS and LLC layers - and their use for communicating with upper layers
- Overview of typical 802.15.4 applications
- Implementing 802.15.4 applications using MiWi and MiWi P2P
- Zigbee
- Zigbee as an upper layer protocol over 802.15.4
- Zigbee Network Layer Protocol
- Zigbee Upper Layer application protocols
- Building automation - for monitoring and control of facilities
- Remote Control - RF4CE, RF)
- Smart Energy - for home energy monitoring
- Health Care - for medical and fitness monitoring
- Home automation - for control of smart homes
- Input devices
- Light Link Control - LED Lighting
- Retail services
- Telecom services
- Network services - associate with large mesh networks
- Developing Zigbee applications using Microchip MRF24J40 Transceivers
- Bluetooth
- Rationale for Bluetooth
- Evolution of Bluetooth Standards - from Bluetooth 1.0b, 1.1 and 2.0 to Bluetooth Low Power and Bluetooth Smart
- Overview of Bluetooth Protocol Layering and Bluetooth profiles
- Bluetooth Protocol Layers
- Bluetooth Radio Layer
- Baseband layer
- Bluetooth addressing
- Link Management Protocol
- L2CAP
- Host Controller Interface (HCI)
- RFCOMM
- Bluetooth in Practice
- Device discovery
- Device properties
- Service properties
- Bluetooth Security - Trust, Security modes, Bonding
- Bluetooth and Embedded Systems
- Bluetooth modules accessed via UART or SPI
- Bluetooth Low Energy and Embedded Systems
- Using Bluetooth to connect embedded devices to PCs and to Smart Phones / Tablets
- Bluetooth Security - Trust, Security modes, Bonding
- Building applications using an RN41/RN42 Module and serial UART communication
- Building BLE applications using an RN4020 Module and serial UART / SPI communication