CN104467191A - Remote signaling processing method - Google Patents

Remote signaling processing method Download PDF

Info

Publication number
CN104467191A
CN104467191A CN201410832835.3A CN201410832835A CN104467191A CN 104467191 A CN104467191 A CN 104467191A CN 201410832835 A CN201410832835 A CN 201410832835A CN 104467191 A CN104467191 A CN 104467191A
Authority
CN
China
Prior art keywords
remote signalling
queue
event
state
remote signaling
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
Application number
CN201410832835.3A
Other languages
Chinese (zh)
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.)
Wasion Electric Co Ltd
Original Assignee
Wasion Electric 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 Wasion Electric Co Ltd filed Critical Wasion Electric Co Ltd
Priority to CN201410832835.3A priority Critical patent/CN104467191A/en
Publication of CN104467191A publication Critical patent/CN104467191A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a remote signaling processing method. The method comprises the steps that firstly, a remote signaling state is obtained and added into a remote signaling state queue; secondly, the remote signaling state queue is processed, and a remote signaling event is generated and added into a remote signaling event queue; thirdly, the remote signaling event queue is processed, and remote signaling event reporting is finished. The remote signaling function is achieved in an embedded operating system, and the expansibility feature of an original operating system is not affected; in the embedded multi-task operating system, multi-loop remote signaling processing can be achieved; high-resolution remote signaling processing can be achieved; remote signaling state scanning with the high requirement for the real-time performance is achieved in the interrupt task, and the requirement for high remote signaling resolution can be achieved; remote signaling processing with the general requirement for the real-time performance is achieved in the task. Remote signaling processing of multiple loops (more than 24 loops) can be achieved.

Description

Remote signalling processing method
Technical field
The present invention relates to a kind of remote signalling processing method.
Background technology
Remote signalling is a critical function of distribution power automation terminal, can obtain distribution switch deciliter state, switch pressure state, vacuum state, blocking, cabinet door state etc. by remote signaling function.The remote signalling displacement event that remote signalling displacement produces is the important evidence of assistant analysis distribution line anomalous event.Therefore remote signaling function is one of critical function for distribution network automated terminal.
The remote signalling processing mode that present distribution automation terminal is conventional under embedded real-time multi-task operating system, cannot carry out the remote signalling process that many remote signalling loop (more than 24 loops) keeps high-resolution function simultaneously.Present distribution automation terminal remote signalling process generally makes with the following methods:
1) single inquiry mode, interrupt mode process remote signalling data.Although the method can reach multiloop, high-resolution requirement, task is single, and set expandability is not strong.
2) not with in the application of embedded OS, use and interrupt obtaining remote signalling displacement, by main program process remote signalling event.Although the method can reach multiloop, high-resolution requirement, task is single, and set expandability is not strong.
3) in embedded OS, the mode process remote signalling of job enquiry is used.Although this mode solves the process embedding remote signalling in style multiple task operating system, the requirement on high-resolution road cannot be solved.
Summary of the invention
The object of this invention is to provide under one can be implemented in embedded real-time operating system and complete the high-resolution remote signalling processing method of multiloop.
This remote signalling processing method provided by the invention, comprises the steps:
Step one, obtains remote signalling state, and is added to remote signalling state queue;
Step 2, process remote signalling state queue, and generate remote signalling event, and this remote signalling event is added remote signalling event queue;
Step 3, process remote signalling event queue, completes remote signalling reporting events.
Described step one comprises: step 1, and clocked external interrupts, trigger external interrupt event; Step 2, in the middle of outside interrupt processing process, carries out status scan to remote signalling port; Step 3, if the corresponding remote signalling state that corresponding remote signalling port and last time interrupt preserving is inconsistent, then together adds remote signalling state queue by remote signalling port status and markers; Record epicycle remote signalling port status simultaneously.
Described corresponding remote signalling port and last time interrupt the corresponding remote signalling state consistency preserved, then jump to described step 1, until epicycle remote signalling TCP terminates.
Described step 2 comprises: step 1, system call, enters remote signalling Processing tasks; Step 2, whether detect remote signalling state queue is empty; Step 3, if remote signalling state queue is not empty, then by the process of remote signalling state queue, generates remote signalling event, and remote signalling event is added remote signalling event queue; Waiting system scheduler task is hung up.
Described remote signalling state queue is empty, then waiting system scheduler task is hung up.
Described step 3 comprises: step 1, system call, enters the process of remote signalling reporting events task; Step 2, whether detect remote signalling event queue is empty; Step 3, if remote signalling event queue is not empty, then will report remote signalling event; Waiting system scheduler task is hung up.
Described remote signalling event queue is empty, then waiting system scheduler task is hung up.
Compared with existing scheme, major advantage of the present invention is:
(1) in embedded OS, do remote signaling function, the present invention does not affect origin operation set expandability feature;
(2) in embedded multiple task operating system, the present invention can realize the process of multiloop remote signalling;
(3) in embedded multiple task operating system, the present invention can realize the process of high-resolution remote signalling;
(4) very high to requirement of real-time remote signalling status scan, the present invention places it in interrupt task and realizes, and can realize the high-resolution requirement of remote signalling;
(5) general to requirement of real-time remote signalling event handling, the present invention puts it in task and realizes;
(6) the present invention can also realize the remote signalling process in multiloop (more than 24 loops).
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that remote signalling of the present invention obtains.
Fig. 2 is remote signalling event handling schematic flow sheet of the present invention.
Fig. 3 is remote signalling report flow schematic diagram of the present invention.
Fig. 4 is one embodiment of the present invention schematic flow sheet.
Embodiment
The present invention mainly describes under a kind of method can be implemented in embedded real-time operating system and completes the high-resolution remote signalling process in loop.The present invention mainly comprises three steps:
Step one, remote signalling state obtains, and adds remote signalling state queue.
Step 2, process remote signalling state queue, generates remote signalling event, and is added to remote signalling event queue.
Step 3, process remote signalling event queue, completes remote signalling reporting events.
Above-mentioned three steps are linked together by remote signalling state queue and two queues of remote signalling event queue by the present invention.The present invention uses remote signalling state queue: the displacement of remote signalling state scans in interruption, and remote signalling Bitwise and time enter remote signalling state queue; Use remote signalling event queue: remote signalling event, by the scanning of remote signalling state queue, produces, is incorporated to remote signalling event queue in task.
Below in conjunction with accompanying drawing, the present invention is described further.
As shown in Figure 1, first obtain remote signalling state, and the remote signalling state of acquisition is added to remote signalling state queue; Its concrete steps comprise:
(1) clocked external interrupts producing, and enters external break events process;
(2) in the middle of outside interrupt processing process, status scan is carried out to remote signalling port, detect all remote signalling port statuss;
(3) if corresponding remote signalling port and last corresponding remote signalling state of interrupting preserving inconsistent, then illustrate that this remote signalling port conjugates, all remote signalling port statuss added markers, and then these remote signalling port statuss are added to remote signalling state queue; Record epicycle remote signalling port status, this state is used as the reference contrast foundation of lower whorl remote signalling port status simultaneously.Epicycle remote signalling TCP terminates;
If corresponding remote signalling port and last time interrupt the corresponding remote signalling state consistency preserved, then illustrate that remote signalling port conjugates.Epicycle remote signalling TCP terminates.
As shown in Figure 2, then process remote signalling state queue, generate remote signalling event, and remote signalling event is added remote signalling event queue; Its concrete steps comprise:
(1) system call, enters the process of remote signalling task;
(2) whether detect remote signalling state queue is empty;
(3) if remote signalling state queue is not empty, then process remote signalling state queue, generate remote signalling event, and the remote signalling event of generation is added to remote signalling event queue; Waiting system scheduler task is hung up;
If remote signalling state queue is empty, then waiting system scheduler task is hung up.
As shown in Figure 3, finally process remote signalling event queue, complete remote signalling reporting events; Its concrete steps comprise:
(1) system call, enters remote signalling reporting events Processing tasks;
(2) whether detect remote signalling event queue is empty;
(3) if remote signalling event queue is not empty, then remote signalling event will be reported; Waiting system scheduler task is hung up;
If remote signalling event queue is empty, then waiting system scheduler task is hung up.
As shown in Figure 4, in distribution automation terminal control module, use embedded real-time operating system.The task such as external interrupt task, sampling calculation task, data calculation task, log task, upgrading task, maintenance task, communication task, remote signalling Processing tasks is run in system.External interrupt triggers with every 100us, the acquisition of remote signalling state is carried out in external interrupt, arbitrary remote signalling state changes, and all remote signalling states are joined remote signalling state queue, the sampling on multichannel remote signalling (more than 24 tunnels) can be realized, ensure that remote signalling markers precision can in ± 100us simultaneously, owing to only needing remote signalling IO to scan and process of joining the team, remote signalling does not take the external interrupt process function too many time in this part process, surveys this holding time and is only 2.24us.
In remote signalling Processing tasks, whether be empty, if be not sky, all remote signalling state queues gone out team and is processed into remote signalling event queue if detecting remote signalling state queue.Owing to having had the accurate markers of remote signalling and remote signalling state in remote signalling state queue, therefore remote signalling event handling can have been carried out in the task that real-time is so not high.
Use embedded real-time operating system, can conveniently expand other tasks, the remote signalling state that requirement of real-time is very high obtains and the acquisition of remote signalling markers completes in a fast manner in interruption, can not cause the loss of remote signalling information.The function of remote signalling event handling realizes in task, therefore also facilitates other tasks of system extension.
Below be only the preferred embodiment of the present invention, protection scope of the present invention be not only confined to above-described embodiment, all technical schemes belonged under thinking of the present invention all belong to protection scope of the present invention.It should be pointed out that for those skilled in the art, some improvement without departing from the principles of the present invention and polishing, should be considered as protection scope of the present invention.

Claims (7)

1. a remote signalling processing method, comprises the steps:
Step one, obtains remote signalling state, and is added to remote signalling state queue;
Step 2, process remote signalling state queue, and generate remote signalling event, and this remote signalling event is added remote signalling event queue;
Step 3, process remote signalling event queue, completes remote signalling reporting events.
2. remote signalling processing method according to claim 1, is characterized in that, described step one comprises:
Step 1, clocked external interrupts, trigger external interrupt event;
Step 2, in the middle of outside interrupt processing process, carries out status scan to remote signalling port;
Step 3, if the corresponding remote signalling state that corresponding remote signalling port and last time interrupt preserving is inconsistent, then together adds remote signalling state queue by remote signalling port status and markers; Record epicycle remote signalling port status simultaneously.
3. remote signalling processing method according to claim 2, is characterized in that, described corresponding remote signalling port and last time interrupt the corresponding remote signalling state consistency preserved, then jump to described step 1, until epicycle remote signalling TCP terminates.
4. remote signalling processing method according to claim 1, is characterized in that, described step 2 comprises:
Step 1, system call, enters remote signalling Processing tasks;
Step 2, whether detect remote signalling state queue is empty;
Step 3, if remote signalling state queue is not empty, then by the process of remote signalling state queue, generates remote signalling event, and remote signalling event is added remote signalling event queue; Waiting system scheduler task is hung up.
5. remote signalling processing method according to claim 4, is characterized in that, described remote signalling state queue is empty, then waiting system scheduler task is hung up.
6. remote signalling processing method according to claim 1, is characterized in that, described step 3 comprises:
Step 1, system call, enters the process of remote signalling reporting events task;
Step 2, whether detect remote signalling event queue is empty;
Step 3, if remote signalling event queue is not empty, then will report remote signalling event; Waiting system scheduler task is hung up.
7. remote signalling processing method according to claim 6, is characterized in that, described remote signalling event queue is empty, then waiting system scheduler task is hung up.
CN201410832835.3A 2014-12-29 2014-12-29 Remote signaling processing method Pending CN104467191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410832835.3A CN104467191A (en) 2014-12-29 2014-12-29 Remote signaling processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410832835.3A CN104467191A (en) 2014-12-29 2014-12-29 Remote signaling processing method

Publications (1)

Publication Number Publication Date
CN104467191A true CN104467191A (en) 2015-03-25

Family

ID=52912766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410832835.3A Pending CN104467191A (en) 2014-12-29 2014-12-29 Remote signaling processing method

Country Status (1)

Country Link
CN (1) CN104467191A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383529A (en) * 2008-10-17 2009-03-11 南方电网技术研究中心 Extra-high voltage DC power transmission affair alarm processing method
US8433869B1 (en) * 2010-09-27 2013-04-30 Emc International Company Virtualized consistency group using an enhanced splitter
CN103093005A (en) * 2013-01-16 2013-05-08 航天科工深圳(集团)有限公司 Remote signaling data processing method and processing device
CN103258420A (en) * 2013-05-08 2013-08-21 国家电网公司 Frequent movement remote signaling processing method of electric system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383529A (en) * 2008-10-17 2009-03-11 南方电网技术研究中心 Extra-high voltage DC power transmission affair alarm processing method
US8433869B1 (en) * 2010-09-27 2013-04-30 Emc International Company Virtualized consistency group using an enhanced splitter
CN103093005A (en) * 2013-01-16 2013-05-08 航天科工深圳(集团)有限公司 Remote signaling data processing method and processing device
CN103258420A (en) * 2013-05-08 2013-08-21 国家电网公司 Frequent movement remote signaling processing method of electric system

Similar Documents

Publication Publication Date Title
JP2020514881A5 (en)
US20120271962A1 (en) Achieving Lossless Data Streaming in a Scan Based Industrial Process Control System
US10050987B1 (en) Real-time anomaly detection in a network using state transitions
CN105955876B (en) Data monitoring processing method and device
CN104615497A (en) Thread hanging processing method and device
CN105760240A (en) Distributed task processing method and device
CN103049274A (en) Device and method for task event processing
CN108416866B (en) Inspection task processing method and equipment
CN103150324A (en) Chained processing-based data collecting system and method
US20180253313A1 (en) Operation instruction response control method and terminal for human-machine interface
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN107589990B (en) Data communication method and system based on thread pool
CN111026572A (en) Fault processing method and device of distributed system and electronic equipment
CN110165632A (en) Power-out reset system applied to electronic equipment
CN111193616A (en) Automatic operation and maintenance method, device and system, storage medium and automatic operation and maintenance server
CN111143167B (en) Alarm merging method, device, equipment and storage medium for multiple platforms
CN105630664B (en) Reverse debugging method and device and debugger
CN105786917B (en) Method and device for concurrent warehousing of time series data
CN103077080A (en) Method and device for acquiring parallel program performance data based on high performance platform
CN202084026U (en) Data monitoring system for batch operations of host
CN101179436B (en) Correlation method and device of implementing debug log
CN104467191A (en) Remote signaling processing method
US20200117640A1 (en) Method, device and computer program product for managing storage system
CN103425583B (en) The tracking of a kind of multi-DSP parallel system and back method
KR20220046697A (en) Automated test methods, devices, electronic devices, storage media and computer programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325