Create smart places by using Azure Digital Twins

Smart places are physical environments that bring together connected devices and data sources. By using these environments, you can see and control: Products and systems. Interior and exterior spaces. Personal experiences with surroundings.

Source: Create smart places by using Azure Digital Twins

Smart places can include buildings, college campuses, corporate campuses, stadiums, and cities. These environments provide value by helping property owners, facility managers, and occupants operate and maintain sites. Smart places also make spaces more efficient, cost effective, comfortable, and productive.

Smart spaces digitally model spaces and compile relevant data. From that data, you can derive insights on how people, places, and devices are connected.

This article outlines a solution for smart spaces. Azure Digital Twins forms the core of the architecture by modeling the environment. Azure IoT Hub, which is a managed IoT service, also plays a significant role, as does the analytics service Azure Data Explorer.

Business outcomes

In this example solution, a large commercial real estate owner is digitally transforming an office property. This improvement combines legacy facilities-management data with new features and technologies including:

  • Occupancy sensing.
  • Cafe queue optimization.
  • Parking.
  • Shuttle services.

This effort requires integrating brownfield devices and modern Internet of Things (IoT) devices that monitor the physical space. The brownfield devices communicate through common building transports such as BACnet and Modbus.

The company's goals include:

  • Optimizing energy usage by diagnosing faults and streamlining field service management. This optimization integrates the existing building management system with devices.
  • Deriving new spatial insights and offering innovative occupant experiences by connecting modern devices.
  • Developing a cohesive digital model of the environment by bringing together multiple sources of data. The model should expand data analysis opportunities.
  • Creating a scalable solution that can collect and archive millions of data points.
  • Building a solution that can easily add partner solutions. The solution should also incorporate partner data into the environment's digital twin.

Potential use cases

This solution applies to many areas:

  • Smart campuses
  • Facilities management
  • Smart offices
  • Energy optimization

Architecture

The following diagram shows the flow of data in this solution:

  • The boxes that contain multiple icons represent categories of services. Within each category, services work independently or together to provide functionality.
  • Arrows between boxes represent communication between the corresponding areas.
Diagram that illustrates the recommended architecture for a smart space solution.

Download an SVG of this architecture.

  1. The environment can use these and other communication protocols:
    • Building Automation Controls network (BACnet)
    • Modbus
    • KNX
    • LonWorks
  2. On-premises devices and systems send telemetry and other data to the cloud. Data sources include:
    • Brownfield devices
    • Direct-connect sensors
    • Sensors that independent software vendors (ISVs) provide
    • Existing business systems
  3. Devices, sensors, and actuators generate telemetry. Some devices interact directly with IoT Hub. Other devices send data to IoT Hub through Azure IoT Edge.
  4. External, batch, or legacy systems send data to Azure Data Factory. This static data typically originates in files and databases.
  5. Business-to-business connectors translate vendor data and stream it to Azure Digital Twins.
  6. IoT Hub ingests device telemetry. IoT Hub also provides these services:
    • Device-level security
    • Device provisioning services
    • Device twins
    • Command and control services
    • Scale-out capabilities
  7. Data Factory transforms semi-static data and transfers it to Azure Data Explorer or to long-term storage.
  8. Azure Functions receives the IoT Hub data and uses Azure Digital Twins APIs to update Azure Digital Twins. Azure Digital Twins holds the spatial graph of the buildings and environment. Azure Digital Twins models the environment with Digital Twins Definition Language (DTDL). Azure Functions processes the data, performing fault detection and graph updates.
  9. Various components create, store, and load DTDL models.
  10. Azure Digital Twins sends the data through Azure Event Grid to Azure Data Explorer. This analytics service functions as a historian by storing the solution's time series data.
  11. Simulation engines and AI tools process the data. Examples include Azure Cognitive Services, AI models, and partner simulation services.
  12. Azure Data Lake provides long-term storage for the data. Azure Synapse Analytics analyzes and reports on the data.
  13. For visualization tools and enterprise apps, the solution access layer provides secure access to core system services:
    • Azure API Management offers functionality for normalizing, securing, and customizing APIs. This platform also enforces usage quotas and rate limits.
    • Azure SignalR Service sends notifications to UIs when telemetry and data changes.
    • For applications that exchange data asynchronously or at volume, various components provide publishing and subscribing mechanisms:
      • IoT Hub
      • Azure Service Bus queues
      • Azure Event Hubs
      • Web hooks
  14. Service applications collect data from the access control API layer. These applications then analyze and prepare the data for end-user applications. Microsoft tools like Power Apps, Power BI, and Azure Maps create reports and insights on data in the Azure data stores.
  15. Enterprise applications use the prepared data. Examples include:

Components

SaleBestseller No. 1
EIGHTREE Smart Plug, Smart Plugs That Work with Google Home, Compatible with SmartThings, Smart Outlet with WiFi Remote Control and Timer Function, 2.4GHz Wi-Fi Only, 4Packs
  • APP Remote Control: Easily control your home...
  • Voice Control: Smart plugs that work with Google...
  • Easy Setup: It takes less than two minutes for the...
  • Other Features: Diverse timer scheduling...
  • 7*24 Customer Service: If you encounter any issues...
Bestseller No. 2
All-new Echo Show 8 (3rd Gen, 2023 release) | With Spatial Audio, Smart Home Hub, and Alexa | Charcoal
  • BETTER INSIDE AND OUT – Entertainment is more...
  • VIBRANT SIGHTS, FULL SOUND – Content on Prime...
  • SMART HOME, SIMPLIFIED – Pair and control...
  • STAY IN THE LOOP – Video call hands-free using...
  • SHOW OFF YOUR GOOD TIMES – Amazon Photos turns...

Last update on 2024-04-05 / Affiliate links / Images from Amazon Product Advertising API

The solution uses these components:

Core components

  • IoT Hub connects devices to Azure cloud resources. This managed service provides:
    • Device-level security.
    • Device provisioning services.
    • Device twins.
    • Command and control services.
    • Scale-out capabilities.
  • Azure IoT SDKs provide the recommended way for devices to connect to IoT Hub. Devices that can use these kits include:
    • Azure Sphere devices.
    • Devices that run Azure RTOS.
  • IoT Edge runs cloud workloads on IoT Edge devices. Specifically, this central message hub can run real-time analytics through Azure Machine Learning and Azure Stream Analytics. IoT Edge also functions as a gateway to IoT Hub for:
    • Devices with low-power requirements.
    • Legacy devices.
    • Constrained devices.
  • Data Factory is an integration service that works with potentially large blocks of data from disparate data stores. You can use this platform to orchestrate and automate data transformation workflows. For instance, Data Factory can bridge the gap between semi-static stores and historian components like Azure Data Explorer.
  • Business-to-business connectors translate and stream data bidirectionally between vendor components and Azure Digital Twins. A growing number of vendors use DTDL to create industry-standard models. RealEstateCore provides an example. As a result, these integrations are expected to become simpler over time.
  • Azure Digital Twins stores digital representations of IoT devices and environments. You can use this data for data propagation or real-time analysis. Internally, Azure Digital Twins:You can build ontologies, or pre-existing model sets, by using DTDL. You can also start with an industry-supported model:
  • Azure Digital Twins Explorer is a developer tool that you can use to visualize and interact with Azure Digital Twins data, models, and graphs. This tool is currently in public preview.
  • Model management components maintain the DTDL model:
    • For model creation, these options are available:
      • Azure Digital Twins Explorer
      • ISV solutions
      • Custom-built tools
      • Text or code editors
    • Repositories store ontologies:
    • For loading models into Azure Digital Twins, these options exist:
  • Functions is an event-driven serverless compute platform. With Functions, you can use triggers and bindings to integrate services at scale.
  • Azure Data Explorer is a fast, fully managed data analytics service. You can use this service for real-time analysis on large volumes of data. Azure Data Explorer can handle diverse data streams from applications, websites, IoT devices, and other sources.
  • Cognitive Services provides AI functionality. These services offer a set of pre-trained, neural network models for the cloud. The REST APIs and client library SDKs can help you build cognitive intelligence into apps. You can use Cognitive Services functionality:
    • In near real time.
    • At certain data thresholds.
    • On demand.
    • For complex jobs with long processing times.
  • Machine Learning is a cloud-based environment that helps you build, deploy, and manage predictive analytics solutions. With these models, you can forecast behavior, outcomes, and trends.
  • Azure Data Lake stores a large amount of data in its native, raw format. The data typically comes from multiple, heterogeneous sources and may be structured, semi-structured, or unstructured.
  • Azure Synapse Analytics is an analytics service for data warehouses and big data systems. This service integrates with Power BI, Machine Learning, and other Azure services.
  • API Management creates consistent, modern API gateways for back-end services. Besides accepting API calls and routing them to back ends, this platform also verifies keys, tokens, certificates, and other credentials. API Management also logs call metadata and enforces usage quotas and rate limits.
  • Service Bus is a fully managed enterprise message broker. Service Bus supports message queues and publish-subscribe topics.
  • Event Hubs is a fully managed streaming platform for big data.
  • Azure SignalR Service is an open-source software library that provides a way to send notifications to web apps in real time.

Service applications

  • Azure Logic Apps automates workflows by connecting apps and data across clouds.
  • Azure Maps offers geospatial APIs for adding maps, spatial analytics, and mobility solutions to apps.
  • Microsoft Graph provides tools for accessing data in Microsoft 365, Windows 10, and Enterprise Mobility + Security.
  • Power Platform is a collection of products and services that provide low-code tools for creating efficient and flexible solutions:
    • Original Postowerapps" target="_blank" rel="noreferrer noopener">Power Apps is a suite of apps, services, connectors, and a data platform. You can use Power Apps to transform manual business operations into digital, automated processes.
    • Power BI is a collection of software services and apps that display analytics information.
    • Power Automate streamlines repetitive tasks and paperless processes.
    • Power Virtual Agents provides no-code chatbots to meet customer and employee needs at scale.

Enterprise applications

  • Dynamics 365 is a portfolio of applications for managing business operations.
  • Microsoft Teams provides services for meeting, messaging, calling, and collaborating.
  • App Service and its Web Apps feature provide a framework for building, deploying, and scaling web apps.

Shared support components

These services provide support for components in all areas of the solution:

  • Azure Monitor collects and analyzes app telemetry, such as performance metrics and activity logs. This service notifies apps and personnel about irregular conditions.
  • Azure Defender for IoT is a unified security service that protects IoT systems by identifying vulnerabilities and threats.
  • Azure DevOps Services provides services, tools, and environments for managing coding projects and deployments.
  • Azure Active Directory (Azure AD) is a cloud-based identity service that controls access to Azure and other cloud apps, including ISV solutions and on-premises solutions.
  • Azure Key Vault securely stores and controls access to a system's secrets, such as API keys, passwords, certificates, and cryptographic keys.

Alternatives

  • Azure Cosmos DB is another option for data storage. This fully managed NoSQL database service scales easily. Azure Cosmos DB offers various ways to access data, including:
    • Document databases.
    • Graph databases.
    • SQL-style queries.
    • A Cassandra API.
    Azure Synapse Link for Azure Cosmos DB provides a way to run analytics on Azure Cosmos DB data by using Azure Synapse Analytics. As a result, you can combine various data services in solutions that use Azure Cosmos DB.
  • Event Hubs can also provide an ingestion service that's scalable and secure. Unlike IoT Hub, which supports bidirectional communication with devices, Event Hubs supports one-way traffic. As a result, you can't use Event Hubs to send commands and policies back to devices. Event Hubs also doesn't offer device-level security. But Event Hubs is appropriate for environments with a high volume of messages from a low number of input devices.

Considerations

The following considerations apply to this solution:

Scalability considerations

Solutions for smart places solutions can be relatively simple, low-volume implementations. They can also be sophisticated implementations that handle a high volume of data. A solution that aggregates heating, ventilation, and air conditioning (HVAC) telemetry across a large campus is an example of a high-volume implementation.

The core Azure services in this solution are scalable by design and well suited for complex solutions. But when you combine these services, ensure that they don't create choke points. Early in the development cycle, run performance tests at scheduled intervals to identify potential problems.

Flexibility considerations

Design your smart space to be well integrated but also flexible. Smart places use cases are rapidly evolving. At some point after you deploy your solution, you'll need to add new sensors, data types, AI functionality, and visualization techniques. To increase flexibility:

  • Choose a loosely coupled solution like the proposed architecture.
  • Use industry standards for data ontology. This approach helps reduce the time needed to add new functionality and integrate new software.
  • Use API Management. This platform provides a way to create multiple API styles and signatures for a single underlying API.

Security considerations

New
CUSTOS WWD Water Leak Detector, Smart Water Monitor, Battery Operated Smart Home Devices, Sub-Lipstick Design Water Alarm Leak Detector, No Wi-Fi Required, 2 Pack
  • Smart Water Detector: Our water detector alarm...
  • Quick & Accurate Leak Detection: Our WWD Water...
  • All-Orientation Operation: Our water sensor alarm...
  • Compact & Easy to Install: Our wireless water...
  • Durable & Long-lasting: is made to last, with a...
New
RCA Cable 3.5mm to 2RCA Splitter RCA Jack 3.5 Cable RCA Audio Cable for Smartphone Amplifier Home Theater AUX Cable RCA 22aCotton-Braided-Cable-KIMLEYS-|10m,1pc
  • Super Durability】10000+ flex life and double...
  • Gold-plated connectors and aluminum
  • ★ Surround Sound Capability ★ Truely supports...
  • ★ Multi-device support ★ Compatible with...
New
RCA Cable 3.5mm to 2RCA Splitter RCA Jack 3.5 Cable RCA Audio Cable for Smartphone Amplifier Home Theater AUX Cable RCA 22aCotton-Braided-Cable-KIMLEYS-|3m,1pc
  • Super Durability】10000+ flex life and double...
  • Gold-plated connectors and aluminum
  • ★ Surround Sound Capability ★ Truely supports...
  • ★ Multi-device support ★ Compatible with...

Last update on 2024-04-05 / Affiliate links / Images from Amazon Product Advertising API

Legacy building solutions often rely on a lack of external connectivity as their primary source of security. But even data that doesn't identify people can provide information about a business or the people in a building. For instance, organizations use cameras to count people, track assets, and provide security data.

Be careful where you process and save images. Ensure that you address all customer requirements, including privacy issues. Make security a priority throughout the data life cycle of your smart space solution. Specifically, be aware of what data you collect, where you process and store it, and what conclusions you draw from it.

Pricing

Use the Azure pricing calculator to estimate the cost of an IoT solution.