📜 ⬆️ ⬇️

Implementing the infrastructure of the Internet of things for a smart office - the experience of Microsoft Technology Center

The article was written by Maxim Khlupnov, technical director of the Microsoft Solutions and Technology Center (Microsoft Technology Center), based on real experience in designing and implementing a smart office project. The material is a continuation of the article on the Internet of Things, published on Monday

Microsoft’s second Moscow office, located near the Belorusskaya metro station, is not an office space in the generally accepted sense. Most of the 1700 sq.m. The areas are occupied by demonstration stands with the latest devices and solutions, including a small modern data center of 160 kW, three computer classes for 15 workplaces each, meeting rooms and conference rooms filled with modern equipment. But this is only the "visible part" - its work is provided by power supply systems, data center cooling and other complex engineering solutions. However, this is exactly what the Microsoft Technology Center (MTC), designed to demonstrate and test advanced technologies, should look like.



MTS is constantly changing: partners supply new equipment, and employees of the center integrate it into the existing infrastructure.

What makes a smart office different from an ordinary one? Almost everything. Starting with parking, which calculates the number of spaces required for employees' cars - until the Server Display Room Energy Management (SDS) is monitored. SDS is a small 160 kW datacenter for demonstrations and load testing. Communications, identification of employees or guests using smart cards or using NFC in the phone, quick access to elevators in high-rise buildings, navigation around the office for guests, electronic secretary at the reception, the ability to control the projector, lighting and other meeting room equipment with a voice from a smartphone ... Part These solutions already exist and are being actively used; some of them will be widely distributed in the near future. Now we are completing the integration of our office systems into a single solution based on Microsoft Azure services.
')
The technology center team consists of only 10 people, and only two of them are engaged in infrastructure support. The remaining employees work with customers, hold demonstrations, briefings, sessions on the creation of a solution architecture, load testing and concept validation projects.

From the subsystem ACS to the IoT solution architecture


Since opening in 2009, MTC has been receiving guests almost daily: presentations for partners and customers, seminars and trainings for IT specialists, briefings for journalists are held here. Only for trainings, more than 50 computers are prepared daily in four computer classes.

Effective management of such a technically rich site is unthinkable without automation. Considering that events for customers are responsible - it is important to receive monitoring information and notifications about system and equipment failures, to predict in advance possible failures by analyzing the system operation statistics.

We plan to publish several articles describing the architecture and approaches that we use to manage and automate a modern office: Monitoring the engineering infrastructure and integration with building management systems, data center monitoring (SDS), managing audio-visual equipment, managing the loading of meeting rooms , analysis of the efficiency of use of premises and equipment, prediction of failures and failures.
In this article we will look at the main components of the architecture that provide automation for office space. We did not implement the system from scratch, but performed the integration of the proven industrial solutions of the partners of the technology center, built on industry standards.



The infrastructure is controlled by hundreds of sensors and actuators. Sources of sensor categories - information providers are:


The data of these sensors are collected and analyzed both locally, using linear data concentrators, and with transfer to cloud services.



The cloud we use primarily for notification of failures - Exchange Online for sending mail and Azure Notification Hub for sending Push-notifications to smartphones. We also plan to use the Azure Machine Learning machine learning services to analyze the accumulated statistics in order to predict failures.

For example, now we use several Crestron Advanced Control Processor 3-series switches for controlling the lighting via the DALI bus, audio-video equipment (projectors are controlled via RS-232 interface, and TV sets via IR). At the same time, the switch reports on each event that occurs in the line hub bus it controls.

Azure IoT gateway


Our IoT line hub (IoT gateway) is implemented as a service that we wrote in C # using the Microsoft Lab of Things. Hub service, on the one hand, listens to the signal bus of Crestron switches, and on the other hand, publishes WCF services that are available to our mobile and web applications. Exactly, through the mobile application that calls the WCF-service, voice control of light and audio-video equipment is implemented on the video above.

In addition, we plan to broadcast messages from the Crestron network (BACnet) through our hub to the cloud for further analysis in Azure Machine Learning. Our goal is to predict possible equipment failures and projectively determine which of our users will need help in setting up equipment.
Now we have a subsystem deployed that transmits Crestron signal and command bus messages through an IoT hub (IoT gateway) to the Azure EventHub. EventHub is called mtcmanager, it is deployed in our Azure subscription and allows you to send up to 1Gb / s of events to the cloud. Of course, we do not create such a flow of events in our office, even with the inclusion of each bulb, but this is fully consistent with the real industrial scenarios of the application area. If we served thousands of offices around the world - EventHub still coped with the data stream!



Events in Azure EventHub come in JSON format encapsulated in AMQP packets and contain the following data: numeric values ​​(join, slot, value and signal type - information from the Crestron switchboard), event timestamp and source code.

Our goal is to display a dashboard with the state of the light and projectors in the MTC (in which rooms the lights, projector, etc. are turned on). This information may already be useful if the equipment, for example, is turned on during off-hours. Then we will be able to connect Azure Machine Learning, add data from the schedule of events to the MTC, in order to predict, for example, with what probability they forget to turn off the lights after the end of the event or there are difficulties in connecting audio-video equipment.

To add metadata to the mean sensor readings, we connect the Azure StreamAnalytics service and point it to the Azure EventHub “mtcmanager” data source.

Signal descriptions for combinations of the join and slot values ​​are stored in Azure SQL as a lookup table. By combining the data of each event with the data of the reference in the request of Azure Stream Analytics, we get information suitable for analysis.

Access from anywhere and security solutions


Classic ACS systems understand security as the physical protection of a connection. If someone gets the opportunity to access the network management of the building, he often gets access to all devices. That is why in classic ACS systems, publishing services via the Internet causes a shudder. We “cease to control the perimeter and ensuring security becomes an intractable task” for classic control systems.

By publishing the WCF services of our IoT hub through the Azure Service Bus, we were able to securely access the services of our system from anywhere. And it did not require programming. Access is protected by two-factor authentication for administrators and is completely secure.

However, having a large number of complex services that provide management of business-critical equipment — access control is of paramount importance. Several hundred people work at Microsoft office, and many of them participate in events at MTS. How to provide secure access to mobile applications for several hundreds of people "on demand"? The answer for us is a new IoT solution architecture based on the Microsoft-announced Azure IoT suite service (see figure below).



But this is a topic for the next article. Thank!

Source: https://habr.com/ru/post/261533/


All Articles