CN117857608B - Method and system for collecting equipment data based on Internet of things platform - Google Patents

Method and system for collecting equipment data based on Internet of things platform Download PDF

Info

Publication number
CN117857608B
CN117857608B CN202410256657.8A CN202410256657A CN117857608B CN 117857608 B CN117857608 B CN 117857608B CN 202410256657 A CN202410256657 A CN 202410256657A CN 117857608 B CN117857608 B CN 117857608B
Authority
CN
China
Prior art keywords
equipment
information
model
message
instruction
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
CN202410256657.8A
Other languages
Chinese (zh)
Other versions
CN117857608A (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.)
Anhui Mujing Information Technology Co ltd
Original Assignee
Anhui Mujing Information 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 Anhui Mujing Information Technology Co ltd filed Critical Anhui Mujing Information Technology Co ltd
Priority to CN202410256657.8A priority Critical patent/CN117857608B/en
Publication of CN117857608A publication Critical patent/CN117857608A/en
Application granted granted Critical
Publication of CN117857608B publication Critical patent/CN117857608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a system for collecting equipment data based on an internet of things platform, which relate to the technical field of the internet of things, and the method comprises the following steps: s1, receiving equipment information of target equipment; s2, retrieving an equipment model according to the equipment information; s3, inquiring a device model corresponding to the device model information from a database according to the device model information, if the device model exists, executing S7, otherwise executing S4; s4, creating a device model corresponding to the device model information according to the device model information; s5, if the equipment model is not directly connected, dividing the equipment model into an instruction type equipment model and a monitoring type equipment model, and if the equipment model is not directly connected to the equipment model, directly jumping to S6; s6, describing information obtained after the message analysis by using XML; s7, creating a communication control module according to the information obtained after the message analysis of the communication instruction message described by using XML. Device definition is realized in the same software environment, and the access efficiency of the Internet of things device can be improved.

Description

Method and system for collecting equipment data based on Internet of things platform
Technical Field
The invention relates to the technical field of the Internet of things, in particular to a method and a system for collecting equipment data based on an Internet of things platform.
Background
Remote management of devices has been a difficulty in industrial internet of things. The devices are various, the communication protocols are not uniform, and great difficulty is brought to development and use. In the past, the method was to perform device management and protocol conversion separately, define devices centrally on a general-purpose computer, and then develop protocol conversion programs on an embedded system. This clearly increases the complexity of the cross-platform collaboration.
Disclosure of Invention
The invention provides a method and a system for collecting equipment data based on an internet of things platform, which realize equipment definition, remote management and protocol conversion on the internet of things platform. This not only simplifies development, but also improves user experience.
According to an aspect of the present disclosure, there is provided a method for device data collection based on an internet of things platform, the method being applied to a target device accessing the internet of things platform, the method comprising:
Step S1, receiving equipment information of target equipment, wherein the equipment information comprises equipment model information;
step S2, retrieving an equipment model according to the equipment information;
step S3, inquiring the equipment model corresponding to the equipment model information from the database according to the equipment model information, if the equipment model corresponding to the equipment model information exists in the database, executing the step S7, otherwise, executing the step S4;
s4, creating a device model corresponding to the device model information according to the device model information;
S5, if the device model is a non-direct connection type device model, the device model can be divided into an instruction type device and a monitoring type device, and if the device model is an instruction type non-instruction device, a communication instruction message of the non-direct connection type device model is described by using an extensible markup XML language; for the non-direct connection type equipment of the monitoring type corresponding pair, directly jumping to the step S6;
step S6, using the extensible markup XML language to describe the information obtained after the message analysis, comprising the following steps: describing the data offset and the data type in the receiving message by using an extensible markup XML language;
And S7, creating a communication control module according to the communication instruction message described by using the extensible markup XML language and the information obtained after the message is analyzed, wherein the control module realizes the definition of a data acquisition interface, an application program API service interface or an event release interface based on XML file information.
In one possible implementation, the method further includes: step S8, deploying operation of the communication control module, including: each communication control module is assigned a separate thread.
In one possible implementation manner, the device model is divided into a direct-connection device model and a non-direct-connection device model, and the direct-connection device model can autonomously send a message meeting the requirements of a platform format; the non-direct connection device model cannot autonomously send a message, or the format of the sent message does not meet the requirements of the platform, and the message can be understood by the platform after being analyzed according to a communication protocol.
In one possible implementation manner, after step S4, if the direct connection type device model is adopted, since the standard communication protocol is configured for the target device corresponding to the direct connection type device model, only the JSON language is used to complete the description of the target device, and then the process goes to step S7.
In one possible implementation, the non-direct connection device of the instruction type describes binary content of the instruction using an extensible markup XML language, comprising: binary coding of instructions, corresponding analysis files, instruction serial numbers, communication types, communication addresses and transmission intervals.
In a possible implementation manner, the data offset is a position of the collected data information of the target device in the bit stream, and the data type is a coding method of the data information.
In one possible implementation manner, the creating a communication control module according to a communication instruction message described by using an extensible markup XML language and information obtained after parsing the message includes: communication control modules are created using the abstract factory pattern, each of which can implement communication control over one or more target devices.
According to an aspect of the present disclosure, there is provided a system for collecting device data based on an internet of things platform, the system applying the method, the system including:
The information acquisition module is used for receiving equipment information of the target equipment, wherein the equipment information comprises equipment model information;
the retrieval module is used for retrieving the equipment model according to the equipment information;
the query module queries the equipment model corresponding to the equipment model information from the database according to the equipment model information, if the equipment model corresponding to the equipment model information exists in the database, the step S7 is executed, otherwise, the step S4 is executed;
The model creation module creates a device model corresponding to the device model information according to the device model information;
the communication instruction description module is used for describing the communication instruction of the non-direct connection type equipment model by using an extensible markup XML language if the non-direct connection type equipment model is used;
the message analysis module, the communication instruction is divided into instruction type and monitoring type, for the non-direct connection type equipment of the corresponding pair of monitoring type, the message analysis module is used for using the extensible markup XML language to describe the information obtained after the message analysis, including: describing the data offset and the data type in the receiving message by using an extensible markup XML language;
The communication control module is used for creating the communication control module according to the communication instruction message described by the extensible markup XML language and the information obtained after the message is analyzed, and the control module realizes the definition of a data acquisition interface, an application program API service interface or an event release interface based on XML file information.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a method and a system for collecting equipment data based on an Internet of things platform, which realize equipment definition, remote management and protocol conversion in the same software environment. This not only simplifies development, but also improves user experience.
The method for collecting the device data based on the Internet of things platform utilizes the standard grammar to complete the expression of various communication protocols, and the program constructs the communication control module of the device based on the expression, so that the application program can realize the communication control of different devices in a general environment, and the access efficiency and the maintenance cost of the Internet of things device can be greatly improved.
Drawings
Fig. 1 shows a flowchart of a method for device data collection based on an internet of things platform according to an embodiment of the disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
According to an aspect of the present disclosure, there is provided a method for device data collection based on an internet of things platform, the method being applied to a target device accessing the internet of things platform, the method comprising:
Step S1, receiving equipment information of target equipment, wherein the equipment information comprises equipment model information;
step S2, retrieving an equipment model according to the equipment information;
step S3, inquiring the equipment model corresponding to the equipment model information from the database according to the equipment model information, if the equipment model corresponding to the equipment model information exists in the database, executing the step S7, otherwise, executing the step S4;
s4, creating a device model corresponding to the device model information according to the device model information;
S5, if the device model is a non-direct connection type device model, the device model can be divided into an instruction type device and a monitoring type device, and if the device model is an instruction type non-instruction device, a communication instruction message of the non-direct connection type device model is described by using an extensible markup XML language; for the non-direct connection type equipment of the monitoring type corresponding pair, directly jumping to the step S6;
step S6, using the extensible markup XML language to describe the information obtained after the message analysis, comprising the following steps: describing the data offset and the data type in the receiving message by using an extensible markup XML language;
And S7, creating a communication control module according to the communication instruction message described by using the extensible markup XML language and the information obtained after the message is analyzed, wherein the control module realizes the definition of a data acquisition interface, an application program API service interface or an event release interface based on XML file information.
In one possible implementation, the method further includes: step S8, deploying operation of the communication control module, including: each communication control module is assigned a separate thread.
In one possible implementation manner, the device model is divided into a direct-connection device model and a non-direct-connection device model, and the direct-connection device model can autonomously send a message meeting the requirements of a platform format; the non-direct connection device model cannot autonomously send a message, or the format of the sent message does not meet the requirements of the platform, and the message can be understood by the platform after being analyzed according to a communication protocol.
In one possible implementation manner, after step S4, if the direct connection type device model is adopted, since the standard communication protocol is configured for the target device corresponding to the direct connection type device model, only the JSON language is used to complete the description of the target device, and then the process goes to step S7.
In one possible implementation, the non-direct connection device of the instruction type describes binary content of the instruction using an extensible markup XML language, comprising: binary coding of instructions, corresponding analysis files, instruction serial numbers, communication types, communication addresses and transmission intervals.
In a possible implementation manner, the data offset is a position of the collected data information of the target device in the bit stream, and the data type is a coding method of the data information.
In one possible implementation manner, the creating a communication control module according to a communication instruction message described by using an extensible markup XML language and information obtained after parsing the message includes: communication control modules are created using the abstract factory pattern, each of which can implement communication control over one or more target devices.
According to an aspect of the present disclosure, there is provided a system for collecting device data based on an internet of things platform, the system applying the method, the system including:
The information acquisition module is used for receiving equipment information of the target equipment, wherein the equipment information comprises equipment model information;
the retrieval module is used for retrieving the equipment model according to the equipment information;
the query module queries the equipment model corresponding to the equipment model information from the database according to the equipment model information, if the equipment model corresponding to the equipment model information exists in the database, the step S7 is executed, otherwise, the step S4 is executed;
The model creation module creates a device model corresponding to the device model information according to the device model information;
the communication instruction description module is used for describing the communication instruction of the non-direct connection type equipment model by using an extensible markup XML language if the non-direct connection type equipment model is used;
the message analysis module, the communication instruction is divided into instruction type and monitoring type, for the non-direct connection type equipment of the corresponding pair of monitoring type, the message analysis module is used for using the extensible markup XML language to describe the information obtained after the message analysis, including: describing the data offset and the data type in the receiving message by using an extensible markup XML language;
The communication control module is used for creating the communication control module according to the communication instruction message described by the extensible markup XML language and the information obtained after the message is analyzed, and the control module realizes the definition of a data acquisition interface, an application program API service interface or an event release interface based on XML file information.
The method for collecting equipment data based on the Internet of things platform comprises the following steps:
Step S1, receiving equipment information, wherein the equipment information comprises equipment model information. For example, the device information may be information input by a user. For example, the device may be a flow meter, an electricity meter, an integrating meter, a PLC controller, or the like.
And step S2, retrieving an equipment model according to the equipment information.
And step S3, inquiring the equipment model corresponding to the equipment model information from the database according to the equipment model information, executing step S7 if the equipment model corresponding to the equipment model information exists in the database, and executing step S4 if the equipment model corresponding to the equipment model information does not exist in the database.
And S4, creating a device model corresponding to the device model information according to the device model information.
For example, the equipment models are classified into a direct-connection type equipment model and a non-direct-connection type equipment model. The direct connection type equipment model can autonomously send the message meeting the requirements of the platform format. The non-direct connection device model cannot autonomously send a message, or the format of the sent message does not meet the requirements of the platform, and the message can be understood by the platform after being analyzed according to a communication protocol.
If the device model is a direct connection type device model, as the standard communication protocol is configured for the target device corresponding to the direct connection type device model, only the JSON language is needed to complete the device description, and then the step S7 is skipped;
If the model is a non-direct connection type device model, step S5 is executed to develop a communication protocol. The target device is a device to be connected to the platform of the internet of things, and can be a flowmeter, an ammeter, an integrating instrument, a PLC (programmable logic controller) and the like.
And S5, describing communication instructions of the non-direct connection type equipment model by using an extensible markup XML language. The non-direct connection device model is divided into an instruction type and a monitoring type, the non-direct connection device corresponding to the monitoring type jumps to step 6, the instruction type non-direct connection device uses the extensible markup XML language to describe the binary content of the instruction, and the method comprises the following steps: binary coding of instructions, corresponding analysis files, instruction serial numbers, communication types, communication addresses, transmission intervals and other information.
For example, the following XML commands describe a MODBUS instruction:
<instruct type="MODBUS" deviceaddress="1" functionnumber="3" offsetaddress="3000" registernumber="32" datatype="7"/>"
wherein: instruct represents the tag name, indicating that this is an instruction tag;
type, which indicates the type of instruction;
DEVICEADDRESS, representing the communication address of the device;
functionnumber, representing the function code of the instruction;
offsetaddress, which represents the offset address of the fetch;
registernumber, the number of registers to be acquired;
datatype, representing data types;
The communication protocols are different, and the attributes are also different, for example, the following is a description of an instruction of DLT645 (DLT 645 is a communication protocol used for data communication and remote control between the smart meter and the host computer):
<instruct type="DLT645_07" elecaddress="000055162404" PT="20" CT="100" functionnumber="33,33,34,33"/>.
Wherein instruct type represents a type ELECADDRESS of communication protocol, ammeter address PT represents voltage-to-current ratio ct=represents current-to-current ratio functionnumber represents a function type of instruction
And S6, describing the information obtained after the message analysis by using an extensible markup XML language. The data offset and data type in the received message are described using the extensible markup XML language.
For example, in communication transmission, the bottom layer transmits a bit stream consisting of "0", "1": the transmitting end (equipment) encodes the information into bit stream, and the receiving end (internet of things platform) reversely encodes the received bit stream into the information. A communication message is a bit stream containing the complete communication information. That is, the information required by the platform of the internet of things is contained in the bitstream. For example, the data of the voltage in the ammeter equipment is required to be collected, after the internet of things platform sends a command, the ammeter equipment returns a string of bitstreams, and the application program extracts the voltage value information from the appointed position of the bitstreams according to the description in the extensible markup XML language. Wherein: the offset is the position of this voltage value information in the bit stream. The data type represents the encoding method of this voltage value information.
For example, the received bit stream is: 01 03 02 00 64 B9 AF (16 in system) the message is described in extensible markup XML language as: < node name offset= "3" data type= "shaping" >. The platform can analyze the voltage value to be 100 according to the message description.
And S7, creating a communication control module according to the communication instruction message described by using the extensible markup XML language and the information obtained after the message is analyzed. Communication control modules are created using an abstract factory model, each of which can implement communication control over one or more physical devices. The abstract controller defines three interfaces of data acquisition, API service monitoring and event release. The specific controller object realizes data acquisition, API service and event release related interfaces based on XML file information.
The abstract factory pattern is a design pattern of computer software. In software development, some operation classes with similar behaviors are regarded as a group of products, and the behavior of creating a specific operation class is regarded as the production of the products. This places the act of creating objects in a "factory" class that creates specific operational classes based on externally entered information. The abstract factory method is to define an abstract class for a plurality of similar factory classes, when in use, a specific factory class is firstly obtained, then a group of operation classes are obtained by using the factory class, and then specific actions are completed by using the operation classes.
In this scheme, the operation class of the device includes: data collection, API services, and event publication. Each device has these classes of operations, but the specific implementation varies (details are described in XML). The different operation classes for each device are created with a "factory" class, such as: "flow meter A factory" can create a flow meter A data collection class, a flow meter A API service class, a flow meter A event issue class; "flow B factory" can create a flow B data collection class, a flow B API service class, and a flow B event issue class. To illustrate, a factory is defined for each device to create a specific class of operations. It can also be seen that these factories all have similar behavior: creating data collection classes, creating API service classes, and creating event distribution classes, abstract factory classes can be created for these factory classes. When the device is used, the platform instantiates the corresponding factory class according to the input device model information, so that the operation class of the device is obtained.
And S8, deploying and operating the communication control module. Each communication control module is assigned a separate thread.
Application example:
Receiving device information, for example, a user inputs an ammeter model number of 'Acrel-DTSD 1352', and 'Acrel-DTSD 1352' is the device information;
the internet of things platform does not retrieve the information of the model, and prompts a user to define a device model;
Inquiring a device description document, wherein 'Acrel-DTSD 1352' does not meet the requirement of direct-connected devices, and modeling the devices by using XML language is needed;
Modeling a device using XML language:
<device name="IOTHFYL001" type="INSTRUCT" collectorinterval="60000" sendinterval="1000">
<instruct type="MODBUS" deviceaddress="1" functionnumber="3" offsetaddress="3000" registernumber="32"/>
</device>;
describing message parsing by using XML language:
<device name="IOTHFYL001" type="INSTRUCT">
< receive instructnumber = "1" propertyname = "voltage" offsetnumber = "10" datatype = "7"/>
< Receive instructnumber = "2" propertyname = "current" offsetnumber = "12" datatype = "7"/>
</device>;
Dynamically instantiating a corresponding operation class according to the XML file;
and automatically distributing independent threads for the operation classes through the program, and monitoring the running states of the operation classes.
After receiving the input of the equipment model information, the program firstly searches the equipment model from the database, and if the equipment model already exists, a communication control module of the equipment is constructed according to the related information of the equipment model; otherwise, the application program prompts the user to build a device model, and the development of the device model is completed by using the standardized grammar.
Fig. 1 shows a flowchart of a method for device data collection based on an internet of things platform according to an embodiment of the disclosure. As shown in fig. 1, the platform of the internet of things receives a device model, determines that the device model does not exist, if not, creates a communication control module, if yes, determines whether the device model is a non-direct connection device, if not, completes device description using JSON language, further creates the communication control module, if not, determines whether the device model is a listening type, if so, parses using XML description message, further creates the communication control module, if not, describes a communication instruction using XML language, further parses using XML description message, further creates the communication control module, and after the step of creating the communication control module, distributes independent threads for the communication control module.
The invention provides a method and a system for collecting equipment data based on an Internet of things platform, which realize equipment definition, remote management and protocol conversion in the same software environment. This not only simplifies development, but also improves user experience.
The method for collecting the device data based on the Internet of things platform utilizes the standard grammar to complete the expression of various communication protocols, and the program constructs the communication control module of the device based on the expression, so that the application program can realize the communication control of different devices in a general environment, and the access efficiency and the maintenance cost of the Internet of things device can be greatly improved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present disclosure. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units 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 an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure 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 integrated units described above may be implemented either in hardware or in software program modules.
The integrated units, if implemented in the form of software program modules, may be stored in a computer-readable memory for sale or use as a stand-alone product. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in the various embodiments of the present disclosure. And the aforementioned memory includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has described in detail embodiments of the present disclosure, with specific examples being employed herein to illustrate the principles and implementations of the present disclosure, the above examples being provided solely to assist in understanding the methods of the present disclosure and their core ideas; meanwhile, as one of ordinary skill in the art will have variations in the detailed description and the application scope in light of the ideas of the present disclosure, the present disclosure should not be construed as being limited to the above description.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (7)

1. The method for collecting device data based on the internet of things platform is characterized by being applied to target devices accessed to the internet of things platform, and comprises the following steps:
Step S1, receiving equipment information of target equipment, wherein the equipment information comprises equipment model information;
step S2, retrieving an equipment model according to the equipment information;
step S3, inquiring the equipment model corresponding to the equipment model information from the database according to the equipment model information, if the equipment model corresponding to the equipment model information exists in the database, executing the step S7, otherwise, executing the step S4;
s4, creating a device model corresponding to the device model information according to the device model information;
Step S5, if the device model is a non-direct connection type device model, the device model can be divided into an instruction type device and a monitoring type device, and if the device model is an instruction type non-direct connection type device, a communication instruction message of the non-direct connection type device model needs to be described by using an extensible markup XML language; for the non-direct connection type equipment corresponding to the monitoring type, directly jumping to the step S6;
step S6, using the extensible markup XML language to describe the information obtained after the message analysis, comprising the following steps: describing the data offset and the data type in the receiving message by using an extensible markup XML language;
Step S7, for the instruction type non-direct connection type equipment, a communication control module is established according to the communication instruction message described by using the extensible markup XML language and the information obtained after the message analysis,
For monitoring type non-direct connection type equipment, a communication control module is established according to information obtained after message analysis described by using extensible markup XML language;
The control module realizes the definition of a data acquisition interface, an application program API service interface or an event release interface based on XML file information;
the device model is divided into a direct connection type device model and a non-direct connection type device model, and the direct connection type device model can autonomously send messages meeting the requirements of a platform format; the non-direct connection device model cannot autonomously send a message, or the format of the sent message does not meet the requirements of the platform, and the message can be understood by the platform after being analyzed according to a communication protocol.
2. The method for device data collection based on the internet of things platform according to claim 1, further comprising: step S8, deploying operation of the communication control module, including: each communication control module is assigned a separate thread.
3. The method for collecting device data based on the internet of things platform according to claim 1, wherein after step S4, if the device model is a direct-connection type device model, only a JSON language is required to be used to complete description of the target device due to the fact that the standard communication protocol is configured for the target device corresponding to the direct-connection type device model, and then a communication control module is created.
4. The method for device data collection based on the internet of things platform according to claim 1, wherein the non-direct-connection device of the instruction type uses the binary content of the extensible markup XML language description instruction, comprising: binary coding of instructions, corresponding analysis files, instruction serial numbers, communication types, communication addresses and transmission intervals.
5. The method for device data collection based on the internet of things platform according to claim 1, wherein the data offset is a position of collected data information of a target device in a bit stream, and the data type is a coding method of the data information.
6. The method for collecting device data based on the platform of the internet of things according to claim 1, wherein the creating a communication control module according to the communication instruction message described by using the extensible markup XML language and the information obtained after the message parsing includes: communication control modules are created using the abstract factory pattern, each of which can implement communication control over one or more target devices.
7. A system for device data acquisition based on an internet of things platform, the system applying the method of any one of claims 1-6, the system comprising:
The information acquisition module is used for receiving equipment information of the target equipment, wherein the equipment information comprises equipment model information;
the retrieval module is used for retrieving the equipment model according to the equipment information;
the query module queries the equipment model corresponding to the equipment model information from the database according to the equipment model information, if the equipment model corresponding to the equipment model information exists in the database, the step S7 is executed, otherwise, the step S4 is executed;
The model creation module creates a device model corresponding to the device model information according to the device model information;
the communication instruction description module is used for describing the communication instruction of the non-direct connection type equipment model by using an extensible markup XML language if the non-direct connection type equipment model is used;
The message analysis module, the communication instruction is divided into instruction type and monitoring type, for the non-direct connection type equipment corresponding to the monitoring type, the message analysis module is used for describing the information obtained after the message analysis by using the extensible markup XML language, and the message analysis module comprises: describing the data offset and the data type in the receiving message by using an extensible markup XML language;
the creation module of the communication control module creates the communication control module according to the communication instruction message described by using the extensible markup XML language and the information obtained after the message is analyzed for the instruction type non-direct connection type equipment; for monitoring type non-direct connection type equipment, a communication control module is established according to information obtained after message analysis described by using extensible markup XML language; the control module realizes the definition of a data acquisition interface, an application program API service interface or an event release interface based on XML file information.
CN202410256657.8A 2024-03-07 2024-03-07 Method and system for collecting equipment data based on Internet of things platform Active CN117857608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410256657.8A CN117857608B (en) 2024-03-07 2024-03-07 Method and system for collecting equipment data based on Internet of things platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410256657.8A CN117857608B (en) 2024-03-07 2024-03-07 Method and system for collecting equipment data based on Internet of things platform

Publications (2)

Publication Number Publication Date
CN117857608A CN117857608A (en) 2024-04-09
CN117857608B true CN117857608B (en) 2024-05-03

Family

ID=90529425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410256657.8A Active CN117857608B (en) 2024-03-07 2024-03-07 Method and system for collecting equipment data based on Internet of things platform

Country Status (1)

Country Link
CN (1) CN117857608B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095823A (en) * 2013-01-09 2013-05-08 大唐软件技术股份有限公司 Object description method and object information interaction system in Internet of Things system
WO2015143396A1 (en) * 2014-03-21 2015-09-24 Ptc Inc. Systems and methods using binary dynamic rest messages
CN105138609A (en) * 2015-08-04 2015-12-09 广东瑞德智能科技股份有限公司 XML language based household appliance description method
CN111294401A (en) * 2020-02-10 2020-06-16 泰华智慧产业集团股份有限公司 Internet of things equipment access method and device
CN111459889A (en) * 2020-03-08 2020-07-28 中电海康集团有限公司 Equipment data model generation method and device for Internet of things platform
CN112055062A (en) * 2020-08-21 2020-12-08 深圳市信锐网科技术有限公司 Data communication method, device, equipment and readable storage medium
CN112187632A (en) * 2020-09-23 2021-01-05 大唐广电科技(武汉)有限公司 Industrial equipment integration model and construction method thereof, edge gateway device and industrial equipment integration system
CN112436603A (en) * 2020-11-18 2021-03-02 珠海许继电气有限公司 Terminal equipment acquisition configuration method and device based on platform area intelligent fusion terminal
CN113132192A (en) * 2021-03-02 2021-07-16 西安电子科技大学 Massive Internet of things equipment access and management method
CN113778983A (en) * 2021-08-16 2021-12-10 济南浪潮智投智能科技有限公司 Internet of things equipment and data standardized access and summary presentation method
CN114513410A (en) * 2021-12-29 2022-05-17 紫光云引擎科技(苏州)有限公司 Method and system for equipment to rapidly access Internet of things platform
CN114553892A (en) * 2022-02-21 2022-05-27 济南浪潮智投智能科技有限公司 Intelligent lamp pole management method and system
CN115941716A (en) * 2022-09-13 2023-04-07 杭州华橙软件技术有限公司 Device control method, electronic device, and computer-readable storage medium
CN116011192A (en) * 2022-12-15 2023-04-25 西安华讯科技有限责任公司 Object model abstract control method and system
CN116340413A (en) * 2023-03-28 2023-06-27 科技谷(厦门)信息技术有限公司 Internet of things edge data acquisition and storage method
CN116455945A (en) * 2023-06-16 2023-07-18 鹏城实验室 Method and system for accessing and linking Internet of things equipment
CN116488985A (en) * 2023-04-28 2023-07-25 中铁上海工程局集团华海工程有限公司 Processing method of multi-source heterogeneous Internet of things data
CN117354143A (en) * 2023-09-26 2024-01-05 深圳海辰储能控制技术有限公司 Device access method, device, computer device and storage medium
CN117527568A (en) * 2023-11-24 2024-02-06 深圳市有方科技股份有限公司 Data access method and system of data integration platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10666718B2 (en) * 2018-06-07 2020-05-26 Spatika Technologies Inc. Dynamic data transport between enterprise and business computing systems

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095823A (en) * 2013-01-09 2013-05-08 大唐软件技术股份有限公司 Object description method and object information interaction system in Internet of Things system
WO2015143396A1 (en) * 2014-03-21 2015-09-24 Ptc Inc. Systems and methods using binary dynamic rest messages
CN105138609A (en) * 2015-08-04 2015-12-09 广东瑞德智能科技股份有限公司 XML language based household appliance description method
CN111294401A (en) * 2020-02-10 2020-06-16 泰华智慧产业集团股份有限公司 Internet of things equipment access method and device
CN111459889A (en) * 2020-03-08 2020-07-28 中电海康集团有限公司 Equipment data model generation method and device for Internet of things platform
CN112055062A (en) * 2020-08-21 2020-12-08 深圳市信锐网科技术有限公司 Data communication method, device, equipment and readable storage medium
CN112187632A (en) * 2020-09-23 2021-01-05 大唐广电科技(武汉)有限公司 Industrial equipment integration model and construction method thereof, edge gateway device and industrial equipment integration system
CN112436603A (en) * 2020-11-18 2021-03-02 珠海许继电气有限公司 Terminal equipment acquisition configuration method and device based on platform area intelligent fusion terminal
CN113132192A (en) * 2021-03-02 2021-07-16 西安电子科技大学 Massive Internet of things equipment access and management method
CN113778983A (en) * 2021-08-16 2021-12-10 济南浪潮智投智能科技有限公司 Internet of things equipment and data standardized access and summary presentation method
CN114513410A (en) * 2021-12-29 2022-05-17 紫光云引擎科技(苏州)有限公司 Method and system for equipment to rapidly access Internet of things platform
CN114553892A (en) * 2022-02-21 2022-05-27 济南浪潮智投智能科技有限公司 Intelligent lamp pole management method and system
CN115941716A (en) * 2022-09-13 2023-04-07 杭州华橙软件技术有限公司 Device control method, electronic device, and computer-readable storage medium
CN116011192A (en) * 2022-12-15 2023-04-25 西安华讯科技有限责任公司 Object model abstract control method and system
CN116340413A (en) * 2023-03-28 2023-06-27 科技谷(厦门)信息技术有限公司 Internet of things edge data acquisition and storage method
CN116488985A (en) * 2023-04-28 2023-07-25 中铁上海工程局集团华海工程有限公司 Processing method of multi-source heterogeneous Internet of things data
CN116455945A (en) * 2023-06-16 2023-07-18 鹏城实验室 Method and system for accessing and linking Internet of things equipment
CN117354143A (en) * 2023-09-26 2024-01-05 深圳海辰储能控制技术有限公司 Device access method, device, computer device and storage medium
CN117527568A (en) * 2023-11-24 2024-02-06 深圳市有方科技股份有限公司 Data access method and system of data integration platform

Also Published As

Publication number Publication date
CN117857608A (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN106598581B (en) ASTERIX message analysis code generation method based on XML
CN102495841B (en) Power supply system monitoring method and related device thereof
KR101743904B1 (en) Gateway and tranforming method between iec61850 protocol and dnp3.0 protocol
CN105207366B (en) Distribution terminal plug and play model configuration tool and its implementation based on IEC61850
CN110225026B (en) Protocol converter instrument remote configuration method
CN109245980A (en) Modbus communication protocol analytic method, system and equipment and storage medium
Seif et al. Implementing industry 4.0 asset administrative shells in mini factories
CN108306804A (en) A kind of Ethercat main station controllers and its communication means and system
CN101763043A (en) Method and system for an automation collaborative framework
CN101651679A (en) Data frame analyzing and processing system and method based on tree structure
CN114885044B (en) Self-adaptive analysis processing method for heterogeneous monitoring data packet of measurement and control equipment
CN115794106A (en) Method and system for analyzing configuration of binary protocol data of rail transit
CN117278661B (en) Industrial Internet of things multi-protocol analysis method and system
CN111245633B (en) Configuration file of micro-grid main equipment and operation method thereof
CN117857608B (en) Method and system for collecting equipment data based on Internet of things platform
CN109445384A (en) A kind of more apparatus control systems
CN113312924A (en) Risk rule classification method and device based on NLP high-precision analysis label
CN104750468B (en) A kind of server-side topological data conversion method and conversion equipment
CN111459795A (en) Cluster pressure testing method and device, computer equipment and storage medium
CN110324280A (en) Protocol configuration systems, devices and methods in industrial cloud
CN114663177A (en) State change control method, device, electronic equipment and storage medium
CN104780148B (en) Server, terminal, the system and method for document on-line operation
KR20140123126A (en) System and method for generating database based on SCL
CN103488477A (en) Visual editing system and visual editing method of JAVA interface
CN114330246A (en) Universal data stream analyzing method and system

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