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.
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.
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.
- 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
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.
Download an SVG of this architecture.
- The environment can use these and other communication protocols:
- Building Automation Controls network (BACnet)
- 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
- Devices, sensors, and actuators generate telemetry. Some devices interact directly with IoT Hub. Other devices send data to IoT Hub through Azure IoT Edge.
- External, batch, or legacy systems send data to Azure Data Factory. This static data typically originates in files and databases.
- Business-to-business connectors translate vendor data and stream it to Azure Digital Twins.
- 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
- Data Factory transforms semi-static data and transfers it to Azure Data Explorer or to long-term storage.
- 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.
- Various components create, store, and load DTDL models.
- 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.
- Simulation engines and AI tools process the data. Examples include Azure Cognitive Services, AI models, and partner simulation services.
- Azure Data Lake provides long-term storage for the data. Azure Synapse Analytics analyzes and reports on the data.
- 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
- 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.
- Enterprise applications use the prepared data. Examples include:
The solution uses these 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:
- For model creation, these options are available:
- 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.
- 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:
- 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.
- 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.
- 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.
- 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.
The following considerations apply to this solution:
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.
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.
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.
Use the Azure pricing calculator to estimate the cost of an IoT solution.