CN114430367B - Data acquisition method and device of Internet of things, computer equipment and storage medium - Google Patents

Data acquisition method and device of Internet of things, computer equipment and storage medium Download PDF

Info

Publication number
CN114430367B
CN114430367B CN202210100857.5A CN202210100857A CN114430367B CN 114430367 B CN114430367 B CN 114430367B CN 202210100857 A CN202210100857 A CN 202210100857A CN 114430367 B CN114430367 B CN 114430367B
Authority
CN
China
Prior art keywords
data
template
configuration information
parameter
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210100857.5A
Other languages
Chinese (zh)
Other versions
CN114430367A (en
Inventor
成正林
何渝君
唐茂文
邬明罡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hanyun Technology Co Ltd
Original Assignee
Hanyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hanyun Technology Co Ltd filed Critical Hanyun Technology Co Ltd
Priority to CN202210100857.5A priority Critical patent/CN114430367B/en
Publication of CN114430367A publication Critical patent/CN114430367A/en
Application granted granted Critical
Publication of CN114430367B publication Critical patent/CN114430367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom

Abstract

The embodiment of the application provides a data acquisition method, a data acquisition device, computer equipment and a storage medium of the Internet of things, and relates to the technical field of the Internet of things. Creating a configuration template according to configuration template parameters input by a user, wherein the configuration template comprises at least one first parameter; according to the equipment identification of the target equipment and the configuration template, sequentially accessing all the equipment connected with the target equipment, and acquiring and storing the configuration information of all the first parameters of all the equipment in the configuration template; creating a data template according to data template parameters input by a user, wherein the data template comprises at least one second parameter, and the second parameter is a parameter to be acquired by each device; and acquiring the data value of each second parameter of each device in the data template according to the configuration information and the data template. According to the configuration template and the data template, the data value to be obtained by each device can be automatically obtained, and the automation degree of the data acquisition process in the Internet of things system is improved.

Description

Data acquisition method and device of Internet of things, computer equipment and storage medium
Technical Field
The application relates to the technical field of the internet of things, in particular to a data acquisition method, a data acquisition device, computer equipment and a storage medium of the internet of things.
Background
The internet of things (The Internet of Things, IOT for short) refers to collecting any object or process needing to be monitored, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners, and the like, collecting various information needed by sound, light, heat, electricity, mechanics, chemistry and the like, realizing ubiquitous connection of objects and people, and realizing intelligent sensing, identification and management of objects and processes. Along with popularization of application of the internet of things, the application scene of the internet of things system is more and more, and access devices in the internet of things system are more and more, and the devices need to be configured with corresponding data acquisition service components when data acquisition is realized, so that configuration of a plurality of access devices in the internet of things system is an important preparation step before data acquisition of the internet of things system.
In the prior art, because the communication protocols of the devices of the internet of things may not be the same, before data acquisition is performed on the devices of the new access internet of things system, a developer needs to perform a demand design according to a service, analyze the protocol of the new access device, and re-develop the data acquisition unit.
In the mode, the current Internet of things system has low development efficiency and large software programming workload in the development process of the data acquisition unit, so that development cost is increased and delivery time is prolonged.
Disclosure of Invention
The purpose of the application includes, for example, providing a data acquisition method, a device, a computer device and a storage medium of the internet of things, which can automatically acquire the data value of the parameter to be acquired of each device according to a configuration template and a data template, thereby improving the automation degree of the data acquisition process in the internet of things system.
Embodiments of the present application may be implemented as follows:
in a first aspect, an embodiment of the present application provides a data acquisition method of the internet of things, where the method includes:
creating a configuration template according to configuration template parameters input by a user, wherein the configuration template comprises at least one first parameter, and the first parameter comprises: device identification, device type identification, attribute name, power, icon, unit, data type, reserved bit number, or calculated attribute;
according to the equipment identification of the target equipment and the configuration template, sequentially accessing all the equipment connected with the target equipment, and acquiring and storing the configuration information of all the first parameters of all the equipment in the configuration template;
creating a data template according to data template parameters input by a user, wherein the data template comprises at least one second parameter, and the second parameter is a parameter to be acquired by each device;
and acquiring the data value of each second parameter of each device in the data template according to the configuration information and the data template.
In an optional implementation manner, the sequentially accessing each device connected with the target device according to the device identifier of the target device and the configuration template, and acquiring and storing configuration information of each first parameter of each device in the configuration template, includes:
accessing each device according to the connection sequence of each device connected with the target device and the hierarchy, and sequentially acquiring the configuration information of the first parameter of each device in the configuration template;
and storing the configuration information according to the layers of the devices.
In an optional implementation manner, the obtaining, according to the configuration information and the data template, the data value of each second parameter of each device in the data template includes:
sequentially reading the configuration information to obtain the configuration information of the first parameters of each device;
and sequentially accessing corresponding equipment according to the configuration information of the first parameters of the equipment to acquire the data value of each second parameter of the equipment in the data template.
In an alternative embodiment, the method further comprises:
determining a data value corresponding to target equipment according to the equipment identification of the target equipment in the configuration information;
taking the equipment identification of each equipment in the configuration information as a keyword field, and creating a data table in a preset database;
and sequentially storing the data values into key word fields of the corresponding data table.
In an optional implementation manner, before determining the data value corresponding to the target device according to the device identifier of the target device in the configuration information, the method further includes:
determining whether the device identification of the target device in the configuration information is valid;
if not, deleting the configuration information and the data value corresponding to the configuration information.
In an optional embodiment, before the data values are sequentially stored in the key fields of the corresponding data table, the method further includes:
and determining a calculation attribute value according to the calculation attribute of the configuration information and the data value corresponding to the calculation attribute.
In an alternative embodiment, the method further comprises:
and generating a device list, a device detail page and a data item monitoring page of each device connected with the target device according to the configuration information.
In a second aspect, an embodiment of the present application provides a data acquisition device of the internet of things, where the device includes:
the system comprises a creation module, a configuration module and a control module, wherein the creation module is used for creating a configuration template according to configuration template parameters input by a user, the configuration template comprises at least one first parameter, and the first parameter comprises: device type identification, display name, icon, data type, reserved bit number, or computational attribute of the device;
the acquisition module is used for sequentially accessing each device connected with the target device according to the device identifier of the target device and the configuration template, and acquiring and storing the configuration information of each first parameter of each device in the configuration template;
the creation module is further used for creating a data template according to the data template parameters input by the user, wherein the data template comprises at least one second parameter, and the second parameter is a parameter to be acquired by each device;
the acquisition module is further used for acquiring data values of second parameters of the devices in the data template according to the configuration template and the data template.
The acquisition module is also used for accessing each device according to the connection sequence of each device connected with the target device and the hierarchy, and sequentially acquiring the configuration information of the first parameter of each device in the configuration template; and storing the configuration information according to the layers of the devices.
The acquisition module is further used for sequentially reading the configuration information to obtain the configuration information of the first parameters of each device; and sequentially accessing corresponding equipment according to the configuration information of the first parameters of the equipment to acquire the data value of each second parameter of the equipment in the data template.
The storage module is used for determining a data value corresponding to the target equipment according to the equipment identification of the target equipment in the configuration information; taking the equipment identification of each equipment in the configuration information as a keyword field, and creating a data table in a preset database; and sequentially storing the data values into key word fields of the corresponding data table.
The storage module is further used for determining whether the device identifier of the target device in the configuration information is valid; if not, deleting the configuration information and the data value corresponding to the configuration information.
And the determining module is used for determining a calculation attribute value according to the calculation attribute of the configuration information and the data value corresponding to the calculation attribute.
The creation module is further used for generating a device list, a device detail page and a data item monitoring page of each device connected with the target device according to the configuration information.
In a third aspect, embodiments of the present application provide a server, where the server includes: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory in communication over the bus when the server is running, the processor executing the machine readable instructions to perform the steps of the data collection method of the internet of things as described in any of the preceding embodiments.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of a data collection method of the internet of things as in any of the previous embodiments.
The beneficial effects of the embodiment of the application include:
by adopting the data acquisition method, the device, the computer equipment and the storage medium of the Internet of things, firstly, the data value of the parameter to be acquired of each equipment can be automatically acquired through the set configuration template and the data template, and the flexibility and the automation degree of the data acquisition system of the Internet of things are improved. And secondly, the configuration information of each device connected with the target device is stored in the configuration, and the parameters to be acquired of each device are stored in the data template, so that when a new device is accessed in the Internet of things system, the newly accessed device can be subjected to data acquisition only by updating the configuration information and the data template, the data value is acquired, the development cost of the data acquisition unit of the Internet of things system is reduced, and the intelligent degree of data acquisition is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic step flow diagram of a data acquisition method of the internet of things according to an embodiment of the present application;
fig. 2 is a flowchart illustrating another step of the data collection method of the internet of things according to the embodiment of the present application;
fig. 3 is a flowchart illustrating another step of the data collection method of the internet of things according to the embodiment of the present application;
fig. 4 is a flowchart illustrating another step of the data collection method of the internet of things according to the embodiment of the present application;
fig. 5 is a flowchart illustrating another step of the data collection method of the internet of things according to the embodiment of the present application;
fig. 6 is a schematic structural diagram of a data acquisition device of the internet of things according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
Icon: 100-a data acquisition device of the Internet of things; 1001-creating a module; 1002-an acquisition module; 1003-a storage module; 1004-a determination module; 2001-processor; 2002-memory.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that, without conflict, features in embodiments of the present application may be combined with each other.
The data acquisition unit plays a vital role in an Internet of things system, a plurality of devices are generally connected with the central operation device in a radial mode according to a hierarchy in the Internet of things system, and the central operation device acquires data from each device through the data acquisition unit and stores the data. With popularization of application of the internet of things, the use scene of the internet of things system is more and more complex, and the number of access devices of the internet of things system is more and more. Therefore, how to collect data of newly accessed data is of great importance.
At present, a data acquisition system of an internet of things system is customized and developed according to equipment contained in the system. Because the communication protocols of the devices may be different, when a new device accesses the internet of things system, a developer needs to analyze the communication protocol of the new access device, and the data items to be collected are sorted according to the service requirements. Then, the developer designs the new access equipment basic information table, the equipment information expansion table, time-ordered data storage and the like, accesses the new access equipment according to the table to acquire data, acquires corresponding data items and stores the data items.
According to the data acquisition mode of the Internet of things in the prior art, protocol analysis needs to be carried out on newly accessed equipment each time to acquire corresponding data items, so that the data acquisition efficiency of the Internet of things system is low, and the expandability is poor. The internet of things system with small instant scene difference also needs to re-customize the data acquisition unit, so that the programming workload is large, and the development time and cost of the data acquisition unit are prolonged.
Based on the research, the applicant provides a data acquisition method, a device, a computer device and a storage medium of the internet of things, which can automatically update configuration information according to a configuration template when new equipment is accessed, and can directly acquire data of all the equipment according to the configuration information and a preset data template, so that the flexibility and the automation degree of a data acquisition system of the internet of things are improved.
The data acquisition method, device, computer equipment and storage medium of the internet of things provided in the embodiments of the present application are explained below in conjunction with a plurality of specific application examples.
As shown in fig. 1, a step flow diagram of a data collection method of the internet of things provided in the embodiment of the present application is shown, where an execution body of the method may be a local server or a cloud server with a computing processing capability, and may be a rack server, a computing device such as a blade server, a tower server, or a cabinet server, and it may be understood that the local server or the cloud server may be an independent server, or may be a server cluster formed by a plurality of servers. The server is a data acquisition and storage center of the Internet of things system and is connected with a plurality of devices to be acquired. As shown in fig. 1, the method includes:
s101, creating a configuration template according to configuration template parameters input by a user, wherein the configuration template comprises at least one first parameter, and the first parameter comprises: device identification, device type identification, attribute name, power, icon, unit, data type, reserved bit number, or calculated attribute.
The configuration template comprises: at least one first parameter, which is used to define basic configuration parameter information of the device, may be set according to the needs of the user.
Illustratively, the first parameter may be: and the device identifier is used for uniquely identifying the target device. The device type identifier is used to identify the type of the device, and may be, for example, a terminal device or a gateway. The attribute name, which may be a device identification of the child device or the child gateway, is used to uniquely identify the child device or the child gateway. And the electric quantity is used for identifying the residual electric quantity of the sub-equipment if the sub-equipment is the sub-equipment. And the icon is used for identifying the picture of the icon corresponding to the sub-equipment or the sub-gateway. The unit is used for identifying the unit of data to be collected by the sub-equipment or the sub-gateway, and can be, for example, degrees celsius, humidity and the like. The data type is used to identify the data type to be collected by the sub-device or the sub-gateway, and may be float (floating point type), int (integer type), etc., for example. And the reserved bit number is used for identifying the reserved bit number of the data to be acquired by the sub-equipment if the acquired data type is floating point type. Calculating an attribute, which is a formula that needs to perform further arithmetic operation on the second parameter to be acquired in the data to be acquired, for example, calculating a temperature difference between two temperature detection devices arranged at different positions, where the calculating attribute may be set as follows: difference of data collected by the two temperature detection devices.
S102, sequentially accessing each device connected with the target device according to the device identification of the target device and the configuration template, and acquiring and storing configuration information of each first parameter of each device in the configuration template.
The target device may be one device of a plurality of devices directly connected to the local server or the cloud server, or may be a gateway, if the target device is a device, it may include a plurality of sub-devices, and if the target device is a gateway, it may include a sub-gateway or a sub-device connected to the gateway.
The server sequentially accesses the sub-gateways or the sub-devices connected with the target device according to the device identification of the target device, and obtains corresponding information for each sub-device according to one or more first parameters set in the configuration template. Finally, the information of the plurality of sub-devices constitutes configuration information.
S103, creating a data template according to the data template parameters input by the user, wherein the data template comprises at least one second parameter, and the second parameter is a parameter to be acquired by each device.
Alternatively, the server may create the data template based on template parameters entered by the user. The data template may include one or more second parameters to be collected, for example, if the sub-device is an air conditioner, it may be an equipment identifier of the air conditioner, a temperature value of an internal machine, a temperature value of an external machine, an environmental humidity value, and the like, which are not limited herein.
S104, according to the configuration information and the data template, acquiring the data value of each second parameter of each device in the data template.
The server can sequentially access each sub-gateway or sub-device connected with the target device according to the device identifier in the configuration information, and if the sub-device is the sub-device, the server acquires the data value of each sub-device corresponding to the second parameter according to the second parameter of the data template.
It should be noted that, if a new device is accessed in the internet of things system, the server may re-acquire the configuration information, that is, sequentially access each device connected to the target device, and may adaptively modify the first parameter in the configuration template according to the user requirement and update the configuration information. Likewise, if each sub-device connected to the target device changes the device type, the second parameter in the data template may be adaptively modified according to the changed type.
In the embodiment, the data value of the parameter to be acquired of each device is automatically acquired through the set configuration template and data template, so that the flexibility and the automation degree of the data acquisition system of the internet of things are improved. In addition, the newly accessed equipment can be subjected to data acquisition only by updating the data template and the configuration template to acquire the data value, so that the development cost of the data acquisition unit of the Internet of things system is reduced, and the intelligent degree of data acquisition is improved.
Optionally, as shown in fig. 2, in the step S102, according to the device identifier of the target device and the configuration template, each device connected to the target device is sequentially accessed, and configuration information of each first parameter of each device in the configuration template is obtained and stored, which may be implemented in the following steps S201 to S202:
s201, accessing each device according to the connection sequence of each device connected with the target device, and sequentially acquiring configuration information of a first parameter of each device in a configuration template.
As in the previous embodiment, the devices connected to the target device may be connected in a hierarchical manner, for example, the target device is connected to a sub-gateway, which is further connected to 10 air conditioners, and then the first layer device connected to the target device is the sub-gateway, and the second layer device is the 10 air conditioners.
When accessing each device connected with the target device, the server will first access the first layer device, then further access each first layer device in turn, and access the second layer device of the next layer if the device has the next layer device. And after the access is completed, sequentially accessing the second-layer equipment to acquire the next-layer equipment of the second-layer equipment.
Optionally, the access mode of the server may be that each first layer device directly connected to the server is sequentially accessed, and then each first layer device is sequentially accessed according to a hierarchy, that is, after a certain first layer device accesses to a last layer device connected to the first layer device, the next first layer device of the first layer device is accessed.
S202, storing configuration information according to the layers of the devices.
The configuration information obtained by hierarchical access is stored in a nested manner according to the hierarchical relationship of each device. Illustratively, the sub-gateway connected to the target device is stored in a first layer nest corresponding to the configuration information of the target device, and the configuration information of 10 air conditioners is sequentially stored in a nest of the sub-gateway, that is, a second layer nest of the target device.
In this embodiment, access and configuration information storage are performed on each sub-device and sub-gateway connected to the target device in a hierarchical manner, so that the sub-device can be avoided being missed during access, and the network topology structure of each sub-device connected to the target device can be intuitively restored through the configuration information.
Alternatively, as shown in fig. 3, in the step S104, the data values of the second parameters of each device in the data template are obtained according to the configuration information and the data template, which may be implemented in steps S301 to S302 described below.
S301, the configuration information is read in sequence, and the configuration information of the first parameters of each device is obtained.
S302, sequentially accessing the corresponding devices according to the configuration information of the first parameters of the devices, and acquiring the data values of the second parameters of the devices in the data template.
The server may sequentially read the configuration information stored in layers, where each reading obtains configuration information corresponding to the first parameter of a certain device. According to the equipment identification of the sub-equipment in the configuration information, the server accesses the corresponding sub-equipment and acquires a data value corresponding to a second parameter according to the second parameter in the data template.
After the data values are read and stored, the server can sequentially acquire the configuration information of the first parameter of the next device in the configuration information, and acquire the data values corresponding to the second parameter in the data template according to the configuration information of the device. The data acquisition of all sub-devices connected with the target device is completed by sequentially cycling through the steps.
It can be understood that the storage mode of the data values of each device can be the same as that of the configuration information, and the data values are stored in a nested manner according to the hierarchy, so that the corresponding relationship between the configuration information and the topology network formed by the data values is the same, and the data values are convenient to search.
In this embodiment, the configuration information is circularly read, so as to complete data acquisition of respective devices. The data acquisition can be completed more comprehensively and rapidly, and the intelligent degree of the Internet of things system is improved.
Optionally, as shown in fig. 4, the data acquisition method of the internet of things provided in the embodiment of the present application further includes the following steps:
s401, determining a data value corresponding to the target device according to the device identification of the target device in the configuration information.
If the data value and the configuration information of the target device both include the device identifier of the target device in the above embodiment, the device identifier in the data value may be matched with the device identifier in the configuration information, so as to determine the data value corresponding to the configuration information of the target device.
S402, taking the device identification of each device in the configuration information as a keyword field, and creating a data table in a preset database.
Alternatively, since the device identifier of each device may uniquely identify the device, the device identifier in the configuration information may be used as a KEY (KEY) field, and the other first parameters in the configuration template and the second parameters of the data template may be used as other fields to create a data table in the preset database.
S403, sequentially storing the data values into the key fields of the corresponding data table.
And finally, the server takes the configuration information and the data value of each device as one piece of data, and stores the configuration information and the data value of each device into the corresponding field of the table created in the preset database.
In the embodiment, the configuration information and the data value acquired by the data acquisition of the internet of things system are stored in a database for long-term storage, so that modification and subsequent consulting analysis are facilitated.
Alternatively, as shown in fig. 5, in the above step S401, determining the data value corresponding to the target device according to the device identifier of the target device in the configuration information may be implemented in steps S501 to S502 described below.
S501, it is determined whether the device identifier of the target device in the configuration information is valid.
Optionally, the server may store in advance a device identifier table of each device in the internet of things system, and the server may determine whether the target device corresponding to the configuration information is an effective device in the internet of things system by checking whether the device identifier of the target device in the configuration information is in the device identifier table.
S502, if not, deleting the configuration information and the data value corresponding to the configuration information.
If the target device in the configuration information is a valid device, the next step is performed. Otherwise, if the target device in the configuration information does not find the corresponding data value in the device identification table, the configuration information is invalid, and the server deletes the configuration information and the data value corresponding to the configuration information and having the same device identification.
Optionally, the server may also check the data value acquired by the data acquisition, and if there is a data value that cannot correspond to the data template in the acquired data value, the server may also delete the data value.
In this embodiment, the server may determine, according to the device identifier of the target device, whether the target device is an effective device, so as to avoid wasting server resources caused by collecting and storing data of devices outside the internet of things system.
Optionally, in the step S403, storing the data values in the key fields of the corresponding data table sequentially may include: and determining a calculated attribute value according to the calculated attribute of the configuration information and the data value corresponding to the calculated attribute.
As in the previous embodiment, the calculated attribute may be a formula for further calculating the second parameter to be collected in the data template.
After the server obtains the data value, the computing attribute computing expression can be executed according to the computing attribute set in the configuration information, and the computing attribute value is obtained by computing the corresponding second parameter in the data template. The calculation attribute may be set in plural, and the corresponding calculation attribute value may also include plural.
Alternatively, the calculated attribute may be used as a field name, and the calculated attribute value may be stored in a database, together with configuration information and data values of the corresponding device, as a piece of data, and stored in the database.
In this embodiment, the calculated attribute value is obtained by calculating the calculated attribute, so that the data of the internet of things system obtained by data acquisition can be further processed by calculating the attribute, and the diversity of the data acquisition result is improved.
Optionally, the data acquisition method of the internet of things provided by the embodiment of the application further includes: and generating a device list, a device detail page and a data item monitoring page of each device connected with the target device according to the configuration information.
The device list may be a table in which device identifiers of devices connected to the target device are shown in a hierarchy. The device detail page may include a plurality of devices, each device detail page corresponding to a child device of one target device for displaying configuration information of the child device. The data item monitoring pages can also comprise a plurality of data item monitoring pages, and each data item monitoring page corresponds to one piece of sub-equipment and is used for displaying the data acquisition result of the sub-equipment.
In this embodiment, the collected configuration information and data values are further processed, so that a worker can intuitively obtain the data collection condition and the network topology structure of each piece of sub-equipment connected with the target equipment through the equipment list, the equipment detail page and the data item monitoring page.
Optionally, the data collection method of the internet of things provided by the embodiment of the application may further include functions of threshold early warning, rule engine and the like. The threshold early warning means that a user can set one or more of the second parameters of the data template in advance, and when the acquired data value reaches a certain standard, early warning information can be sent out, for example, a warning picture is played, or warning audio is played. The rule engine is that a user can set an association relation between second parameters of a certain piece of equipment in the internet of things system, and the association relation is further controlled by the server. Illustratively, the user may set the air humidity value in the second parameter of the humidifier to be greater than 50% and control the window connected thereto to be opened.
As shown in fig. 6, the embodiment of the present application further provides a data acquisition device 100 of the internet of things, where the device includes:
the creating module 1001 is configured to create a configuration template according to configuration template parameters input by a user, where the configuration template includes at least one first parameter, and the first parameter includes: device type identification, display name, icon, data type, reserved bit number, or computational attribute of the device.
The obtaining module 1002 is configured to sequentially access each device connected to the target device according to the device identifier of the target device and the configuration template, and obtain and store configuration information of each first parameter of each device in the configuration template.
The creating module 1001 is further configured to create a data template according to the data template parameters input by the user, where the data template includes at least one second parameter, and the second parameter is a parameter to be collected by each device.
The obtaining module 1002 is further configured to obtain, according to the configuration template and the data template, a data value of each second parameter of each device in the data template.
The obtaining module 1002 is further configured to access each device according to a connection sequence of each device connected to the target device, and sequentially obtain configuration information of a first parameter of each device in the configuration template; and storing the configuration information according to the layers of the devices.
The obtaining module 1002 is further configured to sequentially read configuration information to obtain configuration information of a first parameter of each device; and sequentially accessing the corresponding devices according to the configuration information of the first parameters of the devices to acquire the data values of the second parameters of the devices in the data template.
A storage module 1003, configured to determine a data value corresponding to the target device according to the device identifier of the target device in the configuration information; taking the equipment identification of each equipment in the configuration information as a keyword field, and creating a data table in a preset database; and sequentially storing the data values into the key word fields of the corresponding data table.
The storage module 1003 is further configured to determine whether a device identifier of the target device in the configuration information is valid; if not, deleting the configuration information and the data value corresponding to the configuration information.
The determining module 1004 is configured to determine a calculation attribute value according to the calculation attribute of the configuration information and a data value corresponding to the calculation attribute.
The creation module 1001 is further configured to generate, according to the configuration information, a device list, a device detail page, and a data item monitoring page of each device connected to the target device.
The present embodiment also provides a server, as shown in fig. 7, including: the data acquisition system comprises a processor 2001, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor 2001, and when a server runs, the processor 2001 and the storage medium communicate through the bus, and the processor 2001 executes the machine-readable instructions to execute the steps of the data acquisition method of the internet of things in the embodiment.
The memory 2002, the processor 2001, and the bus are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The data acquisition device of the internet of things comprises at least one software functional module which may be stored in the memory 2002 in the form of software or firmware (firmware) or cured in the Operating System (OS) of the computer device. The processor 2001 is configured to execute executable modules stored in the memory 2002, such as software functional modules and computer programs included in a data acquisition device of the internet of things.
The Memory 2002 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
Optionally, the application further provides a storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the data acquisition method embodiment of the internet of things are executed. The specific implementation manner and the technical effect are similar, and are not repeated here.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, which are not described in detail in this application. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions easily conceivable by those skilled in the art within the technical scope of the present application should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. The data acquisition method of the Internet of things is characterized by comprising the following steps of:
creating a configuration template according to configuration template parameters input by a user, wherein the configuration template comprises at least one first parameter, and the first parameter comprises: device identification, device type identification, attribute name, power, icon, unit, data type, reserved bit number, or calculated attribute;
according to the equipment identification of the target equipment and the configuration template, sequentially accessing all the equipment connected with the target equipment, and acquiring and storing the configuration information of all the first parameters of all the equipment in the configuration template;
creating a data template according to data template parameters input by a user, wherein the data template comprises at least one second parameter, and the second parameter is a parameter to be acquired by each device;
acquiring data values of second parameters of each device in the data template according to the configuration information and the data template;
the method further comprises the steps of:
determining a data value corresponding to target equipment according to the equipment identification of the target equipment in the configuration information;
taking the equipment identification of each equipment in the configuration information as a keyword field, and creating a data table in a preset database;
and sequentially storing the data values into key word fields of the corresponding data table.
2. The method for data collection of the internet of things according to claim 1, wherein the sequentially accessing each device connected with the target device according to the device identifier of the target device and the configuration template, obtaining and storing configuration information of each first parameter of each device in the configuration template, includes:
accessing each device according to the connection sequence of each device connected with the target device and the hierarchy, and sequentially acquiring the configuration information of the first parameter of each device in the configuration template;
and storing the configuration information according to the layers of the devices.
3. The method for data collection of the internet of things according to claim 1, wherein the obtaining, according to the configuration information and the data template, the data value of each second parameter of each device in the data template includes:
sequentially reading the configuration information to obtain the configuration information of the first parameters of each device;
and sequentially accessing corresponding equipment according to the configuration information of the first parameters of the equipment to acquire the data value of each second parameter of the equipment in the data template.
4. The method for data collection of the internet of things according to claim 1, wherein before determining the data value corresponding to the target device according to the device identifier of the target device in the configuration information, the method further comprises:
determining whether the device identification of the target device in the configuration information is valid;
if not, deleting the configuration information and the data value corresponding to the configuration information.
5. The method for data collection of the internet of things according to claim 1, wherein before the data values are sequentially stored in the key fields of the corresponding data table, the method further comprises:
and determining a calculation attribute value according to the calculation attribute of the configuration information and the data value corresponding to the calculation attribute.
6. The data collection method of the internet of things according to claim 1, wherein the method further comprises:
and generating a device list, a device detail page and a data item monitoring page of each device connected with the target device according to the configuration information.
7. The utility model provides a data acquisition device of thing networking, its characterized in that, the device includes:
the system comprises a creation module, a configuration module and a control module, wherein the creation module is used for creating a configuration template according to configuration template parameters input by a user, the configuration template comprises at least one first parameter, and the first parameter comprises: device type identification, display name, icon, data type, reserved bit number, or computational attribute of the device;
the acquisition module is used for sequentially accessing each device connected with the target device according to the device identifier of the target device and the configuration template, and acquiring and storing the configuration information of each first parameter of each device in the configuration template;
the creation module is further used for creating a data template according to the data template parameters input by the user, wherein the data template comprises at least one second parameter, and the second parameter is a parameter to be acquired by each device;
the acquisition module is further used for acquiring data values of second parameters of the devices in the data template according to the configuration template and the data template;
the storage module is used for determining a data value corresponding to the target equipment according to the equipment identification of the target equipment in the configuration information; taking the equipment identification of each equipment in the configuration information as a keyword field, and creating a data table in a preset database; and sequentially storing the data values into key word fields of the corresponding data table.
8. A server, the server comprising: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory in communication via the bus when the server is running, the processor executing the machine readable instructions to perform the steps of the data collection method of the internet of things as claimed in any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the data acquisition method of the internet of things of any one of claims 1-6.
CN202210100857.5A 2022-01-27 2022-01-27 Data acquisition method and device of Internet of things, computer equipment and storage medium Active CN114430367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210100857.5A CN114430367B (en) 2022-01-27 2022-01-27 Data acquisition method and device of Internet of things, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210100857.5A CN114430367B (en) 2022-01-27 2022-01-27 Data acquisition method and device of Internet of things, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114430367A CN114430367A (en) 2022-05-03
CN114430367B true CN114430367B (en) 2024-02-23

Family

ID=81313415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210100857.5A Active CN114430367B (en) 2022-01-27 2022-01-27 Data acquisition method and device of Internet of things, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114430367B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115510038A (en) * 2022-11-17 2022-12-23 中国铁建高新装备股份有限公司 Equipment data management method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302787A (en) * 2016-08-31 2017-01-04 四川云农高地智能科技有限公司 A kind of internet of things networking method based on high in the clouds configuration
CN111586195A (en) * 2020-07-03 2020-08-25 湖南工业大学 Communication topology method and system of Internet of things
CN112367250A (en) * 2020-11-16 2021-02-12 江西云绿科技有限公司 Internet of things multi-protocol gateway
CN113110251A (en) * 2021-05-19 2021-07-13 重庆忽米网络科技有限公司 Data configuration method for data acquisition of Internet of things equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160328719A1 (en) * 2015-05-07 2016-11-10 Ca, Inc. DATA NORMALIZATION FOR INTERNET OF THINGS (IoT) DEVICES
US20200225655A1 (en) * 2016-05-09 2020-07-16 Strong Force Iot Portfolio 2016, Llc Methods, systems, kits and apparatuses for monitoring and managing industrial settings in an industrial internet of things data collection environment
US20210392150A1 (en) * 2020-06-15 2021-12-16 Vmware, Inc. Automatic integration of iot devices into a network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302787A (en) * 2016-08-31 2017-01-04 四川云农高地智能科技有限公司 A kind of internet of things networking method based on high in the clouds configuration
CN111586195A (en) * 2020-07-03 2020-08-25 湖南工业大学 Communication topology method and system of Internet of things
CN112367250A (en) * 2020-11-16 2021-02-12 江西云绿科技有限公司 Internet of things multi-protocol gateway
CN113110251A (en) * 2021-05-19 2021-07-13 重庆忽米网络科技有限公司 Data configuration method for data acquisition of Internet of things equipment

Also Published As

Publication number Publication date
CN114430367A (en) 2022-05-03

Similar Documents

Publication Publication Date Title
KR102317535B1 (en) Methods and systems for implementing data tracking with software development kits
CN108427705B (en) Electronic device, distributed system log query method and storage medium
US20170102986A1 (en) Automatic correlation of dynamic system events within computing devices
CN109194617B (en) Automatic parsing and packaging method and device for XML (extensive markup language) message
CN112040014B (en) Internet of things system determination method and device, electronic equipment and storage medium
US20120102032A1 (en) Method to perform mappings across multiple models or ontologies
CN109063077B (en) Data access method and device based on elastic search
US9329651B2 (en) Electric power management system, electric power management device, electric power management method, and computer readable recording medium
CN107688627B (en) Internet of things data management method, semantic database and computer system
CN114741396B (en) Data service processing method and device, electronic equipment and storage medium
CN115422592A (en) Big data security processing method and system
CN113872681B (en) Optical cable supervision method and system of mobile terminal, mobile terminal and storage medium
CN114430367B (en) Data acquisition method and device of Internet of things, computer equipment and storage medium
CN108154024B (en) Data retrieval method and device and electronic equipment
CN115883407A (en) Data acquisition method, system, equipment and storage medium
CN111061802A (en) Power data management processing method and device and storage medium
CN112364051B (en) Data query method and device
CN115374109B (en) Data access method, device, computing equipment and system
CN111552666A (en) Resource acquisition method, device, equipment and storage medium
CN113434585B (en) Resource preservation method and equipment
CN111797422A (en) Data privacy protection query method and device, storage medium and electronic equipment
CN115695073A (en) Communication method, device, equipment and storage medium
CN113204592B (en) Data processing method, system and device in Internet of things scene and storage medium
CN115168605A (en) Map determination method and apparatus, storage medium, and electronic apparatus
CN114691723A (en) Industrial data processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant