CN106802981B - Distributed seismograph simulation system for software testing and software testing method - Google Patents

Distributed seismograph simulation system for software testing and software testing method Download PDF

Info

Publication number
CN106802981B
CN106802981B CN201611255583.8A CN201611255583A CN106802981B CN 106802981 B CN106802981 B CN 106802981B CN 201611255583 A CN201611255583 A CN 201611255583A CN 106802981 B CN106802981 B CN 106802981B
Authority
CN
China
Prior art keywords
data
simulation
seismograph
distributed
distributed seismograph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611255583.8A
Other languages
Chinese (zh)
Other versions
CN106802981A (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.)
HEFEI GUOWEI ELECTRONICS CO Ltd
Original Assignee
HEFEI GUOWEI ELECTRONICS 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 HEFEI GUOWEI ELECTRONICS CO Ltd filed Critical HEFEI GUOWEI ELECTRONICS CO Ltd
Priority to CN201611255583.8A priority Critical patent/CN106802981B/en
Publication of CN106802981A publication Critical patent/CN106802981A/en
Application granted granted Critical
Publication of CN106802981B publication Critical patent/CN106802981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V13/00Manufacturing, calibrating, cleaning, or repairing instruments or devices covered by groups G01V1/00 – G01V11/00
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Abstract

The invention provides a distributed seismograph simulation system for software testing and a software testing method, belonging to the technical field of geophysical exploration instrument software testing, wherein the system comprises a parameter setting module, a data generation module and a communication module which are sequentially connected, wherein the data generation module is in bidirectional communication with the communication module; the parameter setting module is used for setting simulation parameters and sending the simulation parameters to the data generation module; the data generation module is used for carrying out bidirectional communication with the distributed seismograph data acquisition software through the communication module based on the simulation parameters set in the parameter setting module so as to test the distributed seismograph data acquisition software. The method comprises the step of testing the data acquisition software of the distributed seismograph by applying the distributed seismograph simulation system. The data acquisition software is tested by simulating the distributed seismograph, so that the defects of testing by using distributed seismograph equipment are avoided.

Description

Distributed seismograph simulation system for software testing and software testing method
Technical Field
The invention relates to the technical field of software testing of geophysical exploration instruments, in particular to a distributed seismograph simulation system for software testing and a software testing method.
Background
In the development and use process of data acquisition software of the distributed seismograph, the data acquisition software needs to be tested and demonstrated, and in the test and demonstration process, the data acquisition software needs to communicate with the distributed seismograph to control the work flow of the distributed seismograph and acquire acquired data.
In the prior art, the test and demonstration of data acquisition software are carried out by using real seismograph acquisition equipment, and the method has the following defects: firstly, because the distributed seismograph comprises a plurality of acquisition stations, cross stations and other equipment, the number of the equipment required during testing is large, and therefore the problems of insufficient number of the acquisition equipment, difficult management and the like can be faced. Secondly, when the hardware of the seismograph and the software of the upper computer are developed simultaneously, the situation that no hardware is available for online testing can be met under the condition that the hardware is not stable, and therefore the development efficiency and progress of the software are influenced. Thirdly, in the prior art, the demonstration and teaching of the upper computer data acquisition software are carried out in a specification or video mode, and if actual operation software needs to be supported by hardware equipment, the use is inconvenient and flexible.
Disclosure of Invention
The invention aims to provide a distributed seismograph simulation system for software testing and a software testing method, and aims to solve the problem that the existing distributed seismograph data acquisition software is inconvenient to test and demonstrate.
In order to realize the purpose, the invention adopts the technical scheme that: the system comprises a parameter setting module, a data generation module and a communication module which are sequentially connected, wherein the data generation module is in bidirectional communication with the communication module;
the parameter setting module is used for setting simulation parameters and sending the simulation parameters to the data generation module, wherein the simulation parameters comprise topological structure information of the distributed seismograph system and parameters for simulating a seismic wave field;
the data generation module is used for carrying out bidirectional communication with the distributed seismograph data acquisition software through the communication module based on the simulation parameters set in the parameter setting module so as to test the distributed seismograph data acquisition software.
In a second aspect, a software testing method for applying the software testing-based distributed seismograph simulation system is provided, and the method includes:
setting simulation parameters required by software testing through the distributed seismograph simulation system, wherein the simulation parameters comprise topological structure information of the distributed seismograph system and parameters for simulating seismic wave fields;
the distributed seismograph data acquisition software establishes communication with the distributed seismograph simulation system;
and testing the data acquisition software of the distributed seismograph based on the distributed seismograph simulation system.
Compared with the prior art, the invention has the following technical effects: the invention tests the data acquisition software of the distributed seismograph by simulating the distributed seismograph, and avoids various defects, such as insufficient equipment number, difficult management and the like, faced by using entity distributed seismograph equipment for testing.
Drawings
FIG. 1 is a schematic block diagram of a distributed seismograph simulation system for software testing in one embodiment of the present invention;
FIG. 2 is a topological block diagram of a distributed seismograph system in one embodiment of the present invention;
FIG. 3 is a schematic block diagram of another distributed seismograph simulation system for software testing in one embodiment of the present invention;
FIG. 4 is a schematic flow chart of a method for performing software testing using the distributed seismograph simulation system in one embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a system for software testing using the distributed seismograph simulation system in an embodiment of the present invention;
FIG. 6 is a flowchart illustrating the subdivision step of step S1 in one embodiment of the present invention;
fig. 7 is a flowchart illustrating the subdivision step of step S3 in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to fig. 1 to 7.
As shown in fig. 1, the present embodiment discloses a distributed seismograph simulation system for software testing, which comprises: the device comprises a parameter setting module 10, a data generation module 20 and a communication module 30 which are connected in sequence, wherein the data generation module 20 and the communication module 30 are in bidirectional communication;
the parameter setting module 10 is configured to set simulation parameters and send the simulation parameters to the data generating module 20, where the simulation parameters include topology structure information of the distributed seismograph system and parameters of seismic wave field simulation; the data generation module 20 performs bidirectional communication with the distributed seismograph data acquisition software through the communication module 30 based on the simulation parameters set in the parameter setting module 10 to test the distributed seismograph data acquisition software.
In particular, the simulation parameters for the distributed seismographs and the seismic wavefield include topology information for the distributed seismograph system and parameters required to perform the seismic wavefield simulation. As shown in fig. 2, the topology structure of the distributed seismograph system includes a master control station, a plurality of cross stations, a plurality of acquisition stations, and a plurality of geophones, adjacent acquisition stations are connected by large-line cables, a plurality of connectors are led out from the large-line cables to connect with the geophones, the cross stations are connected with the superior cross stations, and the last-stage cross station is connected with the master control station. What the simulation parameters of the distributed seismograph are set to simulate is the composition of the seismograph, namely the number and the connection mode of the acquisition stations and the cross stations, and in addition, parameters such as the number of channels, the channel spacing, the equipment number, the voltage value, the temperature value and the like of the acquisition stations can be set or default values can be used according to the needs of actual conditions. Parameters required for seismic wavefield simulation include parameters of a formation velocity model, formation density, waveform type, and the like. By using these parameters, time distance curves of reflected waves, refracted waves, direct waves and surface waves of the two-layer horizontal laminar medium geological model can be simulated for use by the sampling data generation unit 22.
Specifically, as shown in fig. 3, the parameter setting module 10 includes a system topology setting unit 11 and a seismic wave field simulation unit 12; the topological structure setting unit 11 is used for setting a topological structure of the distributed seismograph system; the seismic wavefield simulation unit 12 is used to set parameters for simulating the seismic wavefield.
Specifically, as shown in fig. 3, the data generating module 20 includes an initialization data generating unit 21, a collected data generating unit 22, a monitoring data generating unit 23, and a self-test data generating unit 24;
the initialization data generation unit 21 generates initialization data using the simulation parameters set in the parameter setting module 10;
the sampling data generating unit 22 generates sampling data by using the simulation parameters set in the parameter setting module 10 and the acquisition parameters in the received acquisition command;
the monitoring data generation unit 23 is configured to monitor a working state of the distributed seismograph simulation system and generate monitoring data;
the self-test data generation unit 24 is used for generating hardware self-test data of the distributed seismograph.
Specifically, as shown in fig. 4 and 5, the present embodiment discloses a software testing method using the distributed seismograph simulation system, which includes the following steps S1 to S3:
s1, setting simulation parameters required by software testing through the distributed seismograph simulation system, wherein the simulation parameters comprise a topological structure of the distributed seismograph system and parameters for simulating a seismic wave field;
s2, establishing communication between the distributed seismograph data acquisition software and the distributed seismograph simulation system;
and S3, testing the data acquisition software of the distributed seismograph based on the distributed seismograph simulation system.
Specifically, as shown in fig. 6, step S1 includes the following subdivision steps S11 to S12:
s11, setting a topological structure of the distributed seismograph system through the topological structure setting unit 11, wherein the topological structure comprises the number and the connection mode of the acquisition stations and the cross stations, the number of channels of the acquisition stations, the channel spacing, the serial number, the voltage value and the temperature value;
and S12, setting parameters for seismic wave field simulation by the seismic wave field simulation unit 12, wherein the parameters comprise a virtual work area stratum velocity model and a waveform type to be simulated.
Specifically, as shown in fig. 7, step S3 includes the following subdivision steps S31 to S36:
s31, the distributed seismograph data acquisition software sends a data initialization instruction to the initialization data generation unit 21 through the communication module 30;
s32, the initialization data generation unit 21 initializes the topological structure of the distributed seismograph system set by the topological structure setting unit 11 according to the received initialization instruction;
s33, the distributed seismograph data acquisition software sends an acquisition instruction to the acquisition data generation unit 22 through the communication module 30, wherein the acquisition instruction carries the position information of the active tracks and the shot points;
s34, generating seismic wave simulation sampling data by the sampling data generating unit 22 according to the position information of the active tracks and the shot points carried in the acquisition instruction and the simulation data set in the seismic wavelength simulation unit 12, and returning the generated seismic wave simulation sampling data to the data acquisition software of the distributed seismograph to complete the acquisition function test, wherein the simulation data comprises a virtual work area stratum velocity model and a waveform type to be simulated;
s35, the distributed seismograph data acquisition software sends a system monitoring instruction to the monitoring data generation unit (23) through the communication module (30);
and S36, the monitoring data generating unit (23) generates simulated environmental noise data according to the received system monitoring instruction and returns the simulated environmental noise data to the distributed seismograph data acquisition software to complete the test of the system monitoring function.
S37, sending a hardware self-test instruction to a self-test data generation unit (24) by distributed seismograph data acquisition software through a communication module (30);
and S38, the self-checking data generating unit (24) generates self-checking test waveform data according to the received hardware self-checking test instruction and returns the self-checking test waveform data to the distributed seismograph data acquisition software to complete the test of the hardware self-checking function.
It should be noted that, in practical application, the distributed seismograph data acquisition software needs to periodically acquire voltage and noise information of each acquisition station, and monitor the working process of the distributed seismograph, so as to ensure that the distributed seismograph is in a normal working state. The monitoring function of the distributed seismograph data acquisition software can be tested according to the monitoring data returned by the monitoring data generation unit 23.
In particular, the distributed seismograph data acquisition software can acquire hardware state information of the distributed seismograph, and in practical application, a DAC chip is generally arranged in an acquisition station of the distributed seismograph and is used for generating a specific sine wave or other standard waveforms. The distributed seismograph data acquisition software can know the performance state of each acquisition channel of the distributed seismograph acquisition station by analyzing the acquired waveforms. In this embodiment, the hardware self-checking function of the distributed seismograph data acquisition software is tested through hardware self-checking state data returned by the distributed seismograph simulation system.
The following describes the use process of the software test of the distributed seismograph simulation system in this embodiment:
(1) connecting a communication client of the distributed seismograph data acquisition software to a communication module 30 of the distributed seismograph simulation system; here, only the connection address of the distributed seismograph data acquisition software needs to be modified into the IP address of the distributed seismograph simulation system, and after the connection is successful, the distributed seismograph simulation system can communicate with the distributed seismograph data acquisition software through the communication module 30.
(2) And setting the topological structure of the distributed seismograph to be simulated and parameters required by seismic wave field simulation on an interface of the distributed seismograph simulation system.
(3) And the acquisition software issues an initialization instruction to the distributed seismograph simulation system, and analyzes and displays the initialization data returned by the distributed seismograph system.
(4) And testing various functions of the distributed seismograph data acquisition software through the distributed seismograph simulation system.
The distributed seismograph data acquisition software is tested by adopting the distributed seismograph simulation system, so that various defects of testing of practical and solid distributed seismograph equipment are avoided, and the distributed seismograph data acquisition software has the following technical effects:
(1) the problems of insufficient number of acquisition equipment and difficult management in the test of the distributed seismograph equipment of a practical entity are solved.
(2) And online testing is not required to be carried out by depending on hardware, so that the software development efficiency is improved.
(3) The teaching and demonstration of the data acquisition software of the distributed seismograph are carried out without depending on hardware equipment, and the use is flexible and convenient.

Claims (4)

1. A distributed seismograph simulation system for software testing is characterized by comprising a parameter setting module (10), a data generation module (20) and a communication module (30) which are sequentially connected, wherein the data generation module (20) is in bidirectional communication with the communication module (30);
the parameter setting module (10) is used for setting simulation parameters and sending the simulation parameters to the data generation module (20), wherein the simulation parameters comprise topological structure information of the distributed seismograph system and parameters of seismic wave field simulation;
the data generation module (20) is in bidirectional communication with the distributed seismograph data acquisition software through the communication module (30) based on the simulation parameters set in the parameter setting module (10) so as to test the distributed seismograph data acquisition software;
the data generation module (20) comprises an initialization data generation unit (21), a collected data generation unit (22), a monitoring data generation unit (23) and a self-test data generation unit (24);
an initialization data generation unit (21) generates initialization data using the simulation parameters set in the parameter setting module (10);
the sampling data generating unit (22) generates sampling data by using the simulation parameters set in the parameter setting module (10) and the acquisition parameters in the received acquisition command;
the monitoring data generation unit (23) is used for monitoring the working state of the distributed seismograph simulation system and generating monitoring data;
the self-checking data generation unit (24) is used for generating self-checking test data of the distributed seismograph hardware.
2. The system according to claim 1, characterized in that the parameter setting module (10) comprises a system topology setting unit (11) and a seismic wave field simulation setting unit (12);
the topological structure setting unit (11) is used for setting the topological structure of the distributed seismograph system;
a seismic wavefield simulation setting unit (12) is used for setting parameters of a seismic wavefield simulation.
3. A software testing method using the system according to any one of claims 1-2, comprising the steps of:
s1, setting simulation parameters required by software testing through the distributed seismograph simulation system, wherein the simulation parameters comprise topological structure parameters of the distributed seismograph system and parameters of seismic wave field simulation;
s2, establishing communication connection between the distributed seismograph data acquisition software and the distributed seismograph simulation system;
s3, testing the distributed seismograph data acquisition software based on the distributed seismograph simulation system, which specifically comprises the following steps:
s31, the distributed seismograph data acquisition software sends a system initialization instruction to the initialization data generation unit (21) through the communication module (30);
s32, the initialization data generating unit (21) generates corresponding initialization data by using the parameters set by the topology structure setting unit according to the received initialization instruction;
s33, the distributed seismograph data acquisition software sends an acquisition instruction to an acquisition data generation unit (22) through a communication module (30), wherein the acquisition instruction carries the position information of the active tracks and the shot points;
s34, generating seismic wave simulation sampling data by the sampling data generating unit (22) according to the position information of the active tracks and the shot points carried in the acquisition instruction and the simulation data set in the seismic wave field simulation unit (12), and returning the generated seismic wave simulation sampling data to the data acquisition software of the distributed seismograph to complete acquisition function test;
s35, the distributed seismograph data acquisition software sends a system monitoring instruction to the monitoring data generation unit (23) through the communication module (30);
s36, the monitoring data generating unit (23) generates simulated environmental noise data according to the received system monitoring instruction and returns the simulated environmental noise data to the distributed seismograph data acquisition software to complete the test of the system monitoring function;
s37, sending a hardware self-test instruction to a self-test data generation unit (24) by distributed seismograph data acquisition software through a communication module (30);
and S38, the self-checking data generating unit (24) generates self-checking test waveform data according to the received hardware self-checking test instruction and returns the self-checking test waveform data to the distributed seismograph data acquisition software to complete the test of the hardware self-checking function.
4. The method according to claim 3, wherein the step S1 comprises:
s11, setting a topological structure of the distributed seismograph system through a topological structure setting unit (11), wherein the topological structure comprises the number and the connection mode of acquisition stations and cross stations, the number of channels of the acquisition stations, the channel spacing, the serial number, the voltage value and the temperature value;
and S12, setting parameters required by the seismic wave field simulation through the seismic wave field simulation setting unit (12), wherein the parameters comprise a virtual work area stratum velocity model and a waveform type to be simulated.
CN201611255583.8A 2016-12-30 2016-12-30 Distributed seismograph simulation system for software testing and software testing method Active CN106802981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611255583.8A CN106802981B (en) 2016-12-30 2016-12-30 Distributed seismograph simulation system for software testing and software testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611255583.8A CN106802981B (en) 2016-12-30 2016-12-30 Distributed seismograph simulation system for software testing and software testing method

Publications (2)

Publication Number Publication Date
CN106802981A CN106802981A (en) 2017-06-06
CN106802981B true CN106802981B (en) 2020-07-10

Family

ID=58984264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611255583.8A Active CN106802981B (en) 2016-12-30 2016-12-30 Distributed seismograph simulation system for software testing and software testing method

Country Status (1)

Country Link
CN (1) CN106802981B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103592686A (en) * 2013-11-19 2014-02-19 中国海洋石油总公司 Collection and test system for offshore earthquake data
CN106248200A (en) * 2016-07-26 2016-12-21 大连大学 A kind of wireless data acquisition system of engineering structure fundamental frequency test

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10466378B2 (en) * 2014-09-03 2019-11-05 Pgs Geophysical As Impact assessment of marine seismic surveys

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103592686A (en) * 2013-11-19 2014-02-19 中国海洋石油总公司 Collection and test system for offshore earthquake data
CN106248200A (en) * 2016-07-26 2016-12-21 大连大学 A kind of wireless data acquisition system of engineering structure fundamental frequency test

Also Published As

Publication number Publication date
CN106802981A (en) 2017-06-06

Similar Documents

Publication Publication Date Title
CN101788579B (en) Oscilloscope, signal wave shape collection and display method and system thereof
CN101107796B (en) Method and device for performing channel simulation
CN109145390B (en) Semi-physical simulation system for efficiency evaluation of satellite information application terminal
CN103487623A (en) Serial data link measurement and simulation system
CN102881204B (en) Digital experimental system based on universal serial bus (USB) and virtual instrument
CN101839996B (en) Synchronization method for collecting large-range seismic data
CN110782734B (en) Cable fault simulation and training evaluation system and method
CN108984403A (en) The verification method and device of FPGA logical code
AU2012376236A1 (en) VSP systems and methods representing survey data as parameterized compression, shear, and dispersive wave fields
CN108802511A (en) Method and system for testing battery management unit
CN207780266U (en) A kind of active source micro seismic monitoring device
CN106802981B (en) Distributed seismograph simulation system for software testing and software testing method
Wang et al. The velocity-stress finite-difference method with a rotated staggered grid applied to seismic wave propagation in a fractured medium
CN103487051A (en) Method for satellite control system to obtain star sensor data generation time
CN104678443A (en) Lonestone detector and control method of boulder detector
CN110146861A (en) A kind of active phased array system test method and testboard
CN106772178A (en) The calibration equipment of high frequency electric live testing apparatus for local discharge, method and device
CN109491854A (en) A kind of SoC prototype verification method based on FPGA
CN104122537A (en) Doppler frequency shift simulator and Doppler frequency shift simulating method
CA2660228A1 (en) Dynamic source parameter selection for seismic vibrator data acquisition
CN110320551B (en) Full wave field data acquisition system and method for mine working face
CN204945303U (en) A kind of Cable Fault Location Equipment
CN107505509A (en) Emc testing method and apparatus based on vehicle
Damsleth et al. Geostatistical approaches in reservoir evaluation
Mougenot Land seismic: needs and answers

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