hands-on workshop: freescale sub-ghz wireless...
TRANSCRIPT
External Use
TM
Hands-On Workshop: Freescale Sub-GHz
Wireless Connectivity Solutions for
Neighborhood Area Networks, Smart Cities
and Home Area Networks
FTF-SEG-F0186
A P R . 2 0 1 4
Alan Collins | Wireless Applications Engineer
Mike Dow | Business Development
TM
External Use 1
Session Introduction
• The “Internet of Things”, “Smart Objects”, Smart Utility Networks,
and M2M are common buzz words in today’s technical vocabulary.
This presentation will give context to those terms in relation to
developing IETF and IEEE standards.
• Freescale has made partnerships to come up with a joint solution to
address these networks with IPv6 standards based networking
software and Freescale Kinetis Processors and Sub-GHz radios.
Nivis Smart Objects & Proximetry AirSync.
TM
External Use 2
Session Objectives
Effectively describe at a high level the “Internet of Things”
and what makes a “Smart Object” smart
Use complex wireless software stack for embedded
systems.
Understand the development environment for Wireless
Connectivity products.
After completing this session you will be able to:
TM
External Use 3
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart Objects
Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 4
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart Objects
Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 6
Smart Cities
•High-Confidence Transport and Asset Tracking
•Energy Saving Smart Grid
•Predictive Maintenance
•Improve Productivity
•Enhanced Safety & Security
•Enable New Knowledge
•Healthcare
•Smart Home S+CC
•Intelligent Buildings
•Improve Food and H2O
TM
External Use 10
Common factors
Wireless Mesh or Star Topology for robust coverage of end
devices
High density NWK 500 - 1000+ Nodes per Edge Router /
Gateway
Fairly long distance between end devices (100s of meters,
favors Sub-GHz and power amplification)
Sophisticated security protocols
Connection to cloud based services
Internet Protocol (IP) communication protocols
TM
External Use 11
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart
Objects Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 12
Nivis Smart Object Platform Empowering the Internet of Things
TM
External Use 13
What is a Smart Object?
• Attributes of a Smart Object
− Contains an embedded microcontroller
− Provides IP based connectivity
− Provides web connectivity
− Senses or acts on its local environment
− Communicates with other objects / higher level systems
− Receive commands
• Common Examples
− Smart Meters
− Smart Lighting
− Temperature / Humidity / Vibration / Pressure Sensors
TM
External Use 14
What is a Smart Object Network?
• Attributes of a Smart Object Network
− May be Wired / Wireless
− Extension of the internet -> no translating gateways/bridges for connectivity from network layer and up
− Communication from NWK layer and up based on vetted IETF standards (IP, UDP, SNMP, IPSec, etc)
− May include a gateway component to access other networks
− Should be capable of scaling to support thousands (or millions) or devices
TM
External Use 15
Why use IPV6 in Communication Stack?
“The openly stated goal from IBM is to produce a completely new world-wide
web, one comprised of the messages that digitally empowered devices would
send to one another. It is the same Internet, but not the same Web.”
TM
External Use 16
Internet of Things (IOT) Taking Shape
• IOT is in the top 5 strategic technologies for 2012
− Media Tablets and Beyond
− Mobile Centric Applications and Interfaces
− Contextual and Social User Experience
− Internet of Things
− App Stores and Marketplaces
• IOT describes expansion of the Internet
− Sensors and intelligence are added to physical items
• Technologies are reaching a critical mass and an economic tipping point
− Identifying, sensing and communicating
• Embedded sensors detect and communicate information about objects
− Beyond mobile devices
TM
External Use 18
PHY/MAC Agnostic
Class-Leading Security
Power Source
Diversity
Prioritized Data
Delivery
Seamless Integration Capabilities
Design Goals
Standards Based
Thousands of Devices per Edge Router
Application Agnostic
Sink and Source Data
TM
External Use 19
Platform Components
• Smart Object Networking Platform includes:
− RPL-Based Communications Stack
− Edge Router Hardware
− Network Management Software
− Software API libraries
− RF Modules
TM
External Use 21
Scalability
• Minimizes costs of supporting
infrastructure
• Allows wide geographic
coverage
• Robustness increased with path
redundancy
• Achieved through central
arbitration and distributed
intelligence
TM
External Use 22
Application Agnostic
• Similar in charter to the Internet and
the Internet of Things
• Common infrastructure supports a
wide variety of applications
• Communication platform tunable to
optimize application requirements
• Allows correlation of data to create
new applications
TM
External Use 23
Sink and Source
• Typical mesh-enabled networks are
structured as “sink” networks
− Data is funneled to a centralized
monitoring entity
• Accommodates both monitoring and
control simultaneously
• Flexibility to tune network bandwidth
(allocation) to support both types of
flows
• Create Monitoring / Response Loops
TM
External Use 24
PHY/ MAC Agnostic
• Extends the Internet to objects by utilizing a established set of
services and routing methodologies
• Allows for swift porting to alternate hardware platforms
• Future proof to technology evolution
• 802.15.4g / 802.15.4e / Cellular / 802.11 / PLC
TM
External Use 25
Securing Smart Objects
• Enterprise-Level Security
• Link Layer Security
• Transport Layer Security
Ensures Authenticity, Integrity and
Confidentiality of data
TM
External Use 26
Power Source Diversity
• Supports wide variety of object
power sources
− Line Power
− Battery Power
− Power Harvesting
• Management dynamically allocates
resources based on power source
constraints
Devices managed based on their
power source (e.g. line powered,
battery, harvester)
TM
External Use 27
Prioritized Data Delivery
• Supports the construct of Quality of Service (QoS)
• Application-related data flow with various constraints
• Wireless Media access is priority-based
• Media contention governed by application
requirements
TM
External Use 28
In Pursuit of Interoperability
• The IPSO Alliance
− Interoperability WG
− Participated in two interoperability
events in 2012
− Two interoperability frameworks
Communication framework
• 802.15.4g interoperability
Application and networking
• Networking layers
• COAP
• Application layer encoding
• The WI-SUN Alliance
TM
External Use 29
Products & Solutions
• Smart Object - Smart Grid technologies are field proven
• Dual-path redundant mesh with 100% coverage capabilities
TM
External Use 30
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart
Objects Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 33
Million Scale Device Management
IoT Connectivity Challenges • Connect to and gather intelligence from disparate
networks and devices
• Transition to standards based technologies
• Sheer number of networked endpoints
• Need to locate & diagnose faults in devices
• Manage endpoint irrespective of its type (mainline powered, battery) and connectivity (cellular, mesh)
• Need secure, scalable and affordable solution
AirSync™ offers: Massive million+ scale, secure, exception based
management
Intelligent distribution of device configuration, firmware etc.
Integrated device management platform (IOT, AMI, Distribution)
Manages any IP/6LoWPAN capable device
Agnostic to technology, protocol or topology
Cloud based or shared control
Modular architecture (above)
Device dashboard (left)
Real time Processing
Visualization
User interface(Web browser)
Northbound Interface
AirSync Visualization(AVS)
AirSync Application Servers
LogServer(LOG)
Topology Server(TOPO)
firmware Upgrade Server
(FUS)
Configuration Managemnt
(CM)
Fault Management
Server(FM)
Statistic Server(STAT)
Security Server
Database(s)
AMP GatewayAMP
Gateway
AMP GatewaySNMPGateway
AMP GatewayCoAP Gateway
AMP Devices
SNMP Devices
CoAP devices
AMP GatewayHTTP Gateway
HTTP devices
AirSync is trademarked and licensed to Proximetry
TM
External Use 34
What is AirSync 5™?
• AirSync™ manages the most crucial applications in the Internet of Things (IoT)
− Designed for performance critical applications in machine networks
− Delivers secure, scalable, exception-based management of devices
− Large complex networks consisting of millions of devices… plus
• Vendor platform neutral
• Agnostic to device types (Wired/wireless technology, frequencies, & network topologies
− Smart meter modules, battery powered devices, routers, switches
− 4G LTE, 3G (CDMA/UMTS/HSPA), Wi-Fi, RF Mesh, …
− Routed, Mesh, Star, Point-to-Point, bridged, multicast/unicast
− Licensed or unlicensed
• Supports a broad range of deployment options
− Multi-tenant, single-tenant
− Cloud
− Shared control
TM
External Use 35
Key Features of AirSync
• Architected “ground up” for scalability: “1,000s” to 10M+ devices
• Partitioning of services to enable cloud based access
• Modular architecture that enables user to pick their choice of
applications (e.g. heartbeat, configuration, firmware etc.)
• Add-on “AirSync IoT extensions” that include topology and quality
of service aware algorithms
• Support for highly constrained battery powered devices
• Support for network endpoints and also for smartphones
• Support for standards – IETF 6LowPan, CoAP, IEEE 802.15.4
• Provides a rich set of data for data analytics
TM
External Use 36
Standards-Based Application Integration
Proximetry and partners offer a complete solution that meet the
requirements & scale of smart energy and IoT
Utility Data Center
(Head End)Concentrator/ Collection Point Utility End Point
WAN3G, MPLS, Private
Network
WAN3G, MPLS,
Private Network
PHY / MACIEEE 802.15.4, PLC
PHY / MACIEEE 802.15.4,
PLC
IPv4 / IPv6 IPv4 / IPv66LowPan /
IPv6 / IP proxy6LowPan / IPv6
UDP UDP and/or Proxy UDP
Security LayerDTLS
Security LayerDTLS
CoAP CoAP
Proximetry ServersData /
Management
Proximetry AppData / Management
Proximetry App: Intelligent Content
Distribution
Proximetry App:Local Event Processing
TM
External Use 37
Implementing AirSync in the Smart Energy Network
AirSync Server AirSync Console For utilities and service providers
SG
NMS
AirSync Agents for SGCs at edge of grid, in buildings and homes (3G, LTE, WiMAX, wi-fi, others)
AirSync Agents for base stations, routers, Pico-cells, etc. (3G, LTE, WiMAX, wi-fi, others)
TM
External Use 38
Extensibility & Scalability
• AirSync™ Apps are insulated
from network protocols
• Real time processing with
‘horizontal’ and ‘linear’ scalability
Real time Processing
Visualization
User interface(Web browser)
Northbound Interface
AirSync Visualization(AVS)
AirSync Application Servers
LogServer(LOG)
Topology Server(TOPO)
firmware Upgrade Server
(FUS)
Configuration Managemnt
(CM)
Fault Management
Server(FM)
Statistic Server(STAT)
Security Server
Database(s)AMP
GatewayM2M
Gateway
AMP GatewaySNMPGateway
AMP GatewayCoAP Gateway
M2M Devices
SNMP Devices
CoAP devices
AMP GatewayHTTP Gateway
HTTP devices
Java Based Rules Engine
TM
External Use 40
What Can AirSync™ Do for Your Device Endpoints?
• Integrated view of device status
• Cloud-based dashboard
• User Access Controls
• Summarization of status across device types
• Scalable device management
• Generate device data for data analytics
TM
External Use 41
Benefits of AirSync
• Improves the ability to upgrade to new networking technologies as
they emerge
• Improves the ability to choose from multiple vendors that meet the
same open standards and eliminate being tied to a proprietary
solution
• Increases back-up capabilities by leveraging private and/or public
network solutions
• Reduces training costs
• Reduces Total Cost-of-Ownership (TCO)
41
TM
External Use 42
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart Objects
Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 43
What is KW family?
• Extension of Kinetis line to include Wireless connectivity
• MKW2x IEEE-802.15.4 Radio for the 2.4 GHz space
• MKW01x Very flexible Radio for the Sub-GHz space
• Kinetis W is available today.
• More information available in the following link: http://www.freescale.com/webapp/sps/site/taxonomy.jsp?code=KINETIS_W_SERIES
TM
External Use 44
Choosing the Right Wireless Technology
2.4GHz Sub-GHz
• Range:
− ~ 30m indoor,
− ~ 100-300m outdoor
− Robust NWK protocols (Like ZigBee) enable multi hoping.
• High effective data rate
− 802.15.4 (250kbps)
• PWR consumption
− Less time on-air
− Years of battery life
− Quick TX/RX turnaround time
− Retries and ACKS mechanism
• Smaller Antenna Size
− 2.4 GHz ~ 3.1cm
• Global standards for the IoT
• Exhibits significantly longer range
− ~ 100m indoor,
− ~ 500-800m outdoor
− Better building penetration capability.
• Typically lower data rate
− 50 – 100kpbs
• Reduced power consumption
− Low interference = easier transmissions + fewer retries
− Years of battery life
• Antenna Size
− 433MHz ~17.3cm 915MHz ~8.2cm
• Proprietary standards Lower deployment and operating costs
TM
External Use 45
Kinetis KW01 Wireless MCU (Sub 1-GHz)
CPU
32-bit ARM Cortex M0+ 48MHz Core
128KB Flash and 16KB SRAM
Radio Transceiver, Sub 1-GHz
Supports 290-340MHz, 424-510MHz, and 862-
1020MHz frequency bands
FSK, GFSK, MSK, GMSK and OOK modulations
up to 600kbps
Up to -120dBm RX sensitivity @ 1.2kbps
-18 to +17dBm TX output power in steps of 1dBm
Ultra Low Power for Battery Operated Devices
Typical consumption
1.7µA standby
<130 µA/MHz CPU system run mode
16 mA RX peak
20 mA TX peak at 0 dBm, 33 mA at +10 dBm
Software
SMAC (Simple-MAC), user modifiable for
proprietary protocols
System
16-bit ADC, Capacitive Touch Sensing, I2C,
UART, SPI, Timers
Operating Range: 1.8V to 3.6V, -40C to +85C
TM
External Use 46
MKW01x Development Kits
• Modular Reference Board (MRB).
• Features
− Flash reprogramming and in-circuit hardware debugging, test points & jumpers.
− USB port on the MRB to interface with PC
− Reference design for RF matching networks on board.
− SMA connectors for RFIO or separate TX/RX.
− Out-of-box application with Radio Utility GUI and firmware.
− Quick Start Guide
− Can be mounted on TWR-RF which can in turn be installed in a TOWER system.
TM
External Use 48
Sub-1 GHz Protocol Stack Comparison
Feature SMAC 802.15.4g/e IPv6 Wireless
M-Bus
Typical Application Cable Replacement
Wireless Meter
Reading Internet of Things
M2M
Wireless Meter
Reading (Europe) Building Control
Medical
Standard Proprietary IEEE 802.15.4 6lowPAN EN 13757-4:2013
Network Stack No No Yes Yes
Network Profiles No No No No
Memory
Requirements 4-8K 32K 100K 16-32K
Network Topology
Point to Point Peer-to-Peer
IP
Point-to-Point
Star Tree
Star Mesh
Typical # of Nodes 2-100 2-100 Not limited 2-100
Data Rate 200 Kbps 50-200 Kbps 1-600Kbps 32-100 Kbps
Protocol Stack
Provider Freescale Available Q1’2014 Q2’2014 3rd Party
TM
External Use 49
KW01 Product Differentiator
Very low power suitable for battery operated equipments
−Cortex M0+ Breakthrough power efficiency
−Low-power features such as 100nA with radio configuration retention.
High Integration Level
−Includes the exclusive ARM Cortex M0+ core with up to 48MHz performance, embedded 128KB Flash and 16KB of RAM supporting wireless communication protocol + application in one chip
Demonstrates exceptional RF performance with a budget link up to +137dB
Flexibility and Compliancy with Multiple Standards
Full set of peripherals
−Offers multiple 16-bit timers, 13-bit port keyboard interrupt and Touch Sensing Interface, 16-bit ADC, SCI, I2C, SPI
TM
External Use 50
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart Objects
Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 52
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart Objects
Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 55
Prerequisites per each Station
• 1 Laptop − IAR v7.10 or higher
− Freescale CDC driver
− Tera Term
• 2 KW01-MRB − 1 Mini USB cable
− 1 Sub-Ghz antenna
− NB: Connect Sub-Ghz antenna to the SMA jack.
• 1 REM board − Type B USB cable
• 1 J-Link Debugger interface − J-Link Adapter Cortex M
TM
External Use 56
Station configuration
Ipv6 Stack on MKW01
• Data Concentrator
• PAN ID: 0x7801
• Channel: 11
• Ipv6 Link Local Address:
fe80::1322:3344:5566:0001
• Ipv6 Global Address:
2003::d0b8:1322:3344:5566:0001
• Short address:
0x0021
• Extended address:
0x1122334455667701
• Node
• PAN ID: 0x7801
• Channel: 11
• Ipv6 Link Local Address:
fe80::8372:6354:4536:0001
• Ipv6 Global Address:
2003::d0b8:8372:6354:4536:0001
• Short address:
0x0101
• Extended address:
0x8172635445362701
TM
External Use 58
Step 1: Create a folder in local drive and unzip project
• Create a Folder in C: named “uFlexIP”:
C:\uFlexIP
• Unzip project into folder
TM
External Use 59
Step 2: Locate and open workspace’s file
• Workspace’s path:
<Project’s path>\app\nwk_ip\uFlexIp_twrkw01xxx_32MHz\
uFlexIp_twrkw01xxx.eww
• Open workspace with IAR 7.10 or later
TM
External Use 61
Step 4: Define if the device is going to act as the
Concentrator or as a Node. Only 1 device at a time.
Concentrator
#define DATA_CONCENTRATOR 1
#define NODE_PAN1 0
#define NODE_PAN2 0
#define IPv4_ENABLED 0
#define IPv6_ENABLED 1
#define ENABLE_802154_IF 1
#define DC_DUAL_PAN 0
#define ENABLE_ENET_IF 0
#define SLP_TEST 0
#define SOCK_DEMO 1
#define FSCI_DEMO 0
#define HTTPSERVER_DEMO 0
#define DUAL_PAN_ZPRO_NWKIP 0
#define THROUGHPUT_DEMO 0
#define IPV6_HOST_TEST_MODE 0
Node
#define DATA_CONCENTRATOR 0
#define NODE_PAN1 1
#define NODE_PAN2 0
#define IPv4_ENABLED 0
#define IPv6_ENABLED 1
#define ENABLE_802154_IF 1
#define DC_DUAL_PAN 0
#define ENABLE_ENET_IF 0
#define SLP_TEST 0
#define SOCK_DEMO 1
#define FSCI_DEMO 0
#define HTTPSERVER_DEMO 0
#define DUAL_PAN_ZPRO_NWKIP 0
#define THROUGHPUT_DEMO 0
#define IPV6_HOST_TEST_MODE 0
TM
External Use 62
Step 5: Set device’s PAN ID and Channel
(See your station settings) Concentrator or Node
#if (DATA_CONCENTRATOR || NODE_PAN1)
#if DUAL_PAN_ZPRO_NWKIP
#define CHANNEL1_802154 25
#define PANID1 0x4932
#else
#define CHANNEL1_802154 11
#define PANID1 0x7801
#endif
TM
External Use 63
Step 6: Set device’s IPv6 addresses and Short Address
(See your station settings) Concentrator
#if (DATA_CONCENTRATOR)
#define SRC_SHORT_ADDR_PAN1 0x0021
#define SRC_EXT_ADDR_PAN1 0x1122334455667701
#if (DC_DUAL_PAN)
#define SRC_SHORT_ADDR_PAN2 0x002B
#define SRC_EXT_ADDR_PAN2 0x8877665544332211
#endif
Node
#if (NODE_PAN1)
#define SRC_SHORT_ADDR_PAN1 0x0101
#define SRC_EXT_ADDR_PAN1 0x8172635445362701
#endif
TM
External Use 65
Step 7: IAR – Build and Compile the Application
Rebuild and compile the application by clicking Rebuild All
TM
External Use 66
Step 8: Connect board to J-Link cable
Connect board’s JTAG port to J-Link debugger interface
TM
External Use 67
Step 9: IAR – Download the Application
Download the application by clicking the debug icon.
TM
External Use 68
Step 10: IAR – Stop the Debugger
After the download is performed, you will be prompted to the debugger view.
Stop the debugger by clicking on “Stop Debugging”.
TM
External Use 69
Step 11: Reset the board
Unplug the J-Link interface from the board and press the Reset
button on the board.
TM
External Use 70
Step 12: Repeat steps 4 – 11 with the other device
(Concentrator or Node)
Only one device can be flashed at a time. If you already flashed the
Concentrator device, proceed to configure the settings for the Node
device.
TM
External Use 72
Stack Overview - Sockets communication
UDP TCP
Transport Layer
Application Layer
User’s main()
IP Layer
Sockets api
socket
UDP TCP
Transport Layer
Application Layer
User’s main()
IP Layer
Sockets api
socket Socket data
exchange
Media Interface Media Interface
Ap
p
Ta
sk
IP
Ta
sk
Me
dia
IF
Ta
sk
Connection data
exchange
TM
External Use 73
Data flow
Application Sockets API App data
Allocate
memory
buffer and
copy app
data
Transport
Layer
Send
message
to IP Task
App data
memory
buffer
IP Layer Direct call
Transport
Hdr +
App data
Media
Interface
Direct call
IP Hdr +
Transport
Hdr +
App data
Direct call
TX path
RX path
Media
Interface IP Layer
IP
datagram
Transport
Layer
Send
message
to IP Task
Send
message
to IP Task
IP
datagram
with offset
to start of
Transport
Data
Keep App
data in RX
queue of the
connection
Application Socket API
Socket API
Socket recv non
blocking call
Application
Unblock Task and
pass App data
Socket recv
blocking call.
Set callback
and block
App Task
App data if
available
Direct
call
Direct
call
1’st case App data
App
data, if
available
2’nd case
TM
External Use 74
Step 13: Hardware setup
The following setup must be in place before running the demo
• KW01-MRB Concentrator, stand-alone
• KW01-MRB + REM board Node
• Connected to PC thorugh USB
Top
Concentrator
Node
TM
External Use 75
Step 14: Access the concentrator’s shell interface
• Open Tera Term
• Go to Setup -> Serial port
• Change the Baud rate to 115200
• Press “OK”
Top
TM
External Use 76
Step 15: Access the concentrator’s shell interface
• Go to File -> New connection
• Select “Serial” connection
• Select the appropriate port
• Press “OK”
Top
TM
External Use 77
Step 16: Concentrator’s shell interface
• Type ‘help’. You will see the list of available commands.
Top
TM
External Use 78
Step 17: Interface configuration
• Use the ‘ifconfig all’ command to verify the device’s Ipv6 addresses
Shell> ifconfig all
Note: Type “help ifconfig” to see available options
Top
TM
External Use 79
Step 18: Ping command
• Use the ‘ping’ command to ping a Node on its Global Address
Shell> ping 2003::d0b8:8372:6354:4536:2701 1000 t
Press “Ctrl + C” to stop ping requests
Note: Type “help ping” to see available options
Top
3rd parameter
indicates that
ping requests will
continue
TM
External Use 80
Step 19: Ping6 command
• Use the ‘ping6’ command to ping a Node on its Global Address
Shell> ping6 2003::d0b8:8372:6354:4536:2701
Press “Ctrl + C” to stop ping requests
Note: Type “help ping” to see available options
Top
Only IPv6 with
no additional options:
Infinite ping requests
-c parameter:
Send the specified
number of ping requests
-s parameter:
Size of the payload
In the ping packet
TM
External Use 81
Step 20: Open a socket
• Use the ‘socket open’ command to open a socket to communicate with a remote node.
Shell> socket open udp 2003::d0b8:8372:6354:4536:2701 1234
Note: Type “help socket” to see available options
Top
Client’s port
responding to
socket requests
TM
External Use 82
Step 21: Send a command to a socket
• Use the ‘socket send’ command to send a command to an opened socket.
Shell> socket send 0 led1on
Verify that the corresponding LED was affected in Node’s REM board
Note: Type “help socket” to see available options
Top
TM
External Use 83
Step 22: Send a command to a socket
• Use the ‘socket poll’ command to start polling the Node’s measures, the socket must be already opened.
Shell> socket poll 0 1000
Verify that status is printed on concentrator’s shell and Node’s LED flashes on each status report
Note: Type “help socket” to see available options
Top
Time interval
between each
polling
TM
External Use 84
Step 23: Close a socket
• Use the ‘socket close’ command to close a previously opened
socket
Shell> socket close 0
Note: Type “help socket” to see available options
Top
Socket ID
TM
External Use 85
Agenda
• Smart Cities & the Internet of Things Overview
• Freescale Partnerships to Enable the Smart Objects
Concept
− Smart Objects platform by Centero
− AirSync5 software by Proximetry
• Freescale Kinetis W Family
• Hands-On Training
− SMAC: Radio utility
− IP stack: Sockets over IPv6 application
• Summary
TM
External Use 86
Summary
• Effectively describe at a high level the “Internet of Things” and what
makes a “Smart Object” smart
• Describe the role of IETF and IEEE standards in the creation of “Smart
Object” networks
• Describe the basics of the Freescale/Nivis joint Smart Object
Demonstration Kit
TM
© 2014 Freescale Semiconductor, Inc. | External Use
www.Freescale.com