SlideShare a Scribd company logo
1 of 17
Download to read offline
TI Smart Meter Board
        Zin Thein Kyaw
Texas Instruments- Metering BU


 Smart Grid Electronics Forum
     October 18-20, 2010
        San Jose, CA
Agenda
• Introduction
• ZigBee Smart Energy 101
• Example SE HAN Network
• Anatomy of the Smart Meter Board
• Anatomy of the In-Home Display
• Exchanging messages between host processor
  and ZigBee module
• Conclusion
Introduction
• Texas Instruments “smart meter board” showcases embedded
  processing, metrology, and communication modules for NAN
  (neighborhood) and HAN (home area) networks
• Measures a real load on the mains connection and
  communicate the reading to any in home display using ZigBee
• The ZigBee module uses the ZigBee Smart Energy profile for
  over-the-air application level messaging
• Examine use cases for ZigBee Smart Energy as a
  communications protocol in the home area network with some
  ZigBee Smart Energy 101
• Discuss how to tunnel application level messages between the
  host processor and the ZigBee module to achieve
  communication between the smart meter and the in-home
  display
ZigBee Smart Energy 101
• ZigBee Smart Energy is a ZigBee Alliance public
  application profile that defines commands and attributes
  for the following device types:
   – Energy Service Portal (ESP) – The ESP is the device that acts as
     a gateway into the home and manages the ZigBee Smart Energy
     HAN
   – In-Premise Display (IPD) – The IPD is a device that presents
     energy consumption data and price information to the end user
     either by text or graphical means
   – Metering Device – These are typically metering devices such as
     gas, water, and heat meters
ZigBee Smart Energy 101 (cont.)
•   Programmable Communicating Thermostat (PCT) – Device used to
    control the cooling and heating systems of the home
•   Load Control Device – A device such as a pool pump or water heater
    that is capable of receiving demand response and load control events
    from the utility head end
•   Smart Appliance – Like a load control device, a smart appliance
    could be a washer, dryer, oven that is capable of receiving demand
    response or pricing events from the utility head end
•   Range Extender – A range extender has no other purpose than to be
    a router device for other devices in the HAN
ZigBee Smart Energy 101 (cont.)
• A cluster is a ZigBee term for a collection of commands
  and attributes specific to a particular behavior
• In ZigBee Smart Energy, the following clusters are
  supported:
   – Price – Provides functionality to convey price information from the
     utility head end
   – Demand Response and Load Control (DRLC) - Provides
     functionality for devices such as thermostats and other devices
     that perform load control
   – Simple Metering - Provides functionality to retrieve usage data
     from electric, gas, water metering devices
ZigBee Smart Energy 101 (cont.)
• Message – Provides functionality to deliver text messages
• Time – Provides functionality to synchronize time between the time
  server (ESP) and other devices. UTC is used as the common time
  base
• Key Establishment – Provides functionality for establishing a link key
  for secure application level communication between pairs of devices
Example SE HAN Network
                In  remise  isplay  hows  onsumption,  rice  ignals
                  P       D       s     c             p    s
                           and  ext messages  rom  SP
                               t             f   E
                                                                                                          •   All communication with the ESP
                                                                                                              (e-meter) is secured at the
                                                                             In‐Premise  Display  (IPD)
                                                                                                              application layer with the link
                    ESP Sends PCT L oad Control Event to c ontrol HVAC                                        key established via Certificate
                                                                                                              Based Key Establishment
                                                                              Programmable
                                                                              Communicating
                                                                                                              (CBKE)
                                                                             Thermostat  (PCT)
                                                                                                          •   AES-128 block cipher is used to
                                      Smart  ppliances  hows  rice,  ext
                                           A          s      p
                                             messages  rom  SP
                                                       f   E
                                                                   t
                                                                                                              encrypt packets, the key is the
                                                                                                              established link key

   ESP  (E‐Meter)                                                             Smart  Appliance



                          Simple  etering  evice  eports  urrent
                                M        D      R       C
                         Summation  elivered  ttribute  eriodically
                                   D         A        P




                                                                           Simple  Metering  Device
                                                                              (Gas, Water, Heat)
Anatomy of the Smart Meter Board
•   To provide real time metering
    updates to the ZigBee module,
    the applications processor can
    use either UART or SPI
•   A device such as a ZigBee
    Smart Energy in-home display
    (IHD) can query the smart
    meter board for metering data
    such as instantaneous demand
•   This information is delivered to
    the in-home display as the
    InstantaneousDemand attribute
    (defined within the ZigBee
    Smart Energy Profile’s simple
    metering cluster)
Anatomy of the In-Home Display
•   IHD reference design based on
    the MSP430F4619 and the
    CC2530 ZigBee SoC (System-
    on-Chip)
•   The ZigBee Smart Energy
    firmware inside the CC2530 is
    queries the smart meter board
    for the instantaneous demand
    and output the values to the
    MSP430 application processor
    via UART
•   The MSP430 displays the
    instantaneous demand value on
    the LCD
System Block Diagram
                   Smart Meter
                     Board         Read Attribute Request for     In‐Home Display
                                    Instantaneous Demand




                              ZB   Read Attribute Response for   ZB        MSP430
                                     Instantaneous Demand




                      MSP430                                                 LCD




                        LCD




                    LOAD




•   Shows system level interaction between the Smart Meter Board and
    the In-Home Display using the ZigBee Smart Energy Profile
•   The IHD performs a read attribute request to query for the
    instantaneous demand attribute, receives the value in the read
    attribute response, then tunnels the data to the MSP430 which
    displays it on the LCD
•   The protocol used by the host processor to facilitate this transaction is
    discussed next
Exchanging messages between host processor
and ZigBee module
• The TI Z-Stack provides a transport layer to allow
  a host processor to exchange application data
  with the application inside the ZigBee module
• This transport layer is called the “Z-stack Monitor
  and Test API”, or “MT” for short
• The protocol format discussed here assumes
  UART communications, although SPI can be
  supported as well with some minor differences to
  the protocol format (i.e. SOF and FCS bytes are
  not required for SPI mode)
Exchanging messages between host processor
and ZigBee module (cont.)




•   SOF (Start of Frame): This is a one byte field with value equal to 0xFE
    that defines the start of each general serial packet
•   MT CMD (Monitor Test Command): This contains 1 byte for the length
    of the actual data, 2 bytes for the MT command Id, and the data
    ranging from 0-250 bytes
•   FCS (Frame Check Sequence): This is a one byte field that is used to
    ensure packet integrity. This field is computed as an XOR of all the
    bytes in the message starting with LEN field and through the last byte
    of data. The receiver XORs all the received data bytes as indicated
    above and then XORs the received FCS field. If the sum is not equal
    to zero, the received packet is in error
Exchanging messages between host processor
and ZigBee module (cont.)
•   To tunnel messages into the Z-Stack          /****************************************************************
                                                  * @fn        esp_ProcessAppMsg
    application, the host processor uses the      *
    APP_MSG MT command                            * @brief     Process MT SYS APP MSG to retrieve link key
                                                  *
                                                  * @param     msg - pointer to message
                                                  *
                                                  * @return none
                                                  */
                                                 static void esp_ProcessAppMsg( uint8 *msg )
                                                 {
•   The host processor application can create       switch (msg[6])
                                                    {
    its own payload format within the                 case SET_INST_DEMAND: // set attribute data for instantaneous
    highlighted “Message” field that has an             demand
                                                        espInstantaneousDemand = BUILD_UINT24(msg[7], msg[8],
    associated “MsgLen”                                 msg[9]);
•   In this example, the Z-Stack application            break;
                                                      case USER_DEFINED_CMD:
    sees a ‘SET_INST_DEMAND’ in the first               // do something
    byte of the “Message” payload to mean           }
                                                        break;

    that this is a set of the local              }
    InstantaneousDemand attribute
•   The MSP430 sends this command every
    couple of seconds to update this attribute
    in the ZigBee module
•   The ZigBee module on the IHD
    asynchronously queries for this attribute
    over the air using a “read attribute
    request”
Exchanging messages between host processor
and ZigBee module (cont.)
•   The ZigBee module on the IHD shuttles the payload data to the MSP430 for
    display using the DEBUG_MSG MT command




•   The DEBUG_MSG MT command is a very convenient way to tunnel application
    messages received over the ZigBee network back to the host processor

•   In this example, the response to the read attribute request containing the
    instantaneous demand metering data is sent via UART using the DEBUG_MSG
    packet format

•   The Z-stack application can call the following API function at any time to tunnel
    application payload messages to the host processor:

     –   MT_BuildAndSendZToolResponse(((uint8)MT_RPC_CMD_AREQ | (uint8)MT_RPC_SYS_DBG),
                                  MT_DEBUG_MSG, METER_DATA_LEN, meterData);
Conclusion
• Provided an overview of the ZigBee Smart Energy
  application profile and examined use cases in the
  HAN
• Discussed the system level interactions between
  the smart meter board and in-home display to
  provide current consumption data to the user
• Discussed how to use the Z-Stack MT Interface,
  which provides an easy way to tunnel messages
  to and from a host processor
References
• ZigBee Smart Energy Profile Specification,
  075356r15ZB_AMI_PTG-AMI_Profile
  Specification.pdf, ZigBee Alliance
• ZigBee Specification, 053474r17ZB_TSC-ZigBee-
  Specification.pdf, ZigBee Alliance
• Z-Stack Smart Energy Developer’s Guide,
  SWRA216, Texas Instruments
• Z-Stack Monitor and Test API, SWRA198, Texas
  Instruments

More Related Content

What's hot

C211824
C211824C211824
C211824irjes
 
Core Stor Ip Recording V1
Core Stor Ip Recording V1Core Stor Ip Recording V1
Core Stor Ip Recording V1Firoze Hussain
 
Bluetooth LE Button
Bluetooth LE ButtonBluetooth LE Button
Bluetooth LE Buttondongbuluo
 
Software Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGASoftware Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGAIRJET Journal
 
Cell Phone Controlled Home Automation System using DTMF Technology
Cell Phone Controlled Home Automation System using DTMF TechnologyCell Phone Controlled Home Automation System using DTMF Technology
Cell Phone Controlled Home Automation System using DTMF TechnologyTaufique Sekh
 
Konfigurasi SCADA APD Semarang
Konfigurasi SCADA APD SemarangKonfigurasi SCADA APD Semarang
Konfigurasi SCADA APD SemarangAngga Rajasa
 
CommSEC - InterLINK products line (EN)
CommSEC - InterLINK products line (EN)CommSEC - InterLINK products line (EN)
CommSEC - InterLINK products line (EN)iBLio
 
Drp393
Drp393Drp393
Drp393ciperi
 
Matrix Telecom Solutions: ETERNITY PLCC EPAX
Matrix Telecom Solutions: ETERNITY PLCC EPAX Matrix Telecom Solutions: ETERNITY PLCC EPAX
Matrix Telecom Solutions: ETERNITY PLCC EPAX Matrix Comsec
 

What's hot (18)

GENBAND A2 Phone 8840
GENBAND A2 Phone 8840GENBAND A2 Phone 8840
GENBAND A2 Phone 8840
 
C211824
C211824C211824
C211824
 
Core Stor Ip Recording V1
Core Stor Ip Recording V1Core Stor Ip Recording V1
Core Stor Ip Recording V1
 
(EN) eBACgw-Meteo BACnet gateway for weather information
(EN) eBACgw-Meteo BACnet gateway for weather information(EN) eBACgw-Meteo BACnet gateway for weather information
(EN) eBACgw-Meteo BACnet gateway for weather information
 
Bluetooth LE Button
Bluetooth LE ButtonBluetooth LE Button
Bluetooth LE Button
 
Smart home
Smart homeSmart home
Smart home
 
Software Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGASoftware Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGA
 
Cell Phone Controlled Home Automation System using DTMF Technology
Cell Phone Controlled Home Automation System using DTMF TechnologyCell Phone Controlled Home Automation System using DTMF Technology
Cell Phone Controlled Home Automation System using DTMF Technology
 
Ov3425972602
Ov3425972602Ov3425972602
Ov3425972602
 
TMDXEVM8148
TMDXEVM8148 TMDXEVM8148
TMDXEVM8148
 
Konfigurasi SCADA APD Semarang
Konfigurasi SCADA APD SemarangKonfigurasi SCADA APD Semarang
Konfigurasi SCADA APD Semarang
 
CommSEC - InterLINK products line (EN)
CommSEC - InterLINK products line (EN)CommSEC - InterLINK products line (EN)
CommSEC - InterLINK products line (EN)
 
Drp393
Drp393Drp393
Drp393
 
Set Top Box
Set Top BoxSet Top Box
Set Top Box
 
GENBAND A2 Phone 8830
GENBAND A2 Phone 8830GENBAND A2 Phone 8830
GENBAND A2 Phone 8830
 
Matrix Telecom Solutions: ETERNITY PLCC EPAX
Matrix Telecom Solutions: ETERNITY PLCC EPAX Matrix Telecom Solutions: ETERNITY PLCC EPAX
Matrix Telecom Solutions: ETERNITY PLCC EPAX
 
Zynq architecture
Zynq architectureZynq architecture
Zynq architecture
 
DCM
DCMDCM
DCM
 

Viewers also liked

Final ieee 2012 embedded list
Final ieee 2012 embedded listFinal ieee 2012 embedded list
Final ieee 2012 embedded listtema_solution
 
Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless Living Online
 
SNMP Network Management the Essentials
SNMP Network Management the EssentialsSNMP Network Management the Essentials
SNMP Network Management the EssentialsLiving Online
 
Texas Instruments’ Acquisition of National Semiconductor
Texas Instruments’ Acquisition of  National SemiconductorTexas Instruments’ Acquisition of  National Semiconductor
Texas Instruments’ Acquisition of National SemiconductorKaran Jaidka
 
ZigBee Smart Energy Security Securing The HAN Network
ZigBee Smart Energy Security   Securing The HAN NetworkZigBee Smart Energy Security   Securing The HAN Network
ZigBee Smart Energy Security Securing The HAN NetworkZin Kyaw
 
Practical Fundamentals of E-Manufacturing, MES and Supply
Practical Fundamentals of E-Manufacturing, MES and SupplyPractical Fundamentals of E-Manufacturing, MES and Supply
Practical Fundamentals of E-Manufacturing, MES and SupplyLiving Online
 
Programmable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsProgrammable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsLiving Online
 
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...Living Online
 
Practical Power Distribution
Practical Power DistributionPractical Power Distribution
Practical Power DistributionLiving Online
 
Plc Programming Fundamentals
Plc Programming FundamentalsPlc Programming Fundamentals
Plc Programming FundamentalsLiving Online
 
Introduction to zigbee
Introduction to zigbeeIntroduction to zigbee
Introduction to zigbeeAmit Dixit
 
Introduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBeeIntroduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBeeChiu-Hao Chen (Ted)
 
Energy Management Systems in the Home: Gateway to the Customer HAN
Energy Management Systems in the Home: Gateway to the Customer HANEnergy Management Systems in the Home: Gateway to the Customer HAN
Energy Management Systems in the Home: Gateway to the Customer HANZin Kyaw
 
Practical Troubleshooting and Problem Solving of Modbus Protocols
Practical Troubleshooting and Problem Solving of Modbus ProtocolsPractical Troubleshooting and Problem Solving of Modbus Protocols
Practical Troubleshooting and Problem Solving of Modbus ProtocolsLiving Online
 
Practical Distributed Control Systems (DCS) for Engineers and Technicians
Practical Distributed Control Systems (DCS) for Engineers and TechniciansPractical Distributed Control Systems (DCS) for Engineers and Technicians
Practical Distributed Control Systems (DCS) for Engineers and TechniciansLiving Online
 

Viewers also liked (18)

Final ieee 2012 embedded list
Final ieee 2012 embedded listFinal ieee 2012 embedded list
Final ieee 2012 embedded list
 
Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless
 
SNMP Network Management the Essentials
SNMP Network Management the EssentialsSNMP Network Management the Essentials
SNMP Network Management the Essentials
 
Texas Instruments’ Acquisition of National Semiconductor
Texas Instruments’ Acquisition of  National SemiconductorTexas Instruments’ Acquisition of  National Semiconductor
Texas Instruments’ Acquisition of National Semiconductor
 
ZigBee Smart Energy Security Securing The HAN Network
ZigBee Smart Energy Security   Securing The HAN NetworkZigBee Smart Energy Security   Securing The HAN Network
ZigBee Smart Energy Security Securing The HAN Network
 
Practical Fundamentals of E-Manufacturing, MES and Supply
Practical Fundamentals of E-Manufacturing, MES and SupplyPractical Fundamentals of E-Manufacturing, MES and Supply
Practical Fundamentals of E-Manufacturing, MES and Supply
 
Programmable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsProgrammable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA Systems
 
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
 
Texas instruments mba pricing project
Texas instruments mba pricing projectTexas instruments mba pricing project
Texas instruments mba pricing project
 
ZigBee CC2530
ZigBee CC2530 ZigBee CC2530
ZigBee CC2530
 
Practical Power Distribution
Practical Power DistributionPractical Power Distribution
Practical Power Distribution
 
Plc Programming Fundamentals
Plc Programming FundamentalsPlc Programming Fundamentals
Plc Programming Fundamentals
 
Introduction to zigbee
Introduction to zigbeeIntroduction to zigbee
Introduction to zigbee
 
Introduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBeeIntroduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBee
 
Texas instruments
Texas instrumentsTexas instruments
Texas instruments
 
Energy Management Systems in the Home: Gateway to the Customer HAN
Energy Management Systems in the Home: Gateway to the Customer HANEnergy Management Systems in the Home: Gateway to the Customer HAN
Energy Management Systems in the Home: Gateway to the Customer HAN
 
Practical Troubleshooting and Problem Solving of Modbus Protocols
Practical Troubleshooting and Problem Solving of Modbus ProtocolsPractical Troubleshooting and Problem Solving of Modbus Protocols
Practical Troubleshooting and Problem Solving of Modbus Protocols
 
Practical Distributed Control Systems (DCS) for Engineers and Technicians
Practical Distributed Control Systems (DCS) for Engineers and TechniciansPractical Distributed Control Systems (DCS) for Engineers and Technicians
Practical Distributed Control Systems (DCS) for Engineers and Technicians
 

Similar to Texas Instruments Smart Meter Board

Training Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITEDTraining Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITEDHimanshiSingh71
 
FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...ASHIMA GUPTA
 
Embedded systems unit3
Embedded systems unit3Embedded systems unit3
Embedded systems unit3baskaransece
 
Restful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over EthernetRestful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over Ethernetijsrd.com
 
Robotic Project - published paper
Robotic Project - published paperRobotic Project - published paper
Robotic Project - published paperRobert Rosier
 
ETHERNET PACKET PROCESSOR FOR SOC APPLICATION
ETHERNET PACKET PROCESSOR FOR SOC APPLICATIONETHERNET PACKET PROCESSOR FOR SOC APPLICATION
ETHERNET PACKET PROCESSOR FOR SOC APPLICATIONcscpconf
 
Bluetooth based home automation system
Bluetooth based home automation systemBluetooth based home automation system
Bluetooth based home automation systemVeer Singh shakya
 
Ip interfaces by faststream technologies
Ip interfaces by faststream technologiesIp interfaces by faststream technologies
Ip interfaces by faststream technologiesVishalMalhotra58
 
Ppt on six month training on embedded system & IOT
Ppt on six month training on embedded system & IOTPpt on six month training on embedded system & IOT
Ppt on six month training on embedded system & IOTpreetigill309
 
Week2 fundamental of IoT
Week2 fundamental of IoTWeek2 fundamental of IoT
Week2 fundamental of IoTsomphongt
 
Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...TELKOMNIKA JOURNAL
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded systemece svit
 
intership ppt see.pptx
intership ppt see.pptxintership ppt see.pptx
intership ppt see.pptxManojG81
 

Similar to Texas Instruments Smart Meter Board (20)

Training Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITEDTraining Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITED
 
Ff24977979
Ff24977979Ff24977979
Ff24977979
 
FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...
 
Embedded systems unit3
Embedded systems unit3Embedded systems unit3
Embedded systems unit3
 
Restful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over EthernetRestful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over Ethernet
 
Ju2416921695
Ju2416921695Ju2416921695
Ju2416921695
 
Embedded two mark question
Embedded two mark questionEmbedded two mark question
Embedded two mark question
 
ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)
 
40120140504013
4012014050401340120140504013
40120140504013
 
Robotic Project - published paper
Robotic Project - published paperRobotic Project - published paper
Robotic Project - published paper
 
ETHERNET PACKET PROCESSOR FOR SOC APPLICATION
ETHERNET PACKET PROCESSOR FOR SOC APPLICATIONETHERNET PACKET PROCESSOR FOR SOC APPLICATION
ETHERNET PACKET PROCESSOR FOR SOC APPLICATION
 
Bluetooth based home automation system
Bluetooth based home automation systemBluetooth based home automation system
Bluetooth based home automation system
 
Ip interfaces by faststream technologies
Ip interfaces by faststream technologiesIp interfaces by faststream technologies
Ip interfaces by faststream technologies
 
Ppt on six month training on embedded system & IOT
Ppt on six month training on embedded system & IOTPpt on six month training on embedded system & IOT
Ppt on six month training on embedded system & IOT
 
Nic -cst
Nic -cstNic -cst
Nic -cst
 
Week2 fundamental of IoT
Week2 fundamental of IoTWeek2 fundamental of IoT
Week2 fundamental of IoT
 
Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded system
 
Stb
StbStb
Stb
 
intership ppt see.pptx
intership ppt see.pptxintership ppt see.pptx
intership ppt see.pptx
 

Texas Instruments Smart Meter Board

  • 1. TI Smart Meter Board Zin Thein Kyaw Texas Instruments- Metering BU Smart Grid Electronics Forum October 18-20, 2010 San Jose, CA
  • 2. Agenda • Introduction • ZigBee Smart Energy 101 • Example SE HAN Network • Anatomy of the Smart Meter Board • Anatomy of the In-Home Display • Exchanging messages between host processor and ZigBee module • Conclusion
  • 3. Introduction • Texas Instruments “smart meter board” showcases embedded processing, metrology, and communication modules for NAN (neighborhood) and HAN (home area) networks • Measures a real load on the mains connection and communicate the reading to any in home display using ZigBee • The ZigBee module uses the ZigBee Smart Energy profile for over-the-air application level messaging • Examine use cases for ZigBee Smart Energy as a communications protocol in the home area network with some ZigBee Smart Energy 101 • Discuss how to tunnel application level messages between the host processor and the ZigBee module to achieve communication between the smart meter and the in-home display
  • 4. ZigBee Smart Energy 101 • ZigBee Smart Energy is a ZigBee Alliance public application profile that defines commands and attributes for the following device types: – Energy Service Portal (ESP) – The ESP is the device that acts as a gateway into the home and manages the ZigBee Smart Energy HAN – In-Premise Display (IPD) – The IPD is a device that presents energy consumption data and price information to the end user either by text or graphical means – Metering Device – These are typically metering devices such as gas, water, and heat meters
  • 5. ZigBee Smart Energy 101 (cont.) • Programmable Communicating Thermostat (PCT) – Device used to control the cooling and heating systems of the home • Load Control Device – A device such as a pool pump or water heater that is capable of receiving demand response and load control events from the utility head end • Smart Appliance – Like a load control device, a smart appliance could be a washer, dryer, oven that is capable of receiving demand response or pricing events from the utility head end • Range Extender – A range extender has no other purpose than to be a router device for other devices in the HAN
  • 6. ZigBee Smart Energy 101 (cont.) • A cluster is a ZigBee term for a collection of commands and attributes specific to a particular behavior • In ZigBee Smart Energy, the following clusters are supported: – Price – Provides functionality to convey price information from the utility head end – Demand Response and Load Control (DRLC) - Provides functionality for devices such as thermostats and other devices that perform load control – Simple Metering - Provides functionality to retrieve usage data from electric, gas, water metering devices
  • 7. ZigBee Smart Energy 101 (cont.) • Message – Provides functionality to deliver text messages • Time – Provides functionality to synchronize time between the time server (ESP) and other devices. UTC is used as the common time base • Key Establishment – Provides functionality for establishing a link key for secure application level communication between pairs of devices
  • 8. Example SE HAN Network In  remise  isplay  hows  onsumption,  rice  ignals P D s c p s and  ext messages  rom  SP t f E • All communication with the ESP (e-meter) is secured at the In‐Premise  Display  (IPD) application layer with the link ESP Sends PCT L oad Control Event to c ontrol HVAC key established via Certificate Based Key Establishment Programmable Communicating (CBKE) Thermostat  (PCT) • AES-128 block cipher is used to Smart  ppliances  hows  rice,  ext A s p messages  rom  SP f E t encrypt packets, the key is the established link key   ESP  (E‐Meter) Smart  Appliance Simple  etering  evice  eports  urrent M D R C Summation  elivered  ttribute  eriodically D A P Simple  Metering  Device (Gas, Water, Heat)
  • 9. Anatomy of the Smart Meter Board • To provide real time metering updates to the ZigBee module, the applications processor can use either UART or SPI • A device such as a ZigBee Smart Energy in-home display (IHD) can query the smart meter board for metering data such as instantaneous demand • This information is delivered to the in-home display as the InstantaneousDemand attribute (defined within the ZigBee Smart Energy Profile’s simple metering cluster)
  • 10. Anatomy of the In-Home Display • IHD reference design based on the MSP430F4619 and the CC2530 ZigBee SoC (System- on-Chip) • The ZigBee Smart Energy firmware inside the CC2530 is queries the smart meter board for the instantaneous demand and output the values to the MSP430 application processor via UART • The MSP430 displays the instantaneous demand value on the LCD
  • 11. System Block Diagram Smart Meter Board Read Attribute Request for In‐Home Display Instantaneous Demand ZB Read Attribute Response for ZB MSP430 Instantaneous Demand MSP430 LCD LCD LOAD • Shows system level interaction between the Smart Meter Board and the In-Home Display using the ZigBee Smart Energy Profile • The IHD performs a read attribute request to query for the instantaneous demand attribute, receives the value in the read attribute response, then tunnels the data to the MSP430 which displays it on the LCD • The protocol used by the host processor to facilitate this transaction is discussed next
  • 12. Exchanging messages between host processor and ZigBee module • The TI Z-Stack provides a transport layer to allow a host processor to exchange application data with the application inside the ZigBee module • This transport layer is called the “Z-stack Monitor and Test API”, or “MT” for short • The protocol format discussed here assumes UART communications, although SPI can be supported as well with some minor differences to the protocol format (i.e. SOF and FCS bytes are not required for SPI mode)
  • 13. Exchanging messages between host processor and ZigBee module (cont.) • SOF (Start of Frame): This is a one byte field with value equal to 0xFE that defines the start of each general serial packet • MT CMD (Monitor Test Command): This contains 1 byte for the length of the actual data, 2 bytes for the MT command Id, and the data ranging from 0-250 bytes • FCS (Frame Check Sequence): This is a one byte field that is used to ensure packet integrity. This field is computed as an XOR of all the bytes in the message starting with LEN field and through the last byte of data. The receiver XORs all the received data bytes as indicated above and then XORs the received FCS field. If the sum is not equal to zero, the received packet is in error
  • 14. Exchanging messages between host processor and ZigBee module (cont.) • To tunnel messages into the Z-Stack /**************************************************************** * @fn esp_ProcessAppMsg application, the host processor uses the * APP_MSG MT command * @brief Process MT SYS APP MSG to retrieve link key * * @param msg - pointer to message * * @return none */ static void esp_ProcessAppMsg( uint8 *msg ) { • The host processor application can create switch (msg[6]) { its own payload format within the case SET_INST_DEMAND: // set attribute data for instantaneous highlighted “Message” field that has an demand espInstantaneousDemand = BUILD_UINT24(msg[7], msg[8], associated “MsgLen” msg[9]); • In this example, the Z-Stack application break; case USER_DEFINED_CMD: sees a ‘SET_INST_DEMAND’ in the first // do something byte of the “Message” payload to mean } break; that this is a set of the local } InstantaneousDemand attribute • The MSP430 sends this command every couple of seconds to update this attribute in the ZigBee module • The ZigBee module on the IHD asynchronously queries for this attribute over the air using a “read attribute request”
  • 15. Exchanging messages between host processor and ZigBee module (cont.) • The ZigBee module on the IHD shuttles the payload data to the MSP430 for display using the DEBUG_MSG MT command • The DEBUG_MSG MT command is a very convenient way to tunnel application messages received over the ZigBee network back to the host processor • In this example, the response to the read attribute request containing the instantaneous demand metering data is sent via UART using the DEBUG_MSG packet format • The Z-stack application can call the following API function at any time to tunnel application payload messages to the host processor: – MT_BuildAndSendZToolResponse(((uint8)MT_RPC_CMD_AREQ | (uint8)MT_RPC_SYS_DBG), MT_DEBUG_MSG, METER_DATA_LEN, meterData);
  • 16. Conclusion • Provided an overview of the ZigBee Smart Energy application profile and examined use cases in the HAN • Discussed the system level interactions between the smart meter board and in-home display to provide current consumption data to the user • Discussed how to use the Z-Stack MT Interface, which provides an easy way to tunnel messages to and from a host processor
  • 17. References • ZigBee Smart Energy Profile Specification, 075356r15ZB_AMI_PTG-AMI_Profile Specification.pdf, ZigBee Alliance • ZigBee Specification, 053474r17ZB_TSC-ZigBee- Specification.pdf, ZigBee Alliance • Z-Stack Smart Energy Developer’s Guide, SWRA216, Texas Instruments • Z-Stack Monitor and Test API, SWRA198, Texas Instruments