CN112671476B - Wireless pulse-per-second transmission method and system with fixed time delay - Google Patents

Wireless pulse-per-second transmission method and system with fixed time delay Download PDF

Info

Publication number
CN112671476B
CN112671476B CN202011505870.6A CN202011505870A CN112671476B CN 112671476 B CN112671476 B CN 112671476B CN 202011505870 A CN202011505870 A CN 202011505870A CN 112671476 B CN112671476 B CN 112671476B
Authority
CN
China
Prior art keywords
wireless
sending
message
module
delay time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011505870.6A
Other languages
Chinese (zh)
Other versions
CN112671476A (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.)
China Southern Power Grid Power Technology Co Ltd
Original Assignee
China Southern Power Grid Power Technology 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 China Southern Power Grid Power Technology Co Ltd filed Critical China Southern Power Grid Power Technology Co Ltd
Priority to CN202011505870.6A priority Critical patent/CN112671476B/en
Publication of CN112671476A publication Critical patent/CN112671476A/en
Application granted granted Critical
Publication of CN112671476B publication Critical patent/CN112671476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a wireless second pulse transmission method and system with fixed time delay, according to the difference value of the triggering time and the sending time of a second pulse signal, the sending delay time and the jumping edge type of the second pulse signal are defined in a wireless message, the wireless message is sent to a detection side in a wireless transmission mode, the detection side obtains the residual delay time according to the sending delay time and the preset fixed time delay, the transmission delay time of each second pulse signal can be guaranteed to be fixed, and the second pulse signal with the same type as the jumping edge type of an ammeter side is recovered through the detection side with the same transmission delay time to calculate the daily timing error, so that the calculation result is not influenced by the delay size, the extra timing error is not introduced, and the detection precision is improved.

Description

Wireless pulse-per-second transmission method and system with fixed time delay
Technical Field
The application relates to the technical field of pulse transmission, in particular to a wireless pulse-per-second transmission method and system with fixed time delay.
Background
In the operation process of the intelligent electric meter, a plurality of functions (such as time-sharing fee control) need accurate timing support. The time inside the electric meter must be consistent with the standard time, so that the accuracy of the metering data of the electric meter can be ensured.
Generally, when the electric meter leaves the factory, the time is already consistent with the standard time, but in subsequent operation, because the clock frequency of the electric meter has a certain deviation from the standard clock frequency, the error between the time inside the electric meter and the standard time is larger and larger. After the meter was run for 24 hours, the cumulative error between the internal time and the standard time was defined as the daily timing error. According to the existing metering specifications, the daily timing error of the electric energy meter is required to be within plus or minus 0.5 second. Before the electric meter is put into operation or after the electric meter is operated for a period of time, the daily timing error needs to be verified. The electric meter meeting the verification requirements can be put into operation.
The existing daily timing error detection generally adopts the following method: on examining table or examining the table assembly line, will detect the head and touch the back with the auxiliary terminal of ammeter through the thimble and be connected, the ammeter passes through the auxiliary terminal and outputs the pulse per second with the frequency once per second, reads the pulse per second of ammeter output. From the pulse per second a diary time error can be calculated.
However, because the auxiliary terminal is large in volume and complex in connection, in a new specification of the smart meter, the auxiliary terminal is gradually cancelled, and the second pulse is output in a wireless or photoelectric mode. The existing method for reading the pulse per second signal by utilizing photoelectricity has the defects that: the photoelectric probe needs to be strictly aligned with the LED indicator light, and the realization difficulty is high; the visible light emitted by each pulse indicator lamp can interfere with each other, and the speed and the precision of the test are influenced. Therefore, more and more meter checking apparatuses output the pulse of seconds to a meter checking device in a wireless manner typified by bluetooth.
The current use of the standard bluetooth protocol for transmitting the second burst causes a serious problem: because the bluetooth transmission protocol is relatively complex, the protocol stack processing overhead is relatively large, and the bluetooth transmission data has time delay and relatively large jitter. The general Bluetooth data transmission delay is higher, and the requirement of daily timing error verification on time precision is very high. In the actual daily timing error verification operation, 1 minute of timing is used for testing a daily timing error, the error introduced in any pulse transmission process is amplified by 1440 times, so that if 1ms of error is introduced in the pulse transmission process, the error is amplified into 1440ms of error in daily timing, which exceeds the error range of plus or minus 500ms allowed by daily timing, and the detection precision is greatly reduced.
Disclosure of Invention
The application provides a wireless pulse per second transmission method and system with fixed time delay, which are used for solving the technical problem that the detection precision is greatly reduced due to timing errors in the pulse per second wireless transmission process.
In view of the above, a first aspect of the present application provides a wireless pulse-per-second transmission method with fixed delay, including the following steps:
s1: receiving a second pulse signal generated in advance by a metering unit through a transmitting terminal on the electric meter side;
s2: capturing a jumping edge triggered by the pulse per second signal, acquiring a trigger moment corresponding to the jumping edge, and generating a wireless message according to a preset format;
s3: sending the wireless message to a receiving end of a meter detection side in a wireless transmission mode through a transmitting end of the meter detection side, acquiring the sending time of the wireless message, and obtaining sending delay time according to the difference value between the triggering time and the sending time, wherein the wireless message comprises a hopping edge type and the sending delay time;
s4: after receiving the wireless message through the receiving end of the checking table side, analyzing the wireless message to obtain the hopping edge type and the sending delay time;
s5: obtaining the residual delay time according to the difference value between the preset fixed delay time and the sending delay time;
s6: and timing according to the residual delay time, when the timing of the residual delay time is finished, obtaining a corresponding pulse per second according to the type of the jump edge, and then carrying out daily timing error verification on the pulse per second signal.
Preferably, after the step S3, the step S4 includes:
s301: defining a serial number in the wireless message through a transmitting terminal of the electric meter side, and after receiving the wireless message through a receiving terminal of the meter checking side, sending a response message to the transmitting terminal of the electric meter side, wherein the response message comprises the same serial number as the wireless message, and the response message is used for indicating that the receiving terminal successfully receives the wireless message.
Preferably, after the step S301, the step S4 is preceded by:
s311: judging whether the response message is received or not through the transmitting terminal of the ammeter side, and executing the step S312 if the transmitting terminal of the ammeter side does not receive the response message;
s312: judging whether the waiting response time for receiving the response message exceeds a first preset threshold value or not through the transmitting terminal at the electric meter side, if so, executing the step S311, and if so, executing the step S313;
s313: judging whether the retransmission times of the wireless message exceeds a second preset threshold value or not by the transmitting end of the electric meter side, if not, acquiring the current transmitting time of the current transmitting times of the wireless message, so as to update the transmitting delay time according to the difference value between the triggering time and the current transmitting time, retransmitting the wireless message to the receiving end of the electric meter side, and then executing the steps S311-S313, if the transmitting end of the electric meter side judges that the times of transmitting the wireless message exceeds the second preset threshold value, marking the wireless message as a failure message, and stopping transmitting the wireless message marked as the failure message.
Preferably, after step S313, step S4 is preceded by:
s321: after receiving the wireless packet through the receiving end on the checklist side, analyzing the wireless packet to obtain a serial number of the wireless packet, determining, according to the serial number, that the wireless packet is an unprocessed wireless packet or a processed wireless packet, if it is determined that the wireless packet is an unprocessed wireless packet, executing the step S4, and if it is determined that the wireless packet is a processed wireless packet, marking the corresponding wireless packet as a discarded packet, thereby stopping receiving the wireless packet marked as the discarded packet.
In a second aspect, the present invention further provides a wireless pulse-per-second transmission system with fixed delay, including: the ammeter device and the meter checking device;
the ammeter device comprises a metering unit and a sending unit;
the metering unit is used for generating a pulse per second signal;
the sending unit is used for capturing a jumping edge triggered by the pulse per second signal after receiving the pulse per second signal generated by the metering unit, and acquiring a trigger time corresponding to the jumping edge; the wireless message sending device is also used for generating a wireless message according to a preset format and then sending the wireless message to the meter checking device in a wireless transmission mode, obtaining sending time of the wireless message sent to the meter checking device, and obtaining sending delay time according to the difference value of the triggering time and the sending time, wherein the wireless message comprises a hopping edge type and the sending delay time;
the table checking device comprises a receiving unit and a table checking unit;
the receiving module is configured to receive the wireless packet sent by the sending unit, and further configured to analyze the wireless packet to obtain the type of the hopping edge and the sending delay time; the clock edge type detection unit is also used for obtaining the difference value between the preset fixed delay time and the sending delay time to obtain the residual delay time, and is also used for sending the pulse per second signal to the table detection unit after obtaining the corresponding pulse per second signal according to the jump edge type when the timing of the residual delay time is finished;
and the meter checking unit is used for receiving the pulse per second signal and then carrying out daily timing error detection on the pulse per second signal.
Preferably, the sending unit comprises a processing module, a sending queue module, a first clock module and a transmitting module;
the first end of the processing module is electrically connected with the metering unit, the second end of the processing module is electrically connected with the first end of the sending queue module, the second end of the sending queue module is electrically connected with the first end of the transmitting module, and the first clock module is respectively electrically connected with the processing module, the sending queue module and the transmitting module;
the processing module is used for capturing a jump edge triggered by the pulse per second signal after receiving the pulse per second signal generated by the metering unit, and is also used for acquiring a trigger time corresponding to the jump edge based on the first clock module; the wireless message sending module is also used for generating a wireless message according to a preset format and transferring the wireless message to the sending queue module for queuing;
the sending queue module is used for sending the wireless message to the sending module based on a preset queuing strategy;
the transmitting module is configured to receive the wireless packet sent by the sending queue module, acquire the triggering time and the sending time of the wireless packet based on the first clock module, obtain a sending delay time according to a difference between the triggering time and the sending time, and send the wireless packet to the table checking device in a wireless transmission manner.
Preferably, the receiving unit comprises a receiving module, a timing module, a second clock module and a pulse recovery module;
the first end of the receiving module is wirelessly connected with the second end of the transmitting module, the first end of the timing module is electrically connected with the second end of the receiving module, the second end of the timing module is electrically connected with the first end of the pulse recovery module, the second end of the pulse recovery module is electrically connected with the table detection unit, and the second clock module is respectively and electrically connected with the receiving module, the timing module and the pulse recovery module;
the receiving module is configured to receive the wireless packet sent by the transmitting module, and further configured to analyze the wireless packet to obtain the type of the hopping edge and the sending delay time; the timing module is further used for obtaining the residual delay time according to the difference value between the preset fixed delay time and the sending delay time, and sending the residual delay time to the timing module;
the timing module is used for setting the residual delay time as timing trigger time;
the pulse recovery module is configured to receive the hopping edge type analyzed by the receiving module, recover, when the timing of the timing trigger time in the timing module is ended, a corresponding pulse per second signal according to the hopping edge type, and send the pulse per second signal to the table checking unit.
Preferably, the sending unit is further configured to define a sequence number in the wireless packet, and the receiving unit is further configured to send a response packet to the sending unit after receiving the wireless packet sent by the sending unit, where the response packet includes the same sequence number as the wireless packet, and the response packet is used to indicate that the receiving unit successfully receives the wireless packet.
Preferably, the sending unit is further configured to determine whether a waiting response time for receiving the response packet exceeds a first preset threshold when the response packet is not received, and is further configured to retransmit the wireless packet to the receiving module when the waiting response time is determined to exceed the first preset threshold; the wireless message retransmission method is also used for judging whether the retransmission times of the wireless message exceed a second preset threshold value; the wireless message sending device is also used for obtaining the current sending time of the current sending times of the wireless message when judging that the sending times of the wireless message does not exceed the second preset threshold; and the wireless message sending device is further configured to update the sending delay time according to the difference between the trigger time and the current sending time, and is further configured to mark the wireless message as a failure message when it is determined that the retransmission times of the wireless message exceed the second preset threshold, so as to stop sending the wireless message marked as the failure message.
Preferably, the receiving unit is further configured to, after receiving the wireless packet, parse the wireless packet to obtain a serial number of the wireless packet, and further configured to, according to the serial number, determine that the wireless packet is an unprocessed wireless packet or a processed wireless packet, when it is determined that the wireless packet is the unprocessed wireless packet, parse the unprocessed wireless packet to obtain the hopping edge type and the transmission delay time, and when it is determined that the processed wireless packet is the processed wireless packet, mark the corresponding wireless packet as a discarded packet, thereby stopping receiving the wireless packet marked as the discarded packet.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the wireless second pulse transmission method and system with fixed time delay, the sending delay time and the jumping edge type of the second pulse signal are defined in the wireless message according to the difference value of the triggering time and the sending time of the second pulse signal, the wireless message is sent to the detection side in a wireless transmission mode, the detection side obtains the residual delay time according to the sending delay time and the preset fixed time delay, the transmission delay time of each second pulse signal can be guaranteed to be fixed, the second pulse signal with the same type as the jumping edge type of the ammeter side is recovered through the detection side according to the same transmission delay time to calculate the daily timing error, the calculation result is not influenced by the delay size, extra timing errors cannot be introduced, and the detection precision is improved.
Drawings
Fig. 1 is a flowchart of a fixed-delay wireless pulse-per-second transmission method according to a first embodiment of the present application;
fig. 2 is a timing diagram of a pulse-per-second signal on the ammeter side of a wireless pulse-per-second transmission method with fixed delay according to an embodiment of the present disclosure;
fig. 3 is a timing diagram of a pulse per second signal at a detection side of a wireless pulse per second transmission method with fixed delay according to an embodiment of the present application;
fig. 4 is a flowchart of a wireless pulse-per-second transmission method with fixed delay according to a second embodiment of the present application;
fig. 5 is a logic flow diagram of a fixed-delay wireless pulse-per-second transmission method according to a third embodiment of the present application;
fig. 6 is another logic flow diagram of a fixed-delay wireless pulse-per-second transmission method according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of a wireless pulse-per-second transmission system with fixed delay according to a first embodiment of the present application;
fig. 8 is a schematic structural diagram of a wireless pulse-per-second transmission system with fixed delay according to a second embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For easy understanding, please refer to fig. 1, the present application provides a fixed-delay wireless pulse-per-second transmission method, including the following steps:
s1: receiving a second pulse signal generated in advance by a metering unit through a transmitting terminal on the electric meter side;
the pulse-per-second signal generated by the measurement unit is a standard pulse-per-second signal.
S2: capturing a hopping edge triggered by the pulse per second signal, acquiring a trigger moment corresponding to the hopping edge, and generating a wireless message according to a preset format;
it should be noted that the wireless packet in this embodiment is applicable to a wireless transmission mode, and in a specific embodiment, the trigger time T1 corresponding to the hop edge is obtained, and a field including an initial delay time is defined in the wireless packet, and an initial value of the field is 0.
S3: sending a wireless message to a receiving end of a meter detection side in a wireless transmission mode through a transmitting end of the meter detection side, acquiring the sending time of the wireless message, and obtaining sending delay time according to the difference value of the triggering time and the sending time, wherein the wireless message comprises a hopping edge type and the sending delay time;
when the wireless message queue is completed, the sending time T2 of the corresponding wireless message in the system clock is obtained, the difference Td calculated according to the formula Td-T2-T1 is the sending delay time Td, then the initial delay time is changed to the sending delay time Td, and the wireless message is sent to the receiving end on the table checking side through a wireless transmission method. Meanwhile, the transition edge type includes a rising edge and a falling edge.
S4: after receiving the wireless message through a receiving end at the meter checking side, analyzing the wireless message to obtain a hopping edge type and sending delay time;
s5: obtaining the residual delay time according to the difference value of the preset fixed delay time and the sending delay time;
it should be noted that, in this embodiment, the receiving end on the table checking side analyzes the wireless message to obtain the type of the transition edge as a rising edge or a falling edge and a transmission delay time Td, and calculates the remaining delay time Tc by using a formula Tc ═ Td '-Td, where Td' is a preset fixed delay time.
S6: and timing according to the residual delay time, when the timing of the residual delay time is finished, acquiring a corresponding pulse per second signal according to the jump edge type, and then carrying out daily timing error verification on the pulse per second signal.
It should be noted that, in this embodiment, the fixed delay Td' is set to be 10ms, the transmission delay Td is set to be 3.2ms, the remaining delay Tc is 6.8ms, countdown is performed according to the remaining delay Td of 6.8ms, after the timing is completed, the corresponding pulse-per-second signal is recovered and obtained according to the type of the transition edge, and then the daily timing error detection is performed on the pulse-per-second signal.
The working principle of the embodiment is as follows:
as shown in fig. 2 to 3, the trigger time Tn is set for the generation of the nth pulse signal on the meter side, the pulse reaches the meter side at the transmission time Tn ', and the trigger time Tm is set for the generation of the mth pulse signal on the meter side, the pulse reaches the meter side at the transmission time Tm'. In this method, if the transmission delays of all the pulse signals per second are the same, Tm '-Tm is Tn' -Tn. The error rate e ═ Tm '-Tn')/(M-N) -1 can be obtained from the equation for calculating the error rate of the electricity meter, and the daily timing error can be obtained from the equation for calculating the daily timing error S ═ e x60x60x 24.
Therefore, in this embodiment, according to the difference between the trigger time and the sending time of the pulse per second signal, the sending delay time and the hopping edge type of the pulse per second signal are defined in the wireless message, and the wireless message is sent to the table checking side in a wireless transmission manner, and the table checking side obtains the remaining delay time according to the sending delay time and the preset fixed delay time, so that the transmission delay time of each pulse per second signal can be guaranteed to be fixed, and the pulse per second signal with the same type as the hopping edge type of the electric meter side is recovered through the table checking side with the same transmission delay time to calculate the daily timing error, so that the calculation result is not affected by the delay size, and no additional timing error is introduced.
In addition, the wireless pulse-per-second transmission method with fixed time delay is applied to daily timing error detection of the intelligent electric meter, but can also be used for detection of active or reactive pulse signals. Meanwhile, the intelligent ammeter calibrating device can be used on an ammeter calibrating table and an ammeter calibrating production line, complexity of a calibrating system can be effectively reduced, and work efficiency of intelligent ammeter calibration is improved.
The above is a detailed description of a first embodiment of a fixed-delay wireless pulse-per-second transmission method provided by the present invention, and the following is a detailed description of a second embodiment of the fixed-delay wireless pulse-per-second transmission method provided by the present invention.
For convenience of understanding, please refer to fig. 4, the present application provides a fixed-delay wireless pulse-per-second transmission method, which includes the following steps:
s101: receiving a second pulse signal generated in advance by a metering unit through a transmitting terminal on the electric meter side;
the pulse-per-second signal generated by the measurement unit is a standard pulse-per-second signal.
S102: capturing a hopping edge triggered by the pulse per second signal, acquiring a trigger moment corresponding to the hopping edge, and generating a wireless message according to a preset format;
it should be noted that the wireless packet in this embodiment is applicable to a wireless transmission mode, and in a specific embodiment, the trigger time T1 corresponding to the hop edge is obtained, and a field including an initial delay time is defined in the wireless packet, and an initial value of the field is 0.
S103: sending a wireless message to a receiving end of a meter detection side in a wireless transmission mode through a transmitting end of the meter detection side, acquiring the sending time of the wireless message, and obtaining sending delay time according to the difference value of the triggering time and the sending time, wherein the wireless message comprises a hopping edge type and the sending delay time;
when the wireless message queue is completed, the sending time T2 of the corresponding wireless message in the system clock is obtained, the difference Td calculated according to the formula Td-T2-T1 is the sending delay time Td, then the initial delay time is changed to the sending delay time Td, and the wireless message is sent to the receiving end on the table checking side through a wireless transmission method. Meanwhile, the transition edge type includes a rising edge and a falling edge.
S104: defining a serial number in the wireless message through a transmitting end of the electric meter side, and after receiving the wireless message through a receiving end of the meter checking side, sending a response message to the transmitting end of the electric meter side, wherein the response message comprises the same serial number as the wireless message, and the response message is used for indicating that the receiving end successfully receives the wireless message;
in a specific embodiment, a field is added in a wireless message, the field defines a corresponding serial number of the wireless message, the serial number of an initial message is 1, the serial number of the initial message is increased with each different type of wireless message, and simultaneously, the serial numbers of response messages corresponding to each wireless message are the same, so that the communication state of the wireless message can be clearly judged, and the communication management of the wireless message is facilitated.
S105: after receiving the wireless message through a receiving end at the meter checking side, analyzing the wireless message to obtain a hopping edge type and sending delay time;
s106: obtaining the residual delay time according to the difference value of the preset fixed delay time and the sending delay time;
it should be noted that, in this embodiment, the receiving end on the table checking side analyzes the wireless message to obtain the type of the transition edge as a rising edge or a falling edge and a transmission delay time Td, and calculates the remaining delay time Tc by using a formula Tc ═ Td '-Td, where Td' is a preset fixed delay time.
S107: and timing according to the residual delay time, when the timing of the residual delay time is finished, acquiring a corresponding pulse per second signal according to the jump edge type, and then carrying out daily timing error verification on the pulse per second signal.
It should be noted that, in this embodiment, the fixed delay Td' is set to be 10ms, the transmission delay Td is set to be 3.2ms, the remaining delay Tc is 6.8ms, countdown is performed according to the remaining delay Td of 6.8ms, after the timing is completed, the corresponding pulse-per-second signal is recovered and obtained according to the type of the transition edge, and then the daily timing error detection is performed on the pulse-per-second signal.
It should be noted that the working principle of the present embodiment is the same as that of the first embodiment. Meanwhile, in the embodiment, according to the difference between the trigger time and the sending time of the pulse per second signal, the sending delay time and the jumping edge type of the pulse per second signal are defined in the wireless message, and when the wireless message is sent to the detection table side in a wireless transmission mode, by setting the serial numbers of the response messages corresponding to each wireless message to be the same, the communication state of the wireless message can be clearly judged through the response messages, the communication management of the wireless message is convenient, the table checking side obtains the residual delay time according to the sending delay time and the preset fixed delay time, can ensure that the transmission delay time of each pulse per second is fixed, so as to calculate the time-of-day error by recovering the pulse-per-second signal with the same type as the jump edge of the ammeter side through the ammeter side with the same transmission delay time, therefore, the calculation result is not influenced by the delay size, and no additional timing error is introduced.
The above is a detailed description of a second embodiment of the fixed-delay wireless pulse-per-second transmission method provided by the present invention, and the following is a detailed description of a third embodiment of the fixed-delay wireless pulse-per-second transmission method provided by the present invention.
It should be noted that, in an actual working environment, wireless transmission is not a reliable communication mode, and is affected by various factors such as channel occupation and electromagnetic interference, and wireless transmission of a wireless message cannot guarantee that the wireless message can successfully reach a receiving end. In order to solve the technical problem, as shown in fig. 5, the present application provides a wireless pulse-per-second transmission method with a fixed delay, including the following steps:
s201: receiving a second pulse signal generated in advance by a metering unit through a transmitting terminal on the electric meter side;
the pulse-per-second signal generated by the measurement unit is a standard pulse-per-second signal.
S202: capturing a hopping edge triggered by the pulse per second signal, acquiring a trigger moment corresponding to the hopping edge, and generating a wireless message according to a preset format;
it should be noted that the wireless packet in this embodiment is applicable to a wireless transmission mode, and in a specific embodiment, the trigger time T1 corresponding to the hop edge is obtained, and a field including an initial delay time is defined in the wireless packet, and an initial value of the field is 0.
S203: sending a wireless message to a receiving end of a meter detection side in a wireless transmission mode through a transmitting end of the meter detection side, acquiring the sending time of the wireless message, and obtaining sending delay time according to the difference value of the triggering time and the sending time, wherein the wireless message comprises a hopping edge type and the sending delay time;
when the wireless message queue is completed, the sending time T2 of the corresponding wireless message in the system clock is obtained, the difference Td calculated according to the formula Td-T2-T1 is the sending delay time Td, then the initial delay time is changed to the sending delay time Td, and the wireless message is sent to the receiving end on the table checking side through a wireless transmission method. Meanwhile, the transition edge type includes a rising edge and a falling edge.
S204: defining a serial number in the wireless message through a transmitting end of the electric meter side, and after receiving the wireless message through a receiving end of the meter checking side, sending a response message to the transmitting end of the electric meter side, wherein the response message comprises the same serial number as the wireless message, and the response message is used for indicating that the receiving end successfully receives the wireless message;
in a specific embodiment, a field is added in a wireless message, the field defines a corresponding serial number of the wireless message, the serial number of an initial message is 1, the serial number of the initial message is increased with each different type of wireless message, and simultaneously, the serial numbers of response messages corresponding to each wireless message are the same, so that the communication state of the wireless message can be clearly judged, and the communication management of the wireless message is facilitated.
S205: judging whether a response message is received or not through the transmitting end of the electric meter side, and executing the step S206 if the transmitting end of the electric meter side does not receive the response message;
s206: judging whether the waiting response time for receiving the response message exceeds a first preset threshold value or not through a transmitting terminal at the electric meter side, if so, executing step S311, and if so, executing step 207;
it can be understood that, if the waiting response time of the response message does not exceed the first preset threshold, the transmitting terminal continues to determine whether the response message is received, so as to improve the successful sending probability of the response message, reduce the unnecessary times of overtime retransmission, and improve the transmission efficiency.
S207: judging whether the retransmission times of the wireless message exceeds a second preset threshold value or not by a transmitting end on the electric meter side, if not, acquiring the current transmitting time of the current transmitting times of the wireless message, updating the transmitting delay time according to the difference value between the triggering time and the current transmitting time, retransmitting the wireless message to a receiving end on the electric meter side, and executing the steps S205-S207.
It will be appreciated that, since the transmission delay time of the wireless message is changed after the wireless message is retransmitted, therefore, if the number of times of sending the wireless message does not exceed the second preset threshold value, the current sending time corresponding to the current number of times of sending the wireless message is obtained, so as to update the sending delay time according to the difference value between the triggering time and the current sending time, and then send the wireless message to the receiving end, judging whether the wireless message is received or not and whether the waiting response time of receiving the response message exceeds a first preset threshold value or not through the receiving end, the process is circulated until the transmitting terminal judges that the transmission of the wireless message is successful so as to execute the next step, or when the number of times of sending the wireless message exceeds a second preset threshold value, marking the wireless message as a failure message, thereby stopping sending the wireless message marked as the failure message, and processing the failure message as a discarded message.
In a specific embodiment, the transmitting end sends a wireless message 0001 to the receiving end, the receiving end replies a response message 0001 to the transmitting end after receiving the wireless message 0001, and if the transmitting end successfully receives the response message, it is determined that the pulse-per-second signal has been normally transmitted through the wireless signal, and the transmission of the wireless message is normally completed. Then, the ammeter side detects a next second pulse jump signal again, the ammeter side sends a wireless message 0002 to the receiving end through the transmitting end again, if the transmitting end fails to receive the response message 0002, meanwhile, when the transmitting end waits for the response time to be 1ms, the waiting response time exceeds a first preset threshold value for 0.9ms, and the response message 0002 is still not received, the ammeter side is judged to not normally receive the message, at the moment, the transmitting delay time of the message is recalculated according to a formula Td which is T2-T1, the wireless message 0002 is retransmitted, and if the frequency of sending the wireless message does not exceed 4 times (the preset second threshold value is 4 times), the steps are repeatedly executed; if the number of times of sending the wireless message exceeds 4, the wireless message is marked as a failure message, so that the wireless message marked as the failure message is stopped from being sent, and the failure message is treated as a discarded message. Meanwhile, the subsequent wireless message transmission is analogized.
S208: after receiving the wireless message through a receiving end of the meter checking side, analyzing the wireless message to obtain a hopping edge type and a sending delay time:
s209: obtaining the residual delay time according to the difference value of the preset fixed delay time and the sending delay time;
it should be noted that, in this embodiment, the receiving end on the table checking side analyzes the wireless message to obtain the type of the transition edge as a rising edge or a falling edge and a transmission delay time Td, and calculates the remaining delay time Tc by using a formula Tc ═ Td '-Td, where Td' is a preset fixed delay time.
S210: and timing according to the residual delay time, when the timing of the residual delay time is finished, acquiring a corresponding pulse per second signal according to the jump edge type, and then carrying out daily timing error verification on the pulse per second signal.
It should be noted that, in this embodiment, the fixed delay Td' is set to be 10ms, the transmission delay Td is set to be 3.2ms, the remaining delay Tc is 6.8ms, countdown is performed according to the remaining delay Td of 6.8ms, after the timing is completed, the corresponding pulse-per-second signal is recovered and obtained according to the type of the transition edge, and then the daily timing error detection is performed on the pulse-per-second signal.
It should be noted that the working principle of the present embodiment is the same as that of the first embodiment. Meanwhile, in the embodiment, according to the difference between the triggering time and the sending time of the pulse per second signal, the sending delay time and the jumping edge type of the pulse per second signal are defined in the wireless message, and when the wireless message is sent to the meter side in a wireless transmission mode, the communication state of the wireless message can be clearly judged through the response message by setting the same serial number of the response message corresponding to each wireless message, so that the communication management of the wireless message is facilitated, meanwhile, an overtime retransmission mechanism is introduced, so that the timing error is reduced, the data transmission efficiency is improved, the remaining delay time is obtained by the meter side according to the sending delay time and the preset fixed delay time, the transmission delay time of each pulse per second signal can be ensured to be fixed, and the pulse per second signal with the same type as the jumping edge type of the meter side is recovered by the meter side with the same transmission delay time to calculate the daily timing error, therefore, the calculation result is not influenced by the delay size, and no additional timing error is introduced.
Further, as shown in fig. 6, after step S207, step S208 is preceded by:
s2071: after receiving the wireless message through the receiving end of the meter side, analyzing the wireless message to obtain a serial number of the wireless message, judging the wireless message to be an unprocessed wireless message or a processed wireless message according to the serial number, if judging the wireless message to be an unprocessed wireless message, executing the step S208, if judging the wireless message to be a processed wireless message, marking the corresponding wireless message as a discarded message, and stopping receiving the wireless message marked as the discarded message
It can be understood that the wireless packet corresponding to each hop edge trigger has a unique serial number, the serial number of the wireless packet is obtained by analyzing the wireless packet through the receiving end on the detection table side, whether the processed wireless packet is processed or unprocessed can be judged according to the serial number, the processed wireless packet is marked as a discarded packet, and the discarded packet is not received and processed any more, so that the data processing efficiency is improved.
The above is a detailed description of a third embodiment of the fixed-delay wireless pulse-per-second transmission method provided by the present invention, and the following is a detailed description of a first embodiment of the fixed-delay wireless pulse-per-second transmission system provided by the present invention.
For easy understanding, please refer to fig. 7, which provides a wireless pulse-per-second transmission system with fixed delay time, comprising: the electric meter device 100 and the meter checking device 200;
the electricity meter apparatus 100 includes a metering unit 110 and a transmitting unit 120;
the metering unit 110 is used for generating a pulse per second signal;
the sending unit 120 is configured to capture a jump edge triggered by the pulse per second signal after receiving the pulse per second signal generated by the metering unit 110, and acquire a trigger time corresponding to the jump edge; the wireless message sending device is also used for generating a wireless message according to a preset format and then sending the wireless message to the meter detection device 200 in a wireless transmission mode, obtaining sending time of the wireless message sent to the meter detection device 200, and obtaining sending delay time according to a difference value of the triggering time and the sending time, wherein the wireless message comprises a hopping edge type and the sending delay time;
it should be noted that the transition edge type includes a rising edge and a falling edge.
The table checking apparatus 200 includes a receiving unit 210 and a table checking unit 220;
the receiving unit 210 is configured to receive the wireless packet sent by the sending unit 120, and further configured to analyze the wireless packet to obtain a hopping edge type and a sending delay time; the clock is further configured to obtain a remaining delay time according to a difference between a preset fixed delay time and a sending delay time, and when the timing of the remaining delay time is finished, obtain a corresponding pulse per second signal according to a jump edge type, and send the pulse per second signal to the table checking unit 220;
the meter checking unit 220 is configured to perform daily timing error detection on the pulse-per-second signal after receiving the pulse-per-second signal.
It should be noted that the working process of this embodiment is as follows:
s301: generating a pulse-per-second signal by the metering unit 110;
the pulse-per-second signal generated by the measurement unit 110 is a standard pulse-per-second signal.
S302: after receiving the pulse-per-second signal generated by the metering unit 110 through the sending unit 120, capturing a transition edge triggered by the pulse-per-second signal;
s303: acquiring trigger time corresponding to the hopping edge through the sending unit 120;
it should be noted that the wireless packet in this embodiment is applicable to a wireless transmission mode, and in a specific embodiment, the trigger time T1 corresponding to the hop edge is obtained, and a field including an initial delay time is defined in the wireless packet, and an initial value of the field is 0.
S304: generating a wireless message according to a preset format by a sending unit 120, sending the wireless message to a meter checking device 200 in a wireless transmission mode, acquiring sending time of the wireless message sent to the meter checking device 200, and obtaining sending delay time according to a difference value between triggering time and the sending time, wherein the wireless message comprises a hopping edge type and the sending delay time;
when the wireless message queue is completed, the sending time T2 of the corresponding wireless message in the system clock is obtained, the difference Td calculated according to the formula Td-T2-T1 is the sending delay time Td, then the initial delay time is changed to the sending delay time Td, and the wireless message is sent to the receiving unit 210 by the wireless transmission method. Meanwhile, the communication carrier used in the wireless transmission method in this embodiment is not limited to use of the 2.4GHz universal band. The communication protocol uses a non-standard proprietary protocol.
S305: receiving the wireless message sent by the sending unit 120 through the receiving unit 210, and analyzing the wireless message to obtain a hopping edge type and a sending delay time;
s306: obtaining the remaining delay time through the receiving unit 210 according to the difference between the preset fixed delay time and the sending delay time, and sending the pulse per second signal to the table checking unit 220 after obtaining the corresponding pulse per second signal according to the type of the jumping edge when the timing of the remaining delay time is finished;
it should be noted that, in this embodiment, the receiving unit 210 analyzes the wireless message to obtain the type of the transition edge as a rising edge or a falling edge and a transmission delay time Td, and calculates the remaining delay time Tc by using a formula Tc ═ Td '-Td, where Td' is a preset fixed delay time. Setting the fixed delay Td' to be 10ms, setting the transmission delay time Td to be 3.2ms, setting the residual delay time Tc to be 6.8ms, carrying out countdown through the residual delay time of 6.8ms, recovering and obtaining a corresponding second pulse signal according to the type of a jump edge after timing is finished, and then carrying out daily timing error verification on the second pulse signal.
S307: the second pulse signal is subjected to daily timing error detection after being received by the table checking unit 220.
In this embodiment, according to the difference between the trigger time and the sending time of the pulse per second signal, the sending delay time and the transition edge type of the pulse per second signal are defined in the wireless packet, and the sending unit 120 sends the wireless packet to the receiving unit 210 in a wireless transmission manner, and the receiving unit 210 obtains the remaining delay time according to the sending delay time and the preset fixed delay time, which can ensure that the transmission delay time of each pulse per second signal is fixed, so that the pulse per second signal with the same type as the transition edge of the electricity meter device 100 is recovered by the table detecting unit 220 with the same remaining delay time to calculate the daily timing error, so that the calculation result is not affected by the delay size, and no additional timing error is introduced.
The above is a detailed description of a first embodiment of a wireless pulse-per-second transmission system with fixed delay according to the present invention, and the following is a detailed description of a second embodiment of a wireless pulse-per-second transmission system with fixed delay according to the present invention.
For convenience of understanding, please refer to fig. 8, which provides a wireless pulse-per-second transmission system with fixed delay time, including: the electric meter device 100 and the meter checking device 200;
the electricity meter apparatus 100 includes a metering unit 110 and a transmitting unit 120;
the metering unit 110 is used for generating a pulse per second signal;
the sending unit 120 includes a processing module 121, a sending queue module 122, a first clock module 123 and a sending module 124;
a first end of the processing module 121 is electrically connected to the metering unit 110, a second end of the processing module 121 is electrically connected to a first end of the sending queue module 122, a second end of the sending queue module 122 is electrically connected to a first end of the transmitting module 124, and the first clock module 123 is electrically connected to the processing module 121, the sending queue module 122, and the transmitting module 124, respectively;
the processing module 121 is configured to capture a transition edge triggered by the pulse per second signal after receiving the pulse per second signal generated by the metering unit 110, and further configured to obtain a trigger time corresponding to the transition edge based on the first clock module 123; the wireless network device is further configured to generate a wireless message according to a preset format, and transfer the wireless message to the sending queue module 122 for queuing;
it will be appreciated that the first clock module 123 is used to provide a uniform timing pulse and standard time to all system modules.
It should be noted that, in an actual use environment, the sending queue module 122 needs to transmit a plurality of types of communication messages, such as active pulse signals, reactive pulse signals, and control commands, in addition to the pulse-per-second signals, and at the same time, all the messages are queued in the sending queue module 122, and the sending is performed by using a queuing strategy of a first-in-first-out (FIFO) queue.
The sending queue module 122 is configured to send a wireless message to the sending module 124 based on a preset queuing policy;
the transmitting module 124 is configured to receive the wireless packet sent by the sending queue module 122, further configured to obtain a triggering time and a sending time of the wireless packet based on the first clock module 123, further configured to obtain a sending delay time according to a difference between the triggering time and the sending time, and further configured to send the wireless packet to the table checking apparatus 200 in a wireless transmission manner.
The table checking apparatus 200 includes a receiving unit 210 and a table checking unit 220;
the receiving unit 210 includes a receiving module 211, a timing module 212, a second clock module 213, and a pulse recovery module 214;
the first end of the receiving module 211 is wirelessly connected with the second end of the transmitting module 124, the first end of the timing module 212 is electrically connected with the second end of the receiving module 211, the second end of the timing module 212 is electrically connected with the first end of the pulse recovery module 214, the second end of the pulse recovery module 214 is electrically connected with the table checking unit 220, and the second clock module 213 is electrically connected with the receiving module 211, the timing module 212, and the pulse recovery module 214, respectively;
the second clock module 213 is used to provide a uniform timing pulse and standard time to all system modules.
The receiving module 211 is configured to receive the wireless packet sent by the transmitting module 124, and further configured to analyze the wireless packet to obtain a hop type and a sending delay time; the timing module 212 is further configured to obtain a remaining delay time according to a difference between a preset fixed delay time and a sending delay time, and send the remaining delay time to the timing module;
the timing module 212 is configured to set the remaining delay time as a timing trigger time;
the pulse recovery module 214 is configured to receive the hopping edge type analyzed by the receiving module 211, recover, when the timing of the timing trigger time in the timing module 212 is ended, the corresponding pulse per second signal according to the hopping edge type, and send the pulse per second signal to the table checking unit 220;
the meter checking unit 220 is configured to perform daily timing error detection on the pulse-per-second signal after receiving the pulse-per-second signal.
Further, on the basis of the two embodiments of the wireless pulse-per-second transmission system with fixed delay, the sending unit 120 is further configured to define a sequence number in the wireless message, and the receiving unit 210 is further configured to send a response message to the sending unit 120 after receiving the wireless message sent by the sending unit 120, where the response message includes the same sequence number as the wireless message, and the response message is used to indicate that the receiving unit 210 successfully receives the wireless message.
It should be noted that, in a specific embodiment, a field is added in the wireless packet, the field defines a sequence number corresponding to the wireless packet, the sequence number of the initial packet is 1, and the sequence number increases with each different type of wireless packet, and meanwhile, the sequence numbers of the response packets corresponding to each wireless packet are the same, so that the communication state of the wireless packet can be clearly determined, and the communication management of the wireless packet is facilitated.
Further, on the basis of the two embodiments of the wireless pulse-per-second transmission system with fixed delay, the sending unit 120 is further configured to determine whether the waiting response time for receiving the response message exceeds a first preset threshold when the response message is not received, and is further configured to retransmit the wireless message to the receiving module 211 when the waiting response time is determined to exceed the first preset threshold; the wireless message retransmission method is also used for judging whether the retransmission times of the wireless message exceed a second preset threshold value or not; the wireless message sending device is also used for obtaining the current sending time of the current sending times of the wireless message when judging that the sending times of the wireless message does not exceed a second preset threshold; and the wireless message sending device is also used for updating the sending delay time according to the difference value between the triggering time and the current sending time, and marking the wireless message as a failure message when judging that the retransmission times of the wireless message exceeds a second preset threshold value, thereby stopping sending the wireless message marked as the failure message.
In an embodiment, the sending unit 120 sends the wireless message 0001 to the receiving unit 210, after receiving the wireless message 0001, the receiving unit 210 replies the response message 0001 to the sending unit 120, and if the sending unit 120 successfully receives the response message, it is determined that the pulse-per-second signal has been normally transmitted through the wireless signal, and the transmission of the wireless message is normally completed. Subsequently, when the electric meter device 100 detects a next pulse-to-second hopping signal again, the sending unit 120 sends the wireless message 0002 to the receiving unit 210 again, if the sending unit 120 fails to receive the response message 0002 successfully, and meanwhile, when the sending unit 120 waits for a response time of 1ms, the response time has exceeded the first preset threshold of 0.9ms, and the response message 0002 is still not received, it is determined that the table checking device 200200 has not normally received the message, at this time, the sending delay time of the message is recalculated according to the formula Td ═ T2-T1, the wireless message 0002 is retransmitted, and if the number of times of sending the wireless message has not exceeded 4 times (the preset second threshold is 4 times), the above steps are repeatedly executed; if the number of times of sending the wireless message exceeds 4, the wireless message is marked as a failure message, so that the wireless message marked as the failure message is stopped from being sent, and the failure message is treated as a discarded message. Meanwhile, the subsequent wireless message transmission is analogized.
By introducing the timeout retransmission mechanism, the embodiment not only reduces the timing error, but also improves the data transmission efficiency.
Further, on the basis of the two embodiments of the wireless pulse-per-second transmission system with fixed delay, the receiving unit 210 is further configured to, after receiving the wireless packet, parse the wireless packet to obtain a serial number of the wireless packet, and further configured to, according to the serial number, determine that the wireless packet is an unprocessed wireless packet or a processed wireless packet, when the wireless packet is determined to be an unprocessed wireless packet, parse the unprocessed wireless packet to obtain a hop type and a transmission delay time, and when the wireless packet is determined to be a processed wireless packet, mark the corresponding wireless packet as a discarded packet, thereby stopping receiving the wireless packet marked as a discarded packet.
It can be understood that the wireless packet corresponding to each hop edge trigger has a unique serial number, the serial number of the wireless packet is obtained through parsing by the receiving unit 210, whether the processed wireless packet is processed or unprocessed can be determined according to the serial number, the processed wireless packet is marked as a discarded packet, and the discarded packet is not received and processed any more, so that the data processing efficiency is improved.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A wireless pulse per second transmission method with fixed time delay is characterized by comprising the following steps:
s1: receiving a second pulse signal generated in advance by a metering unit through a transmitting terminal on the electric meter side;
s2: capturing a jumping edge triggered by the pulse per second signal, acquiring a triggering moment corresponding to the jumping edge, generating a wireless message according to a preset format, and defining a field containing initial delay time in the wireless message;
s3: sending the wireless message to a receiving end of a checking meter side in a wireless transmission mode through a transmitting end of the electric meter side, acquiring the sending time of the wireless message, obtaining sending delay time according to the difference value of the triggering time and the sending time, and changing the initial delay time into the sending delay time, wherein the wireless message comprises a hopping edge type and the sending delay time;
s4: after receiving the wireless message through the receiving end of the checking table side, analyzing the wireless message to obtain the hopping edge type and the sending delay time;
s5: obtaining the residual delay time according to the difference value between the preset fixed delay time and the sending delay time;
s6: and timing according to the residual delay time, when the timing of the residual delay time is finished, obtaining a corresponding pulse per second according to the type of the jump edge, and then carrying out daily timing error verification on the pulse per second signal.
2. The fixed-delay wireless PPS transmission method according to claim 1, further comprising:
defining a serial number in the wireless message through a transmitting terminal of the electric meter side, and after receiving the wireless message through a receiving terminal of the meter checking side, sending a response message to the transmitting terminal of the electric meter side, wherein the response message comprises the same serial number as the wireless message, and the response message is used for indicating that the receiving terminal successfully receives the wireless message.
3. The fixed-delay wireless PPS transmission method according to claim 2, further comprising:
s311: judging whether the response message is received or not through the transmitting terminal of the ammeter side, and executing the step S312 if the transmitting terminal of the ammeter side does not receive the response message;
s312: judging whether the waiting response time for receiving the response message exceeds a first preset threshold value or not through the transmitting terminal at the electric meter side, if so, executing the step S311, and if so, executing the step S313;
s313: judging whether the retransmission times of the wireless message exceeds a second preset threshold value or not through the transmitting end of the electric meter side, if not, acquiring the current transmitting time of the current transmitting times of the wireless message, so as to update the transmitting delay time according to the difference value between the triggering time and the current transmitting time, retransmitting the wireless message to the receiving end of the electric meter side, and then executing the steps S311-S313, if the transmitting end of the electric meter side judges that the times of transmitting the wireless message exceeds the second preset threshold value, marking the wireless message as a failure message, and stopping transmitting the wireless message marked as the failure message.
4. The fixed-delay wireless PPS transmission method according to claim 3, further comprising:
after the wireless message is received by the receiving end of the meter checking side, the wireless message is analyzed to obtain a serial number of the wireless message, the wireless message is judged to be an unprocessed wireless message or a processed wireless message according to the serial number, if the wireless message is judged to be the unprocessed wireless message, the wireless message is analyzed to obtain the jump edge type and the sending delay time, if the wireless message is judged to be the processed wireless message, the corresponding wireless message is marked to be a discarded message, and the wireless message marked to be the discarded message is stopped being received.
5. A fixed-delay wireless pulse-per-second transmission system, comprising: the ammeter device and the meter checking device;
the ammeter device comprises a metering unit and a sending unit;
the metering unit is used for generating a pulse per second signal;
the sending unit is used for capturing a jumping edge triggered by the pulse per second signal after receiving the pulse per second signal generated by the metering unit, and acquiring a trigger time corresponding to the jumping edge; the wireless message sending module is further configured to generate a wireless message according to a preset format and send the wireless message to the table checking device in a wireless transmission mode, define a field containing initial delay time in the wireless message, obtain sending time for sending the wireless message to the table checking device, obtain sending delay time according to a difference value between the triggering time and the sending time, change the initial delay time into the sending delay time, and enable the wireless message to include a hopping edge type and the sending delay time;
the table checking device comprises a receiving unit and a table checking unit;
the receiving unit is configured to receive the wireless packet sent by the sending unit, and further configured to analyze the wireless packet to obtain the type of the hopping edge and the sending delay time; the clock is also used for obtaining the residual delay time according to the difference value between the preset fixed delay time and the sending delay time, and sending the pulse per second signal to the table checking unit after obtaining the corresponding pulse per second signal according to the jumping edge type when the timing of the residual delay time is finished;
and the meter checking unit is used for receiving the pulse per second signal and then carrying out daily timing error detection on the pulse per second signal.
6. The wireless PPS transmission system with fixed time delay according to claim 5, wherein the sending unit comprises a processing module, a sending queue module, a first clock module and a transmitting module;
the first end of the processing module is electrically connected with the metering unit, the second end of the processing module is electrically connected with the first end of the sending queue module, the second end of the sending queue module is electrically connected with the first end of the transmitting module, and the first clock module is respectively electrically connected with the processing module, the sending queue module and the transmitting module;
the processing module is used for capturing a jump edge triggered by the pulse per second signal after receiving the pulse per second signal generated by the metering unit, and is also used for acquiring a trigger time corresponding to the jump edge based on the first clock module; the wireless message sending module is also used for generating a wireless message according to a preset format and transferring the wireless message to the sending queue module for queuing;
the sending queue module is used for sending the wireless message to the sending module based on a preset queuing strategy;
the transmitting module is configured to receive the wireless packet sent by the sending queue module, acquire a sending time of the wireless packet based on the first clock module, obtain a sending delay time according to a difference between the triggering time and the sending time, and send the wireless packet to the table checking device in a wireless transmission manner.
7. The fixed-delay wireless PPS transmission system according to claim 6,
the receiving unit comprises a receiving module, a timing module, a second clock module and a pulse recovery module;
the first end of the receiving module is wirelessly connected with the second end of the transmitting module, the first end of the timing module is electrically connected with the second end of the receiving module, the second end of the timing module is electrically connected with the first end of the pulse recovery module, the second end of the pulse recovery module is electrically connected with the table detection unit, and the second clock module is respectively and electrically connected with the receiving module, the timing module and the pulse recovery module;
the receiving module is configured to receive the wireless packet sent by the transmitting module, and further configured to analyze the wireless packet to obtain the type of the hopping edge and the sending delay time; the timing module is further used for obtaining the residual delay time according to the difference value between the preset fixed delay time and the sending delay time, and sending the residual delay time to the timing module;
the timing module is used for setting the residual delay time as timing trigger time;
the pulse recovery module is configured to receive the hopping edge type analyzed by the receiving module, recover, when the timing of the timing trigger time in the timing module is ended, a corresponding pulse per second signal according to the hopping edge type, and send the pulse per second signal to the table checking unit.
8. The system according to claim 7, wherein the sending unit is further configured to define a sequence number in the wireless packet, and the receiving unit is further configured to send a response packet to the sending unit after receiving the wireless packet sent by the sending unit, where the response packet includes the same sequence number as the wireless packet, and the response packet is used to indicate that the receiving unit successfully receives the wireless packet.
9. The fixed-delay wireless PPS transmission system according to claim 8,
the sending unit is further configured to determine whether a waiting response time for receiving the response packet exceeds a first preset threshold when the response packet is not received, determine whether the retransmission times of the wireless packet exceeds a second preset threshold when the waiting response time is determined to exceed the first preset threshold, and obtain a current sending time of the current sending times of the wireless packet when the retransmission times for sending the wireless packet is determined not to exceed the second preset threshold; the wireless message sending module is further configured to update the sending delay time according to a difference between the triggering time and the current sending time, and retransmit the wireless message to the receiving module; and the wireless message sending module is further configured to mark the wireless message as a failure message when it is determined that the number of times of retransmission of the wireless message exceeds the second preset threshold, so as to stop sending the wireless message marked as the failure message.
10. The system according to claim 9, wherein the receiving unit is further configured to, after receiving the wireless packet, parse the wireless packet to obtain a serial number of the wireless packet, determine that the wireless packet is an unprocessed wireless packet or a processed wireless packet according to the serial number, and when determining that the wireless packet is the unprocessed wireless packet, parse the unprocessed wireless packet to obtain the type of the transition edge and the transmission delay time, and when determining that the processed wireless packet is the processed wireless packet, mark the corresponding wireless packet as a discarded packet, thereby stopping receiving the wireless packet marked as the discarded packet.
CN202011505870.6A 2020-12-18 2020-12-18 Wireless pulse-per-second transmission method and system with fixed time delay Active CN112671476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011505870.6A CN112671476B (en) 2020-12-18 2020-12-18 Wireless pulse-per-second transmission method and system with fixed time delay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011505870.6A CN112671476B (en) 2020-12-18 2020-12-18 Wireless pulse-per-second transmission method and system with fixed time delay

Publications (2)

Publication Number Publication Date
CN112671476A CN112671476A (en) 2021-04-16
CN112671476B true CN112671476B (en) 2021-12-28

Family

ID=75406539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011505870.6A Active CN112671476B (en) 2020-12-18 2020-12-18 Wireless pulse-per-second transmission method and system with fixed time delay

Country Status (1)

Country Link
CN (1) CN112671476B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106950426A (en) * 2017-05-03 2017-07-14 国网四川省电力公司电力科学研究院 Three-phase electric energy meter and its measuring method based on wide area synchro measure
CN109471058A (en) * 2018-09-29 2019-03-15 国网浙江省电力有限公司金华供电公司 A kind of field-checking measurement error system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454143B (en) * 2017-06-30 2020-06-02 国网四川省电力公司电力科学研究院 Intelligent inspection method for metering performance of digital electric energy meter in wide-area measurement mode
TR201711552A2 (en) * 2017-08-04 2017-12-21 Enerjisa Enerji Anonim Sirketi MOBILE COUNTER FAULT TEST DEVICE
CN109725278A (en) * 2018-12-10 2019-05-07 浙江瑞银电子有限公司 Verification system and method in a kind of contactless smart meter room
CN211826461U (en) * 2019-12-05 2020-10-30 国网浙江省电力有限公司电力科学研究院 Wireless photoelectric pulse connecting device for ammeter detection
CN111028495B (en) * 2019-12-06 2022-04-01 中国电力科学研究院有限公司 Method and device for calibrating electric energy meter based on low-power-consumption Bluetooth communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106950426A (en) * 2017-05-03 2017-07-14 国网四川省电力公司电力科学研究院 Three-phase electric energy meter and its measuring method based on wide area synchro measure
CN109471058A (en) * 2018-09-29 2019-03-15 国网浙江省电力有限公司金华供电公司 A kind of field-checking measurement error system and method

Also Published As

Publication number Publication date
CN112671476A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
Dunkels The contikimac radio duty cycling protocol
Mahmood et al. Delay and jitter characterization for software-based clock synchronization over WLAN using PTP
JP6881906B2 (en) Methods and devices for validating data transmission time stamps
US8693351B2 (en) System and method for deterministic testing of packet error rate in electronic devices
TWI466489B (en) Wireless network device and automatically setting configuration method thereof
Uwase et al. Experimental comparison of radio duty cycling protocols for wireless sensor networks
EP2965458B1 (en) Dithering circuit for sampling serial data transmission
CN103618588A (en) Automatic Baud rate detection method and detection module
CN110928176B (en) Multifunctional time service equipment supporting multiple time service technologies
CN112671476B (en) Wireless pulse-per-second transmission method and system with fixed time delay
JP4827866B2 (en) Packet monitoring device
CN101951300A (en) Method for realizing accurate time tick of Ethernet
US9629109B2 (en) Techniques for optimizing network event timers
CN112700632A (en) Method and system for transmitting wireless metering pulse in multiple channels
CN112235096B (en) Data communication method, data receiving method and device and data sending method and device
US10638290B2 (en) Communication terminal and communication system
Uwase et al. Poster: ContikiMAC, some critical issues with the CC2420 Radio.
WO2012068982A1 (en) Method and apparatus for terminal calibration and terminal
CN103747479B (en) Wireless communications method and Wireless Telecom Equipment
CN106455039A (en) Communication terminal, network and method for improving time synchronization accuracy in power distribution network
CN101820312B (en) Definite-time detection method for frame synchronization of TETRA base station baseband receiver
JPH08204629A (en) Radio communication system
CN114845186A (en) Real-time communication processing method, device and system for multi-channel pulse signals
CN116527729B (en) Distributed data management system based on Web3
CN201663587U (en) Transmission interface circuit of single transmission line

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