CN103577263A - Power quality data real-time collection method and device - Google Patents

Power quality data real-time collection method and device Download PDF

Info

Publication number
CN103577263A
CN103577263A CN201310549604.7A CN201310549604A CN103577263A CN 103577263 A CN103577263 A CN 103577263A CN 201310549604 A CN201310549604 A CN 201310549604A CN 103577263 A CN103577263 A CN 103577263A
Authority
CN
China
Prior art keywords
task
sheet
priority
acquisition tasks
collection
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
CN201310549604.7A
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.)
Beijig Yupont Electric Power Technology Co ltd
Foshan Power Supply Bureau of Guangdong Power Grid Corp
Original Assignee
Beijig Yupont Electric Power Technology Co ltd
Foshan Power Supply Bureau of Guangdong Power Grid Corp
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 Beijig Yupont Electric Power Technology Co ltd, Foshan Power Supply Bureau of Guangdong Power Grid Corp filed Critical Beijig Yupont Electric Power Technology Co ltd
Priority to CN201310549604.7A priority Critical patent/CN103577263A/en
Publication of CN103577263A publication Critical patent/CN103577263A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a power quality data real-time collection method and device. The power quality data real-time collection method comprises the steps that collection tasks are prioritized according to the weight to obtain a collection task sequence that priorities are from high to low; the collection tasks are fragmentized to obtain collection task fragments; with the collection task fragments as a unit, an asynchronous non-blocking processing method is carried out on the collection tasks according to the priorities to collect power quality data. According to the technical scheme, the collection tasks are fragmentized, and the asynchronous processing method based on the tasks is adopted. Therefore, under the condition of multiple collection points, real-time data collection is guaranteed, and especially data collection with the high requirement for real-time performance, such as power quality real-time data, event data, clock data and parameter data, is guaranteed.

Description

A kind of power quality data real-time collecting method and device
Technical field
The present invention relates to electric power data field, particularly a kind of power quality data real-time collecting method and device.
Background technology
Existing general scheme adopts the multithreading method of synchronization to gather more, the in the situation that of fewer in collection point, taking the multithreading method of synchronization is a kind of relatively simple method, but under several thousand even more susceptible conditions of collection point as many as, still take the synchronous mode of multithreading to gather, a thread often will be responsible for the collection of a plurality of collection points, and like this, this technical scheme can cause two kinds of possible results:
1,, in collection period, the data of all collection points cannot have been gathered in time;
As long as 2 have one or several collection point synchronously to block because of fault collection, all the other collection points will be difficult to complete collection in collection period, even cannot gather;
3, real-time is poor, is difficult to realize the collection of quality of power supply real time data that requirement of real-time is higher, event data, clock data.
Summary of the invention
For addressing the above problem, the present invention proposes a kind of power quality data real-time collecting method and device, can realize the Real-time Collection of realizing power quality data under, special emergency many in collection point.
For achieving the above object, the invention provides a kind of power quality data real-time collecting method, comprising:
According to flexible strategy, acquisition tasks is carried out to priority arrangement, obtain priority acquisition tasks sequence from high to low;
Described acquisition tasks is carried out to burst processing, obtain acquisition tasks sheet;
To acquisition tasks, with acquisition tasks Pian Wei unit, according to priority, adopt asynchronous unblock processing mode to gather power quality data.
Optionally, in an embodiment of the present invention, the execution time of described acquisition tasks sheet is 20ms~100ms.
Optionally, in an embodiment of the present invention, described asynchronous unblock processing mode is: execute after current acquisition tasks sheet A1, as insert the task sheet B1 that the current task A of a priority ratio is high, proceed to the sheet B1 that executes the task, execute after task sheet B1, the priority of the task sheet that the task sheet of other tasks inserts or insert as not having does not have the priority of task A high, other task sheets of the A that continues in order to execute the task; Wherein, task sheet A1 is the task sheet of task A.
For achieving the above object, the present invention also provides a kind of power quality data real-time acquisition device, comprising:
Priority arrangement unit, for acquisition tasks being carried out to priority arrangement according to flexible strategy, obtains priority acquisition tasks sequence from high to low;
Burst processing unit, for described acquisition tasks is carried out to burst processing, obtains acquisition tasks sheet;
Collecting unit, for to acquisition tasks with acquisition tasks Pian Wei unit, according to priority, adopt asynchronous unblock processing mode to gather power quality data.
Optionally, in an embodiment of the present invention, the execution time of the acquisition tasks sheet that described burst processing unit obtains is 20ms~100ms.
Optionally, in an embodiment of the present invention, the asynchronous unblock processing mode that described collecting unit adopts is: execute after current acquisition tasks sheet A1, as insert the task sheet B1 that the current task A of a priority ratio is high, proceed to the sheet B1 that executes the task, execute after task sheet B1, the priority of the task sheet that the task sheet of other tasks inserts or insert as not having does not have the priority of task A high, other task sheets of the A that continues in order to execute the task; Wherein, task sheet A1 is the task sheet of task A.
Technique scheme has following beneficial effect: the application's technical scheme is due to the task of collection is carried out to burst processing, and the asynchronous process mode of employing based on task, the in the situation that of many in collection point like this, guarantee real-time data collection, guaranteed especially the high data acquisitions of requirement of real-time such as quality of power supply real time data, event data, clock data, supplemental characteristic.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of power quality data real-time collecting method process flow diagram that the present invention proposes;
Fig. 2 is a kind of power quality data real-time acquisition device block diagram that the present invention proposes;
Fig. 3 is the present embodiment power quality data Real-time Collection schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, a kind of power quality data real-time collecting method process flow diagram proposing for the present invention.Comprise:
Step 101): according to flexible strategy, acquisition tasks is carried out to priority arrangement, obtain priority acquisition tasks sequence from high to low;
Step 102): described acquisition tasks is carried out to burst processing, obtain acquisition tasks sheet;
Step 103): to acquisition tasks, with acquisition tasks Pian Wei unit, according to priority, adopt asynchronous unblock processing mode to gather power quality data.
Optionally, in an embodiment of the present invention, the execution time of described acquisition tasks sheet is 20ms~100ms.
Optionally, in an embodiment of the present invention, described asynchronous unblock processing mode is: execute after current acquisition tasks sheet A1, as insert the task sheet B1 that the current task A of a priority ratio is high, proceed to the sheet B1 that executes the task, execute after task sheet B1, the priority of the task sheet that the task sheet of other tasks inserts or insert as not having does not have the priority of task A high, other task sheets of the A that continues in order to execute the task; Wherein, task sheet A1 is the task sheet of task A.
As shown in Figure 2, a kind of power quality data real-time acquisition device block diagram proposing for the present invention.Comprise:
Priority arrangement unit 201, for acquisition tasks being carried out to priority arrangement according to flexible strategy, obtains priority acquisition tasks sequence from high to low;
Burst processing unit 202, for described acquisition tasks is carried out to burst processing, obtains acquisition tasks sheet;
Collecting unit 203, for to acquisition tasks with acquisition tasks Pian Wei unit, according to priority, adopt asynchronous unblock processing mode to gather power quality data.
Optionally, in an embodiment of the present invention, the execution time of the acquisition tasks sheet that described burst processing unit 202 obtains is 20ms~100ms.
Optionally, in an embodiment of the present invention, the asynchronous unblock processing mode that described collecting unit 203 adopts is: execute after current acquisition tasks sheet A1, as insert the task sheet B1 that the current task A of a priority ratio is high, proceed to the sheet B1 that executes the task, execute after task sheet B1, the priority of the task sheet that the task sheet of other tasks inserts or insert as not having does not have the priority of task A high, other task sheets of the A that continues in order to execute the task; Wherein, task sheet A1 is the task sheet of task A.
As shown in Figure 3, be the present embodiment power quality data Real-time Collection schematic diagram.As seen from Figure 3, the power quality data Real-time Collection principle of the present embodiment is based on task, and adopts the disposal route of asynchronous unblock to realize the collection of data.
As shown in Figure 3, thread 1, thread 2 ... thread n, represent that harvester is to the thread of operating system application, timeslice 1, timeslice 2 ... timeslice n, expression operating system is given the time of thread, task 1, task 2 ... task n, the acquisition tasks that represents harvester, by thread 1 to thread n, obtain the execution resource (time) of CPU, and according to the algorithm of priority flexible strategy, the execution resource of the CPU obtaining is distributed to different tasks, task just can obtain the right that circulation is carried out like this.
Task has priority, the default support 3 class priority of the present embodiment, that is: limit priority, normal priority and lowest priority, the priority of task that priority is high is processed, the processing time that the task of equal priority obtains is basic identical, the CPU time that all threads of all task sharings obtain, carry out concrete acquisition tasks, acquisition tasks is taked asynchronous unblock mode, so just can stop in real time the execution of any task, insert any urgent acquisition tasks in real time, such as: quality of power supply real time data, event data, clock data, supplemental characteristic etc.
The present embodiment merges " CPU time modular concept, asynchronous unblock communication process modular concept, task burst principle, task priority transaction module principle that centralized and unified distribution is obtained " and, in quality of power supply acquisition applications, has realized well the real-time property collection of large capacity collection point.
1, the CPU time modular concept that centralized and unified distribution is obtained
By the mode application CPU time of the journey that bursts at the seams, the thread of opening is more, relatively many, the approximate computing formula of CPU time of application, the Thread Count B that the Thread Count A that the operating system of harvester has been moved, the CPU of harvester open, so, the ratio of the CPU time that harvester obtains is C, and C=B/ (A+B) calculates and can find out thus, the Thread Count B that harvester leaves is more, and the CPU time of obtaining is relatively many.
2, asynchronous unblock communication process modular concept
Prerequisite and hypothesis:
A, do not carry out thread switching, do not consider the time that thread switches;
The instruction that b, Multithread Synchronization Program of the prior art and the application's technical scheme is carried out is taken time identical, (it is nanosecond that the time of expending is carried out in instruction to carry out spent time much smaller than the spent time of collection communication of instruction, the time Millisecond that signal post expends), ignoring execution instruction takes time;
C, the time overhead that only consideration is communicated by letter, do not consider the time overhead that data are stored;
D, do not consider the obstruction that communication failure causes;
The time that e, collection communication expend is T,
Synchronous blocking model approximate formula:
Figure BDA0000409887330000051
wherein, Ti represents the collection communication time that i task spends, altogether K task.
Asynchronous unblock model approximate formula: T=MAX (Ti);
The call duration time of synchronous blocking model be all call duration times and, and the call duration time of asynchronous unblock model is substantially equal to the call duration time of single-point, what this species diversity was far away at network path, network speed shows the in the situation that of slower is more obvious.
3, task burst principle
Task is divided into a lot of little task sheets, and each task sheet execution time remains on 20ms between 100ms as far as possible, is no more than 100ms.
4, task priority transaction module principle
The priority of task determines by the flexible strategy of task, and the flexible strategy of the task that priority is higher are higher, and the flexible strategy of the task that priority is lower are lower, and the ratio of the task acquisition time that priority is high is higher, obtains the chance carried out just high.
Task acquisition time ratio D, the flexible strategy of task are E, wherein, Ei represents the flexible strategy of i task, altogether K task.
Above-mentioned analysis is known, the in the situation that of many in collection point, guarantee real-time data collection, guaranteed especially the high data acquisitions of requirement of real-time such as quality of power supply real time data, event data, clock data, supplemental characteristic.
Finally it should be noted that: above-mentioned only in order to the present invention to be described and unrestricted technical scheme described in the invention; Although this instructions has been described in detail to the present invention, but, those skilled in the art still can modify or be equal to replacement the present invention, and all do not depart from technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in claim scope of the present invention.

Claims (6)

1. a power quality data real-time collecting method, is characterized in that, comprising:
According to flexible strategy, acquisition tasks is carried out to priority arrangement, obtain priority acquisition tasks sequence from high to low;
Described acquisition tasks is carried out to burst processing, obtain acquisition tasks sheet;
To acquisition tasks, with acquisition tasks Pian Wei unit, according to priority, adopt asynchronous unblock processing mode to gather power quality data.
2. the method for claim 1, is characterized in that, the execution time of described acquisition tasks sheet is 20ms~100ms.
3. the method for claim 1, it is characterized in that, described asynchronous unblock processing mode is: execute after current acquisition tasks sheet A1, as insert the task sheet B1 that the current task A of a priority ratio is high, proceed to the sheet B1 that executes the task, execute after task sheet B1, the priority of the task sheet that the task sheet of other tasks inserts or insert as not having does not have the priority of task A high, other task sheets of the A that continues in order to execute the task; Wherein, task sheet A1 is the task sheet of task A.
4. a power quality data real-time acquisition device, is characterized in that, comprising:
Priority arrangement unit, for acquisition tasks being carried out to priority arrangement according to flexible strategy, obtains priority acquisition tasks sequence from high to low;
Burst processing unit, for described acquisition tasks is carried out to burst processing, obtains acquisition tasks sheet;
Collecting unit, for to acquisition tasks with acquisition tasks Pian Wei unit, according to priority, adopt asynchronous unblock processing mode to gather power quality data.
5. device as claimed in claim 4, is characterized in that, the execution time of the acquisition tasks sheet that described burst processing unit obtains is 20ms~100ms.
6. device as claimed in claim 4, it is characterized in that, the asynchronous unblock processing mode that described collecting unit adopts is: execute after current acquisition tasks sheet A1, as insert the task sheet B1 that the current task A of a priority ratio is high, proceed to the sheet B1 that executes the task, execute after task sheet B1, the priority of the task sheet that the task sheet of other tasks inserts or insert as not having does not have the priority of task A high, other task sheets of the A that continues in order to execute the task; Wherein, task sheet A1 is the task sheet of task A.
CN201310549604.7A 2013-11-07 2013-11-07 Power quality data real-time collection method and device Pending CN103577263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310549604.7A CN103577263A (en) 2013-11-07 2013-11-07 Power quality data real-time collection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310549604.7A CN103577263A (en) 2013-11-07 2013-11-07 Power quality data real-time collection method and device

Publications (1)

Publication Number Publication Date
CN103577263A true CN103577263A (en) 2014-02-12

Family

ID=50049103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310549604.7A Pending CN103577263A (en) 2013-11-07 2013-11-07 Power quality data real-time collection method and device

Country Status (1)

Country Link
CN (1) CN103577263A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158699A (en) * 2014-08-08 2014-11-19 广州新科佳都科技有限公司 Data acquisition method based on priority and segmentation
CN105892996A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Assembly line work method and apparatus for batch data processing
CN106201715A (en) * 2016-06-30 2016-12-07 北京奇艺世纪科技有限公司 A kind of method for scheduling task and device
CN106569886A (en) * 2016-10-26 2017-04-19 曙光信息产业(北京)有限公司 Strategy scheduling method and strategy scheduling system
CN107479898A (en) * 2017-08-28 2017-12-15 荆门程远电子科技有限公司 A kind of system architecture of the three-dimensional earth based on mobile platform
CN114049754A (en) * 2021-12-06 2022-02-15 青岛鼎信通讯股份有限公司 Temporary collection task mechanism based on electric energy collection terminal of transformer substation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111451A (en) * 2011-03-02 2011-06-29 上海市共进通信技术有限公司 Reactor mode-based distributed multi-task cooperative processing network system and method
CN102520729A (en) * 2011-12-05 2012-06-27 清华大学 Information transmission method of unmanned aerial vehicle cluster in visual navigation
US20130081037A1 (en) * 2011-07-13 2013-03-28 International Business Machines Corporation Performing collective operations in a distributed processing system
CN103384206A (en) * 2012-05-02 2013-11-06 中国科学院计算机网络信息中心 Concurrent processing method and system for mass data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111451A (en) * 2011-03-02 2011-06-29 上海市共进通信技术有限公司 Reactor mode-based distributed multi-task cooperative processing network system and method
US20130081037A1 (en) * 2011-07-13 2013-03-28 International Business Machines Corporation Performing collective operations in a distributed processing system
CN102520729A (en) * 2011-12-05 2012-06-27 清华大学 Information transmission method of unmanned aerial vehicle cluster in visual navigation
CN103384206A (en) * 2012-05-02 2013-11-06 中国科学院计算机网络信息中心 Concurrent processing method and system for mass data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孔祥营,柏桂枝: "《嵌入式实时操作系统VxWorks及其开发环境Tornado》", 31 January 2002 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158699A (en) * 2014-08-08 2014-11-19 广州新科佳都科技有限公司 Data acquisition method based on priority and segmentation
CN104158699B (en) * 2014-08-08 2017-10-24 广州新科佳都科技有限公司 A kind of collecting method based on priority and segmentation
CN105892996A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Assembly line work method and apparatus for batch data processing
CN106201715A (en) * 2016-06-30 2016-12-07 北京奇艺世纪科技有限公司 A kind of method for scheduling task and device
CN106569886A (en) * 2016-10-26 2017-04-19 曙光信息产业(北京)有限公司 Strategy scheduling method and strategy scheduling system
CN106569886B (en) * 2016-10-26 2020-10-16 曙光信息产业(北京)有限公司 Policy scheduling method and policy scheduling system
CN107479898A (en) * 2017-08-28 2017-12-15 荆门程远电子科技有限公司 A kind of system architecture of the three-dimensional earth based on mobile platform
CN107479898B (en) * 2017-08-28 2020-10-27 荆门程远电子科技有限公司 Three-dimensional virtual earth system architecture based on mobile platform
CN114049754A (en) * 2021-12-06 2022-02-15 青岛鼎信通讯股份有限公司 Temporary collection task mechanism based on electric energy collection terminal of transformer substation

Similar Documents

Publication Publication Date Title
CN103577263A (en) Power quality data real-time collection method and device
CN105207817B (en) A kind of method that process layer devices resist network storm
CN102780581B (en) AFDX (Avionics Full Duplex Switched Ethernet) end-to-end delay bound claculation method based on random network calculus
CN105429297B (en) The many operational mode controls of micro-capacitance sensor and switching method
CN103426033A (en) Power distribution network fault recovery optimization rebuilding algorithm based on critical path method
CN109558255A (en) A kind of method and Task Processing Unit of task processing
CN109684060B (en) Mixed scheduling method for multiple types of time-critical tasks
CN106326068A (en) Resource index monitoring method and device
CN104536835B (en) Self-adapting task scheduling method in a kind of Hot Spare real-time control system
CN103176842A (en) Background process management method and mobile terminal thereof
EP2222003A3 (en) Field control system
CN105320571A (en) Process scheduling method
CN102722402A (en) Processing system and method for dispatching multiple tasks in real time in non-preemptive mode
CN106254274A (en) Transformer station's switch GOOSE message transmission reduces the method that the end of a thread blocks
CN106056233A (en) Power load prediction method
CN109473988B (en) Method and device for controlling power flow and processing fault of intelligent power distribution network containing micro-grid
Zhu et al. Taming power peaks in mapreduce clusters
CN110994613B (en) Power plant load scheduling system and scheduling method thereof
CN102437928B (en) Communication method capable of self-adaptively switching between two speeds of CAN (Controller Area Network) bus
CN106453029A (en) Notification information processing method and apparatus
CN116993075A (en) Priority-based inspection task management method and inspection robot
CN106383467B (en) traction controller based on microcontroller
CN105049365A (en) Adaptive frequency modulation energy-saving method for multi-core multi-thread intrusion detection device
CN103064727B (en) Hard real-time hybrid task dispatching method
CN104133541A (en) Method for prolonging service life of server power supply

Legal Events

Date Code Title Description
C06 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140212