CN109412737A - Control method, data collection system and the storage medium of data collection system - Google Patents

Control method, data collection system and the storage medium of data collection system Download PDF

Info

Publication number
CN109412737A
CN109412737A CN201811429686.0A CN201811429686A CN109412737A CN 109412737 A CN109412737 A CN 109412737A CN 201811429686 A CN201811429686 A CN 201811429686A CN 109412737 A CN109412737 A CN 109412737A
Authority
CN
China
Prior art keywords
acquisition
data
collection system
data collection
terminal
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
CN201811429686.0A
Other languages
Chinese (zh)
Other versions
CN109412737B (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.)
Shenzhen Aerospace Industry Technology Inst Co Ltd
Aerospace Science and Industry Shenzhen Group Co Ltd
Original Assignee
Shenzhen Aerospace Industry Technology Inst Co Ltd
Aerospace Science and Industry Shenzhen Group 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 Shenzhen Aerospace Industry Technology Inst Co Ltd, Aerospace Science and Industry Shenzhen Group Co Ltd filed Critical Shenzhen Aerospace Industry Technology Inst Co Ltd
Priority to CN201811429686.0A priority Critical patent/CN109412737B/en
Publication of CN109412737A publication Critical patent/CN109412737A/en
Application granted granted Critical
Publication of CN109412737B publication Critical patent/CN109412737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a kind of control methods of data collection system, the following steps are included: when the second acquisition terminal receives the synchronization signal of the first acquisition terminal transmission, acquisition time is determined according to the synchronization signal, wherein, each second acquisition terminal of the first terminal timing into data collection system sends synchronization signal;When reaching the acquisition time, data acquisition is carried out.The invention also discloses a kind of data collection system and computer readable storage mediums.The present invention realizes in distributed data acquisition system, the synchronous acquisition of each acquisition terminal acquisition data.

Description

Control method, data collection system and the storage medium of data collection system
Technical field
The present invention relates to field of communication technology more particularly to a kind of control methods of data collection system, data acquisition system System and computer readable storage medium.
Background technique
With the continuous development that China's urban power distribution network is built, the importance of ring network cabinet is increasingly highlighted, and market is to looped network The intelligence of cabinet proposes requirements at the higher level.In order to realize its intelligence, it would be desirable to grasp the various dynamic of ring network cabinet in all directions State behavioral data, therefore acquisition terminal can be arranged to each ring network cabinet, to acquire the data of ring network cabinet.
Currently, in the data collection system with distributed nature constructed according to multiple acquisition terminals, due to distribution It is the characteristics of formula system decentralization, relatively independent between each acquisition terminal, it is easy to form to apply isolated island one by one, it is difficult to unified The synchronous data for obtaining acquisition target (such as ring network cabinet) of an acquisition terminal are controlled, if the time disunity of collected data, just It can not achieve and comprehensive analysis is carried out based on operating status of some time point to acquisition target.
Summary of the invention
The main purpose of the present invention is to provide a kind of control method of data collection system, data collection system and meters Calculation machine readable storage medium storing program for executing, realizes in distributed data acquisition system, the synchronous acquisition of each acquisition terminal acquisition data.
To achieve the above object, the present invention provides a kind of control method of data collection system, the data collection system Control method the following steps are included:
When second acquisition terminal receives the synchronization signal of the first acquisition terminal transmission, adopted according to synchronization signal determination Collect time point, wherein each second acquisition terminal of the first terminal timing into data collection system sends synchronization signal;
When reaching the acquisition time, data acquisition is carried out.
Preferably, it is described the acquisition time reach when, carry out data acquisition the step of include:
When reaching the acquisition time, to preset frequency acquisition, the sensor connecting with each acquisition terminal is controlled Obtain the data of acquisition target;
Acquisition data are generated according to the collected data of the sensor institute.
Preferably, the acquisition data are cross-section data, generate acquisition number according to the collected data of the sensor institute According to the step of include:
When according to being generated with sensor institute's collected data corresponding sampling time and the preset sample frequency Between data;
The cross-section data is generated according to the collected data of the time data and sensor institute.
Preferably, the time of the number of seconds grade of the time data is indicated with century second, wherein in the time data, than The number of seconds grade small time divides according to the preset sample frequency and indicates.
Preferably, the acquisition terminal includes multiple sensors, and the sensor passes through default acquisition channel access Into the acquisition terminal.
Preferably, it is described the acquisition time reach when, carry out data acquisition the step of after, further includes:
By collected acquired data storage in the data buffer storage unit of each acquisition terminal;
The acquisition data complete in the data buffer storage unit are uploaded into database.
Preferably, the control method of the data collection system further include:
When not receiving the synchronization signal that first acquisition terminal is sent within a preset time, to each described the Two acquisition terminals are voted, and highest second acquisition terminal that will vote is updated to first acquisition terminal.
To achieve the above object, the present invention also provides a kind of data collection system, the data collection system includes first Acquisition terminal and the second acquisition terminal, in which: first acquisition terminal, for sending the synchronization of control synchronous data sampling Signal, and for the data according to the synchronous signal acquisition acquisition target;Second acquisition terminal, for according to The data of acquisition target described in synchronous signal acquisition;The data collection system includes:
The data collection system includes memory, processor and is stored on the memory and can be in the processor The control program of the data collection system of upper operation, it is real when the control program of the data collection system is executed by the processor Now such as the step of the control method of above-mentioned data collection system.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages The control program of data collection system is stored on medium, it is real when the control program of the data collection system is executed by processor Now such as the step of the control method of above-mentioned data collection system.
Control method, data collection system and the computer-readable storage medium of data collection system provided by the invention Matter obtains an acquisition terminal in data collection system as the first acquisition terminal, and the data collection system includes multiple The acquisition terminal of distribution connection;First acquisition terminal is controlled with prefixed time interval, synchronous transmission of signal is arrived The acquisition terminal;First acquisition terminal and the acquisition terminal are controlled, is adopted according to the synchronization signal by collected Collection data upload to database.In this way, by being exported by the first acquisition terminal in data collection system for controlling data The synchronization signal of biography obtains acquisition number to other acquisition terminals in system, each acquisition terminal while according to synchronization signal simultaneously According to realizing in distributed data acquisition system, the synchronous acquisition of each acquisition terminal acquisition data.
Detailed description of the invention
Fig. 1 is the hardware running environment schematic diagram for the embodiment terminal that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the control method first embodiment of data collection system of the present invention;
Fig. 3 is the flow diagram of the control method second embodiment of data collection system of the present invention;
Fig. 4 is the flow diagram of the control method 3rd embodiment of data collection system of the present invention;
Fig. 5 is the flow diagram of the control method fourth embodiment of data collection system of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of control method of data collection system of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of control method of data collection system, by whole by the first acquisition in data collection system End output is for controlling the synchronization signal of data upload to other acquisition terminals in system, each acquisition terminal while according to synchronization Signal uploads acquisition data, realizes in distributed data acquisition system, and the upload of the acquisition data of each acquisition terminal is synchronous.
As shown in Figure 1, Fig. 1 is the hardware running environment schematic diagram for the embodiment terminal that the embodiment of the present invention is related to;
The terminal of that embodiment of the invention can be data collection system.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, memory 1002, communication bus 1003. Wherein, communication bus 1003 is for realizing the connection communication between each building block in the terminal.Memory 1002 can be height Fast RAM memory is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1002 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the structure of terminal shown in Fig. 1 was not constituted to end of the embodiment of the present invention The restriction at end may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include data collection system in a kind of memory 1002 of computer storage medium Control program.
In terminal shown in Fig. 1, processor 1001 can be used for calling the data stored in memory 1002 acquisition system The control program of system, and execute following operation:
When second acquisition terminal receives the synchronization signal of the first acquisition terminal transmission, adopted according to synchronization signal determination Collect time point, wherein each second acquisition terminal of the first terminal timing into data collection system sends synchronization signal;
When reaching the acquisition time, data acquisition is carried out.
Further, processor 1001 can call the control program of the data collection system stored in memory 1002, Also execute following operation:
When reaching the acquisition time, to preset frequency acquisition, the sensor connecting with each acquisition terminal is controlled Obtain the data of acquisition target;
Acquisition data are generated according to the collected data of the sensor institute.
Further, the acquisition data are cross-section data, and processor 1001 can call to be stored in memory 1002 The control program of data collection system also executes following operation:
When according to being generated with sensor institute's collected data corresponding sampling time and the preset sample frequency Between data;
The cross-section data is generated according to the collected data of the time data and sensor institute.
Further, processor 1001 can call the control program of the data collection system stored in memory 1002, Also execute following operation:
The time of the number of seconds grade of the time data is indicated with century second, wherein in the time data, than the number of seconds The grade small time divides according to the preset sample frequency and indicates.
Further, processor 1001 can call the control program of the data collection system stored in memory 1002, Also execute following operation:
The acquisition terminal includes multiple sensors, and the sensor is adopted described in by default acquisition channel access Collect in terminal.
Further, processor 1001 can call the control program of the data collection system stored in memory 1002, Also execute following operation:
By the acquired data storage in the data buffer storage unit of each acquisition terminal;
The acquisition data complete in the data buffer storage unit are uploaded into database.
Further, processor 1001 can call the control program of the data collection system stored in memory 1002, Also execute following operation:
When not receiving the synchronization signal that first acquisition terminal is sent within a preset time, to each described the Two acquisition terminals are voted, and highest second acquisition terminal that will vote is updated to first acquisition terminal.
Referring to Fig. 2, in one embodiment, the control method of the data collection system includes:
Step S10, when the second acquisition terminal receives the synchronization signal of the first acquisition terminal transmission, according to the synchronous letter Number determine acquisition time, wherein each second acquisition terminal of the first terminal timing into data collection system is sent Synchronization signal.
In the present embodiment, the data collection system includes the acquisition terminal of multiple distributed connections, the acquisition terminal Including multiple sensors, the sensor is by default acquisition channel access into the acquisition terminal.The application based on point The acquisition terminal of cloth connection constructs data collection system, easy to install, non-maintaining, enormously simplifies engineering difficulty.
By taking the acquisition target of data collection system is ring network cabinet as an example, ring network cabinet, which mainly passes through, installs case station institute terminal D TU additional (Data Transfer unit) data acquisition unit, Lai Shixian power distribution automation function.DTU is whole as the acquisition of ring network cabinet End, main task is collection voltages current data, but DTU has a single function, and acquisition data class is few, information content is small, is not able to satisfy The demand of multisensor access.When building is using multiple DTU as the distributed data acquisition system of acquisition terminal, due to each DTU Between it is relatively independent, it is easy to form one by one apply isolated island.
Therefore, multiple sensors, and the different types of biography of access are had access in order to meet the acquisition terminal of ring network cabinet The demand of sensor, can be in the default acquisition channel of acquisition terminal setting, the default acquisition channel includes 8 tunnel analog quantitys, 16 The sensor acquisition channel of railway digital amount and multichannel protocol communication class can satisfy most of sensor access on the market. It should be noted that analog quantity refers to that direct current or AC signal, digital quantity refer to 0 and 1 binary code, multichannel communication multiple telecommunication agreement can To include Modbus network communication protocol, IEC101 agreement, IEC61850 agreement, user-defined protocol etc..
It should be noted that each acquisition terminal preferably selects high performance ARMCortex-M4 kernel in data collection system Chip is handled, the dominant frequency of ARMCortex-M4 kernel processes chip synchronizes height up to 200MHz, built-in 16 AD of multichannel that can provide Speed sampling and the processing of IEEE1588 Ethernet.
The application, using the interface of unified standard, can support multi-analog to sense in the hardware design of acquisition terminal The access of device, digital sensors, communication protocol class sensor and other class sensors.
The functional module of acquisition terminal is set as general signal input/output module, the signaling interface packet of acquisition terminal Include: general analog acquisition interface (AI) can access direct current output range within 0-20mA (0-5V), exchange output area Sensor within ± 20mA;Generic state amount acquisition interface (DI) can access and open close to switch, travel switch and optical signal Close etc.;General controls output interface (DO) can pick out control relay etc.;Common communication interface (COM) can be accessed serial Mouth, Ethernet and CAN bus protocol class sensor.
It should be noted that the signaling interface of acquisition terminal includes that all data inputs to be processed needed for ring network cabinet are defeated Outgoing interface can satisfy the demand of various users.By taking the voltage acceleration transducer of certain model as an example, output voltage and vibration Speed is directly proportional, output voltage: 0-5V, therefore can be directly connected to the external dc amount interface (AI) of acquisition terminal: Vi1+ ~Vi1-.
In the data collection system, each acquisition terminal can be used as the first acquisition terminal.Terminal can be acquisition and exist A preset acquisition terminal is as the first acquisition terminal when building data collection system.It should be noted that this exemplary terminal It is also possible to the acquisition terminal with the first acquisition terminal characteristic.
First acquisition terminal can be generated and export for controlling each acquisition terminal (packet in data collection system Include the first acquisition terminal) synchronization signals of the data of synchronous acquisition ring network cabinet.It should be noted that the acquisition data can be Each acquisition terminal passes through sensor from the collected data of ring network cabinet.
Second acquisition terminal, can be in distributed data acquisition system, remaining in addition to the first acquisition terminal Acquisition terminal.
Since acquisition terminal uses distributed connection mode, each acquisition terminal is arranged separately between the difference of ring network cabinet In, therefore there are problems that multiple CPU co-ordination simultaneously, that is, need to be timed synchronization between each acquisition terminal Processing.The synchronization signal is IO pulse heartbeat signal, and described first acquisition terminal timing output, one synchronization pulse arrives Acquire remaining acquisition terminal in acquisition system, i.e. the second acquisition terminal.
It should be noted that the timing can be according to the difference of acquisition target, or according to reality to collected Data need to be arranged, such as each second, each minute, each hour, and optionally, the timing is set as each second. For example, the first acquisition terminal can timing one synchronization pulse of output per second to the second acquisition terminal.
In this way, each acquisition terminal in data collection system, which can be realized, all has a synchronization signal simultaneously.Data The first acquisition terminal and the second acquisition terminal of acquisition system can determine the data of acquisition acquisition target according to synchronization signal When acquisition time, to carry out data acquisition simultaneously.
Step S20, when reaching the acquisition time, data acquisition is carried out.
It is generated in the first acquisition terminal and exports the synchronization signal, and the second acquisition terminal in data collection system The synchronization signal is received, and according to when stating synchronization signal and determining acquisition time, in this way, each in data collection system adopt Collection terminal all has a synchronization signal simultaneously.
When reaching determining acquisition time, the first acquisition terminal and the second acquisition terminal can be adopted simultaneously with default Collect frequency, controls and adopted as described in the data for sensor acquisition acquisition target (such as ring network cabinet) being connect with each acquisition terminal and generation Collect data.
Certainly, it is instant once receiving synchronization signal to be also possible to the second acquisition terminal for the determination of the acquisition time It carries out data acquisition and correspondingly time delay processing is acquired to the first acquisition terminal by internal processing circuitry, so that first adopts Collect terminal and the second acquisition terminal synchronous acquisition.
In this way, the building easy to install of data collection system, the distributed nature of flexible networking can be retained, and can solve point The problem of cloth system is difficult to realize the synchronous acquisition of data because of decentralization.
In one embodiment, when the second acquisition terminal receives the synchronization signal of the first acquisition terminal transmission, according to described Synchronization signal determines acquisition time, wherein each second acquisition of the first terminal timing into data collection system is eventually End sends synchronization signal;When reaching the acquisition time, data acquisition is carried out.In this way, by by data collection system The output of the first acquisition terminal for controlling the synchronization signal of data upload to other acquisition terminals in system, each acquisition terminal Acquisition data are obtained simultaneously according to synchronization signal simultaneously, are realized in distributed data acquisition system, each acquisition terminal acquires number According to synchronous acquisition.
In a second embodiment, as shown in figure 3, on the basis of above-mentioned embodiment shown in Fig. 2, the acquisition data are to cut Face data, it is described to preset frequency acquisition, it controls the sensor connecting with each acquisition terminal and obtains the data of acquisition target simultaneously The step of generating the acquisition data include:
Step S30, when reaching the acquisition time, to preset frequency acquisition, control is connect with each acquisition terminal Sensor obtain acquisition target data.
Step S31, acquisition data are generated according to the collected data of the sensor institute.
In the present embodiment, the acquisition data are cross-section data.It should be noted that cross-section data can be different subjects In the data at same time point or same period.The preset sample frequency is chosen as 1.6kHz, 3.2kHz or 6.4kHz.
Specifically, the first acquisition terminal and second acquisition acquisition terminal according to synchronization signal simultaneously with preset frequency acquisition, The data of acquisition target are obtained by sensor and generate the cross-section data.
The capacity of every group of cross-section data is set as 48 bytes, and preceding 6 bytes correspond to the time data, behind 42 Byte respectively corresponds the different collected data of sensor institute.It include 4 words in the time data of 6 byte capacities The time in century second of section (when preset sample frequency is 1.6kHz, corresponds to serial number 0~1599 with the synchronous serial number of 2 bytes It is a), the resolution ratio of acquisition time can be accurate to microsecond in this way.
It should be noted that century second is Unix timestamp (Unix timestamp) or Unix time (Unix Time), POSIX time (POSIX time) is a kind of time representation, is defined as from Greenwich Mean Time 01 month 1970 At 01 day 00 00 divide 00 second to present total number of seconds.Such as 16:00:00 on October 27th, 2016, century second are 1477555200.Of course, it is possible to century second is converted to corresponding Unix format, to realize that century second can be held with 4 bytes Amount indicates.
It should be noted that in cross-section data, the value range of the synchronization serial number of time data is 0 to sample frequency value Between (being free of sample frequency value), indicate a whole second being divided into number corresponding with sample frequency value, thus more accurately Record the sampling time.Such as the preset sample frequency of data collection system is 1600Hz, then a whole second has been divided into 1600 Part (every a be 1/1600 second, i.e. 625us), the value range of synchronous serial number be [0,1600), if synchronous serial number is equal to 100, Then indicate that the current sampling time is in the 100th part of the interval of current second, i.e., current time be a upper whole second after 625ms.In this manner it is achieved that the time smaller than the number of seconds grade draws according to the preset sample frequency by time data Dividing indicates.
When each acquisition terminal generates cross-section data, time data are divided into preceding 6 byte capacities of cross-section data, The data that sensor acquires are divided into rear 42 byte capacities of cross-section data, and when generating time data, by number of seconds The time of grade is indicated with century second, and the time smaller than the number of seconds grade is divided expression according to the preset sample frequency.This Sample realizes the generation of cross-section data.
Specifically, when the first acquisition terminal and the second acquisition terminal acquire data according to synchronous signal obtaining, according to same It walks signal to reset the synchronous serial number of data, the synchronization serial number 0 of time data in the cross-section data that the whole second starts, while by software Timer count is reset, the timer count of adjustable each acquisition terminal, is consistent the interruption of acquisition terminal timing acquiring, Then refreshing is synchronized, and restarts to obtain acquisition data.
Based on cross-section data, after multisensor can be facilitated to access acquisition terminal, acquisition terminal is to collected data Unified management, and the various states in acquisition target (such as ring network cabinet) operational process can continuously be recorded.
In one embodiment, it to preset frequency acquisition, controls the sensor connecting with each acquisition terminal and obtains acquisition pair The data of elephant;When according to being generated with sensor institute's collected data corresponding sampling time and the preset sample frequency Between data, wherein the time of the number of seconds grade of the time data second is indicated with century, in the time data, than the number of seconds The grade small time divides according to the preset sample frequency and indicates;It is collected according to the time data and sensor institute Data generate the cross-section data.In this way, the time data for being accurate to microsecond are embedded into cross-section data by realizing, realize The data of precise acquisition record acquisition target.
In the third embodiment, described according to the biography as shown in figure 4, on the basis of the embodiment of above-mentioned Fig. 2 to Fig. 3 The collected data of sensor institute generated before the step of acquisition data, further includes:
Step S40, the collected data of the sensor institute are pre-processed, the pretreatment includes that waveform amplifies And/or noise filtering.
Step S41, the collected data of the pretreated sensor institute are subjected to analog-to-digital conversion.
In the present embodiment, each acquisition terminal according to sensor institute collected data generate cross-section data it Before, first the collected data of each sensor are pre-processed.
Specifically, by the analog signal of the collected acquisition target of sensor by filter and amplification, and/or it is single by filtering Member carries out noise filtering to analog signal and is then acquired with being converted to the standard signal that the cpu chip of acquisition terminal can identify It is digital signal that pretreated analog signal is carried out analog-to-digital conversion again by terminal.
It should be noted that acquisition terminal can carry out AD modulus real time data sampling, in particular to acquisition terminal uses Based on the K60 chip of Cortex-M4 kernel as CPU, real time data sampling then can use the included ADC modulus of K60 chip Conversion module.The included ADC analog-to-digital conversion module of K60 chip with highest 16 conversion accuracy, most 4 pairs of difference analogues it is defeated Enter channel and 24 single-ended analog input channels and the optional four kinds of clocks of input clock, i.e. bus_clock, bus_clock/2, ALTCK, ADACK.Preferably, ADC analog-to-digital conversion module is set as 16 precision, clock source bus_clock, and the way of output is The interrupt mode way of output.
By taking the collected analog signal of voltage acceleration transducer institute as an example, it can be and analog signal is passed through into difference respectively Amplifying circuit and scaling circuit, are converted into the identifiable standard signal of CPU of acquisition terminal, then access acquisition terminal CPU ADC analog-to-digital conversion module carry out analog-to-digital conversion be digital signal.
In one embodiment, the collected data of the sensor institute are pre-processed, the pretreatment includes waveform Amplification and/or noise filtering;The collected data of the pretreated sensor institute are subjected to analog-to-digital conversion.In this way, realizing To the multiple and different type sensors for being linked into acquisition terminal collected data pretreatment and analog-to-digital conversion, will sense Device collected data be converted to the data that acquisition terminal may store or transmit.
In the fourth embodiment, described in the acquisition as shown in figure 5, on the basis of the embodiment of above-mentioned Fig. 2 to Fig. 4 Time point reach when, carry out data acquisition the step of after, further includes:
Step S50, by the acquired data storage in the data buffer storage unit of each acquisition terminal.
Step S51, the acquisition data complete in the data buffer storage unit are uploaded into database.
In the present embodiment, each acquisition terminal all has data buffer storage unit, the data capacity of the data buffer storage unit The data of 20 cross-section data sizes can at least be cached.Each acquisition terminal can deposit cross-section data when generating cross-section data Data buffer storage unit is stored up, after each acquisition terminal and database or higher level fight point server foundation communication connection, then from Data buffer storage unit extracts complete cross-section data and uploads to database or higher level's server in station corresponding with each acquisition terminal.
It should be noted that the database or higher level's server in station can be carried out data equipped with Redis database Storage and display.
For acquisition terminal when carrying out data upload, acquisition terminal and higher level's server in station carry out channel connection (TCP/IP Connection), wherein higher level's website is as server-side, port numbers: 10001, acquisition terminal is as customer side.By three-way handshake agreement Afterwards, higher level's website is uploaded to for data are acquired by Ethernet.
In one embodiment, by the acquired data storage in the data buffer storage unit of each acquisition terminal;It will be described The complete acquisition data upload to database in data buffer storage unit.In this way, by opening up data buffer storage in acquisition terminal Area avoids the acquisition data for causing to upload because of network environmental factors imperfect, ensure that the integrality of the acquisition data of upload.
In the 5th embodiment, as shown in fig. 6, on the basis of the embodiment of above-mentioned Fig. 2 to Fig. 5, data acquisition system The control method of system further include:
Step S60, when not receiving the synchronization signal that first acquisition terminal is sent within a preset time, to each A second acquisition terminal is voted, and highest second acquisition terminal that will vote is updated to first acquisition terminal.
In order to guarantee that each acquisition terminal sustainedly and stably works in data collection system, can be adopted in building distributed data When collecting system, voting mechanism is added in acquisition terminal, each second acquisition terminal does not receive the first acquisition within a preset time It when synchronization signal transmitted by terminal, can initiate to vote, vote for out highest second acquisition terminal of poll of voting, and will ballot Highest second acquisition terminal is updated to the first acquisition terminal, and the first new acquisition terminal, which can retime, sends synchronization signal In the second acquisition terminal into data collection system.
It should be noted that the preset time is greater than the time that synchronization signal is regularly sent, it can be according to the actual situation It needs to be arranged, such as 1 hour, 3 hours.
In one embodiment, the synchronization signal that first acquisition terminal is sent is not received within a preset time When, it votes each second acquisition terminal, highest second acquisition terminal that will vote is updated to first acquisition Terminal.In this way, can realize in distributed data acquisition system, the first acquisition terminal for being originally intended to send synchronization signal occurs When failure, can update other second acquisition terminals is the first new acquisition terminal, to guarantee that data collection data is continual and steady Ground operation, improves the stability of data collection system.
In addition, the data collection system includes the first acquisition terminal the invention also provides a kind of data collection system And second acquisition terminal, in which: first acquisition terminal, for sending the synchronization signal of control synchronous data sampling, with And for the data according to the synchronous signal acquisition acquisition target;Second acquisition terminal, for according to the synchronous letter The data of number acquisition acquisition target;The data collection system includes:
The data collection system includes memory, processor and is stored on the memory and can be in the processor The control program of the data collection system of upper operation, it is real when the control program of the data collection system is executed by the processor Now such as the step of the control method of above-mentioned data collection system.
In addition, the present invention also proposes a kind of computer readable storage medium, which is characterized in that the computer-readable storage Medium includes the control program of data collection system, is realized such as when the control program of the data collection system is executed by processor The step of control method of data collection system described in above embodiments.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be TV Machine, mobile phone, computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of control method of data collection system, which is characterized in that the control method of the data collection system include with Lower step:
When second acquisition terminal receives the synchronization signal of the first acquisition terminal transmission, when determining acquisition according to the synchronization signal Between point, wherein each second acquisition terminal of the first terminal timing into data collection system sends synchronization signal;
When reaching the acquisition time, data acquisition is carried out.
2. the control method of data collection system as described in claim 1, which is characterized in that described in the acquisition time When arrival, carry out data acquisition the step of include:
When reaching the acquisition time, to preset frequency acquisition, controls the sensor connecting with each acquisition terminal and obtain The data of acquisition target;
Acquisition data are generated according to the collected data of the sensor institute.
3. the control method of the data collection system as described in right wants 2, which is characterized in that the acquisition data are number of cross-sections Include: according to, described the step of generating acquisition data according to the collected data of sensor institute
Time number is generated according to sensor institute's collected data corresponding sampling time and the preset sample frequency According to;
The cross-section data is generated according to the collected data of the time data and sensor institute.
4. the control method of data collection system as claimed in claim 3, which is characterized in that the number of seconds grade of the time data Time second is indicated with century, wherein in the time data, the time smaller than the number of seconds grade according to the default sampling frequently Rate, which divides, to be indicated.
5. the control method of the data collection system as described in any one of claim 2-4, which is characterized in that the acquisition is eventually End includes multiple sensors, and the sensor is by default acquisition channel access into the acquisition terminal.
6. the control method of data collection system as described in claim 1, which is characterized in that described in the acquisition time When arrival, carry out data acquisition the step of after, further includes:
By collected acquired data storage in the data buffer storage unit of each acquisition terminal;
The acquisition data complete in the data buffer storage unit are uploaded into database.
7. the control method of data collection system as described in claim 1, which is characterized in that the control of the data collection system Method processed further include:
When not receiving the synchronization signal that first acquisition terminal is sent within a preset time, adopted to each described second Collection terminal is voted, and highest second acquisition terminal that will vote is updated to first acquisition terminal.
8. a kind of data collection system, which is characterized in that the data collection system includes that the first acquisition terminal and second are adopted Collect terminal, in which:
First acquisition terminal, for sending the synchronization signal of control synchronous data sampling, and for according to the synchronization The data of signal acquisition acquisition target;
Second acquisition terminal, the data for the acquisition target according to the synchronous signal acquisition.
9. data collection system as claimed in claim 8, which is characterized in that the data collection system includes memory, place Reason device and the control program for being stored in the data collection system that can be run on the memory and on the processor, the number Realize that the data as described in any one of claims 1 to 7 are adopted when being executed according to the control program of acquisition system by the processor The step of control method of collecting system.
10. a kind of computer readable storage medium, which is characterized in that be stored with data on the computer readable storage medium and adopt The control program of collecting system is realized when the control program of the data collection system is executed by processor as in claim 1 to 7 The step of control method of described in any item data collection systems.
CN201811429686.0A 2018-11-26 2018-11-26 Control method of data acquisition system, data acquisition system and storage medium Active CN109412737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811429686.0A CN109412737B (en) 2018-11-26 2018-11-26 Control method of data acquisition system, data acquisition system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811429686.0A CN109412737B (en) 2018-11-26 2018-11-26 Control method of data acquisition system, data acquisition system and storage medium

Publications (2)

Publication Number Publication Date
CN109412737A true CN109412737A (en) 2019-03-01
CN109412737B CN109412737B (en) 2020-11-17

Family

ID=65455797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811429686.0A Active CN109412737B (en) 2018-11-26 2018-11-26 Control method of data acquisition system, data acquisition system and storage medium

Country Status (1)

Country Link
CN (1) CN109412737B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267291A (en) * 2008-02-26 2008-09-17 北京必创科技有限公司 Method, wireless sensor network system and synchronization device for realizing synchronization collection
CN103326802A (en) * 2013-05-31 2013-09-25 燕山大学 Wireless network system for achieving synchronous acquisition, synchronous acquisition device and method
CN104331432A (en) * 2014-10-22 2015-02-04 江苏瑞中数据股份有限公司 Power grid mass time series data access method applicable to section access mode
CN104933132A (en) * 2015-06-12 2015-09-23 广州巨杉软件开发有限公司 Distributed database weighted voting method based on operating sequence number
CN107423251A (en) * 2017-07-28 2017-12-01 北京印刷学院 A kind of distributed data acquisition synchronous method and system
CN107797898A (en) * 2017-09-28 2018-03-13 东软集团股份有限公司 Collecting method and its device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267291A (en) * 2008-02-26 2008-09-17 北京必创科技有限公司 Method, wireless sensor network system and synchronization device for realizing synchronization collection
CN103326802A (en) * 2013-05-31 2013-09-25 燕山大学 Wireless network system for achieving synchronous acquisition, synchronous acquisition device and method
CN104331432A (en) * 2014-10-22 2015-02-04 江苏瑞中数据股份有限公司 Power grid mass time series data access method applicable to section access mode
CN104933132A (en) * 2015-06-12 2015-09-23 广州巨杉软件开发有限公司 Distributed database weighted voting method based on operating sequence number
CN107423251A (en) * 2017-07-28 2017-12-01 北京印刷学院 A kind of distributed data acquisition synchronous method and system
CN107797898A (en) * 2017-09-28 2018-03-13 东软集团股份有限公司 Collecting method and its device

Also Published As

Publication number Publication date
CN109412737B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN103442024A (en) System and method for synchronizing smart mobile terminal and cloud virtual mobile terminal
CN107846295A (en) Micro services configuration device and method
CN101689209B (en) Method and system for reducing triggering latency in universal serial bus data acquisition
CN103117900B (en) Configurable industrial Ethernet data parsing system and parsing method
CN203376745U (en) Multi-channel radio-frequency signal synchronous acquisition system based on PXIe bus
CN102929620A (en) Flexible measurement and control platform system and development method thereof
CN110133338B (en) Double-core electric energy meter and display method
CN108965003A (en) A kind of dispositions method of distributed type assemblies, device, system and storage medium
CN110907748A (en) Distribution lines travelling wave fault acquisition and analysis device and fault positioning system
CN106230481A (en) A kind of power line interference signal extraction and synchronous playback means
CN209543097U (en) Data collection system
CN106712880B (en) A kind of communication management system
CN108847921B (en) Distributed vibration synchronous continuous monitoring system
CN104301060B (en) A kind of node synchronous collection method and system sampled based on hardware trigger
CN109412737A (en) Control method, data collection system and the storage medium of data collection system
CN204180093U (en) A kind of PPS system balance device based on FPGA
CN203422642U (en) Multichannel dynamic signal acquisition card based on PXI bus
CN101887286A (en) Method and device for converting time format
CN205195718U (en) Embedded network synchronization system based on FPGA
CN104656604A (en) Power grid security and stability control device and method for realizing man-machine interaction by utilizing MODBUS communication protocol
CN106712881B (en) A kind of method and device of processing acquisition data
CN204069142U (en) A kind of multi-path video data synchronous acquisition controller
CN109615838B (en) Wi-Fi (wireless fidelity) -based low-cost low-power-consumption multi-terminal signal synchronous acquisition system
CN203522776U (en) Configurable industrial Ethernet data parsing system
CN112995938A (en) Synchronous acquisition method for sensors in field of power Internet of things

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