CN104730483B - A kind of wireless pulses synchronous sampling method - Google Patents
A kind of wireless pulses synchronous sampling method Download PDFInfo
- Publication number
- CN104730483B CN104730483B CN201510110101.9A CN201510110101A CN104730483B CN 104730483 B CN104730483 B CN 104730483B CN 201510110101 A CN201510110101 A CN 201510110101A CN 104730483 B CN104730483 B CN 104730483B
- Authority
- CN
- China
- Prior art keywords
- pulse
- counting
- main frame
- wireless
- counting data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of wireless pulses synchronous sampling method, and this method comprises the following steps:Step 1:Configure main frame and wireless sampler;Step 2:The wireless sampler sends to the main frame and pulse-counting data package counting facility is set in pulse signal and pulse-counting data bag, the pulse-counting data bag, often sends a pulse-counting data bag, and the pulse-counting data package counting facility adds 1;Increase pulse count signal device and the old counter for preserving the pulse-counting data package counting facility received inside the main frame;Step 3:After the main frame receives a pulse signal, the pulse count signal device of itself is added 1, after the main frame receives a pulse-counting data bag, step-by-step counting terminates, the old counter preserves the pulse-counting data package counting facility that this is received, and the main frame takes out the pulse-counting data bag and handled.The inventive method is avoided that influence of the loss of data to error measure.
Description
Technical field
The inventive method belongs to high and supplies directional error testing field, specifically, relate to a kind of wireless pulses and synchronously adopts
Quadrat method.
Background technology
Massive quantity power supply and measurement and height are supplied during low meter metering device error testing at the scene, because measurement meter is mutual apart from CT
Sensor, PT transformers are distant, can not often carry out metering device composition error test, and its technology short slab is measurement meter
The real-time of impulse sampling to PT, CT transformer is poor.Have in the prior art and realize synchronized sampling using wireless telecommunications, i.e., by nothing
Sent after line samplers sample pulse signal to main frame and carry out error testing, although this solves problem to a certain extent,
It is to still suffer from defect.Because wireless telecommunications are easily disturbed by peripheral environment, data packetloss phenomenon necessarily occurs, user needs
Gross error caused by data packetloss is born, additional data can not be increased by being additionally, since in pulse data signal bag, therefore also
Itself and the pulse-counting data subsequently arrived bag can not be associated, so when packet loss phenomenon occurs, data corruption can be caused.
How this problem is solved, all the time in the industry all without good solution.
The content of the invention
The purpose of the present invention is to be easily achieved in view of the shortcomings of the prior art there is provided one kind, and can detect whether exist
The wireless pulses synchronous sampling method that pulse data is lost.
To achieve these goals, the technical solution adopted in the present invention is:A kind of wireless pulses synchronous sampling method, should
Method comprises the following steps:
Step 1:Main frame and wireless sampler are configured, wherein, a main wireless synchronization module is installed in the main frame, it is described
One is installed in wireless sampler from wireless synchronization module;The host setting sample time is described wireless to wireless sampler
Sampler by external terminal interrupt trap pulse signal and carries out counting and forms pulse-counting data bag within sample time;
Step 2:The wireless sampler sends pulse signal and pulse-counting data bag, the pulsimeter to the main frame
Pulse-counting data package counting facility is set in number packet, a pulse-counting data bag, the pulse-counting data is often sent
Package counting facility adds 1;Increase pulse count signal device inside the main frame and based on preserving the pulse-counting data bag received
The old counter of number device;
Step 3:After the main frame receives a pulse signal, the pulse count signal device of itself is added 1, when described
Main frame is received after a pulse-counting data bag, and this step-by-step counting terminates, and the old counter preserves what this was received
Pulse-counting data package counting facility, the main frame takes out the pulse-counting data bag, handles as follows:
The 3.1 pulse-counting data package counting facilities for working as the last time preserved in old counter plus 1 and are equal to this step-by-step counting
During data packet count device, then pulse counter packet is not lost;
3.2 when the value of pulse count signal device is equal to the pulse-counting data bag count value received, then pulse signal
Do not lose;
3.3 when 3.1 and 3.2 condition is met simultaneously, then two neighboring pulse signal is not lost, and step-by-step counting number
Do not lost according to bag, the main frame carries out error testing according to the pulse signal received;
3.4 when pulsing dropout, and the main frame is without error testing, while forcing this pulsimeter
Number data packet count device is set to 0, re-starts impulse sampling until 3.1 and 3.2 condition is met simultaneously;
3.5 when pulsing enumeration data packet loss, and the main frame directly abandons step-by-step counting without error testing
Packet waits 3.1 and 3.2 condition to meet simultaneously.
The present invention has substantive distinguishing features and the marked improvement of protrusion, specifically, the inventive method compared with the prior art
In pulse-counting data package counting facility is set in pulse-counting data bag, increase pulse count signal device and use inside main frame
It is each by comparing respectively after impulse sampling terminates in the old counter for preserving the pulse-counting data package counting facility received
The uniformity of counter can be informed in the loss for whether occurring pulse signal or pulse-counting data bag in data transfer procedure,
So as to avoid pulse data from losing the influence to error measure.
Brief description of the drawings
Fig. 1 is the wireless pulses synchronized sampling timing diagram of the inventive method.
Embodiment
Below by embodiment, technical scheme is described in further detail.
A kind of wireless pulses synchronous sampling method, this method comprises the following steps:
Step 1:Main frame and wireless sampler are configured, wherein, a main wireless synchronization module is installed in the main frame, it is described
One is installed in wireless sampler from wireless synchronization module;The host setting sample time is described wireless to wireless sampler
Sampler by external terminal interrupt trap pulse signal and carries out counting and forms pulse-counting data bag within sample time;
Step 2:The wireless sampler sends pulse signal and pulse-counting data bag, the pulsimeter to the main frame
Pulse-counting data package counting facility is set in number packet, a pulse-counting data bag, the pulse-counting data is often sent
Package counting facility adds 1;Increase pulse count signal device inside the main frame and based on preserving the pulse-counting data bag received
The old counter of number device;
Step 3:After the main frame receives a pulse signal, the pulse count signal device of itself is added 1, when described
Main frame is received after a pulse-counting data bag, and this step-by-step counting terminates, and the old counter preserves what this was received
Pulse-counting data package counting facility, the main frame takes out the pulse-counting data bag, handles as follows:
The 3.1 pulse-counting data package counting facilities for working as the last time preserved in old counter plus 1 and are equal to this step-by-step counting
During data packet count device, then pulse counter packet is not lost;
3.2 when the value of pulse count signal device is equal to the pulse-counting data bag count value received, then pulse signal
Do not lose;
3.3 when 3.1 and 3.2 condition is met simultaneously, then two neighboring pulse signal is not lost, and step-by-step counting number
Do not lost according to bag, the main frame carries out error testing according to the pulse signal received;
3.4 when pulsing dropout, and the main frame is without error testing, while forcing this pulsimeter
Number data packet count device is set to 0, re-starts impulse sampling until 3.1 and 3.2 condition is met simultaneously;
3.5 when pulsing enumeration data packet loss, and the main frame directly abandons step-by-step counting without error testing
Packet waits 3.1 and 3.2 condition to meet simultaneously.
Fig. 1 is the wireless pulses synchronized sampling timing diagram of the inventive method, as shown in FIG.,
S1, S2, S3 ..Sn:The pulse signal of wireless sampler;
D1, D2, D3 ... Dn:The pulse counter packet of wireless sampler;
T1, T2, T3 ... Tn:The pulse interval of wireless sampler;
S1 ', S2 ', S3 ' ... Sn ':The pulse signal that main frame is received;
D1 ', D2 ', D3 ' ... Dn ':The pulse counter packet that main frame is received;
T1 ', T2 ', T3 ' ... Tn ':The pulse interval that main frame is received.
Work as S1 ', S2 ', S3 ' ... after some dropout in Sn ', main frame can re-start counting and not calculate mistake
Difference, prevents the appearance of gross error.
Work as D1 ', D2 ', D3 ' ... after some dropout in Dn ', main frame abandons current data packet, waits next
The packet of complete match occurs, then carries out error calculation.
In actual test, T1, T2, T3 ... Tn and T1 ', T2 ', T3 ' ... shadow of the Tn ' synchronousness to error
Calculating is rung to can be ignored.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof;To the greatest extent
The present invention is described in detail with reference to preferred embodiments for pipe, those of ordinary skills in the art should understand that:Still
The embodiment of the present invention can be modified or equivalent substitution is carried out to some technical characteristics;Without departing from this hair
The spirit of bright technical scheme, it all should cover among claimed technical scheme scope of the invention.
Claims (1)
1. a kind of wireless pulses synchronous sampling method, it is characterised in that:This method comprises the following steps:
Step 1:Main frame and wireless sampler are configured, wherein, a main wireless synchronization module is installed in the main frame, it is described wireless
One is installed in sampler from wireless synchronization module;The host setting sample time is to wireless sampler, the wireless sampling
Device by external terminal interrupt trap pulse signal and carries out counting and forms pulse-counting data bag within sample time;
Step 2:The wireless sampler sends pulse signal and pulse-counting data bag, the step-by-step counting number to the main frame
According to pulse-counting data package counting facility is set in bag, a pulse-counting data bag, the pulse-counting data bag meter are often sent
Number device adds 1;Increase pulse count signal device and the pulse-counting data package counting facility received for preservation inside the main frame
Old counter;
Step 3:After the main frame receives a pulse signal, the pulse count signal device of itself is added 1, when the main frame
Receive after a pulse-counting data bag, this step-by-step counting terminates, the old counter preserves this pulse received
Enumeration data package counting facility, the main frame takes out the pulse-counting data bag, handles as follows:
The 3.1 pulse-counting data package counting facilities for working as the last time preserved in old counter plus 1 and are equal to this pulse-counting data
During package counting facility, then pulse counter packet is not lost;
3.2 when the value of pulse count signal device is equal to the pulse-counting data bag count value received, then pulse signal does not have
Lose;
3.3 when 3.1 and 3.2 condition is met simultaneously, then two neighboring pulse signal is not lost, and pulse-counting data bag
Do not lose, the main frame carries out error testing according to the pulse signal received;
3.4 when pulsing dropout, and the main frame is without error testing, while forcing this step-by-step counting number
0 is set to according to package counting facility, impulse sampling is re-started until 3.1 and 3.2 condition is met simultaneously;
3.5 when pulsing enumeration data packet loss, and the main frame directly abandons pulse-counting data without error testing
Bag waits 3.1 and 3.2 condition to meet simultaneously.
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 CN104730483A (en) | 2015-06-24 |
CN104730483B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107968640A (en) * | 2017-11-16 | 2018-04-27 | 湖南工业大学 | Sample accumulation formula disturbing pulse filter method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101998616B (en) * | 2009-08-31 | 2014-05-14 | 国际商业机器公司 | Wireless communication system base station and data transmission synchronizing method thereof |
KR20120127715A (en) * | 2010-01-11 | 2012-11-23 | 마이크로스트레인 인코퍼레이티드 | Wireless sensor synchronization methods |
-
2015
- 2015-03-13 CN CN201510110101.9A patent/CN104730483B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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)
Title |
---|
基于分布式同步方法的智能变电站采样值组网技术;赵家庆 等;《电力***自动化》;20131225;第37卷(第24期);第60-65、75页 * |
基于超宽带无线传感网络的导频优化脉冲同步算法;崔琪楣 等;《传感技术学报》;20090131;第22卷(第1期);第100-106页 * |
无缆遥测地震仪网络同步采样技术;杨泓渊 等;《仪表技术与传感器》;20090331(第3期);第15-18页 * |
智能变电站分布式同步采样组网技术;李澄 等;《电网技术》;20140131;第38卷(第1期);第47-51页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104730483A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104076321B (en) | On-line monitoring and evaluating system and method for digital electric energy meter | |
EP3022874B1 (en) | Triangle loopback | |
CN106302019B (en) | A kind of test macro and method of substation data communication network shutdown processing time | |
RU2015149846A (en) | METHOD AND SYSTEM OF UPDATING DIALOGUE ALLOCATION IN AGREEMENT OF COMMUNICATION LINES | |
CN108901026B (en) | Detect the method and apparatus of man-in-the-middle attack | |
WO2013036058A3 (en) | Method and apparatus for channel estimation in a distributed multi-node system | |
CN104730483B (en) | A kind of wireless pulses synchronous sampling method | |
CN105959093A (en) | Serial communication baud rate real-time self-adaption method | |
CN110535888A (en) | Port Scan Attacks detection method and relevant apparatus | |
CN103595588A (en) | Method for accurately measuring asynchronous Ethernet circuit time delay | |
CN104618922B (en) | Measurement result matching process and device in a kind of RTT measurement and positionings system | |
CN103698598B (en) | Ammeter and low error pulse output intent thereof | |
CN103298028B (en) | Data package processing method and equipment | |
CN103595582A (en) | High-accuracy synchronous system detection device applied to intelligent transformer substation | |
CN102539975B (en) | Method for carrying out synchronous on-line detection on data of 10kV merging units (MUs) based on voltage-phase comparison | |
WO2015044201A3 (en) | Optimized procedure for user equipment autonomous mobility | |
CN107888394B (en) | Method and device for positioning network fault reason | |
CN108600395A (en) | A kind of device and method for reminding the variation of user's current network | |
CN102540135A (en) | Separated site calibrator and using method thereof | |
CN105468554A (en) | Method for realizing polarity-adaptive UART simulation | |
CN206788220U (en) | A kind of Power Quality Monitor Device | |
CN108957398A (en) | Wireless device distance measuring method based on linear regression and received signal strength indicator | |
CN103888238A (en) | Method and device for multi-SV-link data synchronization based on network compensation | |
CN107864026A (en) | Aggregated links LOF measurement apparatus and method | |
CN103763088A (en) | Precise time unified management method for centralized serial feature data stream |
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 |