CN111596974A - Intelligent acquisition system and method based on finite-state machine algorithm - Google Patents
Intelligent acquisition system and method based on finite-state machine algorithm Download PDFInfo
- Publication number
- CN111596974A CN111596974A CN202010330286.5A CN202010330286A CN111596974A CN 111596974 A CN111596974 A CN 111596974A CN 202010330286 A CN202010330286 A CN 202010330286A CN 111596974 A CN111596974 A CN 111596974A
- Authority
- CN
- China
- Prior art keywords
- data
- state
- equipment
- acquisition
- finite
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000007405 data analysis Methods 0.000 claims abstract description 48
- 238000007726 management method Methods 0.000 claims abstract description 47
- 238000013500 data storage Methods 0.000 claims abstract description 11
- 238000004458 analytical method Methods 0.000 claims abstract description 7
- 238000013524 data verification Methods 0.000 claims description 5
- 238000012795 verification Methods 0.000 claims description 5
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4498—Finite state machines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses an intelligent acquisition system and method based on a finite-state machine algorithm, belonging to the technical field of management and control of equipment of the Internet of things, wherein the system comprises a state word management module, a state processing definition module, a data analysis driving management module, a data driving and data storage module, wherein the state word management module is used for defining the equipment state possibly encountered by the system in the execution process; the state processing definition module is used for defining the operation of the device state encountered in each execution process; the data analysis driver is developed by a user in a self-defined way, and provides a data analysis function for the user after being uploaded to the system; the data analysis drive management module is used for providing user-defined equipment data analysis drive management for a user; the data storage module is used for storing the analyzed device data. The invention applies finite-state machine algorithm to process the state of the equipment data acquisition terminal, has the characteristics of flexibility and expandability, and can adapt to the acquisition and analysis functions of various intelligent equipment numbers.
Description
Technical Field
The invention relates to the technical field of management and control of Internet of things equipment, in particular to an intelligent acquisition system and method based on a finite-state machine algorithm.
Background
Most of existing data acquisition systems can achieve data acquisition functions of MODBUS protocols and HTTP protocols, but data acquisition of special automatic binary data uploading equipment cannot be flexibly supported, so that data acquisition of the equipment cannot be achieved, and the problem that data acquisition of temperature and humidity detection equipment cannot be supported in work is solved.
Disclosure of Invention
The technical task of the invention is to provide an intelligent acquisition system and method based on finite-state machine algorithm aiming at the above disadvantages, which can realize the data acquisition function of special binary data automatic uploading equipment while supporting the instruction type data acquisition mode of the traditional MODBUS protocol and the JSON format data acquisition mode based on the HTTP protocol, and has wide adaptability and usability.
The technical scheme adopted by the invention for solving the technical problems is as follows:
an intelligent acquisition system based on finite state machine algorithm comprises a state word management module, a state processing definition module, a data analysis driving management module, a data driving and data storage module,
the state word management module is used for defining the device state which can be met by the system in the execution process and defining a device state word;
the state processing definition module is used for defining the operation performed aiming at the equipment state encountered in each execution process, namely defining a processing program for the equipment state word;
the data analysis driver is self-defined and developed for a user, and provides a data analysis function for the user after being uploaded to the system so as to realize analysis of different data, thereby realizing data acquisition work supporting various types of equipment;
the data analysis drive management module is used for providing user-defined equipment data analysis drive management for a user and ensuring the normal use of the data analysis drive;
the data storage module is used for storing the analyzed device data.
The system completes authority verification and data verification functions during data uploading, and can complete data acquisition functions of various devices.
Preferably, the device state includes a state that may be encountered during system execution, such as device offline, device connected, command issued to the terminal, terminal issued to the device, terminal timeout, device no-data return, and the like.
Further, the operations defined by the state processing definition module include: if the equipment is connected, sending a data acquisition instruction to the terminal; if the equipment has no data to return, a message is sent to the relevant management personnel to remind the management personnel to carry out initialization operation on the equipment, and the normal operation of the equipment is ensured.
Further, the device data analysis driver management comprises uploading, enabling and disabling of the device data analysis driver.
Specifically, the implementation process of the system is as follows: state word management module starting → state processing definition module starting → data analysis drive management module starting → loading data analysis drive → system running;
the system is implemented as follows: the state word management module defines the device state word → the state processing definition module defines the processing program for the device state word → receives the device data → starts and loads the corresponding data analysis driver through the data analysis driver management module, processes the device data → stores the analyzed device data.
Preferably, the acquisition of the device data comprises data acquisition of an intelligent instrument based on an MODBUS protocol, data acquisition of JSON data based on an HTTP protocol and data acquisition of a device needing to actively upload binary data; and processing the authority verification and the data verification when the data of the equipment is uploaded. The data acquisition function of automatic uploading equipment of special binary data is realized while supporting the instruction type data acquisition mode of the traditional MODBUS protocol and the JSON format data acquisition mode based on the HTTP protocol.
Specifically, the system is implemented in the following manner:
1) deploying the intelligent acquisition system on a server;
2) defining all state words of the data acquisition terminal in a state word management module;
3) uploading the data analysis driver customized by the user to the intelligent acquisition system;
4) the state processing definition module defines the operation required to be carried out aiming at each equipment state;
5) the system enters a finite state machine processing process;
6) receiving equipment data;
7) inquiring equipment analysis drive;
8) and analyzing and storing the data.
The invention also claims an intelligent acquisition method based on the finite-state machine algorithm, which defines a set of possible working states of the equipment data acquisition terminal by defining equipment state words; the state of the terminal equipment is processed and collected in a finite state machine processing algorithm mode by defining a processing program for the equipment state word; and processing the received equipment data by uploading a user-defined data analysis driving program, so as to realize data acquisition of various types of equipment.
The method processes the state of the acquisition terminal equipment by customizing the set of possible working states of the equipment data acquisition terminal and the finite state machine processing algorithm, and can flexibly realize the data acquisition work of various types of equipment.
Preferably, the multi-class device data acquisition includes data acquisition of a binary data active upload device, data acquisition of a data upload device of an MODBUS protocol, and data acquisition of a data upload device of an HTTP protocol. The data acquisition function of automatic uploading equipment of special binary data is realized while supporting the instruction type data acquisition mode of the traditional MODBUS protocol and the JSON format data acquisition mode based on the HTTP protocol.
Further, the specific implementation manner of the method is as follows:
s1, defining a device status word;
s2, uploading a user-defined data analysis driver;
s3, defining a processing program for the device status word;
s4, receiving the device data, and judging the device status word;
s5, calling an equipment state word processing program;
s6, storing the equipment data; and if the equipment state is abnormal, sending alarm information.
Compared with the prior art, the intelligent acquisition system and method based on the finite-state machine algorithm have the following beneficial effects:
the system and the method apply a finite-state machine algorithm to process the state of the equipment data acquisition terminal, have the characteristics of flexibility and expandability, can adapt to the acquisition and analysis functions of various intelligent equipment numbers, have the advantage of strong adaptability, can be applied to the field of supporting various data acquisition modes, and particularly meet the field of the current popular IOT equipment management and control platform. The system and the method realize the data acquisition work of various devices through a finite state machine algorithm, can realize the data acquisition function of the special binary data automatic uploading device while supporting the instruction type data acquisition mode of the traditional MODBUS protocol and the JSON format data acquisition mode based on the HTTP protocol, and have wide adaptability and usability.
Drawings
FIG. 1 is a system structure diagram of an intelligent acquisition system based on a finite-state machine algorithm according to the present invention;
FIG. 2 is a diagram of an implementation process of the intelligent acquisition system based on the finite-state machine algorithm;
fig. 3 is a diagram of the implementation process of the intelligent acquisition system based on the finite-state machine algorithm.
Detailed Description
The invention is further described with reference to the following figures and specific examples.
Example one
An intelligent acquisition system based on a finite-state machine algorithm comprises a state word management module, a state processing definition module, a data analysis driving management module, a data driving and data storage module.
The state word management module is used for defining the device state which can be encountered by the system in the execution process and defining a device state word. The device state may be encountered in the system execution process, such as device offline, device connected, command issued to the terminal, terminal issued to the device, terminal timeout, device no data return, and the like.
The state processing definition module is used for defining the operation performed aiming at the device state encountered in each execution process, namely defining a processing program for the device state word. If the equipment is connected, sending a data acquisition instruction to the terminal; if the equipment has no data to return, a message is sent to the relevant management personnel to remind the management personnel to carry out initialization operation on the equipment, and the normal operation of the equipment is ensured.
The data analysis driver is self-defined and developed for a user, and provides a data analysis function for the user after being uploaded to the system so as to realize analysis of different data, thereby realizing data acquisition work supporting various types of equipment;
the data analysis drive management module is used for providing user-defined equipment data analysis drive management for a user, and ensuring the normal use of the data analysis drive, and comprises the functions of uploading, starting, stopping and the like of the equipment data analysis drive.
The data storage module provides a data storage function for a user and is mainly used for storing the analyzed equipment data.
The implementation process of the system is as follows:
state word management module starting → state processing definition module starting → data analysis driver management module starting → loading data analysis driver → system running.
The system is implemented as follows:
the state word management module defines the device state word → the state processing definition module defines the processing program for the device state word → receives the device data → starts and loads the corresponding data analysis driver through the data analysis driver management module, processes the device data → stores the analyzed device data.
The acquisition of the equipment data comprises the data acquisition of an intelligent instrument based on an MODBUS protocol, the data acquisition of JSON data based on an HTTP protocol and the data acquisition of equipment needing to actively upload binary data; and processing the authority verification and the data verification when the data of the equipment is uploaded. The data acquisition function of automatic uploading equipment of special binary data is realized while supporting the instruction type data acquisition mode of the traditional MODBUS protocol and the JSON format data acquisition mode based on the HTTP protocol.
The specific implementation of the system is as follows:
s1, deploying the intelligent acquisition system on a server;
s2, defining all state words of the data acquisition terminal in the state word management module;
s3, uploading user-defined data analysis drive to the intelligent acquisition system;
s4, the state processing definition module defines the operation needed for each equipment state;
s5, the system enters a finite state machine processing process;
s6, receiving equipment data;
s7, inquiring equipment analysis drive;
and S8, analyzing and storing the data.
The system completes authority verification and data verification functions during data uploading, can complete a data acquisition function of an intelligent instrument based on a modbus protocol, can complete a data acquisition function of JSON data based on an HTTP protocol, and can complete a data acquisition function of special equipment needing to actively upload binary data.
Example two
An intelligent acquisition method based on finite state machine algorithm, the method self-defines the set of possible working states of the equipment data acquisition terminal by defining equipment state words; the state of the terminal equipment is processed and collected in a finite state machine processing algorithm mode by defining a processing program for the equipment state word; and processing the received equipment data by uploading a user-defined data analysis driving program, so as to realize data acquisition of various types of equipment.
The multi-class device data acquisition comprises data acquisition of binary data active uploading devices, data acquisition of data uploading devices of MODBUS protocols and data acquisition of data uploading devices of HTTP protocols. The data acquisition function of automatic uploading equipment of special binary data is realized while supporting the instruction type data acquisition mode of the traditional MODBUS protocol and the JSON format data acquisition mode based on the HTTP protocol.
The method is realized by adopting the intelligent acquisition system based on the finite-state machine algorithm described in the first embodiment, and the state word management module defines the equipment state which is possibly encountered by the system in the execution process and defines the equipment state word; defining the operation of the equipment state encountered in each execution process by a state processing definition module, namely defining a processing program for the equipment state word; providing user-defined equipment data analysis drive management for a user through a data analysis drive management module; and providing a data storage function for a user through the data storage module, and storing the analyzed equipment data.
The method is realized in the following specific way:
s1, defining a device status word;
s2, uploading a user-defined data analysis driver;
s3, defining a processing program for the device status word;
s4, receiving the device data, and judging the device status word;
s5, calling an equipment state word processing program;
s6, storing the equipment data; and if the equipment state is abnormal, sending alarm information.
According to the method, the state of the acquisition terminal equipment is processed in a finite state machine processing algorithm mode through the set of possible working states of the user-defined equipment data acquisition terminal, the data acquisition function of actively uploading special binary data to equipment can be flexibly achieved, and the data acquisition function of data uploading equipment of MODBUS protocol and HTTP protocol is flexibly achieved.
The present invention can be easily implemented by those skilled in the art from the above detailed description. It should be understood, however, that the intention is not to limit the invention to the particular embodiments described. On the basis of the disclosed embodiments, a person skilled in the art can combine different technical features at will, thereby implementing different technical solutions.
In addition to the technical features described in the specification, the technology is known to those skilled in the art.
Claims (10)
1. An intelligent acquisition system based on finite-state machine algorithm is characterized by comprising a state word management module, a state processing definition module, a data analysis driving management module and a data driving and data storage module,
the state word management module is used for defining the device state which can be encountered by the system in the execution process;
the state processing definition module is used for defining the operation of the device state encountered in each execution process;
the data analysis driver is developed by a user in a self-defined way, and provides a data analysis function for the user after being uploaded to the system;
the data analysis drive management module is used for providing user-defined equipment data analysis drive management for a user;
the data storage module is used for storing the analyzed device data.
2. The intelligent acquisition system based on the finite-state machine algorithm as claimed in claim 1, wherein the device status includes device offline, device connected, command issued to terminal, terminal issued to device, terminal timeout and device no data return.
3. An intelligent finite state machine algorithm-based acquisition system according to claim 1 or 2, wherein the operations defined by the state processing definition module comprise: if the equipment is connected, sending a data acquisition instruction to the terminal; and if the equipment has no data to return, sending a message to related management personnel to remind the management personnel to carry out initialization operation on the equipment.
4. The intelligent acquisition system based on finite state machine algorithm according to claim 3, characterized in that the equipment data analysis driver management comprises uploading, enabling and disabling of equipment data analysis drivers.
5. The intelligent acquisition system based on the finite-state machine algorithm according to claim 1, characterized in that the implementation process of the system is as follows: state word management module starting → state processing definition module starting → data analysis driver management module starting → loading data analysis driver → system running.
6. The intelligent acquisition system based on the finite-state machine algorithm according to claim 5, characterized in that the acquisition of the device data comprises the data acquisition of an intelligent instrument based on MODBUS protocol, the data acquisition of JSON data based on HTTP protocol and the data acquisition of a device needing to actively upload binary data; and processing the authority verification and the data verification when the data of the equipment is uploaded.
7. An intelligent finite state machine algorithm-based acquisition system according to claim 1, 5 or 6, characterized in that the system is implemented in the following way:
1) deploying the intelligent acquisition system on a server;
2) defining all state words of the data acquisition terminal in a state word management module;
3) uploading the data analysis driver customized by the user to the intelligent acquisition system;
4) the state processing definition module defines the operation required to be carried out aiming at each equipment state;
5) the system enters a finite state machine processing process;
6) receiving equipment data;
7) inquiring equipment analysis drive;
8) and analyzing and storing the data.
8. An intelligent acquisition method based on finite state machine algorithm is characterized in that the method self-defines the set of possible working states of a device data acquisition terminal, and processes the state of the acquisition terminal device in a finite state machine processing algorithm mode; and processing the received equipment data by uploading a user-defined data analysis driving program, so as to realize data acquisition of various types of equipment.
9. The intelligent acquisition method based on finite-state machine algorithm of claim 8, characterized in that the multi-class device data acquisition includes data acquisition of binary data active upload device, data acquisition of data upload device of MODBUS protocol, and data acquisition of data upload device of HTTP protocol.
10. The intelligent acquisition method based on the finite-state machine algorithm according to claim 8 or 9, characterized in that the specific implementation of the method is as follows:
s1, defining a device status word;
s2, uploading a user-defined data analysis driver;
s3, defining a processing program for the device status word;
s4, receiving the device data, and judging the device status word;
s5, calling an equipment state word processing program;
s6, storing the equipment data; and if the equipment state is abnormal, sending alarm information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010330286.5A CN111596974A (en) | 2020-04-24 | 2020-04-24 | Intelligent acquisition system and method based on finite-state machine algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010330286.5A CN111596974A (en) | 2020-04-24 | 2020-04-24 | Intelligent acquisition system and method based on finite-state machine algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111596974A true CN111596974A (en) | 2020-08-28 |
Family
ID=72190509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010330286.5A Pending CN111596974A (en) | 2020-04-24 | 2020-04-24 | Intelligent acquisition system and method based on finite-state machine algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111596974A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112256360A (en) * | 2020-09-09 | 2021-01-22 | 青岛大学 | Intelligent service assistant system |
CN113076107A (en) * | 2021-04-13 | 2021-07-06 | 杭州又拍云科技有限公司 | Method for automatically acquiring and fusing logs through finite state machine |
CN114390375A (en) * | 2022-03-24 | 2022-04-22 | 中建八局第二建设有限公司 | Intelligent data acquisition system and method based on programmable technology |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369927A (en) * | 2008-09-23 | 2009-02-18 | 沈阳理工大学 | Universal remote automatic data acquisition system |
JP2012175376A (en) * | 2011-02-21 | 2012-09-10 | Mitsubishi Electric Corp | Management apparatus and data collection apparatus |
CN106534187A (en) * | 2016-12-13 | 2017-03-22 | 广东沅朋网络科技有限公司 | Unified management method and system for multi-type wireless data transmission terminal |
US20170176033A1 (en) * | 2015-12-18 | 2017-06-22 | Archimedes Controls Corp. | Intelligent mission critical environmental monitoring and energy management system |
CN108810126A (en) * | 2018-06-04 | 2018-11-13 | 中建八局第二建设有限公司 | A kind of open type data acquisition system |
CN109150605A (en) * | 2018-08-20 | 2019-01-04 | 山东润智能科技有限公司 | intelligent gateway, monitoring system and data processing method |
-
2020
- 2020-04-24 CN CN202010330286.5A patent/CN111596974A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369927A (en) * | 2008-09-23 | 2009-02-18 | 沈阳理工大学 | Universal remote automatic data acquisition system |
JP2012175376A (en) * | 2011-02-21 | 2012-09-10 | Mitsubishi Electric Corp | Management apparatus and data collection apparatus |
US20170176033A1 (en) * | 2015-12-18 | 2017-06-22 | Archimedes Controls Corp. | Intelligent mission critical environmental monitoring and energy management system |
CN106534187A (en) * | 2016-12-13 | 2017-03-22 | 广东沅朋网络科技有限公司 | Unified management method and system for multi-type wireless data transmission terminal |
CN108810126A (en) * | 2018-06-04 | 2018-11-13 | 中建八局第二建设有限公司 | A kind of open type data acquisition system |
CN109150605A (en) * | 2018-08-20 | 2019-01-04 | 山东润智能科技有限公司 | intelligent gateway, monitoring system and data processing method |
Non-Patent Citations (1)
Title |
---|
李小勇: "应用事件驱动和有限状态机实现多路数据采集" * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112256360A (en) * | 2020-09-09 | 2021-01-22 | 青岛大学 | Intelligent service assistant system |
CN112256360B (en) * | 2020-09-09 | 2024-03-29 | 青岛大学 | Intelligent service assistant system |
CN113076107A (en) * | 2021-04-13 | 2021-07-06 | 杭州又拍云科技有限公司 | Method for automatically acquiring and fusing logs through finite state machine |
CN114390375A (en) * | 2022-03-24 | 2022-04-22 | 中建八局第二建设有限公司 | Intelligent data acquisition system and method based on programmable technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111596974A (en) | Intelligent acquisition system and method based on finite-state machine algorithm | |
EP1029406B1 (en) | Method of reprogramming memories in field devices over a multidrop network | |
US6425038B1 (en) | Conversion of desk-top operating system for real-time control using installable interrupt service routines | |
EP4049910A1 (en) | Automatic driving control system, control method and device | |
EP3905651B1 (en) | Control method for doze mode of mobile terminal and mobile terminal | |
CN102546135A (en) | System and method for switching between active and standby servers | |
CN112109728B (en) | Automatic driving fault control method, system, equipment and storage medium | |
CN112092824A (en) | Automatic driving control method, system, equipment and storage medium | |
US20090259364A1 (en) | Method for controlling devices, and a device in a communications network in a motor vehicle | |
CN110881224B (en) | Network long connection method, device, equipment and storage medium | |
CN108749820B (en) | Information interaction method and system | |
WO2005088468B1 (en) | Integrated circuit and method for memory access control | |
US7003332B2 (en) | Method and system for decreasing power-on time for software-defined radios | |
JP2017151935A (en) | Programmable controller and control program for programmable controller | |
CN113138812A (en) | Spacecraft task scheduling method and device | |
CN109582379B (en) | Programmable logic controller system based on microkernel operating system and control method | |
CN111805544A (en) | Robot control method and device | |
CN112035311A (en) | Program logic monitoring method and device | |
CN110281952B (en) | Control system, control method, control device, storage medium, and electronic device | |
CN108229167A (en) | For the method, equipment and mobile terminal controlled multi-process application | |
CN113997705A (en) | Printing method and device of printing control instrument | |
JP2009187474A (en) | Semiconductor device, portable electronic equipment, self-diagnosis method, and self-diagnosis program | |
CN112988477A (en) | Test method and apparatus, electronic device, and computer-readable storage medium | |
CN116449809B (en) | Fault processing method and device, electronic equipment and storage medium | |
EP3982250A1 (en) | Generation of code for a 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200828 |