CN118611817B - A time synchronization monitoring method and system for power collection terminal - Google Patents
A time synchronization monitoring method and system for power collection terminal Download PDFInfo
- Publication number
- CN118611817B CN118611817B CN202411096286.8A CN202411096286A CN118611817B CN 118611817 B CN118611817 B CN 118611817B CN 202411096286 A CN202411096286 A CN 202411096286A CN 118611817 B CN118611817 B CN 118611817B
- Authority
- CN
- China
- Prior art keywords
- time
- power
- data
- time synchronization
- margin
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/10—Pre-processing; Data cleansing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Bioinformatics & Computational Biology (AREA)
- Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Cheminformatics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Remote Monitoring And Control Of Power-Distribution Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及数据处理技术领域。更具体地,本发明涉及一种电力采集终端的对时监测方法及系统。The present invention relates to the field of data processing technology, and more specifically, to a time synchronization monitoring method and system for a power collection terminal.
背景技术Background Art
电力采集终端和对时监测是电力系统中至关重要的技术,用于确保电力数据的精确采集和同步记录,从而保障电力系统的可靠运行和高效管理。电力采集终端主要用于实时采集电力系统中的各种数据,包括电压、电流、功率、频率等参数,这些数据对于电力系统的监控、调度、分析和优化具有重要意义。而对时监测方法则是保证这些数据具有统一时间戳的关键技术,确保不同终端采集的数据能够精确匹配、无缝对接,从而为电力系统的分析和控制提供准确的基础。当前的电力采集终端对时监测方法主要依赖于多种时间同步技术,包括全球定位系统、网络时间协议、精确时间协议等。这些技术能够提供高精度的时间同步服务,使得分布在广泛区域内的电力采集终端能够获取准确的时间信息。Power collection terminals and time synchronization monitoring are crucial technologies in power systems, which are used to ensure accurate collection and synchronous recording of power data, thereby ensuring reliable operation and efficient management of power systems. Power collection terminals are mainly used to collect various data in power systems in real time, including parameters such as voltage, current, power, and frequency. These data are of great significance for the monitoring, dispatching, analysis, and optimization of power systems. The time synchronization monitoring method is the key technology to ensure that these data have a unified timestamp, ensuring that the data collected by different terminals can be accurately matched and seamlessly connected, thereby providing an accurate basis for the analysis and control of power systems. The current power collection terminal time synchronization monitoring method mainly relies on a variety of time synchronization technologies, including global positioning system, network time protocol, precision time protocol, etc. These technologies can provide high-precision time synchronization services, enabling power collection terminals distributed in a wide area to obtain accurate time information.
公开号为CN110673464B的专利文件公开了电力采集终端的对时方法和装置。该电力采集终端的对时方法包括:获取电力采集终端的对时类型;根据对时类型从多个对时操作指令中选取对应的目标对时操作指令;向电力采集终端发送目标对时操作指令,以便电力采集终端根据目标对时操作指令进行对时操作。然而,尽管该方法在一定程度上解决了电力采集终端的对时问题,但是一般对时周期是固定的,而采集终端面临的设备工况、网络环境等是变化的,如果采用固定的对时周期,可能会对采集效果不利。The patent document with publication number CN110673464B discloses a time synchronization method and device for a power collection terminal. The time synchronization method for the power collection terminal includes: obtaining the time synchronization type of the power collection terminal; selecting a corresponding target time synchronization operation instruction from multiple time synchronization operation instructions according to the time synchronization type; sending the target time synchronization operation instruction to the power collection terminal so that the power collection terminal performs a time synchronization operation according to the target time synchronization operation instruction. However, although this method solves the time synchronization problem of the power collection terminal to a certain extent, the general time synchronization cycle is fixed, while the equipment working conditions, network environment, etc. faced by the collection terminal are changing. If a fixed time synchronization cycle is adopted, it may be detrimental to the collection effect.
发明内容Summary of the invention
为解决上述背景技术中提出采用固定的对时周期,可能会对采集效果不利的问题,本发明在如下的多个方面中提供方案。In order to solve the problem proposed in the above background technology that the use of a fixed time synchronization period may be detrimental to the acquisition effect, the present invention provides solutions in the following aspects.
在第一方面中,本发明提供了一种电力采集终端的主动对时监测方法,实时采集运行功率,基于所述运行功率计算对时裕度:In a first aspect, the present invention provides an active time synchronization monitoring method for a power collection terminal, which collects operating power in real time and calculates a time synchronization margin based on the operating power:
; ;
式中,表示第个时间段内的对时裕度,表示在第个时间段内第次采集的运行功率,表示在第个时间段内采集到运行功率的最大值,表示时间段的个数;若<,则向对时服务器发送对时请求;若≥,延时发送;其中表示对时裕度阈值。In the formula, Indicates The timing margin within a time period, Indicated in In the time period The operating power collected each time, Indicated in The maximum value of the operating power collected in a time period, Indicates the number of time periods; if < , then send a synchronization request to the synchronization server; if ≥ , delayed sending; Indicates the timing margin threshold.
结合对时裕度的计算,确保在运行高峰期进行更频繁的对时操作,确保数据的实时性和准确性。在运行低峰期,则可以延长对时周期,减少不必要的对时操作,节约系统资源。这种智能化的对时周期管理,不仅提高了系统的对时效率,还优化了资源利用,降低了运行成本。Combined with the calculation of the time synchronization margin, more frequent time synchronization operations can be performed during peak operation periods to ensure the real-time and accuracy of data. During off-peak operation periods, the time synchronization cycle can be extended to reduce unnecessary time synchronization operations and save system resources. This intelligent time synchronization cycle management not only improves the time synchronization efficiency of the system, but also optimizes resource utilization and reduces operating costs.
进一步地,所述延时发送包括:按照当前时间周期计算调整后的时间周期:Further, the delayed sending includes: calculating the adjusted time period according to the current time period:
; ;
其中,表示当前时间周期,表示调整后的时间周期。in, Indicates the current time period, Indicates the adjusted time period.
主动对时监测方法通过实时采集和预处理运行功率数据,并基于这些数据计算对时裕度,能够准确判断当前对时状态。当对时裕度低于阈值时,系统会主动发送对时请求,确保对时的准确性和及时性,从而提高整体系统的对时精度。通过计算对时裕度并在必要时才发送对时请求,优化了系统资源的利用,降低了系统负担。尤其是通过动态调整发送周期策略,根据对时裕度与阈值的比较,灵活调整发送周期,使系统能够根据实时对时状态和运行功率变化,灵活调整对时操作频率,进一步提升系统的灵活性和适应性。The active timing monitoring method can accurately determine the current timing status by collecting and preprocessing operating power data in real time, and calculating the timing margin based on this data. When the timing margin is lower than the threshold, the system will actively send a timing request to ensure the accuracy and timeliness of the timing, thereby improving the timing accuracy of the overall system. By calculating the timing margin and sending the timing request only when necessary, the utilization of system resources is optimized and the system burden is reduced. In particular, by dynamically adjusting the sending cycle strategy, the sending cycle is flexibly adjusted according to the comparison between the timing margin and the threshold, so that the system can flexibly adjust the timing operation frequency according to the real-time timing status and operating power changes, further improving the flexibility and adaptability of the system.
进一步地,所述实时采集运行功率,包括,使用电能质量监测仪对运行功率进行采集。Furthermore, the real-time collection of operating power includes collecting the operating power using a power quality monitor.
使用电能质量监测仪实时采集运行功率能够提供精确的电能使用数据,帮助用户实时了解设备或系统的能耗情况,进而优化能源管理策略。通过监测功率的波动和变化,用户可以识别并解决潜在的能效问题,提高能源利用效率,降低能源成本,并且有助于确保设备运行在最佳的电能质量条件下,延长设备寿命,提升生产效率和可靠性。Using a power quality monitor to collect operating power in real time can provide accurate power usage data, helping users understand the energy consumption of equipment or systems in real time, and then optimize energy management strategies. By monitoring power fluctuations and changes, users can identify and solve potential energy efficiency problems, improve energy utilization efficiency, reduce energy costs, and help ensure that equipment operates under optimal power quality conditions, extend equipment life, and improve production efficiency and reliability.
进一步地,还包括,对运行功率进行预处理,包括:数据清洗、数据平滑和数据过滤。Furthermore, it also includes preprocessing the operating power, including: data cleaning, data smoothing and data filtering.
进一步地,还包括,所述数据清洗采用3σ原则对运行功率数据进行检测和去除异常值,所述数据平滑采用指数平滑法减少运行功率数据中的短期波动,所述数据过滤采用高低阈值过滤法对电力采集终端运行功率数据进行过滤。Furthermore, it also includes that the data cleaning adopts the 3σ principle to detect and remove abnormal values of the operating power data, the data smoothing adopts the exponential smoothing method to reduce the short-term fluctuations in the operating power data, and the data filtering adopts the high and low threshold filtering method to filter the operating power data of the power collection terminal.
通过对运行功率进行预处理,包括数据清洗、数据平滑和数据过滤,有效去除了数据中的异常值和短期波动,提升了数据质量。在此基础上计算的对时裕度和偏差程度,更加准确反映电力采集终端的实际运行状态。基于这些信息进行对时周期调整,使得系统能够在不同运行条件下自适应调整对时策略,增强了系统的鲁棒性和自适应能力。By preprocessing the operating power, including data cleaning, data smoothing and data filtering, outliers and short-term fluctuations in the data are effectively removed, improving data quality. The timing margin and deviation degree calculated on this basis more accurately reflect the actual operating status of the power collection terminal. The timing cycle is adjusted based on this information, so that the system can adaptively adjust the timing strategy under different operating conditions, enhancing the robustness and adaptability of the system.
进一步地,还包括,所述对时请求包括同步请求和时间偏差修正参数两部分,用于电力采集终端根据所述时间偏差参数进行时间修正。Furthermore, the time synchronization request includes two parts: a synchronization request and a time deviation correction parameter, and the power collection terminal performs time correction according to the time deviation parameter.
同步请求和时间偏差修正参数。同步请求确保电力采集终端与时间标准保持同步,有助于确保数据采集的精确性和准确性。时间偏差修正参数则用于根据实际情况修正本地时间,确保采集数据的时间戳准确无误。这种机制的有益效果在于提高了数据的可信度和实时性,有助于精确分析电力使用情况,优化能源管理,降低能耗成本,以及确保电力系统运行的稳定性和效率。Synchronization request and time deviation correction parameters. Synchronization request ensures that the power collection terminal is synchronized with the time standard, which helps to ensure the accuracy and precision of data collection. Time deviation correction parameters are used to correct the local time according to the actual situation to ensure that the timestamp of the collected data is accurate. The beneficial effect of this mechanism is that it improves the credibility and real-time nature of the data, helps to accurately analyze power usage, optimize energy management, reduce energy consumption costs, and ensure the stability and efficiency of power system operation.
进一步地,还包括,所述当前时间周期为初始时间周期。Furthermore, it also includes that the current time period is an initial time period.
在第二方面中,本发明提供了一种电力采集终端的被动对时监测方法,包括:实时采集运行功率;响应于距离对时时刻等于时间阈值,基于所述运行功率计算对时裕度:In a second aspect, the present invention provides a passive time synchronization monitoring method for a power collection terminal, comprising: collecting operating power in real time; in response to the distance synchronization moment being equal to a time threshold, calculating a time synchronization margin based on the operating power:
; ;
式中,表示第个时间段内的对时裕度,表示在第个时间段内第次采集的运行功率,表示在第个时间段内采集到运行功率的最大值,表示时间段的个数;若,设置不对时标志为真;若≤,设置不对时标志为假;其中表示对时裕度阈值;响应于接受到对时信号,若不对时标志为假,响应所述对时信号,否则不响应所述对时信号。In the formula, Indicates The timing margin within a time period, Indicated in In the time period The operating power collected each time, Indicated in The maximum value of the operating power collected in a time period, Indicates the number of time periods; if , the flag is true when the setting is incorrect; if ≤ , set the wrong flag to false; Indicates the timing margin threshold; in response to receiving a timing signal, if the timing mismatch flag is false, respond to the timing signal, otherwise do not respond to the timing signal.
被动对时监测方法能够在距离对时时刻等于时间阈值时,准确判断当前对时状态。当对时裕度低于设定阈值时,设置不对时标志为真,从而避免了不必要的对时操作。这种方法减少了无效对时操作,优化了系统资源的利用,降低了系统负担。其次,响应于接收到的对时信号,系统会根据不对时标志的状态,决定是否响应对时信号。这种基于对时裕度的判断机制,确保了系统在真正需要对时时才进行对时操作,从而提高了系统的对时准确性和稳定性。此外,避免了对时误差积累导致的系统故障或性能下降,提高了整体系统的可靠性。通过减少不必要的对时操作,提高了设备的运行效率。The passive timing monitoring method can accurately judge the current timing status when the distance to the timing moment is equal to the time threshold. When the timing margin is lower than the set threshold, the misalignment flag is set to true, thereby avoiding unnecessary timing operations. This method reduces invalid timing operations, optimizes the utilization of system resources, and reduces the system burden. Secondly, in response to the received timing signal, the system will decide whether to respond to the timing signal based on the status of the misalignment flag. This judgment mechanism based on the timing margin ensures that the system performs timing operations only when it really needs to synchronize, thereby improving the system's timing accuracy and stability. In addition, system failures or performance degradation caused by the accumulation of timing errors are avoided, and the reliability of the overall system is improved. By reducing unnecessary timing operations, the operating efficiency of the equipment is improved.
在第三方面中,本发明提供了一种电力采集终端的对时监测系统,包括存储器和处理器,所述存储器内存储有计算机程序指令,当所述计算机程序指令被所述处理器执行时实现上述一种电力采集终端的主动对时监测方法或一种电力采集终端的被动对时监测方法。In a third aspect, the present invention provides a time synchronization monitoring system for a power collection terminal, comprising a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned active time synchronization monitoring method for a power collection terminal or a passive time synchronization monitoring method for a power collection terminal is implemented.
本发明的有益效果在于:The beneficial effects of the present invention are:
在主动对时中,根据实时采集的运行功率数据预处理并计算对时裕度,根据预设的对时裕度阈值决定是否发送对时请求,从而保证设备时间与标准时间同步,有效提升数据采集的精确性和实时性。而在被动对时中,则根据实时采集的运行功率数据计算对时裕度,并根据预设的对时裕度阈值设定对时标志,以决定是否响应对时信号,从而在保证数据准确性的同时,提升了系统的自动化和效率。In active timing, the timing margin is preprocessed and calculated based on the real-time collected operating power data, and the preset timing margin threshold is used to decide whether to send a timing request, thereby ensuring that the device time is synchronized with the standard time, effectively improving the accuracy and real-time performance of data collection. In passive timing, the timing margin is calculated based on the real-time collected operating power data, and the timing flag is set based on the preset timing margin threshold to decide whether to respond to the timing signal, thereby ensuring data accuracy while improving the automation and efficiency of the system.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过参考附图阅读下文的详细描述,本发明示例性实施方式的上述以及其他目的、特征和优点将变得易于理解。在附图中,以示例性而非限制性的方式示出了本发明的若干实施方式,并且相同或对应的标号表示相同或对应的部分,其中:The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
图1是示意性示出本发明中实施例的电力采集终端的被动对时监测方法流程图;FIG1 is a flow chart schematically showing a passive time synchronization monitoring method of a power collection terminal according to an embodiment of the present invention;
图2是示意性示出本发明中实施例的电力采集终端的主动对时监测方法流程图;FIG2 is a flow chart schematically showing an active time synchronization monitoring method of a power collection terminal according to an embodiment of the present invention;
图3是示意性示出本发明中实施例的电力采集终端的对时监测方法中数据预处理结构图;FIG3 is a diagram schematically showing a data preprocessing structure in a time synchronization monitoring method of a power collection terminal according to an embodiment of the present invention;
图4是示意性示出本发明中实施例的电力采集终端的对时监测系统流程图。FIG. 4 is a flow chart schematically showing a time synchronization monitoring system of a power collection terminal according to an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
下面结合附图来详细描述本发明的具体实施方式。The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
电力采集终端的对时监测方法实施例:Embodiment of the time synchronization monitoring method of the power collection terminal:
如图1所示,本发明的电力采集终端的被动对时监测方法流程图。以下表述被动对时方案:As shown in Figure 1, the passive time synchronization monitoring method of the power collection terminal of the present invention is a flow chart. The passive time synchronization scheme is described below:
S101:实时采集运行功率。其中,运行功率指的是电力系统或电力设备在运行过程中实际消耗或输出的功率,通常以瓦特或千瓦为单位,输出时通常会附加时间戳,时间戳是指在记录运行功率数据时附加的时间信息,用于标识数据采集的具体时间点。S101: Real-time collection of operating power. The operating power refers to the power actually consumed or output by the power system or power equipment during operation, usually in watts or kilowatts. A timestamp is usually added when outputting. The timestamp refers to the time information added when recording the operating power data, which is used to identify the specific time point of data collection.
如图3所示,本发明的电力采集终端的对时监测方法中数据预处理结构图,包括,数据清洗、数据平滑和数据过滤。所述数据清洗采用3σ原则对运行功率数据进行检测和去除异常值,所述数据平滑采用指数平滑法减少运行功率数据中的短期波动,所述数据过滤采用高低阈值过滤法对电力采集终端运行功率数据进行过滤。As shown in Figure 3, the data preprocessing structure diagram in the time synchronization monitoring method of the power collection terminal of the present invention includes data cleaning, data smoothing and data filtering. The data cleaning uses the 3σ principle to detect and remove abnormal values from the operating power data, the data smoothing uses the exponential smoothing method to reduce short-term fluctuations in the operating power data, and the data filtering uses the high and low threshold filtering method to filter the operating power data of the power collection terminal.
具体地,在电力采集终端中,通过安装电能质量监测仪实时监测电力设备的运行功率。Specifically, in the power collection terminal, a power quality monitor is installed to monitor the operating power of the power equipment in real time.
S102:预处理运行功率。所述预处理运行功率,包括:数据清洗、数据平滑和数据过滤,所述数据清洗采用3σ原则对运行功率数据进行检测和去除异常值,所述数据平滑采用指数平滑法减少运行功率数据中的短期波动,所述数据过滤采用高低阈值过滤法对电力采集终端运行功率数据进行过滤。S102: Preprocessing the operating power. The preprocessing of the operating power includes: data cleaning, data smoothing and data filtering. The data cleaning uses the 3σ principle to detect and remove abnormal values from the operating power data. The data smoothing uses the exponential smoothing method to reduce short-term fluctuations in the operating power data. The data filtering uses the high and low threshold filtering method to filter the operating power data of the power collection terminal.
上述技术方案通过实时采集和预处理,能够获得更加准确的运行功率数据,及时发现异常情况,提高电力系统的可靠性和安全性。准确的运行功率数据有助于优化电力资源的利用,避免因功率不足或过载导致的电力浪费或设备损坏。附带时间戳的运行功率数据可以用于历史分析和趋势预测,帮助电力系统运营者制定更合理的运行和维护计划,通过及时发现和处理异常情况,可以减少设备故障和停机时间,降低维护和运营成本。The above technical solution can obtain more accurate operating power data through real-time collection and preprocessing, detect abnormal situations in time, and improve the reliability and safety of the power system. Accurate operating power data helps optimize the utilization of power resources and avoid power waste or equipment damage caused by insufficient or overloaded power. The operating power data with timestamps can be used for historical analysis and trend prediction, helping power system operators to formulate more reasonable operation and maintenance plans. By timely detecting and handling abnormal situations, equipment failures and downtime can be reduced, and maintenance and operating costs can be reduced.
S103:响应于距离对时时刻等于时间阈值,基于所述运行功率计算对时裕度。S103: In response to the distance synchronization time being equal to the time threshold, calculating the synchronization margin based on the operating power.
其中,对时时刻指系统上一次进行时间同步操作的时刻。这个时刻是系统通过对时操作,比如与对时服务器同步获得的准确时间点。时间阈值指预先设定的一段时间间隔,用于控制对时操作的频率。当当前时间与上次对时时刻的时间差达到这个时间间隔时,系统会触发对时操作。这个阈值是根据系统的具体需求设定的,以平衡时间同步的精度和系统资源的使用。当前时间没有达到预设的时间间隔,即当前时间与上次对时时刻的时间差未达到时间阈值,那么当前对时周期将不改变。The synchronization moment refers to the moment when the system last performed a time synchronization operation. This moment is the accurate time point obtained by the system through synchronization operations, such as synchronization with a synchronization server. The time threshold refers to a pre-set time interval used to control the frequency of synchronization operations. When the time difference between the current time and the last synchronization moment reaches this time interval, the system will trigger a synchronization operation. This threshold is set according to the specific needs of the system to balance the accuracy of time synchronization and the use of system resources. If the current time does not reach the preset time interval, that is, the time difference between the current time and the last synchronization moment does not reach the time threshold, then the current synchronization cycle will not change.
上述技术方案通过预设时间阈值和实时监测,确保系统在设定的时间间隔内进行对时操作,保持时间同步精度。时间阈值控制和对时操作结合运行功率数据,可以及时发现和处理异常情况,提高系统的可靠性和安全性。通过设置不同的时间阈值和对时裕度阈值,可以灵活调整系统的对时频率和策略,满足不同应用场景的需求。基于所述运行功率计算对时裕度:The above technical solution ensures that the system performs time synchronization operations within the set time interval and maintains time synchronization accuracy through preset time thresholds and real-time monitoring. Time threshold control and time synchronization operations combined with operating power data can timely detect and handle abnormal situations and improve system reliability and security. By setting different time thresholds and time synchronization margin thresholds, the system's time synchronization frequency and strategy can be flexibly adjusted to meet the needs of different application scenarios. Calculate the time synchronization margin based on the operating power:
; ;
式中,表示第个时间段内的对时裕度,表示在第个时间段内第次采集的运行功率,表示在第个时间段内采集到运行功率的最大值,表示时间段的个数;所述时间段的个数,比如,将整个观察时间段分为个子时间段,在每个时间段内,采集运行功率次,标记为,在每个时间段内,确定采集到的运行功率的最大值,标记为。In the formula, Indicates The timing margin within a time period, Indicated in In the time period The operating power collected each time, Indicated in The maximum value of the operating power collected in a time period, Indicates the number of time periods; the number of time periods, for example, the entire observation period is divided into In each time period, the running power is collected. times, marked as , in each time period Within, determine the maximum value of the collected operating power, marked as .
若,设置不对时标志为真;若≤,设置不对时标志为假;其中表示对时裕度阈值。like , the flag is true when the setting is incorrect; if ≤ , set the wrong flag to false; Indicates the timing margin threshold.
响应于距离对时时刻等于时间阈值,响应于接受到对时信号,若不对时标志为假,响应所述对时信号,否则不响应所述对时信号。In response to the distance synchronization moment being equal to the time threshold, in response to receiving a synchronization signal, if the misalignment flag is false, respond to the synchronization signal, otherwise do not respond to the synchronization signal.
其中,对时裕度是衡量系统是否需要进行对时操作的指标。根据采集到的运行功率数据计算得到,用于判断系统的时间同步需求。时间段表示系统运行时被划分的时间片段,每个时间段内计算一个对时裕度。不对时标志是一个逻辑标志,用于指示系统是否需要进行对时操作。当该标志为真时,系统不响应对时信号;当该标志为假时,系统响应对时信号。对时信号是来自对时服务器的同步时间请求信号,指示系统需要进行时间同步。Among them, the timing margin is an indicator to measure whether the system needs to perform timing operations. It is calculated based on the collected operating power data and is used to determine the system's time synchronization requirements. The time period represents the time segment into which the system is divided when it is running, and a timing margin is calculated in each time period. The misalignment flag is a logical flag used to indicate whether the system needs to perform timing operations. When the flag is true, the system does not respond to the timing signal; when the flag is false, the system responds to the timing signal. The timing signal is a synchronization time request signal from the timing server, indicating that the system needs to perform time synchronization.
以上技术方案通过基于运行功率数据计算对时裕度,系统能够在需要的时候精确地进行时间同步。避免了不必要的对时操作,确保系统的时间同步保持在一个精确的水平。动态调整对时操作的频率。通过设置不对时标志,可以避免频繁的对时请求,减少系统资源的浪费。这种方式优化了系统资源的使用,提高了整体系统的效率。通过准确的时间同步和异常检测,减少了设备故障和停机时间,从而降低了维护和运营成本。及时的对时操作和异常处理可以防止因设备故障而导致的昂贵修复费用和生产损失。动态调整对时操作和及时异常处理有助于提高系统的稳定性和连续性,确保电力系统能够稳定运行,满足用户和生产的需求。The above technical solution calculates the timing margin based on the operating power data, so that the system can accurately synchronize time when needed. It avoids unnecessary timing operations and ensures that the system's time synchronization is maintained at an accurate level. Dynamically adjust the frequency of timing operations. By setting the wrong timing flag, frequent timing requests can be avoided and the waste of system resources can be reduced. This method optimizes the use of system resources and improves the efficiency of the overall system. Through accurate time synchronization and anomaly detection, equipment failures and downtime are reduced, thereby reducing maintenance and operating costs. Timely timing operations and exception handling can prevent expensive repair costs and production losses caused by equipment failures. Dynamic adjustment of timing operations and timely exception handling help improve the stability and continuity of the system, ensuring that the power system can operate stably and meet the needs of users and production.
如图2所示,本发明的电力采集终端的主动对时监测方法流程图。以下表述主动对时方案。As shown in Figure 2, the flow chart of the active time synchronization monitoring method of the power collection terminal of the present invention is shown. The active time synchronization scheme is described below.
S201:实时采集运行功率。其中,运行功率指的是电力系统或电力设备在运行过程中实际消耗或输出的功率,通常以瓦特或千瓦为单位,输出时通常会附加时间戳,时间戳是指在记录运行功率数据时附加的时间信息,用于标识数据采集的具体时间点。S201: Real-time collection of operating power. The operating power refers to the power actually consumed or output by the power system or power equipment during operation, usually in watts or kilowatts. A timestamp is usually added when outputting. The timestamp refers to the time information added when recording the operating power data, which is used to identify the specific time point of data collection.
如图3所示,本发明的电力采集终端的对时监测方法中数据预处理结构图,包括,数据清洗、数据平滑和数据过滤。所述数据清洗采用3σ原则对运行功率数据进行检测和去除异常值,所述数据平滑采用指数平滑法减少运行功率数据中的短期波动,所述数据过滤采用高低阈值过滤法对电力采集终端运行功率数据进行过滤。As shown in Figure 3, the data preprocessing structure diagram in the time synchronization monitoring method of the power collection terminal of the present invention includes data cleaning, data smoothing and data filtering. The data cleaning uses the 3σ principle to detect and remove abnormal values from the operating power data, the data smoothing uses the exponential smoothing method to reduce short-term fluctuations in the operating power data, and the data filtering uses the high and low threshold filtering method to filter the operating power data of the power collection terminal.
具体地,在电力采集终端中,通过安装电能质量监测仪实时监测电力设备的运行功率。Specifically, in the power collection terminal, a power quality monitor is installed to monitor the operating power of the power equipment in real time.
S202:预处理运行功率。所述预处理运行功率,包括:数据清洗、数据平滑和数据过滤,所述数据清洗采用3σ原则对运行功率数据进行检测和去除异常值,所述数据平滑采用指数平滑法减少运行功率数据中的短期波动,所述数据过滤采用高低阈值过滤法对电力采集终端运行功率数据进行过滤。S202: Preprocessing the operating power. The preprocessing of the operating power includes: data cleaning, data smoothing and data filtering. The data cleaning uses the 3σ principle to detect and remove abnormal values from the operating power data. The data smoothing uses the exponential smoothing method to reduce short-term fluctuations in the operating power data. The data filtering uses the high and low threshold filtering method to filter the operating power data of the power collection terminal.
上述技术方案通过实时采集和预处理,能够获得更加准确的运行功率数据,及时发现异常情况,提高电力系统的可靠性和安全性。准确的运行功率数据有助于优化电力资源的利用,避免因功率不足或过载导致的电力浪费或设备损坏。附带时间戳的运行功率数据可以用于历史分析和趋势预测,帮助电力系统运营者制定更合理的运行和维护计划,通过及时发现和处理异常情况,可以减少设备故障和停机时间,降低维护和运营成本。The above technical solution can obtain more accurate operating power data through real-time collection and preprocessing, detect abnormal situations in time, and improve the reliability and safety of the power system. Accurate operating power data helps optimize the utilization of power resources and avoid power waste or equipment damage caused by insufficient or overloaded power. The operating power data with timestamps can be used for historical analysis and trend prediction, helping power system operators to formulate more reasonable operation and maintenance plans. By timely detecting and handling abnormal situations, equipment failures and downtime can be reduced, and maintenance and operating costs can be reduced.
S203:基于所述运行功率计算对时裕度:S203: Calculating the timing margin based on the operating power:
; ;
式中,表示第个时间段内的对时裕度,表示在第个时间段内第次采集的运行功率,表示在第个时间段内采集到运行功率的最大值,表示时间段的个数;所述时间段的个数,比如,将整个观察时间段分为个子时间段,在每个时间段内,采集运行功率次,标记为,在每个时间段内,确定采集到的运行功率的最大值,标记为。In the formula, Indicates The timing margin within a time period, Indicated in In the time period The operating power collected each time, Indicated in The maximum value of the operating power collected in a time period, Indicates the number of time periods; the number of time periods, for example, the entire observation period is divided into In each time period, the running power is collected. times, marked as , in each time period Within, determine the maximum value of the collected operating power, marked as .
若<,则向对时服务器发送对时请求;若≥,延时发送;其中表示对时裕度阈值。like < , then send a time synchronization request to the time synchronization server; if ≥ , delayed sending; Indicates the timing margin threshold.
还包括,所述对时请求包括同步请求和时间偏差修正参数两部分,用于电力采集终端根据所述时间偏差参数进行时间修正。同步请求是电力采集终端向对时服务器发送的请求,用于将终端的时钟与服务器的标准时间进行同步。时间偏差修正参数是随同步请求一起发送的参数,包含当前终端时间与标准时间之间的偏差信息,用于精确修正终端的时间。It also includes that the time synchronization request includes two parts: a synchronization request and a time deviation correction parameter, which is used for the power collection terminal to perform time correction according to the time deviation parameter. The synchronization request is a request sent by the power collection terminal to the time synchronization server, which is used to synchronize the terminal clock with the standard time of the server. The time deviation correction parameter is a parameter sent together with the synchronization request, which contains the deviation information between the current terminal time and the standard time, and is used to accurately correct the terminal time.
通过同步请求和时间偏差修正参数的结合,电力采集终端不仅能够与对时服务器同步时间,还能根据时间偏差修正参数进行精确的时间修正。这种双重机制确保了终端时间的高度准确性,减少了时间偏差。Through the combination of synchronization request and time deviation correction parameters, the power collection terminal can not only synchronize time with the time server, but also make accurate time corrections based on the time deviation correction parameters. This dual mechanism ensures the high accuracy of the terminal time and reduces time deviation.
所述延时发送包括:按照当前时间周期计算调整后的时间周期:The delayed sending includes: calculating the adjusted time period according to the current time period:
; ;
其中,表示当前时间周期,表示调整后的时间周期,所述当前时间周期为初始时间周期。in, Indicates the current time period, represents the adjusted time period, and the current time period is the initial time period.
具体地,对时裕度是衡量系统是否需要进行对时操作的指标。根据采集到的运行功率数据计算得到,用于判断系统的时间同步需求。时间段表示系统运行时被划分的时间片段,每个时间段内计算一个对时裕度。对时请求是向对时服务器发送的同步时间请求信号,指示系统需要进行时间同步。Specifically, the timing margin is an indicator to measure whether the system needs to be synchronized. It is calculated based on the collected operating power data and is used to determine the time synchronization requirements of the system. The time period represents the time segment into which the system is divided when it is running, and a timing margin is calculated for each time period. The timing request is a synchronization time request signal sent to the timing server, indicating that the system needs to be synchronized.
以上技术方案通过基于运行功率数据计算对时裕度,系统能够在需要的时候精确地进行时间同步。避免了不必要的对时操作,确保系统的时间同步保持在一个精确的水平。动态调整对时操作的频率。通过设置不对时标志,可以避免频繁的对时请求,减少系统资源的浪费。这种方式优化了系统资源的使用,提高了整体系统的效率。通过准确的时间同步和异常检测,减少了设备故障和停机时间,从而降低了维护和运营成本。及时的对时操作和异常处理可以防止因设备故障而导致的昂贵修复费用和生产损失。动态调整对时操作和及时异常处理有助于提高系统的稳定性和连续性,确保电力系统能够稳定运行,满足用户和生产的需求。The above technical solution calculates the timing margin based on the operating power data, so that the system can accurately synchronize time when needed. It avoids unnecessary timing operations and ensures that the system's time synchronization is maintained at an accurate level. Dynamically adjust the frequency of timing operations. By setting the wrong timing flag, frequent timing requests can be avoided and the waste of system resources can be reduced. This method optimizes the use of system resources and improves the efficiency of the overall system. Through accurate time synchronization and anomaly detection, equipment failures and downtime are reduced, thereby reducing maintenance and operating costs. Timely timing operations and exception handling can prevent expensive repair costs and production losses caused by equipment failures. Dynamic adjustment of timing operations and timely exception handling help improve the stability and continuity of the system, ensuring that the power system can operate stably and meet the needs of users and production.
实现方式如下:设采集电力采集终端运行功率的最大值=1000,对时裕度阈值=1.0,初始时间周期为10,单位为分钟,采集电力采集终端运行功率为=800,=950,=1200,=1000,=1100,单位为瓦,采集次数=5,根据公式计算每次对时裕度。The implementation method is as follows: Assume the maximum value of the operating power of the power collection terminal =1000, timing margin threshold =1.0, the initial time period is 10, the unit is minutes, and the power collection terminal operating power is =800, =950, =1200, =1000, =1100, in watts, number of acquisitions =5, calculate the timing margin each time according to the formula .
计算每次采集电力采集终端运行功率与运行高阈值的比值,=0.8,=0.95,=1.2,=1.0,=1.1,代入公式得:Calculate the ratio of the operating power of the power collection terminal to the operating high threshold each time , =0.8, =0.95, =1.2, =1.0, =1.1, substituting into the formula:
≈1.000175; ≈1.000175;
判断是否需要调整对时周期,根据计算结果,表示需要延时发送。Determine whether the time synchronization period needs to be adjusted based on the calculation results. , indicating that delayed sending is required.
因此,需要延时对时周期,根据公式调整后的时间周期:Therefore, it is necessary to delay the synchronization period, and adjust the time period according to the formula:
=≈15; = ≈15;
以上技术方案通过计算对时裕度,能够精准判断是否需要立即进行时间校准,避免频繁不必要的校准操作,提升了时间校准的准确性。该方法确保了在电力负载接近最大值时进行必要的时间校准,从而提高了系统的整体稳定性,减少了因时间误差导致的系统不稳定风险。通过优化时间校准频率,有效减少了系统资源的浪费,提高了计算和操作的效率。确保在运行功率高负荷情况下的时间数据准确性,增强了数据分析的可靠性和有效性,为电力系统的运营管理提供了坚实的数据支持。The above technical solution can accurately determine whether time calibration is needed immediately by calculating the timing margin, avoiding frequent and unnecessary calibration operations, and improving the accuracy of time calibration. This method ensures that necessary time calibration is performed when the power load is close to the maximum value, thereby improving the overall stability of the system and reducing the risk of system instability caused by time errors. By optimizing the time calibration frequency, the waste of system resources is effectively reduced and the efficiency of calculation and operation is improved. It ensures the accuracy of time data under high operating power load conditions, enhances the reliability and effectiveness of data analysis, and provides solid data support for the operation and management of the power system.
以上技术方案通过动态调整对时请求的发送频率,避免频繁对时操作,减少系统资源的浪费,提高系统整体效率。通过计算对时裕度并判断是否需要延时发送周期,可以避免不必要的对时操作,确保系统资源得到更合理的利用。减少对时操作的频率,同时确保在必要时进行准确的对时操作,提高了系统的稳定性和可靠性。The above technical solution avoids frequent synchronization operations by dynamically adjusting the sending frequency of synchronization requests, reduces the waste of system resources, and improves the overall efficiency of the system. By calculating the synchronization margin and judging whether a delay in the sending cycle is required, unnecessary synchronization operations can be avoided, ensuring that system resources are used more reasonably. Reducing the frequency of synchronization operations while ensuring accurate synchronization operations when necessary improves the stability and reliability of the system.
本发明还提供了一种电力采集终端的对时监测系统,如图4所示,本发明的电力采集终端的对时监测系统流程图,所述电力采集终端的对时监测系统包括处理器和存储器,所述存储器存储有计算机程序指令,当所述计算机程序指令被所述处理器执行时实现上述的一种电力采集终端的主动对时监测方法或一种电力采集终端的被动对时监测方法。所述电力采集终端的对时监测系统还包括通信接口等本领域技术人员熟知的其他组件,其设置和功能为本领域中已知,因此在此不再赘述。The present invention also provides a time synchronization monitoring system for a power collection terminal, as shown in FIG4, a flow chart of the time synchronization monitoring system for a power collection terminal of the present invention, wherein the time synchronization monitoring system for the power collection terminal includes a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned active time synchronization monitoring method for a power collection terminal or a passive time synchronization monitoring method for a power collection terminal is implemented. The time synchronization monitoring system for the power collection terminal also includes other components well known to those skilled in the art, such as a communication interface, and its settings and functions are known in the art, so they will not be repeated here.
在本发明中,前述的存储器可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,计算机可读存储介质可以是任何适当的磁存储介质或者磁光存储介质,比如,阻变式存储器RRAM(Resistive RandomAccess Memory)、动态随机存取存储器DRAM(Dynamic Random Access Memory)、静态随机存取存储器SRAM(Static Random-Access Memory)、增强动态随机存取存储器EDRAM(Enhanced Dynamic Random Access Memory)、高带宽内存HBM(High-Bandwidth Memory)、混合存储立方HMC(Hybrid Memory Cube)等等,或者可以用于存储所需信息并且可以由应用程序、模块或两者访问的任何其他介质。任何这样的计算机存储介质可以是设备的一部分或可访问或可连接到设备。本发明描述的任何应用或模块可以使用可以由这样的计算机可读介质存储或以其他方式保持的计算机可读/可执行指令来实现。In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable/executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
在本说明书的描述中,“多个”、“若干个”的含义是至少两个,例如两个,三个或更多个等,除非另有明确具体的限定。In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
虽然本说明书已经示出和描述了本发明的多个实施例,但对于本领域技术人员显而易见的是,这样的实施例只是以示例的方式提供的。本领域技术人员会在不偏离本发明思想和精神的情况下想到许多更改、改变和替代的方式。应当理解的是在实践本发明的过程中,可以采用对本文所描述的本发明实施例的各种替代方案。Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411096286.8A CN118611817B (en) | 2024-08-12 | 2024-08-12 | A time synchronization monitoring method and system for power collection terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411096286.8A CN118611817B (en) | 2024-08-12 | 2024-08-12 | A time synchronization monitoring method and system for power collection terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118611817A CN118611817A (en) | 2024-09-06 |
| CN118611817B true CN118611817B (en) | 2024-10-18 |
Family
ID=92550361
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411096286.8A Active CN118611817B (en) | 2024-08-12 | 2024-08-12 | A time synchronization monitoring method and system for power collection terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118611817B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105914798A (en) * | 2016-04-08 | 2016-08-31 | 李仕乙 | Wind power field reactive power optimization operation control method based on whole network same time section |
| CN106254022A (en) * | 2016-07-28 | 2016-12-21 | 国网内蒙古东部电力有限公司 | Time supervision based on clock synchronization apparatus and time delay query software system platform |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20070008015A (en) * | 2005-07-12 | 2007-01-17 | (주)지에스텔레텍 | Timing Synchronization Method in Time Division Multiplexing Wireless Repeater |
| US8131401B2 (en) * | 2006-07-19 | 2012-03-06 | Power Analytics Corporation | Real-time stability indexing for intelligent energy monitoring and management of electrical power network system |
| KR101058998B1 (en) * | 2009-05-21 | 2011-08-23 | 엘에스산전 주식회사 | Visual Synchronization Apparatus and Method for Electronic Relay |
| CN109034521B (en) * | 2018-06-07 | 2021-11-16 | 国电南瑞科技股份有限公司 | Intelligent operation and maintenance architecture design method of power grid dispatching control system |
| CN112003668B (en) * | 2020-08-28 | 2023-04-14 | 石家庄科林电气股份有限公司 | Real-time dynamic tracking time synchronization method |
| CN117833464A (en) * | 2023-12-25 | 2024-04-05 | 国网辽宁省电力有限公司营销服务中心 | A method for safely monitoring the online operation status of an electricity consumption information collection terminal |
-
2024
- 2024-08-12 CN CN202411096286.8A patent/CN118611817B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105914798A (en) * | 2016-04-08 | 2016-08-31 | 李仕乙 | Wind power field reactive power optimization operation control method based on whole network same time section |
| CN106254022A (en) * | 2016-07-28 | 2016-12-21 | 国网内蒙古东部电力有限公司 | Time supervision based on clock synchronization apparatus and time delay query software system platform |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118611817A (en) | 2024-09-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110472871B (en) | An investigation method for the abnormal cause of management line loss | |
| CN118520235A (en) | Power grid data visualization method and system based on big data processing | |
| CN115766398B (en) | Edge computing-based power information collection and fault analysis system for Taiwan area | |
| CN116611608A (en) | Optimal configuration method and system based on power distribution network | |
| CN118759847A (en) | A self-adaptive collection method and system for Internet of Things data | |
| CN118801547A (en) | A control method based on multi-power supply satellite terminal | |
| CN118611817B (en) | A time synchronization monitoring method and system for power collection terminal | |
| CN117277375B (en) | Energy distribution method and device for combined energy storage system and electronic equipment | |
| US10965403B2 (en) | Gap data collection for low energy devices | |
| CN111521966B (en) | Method and device for monitoring time out-of-tolerance of district electric meter, monitoring terminal and storage medium | |
| CN116739202B (en) | Power routing method, system, equipment and storage medium | |
| CN117495185A (en) | Distribution network engineering data processing system | |
| CN104158489A (en) | Photovoltaic power station monitoring method and power station monitoring system | |
| CN115225244B (en) | Clock time setting method and device for low-voltage meter reading, main equipment and medium | |
| CN118659963B (en) | A method for automatic switching of power-off communication and production scheduling management for heat exchange station | |
| CN114928174B (en) | Photovoltaic power station comprehensive monitoring method and system based on intelligent internet of things | |
| CN118860668A (en) | A smart meter data processing method and system based on regional management | |
| CN116204378A (en) | Memory monitoring method and system | |
| EP3966907B1 (en) | Apparatus and method for dynamic forecasting, aggregation, and validation | |
| CN116756506A (en) | Regional cable network carbon emission detection method, system, device and storage medium | |
| CN114089260A (en) | Electric quantity measurement correction method and device and micro-grid system | |
| CN118695135B (en) | Control method and system of intelligent ammeter interface | |
| CN114629581A (en) | Automatic timing method based on intelligent terminal data communication | |
| US20190207652A1 (en) | System and Method for Determining Power Status in a Metering Network | |
| CN119110470B (en) | Calculation method and device for street lamp lighting rate |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |