CN102412983B - Reporting method for equipment alarm - Google Patents

Reporting method for equipment alarm Download PDF

Info

Publication number
CN102412983B
CN102412983B CN201110307704.XA CN201110307704A CN102412983B CN 102412983 B CN102412983 B CN 102412983B CN 201110307704 A CN201110307704 A CN 201110307704A CN 102412983 B CN102412983 B CN 102412983B
Authority
CN
China
Prior art keywords
terminal equipment
main control
control system
alarm
time
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
CN201110307704.XA
Other languages
Chinese (zh)
Other versions
CN102412983A (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.)
Changshu Intellectual Property Operation Center Co ltd
Guangdong Gaohang Intellectual Property Operation Co ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201110307704.XA priority Critical patent/CN102412983B/en
Publication of CN102412983A publication Critical patent/CN102412983A/en
Application granted granted Critical
Publication of CN102412983B publication Critical patent/CN102412983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Alarm Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a reporting method for equipment alarm, which comprises the following steps: terminal equipment requests to build register connection to a control host; after the control host receives the request of building the register connection from the terminal equipment, the control host builds register connection with the terminal equipment; time synchronization is realized for the terminal equipment and the control host by the built register connection; the terminal equipment requests to build an alarm connection to the control host; after the control host receives the request of building the alarm connection from the terminal equipment, the control host builds the alarm connection with the terminal equipment; and alarm information is reported for the terminal equipment and the control host by the built alarm connection. According to the reporting method for the equipment alarm, which is disclosed by the invention, the time synchronization between the terminal equipment and the control host is guaranteed. In addition, the alarm information is reported to the control host by the terminal equipment in real time, and therefore the control host can automatically obtain the alarm information in the terminal equipment without actively reading.

Description

A kind of reporting method for equipment alarm
Technical field
The present invention relates to warning technology field, provide a kind of reporting method for equipment alarm.
Background technology
Along with the development of network technology, current terminal equipment control system is towards the distributed future development of networking, and namely each terminal equipment and main control system are in same local area network (LAN), and terminal equipment and main control system carry out the mutual of data by network.For terminal equipment control system, how to ensure when terminal equipment breaks down or be abnormal, point out user to be vital with speed notice main control system fast warning information.At present, terminal equipment control system generally adopts following method for designing:
Terminal equipment is set up alarm by the mode of TCP with main control system and is connected, after main control system receives alarm connection, first the network address of terminal equipment is parsed, establishment warning information receiving thread is connected for this alarm, for constantly from fetch equipment warning information alarm connects with after it connects.Setting up after alarm is connected with main control system, during device end generation alarm, warning information being connected by above-mentioned alarm and sending to main control system.Meanwhile, if during terminal equipment generation alarm, do not set up alarm for a certain reason with main control system when being connected, then this alarm information record is preserved, to carry out active inquiry when main control system needs.Main control system sends the alarm record of section sometime on various command operation and reading terminal equipment to terminal equipment by the connection of setting up between itself and terminal equipment.
Above-mentioned method for designing is simple, and the requirement of general device end control system can be met, but this method for designing has following two major defects: first, user must after main control system starts manually query manipulation just can get the alarm record that terminal equipment is preserved, otherwise user cannot know whether terminal equipment preserves alarm record; The second, owing to not having synchronization mechanism settling time between main control system and terminal equipment, the time that in the warning information that the terminal equipment that main control system receives reports, alarm occurs may be inconsistent with the system time of main control system.Meanwhile, due to time irreversibility between main control system and terminal equipment, main control system, when initiatively reading the alarm record in section sometime on terminal equipment, possibly all cannot get the alarm record that terminal equipment is preserved.
Summary of the invention
The invention provides a kind of reporting method for equipment alarm, the synchronous of time between terminal equipment with main control system can be realized by the method, and ensure the warning information of main control system automatic acquisition to terminal equipment.
A kind of reporting method for equipment alarm, comprises the following steps:
Terminal equipment is set up registration to main control system request and is connected;
Main control system is set up to register with terminal equipment and is connected after receiving the foundation registration connection request of terminal equipment; Wherein, terminal equipment creates a time synchronized thread after registration successful connection, and main control system is also for terminal equipment creates a time synchronized thread, for carrying out communication with the time synchronized thread in terminal equipment;
Terminal equipment and main control system are connected by the registration of setting up and realize time synchronized; Wherein, when the number of times that terminal equipment presets continuously does not all obtain the response of main control system to the control main control system transmitting system time, then the time synchronized thread that terminal equipment creates exits automatically, and closedown registers connection accordingly; The time synchronized thread that main control system creates, when detecting that corresponding registration connection is closed, also exits automatically;
Terminal equipment is set up alarm to main control system request and is connected;
Main control system receive terminal equipment set up alarm connection request after, set up alarm with terminal equipment and be connected; Wherein, when terminal equipment break down or abnormality alarming time, this warning information is written in alarm log file together with alarm time of origin;
Terminal equipment and main control system are connected by the alarm of setting up and realize reporting of warning information; And do not set up alarm with main control system when being connected when terminal equipment generation alarm, the warning information in terminal equipment reading alarm log file reports.
Compared with prior art, reporting method for equipment alarm provided by the invention, by introducing the synchronous of Time Synchronization Mechanism ensure terminal equipment and main control system operationally retention time between terminal equipment with main control system, and then ensure that the time in the warning information that the terminal equipment that main control system receives reports is consistent with the system time of main control system.And by this report method, warning information is reported to main control system by terminal equipment in real time, make main control system do not need initiatively to read just can automatic acquisition to the warning information in terminal equipment.
Accompanying drawing explanation
Fig. 1 is reporting method for equipment alarm schematic flow diagram.
Embodiment
Refer to Fig. 1, the schematic flow diagram of present device alarm reporting method.Present device alarm reporting method comprises the following steps:
S101 terminal equipment is set up registration to main control system request and is connected;
Preferably, terminal equipment upon actuation, creates an alarm monitoring thread, for the running status of real-time monitoring terminal equipment.Monitor terminal equipment break down or abnormality alarming time, time when being occurred together with alarm by this warning information is written in alarm log file.When terminal equipment generation alarm and do not set up with main control system for a certain reason alarm be connected time, the warning information that terminal equipment can read in alarm log file reports, and main control system also can carry out active inquiry.
Terminal equipment, after establishment alarm monitoring thread, is set up registration to main control system request and is connected.
S102 main control system is set up to register with terminal equipment and is connected after receiving the foundation registration connection request of terminal equipment;
Main control system creates a thread for monitor terminal facility registration connection request, and this thread is after monitoring reception to the registration connection request of terminal equipment, and main control system and terminal equipment are set up to register and be connected.
S103 terminal equipment and main control system are connected by the registration of setting up and realize time synchronized;
Preferably, terminal equipment creates a time synchronized thread after registration successful connection, and main control system is also for terminal equipment creates a time synchronized thread, for carrying out communication with the time synchronized thread in terminal equipment.
The time synchronized thread that terminal equipment creates upon actuation, is first connected by registration and sends a character " 0 ", for the current system time clock time of acquisition request main control system to main control system.After terminal equipment gets the system time of main control system, perform following compare operation one: if the system time value of main control system is less than the system time value of terminal equipment, then the system time of self is sent to main control system by terminal equipment, otherwise the system time that terminal equipment first arranges self is the system time of main control system, then the system time of terminal equipment is sent to main control system.Next, after the time synchronized thread of terminal equipment gets the system time of main control system, just re-execute above-mentioned compare operation one.
The time synchronized thread that main control system creates upon actuation, is first waited for the request of the acquisition system time that terminal equipment sends, after receiving this request, the system time of main control system is sent to terminal equipment.Then the system time of the terminal equipment that circular wait terminal equipment sends is started, whenever after the system time receiving terminal equipment transmission, perform following compare operation two: if the system time value of main control system is less than the system time value of terminal equipment, it is then the system time value of the terminal equipment received by the system time setting of main control system, otherwise, remain unchanged.Further, after executing compare operation two, the system time of main control system is sent to terminal equipment.
The time synchronized of terminal equipment and main control system is ensured by introducing Time Synchronization Mechanism between terminal equipment and main control system, and when there is the synchronousness that emergency case is destroyed between terminal equipment and main control system, circulative metabolism can be corrected in time, adds stability.
When the number of times that terminal equipment presets continuously does not all obtain the response of main control system to the control main control system transmitting system time, then terminal equipment will think that main control system rolls off the production line, the time synchronized thread that terminal equipment creates will exit automatically, and closedown registers connection accordingly.Meanwhile, the time synchronized thread that main control system creates, when detecting that corresponding registration connection is closed, also will exit automatically.
S104 terminal equipment is set up alarm to main control system request and is connected;
Terminal equipment, with after main control system is set up and registered and be connected, is set up alarm to main control system request and is connected, for sending fault warning information to main control system.
S105 main control system receive terminal equipment set up alarm connection request after, set up alarm with terminal equipment and be connected; Wherein, when terminal equipment break down or abnormality alarming time, this warning information is written in alarm log file together with alarm time of origin;
Main control system creates a thread for monitor terminal equipment alarm connection request, and this thread is after listening to the alarm connection request of a terminal equipment, and main control system and terminal equipment are set up alarm and be connected.
S106 terminal equipment and main control system are connected by the alarm of setting up and realize reporting of warning information; And do not set up alarm with main control system when being connected when terminal equipment generation alarm, the warning information in terminal equipment reading alarm log file reports.
Preferably, terminal equipment, after setting up alarm successful connection with main control system, creates an alarm report thread, passes to main control system for the fault warning information himself produced.Main control system then sets up an alarm receiving thread, for the fault warning information that receiving terminal apparatus reports.
After alarm report thread starts, the alarm log file that the alarm monitoring thread of circulation reading terminal equipment produces, if having warning information in journal file, then reads a warning information, and is reported main control system.
After alarm receiving thread in main control system starts, the warning information that circulation receiving terminal apparatus reports, after often receiving a warning information, sends the confirmation receiving warning information while processing this warning information to terminal equipment.
After warning information reports by terminal equipment, wait for that main control system receives the confirmation of warning information, after the confirmation receiving main control system, this warning information is deleted from alarm log file.
By this report method, ease for use when adding terminal equipment report and alarm information and ageing, as long as connect between terminal equipment and main control system, main control system just can automatic acquisition to the warning information on terminal equipment, and do not need to carry out active inquiry.
Preferably, if when terminal equipment reads alarm log file, do not have warning information in journal file, then terminal equipment reads alarm log file again.Being avoided when connecting the situation of losing in terminal equipment during no alarm information by the above-mentioned step again read, the situation of burst alarm can not only be tackled, and stablizing of ensure that alarm between terminal equipment with main control system is connected.
The alarm report thread created in terminal equipment reads the warning information in alarm log file and before reporting main control system each, the message whether having the time synchronized thread in terminal equipment to report main control system off-line can be detected, if have, alarm report thread then in terminal equipment will exit automatically, and closes corresponding alarm connection.
Above-described embodiment of the present invention, does not form limiting the scope of the present invention.Any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within claims of the present invention.

Claims (7)

1. a reporting method for equipment alarm, is characterized in that comprising the following steps:
Terminal equipment is set up registration to main control system request and is connected;
Main control system is set up to register with terminal equipment and is connected after receiving the foundation registration connection request of terminal equipment; Wherein, terminal equipment creates a time synchronized thread after registration successful connection, and main control system is also for terminal equipment creates a time synchronized thread, for carrying out communication with the time synchronized thread in terminal equipment;
Terminal equipment and main control system are connected by the registration of setting up and realize time synchronized; Wherein, when the number of times that terminal equipment presets continuously does not all obtain the response of main control system to the control main control system transmitting system time, then the time synchronized thread that terminal equipment creates exits automatically, and closedown registers connection accordingly; The time synchronized thread that main control system creates, when detecting that corresponding registration connection is closed, also exits automatically;
Terminal equipment is set up alarm to main control system request and is connected;
Main control system receive terminal equipment set up alarm connection request after, set up alarm with terminal equipment and be connected; Wherein, when terminal equipment break down or abnormality alarming time, this warning information is written in alarm log file together with alarm time of origin;
Terminal equipment and main control system are connected by the alarm of setting up and realize reporting of warning information; And do not set up alarm with main control system when being connected when terminal equipment generation alarm, the warning information in terminal equipment reading alarm log file reports.
2. reporting method for equipment alarm as claimed in claim 1, is characterized in that, described terminal equipment is connected by the registration of setting up the step realizing time synchronized with main control system and comprises the following steps:
After the success of registration connection establishment, terminal equipment is by the system time of registration connection request main control system;
After main control system receives this request, the system time obtaining main control system sends to terminal equipment;
After terminal equipment receives the system time of the main control system that main control system sends, perform following compare operation one: if the system time value of main control system is less than the system time value of terminal equipment, then the system time of terminal equipment is returned to main control system, otherwise, the system time then first arranging terminal equipment is the system time of main control system, then the system time of terminal equipment is returned to main control system;
After main control system receives the system time of the terminal equipment that terminal equipment sends, perform following compare operation two: if the system time value of main control system is less than the system time value of terminal equipment, it is then the system time of the terminal equipment received by the system time setting of main control system, otherwise, then remain unchanged.
3. reporting method for equipment alarm as claimed in claim 2, is characterized in that, comprises the following steps after described main control system performs the step of compare operation two:
The system time of main control system resends to terminal equipment by main control system;
After terminal equipment receives the system time of the main control system that main control system resends, re-execute compare operation one;
After main control system receives the system time of the terminal equipment that terminal equipment resends, re-execute compare operation two.
4. reporting method for equipment alarm as claimed in claim 1, is characterized in that, described terminal equipment is connected by the alarm of setting up the step reported realizing warning information with main control system and comprises the following steps:
After the success of alarm connection establishment, terminal equipment reads alarm log file, if having warning information in alarm log file, then reads a warning information, is reported main control system;
After the warning information that main control system receiving terminal apparatus reports, this warning information is processed, and send confirmation to terminal equipment;
This warning information is deleted after receiving the confirmation of main control system transmission by terminal equipment from alarm log file.
5. reporting method for equipment alarm as claimed in claim 4, after it is characterized in that terminal equipment reads alarm log file, if do not have warning information in alarm log file, then terminal equipment reads alarm log file again.
6. reporting method for equipment alarm as claimed in claim 4, comprises the following steps after it is characterized in that the step of being deleted from alarm log file by warning information at described terminal equipment:
Terminal equipment reads alarm log file again, if having warning information in alarm log file, then again reads a warning information, is reported main control system;
After the warning information that main control system receiving terminal apparatus reports again, this warning information is processed, and resends confirmation to terminal equipment;
This warning information is deleted after receiving the confirmation that main control system resends by terminal equipment from alarm log file.
7. reporting method for equipment alarm as claimed in claim 4, it is characterized in that described terminal equipment monitor terminal equipment break down or abnormality alarming time, this warning information is written in alarm log file together with alarm time of origin.
CN201110307704.XA 2011-10-12 2011-10-12 Reporting method for equipment alarm Active CN102412983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110307704.XA CN102412983B (en) 2011-10-12 2011-10-12 Reporting method for equipment alarm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110307704.XA CN102412983B (en) 2011-10-12 2011-10-12 Reporting method for equipment alarm

Publications (2)

Publication Number Publication Date
CN102412983A CN102412983A (en) 2012-04-11
CN102412983B true CN102412983B (en) 2015-04-29

Family

ID=45914845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110307704.XA Active CN102412983B (en) 2011-10-12 2011-10-12 Reporting method for equipment alarm

Country Status (1)

Country Link
CN (1) CN102412983B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104678922B (en) * 2013-12-02 2017-09-29 广东美的制冷设备有限公司 Time control method and system based on Internet of Things
CN105487963B (en) * 2015-11-26 2018-04-06 小米科技有限责任公司 Message authentication method and device
CN106411601A (en) * 2016-10-26 2017-02-15 上海斐讯数据通信技术有限公司 System and method for batch configuration of cloud terminal time
CN107203189A (en) * 2016-11-30 2017-09-26 英业达科技有限公司 A kind of monitoring system, monitoring method and server
CN108449206B (en) * 2018-03-12 2020-11-27 新华三技术有限公司 Time synchronization method, device, equipment and storage medium
CN115913896A (en) * 2022-11-09 2023-04-04 中国联合网络通信集团有限公司 Device detection method, server and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2790050Y (en) * 2004-12-10 2006-06-21 上海欣泰通信技术有限公司 ETS exchanger time synchronizer
CN101115264A (en) * 2006-07-24 2008-01-30 中兴通讯股份有限公司 Communication terminal failure monitoring system and implementing method thereof
CN101741635A (en) * 2008-11-26 2010-06-16 大唐移动通信设备有限公司 Method, system and device for synchronous altering message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399653B (en) * 2007-09-25 2010-09-22 普然通讯技术(上海)有限公司 Time clock synchronization implementation method
CN101605045A (en) * 2008-06-10 2009-12-16 中兴通讯股份有限公司 A kind of report method of alarm notification message
CN101557602B (en) * 2009-05-14 2011-11-30 中兴通讯股份有限公司 Multi-level network element alarm synchronization method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2790050Y (en) * 2004-12-10 2006-06-21 上海欣泰通信技术有限公司 ETS exchanger time synchronizer
CN101115264A (en) * 2006-07-24 2008-01-30 中兴通讯股份有限公司 Communication terminal failure monitoring system and implementing method thereof
CN101741635A (en) * 2008-11-26 2010-06-16 大唐移动通信设备有限公司 Method, system and device for synchronous altering message

Also Published As

Publication number Publication date
CN102412983A (en) 2012-04-11

Similar Documents

Publication Publication Date Title
CN102412983B (en) Reporting method for equipment alarm
US8467303B2 (en) Method and apparatus for preventing network conflict
US20170366620A1 (en) Long connection method between a plurality of smart devices and a server, and smart device thereof
CN101388903B (en) Mobile enterprise IT standardization management platform
CN103944814B (en) A kind of method for interchanging data and system and a kind of gateway server
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
CN109962827B (en) Equipment link detection method, device, equipment and readable storage medium
CN113783961B (en) Remote terminal management method, device, computer equipment and storage medium
CN111884861B (en) Real-time alarm method for Internet of things equipment based on Netty
US20170280410A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
CN110809262B (en) COAP protocol-based operation and maintenance management method for Internet of things equipment
EP2882216B1 (en) Device and method for controlling, supervising and giving an alarming from a power supply of base station
CN103036724B (en) State information transmission method, the network equipment and unit equipment
CN107920348B (en) Device network state information
CN110224872B (en) Communication method, device and storage medium
CN103581300A (en) Interactive conference system information on-line preservation method
CN112637337B (en) Data processing method and device
CN108989467B (en) Centralized addressing method
WO2009107198A1 (en) Transmission device, method for confirming conductivity, and program for confirming conductivity
CN101931549A (en) Method and device for detecting link failure based on 802.3ah OAM (Operation, Administration and Maintenance)
AU2011288842B2 (en) Method and system for message tracking configuration in telecom services
CN104615509A (en) System for improving running reliability of portal website
US9743037B2 (en) Method for transmitting device indicator data in network-based AV system
JP3356809B2 (en) LAN fault monitoring apparatus, LAN fault monitoring system, and logging data collection method therefor
CN109808735B (en) Method, equipment and system for multi-section train communication

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
CP03 Change of name, title or address

Address after: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233

Patentee after: VTRON GROUP Co.,Ltd.

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: VTRON TECHNOLOGIES Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20201125

Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233

Patentee before: VTRON GROUP Co.,Ltd.

Effective date of registration: 20201125

Address after: 215500 No.13, Caotang Road, Changshu, Suzhou, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

TR01 Transfer of patent right
CP02 Change in the address of a patent holder

Address after: 215500 5th floor, building 4, 68 Lianfeng Road, Changfu street, Changshu City, Suzhou City, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: No.13 caodang Road, Changshu City, Suzhou City, Jiangsu Province

Patentee before: Changshu intellectual property operation center Co.,Ltd.

CP02 Change in the address of a patent holder