CN114089020B - High-resolution remote signaling acquisition device and method based on double MCUs - Google Patents

High-resolution remote signaling acquisition device and method based on double MCUs Download PDF

Info

Publication number
CN114089020B
CN114089020B CN202111324426.9A CN202111324426A CN114089020B CN 114089020 B CN114089020 B CN 114089020B CN 202111324426 A CN202111324426 A CN 202111324426A CN 114089020 B CN114089020 B CN 114089020B
Authority
CN
China
Prior art keywords
remote signaling
mcu
sampling
pulse
synchronous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111324426.9A
Other languages
Chinese (zh)
Other versions
CN114089020A (en
Inventor
许云龙
王源涛
胡晨
马伟
陈海燕
倪传坤
冯广杰
赵呈轩
原琳
赵彪
孔晓民
游建军
李留生
苏亚昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Xuji Group Co Ltd
State Grid Zhejiang Electric Power Co Ltd
Hangzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Xuji Group Co Ltd
State Grid Zhejiang Electric Power Co Ltd
Hangzhou Power Supply Co of State Grid Zhejiang Electric Power 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 State Grid Corp of China SGCC, Xuji Group Co Ltd, State Grid Zhejiang Electric Power Co Ltd, Hangzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202111324426.9A priority Critical patent/CN114089020B/en
Publication of CN114089020A publication Critical patent/CN114089020A/en
Application granted granted Critical
Publication of CN114089020B publication Critical patent/CN114089020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques

Abstract

The remote signaling acquisition device comprises a first MCU and a second MCU, wherein the two MCUs respectively comprise a remote signaling acquisition module and an AD sampling module, the remote signaling acquisition module and the AD sampling module multiplex interrupt functions, and the remote signaling acquisition method comprises the following steps: the two MCUs respectively receive the second pulse; the first MCU sets the remote signaling sampling synchronous moment as a second pulse rising edge, and uniformly samples according to a sampling period Ts; the second MCU sets the remote signaling sampling synchronous moment as one half sampling period of the second pulse rising edge delay, and uniformly samples according to the sampling period Ts. Through the cross parallel sampling of the double MCUs, the remote signaling sampling resolution is greatly improved.

Description

High-resolution remote signaling acquisition device and method based on double MCUs
Technical Field
The invention relates to the field of power system measurement and control, in particular to a high-resolution remote signaling acquisition device and method based on double MCUs.
Background
The remote signaling is one of the basic measurement and control functions of the protection measurement and control device. After an accident occurs in the power system, an operator can know the state change conditions of the switch and the relay protection in time from remote signaling. The remote signaling resolution is an important assessment index of the protection and measurement and control device, and is used for quantifying the capability of the protection and measurement and control device to accurately distinguish the sequentially-occurring events, and in the industry, the lead index of the remote signaling resolution is required to be 1ms. In order to meet the index requirement, the remote signaling sampling period of the protection measurement and control device needs to be less than or equal to 500 mu s.
At present, a common protection measurement and control device is developed based on an MCU chip, but because of the performance of an MCU chip kernel and the limitation of interrupt resources, the MCU chip can not provide independent AD sampling and remote signaling sampling interrupt. The protection measurement and control device adopts 24 or 32-point sampling, and the remote signaling sampling period is more than 500 mu s, so that the index requirement of the remote signaling resolution of 1ms cannot be met.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a dual-MCU-based high-resolution remote signaling acquisition device and a dual-MCU-based high-resolution remote signaling acquisition method, which solve the technical problem that the existing MCU chip-based protection measurement and control device cannot meet the requirements of remote signaling resolution indexes.
In one aspect, an embodiment of the present invention provides a remote signaling collection method of a high resolution remote signaling collection device based on a dual MCU, where the remote signaling collection device includes a first MCU and a second MCU, the first MCU and the second MCU include a remote signaling collection module and an AD sampling module, and the remote signaling collection module and the AD sampling module multiplex an interrupt function, and the remote signaling collection method includes the steps of:
(1) The first MCU and the second MCU respectively receive second pulses;
(2) The first MCU sets a second pulse rising edge as a remote signaling sampling synchronous moment, and uniformly samples according to a sampling period Ts;
(3) The second MCU sets the second pulse rising edge time delay half sampling period Ts as remote signaling sampling synchronous time, and uniformly samples according to the sampling period Ts.
Further, the step (1) further includes: receiving a second pulse serving as a working clock, and outputting a pulse synchronous signal according to the second pulse; the second pulse rising edge is a pulse synchronous signal rising edge output according to the second pulse.
Further, the step (1) further includes: a preset register array is arranged for storing crystal oscillator count differences of N consecutive pulses per second.
Further, the step (1) further includes:
judging whether the device is in a synchronous state of normally receiving the working clock or in a desynchronizing state of losing the working clock, outputting a pulse synchronous signal according to the data period of the preset register array when the device is in the desynchronizing state, and converting from the desynchronizing state to the synchronous state;
in the process of converting from the out-of-step state to the synchronous state, when M effective second pulses are continuously received, wherein M is less than N, and when the effective second pulses are not received, the device does not update the data of the preset register array, and still outputs pulse synchronous signals according to the data period of the preset register array; after M effective second pulses are continuously received, wherein M is larger than or equal to N, the device enters a synchronous state, pulse synchronous signals are output to the device according to the received working clock second pulses, and meanwhile data of a preset register array are updated from 1 to N periods.
Further, the step (1) further includes: continuously correcting the remote signaling sampling interruption interval or continuously correcting the pulse synchronous signal to synchronize the pulse synchronous signal with the remote signaling sampling interruption.
Further, the step (1) further includes: when the device receives the effective time synchronization pulse synchronous signal, judging the time deviation between the current received pulse synchronous signal and the nearest sampling break point, and when the deviation is smaller than or equal to an error range, jumping the remote signaling sampling break along with the pulse synchronous signal; when the deviation is larger than the error range, the continuous K sampling interruption or pulse synchronous signals are corrected.
Further, the correcting the continuous K sampling interrupts specifically includes the steps of: when the pulse synchronous signal advances the nearest remote signaling sampling break point delta t, reducing delta t/K time to be output in advance by continuously sampling break intervals, and synchronizing the sampling break and the pulse synchronous signal after K sampling break; when the pulse synchronous signal lags behind the nearest remote signaling sampling break point delta t, delta t/K time delay output is added to the continuous K sampling break intervals, and after K sampling breaks, the sampling breaks and the pulse synchronous signal are synchronized.
Further, the correcting the continuous K pulse synchronous signals specifically includes the steps of: when the pulse synchronizing signal advances the nearest remote signaling sampling break point delta t, increasing delta t/K time delay output to the continuous K pulse synchronizing signals, and synchronizing the sampling break and the pulse synchronizing signal after the K pulse synchronizing signals; when the pulse synchronizing signal lags behind the nearest remote signaling sampling break point delta t, delta t/K time is reduced for continuous K pulse synchronizing signals to be output in advance, and after the K pulse synchronizing signals pass, sampling break and the pulse synchronizing signals are synchronized.
Further, the method also comprises the step (4):
the first MCU receives remote signaling position change information and remote signaling position change time marks of the second MCU;
the first MCU compares the remote signaling deflection information provided by the first MCU and the second MCU with a remote signaling deflection time mark, and determines a remote signaling deflection time mark of the device;
and the first MCU transmits the remote signaling position change information and the remote signaling position change time scale of the device to the master station.
Further, in the step (4), the first MCU compares the remote signaling displacement information provided by the first MCU and the second MCU with a remote signaling displacement time scale, and the determining device specifically includes the steps of:
the first MCU detects that a certain path of remote signaling is shifted, a remote signaling jitter elimination processing logic is started, after the shift validity is confirmed through the remote signaling jitter elimination time, the remote signaling shift time stored by the first MCU is recorded as a remote signaling shift time mark;
checking a sampling sequence number corresponding to the remote signaling deflection information provided by the second MCU, and when the sampling sequence number of the second MCU is smaller than the sampling sequence number corresponding to the remote signaling deflection time scale of the first MCU, correcting the remote signaling deflection time scale of the first MCU forward by Ts/2 to be used as a device remote signaling deflection time scale; when the sampling sequence number of the second MCU is more than or equal to the sampling sequence number corresponding to the remote signaling displacement time mark of the first MCU, the remote signaling displacement time mark of the first MCU is not corrected, and the remote signaling displacement time mark of the first MCU is used as a device remote signaling displacement time mark.
On the other hand, the embodiment of the invention provides a high-resolution remote signaling acquisition device based on double MCUs, which comprises a first MCU and a second MCU, wherein the first MCU and the second MCU respectively comprise a remote signaling acquisition module and an AD sampling module, the remote signaling acquisition module and the AD sampling module multiplex interrupt functions, and the first MCU and the second MCU respectively receive second pulses; the remote signaling sampling synchronous moment of the first MCU is a pulse per second rising edge, and the sampling is uniformly carried out according to a sampling period Ts; the remote signaling sampling synchronous time of the second MCU is one half sampling period Ts of the second pulse rising edge delay, and the sampling is uniformly performed according to the sampling period Ts.
Further, the first MCU and the second MCU respectively comprise a clock synchronization module, the clock synchronization module receives a second pulse serving as a working clock, the clock synchronization module is used for outputting a pulse synchronization signal according to the second pulse, and the second pulse rising edge is a pulse synchronization signal rising edge outputted according to the second pulse.
Further, the clock synchronization module comprises a preset register array for storing crystal oscillator count difference values of N continuous second pulses.
Further, the clock synchronization module judges whether the device is in a synchronous state of normally receiving the working clock or in a desynchronizing state of losing the working clock, and when the device is judged to be in the desynchronizing state, the clock synchronization module outputs a pulse synchronization signal according to the data period of the preset register array and converts the desynchronizing state into the synchronous state; in the process of converting the out-of-step state into the synchronous state, when M effective second pulses are continuously received, wherein M is less than N, and when the effective second pulses are not received, the clock synchronization module does not update the data of the preset register array, and still outputs pulse synchronization signals according to the data period of the preset register array; after M effective second pulses are continuously received, wherein M is larger than or equal to N, the device enters a synchronous state, the clock synchronization module outputs pulse synchronization signals to the device according to the received working clock second pulses, and meanwhile, the data of the preset register array are updated from 1 to N periods.
Further, the first MCU and the second MCU respectively comprise an adaptive synchronization correction module, which is used for continuously correcting the remote signaling sampling interruption interval or continuously correcting the pulse synchronization signal so as to synchronize the pulse synchronization signal with the remote signaling sampling interruption.
Further, the self-adaptive synchronization correction module is used for judging the time deviation between the current received pulse synchronous signal and the nearest sampling break point when the device receives the effective time synchronization pulse synchronous signal, and when the deviation is smaller than or equal to the error range, the remote signaling sampling break follows the pulse synchronous signal to jump; when the deviation is larger than the error range, the continuous K sampling interruption or pulse synchronous signals are corrected.
Further, the adaptive synchronization correction module corrects the continuous K sampling interrupts specifically including: when the pulse synchronous signal advances the nearest remote signaling sampling break point delta t, the self-adaptive synchronous correction module reduces delta t/K time to be output in advance by reducing continuous K sampling break intervals, and after K sampling break points, the sampling break points are synchronous with the pulse synchronous signal; when the pulse synchronous signal lags behind the nearest remote signaling sampling interruption point delta t, the self-adaptive synchronous correction module increases delta t/K time delay output for continuous K sampling interruption intervals, and after K sampling interruption, the sampling interruption and the pulse synchronous signal are synchronous.
Further, the adaptive synchronization correction module corrects the continuous K pulse synchronization signals smaller than the error range specifically including: when the pulse synchronous signal advances the nearest remote signaling sampling break point delta t, the self-adaptive synchronous correction module increases delta t/K time delay output to the continuous K pulse synchronous signals, and after the K pulse synchronous signals pass, the sampling break and the pulse synchronous signals are synchronized; when the pulse synchronizing signal lags behind the nearest remote signaling sampling break point delta t, the self-adaptive synchronizing correction module reduces delta t/K time for continuous K pulse synchronizing signals to be output in advance, and after the K pulse synchronizing signals pass, the sampling break and the pulse synchronizing signals are synchronized.
Further, the first MCU receives remote signaling displacement information and remote signaling displacement time marks of the second MCU; the first MCU compares the remote signaling deflection information provided by the first MCU and the second MCU with a remote signaling deflection time mark, and determines a remote signaling deflection time mark of the device; and the first MCU transmits the remote signaling position change information and the remote signaling position change time scale of the device to the master station.
Further, the first MCU is used for starting a remote signaling jitter elimination processing logic when detecting that a certain path of remote signaling is shifted, and recording the remote signaling shift time stored by the first MCU as a remote signaling shift time mark after confirming the shift validity through the remote signaling jitter elimination time; the remote signaling shift time mark correction device is further used for checking a sampling sequence number corresponding to the path of remote signaling shift information provided by the second MCU, and when the sampling sequence number of the second MCU is smaller than the sampling sequence number corresponding to the remote signaling shift time mark of the first MCU, correcting the remote signaling shift time mark of the first MCU forward by Ts/2 to be used as a device remote signaling shift time mark; when the sampling sequence number of the second MCU is more than or equal to the sampling sequence number corresponding to the remote signaling displacement time mark of the first MCU, the remote signaling displacement time mark of the first MCU is not corrected, and the remote signaling displacement time mark of the first MCU is used as a device remote signaling displacement time mark.
The technical scheme of the invention has the following beneficial technical effects:
according to the invention, through double MCU cross parallel sampling, the remote signaling sampling resolution is greatly improved, and when the sampling point number of the device is more than or equal to 20 points, the remote signaling resolution can be ensured to meet the 1ms index requirement; through the arrangement of the clock synchronization module, the device is ensured to receive the external clock (abbreviated as synchronization) and lose the discrimination of the external clock signal (abbreviated as out-of-step), and the device is ensured to continuously output pulse synchronization signals to the protection MCU and the starting MCU no matter under the synchronous or out-of-step working condition, the pulse synchronization signals do not depend on an external clock source, and the uniformity of the pulse synchronization signals received by the double MCUs is ensured; through the arrangement of the self-adaptive synchronous correction module, the high-precision sampling resolution is ensured by dynamically and continuously adjusting the sampling interruption interval or the pulse synchronous signal in the process from step out to synchronous of the device; and the accuracy of the recorded remote signaling deflection time is ensured through remote signaling deflection time scale correction in the remote signaling identification process.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of a dual MCU-based high-resolution remote signaling acquisition device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of remote signaling sampling timing control of a remote signaling acquisition device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a sampling interrupt adaptive correction method according to an embodiment of the present invention;
fig. 4 is a flowchart of remote signaling identification provided in an embodiment of the present invention.
Detailed Description
The objects, technical solutions and advantages of the present invention will become more apparent by the following detailed description of the present invention with reference to the accompanying drawings. It should be understood that the description is only illustrative and is not intended to limit the scope of the invention. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the present invention.
The embodiment of the invention provides a protection measurement and control system, which comprises the following components: high-resolution remote signaling acquisition device based on double MCU.
Referring to fig. 1, a dual MCU-based high resolution telemetry acquisition device includes a protection MCU and a start MCU, both MCUs communicate through dual SPI.
And the voltage sensor and the current sensor in the protection measurement and control system respectively sample the acquired voltage and current signals through a low-pass filter by the protection MCU and an AD sampling interface for starting the MCU.
The remote signaling signal of the remote signaling acquisition device is simultaneously connected into the protection MCU and the starting MCU, the protection MCU and the starting MCU are respectively provided with the remote signaling acquisition module, remote signaling sampling and identification are independently completed, the remote signaling sampling and AD sampling multiplexing interrupt function is realized, and the sampling period of the remote signaling sampling is the same as the AD sampling period and is the sampling period Ts.
The remote signaling deflection information and the time mark are transmitted to the protection MCU in a time-stamp package mode by the starting MCU, the protection MCU remote signaling acquisition module compares the remote signaling deflection information and the time mark provided by the protection MCU and the starting MCU, the time mark before the guiding is taken as the remote signaling deflection time mark, and the protection MCU transmits the remote signaling deflection information and the time mark as a remote signaling deflection message to a monitoring system of the master station through a serial port or an Ethernet.
The external time synchronization or clock chip or high-precision crystal oscillator generates a second pulse PPS signal, and the protection MCU receives the second pulse PPS signal through the GPIO ports of the protection MCU and the starting MCU, and the protection MCU synchronously protects remote signaling sampling of the protection MCU and the starting MCU according to the second pulse PPS. The remote signaling sampling time sequence control of the remote signaling acquisition device is shown in fig. 2.
The MCU remote signaling sampling synchronous moment is protected to be a second pulse rising edge, and the sampling is uniformly carried out according to a sampling period Ts; the remote signaling sampling synchronous moment of the MCU is started to be one half sampling period of the second pulse rising edge time delay, namely the time delay is TS/2 sampling, sampling is uniformly carried out according to the sampling period Ts, sampling is carried out on the second pulse rising edge by protecting the MCU, sampling is carried out on the time delay TS/2 of each second pulse rising edge by starting the MCU, the remote signaling sampling device carries out remote signaling sampling once every TS/2, and the sampling frequency is doubled. According to the invention, through double MCU cross parallel sampling, the remote signaling sampling resolution is greatly improved, and when the sampling point number of the device is more than or equal to 20 points, the remote signaling resolution can be ensured to meet the 1ms requirement.
During remote signaling sampling, a phenomenon that an external time synchronization or a second pulse PPS signal (abbreviated as out-of-step) generated by a clock chip or a high-precision crystal oscillator is lost is common, and the accuracy of the remote signaling sampling resolution is greatly affected. In order to solve the problem, the invention sets a clock synchronization module in the remote signaling acquisition device. The clock synchronization module receives the second pulse PPS as the working clock and is used for storing the crystal oscillator count difference value of continuous N second pulses by presetting a register array. Wherein a high precision crystal is preferably used as the operating clock for the device clock synchronization module. The clock synchronization module judges whether the device is in a synchronous state of normally receiving the working clock or in a desynchronizing state of losing the working clock, and when the device is in the desynchronizing state, the clock synchronization module outputs a pulse synchronization signal according to the data period of the preset register array and converts the desynchronizing state into the synchronous state. In the conversion process from out-of-step to synchronous time keeping, when M (M < N) effective pulses are continuously received and effective second pulses are not received, the device does not update preset register data and still outputs pulse synchronous signals according to the data period of the preset register array; after M (M is larger than or equal to N) effective second pulses are continuously received, the device enters a time keeping state, pulse synchronous signals are output to the MCU according to the second pulses of the receiving clock, and meanwhile, the preset register array data are updated from 1 to N periods. Through the setting of the clock synchronization module, the device is ensured to continuously output pulse synchronization signals to the protection MCU and the starting MCU no matter under the synchronous or out-of-step working condition, the synchronization signals do not depend on an external clock source, and the uniformity of the pulse synchronization signals received by the double MCUs is ensured.
In the conversion process from the out-of-step state to the synchronous state, the problem that sampling accuracy is affected by sampling interruption interval jump caused by time difference between the receiving second pulse and the remote signaling sampling interruption is brought. In order to prevent the problem, the invention also sets a self-adaptive synchronous correction module in the remote signaling acquisition device, which is used for continuously correcting the remote signaling sampling interruption interval or continuously correcting the pulse synchronous signal so as to synchronize the pulse synchronous signal with the remote signaling sampling interruption. Taking the continuous correction of the remote signaling sampling interruption interval as an example for explanation, the adaptive correction process of the sampling interruption in the present invention is shown in fig. 3. When the remote signaling acquisition device receives the effective time synchronization pulse synchronous signal PPS, judging the time deviation between the current received pulse synchronous signal and the nearest sampling break point, and when the difference is smaller than the error range, directly following the pulse synchronous signal to jump by remote signaling sampling break; when the deviation is larger than the required error range, the sampling interruption is adjusted through K continuous sampling interruption less than the error range, namely when the pulse synchronous signal advances to the nearest remote signaling sampling interruption point delta t, the self-adaptive synchronous correction module synchronizes the sampling interruption interval with the latest second pulse synchronous signal after K sampling interruption by a method of reducing delta t/K (delta t/K is smaller than the sampling interruption required error range) time output for K continuous sampling interruption intervals; on the contrary, when the pulse synchronous signal lags close to the sampling interruption delta t, the self-adaptive synchronous correction module increases (delta t/K) delay output for K continuous sampling interruption intervals and synchronizes with the latest second pulse synchronous signal after K sampling points. The correction method of the self-adaptive synchronous correction module can ensure that the sampling interruption can follow the clock source as soon as possible in the process of losing step to synchronizing, ensure the validity of remote signaling acquisition interruption interval data, and avoid the situation that the remote signaling acquisition module generates remote signaling deflection due to time jump so as to cause inaccurate remote signaling resolution.
And the protection MCU and the starting MCU independently complete remote signaling sampling according to the remote signaling sampling synchronization scheme, and record the remote signaling displacement moment when the remote signaling displacement is detected. And starting the MCU to detect the remote signaling deflection and transmitting the remote signaling deflection information containing the sampling sequence number to the protection MCU.
The flow of remote signaling identification in the invention is shown in fig. 4, and the protection MCU remote signaling acquisition module mainly protects MCU remote signaling sampling data for remote signaling identification. When detecting that a certain path of remote signaling is shifted, the protection MCU starts a remote signaling anti-shake processing logic, and after confirming the shift effectiveness through the remote signaling anti-shake time, the remote signaling shift time stored by the protection MCU is recorded and used as a remote signaling shift time mark. Checking a sampling sequence number corresponding to the remote signaling deflection information of the path provided by the starting MCU, and if the sampling sequence number is smaller than the sampling sequence number corresponding to the remote signaling deflection of the protection MCU, correcting the TS/2 forward by using the remote signaling deflection time scale as the remote signaling deflection of the device; if the sampling sequence number is more than or equal to the sampling sequence number corresponding to the remote signaling deflection of the protection MCU, the remote signaling deflection time scale is not corrected, the protection MCU is taken as the device remote signaling deflection time scale, and then the remote signaling deflection information and the device remote signaling deflection time scale are taken as the remote signaling deflection message to be sent to the master station.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explanation of the principles of the present invention and are in no way limiting of the invention. Accordingly, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present invention should be included in the scope of the present invention. Furthermore, the appended claims are intended to cover all such changes and modifications that fall within the scope and boundary of the appended claims, or equivalents of such scope and boundary.

Claims (12)

1. The remote signaling acquisition method of the high-resolution remote signaling acquisition device based on the double MCUs comprises a first MCU and a second MCU, wherein the first MCU and the second MCU respectively comprise a remote signaling acquisition module and an AD sampling module, and the remote signaling acquisition module and the AD sampling module multiplex interrupt functions.
(1) The first MCU and the second MCU respectively receive second pulses;
(2) The first MCU sets a second pulse rising edge as a remote signaling sampling synchronous moment, and uniformly samples according to a sampling period Ts;
(3) The second MCU sets a half sampling period Ts of the rising edge delay of the second pulse as a remote signaling sampling synchronous moment, and uniformly samples according to the sampling period Ts;
the step (1) further comprises: continuously correcting the remote signaling sampling interruption interval or continuously correcting the pulse synchronous signal to synchronize the pulse synchronous signal with the remote signaling sampling interruption;
the step (1) further comprises: when the device receives the effective time synchronization pulse synchronous signal, judging the time deviation between the current received pulse synchronous signal and the nearest sampling break point, and when the deviation is smaller than or equal to an error range, jumping the remote signaling sampling break along with the pulse synchronous signal; when the deviation is larger than the error range, correcting the continuous K sampling interruption or pulse synchronous signals;
the correcting the continuous K sampling interrupts specifically comprises the following steps: when the pulse synchronous signal advances the nearest remote signaling sampling break point delta t, reducing delta t/K time to be output in advance by continuously sampling break intervals, and synchronizing the sampling break and the pulse synchronous signal after K sampling break; when the pulse synchronous signal lags behind the nearest remote signaling sampling break point delta t, delta t/K time delay output is added to the continuous K sampling break intervals, and after K sampling breaks, the sampling break and the pulse synchronous signal are synchronized;
the correction of the continuous K pulse synchronous signals specifically comprises the following steps: when the pulse synchronizing signal advances the nearest remote signaling sampling break point delta t, increasing delta t/K time delay output to the continuous K pulse synchronizing signals, and synchronizing the sampling break and the pulse synchronizing signal after the K pulse synchronizing signals; when the pulse synchronizing signal lags behind the nearest remote signaling sampling break point delta t, delta t/K time is reduced for continuous K pulse synchronizing signals to be output in advance, and after the K pulse synchronizing signals pass, sampling break and the pulse synchronizing signals are synchronized.
2. The remote signaling collection method of the dual MCU-based high resolution remote signaling collection device of claim 1, wherein the step (1) further comprises: receiving a second pulse serving as a working clock, and outputting a pulse synchronous signal according to the second pulse; the second pulse rising edge is a pulse synchronous signal rising edge output according to the second pulse.
3. The remote signaling collection method of the dual MCU-based high resolution remote signaling collection device of claim 2, wherein the step (1) further comprises: a preset register array is arranged for storing crystal oscillator count differences of N consecutive pulses per second.
4. The remote signaling collection method of the dual MCU-based high resolution remote signaling collection device of claim 3, wherein the step (1) further comprises:
judging whether the device is in a synchronous state of normally receiving the working clock or in a desynchronizing state of losing the working clock, outputting a pulse synchronous signal according to the data period of the preset register array when the device is in the desynchronizing state, and converting from the desynchronizing state to the synchronous state;
in the process of converting from the out-of-step state to the synchronous state, when M effective second pulses are continuously received, wherein M is less than N, and when the effective second pulses are not received, the device does not update the data of the preset register array, and still outputs pulse synchronous signals according to the data period of the preset register array; after M effective second pulses are continuously received, wherein M is larger than or equal to N, the device enters a synchronous state, pulse synchronous signals are output to the device according to the received working clock second pulses, and meanwhile data of a preset register array are updated from 1 to N periods.
5. A method for remote signaling acquisition of a dual MCU-based high resolution remote signaling acquisition device according to any one of claims 1-4, further comprising the step (4):
the first MCU receives remote signaling position change information and remote signaling position change time marks of the second MCU;
the first MCU compares the remote signaling deflection information provided by the first MCU and the second MCU with a remote signaling deflection time mark, and determines a remote signaling deflection time mark of the device;
and the first MCU transmits the remote signaling position change information and the remote signaling position change time scale of the device to the master station.
6. The remote signaling acquisition method of the high-resolution remote signaling acquisition device based on the double MCUs according to claim 5, wherein in the step (4), the first MCU compares the remote signaling deflection information provided by the first MCU and the second MCU with the remote signaling deflection time scale, and the step of determining the remote signaling deflection time scale of the device specifically comprises the following steps:
the first MCU detects that a certain path of remote signaling is shifted, a remote signaling jitter elimination processing logic is started, after the shift validity is confirmed through the remote signaling jitter elimination time, the remote signaling shift time stored by the first MCU is recorded as a remote signaling shift time mark;
checking a sampling sequence number corresponding to the remote signaling deflection information provided by the second MCU, and when the sampling sequence number of the second MCU is smaller than the sampling sequence number corresponding to the remote signaling deflection time scale of the first MCU, correcting the remote signaling deflection time scale of the first MCU forward by Ts/2 to be used as a device remote signaling deflection time scale; when the sampling sequence number of the second MCU is more than or equal to the sampling sequence number corresponding to the remote signaling displacement time mark of the first MCU, the remote signaling displacement time mark of the first MCU is not corrected, and the remote signaling displacement time mark of the first MCU is used as a device remote signaling displacement time mark.
7. The high-resolution remote signaling acquisition device based on the double MCUs comprises a first MCU and a second MCU, wherein the first MCU and the second MCU respectively comprise a remote signaling acquisition module and an AD sampling module, the remote signaling acquisition module and the AD sampling module multiplex an interrupt function, and the first MCU and the second MCU respectively receive second pulses; the remote signaling sampling synchronization method is characterized in that the remote signaling sampling synchronization time of the first MCU is a pulse per second rising edge, and the sampling is uniformly performed according to a sampling period Ts; the remote signaling sampling synchronous time of the second MCU is one half sampling period Ts of the rising edge delay of the second pulse, and the second MCU is uniformly sampled according to the sampling period Ts;
the first MCU and the second MCU respectively comprise a self-adaptive synchronous correction module which is used for continuously correcting the remote signaling sampling interruption interval or continuously correcting the pulse synchronous signal so as to synchronize the pulse synchronous signal with the remote signaling sampling interruption;
the self-adaptive synchronous correction module is used for judging the time deviation between the current received pulse synchronous signal and the nearest sampling break point when the device receives the effective time synchronization pulse synchronous signal, and carrying out jump by remote signaling sampling break following the pulse synchronous signal when the deviation is smaller than or equal to an error range; when the deviation is larger than the error range, correcting the continuous K sampling interruption or pulse synchronous signals;
the self-adaptive synchronous correction module corrects the continuous K sampling interrupts specifically comprises: when the pulse synchronous signal advances the nearest remote signaling sampling break point delta t, the self-adaptive synchronous correction module reduces delta t/K time to be output in advance by reducing continuous K sampling break intervals, and after K sampling break points, the sampling break points are synchronous with the pulse synchronous signal; when the pulse synchronous signal lags behind the nearest remote signaling sampling interruption point delta t, the self-adaptive synchronous correction module increases delta t/K time delay output for continuous K sampling interruption intervals, and after K sampling interruption, the sampling interruption and the pulse synchronous signal are synchronized;
the self-adaptive synchronous correction module corrects the continuous K pulse synchronous signals smaller than the error range specifically comprises: when the pulse synchronous signal advances the nearest remote signaling sampling break point delta t, the self-adaptive synchronous correction module increases delta t/K time delay output to the continuous K pulse synchronous signals, and after the K pulse synchronous signals pass, the sampling break and the pulse synchronous signals are synchronized; when the pulse synchronizing signal lags behind the nearest remote signaling sampling break point delta t, the self-adaptive synchronizing correction module reduces delta t/K time for continuous K pulse synchronizing signals to be output in advance, and after the K pulse synchronizing signals pass, the sampling break and the pulse synchronizing signals are synchronized.
8. The dual MCU-based high resolution telemetry acquisition device of claim 7, wherein: the first MCU and the second MCU respectively comprise a clock synchronization module, the clock synchronization module receives a second pulse serving as a working clock, the clock synchronization module is used for outputting a pulse synchronization signal according to the second pulse, and the rising edge of the second pulse is the rising edge of the pulse synchronization signal output according to the second pulse.
9. The dual MCU-based high resolution telemetry acquisition device of claim 8, wherein: the clock synchronization module comprises a preset register array for storing crystal oscillator count difference values of continuous N second pulses.
10. The dual MCU-based high resolution telemetry acquisition device of claim 9, wherein: the clock synchronization module judges whether the device is in a synchronous state of normally receiving the working clock or in a desynchronizing state of losing the working clock, and when the device is in the desynchronizing state, the clock synchronization module outputs a pulse synchronization signal according to the data period of the preset register array and converts the desynchronizing state into the synchronous state; in the process of converting the out-of-step state into the synchronous state, when M effective second pulses are continuously received, wherein M is less than N, and when the effective second pulses are not received, the clock synchronization module does not update the data of the preset register array, and still outputs pulse synchronization signals according to the data period of the preset register array; after M effective second pulses are continuously received, wherein M is larger than or equal to N, the device enters a synchronous state, the clock synchronization module outputs pulse synchronization signals to the device according to the received working clock second pulses, and meanwhile, the data of the preset register array are updated from 1 to N periods.
11. A dual MCU-based high resolution telemetry acquisition device as claimed in any one of claims 7 to 10 wherein: the first MCU receives remote signaling position change information and remote signaling position change time marks of the second MCU; the first MCU compares the remote signaling deflection information provided by the first MCU and the second MCU with a remote signaling deflection time mark, and determines a remote signaling deflection time mark of the device; and the first MCU transmits the remote signaling position change information and the remote signaling position change time scale of the device to the master station.
12. The dual MCU-based high resolution telemetry acquisition device of claim 11, wherein: the first MCU is used for starting a remote signaling jitter elimination processing logic when a certain path of remote signaling is detected to be shifted, and recording the remote signaling shift time stored by the first MCU as a remote signaling shift time mark after the shift validity is confirmed through the remote signaling jitter elimination time; the remote signaling shift time mark correction device is further used for checking a sampling sequence number corresponding to the path of remote signaling shift information provided by the second MCU, and when the sampling sequence number of the second MCU is smaller than the sampling sequence number corresponding to the remote signaling shift time mark of the first MCU, correcting the remote signaling shift time mark of the first MCU forward by Ts/2 to be used as a device remote signaling shift time mark; when the sampling sequence number of the second MCU is more than or equal to the sampling sequence number corresponding to the remote signaling displacement time mark of the first MCU, the remote signaling displacement time mark of the first MCU is not corrected, and the remote signaling displacement time mark of the first MCU is used as a device remote signaling displacement time mark.
CN202111324426.9A 2021-11-10 2021-11-10 High-resolution remote signaling acquisition device and method based on double MCUs Active CN114089020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111324426.9A CN114089020B (en) 2021-11-10 2021-11-10 High-resolution remote signaling acquisition device and method based on double MCUs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111324426.9A CN114089020B (en) 2021-11-10 2021-11-10 High-resolution remote signaling acquisition device and method based on double MCUs

Publications (2)

Publication Number Publication Date
CN114089020A CN114089020A (en) 2022-02-25
CN114089020B true CN114089020B (en) 2023-11-14

Family

ID=80299537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111324426.9A Active CN114089020B (en) 2021-11-10 2021-11-10 High-resolution remote signaling acquisition device and method based on double MCUs

Country Status (1)

Country Link
CN (1) CN114089020B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118007A (en) * 2010-12-14 2011-07-06 许继集团有限公司 Electronic mutual inductor synchronization method based on PPS
CN103616814A (en) * 2013-12-09 2014-03-05 东南大学 Synchronous sampling clock closed loop correcting method and system based on FPGA
CN103683501A (en) * 2013-11-28 2014-03-26 许继电气股份有限公司 Method for improving SOE (sequence of events) temporal resolution of remote terminal units
CN106100783A (en) * 2016-06-30 2016-11-09 许继集团有限公司 The synchronous method of a kind of Intelligent substation merging unit data acquisition and device
CN109150351A (en) * 2017-06-27 2019-01-04 许继集团有限公司 A kind of UTC time realization method and system applied to substation
CN110824237A (en) * 2019-11-09 2020-02-21 许继集团有限公司 Pulse sampling time interval adjusting method and device
CN111598727A (en) * 2020-07-23 2020-08-28 国网江西省电力有限公司电力科学研究院 Method for improving metering clock synchronization of intelligent substation based on code phase counting method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7131021B2 (en) * 2002-12-10 2006-10-31 Faraday Technology Corp. Apparatus for delay calibration of a forward clock using three feedback clocks and a state transition table
US8605847B2 (en) * 2011-03-09 2013-12-10 Lsi Corporation Receiver training with cycle slip detection and correction

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118007A (en) * 2010-12-14 2011-07-06 许继集团有限公司 Electronic mutual inductor synchronization method based on PPS
CN103683501A (en) * 2013-11-28 2014-03-26 许继电气股份有限公司 Method for improving SOE (sequence of events) temporal resolution of remote terminal units
CN103616814A (en) * 2013-12-09 2014-03-05 东南大学 Synchronous sampling clock closed loop correcting method and system based on FPGA
CN106100783A (en) * 2016-06-30 2016-11-09 许继集团有限公司 The synchronous method of a kind of Intelligent substation merging unit data acquisition and device
CN109150351A (en) * 2017-06-27 2019-01-04 许继集团有限公司 A kind of UTC time realization method and system applied to substation
CN110824237A (en) * 2019-11-09 2020-02-21 许继集团有限公司 Pulse sampling time interval adjusting method and device
CN111598727A (en) * 2020-07-23 2020-08-28 国网江西省电力有限公司电力科学研究院 Method for improving metering clock synchronization of intelligent substation based on code phase counting method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于32位数字信号处理器和16位同步串行模数转换器的配用电监控终端设计;施慧;徐琳茜;田世明;;电网技术(21);全文 *
基于MSP430与ATT7022B的四遥测量模块;苏善伟;;微计算机信息(19);全文 *
施慧 ; 徐琳茜 ; 田世明 ; .基于32位数字信号处理器和16位同步串行模数转换器的配用电监控终端设计.电网技术.2007,(21),全文. *

Also Published As

Publication number Publication date
CN114089020A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US6535926B1 (en) Time synchronization system for industrial control network using global reference pulses
CN111309094A (en) Synchronous board card and method for data acquisition of sensor equipment
CN110493744A (en) A kind of synchronous data sampling method and system of master-slave radio sensor
EP3637271B1 (en) Baud rate calibration circuit and serial chip
CN110986921B (en) Data communication and processing method for astronomical integrated navigation system
CN103563287A (en) Synchronization device and synchronization method
CN114089020B (en) High-resolution remote signaling acquisition device and method based on double MCUs
CN113960413A (en) Time synchronization method for collecting unit and collecting unit in fault indicator
US11675318B2 (en) Multi-interface GPS time synchronization
CN112286034B (en) Whole vehicle data time synchronization method and device, electronic equipment and storage medium
KR101965932B1 (en) UTC Time Synchronization Method for a Device using GPS Module
KR101967027B1 (en) Improved UTC Time Synchronization Method for a Device using GPS Module in Abnormal Operation Condition
EP0746121B1 (en) Synchronization regeneration circuit
CN110611544A (en) Method and device for accurately timing by utilizing RS232 serial port
KR100433079B1 (en) Input data processing circuit
JP3494151B2 (en) Concatenation signal processing method and apparatus
CN109709422B (en) Clock drift elimination method and device
US5430746A (en) Method of and circuitry for detecting synchronism failure of two word sequences
US5062107A (en) Synchronizing circuit for reducing waiting-time jitter in a demultiplexer
CN112558685A (en) Time synchronization method for power distribution terminal modules
CN112235096A (en) Data communication method, data receiving method and device, and data sending method and device
EP2398173A1 (en) Remote I/O system and synchronization method in the same
US20230289248A1 (en) Semiconductor device
CN115189796B (en) Equipment master clock synchronization method and device based on IEEE1588 protocol
CN117675072A (en) Synchronization time determining method, time synchronization device, time synchronization system and medium

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