CN102854852B - Equipment monitoring method based on weighted double linked list - Google Patents
Equipment monitoring method based on weighted double linked list Download PDFInfo
- Publication number
- CN102854852B CN102854852B CN201210264429.2A CN201210264429A CN102854852B CN 102854852 B CN102854852 B CN 102854852B CN 201210264429 A CN201210264429 A CN 201210264429A CN 102854852 B CN102854852 B CN 102854852B
- Authority
- CN
- China
- Prior art keywords
- equipment
- response data
- monitoring
- steering order
- 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
Links
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention discloses an equipment monitoring method based on a weighted double linked list. The method comprises the following steps of: taking a linked list as the basis, providing a universal data structure, setting the weight to change monitoring processing priority, automatically updating a monitoring state, realizing the monitoring service process, receiving and transmitting a query instruction and shielding difference between different equipment. After the instruction is transmitted, the instruction reaches the equipment end through network transmission, generates a processing response through equipment processing, and returns to the monitoring end through the network, when the monitoring end receives the response, a novel instruction is transmitted, if the response is not received in a certain time, the instruction is processed according to the conditions, and prompt information is retransmitted or generated. The equipment monitoring method has the advantages that different network transmission environments can be automatically matched. Because the performances of transmission networks at which different equipment is positioned are different, the environmental transmission speed is different, and in order to provide a universal method, network adaptability is necessary to realize, and the network adaptability is dynamically adjusted according to actual transmission conditions.
Description
Technical field
The present invention relates to a kind of apparatus monitoring method based on cum rights double linked list, belong to monitoring of tools technical field.
background technology
Monitoring of tools is a kind of technology that is widely applied to social all trades and professions, for example, and industrial automatic control, environment measuring, Aero-Space etc., this technology can improve the robotization of system greatly, intelligent level, for enhancing productivity and reducing production costs, has brought into play very important effect.
Monitoring of tools comprises two main aspects: equipment monitor and equipment are controlled.Equipment monitor is the current state of surveillance equipment, the real time data of collecting device, the historical data of recording unit; Equipment is controlled and is sent order, requires equipment to complete specific task, reaches the index of business need, the state of reflection equipment.
The realization of monitoring of tools will communicate according to the requirement of device protocol and equipment based on device protocol, to realize all types of target of monitoring of tools.Because industry is different, standard is different, and the not equal factor of production firm, causes device protocol to vary, and at present, we need to realize different agreements for different equipment and carry out finishing equipment communication.Therefore, the performance history of agreement is complicated, inefficient, and compatibility has also been subject to impact.
In recent years, along with the proposition of new task and new demand, in the urgent need to improving the versatility of monitoring of tools, simplify monitoring flow process, improve the performance of monitoring of tools, the efficiency of lifting means monitoring.The invention provides a kind of general apparatus monitoring method, reduce the complexity of monitoring of tools, improve the efficiency of monitoring of tools.
Patented claim CN102130968A is the application's prior art.
Summary of the invention
Technology of the present invention is dealt with problems and is: proposed a kind of apparatus monitoring method based on cum rights double linked list.
Technical solution of the present invention is:
An apparatus monitoring method based on cum rights double linked list, realizes based on circular linked list and first-in first-out chained list, and circular linked list is used for preserving query statement, and first-in first-out chained list is used for preserving steering order, and its step is as follows:
(1) by the query statement typing circular linked list of each equipment to be monitored, and by the good network of described equipment connection to be monitored, guarantee that query statement can be issued to corresponding equipment to be monitored;
(2), when each business of taking turns starts, judge whether first-in first-out chained list is empty, whether has steering order to send, if first-in first-out chained list is not empty, has steering order to send, sending controling instruction; If first-in first-out chained list is empty, do not have steering order to send, send query statement;
A described business of taking turns refers to from sending monitored instruction and receives this monitored instruction and respond this monitored instruction to this equipment to equipment to be monitored, returns to the process of response data; Monitored instruction refers to above-mentioned query statement or steering order, is general designation.
(3), after monitor command sends, by sending monitor command, be converted into the order that equipment can be identified, the response of the monitoring of waiting facilities afterwards, described monitor command refers to steering order or query statement;
(4) equipment is received monitor command response monitoring order afterwards, returns to response data;
(5) whether the response data judgment device of returning according to equipment in step (4) correctly carries out monitor command, if correctly carry out, and the monitor state of updating the equipment according to the response data of returning; If carry out incorrectly, produce monitoring of tools warning message;
(6) response data of returning according to equipment in step (4) judges that described response data is the response data of steering order or the response data of query statement,
If the response data of steering order is rejected this steering order in first-in first-out chained list; If monitoring of tools response timeout, does not receive the response data of returning, resend equipment steering order, after reaching default maximum number of times of transmission, if also do not receive response data, stop continuing to send;
If the response data of query statement, carries out next equipment query instruction, start the business of a new round.
Described response data comprises that whether judgment device correctly carries out zone bit and this response data of monitor command is the zone bit of the response data of steering order or the response data of query statement.
The present invention's beneficial effect is compared with prior art:
The inventive method be take chained list as basis, and general data structure is provided, and by setting weight to change monitoring processing priority, automatically upgrades monitor state, realizes monitoring business flowpath, receives and send inquiry order, the difference of shielding distinct device.On the other hand, the triggering of monitoring and scheduling be take network response as prerequisite, after order is sent, through Internet Transmission, arrive equipment end, through device processes, produce processing response, through network, return to monitoring client, after monitoring client receives response, trigger scheduling flow, send new order, if do not receive within a certain period of time response, according to circumstances process, resend or produce information.The benefit of doing is like this, can the different Internet Transmission environment of Auto-matching.Because the performance of the transmission network at distinct device place is discrepant, some environment transmission speeds are fast, and some environment transmission speeds are slow, for a kind of general method is provided, it is necessary realizing network adaptation, according to actual transmission situation, adjusts dynamically.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention;
Embodiment
As shown in Figure 1, the present invention proposes a kind of common apparatus method for supervising based on cum rights double linked list, based on circular linked list and first-in first-out chained list, realize, circular linked list is used for preserving query statement, first-in first-out chained list is called for short queue, and for preserving steering order, the weight ratio query statement of steering order is large, the priority that is steering order is higher, and its step is as follows:
(1) by the query statement typing circular linked list of each equipment to be monitored, and by the good network of described equipment connection to be monitored, guarantee that query statement can be issued to corresponding equipment to be monitored;
(2), when each business of taking turns starts, judge whether first-in first-out chained list is empty, whether has steering order to send, if first-in first-out chained list is not empty, has steering order to send, sending controling instruction; If first-in first-out chained list is empty, do not have steering order to send, send query statement;
A described business of taking turns refers to from sending monitored instruction and receives this monitored instruction and respond this monitored instruction to this equipment to equipment to be monitored, returns to the process of response data;
(3), after monitor command sends, by sending monitor command, be converted into the order that equipment can be identified, the response of the monitoring of waiting facilities afterwards, described monitor command refers to steering order or query statement;
(4) equipment is received monitor command response monitoring order afterwards, returns to response data; Response data comprises that whether judgment device correctly carries out zone bit and this response data of monitor command is the zone bit of the response data of steering order or the response data of query statement;
The zone bit whether described monitor command is correctly carried out is defined in the communication protocol of watch-dog, and when monitor command is not during correct execution, zone bit shows not have the correct reason of carrying out, and for example, checks incorrectly, orders code name mistake, command parameter mistake etc.
The zone bit of described response data type is also defined in the communication protocol of watch-dog, when the data field length of response data is greater than 0, think that response data comprises Query Information, be the response data of query statement, otherwise, be the response data of steering order.
(5) whether the response data judgment device of returning according to equipment in step (4) correctly carries out monitor command, if correctly carry out, and the monitor state of updating the equipment according to the response data of returning; If carry out incorrectly, produce monitoring of tools warning message;
(6) response data of returning according to equipment in step (4) judges that described response data is the response data of steering order or the response data of query statement,
If the response data of steering order is rejected this steering order in first-in first-out chained list; If monitoring of tools response timeout, does not receive the response data of returning, resend equipment steering order, after reaching default maximum number of times of transmission, if also do not receive response data, stop continuing to send;
If the response data of query statement, carries out next equipment query instruction, start the business of a new round.
Claims (2)
1. the apparatus monitoring method based on cum rights double linked list, is characterized in that: based on circular linked list and first-in first-out chained list, realize, circular linked list is used for preserving query statement, and first-in first-out chained list is used for preserving steering order, and its step is as follows:
(1) by the query statement typing circular linked list of each equipment to be monitored, and by the good network of described equipment connection to be monitored, guarantee that query statement can be issued to corresponding equipment to be monitored;
(2), when each business of taking turns starts, judge whether first-in first-out chained list is empty, whether has steering order to send, if first-in first-out chained list is not empty, has steering order to send, sending controling instruction; If first-in first-out chained list is empty, do not have steering order to send, send query statement;
A described business of taking turns refers to from sending monitored instruction and receives this monitored instruction and respond this monitored instruction to this equipment to equipment to be monitored, returns to the process of response data;
(3), after monitor command sends, by sending monitor command, be converted into the order that equipment can be identified, the response of the monitoring of waiting facilities afterwards, described monitor command refers to steering order or query statement;
(4) equipment is received monitor command response monitoring order afterwards, returns to response data;
(5) whether the response data judgment device of returning according to equipment in step (4) correctly carries out monitor command, if correctly carry out, and the monitor state of updating the equipment according to the response data of returning; If carry out incorrectly, produce monitoring of tools warning message;
(6) response data of returning according to equipment in step (4) judges that described response data is the response data of steering order or the response data of query statement,
If the response data of steering order is rejected this steering order in first-in first-out chained list; If monitoring of tools response timeout, does not receive the response data of returning, resend equipment steering order, after reaching default maximum number of times of transmission, if also do not receive response data, stop continuing to send;
If the response data of query statement, carries out next equipment query instruction, start the business of a new round.
2. a kind of apparatus monitoring method based on cum rights double linked list according to claim 1, is characterized in that: described response data comprises that whether judgment device correctly carries out zone bit and this response data of monitor command is the zone bit of the response data of steering order or the response data of query statement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210264429.2A CN102854852B (en) | 2012-07-27 | 2012-07-27 | Equipment monitoring method based on weighted double linked list |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210264429.2A CN102854852B (en) | 2012-07-27 | 2012-07-27 | Equipment monitoring method based on weighted double linked list |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102854852A CN102854852A (en) | 2013-01-02 |
CN102854852B true CN102854852B (en) | 2014-08-27 |
Family
ID=47401512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210264429.2A Active CN102854852B (en) | 2012-07-27 | 2012-07-27 | Equipment monitoring method based on weighted double linked list |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102854852B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104330999B (en) * | 2014-06-27 | 2018-02-02 | 青岛海尔股份有限公司 | Processing method from control instruction to degerming deodorizing device and processing unit after sending |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101315543A (en) * | 2008-06-28 | 2008-12-03 | 黄更 | Network digital alarm clock, long-range control method and signal synchronous transmission method |
CN101505546A (en) * | 2009-02-26 | 2009-08-12 | 清华大学 | Mine environment probing and search and rescue emergency response system based on wireless sensor network |
CN102130968A (en) * | 2011-04-20 | 2011-07-20 | 北京奥特美克科技发展有限公司 | Water resource monitoring communication system and method |
-
2012
- 2012-07-27 CN CN201210264429.2A patent/CN102854852B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101315543A (en) * | 2008-06-28 | 2008-12-03 | 黄更 | Network digital alarm clock, long-range control method and signal synchronous transmission method |
CN101505546A (en) * | 2009-02-26 | 2009-08-12 | 清华大学 | Mine environment probing and search and rescue emergency response system based on wireless sensor network |
CN102130968A (en) * | 2011-04-20 | 2011-07-20 | 北京奥特美克科技发展有限公司 | Water resource monitoring communication system and method |
Also Published As
Publication number | Publication date |
---|---|
CN102854852A (en) | 2013-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102202093B (en) | A kind of method and system realizing transducer adaptation | |
CN107171892B (en) | Cross-platform data communication method and system based on QT | |
CN103647759A (en) | Negotiation method and apparatus of maximum segment size (MSS) | |
CN106131085B (en) | The communication means of remote intelligent control system | |
RU2014148333A (en) | METHODS FOR ADAPTIVE CONTROLLED LIGHTING BASED ON TRANSPORT FLOW IN EXTERIOR LIGHTING NETWORKS | |
CN110708239B (en) | Industrial Internet of things gateway based on OPC and MQTT | |
CN102854852B (en) | Equipment monitoring method based on weighted double linked list | |
CN113099539A (en) | Big data transmission method and system for intelligent mine management | |
CN106875664B (en) | Exclusive data acquisition method based on CAN bus | |
CN105307282A (en) | Method and device for preventing access collision of multiple user terminals | |
CN105116884A (en) | Control method of sweeping robot, server and service system | |
CN104348711B (en) | Message receiving apparatus and method | |
CN111817897A (en) | Acquisition transmission monitoring system and acquisition transmission monitoring method capable of configuring gateway | |
CN103353750A (en) | Multi-bus microwave metallurgical control system and method | |
CN114979022A (en) | Method, device, adapter and storage medium for realizing remote direct data access | |
CN104848472A (en) | Air conditioner monitoring system, OPC server for air conditioner and OPC connecting method | |
CN203084490U (en) | Carrier rocket pre-launching monitoring system | |
CN110475288B (en) | Method, device and system for transmitting signaling message of satellite network preferentially | |
CN111131147B (en) | Ethernet TCP/IP application layer TC transmission protocol method and system based on object dictionary | |
CN111585741B (en) | Method for accessing non-time sensitive network data into time sensitive network | |
CN113986570A (en) | Multi-queue-based data classification dynamic sorting transmission control method | |
CN113079055B (en) | AGV operation data dynamic acquisition method and device | |
CN105703884B (en) | CAN frame transfer method and device | |
CN112738847A (en) | Narrow-band satellite communication system and method | |
CN103179087A (en) | Asynchronous Socket data transmission method and system from application layer to transmission control protocol (TCP) layer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |