CN107749787A - Synchronizing signal generating method, apparatus and system - Google Patents
Synchronizing signal generating method, apparatus and system Download PDFInfo
- Publication number
- CN107749787A CN107749787A CN201710891873.XA CN201710891873A CN107749787A CN 107749787 A CN107749787 A CN 107749787A CN 201710891873 A CN201710891873 A CN 201710891873A CN 107749787 A CN107749787 A CN 107749787A
- Authority
- CN
- China
- Prior art keywords
- source
- synchronizing signal
- synchronisation source
- external synchronization
- effective
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0644—External master-clock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock or time synchronisation in a node; Intranode synchronisation
- H04J3/0688—Change of the master or reference, e.g. take-over or failure of the master
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The present invention relates to data acquisition technology field, and in particular to a kind of synchronizing signal generating method, apparatus and system for multi-channel data acquisition.Wherein, method comprises the following steps:Detect whether to have accessed external synchronization source;When having accessed external synchronization source, effective synchronisation source is judged whether;When effective synchronisation source be present, synchronizing signal is generated based on effective synchronisation source.It is used for the collection of multichannel data by filtering out effective synchronisation source from extraneous synchronisation source, and based on effective synchronisation source generation synchronizing signal, the synchronizing signal, ensures the synchronization of multi-channel data acquisition;The synchronizing signal derives from external synchronization source, has higher reliability;In addition, the present invention supports multiple external synchronization source accesses, different application scenarios are suitable for.
Description
Technical field
The present invention relates to data acquisition technology field, and in particular to a kind of synchronizing signal for multi-channel data acquisition generates
Method, apparatus and system.
Background technology
With the development of process of industrialization, industrial automatization also more and more higher.Data acquisition be industrial circle the most
A kind of common technological means, data acquisition provide foundation for technical Analysis and control strategy.Temperature, pressure, flow etc. are each
Kind of sensor is very common in industry spot, and the signal such as the temperature that collects, pressure, flow is also analog signalses.In work
When industry Automated condtrol is applied, generally require to convert analog signals into digital data transmission, storage, so as to be advantageous to being controlled
Object is monitored, controlled.
Therefore, often it is required for gathering the multichannel relevant mode analog quantity number of synchronization simultaneously in many engineerings and research field
According to.However, the multi-analog data that system is read if asynchronous sampling simultaneously, reality is caused at the time of being different,
This will reduce the degree of accuracy of system and precision, result even in harvester and the result of calculation of mistake occur or cause control dress
Put and produce incorrect action behavior.
To solve the above problems, inventor is in engineering is researched and developed, by introducing single synchronizing signal in harvester,
To ensure the synchronization of gathered data.But inventor is had found by studying, if introducing single synchronous letter in harvester
Number, in the case where the synchronizing signal is lost, harvester will be unable to work on, so as to cause the less stable of system.
The content of the invention
In view of this, the embodiments of the invention provide a kind of synchronizing signal generating method, apparatus and system, to solve multichannel
Gathered data it is asynchronous caused by the stability of a system difference the problem of.
First aspect present invention provides a kind of synchronizing signal generating method, comprises the following steps:
Detect whether to have accessed external synchronization source;
When having accessed external synchronization source, effective synchronisation source is judged whether;
When effective synchronisation source be present, based on the effectively synchronisation source generation synchronizing signal.
Alternatively, after described the step of generating synchronizing signal based on effective synchronisation source, in addition to:Described in record
The parameter of synchronizing signal;
Whether effective synchronisation source that monitoring is currently used in production synchronizing signal is lost or abnormal;
When the effective synchronisation source for being currently used in production synchronizing signal is lost or be abnormal, judge whether to deposit described in return
Effective synchronisation source the step of.
Alternatively, after the step of effective synchronisation source is judged whether described in return, when in the absence of described effectively same
During step source, the parameter generation synchronizing signal based on record.
Alternatively, when in the absence of effective synchronisation source, synchronizing signal is generated based on parameter preset.
Alternatively, described the step of judging whether effective synchronisation source, including:
Detect whether each port accesses external synchronization source respectively;
When external synchronization source is accessed in the port, whether within a preset range the frequency of the external synchronization source is judged;
When the external synchronization source frequency within a preset range when, it is effective synchronisation source to judge the external synchronization source.
Alternatively, each port is corresponding with pre-set priority information, and effective synchronisation source is judged whether described
The step of in, detect whether the synchronisation source accessed each port is effective synchronisation source successively according to the precedence information.
Alternatively, the parameter includes frequency and phase.
Second aspect of the present invention provides a kind of synchronization signal generation device, including:
Detection unit, for detecting whether having accessed external synchronization source;
Judging unit, when having accessed external synchronization source, for judging whether effective synchronisation source;
Synchronizing signal generation unit, when effective synchronisation source be present, for same based on the effectively synchronisation source generation
Walk signal.
Third aspect present invention provides a kind of synchronizing signal generation system, including:
AM access module, for connecting external synchronization source;
Synchronizing signal generation module, for the synchronization letter according to a first aspect of the present invention or any one of first aspect
Number generation method generation synchronizing signal.
Fourth aspect present invention provides a kind of non-transient computer readable storage medium storing program for executing, and the non-transient computer is readable
Storage medium stores computer instruction, and the computer instruction is used to make computer perform first aspect present invention or first aspect
Any one of synchronizing signal generating method.
Fifth aspect present invention provides a kind of computer program product, and the computer program product is non-including being stored in
Calculation procedure in transitory computer readable storage medium, the computer program include programmed instruction, when described program instructs
When being computer-executed, the computer is set to perform described in any one optional mode of first aspect or first aspect
Synchronizing signal generating method.
In above-mentioned technical proposal in the embodiment of the present invention, have the advantages that:
1. synchronizing signal generating method provided by the invention, comprises the following steps:Detect whether to have accessed external synchronization source;
When having accessed external synchronization source, effective synchronisation source is judged whether;When effective synchronisation source be present, had based on described
Imitate synchronisation source generation synchronizing signal.By filtering out effective synchronisation source from extraneous synchronisation source, and based on effective synchronisation source life
Into synchronizing signal, the synchronizing signal is used for the collection of multichannel data, ensures the synchronization of multi-channel data acquisition;The synchronizing signal source
In external synchronization source, there is higher reliability;In addition, the present invention supports multiple external synchronization source accesses, it is suitable for different
Application scenarios.
2. synchronizing signal generating method provided by the invention, wherein, described synchronous based on the effectively synchronisation source generation
After the step of signal, in addition to:Record the parameter of the synchronizing signal;Monitoring is currently used in the effective same of production synchronizing signal
Whether step source loses or exception;When the effective synchronisation source for being currently used in production synchronizing signal is lost or be abnormal, institute is returned
State the step of judging whether effective synchronisation source.By being lost to each extraneous synchronisation source configuration preference level, operating synchronisation source
Lose or abnormal, can automatic on-line switch to time higher priority sync source, so as to keep the stability of system operation.
3. synchronizing signal generating method provided by the invention, wherein, effective synchronisation source is being judged whether described in return
The step of after, when in the absence of effective synchronisation source, parameter based on record generation synchronizing signal.In all external syncs
Source lose or exception in the case of, system can produce analogue synchronization signal according to the parameter recorded, realize synchronous protect
Hold, ensure system steady operation.
4. synchronizing signal generating method provided by the invention, wherein, when in the absence of effective synchronisation source, based on parameter preset
Generate synchronizing signal.By parameter preset, in the case of without external synchronization source, it is ensured that system worked well;It is outer having
During portion's synchronisation source access, current external synchronisation source can be recorded automatically.
5. synchronizing signal generating method provided by the invention, wherein, described the step of judging whether effective synchronisation source,
Including:Detect whether each port accesses external synchronization source respectively;When external synchronization source is accessed in the port, judge described outer
Within a preset range whether the frequency of portion's synchronisation source;When the external synchronization source frequency within a preset range when, described in judgement
External synchronization source is effective synchronisation source.Synchronizing signal is limited by setting minimum and the peak of synchronous signal frequency
Scope, it ensure that the degree of accuracy of sampling.
6. synchronization signal generation device provided by the invention, including:Detection unit, for detecting whether having accessed outside same
Step source;Judging unit, when having accessed external synchronization source, for judging whether effective synchronisation source;Synchronizing signal generation is single
Member, when effective synchronisation source be present, for based on the effectively synchronisation source generation synchronizing signal.By from extraneous synchronisation source
In filter out effective synchronisation source, and adopting for multichannel data is used for based on effective synchronisation source generation synchronizing signal, the synchronizing signal
Collection, ensures the synchronization of multi-channel data acquisition;The synchronizing signal derives from external synchronization source, has higher reliability;In addition, this
Multiple external synchronization source accesses are supported in invention, are suitable for different application scenarios.
Brief description of the drawings
The features and advantages of the present invention can be more clearly understood by reference to accompanying drawing, accompanying drawing is schematically without that should manage
Solve to carry out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows a flow chart specifically illustrated of synchronizing signal generating method in the embodiment of the present invention 1;
Fig. 2 shows a flow chart specifically illustrated of synchronizing signal generating method in the embodiment of the present invention 2;
Fig. 3 shows a flow chart specifically illustrated of synchronizing signal generating method in the embodiment of the present invention 3;
Fig. 4 shows a structure chart specifically illustrated of synchronization signal generation device in the embodiment of the present invention 4;
Fig. 5 shows another structure chart specifically illustrated of synchronization signal generation device in the embodiment of the present invention 4;
Fig. 6 shows a structure chart specifically illustrated of the second judging unit in the embodiment of the present invention 4;
Fig. 7 shows a structure chart specifically illustrated of synchronizing signal generation system in the embodiment of the present invention 5;
Fig. 8 shows another structure chart specifically illustrated of synchronizing signal generation system in the embodiment of the present invention 5;
Fig. 9 shows a hardware structure diagram specifically illustrated of synchronizing signal generation system in the embodiment of the present invention 6.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not having
There is the every other embodiment made and obtained under the premise of creative work, belong to the scope of protection of the invention.
Embodiment 1
The present embodiment provides a kind of synchronizing signal generating method, applied in synchronizing signal generation system, as shown in figure 1,
Comprise the following steps:
Step S11, detect whether to have accessed external synchronization source.In the case where testing result is to be, step S12 is performed;
Otherwise, other operations are performed.
In the present embodiment, the waveform of external synchronization source can be triangular wave or square wave.By the letter for detecting access
It whether there is rising edge or trailing edge in number, if in the presence of, then it represents that now accessed with external synchronization source;Otherwise, represent do not have
Extraneous synchronisation source access.
External synchronization source in the present embodiment is represented using square wave so that synchronizing signal generation system can easily be sentenced
Break and whether there is rising edge or trailing edge signal, so as to reduce the work of system delay, improve the operating efficiency of system.
In addition, other operations in the present embodiment can be to wait for a period of time, detect whether again with external sync
Source is accessed;Can also be based on parameter preset generation synchronizing signal.
Step S12, judge whether effective synchronisation source.In the case where the judgment result is yes, step S13 is performed;It is no
Then, other operations are performed.
In the case where detecting the presence of external synchronization source, judge in all external synchronization sources with the presence or absence of effectively synchronous
Source.In the present embodiment, by whether within a preset range to judge the relevant parameter of each external synchronization source successively, if in default model
In enclosing, then it represents that effective synchronisation source be present;If not within a preset range, then it represents that in the absence of effective synchronisation source.Wherein, it is outside
The relevant parameter of synchronisation source can be the frequency of the external synchronization source, phase either one of amplitude or its any group
Close.For example, parameter can be frequency and phase or frequency and amplitude etc..
Other operations in the present embodiment, can be that the parameter based on record generates synchronizing signal or according to pre-
If parameter generation synchronizing signal.
Step S13, synchronizing signal is generated based on effective synchronisation source.
In the present embodiment, the parameter of synchronizing signal, i.e. synchronizing signal is generated according to the parameter of the effective synchronisation source filtered out
It is identical with the corresponding parameter of effective synchronisation source.
The present embodiment is generated synchronously by filtering out effective synchronisation source from extraneous synchronisation source, and based on effective synchronisation source
Signal, the synchronizing signal are used for the collection of multichannel data, ensure the synchronization of multi-channel data acquisition;The synchronizing signal is from outside
Synchronisation source, there is higher reliability;In addition, the present invention supports multiple external synchronization source accesses, different applied fields is suitable for
Scape.
Embodiment 2
The present embodiment provides a kind of synchronizing signal generating method, applied in synchronizing signal generation system, as shown in Fig. 2
Comprise the following steps:
Step S21, detect whether to have accessed external synchronization source.It is identical with step S11 in embodiment 1, it will not be repeated here.
Step S22, judge whether effective synchronisation source.In the case where the judgment result is yes, step S23 is performed;It is no
Then, synchronizing signal is generated based on parameter preset.
In the present embodiment, in the case where detecting the presence of external synchronization source, judge in all external synchronization sources whether
In the presence of effective synchronisation source.By whether within a preset range judging the frequency of each external synchronization source successively, so as to judge whether
In the presence of effective synchronisation source.
Specifically, step S22 comprises the following steps:
Step S221, detects whether each port accesses external synchronization source respectively.In the case that judged result is to be, hold
Row step S222;Otherwise, synchronizing signal is generated based on parameter preset.
In the present embodiment, external synchronization source is represented with square wave, therefore is detecting whether each port accesses external synchronization source
When, it need to only detect and whether there is rising edge or trailing edge in accessed external synchronization source;If in the presence of, then it represents that accessed in port
External synchronization source;If it is not present, then it represents that do not access external synchronization source.
Wherein, in the synchronizing signal generation system, the concrete numerical value of parameter preset can be according to wanted gathered data
Device and sampling precision are configured, i.e., default frequency and phase value enter according to the service condition of synchronizing signal generation system
Row is set.
By parameter preset, in the case of without external synchronization source, it is ensured that system worked well;There is external sync
When source is accessed, current external synchronisation source can be recorded automatically.
In the present embodiment, in the case where detecting no external synchronization source access, given birth to by default frequency and phase value
Into synchronizing signal, that is, the synchronizing signal generated is square wave, and the frequency of the square wave is the frequency of systemic presupposition, and the phase value of square wave is
The phase value of systemic presupposition.
Step S222, whether within a preset range to judge the frequency of external synchronization source.In the case where the judgment result is yes,
It is effective synchronisation source to judge the external synchronization source, performs step S23;Otherwise, synchronizing signal is generated based on parameter preset.
In the present embodiment, in the case where detecting with external synchronization source, the judgement of effective synchronisation source is carried out.Specifically
Ground, each port for being used to access external synchronization source in synchronizing signal generation system is corresponding with default precedence information, in step
In rapid S222, detect whether the synchronisation source accessed each port is effective synchronization successively according to the precedence information of each port
Source.For example, a total of 6 ports of synchronizing signal generation system are used to access external synchronization source, the priority of port 1- ports 6
And reduce, i.e., the highest priority of port 1, the priority of port 6 are minimum;First, the outside by judging to access in port 1
The frequency of synchronisation source whether within a preset range, if, then it represents that port 1 access external synchronization source be effective synchronisation source;If
It is no, then whether within a preset range the frequency of external synchronization source accessed in port 2- ports 6 is judged successively, until having filtered out
Untill imitating synchronisation source.
As a kind of optional embodiment of the present embodiment, because power electronics is generally arrived with synchronizing signal interval in 80us
Between 200us, therefore, frequency limits are respectively set to:12.5kHz、5kHz.
In the present embodiment, the model of synchronizing signal is limited by setting minimum and the peak of synchronous signal frequency
Enclose, ensure that the degree of accuracy of sampling.
Wherein, judge the frequency of external synchronization source of each port access whether within a preset range before, it is necessary to first
Calculate the frequency and phase value of each external synchronization source.
Specifically, external synchronization source is square wave, and the interval time of two square wave rising edges was 1 cycle, that is, passed through measurement
Interval time between two continuous square wave rising edges, you can calculate the frequency of the external synchronization source.If for example, two sides
Ripple rising edge interval time is 125us, then the frequency of the external synchronization source is 8kHz.In addition, square wave rising edge phase is regarded as 0,
The phase value of external synchronization source is on the basis of counting starting point during synchronizing signal generation system electrification start-up operation, is measured
Phase difference value between rising edge or trailing edge;Synchronously keeping internal system to have a baseline sinusoidal wave, square wave rising edge or
At the trailing edge moment, the phase of baseline sinusoidal wave is the phase value of external synchronization source.
In the present embodiment, if judging, all external synchronization sources are not effective synchronisation sources, the parameter based on record
Generate synchronizing signal.
Step S23, synchronizing signal is generated based on effective synchronisation source.It is identical with the step S13 of embodiment 1, it will not be repeated here.
Embodiment 3
The present embodiment provides a kind of synchronizing signal generating method, applied in synchronizing signal generation system, as shown in figure 3,
Comprise the following steps:
Step S31, detect whether to have accessed external synchronization source.It is identical with step S21 in embodiment 2, it will not be repeated here.
Step S32, judge whether effective synchronisation source.It is identical with step S22 in embodiment 2, it will not be repeated here.
Step S33, synchronizing signal is generated based on effective synchronisation source.It is identical with the step S23 of embodiment 2, it will not be repeated here.
Step S34, the parameter of recording synchronism signal.
Parameter in the present embodiment is frequency and phase, and the parameter of recording synchronism signal, i.e. record generate the synchronizing signal
Effective synchronisation source frequency and phase.By the parameter of recording synchronism signal, ensure be currently used in production synchronizing signal
Effective synchronisation source loses or exception, and in the absence of in the case of effective synchronisation source, synchronizing signal generation system can generate together
Signal is walked, so as to ensure system worked well.
Whether step S35, effective synchronisation source that detection is currently used in production synchronizing signal are lost or abnormal.In testing result
In the case of being, step S36 is performed;Otherwise, step S33 is performed.
In the present embodiment, effective synchronisation source is square wave, and effectively synchronisation source is lost, and represents to connect to effective synchronisation source
During continuous sampling, if within the adjacent spaces time, the missing that at least two sampled points be present then represents that effective synchronisation source is lost;This
Outside, effective synchronisation source is abnormal, represents judging the frequency of effective synchronisation source not within a preset range.
Step S36, judge whether effective synchronisation source.In the case where the judgment result is yes, step S33 is performed;It is no
Then, step S37 is performed.
Step S37, the parameter generation synchronizing signal based on record.
In the present embodiment, detecting that effective synchronisation source loses or abnormal, i.e., the external synchronization source loss of this priority or
In the case of exception, start to lock the external synchronization source of next priority, if the external synchronization source without next priority, more than
The parameter generation synchronizing signal of the effective synchronisation source once recorded.
, can by the way that to each external synchronisation source configuration preference level, operating synchronisation source loses or exception in the present embodiment
Automatic on-line switches to time higher priority sync source, so as to keep the stability of system operation.
Embodiment 4
The present embodiment provides a kind of synchronization signal generation device, for performing any one of embodiment 1 to embodiment 3
Synchronizing signal generating method, as shown in figure 4, the synchronization signal generation device includes:
Detection unit 41, for detecting whether having accessed external synchronization source;
First judging unit 42, when having accessed external synchronization source, for judging whether effective synchronisation source;
Synchronizing signal generation unit 43, it is synchronous for being generated based on effective synchronisation source when effective synchronisation source be present
Signal.
Synchronization signal generation device in the present embodiment, by filtering out effective synchronisation source, and base from extraneous synchronisation source
In effective synchronisation source generation synchronizing signal, the synchronizing signal is used for the collection of multichannel data, ensures the same of multi-channel data acquisition
Step;The synchronizing signal derives from external synchronization source, has higher reliability;In addition, the present invention supports multiple external synchronization sources
Access, is suitable for different application scenarios.
As a kind of optional embodiment of the present embodiment, as shown in figure 5, the synchronization signal generation device includes:
Recording unit 44, the parameter for recording synchronism signal;
Whether monitoring unit 45, effective synchronisation source that production synchronizing signal is currently used in for monitoring are lost or abnormal;
Second judging unit 46, for when the effective synchronisation source loss or abnormal for being currently used in production synchronizing signal
When, the step of judging whether effective synchronisation source described in return.
As another optional embodiment of the present embodiment, wherein, as shown in fig. 6, the first judging unit 42, including:
Detection sub-unit 421, for detecting whether each port accesses external synchronization source respectively;
Judgment sub-unit 422, for when external synchronization source is accessed in port, judging the frequency of external synchronization source whether pre-
If in scope.
Embodiment 5
The present embodiment provides a kind of synchronizing signal generation system, for performing any one of embodiment 1 to embodiment 3
Synchronizing signal generating method, as shown in fig. 7, the synchronizing signal generation system include:
AM access module 51, for connecting external synchronization source;
Synchronizing signal generation module 52, for the synchronizing signal generation according to any one of embodiment 1 to embodiment 3
Method generates synchronizing signal.
As a kind of optional embodiment of the present embodiment, as shown in figure 8, the synchronizing signal generation system core uses
FPGA, wherein, FPGA selection Spartan-6FPGA XC6SLX45-3FG (G) 676.Interface mainly includes 6 road light incoming interface (ST
Type) and 1 road light outgoing interface (ST types).
System receives external synchronization source by light incoming interface 1 to light incoming interface 6, sets light incoming interface 1 to light incoming interface 6
From high to low, acquiescence synchronous signal frequency is 6.4kHz to priority.
Synchronizing signal generation module 52 includes synchronizing signal computing module 521 and synchronizing signal generation module in FPGA
522.Wherein, synchronizing signal computing module 521 is used for according to priority the external synchronization source of detection light incoming interface 1 first, if inspection
It is effective synchronisation source to measure external synchronization source, then enters horizontal lock, calculates the frequency and phase of effective synchronisation source;Synchronizing signal is produced
Raw module 522, produce synchronizing signal for the frequency according to effective synchronisation source and phase and export.
If FPGA does not detect light and enters 1 external synchronization source, the external synchronization source of automatic detection time high priority,
Until lowest priority external synchronization source;If detecting external synchronization source, current external synchronisation source is locked as;If do not detect
To external synchronization source, then with parameter preset generation synchronizing signal output.
A little lost if current external synchronisation source has, export the synchronizing signal of the parameter generation of last record, and recognized
External synchronization source for corresponding optical interface is problematic, continually looks for current external synchronisation source, if traveling through 1 time, without effectively synchronous
Source, then exported with predeterminated frequency, keep system worked well.
Embodiment 6
Fig. 9 is the hardware architecture diagram of synchronizing signal generation system provided in an embodiment of the present invention, as shown in figure 9, should
Equipment includes one or more processors 61 and memory 62, in Fig. 9 by taking a processor 61 as an example.Wherein, processor 61
It can be connected with memory 62 by bus or other modes, in Fig. 9 exemplified by being connected by bus.
Processor 61 can be central processing unit (Central Processing Unit, CPU).Processor 61 can be with
For other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
The chips such as discrete hardware components, or the combination of above-mentioned all kinds of chips.General processor can be microprocessor or the processing
Device can also be any conventional processor etc..
Memory 62 is used as a kind of non-transient computer readable storage medium storing program for executing, available for storing non-transient software program, non-
Transient computer executable program and module, program refers to as corresponding to the synchronizing signal generating method in the embodiment of the present invention
Order/module.Processor 61 is stored in non-transient software program, instruction and module in memory 62 by operation, so as to hold
The various function application of row server and data processing, that is, realize in above-described embodiment, synchronizing signal generating method.
Memory 62 can include storing program area and storage data field, wherein, storing program area can storage program area,
Application program required at least one function;Storage data field can store to be created according to using for synchronization signal generation device
Data etc..In addition, memory 62 can include high-speed random access memory, non-transient memory can also be included, such as
At least one disk memory, flush memory device or other non-transient solid-state memories.In certain embodiments, memory
62 is optional including that can pass through network connection to synchronization relative to the remotely located memory of processor 61, these remote memories
Signal generating apparatus.The example of above-mentioned network include but is not limited to internet, intranet, LAN, mobile radio communication and
It is combined.
One or more of modules are stored in the memory 62, when by one or more of processors 61
During execution, the synchronizing signal generating method any one of embodiment 1 to embodiment 3 is performed.
The said goods can perform the method that the embodiment of the present invention is provided, and possesses the corresponding functional module of execution method and has
Beneficial effect.Not ins and outs of detailed description in the present embodiment, for details, reference can be made in embodiment as shown in Figure 1 to Figure 3
Associated description.
Embodiment 7
The embodiment of the present invention additionally provides a kind of non-transient computer storage medium, and the computer-readable storage medium is stored with
Computer executable instructions, the computer executable instructions can perform the synchronous letter any one of embodiment 1 to embodiment 3
Number generation method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk
(Hard Disk Drive, abbreviation:) or solid state hard disc (Solid-State Drive, SSD) etc. HDD;The storage medium is also
The combination of the memory of mentioned kind can be included.
It is to lead to it will be understood by those skilled in the art that realizing all or part of flow in above-described embodiment method
Computer program is crossed to instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (ROM) or random access memory (RAM) etc..
Although being described in conjunction with the accompanying embodiments of the invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case of various modification can be adapted and modification, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.
Claims (10)
1. a kind of synchronizing signal generating method, it is characterised in that comprise the following steps:
Detect whether to have accessed external synchronization source;
When having accessed external synchronization source, effective synchronisation source is judged whether;
When effective synchronisation source be present, based on the effectively synchronisation source generation synchronizing signal.
2. generation method according to claim 1, it is characterised in that described synchronous based on the effectively synchronisation source generation
After the step of signal, in addition to:Record the parameter of the synchronizing signal;
Whether effective synchronisation source that monitoring is currently used in production synchronizing signal is lost or abnormal;
When the effective synchronisation source for being currently used in production synchronizing signal is lost or be abnormal, judged whether described in return
The step of imitating synchronisation source.
3. generation method according to claim 2, it is characterised in that effective synchronisation source is being judged whether described in return
The step of after, when in the absence of effective synchronisation source, parameter based on record generation synchronizing signal.
4. generation method according to claim 1, it is characterised in that when in the absence of effective synchronisation source, based on pre-
Setting parameter generates synchronizing signal.
5. according to the generation method any one of claim 1-4, it is characterised in that described to judge whether effectively together
The step of step source, including:
Detect whether each port accesses external synchronization source respectively;
When external synchronization source is accessed in the port, whether within a preset range the frequency of the external synchronization source is judged;
When the external synchronization source frequency within a preset range when, it is effective synchronisation source to judge the external synchronization source.
6. generation method according to claim 5, it is characterised in that each port is corresponding with pre-set priority letter
Breath, in described the step of judging whether effective synchronisation source, each port institute is detected according to the precedence information successively
Whether the synchronisation source of access is effective synchronisation source.
7. according to the generation method any one of claim 2-4, it is characterised in that the parameter includes frequency and phase
Position.
A kind of 8. synchronization signal generation device, it is characterised in that including:
Detection unit, for detecting whether having accessed external synchronization source;
Judging unit, when having accessed external synchronization source, for judging whether effective synchronisation source;
Synchronizing signal generation unit, when effective synchronisation source be present, for based on the synchronous letter of the effectively synchronisation source generation
Number.
9. a kind of synchronizing signal generates system, it is characterised in that including:
AM access module, for connecting external synchronization source;
Synchronizing signal generation module, it is same for the synchronizing signal generating method generation according to any one of claim 1-7
Walk signal.
10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited
Computer instruction is stored up, the computer instruction is used to make computer perform claim require the synchronizing signal any one of 1-7
Generation method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710891873.XA CN107749787A (en) | 2017-09-27 | 2017-09-27 | Synchronizing signal generating method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710891873.XA CN107749787A (en) | 2017-09-27 | 2017-09-27 | Synchronizing signal generating method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107749787A true CN107749787A (en) | 2018-03-02 |
Family
ID=61255851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710891873.XA Pending CN107749787A (en) | 2017-09-27 | 2017-09-27 | Synchronizing signal generating method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107749787A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113541843A (en) * | 2021-07-13 | 2021-10-22 | 烟台东方威思顿电气有限公司 | Synchronization and time keeping method for synchronous sampling signal |
CN114323542A (en) * | 2022-03-08 | 2022-04-12 | 中国空气动力研究与发展中心低速空气动力研究所 | Multi-signal acquisition synchronization method for wind tunnel dynamic test |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1176752A2 (en) * | 2000-07-26 | 2002-01-30 | Sony Corporation | Clock supply circuit |
CN101394244A (en) * | 2007-09-17 | 2009-03-25 | 中兴通讯股份有限公司 | Non-homogeneous time clock region frame synchronization signal generating method in time division base station system |
CN101467373A (en) * | 2006-06-09 | 2009-06-24 | 日本电气株式会社 | Communication system, transmission device, reception device, and synchronization method |
CN101860430A (en) * | 2010-06-24 | 2010-10-13 | 中兴通讯股份有限公司 | Device and method for implementing optical network unit switching clock source |
CN101895385A (en) * | 2010-07-26 | 2010-11-24 | 国电南瑞科技股份有限公司 | Time-setting clock system of merging unit for realizing clock switching |
CN105071887A (en) * | 2015-06-30 | 2015-11-18 | 许继集团有限公司 | Time synchronization method for process level device of intelligent substation |
-
2017
- 2017-09-27 CN CN201710891873.XA patent/CN107749787A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1176752A2 (en) * | 2000-07-26 | 2002-01-30 | Sony Corporation | Clock supply circuit |
CN101467373A (en) * | 2006-06-09 | 2009-06-24 | 日本电气株式会社 | Communication system, transmission device, reception device, and synchronization method |
CN101394244A (en) * | 2007-09-17 | 2009-03-25 | 中兴通讯股份有限公司 | Non-homogeneous time clock region frame synchronization signal generating method in time division base station system |
CN101860430A (en) * | 2010-06-24 | 2010-10-13 | 中兴通讯股份有限公司 | Device and method for implementing optical network unit switching clock source |
CN101895385A (en) * | 2010-07-26 | 2010-11-24 | 国电南瑞科技股份有限公司 | Time-setting clock system of merging unit for realizing clock switching |
CN105071887A (en) * | 2015-06-30 | 2015-11-18 | 许继集团有限公司 | Time synchronization method for process level device of intelligent substation |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113541843A (en) * | 2021-07-13 | 2021-10-22 | 烟台东方威思顿电气有限公司 | Synchronization and time keeping method for synchronous sampling signal |
CN113541843B (en) * | 2021-07-13 | 2023-10-27 | 烟台东方威思顿电气有限公司 | Synchronization and time keeping method for synchronous sampling signal |
CN114323542A (en) * | 2022-03-08 | 2022-04-12 | 中国空气动力研究与发展中心低速空气动力研究所 | Multi-signal acquisition synchronization method for wind tunnel dynamic test |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103909325B (en) | A kind of welding quality monitoring system | |
JP6757385B2 (en) | Programmable logic controller and main unit | |
CN102184267B (en) | Abnormal data filtration method for interference elimination of automatic data acquisition system | |
CN101619989B (en) | System and method for acquiring and analyzing remote data of bridge | |
CN110850244B (en) | Local discharge defect time domain map diagnosis method, system and medium based on deep learning | |
JP2020013527A (en) | Programmable logic controller and program formation assistance device | |
CN107749787A (en) | Synchronizing signal generating method, apparatus and system | |
CN201345048Y (en) | Data acquisition and analysis system | |
CN102609501B (en) | Data cleaning method based on real-time historical database | |
CN103713170A (en) | Rare anomaly triggering in a test and measurement instrument | |
CN204667117U (en) | A kind of based on the adaptive analog quantity detecting device of general A/D sensing range | |
CN114492629A (en) | Abnormality detection method, abnormality detection device, electronic apparatus, and storage medium | |
CN110166049A (en) | Analog-to-digital conversion datum drift automatic compensating method and device | |
CN204439108U (en) | A kind of multichannel Temperature Humidity Sensor automatic detection device | |
CN105158607B (en) | A kind of dependent multichannel analog amount method of real-time | |
CN107103657B (en) | Sanitation vehicle working state collector and collecting method | |
CN111679834B (en) | Automatic burning system and method for internet of things module | |
CN1900731B (en) | Logic module detecting system and method | |
CN103063247B (en) | A kind of transmission sensors balance midpoint detection method and device | |
CN103401534B (en) | Based on the method for the final voltage fast prediction of RC circuit discharge and recharge | |
JP2000242327A (en) | Logging device | |
CN103632041A (en) | Data processing method and device | |
CN105184198A (en) | Detecting and protecting method and mobile terminal | |
CN112272157B (en) | Method and device for converting host IP address, computer equipment and storage medium | |
JP6986125B2 (en) | Programmable logic controller and main unit |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 102209 18 Riverside Avenue, Changping District science and Technology City, Beijing Applicant after: Global energy Internet Institute, Inc. Applicant after: State Grid Corporation of China Address before: 102209 18 Riverside Avenue, Changping District science and Technology City, Beijing Applicant before: Global energy Internet Institute, Inc. Applicant before: State Grid Corporation of China |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180302 |