Method, device, electronic device and storage medium for selecting Internet of Things devices
By acquiring and analyzing data of IoT devices under different temperature and humidity environments, and using the statistical methods of the Flink system, the problem of insufficient information in the selection process of IoT devices is solved, more accurate and continuous equipment selection is achieved, and maintenance costs are reduced .
Patent Information
- Application Number
- CN202111571205.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-12-21
AI Technical Summary
In the process of selecting IoT devices, the existing technology relies on the information provided by the equipment manufacturer for comparison, making it difficult to select the most suitable or cost-effective equipment in actual scenarios, resulting in inconvenient use and maintenance.
By obtaining data from a variety of IoT devices under different temperature and humidity conditions, using the Flink system to perform statistical analysis, establishing calculation models, comprehensively comparing device data and analyzing data, and selecting the most suitable IoT devices.
Improves the accuracy and sustainability of IoT device selection, reduces maintenance costs, and ensures that the equipment performs best in the target environment.
Smart Images

Figure CN114257528B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and more specifically, to a method, device, electronic device and storage medium for selecting Internet of Things devices. Background Art
[0002] The Internet of Things (IOT) is an extended and expanded network based on the Internet. It combines various information sensing devices with the network to form a huge network, realizing the interconnection of people, machines and objects at any time and place.
[0003] There are requirements for the devices connected in the IoT network, and it is necessary to consider a variety of equipment information such as the cost, use effect, life cycle, and value generated by the equipment. At present, in all walks of life, the selection of IoT devices often depends on the equipment information provided by the equipment manufacturer. It is difficult to select the most suitable or cost-effective IoT device in actual scenarios by comparing similar devices based only on these equipment information, which brings inconvenience to users in the subsequent use or maintenance of the equipment. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for selecting an Internet of Things device, by performing statistical analysis on a variety of device data obtained based on the flink system under different temperature and humidity environmental conditions over a period of time, to select the most suitable Internet of Things device, thereby solving the above-mentioned technical problems.
[0005] In a first aspect, an embodiment of the present application provides a method for selecting an Internet of Things device, the method comprising: obtaining device data of the Internet of Things device under different temperature and humidity conditions for a period of time, wherein the Internet of Things device includes multiple types of Internet of Things devices; processing the device data to obtain analysis data of the Internet of Things device under different temperature and humidity conditions for a period of time; and selecting a target Internet of Things device based on the device data and the analysis data.
[0006] In the above implementation process, the device data obtained by various types of devices in different temperature and humidity environments within a certain period of time are statistically analyzed, and a calculation model is further established to obtain analysis data. The device data and analysis data are comprehensively compared to select the most suitable IoT device in the target environment. Compared with the simple comparison of traditional device data, this improves the accuracy of IoT device selection, improves the sustainability of subsequent use of IoT devices, and reduces maintenance costs.
[0007] In combination with the first aspect, an embodiment of the present application provides a first possible implementation of the first aspect, wherein: the device data and analysis data include fixed data and monitoring data.
[0008] In the above implementation process, both device data and analysis data include two data sources: inherent data with fixed values and detection data with real-time changes in values, which improves the effectiveness of data processing and thus improves the accuracy of target IoT device selection.
[0009] In combination with the first aspect, the embodiment of the present application provides a second possible implementation of the first aspect, wherein: the fixed data includes device type, device model, and device cost.
[0010] In the above implementation process, fixed data is used to reflect data representing inherent attributes of IoT devices, such as device type, device model, and device cost.
[0011] In combination with the first aspect, an embodiment of the present application provides a third possible implementation of the first aspect, wherein: the monitoring data includes the number of equipment failures, equipment life cycle, and equipment power.
[0012] In the above implementation process, the monitoring data is used to reflect the real and specific long-term monitoring data of various types of IoT devices in different temperature and humidity environments over a period of time, thereby reflecting the multi-dimensional performance changes such as equipment efficiency and equipment life of various types of IoT devices in different scenarios and environments.
[0013] In combination with the first aspect, an embodiment of the present application provides a fourth possible implementation of the first aspect, wherein: obtaining device data of the Internet of Things device under different temperature and humidity conditions for a period of time includes: obtaining device data of the Internet of Things device under different temperature and humidity conditions for a period of time based on the flink system of the Internet of Things device.
[0014] In the above implementation process, the stream computing engine of the Flink system can perform stateful calculations on data streams from various data sources, such as IoT devices under different temperature and humidity conditions and device data over a period of time, thereby achieving further statistical calculations on the acquired data and improving the reliability of data transmission and performance processing.
[0015] In combination with the first aspect, an embodiment of the present application provides a fifth possible implementation of the first aspect, wherein: the target IoT device is selected based on the device data and the analysis data, including: statistics are performed on the device data and the analysis data through a time window of a flink system; and the device data and the analysis data after statistics are analyzed to determine the selected target IoT device.
[0016] In the above implementation process, various types of data are counted based on the time window mode of the Flink system. Based on the results of the time window statistics of the Flink system, various data are further analyzed in the database to ensure the orderliness of the data, avoid the problem of data disorder caused by receiving data streams, improve data processing efficiency, and improve the accuracy and sustainability of IoT device selection.
[0017] In combination with the first aspect, an embodiment of the present application provides a sixth possible implementation of the first aspect, wherein: the processing of the device data to obtain analysis data of the Internet of Things device under different temperature and humidity conditions for a period of time includes: processing the monitoring data in the device data to obtain the monitoring data in the analysis data of the Internet of Things device under different temperature and humidity conditions for a period of time; and determining the analysis data based on the monitoring data in the analysis data and the fixed data in the device data.
[0018] In the above implementation process, both the equipment data and the analysis data contain two parts of data: the inherent data part with fixed values and the monitoring data part whose values change in real time with the temperature and humidity environment. Only the monitoring data part is calculated and processed, which improves the data processing efficiency.
[0019] In the second aspect, an embodiment of the present application provides a configuration application display device, including: an acquisition module: used to obtain device data of an Internet of Things device under different temperature and humidity conditions and within a period of time, wherein the Internet of Things device includes multiple types of Internet of Things devices; a processing module: used to process the device data to obtain analysis data of the Internet of Things device under different temperature and humidity conditions and within a period of time; and a selection module: used to select a target Internet of Things device based on the device data and analysis data.
[0020] In the above implementation process, the acquisition module is used to obtain the device data of the Internet of Things device under different temperature and humidity conditions for a period of time, wherein the Internet of Things device includes multiple types of Internet of Things devices; the processing module is used to process the device data to obtain the analysis data of the Internet of Things device under different temperature and humidity conditions for a period of time; and the selection module is used to select the target Internet of Things device based on the device data and the analysis data.
[0021] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the machine-readable instructions are executed by the processor to perform the steps of the above method.
[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are executed.
[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and understandable, embodiments are given below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A flowchart of a first method for selecting an IoT device provided in an embodiment of the present application;
[0026] Figure 2 A flowchart of a second method for selecting an IoT device provided in an embodiment of the present application;
[0027] Figure 3 A flowchart of a third method for selecting an IoT device provided in an embodiment of the present application;
[0028] Figure 4 A schematic diagram of the functional modules of the IoT device selection apparatus provided in the embodiment of the present application; and
[0029] Figure 5 A block diagram of an electronic device providing an IoT device selection apparatus is provided for an embodiment of the present application.
[0030] Icons: 210 - acquisition module; 220 - processing module; 230 - selection module; 300 - electronic device; 311 - memory; 312 - storage controller; 313 - processor; 314 - peripheral interface; 315 - input and output unit; 316 - display unit. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application.
[0032] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0033] The inventor of this application has noticed that by comparing the equipment information provided by the equipment manufacturers, choosing the equipment with the best cost-effectiveness is the most applicable solution at present. However, since there is no real and specific experimental data as support before the equipment is selected, and there is no long-term observation after the equipment is selected, the equipment selected according to this method is not necessarily the best equipment in this scenario. With the advent of the Internet of Things era, this equipment selection problem is particularly important in the case of a sharp increase in the number of Internet of Things devices. Whether the equipment can be accurately selected and continuously selected becomes particularly important.
[0034] Based on the above research, the embodiment of the present application provides a method and device for selecting IoT devices. By constructing a calculation model based on the flink system for data processing based on the device data of various types of IoT devices under different temperature and humidity conditions within a period of time, the analysis data corresponding to the device data under different temperature and humidity conditions within a period of time is obtained, and these data are counted and analyzed according to the target temperature and humidity environment conditions, and the target IoT device to be selected is determined, and the real device data collected by various types of devices within a certain period of time and in different temperature and humidity environments is comprehensively compared, and then the most suitable IoT device in the target environment is selected, which improves the accuracy of IoT device selection, improves the continuity of subsequent use of IoT devices, and reduces maintenance costs.
[0035] The Internet of Things (IoT) is an extended application of Internet technology, combining objects with the Internet to form an Internet where objects are connected to each other. Then, through some positioning systems, laser scanning systems, sensors, radio frequency identification and other sensing devices, objects are connected to the Internet according to certain service agreements, thereby realizing the intelligent identification, positioning, monitoring, tracking and management functions of objects and processes. For example, vehicles use IoT technology to report their operating conditions to manufacturers and provide us with some modern convenience services, such as remote starting, locking and preheating of cars.
[0036] Furthermore, IoT devices include sensor devices that can transmit information such as barcode recognition, radio frequency identification, resistance, capacitance, inductive sensing, global positioning, laser scanning, etc., using sensor devices as basic devices to connect physical devices to the Internet.
[0037] See also Figure 1 , Figure 1 This is a flow chart of the first method for selecting an IoT device provided in the embodiment of the present application. Figure 1 The method for selecting an IoT device provided in the embodiment of the present application may specifically include step 100, step 120 and step 140.
[0038] Wherein, step 100: obtaining device data of an IoT device under different temperature and humidity conditions for a period of time, wherein the IoT device includes multiple types of IoT devices;
[0039] For example, IoT devices can be control devices, monitoring devices, production devices in industrial and enterprise production systems, or commercial wearable devices, such as smart watches, smart bracelets, or other devices. Device data can include data directly generated by IoT devices, and can include data from other sources, such as the cost, use effect, life cycle, and value generated by the device.
[0040] In one embodiment, a variety of different types of IoT devices are collected on the market, and the number of IoT devices of the same type collected is guaranteed to be no less than three, so as to improve the effectiveness of obtaining device data of IoT devices, thereby improving the accuracy of subsequent analysis data. The collected IoT devices can be set in environments with different temperatures and humidity, and long-term monitoring can be performed over a 12-month period to obtain device data of IoT devices under different temperature and humidity conditions and monitored during this period.
[0041] Optionally, a RabbitMQ cluster is used to receive and obtain real-time device data generated by long-term monitoring of IoT devices under different temperature and humidity conditions over a period of time based on the MQTT communication protocol.
[0042] Through RabbitMQ, an open source message agent software based on the advanced message queue MQTT communication protocol is used to automatically collect device data of IoT devices in real time and in environments with different temperatures and humidity over a period of time. This eliminates the need to redevelop code to process data, avoids the complexity and tediousness of the process when collecting data from on-site IoT devices, and reduces work and learning costs.
[0043] Step 120: Process the device data to obtain analysis data of the IoT device under different temperature and humidity conditions over a period of time;
[0044] Exemplarily, real-time device data of various IoT devices monitored under different temperature and humidity conditions over a period of time is collected based on the RabbitMQ cluster, such as the temperature, humidity, number of device failures, actual daily power generated by the device, and total power of the device during the time period of the environment in which the IoT devices are located.
[0045] Optionally, these real-time device data are calculated and processed by constructing a calculation model to obtain corresponding analysis data during this period. The analysis data may include average device temperature, average device humidity, average device power generation, and device life cycle.
[0046] Step 140: Select a target IoT device based on the device data and analysis data.
[0047] For example, since the above analysis data is offline, these analysis data and device data can be further stored in a relational MySQL database for persistence, which is convenient for statistics, query, and update of analysis data of various types of IoT devices under different temperature and humidity conditions over a period of time, and comprehensive analysis of various data can be performed to select the IoT devices with the highest suitability for the target temperature and humidity environment.
[0048] The equipment data and analysis data in step 100, step 120 and step 140 include fixed data and monitoring data.
[0049] For example, fixed data may include attribute value data inherent to various types of IoT devices, which will not change with different external temperature and humidity conditions. For IoT devices of the same type, the value of fixed data in the acquired device data remains unchanged under different temperature and humidity conditions over a period of time, and the value of the fixed data part is equal at any time point.
[0050] Monitoring data may include real-time detection data of various types of IoT devices over a period of time and under different temperature and humidity conditions. Generally, the values of monitoring data will change accordingly with changes in external temperature and humidity conditions. The values of some monitoring data at any time point are generally not equal.
[0051] Both device data and analysis data include inherent data with fixed values and detection data with real-time changes in values, which improves the effectiveness of data processing and thus improves the accuracy of target IoT device selection.
[0052] The fixed data in step 100, step 120 and step 140 include device type, device model, and device cost.
[0053] For example, fixed data may be data that reflects the inherent properties of IoT devices, such as device type, device model, and device cost. Optionally, device type may be represented by label value data such as device 1, device 2, and device 3; device model may be represented by label value data such as A001, A002, and A003; and device cost may be represented by data representing specific prices such as 5W and 6W.
[0054] The monitoring data in step 100, step 120 and step 140 include the number of equipment failures, equipment life cycle, and equipment power.
[0055] For example, monitoring data can be the number of equipment failures, equipment life cycle, and equipment power, which are detected and collected in real time over a period of time as the IoT devices are placed in different temperature and humidity environments. It represents the real and specific long-term monitoring data of various types of IoT devices in different temperature and humidity environments over a period of time, thus reflecting the multi-dimensional performance changes of various types of IoT devices in different scenarios and environments, such as equipment efficiency and equipment life.
[0056] Optionally, the number of device failures may be the total number of device failures collected by the RabbitMQ cluster in any sub-time period of the time period; the device life cycle may be the difference between the time of the last data stream processed and the time of the first data stream, that is, the device life of the IoT device in any sub-time period of the time period; the device power may include the average daily power and the total power generated, the average daily power may be the quotient of the total power generated and the life cycle, and the average daily total power may be the sum of the powers of the IoT device on any day in the time period.
[0057] Specifically, step 100 may include step 101 .
[0058] Step 101: Based on the flink system of the IoT device, the device data of the IoT device under different temperature and humidity conditions within a period of time is obtained.
[0059] For example, the stream computing engine of the Flink system can perform stateful computing on data streams from various data sources, such as IoT devices under different temperature and humidity conditions and device data over a period of time. Stateful computing refers to the intermediate computing results generated during the computing process, which are still needed for subsequent computing. For the storage of these intermediate results, the Flink system uses memory, local storage or storage systems to improve performance processing and data transmission reliability.
[0060] The RabbitMQ cluster of the Flink system is used to collect real-time device data generated by long-term monitoring of IoT devices under different temperature and humidity conditions over a period of time based on the MQTT communication protocol. Specifically, the RabbitMQ Source connector is extended in the open source Flink Table connector, a data source table is created, and connection information is set.
[0061] By overriding the getScanRuntimeProvider method in the ScanTableSource interface of the Flink system to consume RabbitMQ data, the RabbitMQ Source connector is extended in a specific way by mapping the data structure to the specified table structure; the RabbitMQ cluster address, user and password, and Topic name information are set based on the specific structure of the device data of various IoT devices. Among them, Topic can be the data type name of the device data, and the Format structure can be specified as the Json data format, thereby creating a data source table corresponding to the device data of the IoT device; finally, the connector identifier of the Flink system is configured as RabbitMQ.
[0062] Furthermore, the Flink system provides an interface specifically for operating the RabbitMQ Source connector. By customizing the RabbitMQ data source, necessary parameters, and configuring related connection information, you can quickly read and output the device data monitored by the IoT device. Before reading RabbitMQ data, you can specify the task execution mode, task running name, task resource queue name, Jar package file format required for task execution, task execution strategy, and task file system dependency in the Flink system.
[0063] The Flink system can provide connectors for commonly used storage systems such as Kafka, Cassandra, ElasticSearch, JDBC, and HDFS distributed file systems. Optionally, the open source stream storage system can be Kafka, which can store device data in categories, with each type of device data corresponding to a topic name. Specifically, when the stored device data is power data monitored by IoT devices under different temperature and humidity conditions over a period of time, the topic name of the stored data is "power".
[0064] In one embodiment, a RabbitMQ cluster is used in the flink system to collect real-time device data obtained by monitoring various IoT devices under different temperature and humidity conditions within a 12-month period. A Kafka cluster can be further used as a message middleware for real-time data, and a data intermediate table is created to classify and store the data stream of device data. Specifically, based on the above configuration, the RabbitMQ cluster is similar to specifying the connector identifier of the flink system as Kafka, similarly setting the necessary parameters of the Kafka cluster, and specifying the abstract base class Format structure for formatting language environment-sensitive information as the Json data exchange format.
[0065] Furthermore, by consuming Kafka data through the Flink stream computing engine and preprocessing the Kafka data, multiple data streams can be obtained. Specifically, the device data stored in the server in Kafka is analyzed and converted through data preprocessing such as correcting erroneous data and completing data, data conversion and data denoising, to obtain server log data in a standard message format, and then the server log data in a standard message format is divided according to different categories of device data, and finally multiple data streams are obtained, where each data stream represents a type of device data.
[0066] The Flink system provides easy-to-learn SQL (Structured Query Language) statements to process real-time device data. It is also easy for non-development staff in industry and enterprises to use, thus improving data processing efficiency.
[0067] Please see Figure 2 , Figure 2 This is a flow chart of a second method for selecting an IoT device provided in an embodiment of the present application. In the method for selecting an IoT device provided in an embodiment of the present application, specifically, step 140 may include step 141 and step 142.
[0068] Wherein, step 141: performing statistics on the device data and the analysis data through the time window of the flink system;
[0069] For example, the Flink system is a distributed open source computing framework for data stream processing, which supports high-throughput, low-latency, and high-performance stream processing, and supports stream processing and window processing with event time semantics. The semantics of event time make the results of stream computing more accurate when events arrive out of order or with delay. The event time can be the time of the received external device data, for example {"name":"zhangsan","opreator":"visit","time":"2020-08-3117:10:15"}, where time is the event time.
[0070] Flink supports highly flexible window operations, including time-, count-, session-, and data-driven window operations. It can effectively create computing models and obtain analytical data for device data obtained in real temperature and humidity environments.
[0071] The "window" in the flink system can represent a means of cutting an infinite data stream into finite data blocks; the window can be time-driven, for example, statistics are taken every 10 minutes; the window can also be data-driven, for example, statistics are taken every 100 pieces of device data received; the "time" in the flink system can be the event time (Event Time) of the external raw data.
[0072] Optionally, Kafka is used as a message middleware for real-time data, and a data intermediate table is created to classify and temporarily store the data stream of device data. The processing terminal can be a computer device, which can obtain the data stream of these device data of Kafka from the interface of the data source management of the flink stream computing system, and parse these data streams. When the parsing is successful, the address of Kafka and the data type of the data stream can be obtained. Furthermore, the computer device establishes a connection with the Kafka storage system according to the address of Kafka. After receiving a successful connection response, the computer device can start the data pulling thread based on the time window mode of the flink system, or set the state of the data pulling thread to a blocked state. Among them, starting the data pulling thread means starting to pull the data stream from the Kafka storage system, and the blocked state can be used to indicate that the data pulling thread cannot perform the work of pulling the data stream.
[0073] When the state of the data pull thread is in the running state, the data pull thread can pull the data stream from the Kafka storage system. Specifically, the computer device can use 0 and 1 to represent the state of the data pull thread; when the state of the data pull thread is 0, the data pull thread is in the blocked state; when the state of the data pull thread is 1, the state of the data pull thread is in the running state.
[0074] In one embodiment, a computer device starts a data pulling thread based on the time window mode of the flink system to pull data streams from the Kafka storage system. After the device data monitored by various IoT devices under different temperature and humidity conditions within a 12-month period are sent from Kafka to the computer device in the form of data streams of multiple threads and are received, the computer device can set corresponding sufficient memory resources to store the data streams of these device data.
[0075] Furthermore, the computer device can perform window operations in the flink system, set a time window to receive device data in the form of a data stream, and the time window can be any sub-time period in 12 months; then build a calculation model to calculate and process the device data to obtain the corresponding analysis data during this period, and the analysis data can include the average temperature of the device, the average humidity of the device, the average power generated by the device, and the life cycle of the device. Specifically, building a calculation model can be: creating a model configuration file, the model configuration file includes a model list and multiple model files, wherein the model list can indicate the model name identifier in the multiple model files, and a model file stores a calculation model.
[0076] The model list may indicate four model identifiers, namely: an accumulation model stored in model file 001 that can be used to sum device data, an average model stored in model file 002 that can be used to average device data, a difference model stored in model file 003 that can be used to find differences in device data, and a quotient model stored in model file 004 that can be used to find quotients of device data. The model list may also include other necessary elements such as model ID identification numbers.
[0077] By using event time to trigger the execution of window data step by step, and then aggregating the data of a time window for statistics, and performing calculations based on the constructed computing model, the orderliness of data processing can be guaranteed, thereby avoiding the problem of data disorder caused by receiving the data stream of the Kafka storage system and improving the accuracy of data results.
[0078] Step 142: Analyze the statistically collected device data and the analysis data to determine the target IoT device to be selected.
[0079] For example, after statistical processing of device data and analysis data based on the time window of the flink system, the device data of a single type of IoT device and the analysis data calculated by the calculation model can be migrated and saved to the MySQL database; then the device data of each type of IoT device and the analysis data calculated by the calculation model can be migrated and saved to the MySQL database to achieve persistence of the analysis data and device data; finally, based on the results of the time window statistics based on the flink system, various data can be further analyzed in the MySQL database, including the saving, updating, deleting, loading, and querying of the analysis data and device data.
[0080] In one embodiment, the flink system continuously detects various types of IoT devices in different temperature and humidity environments. When the time and data reach a certain level, the power, life and other performance of various IoT devices in different temperature and humidity environments are statistically analyzed. The IoT devices can be analyzed and selected according to the target performance rules formulated according to actual needs to determine the selected target IoT devices.
[0081] Furthermore, users can confirm the device type and the temperature and humidity of the location according to their own situation, and select the target type of IoT device that is most suitable for the temperature and humidity of the location based on actual needs. Optionally, combined with the long-term statistical data stored in the MySQL database and the temperature and humidity environment change trend of the target location, the target IoT device suitable for the temperature and humidity weather in the target environment in the next month, the next quarter, and the next year can be predicted.
[0082] Based on the same SQL structured query language as the interface for MySQL database data input and management, it is used to access the data generated by various types of IoT devices, as well as to query, update and manage the MySQL relational database system where these data are located. There is no need to redevelop code to process data, which reduces work and learning costs and improves data processing efficiency.
[0083] Please see Figure 3 , Figure 3 This is a flow chart of a third method for selecting an IoT device provided in an embodiment of the present application. In the method for selecting an IoT device provided in an embodiment of the present application, specifically, step 120 may include step 121 and step 122.
[0084] Among them, step 121: processing the monitoring data in the device data to obtain the monitoring data of the IoT device in the analysis data under different temperature and humidity conditions within a period of time.
[0085] Exemplarily, as described above, both the device data and the analysis data include two parts of data: an inherent data part with a fixed value and a monitoring data part whose value changes in real time with the temperature and humidity environment. The monitoring data in the device data can be further calculated based on the four calculation models, namely, the accumulation model, the average model, the difference model, and the quotient model constructed in the above step 141 to obtain the monitoring data part in the analysis data.
[0086] In one embodiment, as described above, the monitoring data in the analysis data may include data of types such as the number of equipment failures, equipment life cycle, and equipment power. The number of equipment failures may be obtained by summing the number of equipment failures collected by the Flink system in a time window based on an accumulation model; the equipment life cycle may be obtained by subtracting the time of the last data stream processed by the Flink system in a time window from the time of the first data stream based on a difference model, that is, the equipment life of the IoT device in the time window period.
[0087] Device power can include average power and total power. Average power can be obtained by calculating the quotient of the total power generated by the Flink system in a time window and the life cycle based on the quotient model, where the total power generated can be obtained by summing the IoT devices in the time window based on the accumulation model.
[0088] Step 122: Determine the analysis data based on the monitoring data in the analysis data and the fixed data in the device data.
[0089] Exemplarily, as described above, the fixed data part of the device data may include attribute value data inherent to various types of IoT devices, which will not change with different external temperature and humidity conditions. The fixed data part may be data that reflects the device type, device model, and device cost, etc., which represent the inherent attributes of the IoT device.
[0090] The fixed data part in the equipment data is kept unchanged in its original value, and is directly output as the fixed data part in the analysis data without being processed based on the calculation model. The fixed data part in the analysis data determined in step 121 is combined to obtain the analysis data.
[0091] Please see Figure 4 , Figure 4 2 is a functional module diagram of the IoT device selection device provided in the embodiment of the present application. Each module in the IoT device selection device in this embodiment is used to execute each step in the above method embodiment. The IoT device selection device includes an acquisition module 210, a processing module 220 and a selection module 230.
[0092] The acquisition module 210 is used to acquire device data of an IoT device under different temperature and humidity conditions within a period of time, wherein the IoT device includes multiple types of IoT devices;
[0093] Processing module 220: used to process the device data to obtain analysis data of the IoT device under different temperature and humidity conditions over a period of time; and
[0094] Selection module 230: used to select a target IoT device based on the device data and analysis data.
[0095] In a first optional implementation, the acquisition module 210 is used to: acquire device data of the Internet of Things device under different temperature and humidity conditions within a period of time based on the flink system of the Internet of Things device.
[0096] In a second optional implementation, a module 230 is selected to: perform statistics on the device data and the analysis data through a time window of the flink system; and
[0097] The statistically collected device data and the analysis data are analyzed to determine the target IoT device to be selected.
[0098] In a third optional implementation manner, the processing module 220 is configured to:
[0099] Processing the monitoring data in the device data to obtain the monitoring data in the analysis data of the IoT device under different temperature and humidity conditions for a period of time; and
[0100] The analysis data is determined based on the monitoring data in the analysis data and the fixed data in the equipment data.
[0101] See also Figure 5 , Figure 5 31 is a block diagram of an electronic device. The electronic device 300 may include a memory 311, a storage controller 312, a processor 313, a peripheral interface 314, an input and output unit 315, and a display unit 316. A person skilled in the art may understand that Figure 5 The structure shown is only for illustration and does not limit the structure of the electronic device 300. For example, the electronic device 300 may also include Figure 5 More or fewer components as shown, or with Figure 5 Different configurations are shown.
[0102] The above-mentioned memory 311, storage controller 312, processor 313, peripheral interface 314, input / output unit 315, and display unit 316 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The above-mentioned processor 313 is used to execute the executable module stored in the memory.
[0103] The memory 311 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 311 is used to store programs, and the processor 313 executes the program after receiving the execution instruction. The method executed by the electronic device 300 defined by the process disclosed in any embodiment of the present application can be applied to the processor 313, or implemented by the processor 313.
[0104] The processor 313 may be an integrated circuit chip with signal processing capability. The processor 313 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0105] The above-mentioned peripheral interface 314 couples various input / output devices to the processor 313 and the memory 311. In some embodiments, the peripheral interface 314, the processor 313 and the memory controller 312 can be implemented in a single chip. In some other examples, they can be implemented by separate chips.
[0106] The input and output unit 315 is used to provide input data to the user. The input and output unit 315 can be, but is not limited to, a mouse and a keyboard.
[0107] The display unit 316 provides an interactive interface (e.g., a user operation interface) between the electronic device 300 and the user for the user to refer to. In this embodiment, the display unit 316 may be a liquid crystal display or a touch display. The liquid crystal display or the touch display may display the process of the processor executing the program.
[0108] The electronic device 300 in this embodiment can be used to execute each step in each method provided in the embodiments of the present application.
[0109] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are executed.
[0110] The computer program product of the method for selecting an IoT device provided in the embodiment of the present application includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0111] To sum up: The embodiments of the present application provide a method, device, electronic device and storage medium for selecting an Internet of Things device. The method for selecting an Internet of Things device includes: obtaining device data of the Internet of Things device under different temperature and humidity conditions for a period of time, wherein the Internet of Things device includes multiple types of Internet of Things devices; processing the device data to obtain analysis data of the Internet of Things device under different temperature and humidity conditions for a period of time; and selecting a target Internet of Things device based on the device data and the analysis data.
[0112] In the above implementation process, the device data of various types of IoT devices under different temperature and humidity conditions within a period of time are respectively processed based on the calculation model built based on the flink system, and the analysis data corresponding to the device data under different temperature and humidity conditions within a period of time are obtained. These data are counted and analyzed to determine the target IoT device to be selected. The actual device data collected by various types of devices in different temperature and humidity environments within a certain period of time are comprehensively compared, and the most suitable IoT device in the target environment is selected. Compared with the simple comparison of traditional equipment data, the accuracy of IoT device selection is improved, the continuity of subsequent use of IoT devices is improved, and the maintenance cost is reduced.
[0113] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some communication interfaces, devices or units, which can be electrical, mechanical or other forms. The functional modules in the embodiments of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0114] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM) random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0115] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0116] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for selecting an Internet of Things device, characterized in that: The method comprises: Obtain device data of an IoT device under different temperature and humidity conditions over a period of time, wherein the IoT device includes multiple types of IoT devices; Processing the device data to obtain analysis data of the IoT device under different temperature and humidity conditions over a period of time; and Select target IoT devices based on the device data and analysis data; The step of selecting a target IoT device based on the device data and the analysis data includes: The device data and the analysis data are counted through the time window of the flink system; and the device data and the analysis data after statistics are analyzed to determine the selected target IoT device; wherein, the analysis of the device data and the analysis data after statistics includes: continuous detection of various IoT devices under different temperature and humidity environments through the flink system, and when the time and data reach a certain level, statistical analysis of the power performance and life performance of various IoT devices under different temperature and humidity environments; The processing of the device data to obtain analysis data of the IoT device under different temperature and humidity conditions over a period of time includes: Processing the monitoring data in the device data to obtain the monitoring data in the analysis data of the IoT device under different temperature and humidity conditions for a period of time; and The analysis data is determined based on the monitoring data in the analysis data and the fixed data in the equipment data.
2. The method according to claim 1, characterized in that The equipment data and analysis data include fixed data and monitoring data.
3. The method according to claim 2, characterized in that The fixed data includes device type, device model, and device cost.
4. The method according to claim 2, characterized in that: The monitoring data includes the number of equipment failures, equipment life cycle, and equipment power.
5. The method according to claim 1, characterized in that The device data of the IoT device under different temperature and humidity conditions within a period of time is obtained, including: The flink system based on the IoT device obtains the device data of the IoT device under different temperature and humidity conditions and within a period of time.
6. An IoT device selection device, characterized in that: include: An acquisition module, used to acquire device data of an IoT device under different temperature and humidity conditions over a period of time, wherein the IoT device includes multiple types of IoT devices; A processing module, used to process the device data to obtain analysis data of the IoT device under different temperature and humidity conditions and within a period of time; and A selection module is used to select a target IoT device according to the device data and the analysis data; the selection module is specifically used to: perform statistics on the device data and the analysis data through the time window of the flink system; and analyze the device data and the analysis data after statistics to determine the selected target IoT device; wherein, the analysis of the device data and the analysis data after statistics includes: continuous detection of various IoT devices under different temperature and humidity environments through the flink system, and statistically analyzing the power performance and life performance of various IoT devices under different temperature and humidity environments when the time and data reach a certain level; The processing module is specifically used to: process the monitoring data in the device data to obtain the monitoring data in the analysis data of the Internet of Things device under different temperature and humidity conditions within a period of time; and determine the analysis data based on the monitoring data in the analysis data and the fixed data in the device data.
7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the machine-readable instructions are executed by the processor to perform the steps of any method described in claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are executed.
