CN104730483A - Wireless pulse synchronous sampling method - Google Patents

Wireless pulse synchronous sampling method Download PDF

Info

Publication number
CN104730483A
CN104730483A CN201510110101.9A CN201510110101A CN104730483A CN 104730483 A CN104730483 A CN 104730483A CN 201510110101 A CN201510110101 A CN 201510110101A CN 104730483 A CN104730483 A CN 104730483A
Authority
CN
China
Prior art keywords
pulse
counting
counting data
wireless
main frame
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.)
Granted
Application number
CN201510110101.9A
Other languages
Chinese (zh)
Other versions
CN104730483B (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.)
Zhengzhou Wonder Electrical Power Co Ltd
Original Assignee
Zhengzhou Wonder Electrical 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 Zhengzhou Wonder Electrical Power Co Ltd filed Critical Zhengzhou Wonder Electrical Power Co Ltd
Priority to CN201510110101.9A priority Critical patent/CN104730483B/en
Publication of CN104730483A publication Critical patent/CN104730483A/en
Application granted granted Critical
Publication of CN104730483B publication Critical patent/CN104730483B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a wireless pulse synchronous sampling method. The wireless pulse synchronous sampling method comprises the following steps that 1, a mainframe and a wireless sampler are configured; 2, the wireless sampler transmits pulse signals and pulse counting data packages to the mainframe, pulse counting data package counters are arranged in the pulse counting data packages, one pulse counting data package counter is added every time one pulse counting data package is sent, and the mainframe is internally and additionally provided with a pulse signal counter and an old counter used for storing the received pulse counting data package counters; 3, when the mainframe receives one pulse signal, one pulse signal counter of the mainframe is added, when the mainframe receives one pulse countering data package, pulse counting is finished, the old counter stores the pulse counting data package counter received this time, and the mainframe takes out the pulse counting data package to be processed. The method can avoid influence of data loss on error measurement.

Description

A kind of wireless pulses synchronous sampling method
Technical field
The inventive method belongs to high for directional error field tests, specifically, relate to a kind of wireless pulses synchronous sampling method.
Background technology
Supply in low meter measuring apparatus error testing process to massive quantity power supply and measurement and height at the scene, because measurement meter distance CT mutual inductor, PT mutual inductor are distant, often cannot carry out the test of measuring apparatus composition error, its technology short slab is that measurement meter impulse sampling is poor to the real-time of PT, CT mutual inductor.Having in prior art and adopt wireless telecommunications to realize synchronized sampling, namely carrying out error testing by being sent to main frame after wireless samplers sample pulse signal, although this to some extent solves problem, still existing defects.Because wireless telecommunications are very easily by the interference of peripheral environment, data packetloss phenomenon will inevitably be there is, user needs to bear the gross error that data packetloss causes, and, due to cannot additional data be increased in pulse data signal bag, therefore also its pulse-counting data bag with follow-up arrival cannot be associated, so when packet loss phenomenon occurs, can cause data corruption.
How to address this problem, all there is no good solution in the industry all the time.
Summary of the invention
The object of the invention is for the deficiencies in the prior art, provide one to be easy to realize, and the wireless pulses synchronous sampling method that whether there is pulse data and lose can be detected.
To achieve these goals, the technical solution adopted in the present invention is: a kind of wireless pulses synchronous sampling method, and the method comprises the following steps:
Step 1: configure host and wireless sampling thief, wherein, installs a main wireless synchronization module in described main frame, installs one from wireless synchronization module in described wireless sampling thief; Described wireless sampling thief was carried out counting formed pulse-counting data bag by external terminal interrupt trap pulse signal within sample time to wireless sampling thief described host setting sample time;
Step 2: described wireless sampling thief sends pulse signal and pulse-counting data bag to described main frame, arranges pulse-counting data package counting facility in described pulse-counting data bag, often send a pulse-counting data bag, described pulse-counting data package counting facility adds 1; Described main frame inside increases pulse count signal device and the old counter for preserving the pulse-counting data package counting facility received;
Step 3: after described main frame receives a pulse signal, the pulse count signal device of self is added 1, after described main frame receives a pulse-counting data bag, step-by-step counting terminates, this pulse-counting data package counting facility received preserved by described old counter, described main frame takes out described pulse-counting data bag, processes as follows:
3.1 when the pulse-counting data package counting facility of the last time of preserving in old counter add 1 equal this pulse-counting data package counting facility time, then impulse meter packet is not lost;
3.2 when the value of pulse count signal device equals the pulse-counting data bag count value received, then pulse signal is not lost;
3.3 when the condition of 3.1 and 3.2 meets simultaneously, then adjacent two pulse signals are not lost, and pulse-counting data bag is not lost, and the pulse signal that described main frame carries out according to receiving carries out error testing;
3.4 when pulsing dropout, and described main frame does not carry out error testing, forces this pulse-counting data package counting facility to be set to 0 simultaneously, re-starts impulse sampling until the condition of 3.1 and 3.2 meets simultaneously;
3.5 when pulsing enumeration data packet loss, and described main frame does not carry out error testing, directly abandons pulse-counting data bag and waits for that the condition of 3.1 and 3.2 meets simultaneously.
Hinge structure of the present invention has outstanding substantive distinguishing features and marked improvement, specifically, in the inventive method, pulse-counting data package counting facility is set in pulse-counting data bag, pulse count signal device and the old counter for preserving the pulse-counting data package counting facility received is increased in main frame inside, after impulse sampling terminates, can be informed in by the consistance of each counter of comparison respectively the loss whether occurring pulse signal or pulse-counting data bag in data transfer procedure, thus avoid pulse data to lose impact on error measure.
Accompanying drawing explanation
Fig. 1 is the wireless pulses synchronized sampling sequential chart of the inventive method.
Embodiment
Below by embodiment, technical scheme of the present invention is described in further detail.
A kind of wireless pulses synchronous sampling method, the method comprises the following steps:
Step 1: configure host and wireless sampling thief, wherein, installs a main wireless synchronization module in described main frame, installs one from wireless synchronization module in described wireless sampling thief; Described wireless sampling thief was carried out counting formed pulse-counting data bag by external terminal interrupt trap pulse signal within sample time to wireless sampling thief described host setting sample time;
Step 2: described wireless sampling thief sends pulse signal and pulse-counting data bag to described main frame, arranges pulse-counting data package counting facility in described pulse-counting data bag, often send a pulse-counting data bag, described pulse-counting data package counting facility adds 1; Described main frame inside increases pulse count signal device and the old counter for preserving the pulse-counting data package counting facility received;
Step 3: after described main frame receives a pulse signal, the pulse count signal device of self is added 1, after described main frame receives a pulse-counting data bag, step-by-step counting terminates, this pulse-counting data package counting facility received preserved by described old counter, described main frame takes out described pulse-counting data bag, processes as follows:
3.1 when the pulse-counting data package counting facility of the last time of preserving in old counter add 1 equal this pulse-counting data package counting facility time, then impulse meter packet is not lost;
3.2 when the value of pulse count signal device equals the pulse-counting data bag count value received, then pulse signal is not lost;
3.3 when the condition of 3.1 and 3.2 meets simultaneously, then adjacent two pulse signals are not lost, and pulse-counting data bag is not lost, and the pulse signal that described main frame carries out according to receiving carries out error testing;
3.4 when pulsing dropout, and described main frame does not carry out error testing, forces this pulse-counting data package counting facility to be set to 0 simultaneously, re-starts impulse sampling until the condition of 3.1 and 3.2 meets simultaneously;
3.5 when pulsing enumeration data packet loss, and described main frame does not carry out error testing, directly abandons pulse-counting data bag and waits for that the condition of 3.1 and 3.2 meets simultaneously.
Fig. 1 is the wireless pulses synchronized sampling sequential chart of the inventive method, as shown in FIG.,
S1, S2, S3 ..Sn: the pulse signal of wireless sampling thief;
D1, D2, D3 ... Dn: the impulse meter packet of wireless sampling thief;
T1, T2, T3 ... Tn: the pulse interval of wireless sampling thief;
S1 ', S2 ', S3 ' ... Sn ': the pulse signal that main frame receives;
D1 ', D2 ', D3 ' ... Dn ': the impulse meter packet that main frame receives;
T1 ', T2 ', T3 ' ... Tn ': the pulse interval that main frame receives.
Work as S1 ', S2 ', S3 ' ... after certain dropout in Sn ', main frame can re-start and count the not error of calculation, prevents the appearance of gross error.
Work as D1 ', D2 ', D3 ' ... after certain dropout in Dn ', main frame abandons current data packet, waits for that the packet of next complete match occurs, then carries out error calculation.
In reality test, T1, T2, T3 ... Tn and T1 ', T2 ', T3 ' ... the synchronousness of Tn ' calculates negligible on the impact of error.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; Although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the field are to be understood that: still can modify to the specific embodiment of the present invention or carry out equivalent replacement to portion of techniques feature; And not departing from the spirit of technical solution of the present invention, it all should be encompassed in the middle of the technical scheme scope of request of the present invention protection.

Claims (1)

1. a wireless pulses synchronous sampling method, is characterized in that: the method comprises the following steps:
Step 1: configure host and wireless sampling thief, wherein, installs a main wireless synchronization module in described main frame, installs one from wireless synchronization module in described wireless sampling thief; Described wireless sampling thief was carried out counting formed pulse-counting data bag by external terminal interrupt trap pulse signal within sample time to wireless sampling thief described host setting sample time;
Step 2: described wireless sampling thief sends pulse signal and pulse-counting data bag to described main frame, arranges pulse-counting data package counting facility in described pulse-counting data bag, often send a pulse-counting data bag, described pulse-counting data package counting facility adds 1; Described main frame inside increases pulse count signal device and the old counter for preserving the pulse-counting data package counting facility received;
Step 3: after described main frame receives a pulse signal, the pulse count signal device of self is added 1, after described main frame receives a pulse-counting data bag, step-by-step counting terminates, this pulse-counting data package counting facility received preserved by described old counter, described main frame takes out described pulse-counting data bag, processes as follows:
3.1 when the pulse-counting data package counting facility of the last time of preserving in old counter add 1 equal this pulse-counting data package counting facility time, then impulse meter packet is not lost;
3.2 when the value of pulse count signal device equals the pulse-counting data bag count value received, then pulse signal is not lost;
3.3 when the condition of 3.1 and 3.2 meets simultaneously, then adjacent two pulse signals are not lost, and pulse-counting data bag is not lost, and the pulse signal that described main frame carries out according to receiving carries out error testing;
3.4 when pulsing dropout, and described main frame does not carry out error testing, forces this pulse-counting data package counting facility to be set to 0 simultaneously, re-starts impulse sampling until the condition of 3.1 and 3.2 meets simultaneously;
3.5 when pulsing enumeration data packet loss, and described main frame does not carry out error testing, directly abandons pulse-counting data bag and waits for that the condition of 3.1 and 3.2 meets simultaneously.
CN201510110101.9A 2015-03-13 2015-03-13 A kind of wireless pulses synchronous sampling method Active CN104730483B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510110101.9A CN104730483B (en) 2015-03-13 2015-03-13 A kind of wireless pulses synchronous sampling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510110101.9A CN104730483B (en) 2015-03-13 2015-03-13 A kind of wireless pulses synchronous sampling method

Publications (2)

Publication Number Publication Date
CN104730483A true CN104730483A (en) 2015-06-24
CN104730483B CN104730483B (en) 2017-07-28

Family

ID=53454562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510110101.9A Active CN104730483B (en) 2015-03-13 2015-03-13 A kind of wireless pulses synchronous sampling method

Country Status (1)

Country Link
CN (1) CN104730483B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968640A (en) * 2017-11-16 2018-04-27 湖南工业大学 Sample accumulation formula disturbing pulse filter method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120020445A1 (en) * 2010-01-11 2012-01-26 Distasi Stephen J Wireless sensor synchronization methods
US20120163299A1 (en) * 2009-08-31 2012-06-28 International Business Machines Corporation Wireless communication system
CN102932084A (en) * 2012-10-17 2013-02-13 航天科工深圳(集团)有限公司 Sampling clock synchronizing method and system
CN103326802A (en) * 2013-05-31 2013-09-25 燕山大学 Wireless network system for achieving synchronous acquisition, synchronous acquisition device and method
CN103713552A (en) * 2013-12-23 2014-04-09 国电南瑞科技股份有限公司 Self-adaptive dynamic synchronous sampling control device and method based on pulse per second
CN103856281A (en) * 2012-12-04 2014-06-11 天津中兴软件有限责任公司 Data synchronization method
CN103941622A (en) * 2014-04-28 2014-07-23 国家电网公司 Method for adopting high-accuracy pulse per second frequency multiplication to produce sampling pulse based on FPGA

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120163299A1 (en) * 2009-08-31 2012-06-28 International Business Machines Corporation Wireless communication system
US20120020445A1 (en) * 2010-01-11 2012-01-26 Distasi Stephen J Wireless sensor synchronization methods
CN102932084A (en) * 2012-10-17 2013-02-13 航天科工深圳(集团)有限公司 Sampling clock synchronizing method and system
CN103856281A (en) * 2012-12-04 2014-06-11 天津中兴软件有限责任公司 Data synchronization method
CN103326802A (en) * 2013-05-31 2013-09-25 燕山大学 Wireless network system for achieving synchronous acquisition, synchronous acquisition device and method
CN103713552A (en) * 2013-12-23 2014-04-09 国电南瑞科技股份有限公司 Self-adaptive dynamic synchronous sampling control device and method based on pulse per second
CN103941622A (en) * 2014-04-28 2014-07-23 国家电网公司 Method for adopting high-accuracy pulse per second frequency multiplication to produce sampling pulse based on FPGA

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
崔琪楣 等: "基于超宽带无线传感网络的导频优化脉冲同步算法", 《传感技术学报》 *
李澄 等: "智能变电站分布式同步采样组网技术", 《电网技术》 *
杨泓渊 等: "无缆遥测地震仪网络同步采样技术", 《仪表技术与传感器》 *
赵家庆 等: "基于分布式同步方法的智能变电站采样值组网技术", 《电力系统自动化》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968640A (en) * 2017-11-16 2018-04-27 湖南工业大学 Sample accumulation formula disturbing pulse filter method

Also Published As

Publication number Publication date
CN104730483B (en) 2017-07-28

Similar Documents

Publication Publication Date Title
CN103795522B (en) The punctual compensation circuit of pulse per second (PPS) and method
MX2016000455A (en) Nct scc activation and control apparatus and method, management method, and base station apparatus.
WO2012148205A3 (en) Method for executing mdt in wireless communication system and device for supporting same
CN109462452B (en) Method for improving sampling synchronization precision of transient recording type fault indicator
CN109714221B (en) Method, device and system for determining network data packet
CN102916759A (en) Method for calibrating E1 data frame precision time and processing time mark information
CN106787199A (en) A kind of portable substation simulated testing system and method
CN105162649B (en) For the test method and its system of npp safety grade network performance index
CN104320240A (en) Method and device for providing global clock in system
CN106572347B (en) MIPI signal resolution method and apparatus
CN102539975B (en) Method for carrying out synchronous on-line detection on data of 10kV merging units (MUs) based on voltage-phase comparison
CN106154062A (en) A kind of wireless telemetering nuclear phase instrument
CN104730483A (en) Wireless pulse synchronous sampling method
CN103595588A (en) Method for accurately measuring asynchronous Ethernet circuit time delay
CN104614659A (en) Automatic test system and automatic test method
CN103595582B (en) High-accuracy synchronous system detection device applied to intelligent transformer substation
CN103298028B (en) Data package processing method and equipment
CN106294097B (en) Application program testing method and device
CN102638339B (en) Method and device for realizing precision time synchronization
CN107566072A (en) A kind of secondary device clock synchronizing method based on dual time correction
CN103647615A (en) Method and apparatus for delay jitter elimination during message transmission process
CN106526319A (en) Synchronous phase measurement method and system
CN104569901B (en) A kind of detecting system of intelligent electric energy meter
CN106375055A (en) Method and device for measuring clock error of network device
CN203490353U (en) Full-automatic voltage checking instrument aging checking system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant