Data communication-based seismometer testing method and apparatus, device, and storage medium
Through the data communication between the host computer and the seismograph, automated testing is realized, which solves the problem of low test efficiency of the seismometer, improves the testing efficiency and breadth, and ensures the stability of data transmission.
Patent Information
- Application Number
- PCT/CN2023/096726
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-16
- Filing Date
- 2023-05-29
- Publication Date
- 2024-09-19
AI Technical Summary
The existing seismometer testing technology is inefficient and cannot achieve long-distance testing, and manual operations are cumbersome, resulting in low testing efficiency.
Establish a handshake connection between the host computer and the seismometer, obtain test instructions, perform excitation pulse tests and trigger tests according to the instructions, obtain geophone and GPS status information, send test results and perform version updates, and use data communication to realize automated testing.
It improves the efficiency and breadth of seismometer testing, ensures data transmission stability, reduces transmission losses, facilitates multiple tests, replaces manual operations, and improves testing efficiency.
Smart Images

Figure CN2023096726_19092024_PF_FP_ABST
Abstract
Description
Seismograph testing method, device, equipment and storage medium based on data communication Technical Field
[0001] The present application relates to the technical field of seismograph testing, and in particular to a seismograph testing method, device, electronic device, and computer-readable storage medium based on data communication. Background Art
[0002] With the advancement of earth exploration technology, more and more institutions have introduced seismometers for earth geological exploration. In order to check the working status of seismometers exposed to outdoor environments for a long time and ensure that the seismometers can obtain correct earthquake data, seismometers need to be tested.
[0003] Existing seismograph testing technologies are mostly based on manually operating seismometers for geological exploration, with tests conducted based on the results of these explorations. In practice, seismometers have complex and diverse functions, making manual operation time-consuming and laborious. Furthermore, remote testing of seismometers is not feasible, resulting in low testing efficiency.
[0004] Summary of the Invention
[0005] The present application provides a seismograph testing method, device and computer-readable storage medium based on data communication, the main purpose of which is to solve the problem of low testing efficiency when testing a seismograph.
[0006] To achieve the above objectives, the present application provides a seismograph testing method based on data communication, comprising:
[0007] Using a host computer to establish a handshake connection with a seismograph, and using the seismograph after the handshake connection to obtain a test instruction from the host computer;
[0008] Parsing the test instruction to obtain the test type and entering the test mode;
[0009] When the test type is an index test, performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test;
[0010] When the test type is a status test, performing a trigger test on the seismograph according to the test instruction to obtain a second test result, wherein the trigger test includes a GPS test and a polarity test;
[0011] After sending the first test result and the second test result to the host computer, the test mode is exited, the test update data is obtained using the seismograph, the version of the seismograph is updated using the test update data, and the test is completed after the update is completed.
[0012] Optionally, the establishing a handshake connection with the seismograph by using the host computer includes:
[0013] Use the serial port signal of the host computer to start the seismograph;
[0014] Obtaining a handshake signal sent when the seismograph is successfully powered on, and parsing the seismograph ID from the handshake signal;
[0015] A waiting delay is performed, and after the preset delay time is reached, a handshake response signal corresponding to the seismograph number is sent to the seismograph to complete the connection handshake.
[0016] Optionally, the obtaining of a test instruction from the host computer by the seismograph after the handshake connection includes:
[0017] Sending a query command to the seismograph using a handshake connection to obtain device information of the seismograph corresponding to the query command;
[0018] Extracting the working state from the device information, and determining whether the working state is an idle state;
[0019] When the working state is not the idle state, returning to the step of sending a query command to the seismograph by using a handshake connection after waiting for a preset interval time;
[0020] When the working state is the idle state, the test instruction of the host computer is sent to the seismograph.
[0021] Optionally, parsing the test instruction to obtain a test type includes:
[0022] Extracting a function code and a command code from the test instruction according to the byte sequence number;
[0023] The test type is determined according to the function code and the command code.
[0024] Optionally, performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result includes:
[0025] Extracting a command code from the test instruction, performing a sine wave test on the seismograph according to the command code, and obtaining a positive harmonic result, wherein the positive harmonic result includes total harmonic distortion, common mode rejection ratio, noise, gain accuracy, and detector impedance;
[0026] Performing a wide pulse test on the seismograph according to the command code to obtain a wide pulse result, wherein the wide pulse result includes detector resistance, natural frequency, sensitivity, and damping coefficient;
[0027] Performing a spike pulse test on the seismograph according to the command code to obtain a spike pulse result, wherein the spike pulse result includes a channel impulse response and a detector impulse response;
[0028] The positive harmonic result, the wide pulse result, and the sharp pulse result are collected into a first test result.
[0029] Optionally, performing a trigger test on the seismograph according to the test instruction to obtain a second test result includes:
[0030] Performing a GPS test on the seismograph using the test instruction, obtaining periodic data of the seismograph for the GPS test, and compiling all periodic data into a GPS result;
[0031] Performing a polarity test on the seismograph using the test instruction, controlling the seismograph to trigger and flash according to the polarity test, notifying the user to tap the seismograph according to the trigger and flash, obtaining a pulse signal generated by the tapping, and aggregating all the pulse signals into a polarity result;
[0032] The GPS result and the polarity result are combined into a second test result.
[0033] Optionally, the step of exiting the test mode after sending the first test result and the second test result to the host computer includes:
[0034] Aggregating the first test result and the second test result into a test result, and performing data packetization on the test result to obtain a plurality of test result data packets;
[0035] The test result data packets are selected one by one as target data packets in the order of the data subpackaging, and the target data packets are sent to the host computer using a handshake connection. When the target data packet is the last test result data packet, the test mode is exited.
[0036] In order to solve the above problems, the present application also provides a seismograph testing device based on data communication, the device comprising:
[0037] A handshake connection module is used to establish a handshake connection with the seismograph using the host computer, and obtain a test instruction from the host computer using the seismograph after the handshake connection;
[0038] A test type module is used to parse the test instruction, obtain the test type, and enter the test mode;
[0039] an index test module, configured to, when the test type is an index test, perform an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test;
[0040] a status test module, configured to, when the test type is a status test, perform a trigger test on the seismograph according to the test instruction to obtain a second test result, wherein the trigger test includes a GPS test and a polarity test;
[0041] The data transmission module is used to send the first test result and the second test result to the host computer and then exit the test mode, use the seismograph to obtain test update data, use the test update data to update the version of the seismograph, and complete the test after the update is completed.
[0042] In order to solve the above problem, the present application further provides an electronic device, comprising:
[0043] at least one processor; and,
[0044] a memory communicatively connected to the at least one processor; wherein,
[0045] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the above-mentioned seismograph testing method based on data communication.
[0046] In order to solve the above problems, the present application also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned data communication-based seismograph testing method.
[0047] The embodiment of the present application establishes a handshake connection between the host computer and the seismograph, and uses the seismograph after the handshake connection to obtain the test instructions of the host computer. The handshake connection can be used to realize command transmission between the seismograph and the host computer, and further facilitates the host computer to determine the status of the seismograph, ensuring that the seismograph can receive the test instructions of the host computer; by performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, the detector of the seismograph can be obtained for multi-directional detection to ensure the normal operation of the detector, replacing the general command line operation, reducing the number of bytes of the command, and improving the efficiency of the test. The seismometer performs a trigger test and obtains a second test result, which can detect the working status of the GPS and test whether the detector is welded correctly, thereby improving the breadth of the seismometer test. By sending the first test result and the second test result to the host computer and then exiting the test mode, the handshake connection can be used to ensure the stability of data transmission and reduce transmission losses. By subpackaging the test results, a large amount of transmission data can be prevented from being lost in a single time, thereby improving data transmission efficiency. By using the seismometer to obtain test update data and using the test update data to update the version of the seismometer, the next test can be facilitated and the efficiency of multiple seismometer tests can be improved. Therefore, the seismometer test method, device, electronic device and computer-readable storage medium based on data communication proposed in this application can solve the problem of low test efficiency when performing seismometer testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] FIG1 is a flow chart of a seismograph testing method based on data communication provided by an embodiment of the present application;
[0049] FIG2 is a schematic diagram of a process for establishing a handshake connection according to an embodiment of the present application;
[0050] FIG3 is a schematic diagram of a process for obtaining a test instruction according to an embodiment of the present application;
[0051] FIG4 is a functional module diagram of a seismograph testing device based on data communication provided in one embodiment of the present application;
[0052] FIG5 is a schematic structural diagram of an electronic device for implementing the seismograph testing method based on data communication provided in an embodiment of the present application.
[0053] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0055] The embodiment of the present application provides a seismograph testing method based on data communication. The execution subject of the seismograph testing method based on data communication includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the seismograph testing method based on data communication can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0056] 1 is a flow chart of a method for testing a seismograph based on data communication according to an embodiment of the present application. In this embodiment, the method for testing a seismograph based on data communication includes:
[0057] S1. Establishing a handshake connection between a host computer and a seismograph, and obtaining a test instruction from the host computer by using the seismograph after the handshake connection;
[0058] In the embodiment of the present application, the host computer refers to a computer that can directly issue control commands, and is used to send various instructions to the seismograph and receive test result data from the seismograph.
[0059] In detail, the seismograph can be an IGU-16 intelligent seismic detection instrument, an IGU-16HR 3C three-component intelligent seismic detection instrument, an IAU-19 intelligent seismic collector, a BD3C-5 intelligent three-component seismic detector, or an IMU-3C intelligent data recorder.
[0060] In the embodiment of the present application, as shown in FIG2 , the establishment of a handshake connection between the host computer and the seismograph includes:
[0061] S21, using the serial port signal of the host computer to start the seismograph;
[0062] S22, obtaining a handshake signal sent when the seismograph is successfully powered on, and parsing the seismograph number from the handshake signal;
[0063] S23, performing a waiting delay, and sending a handshake response signal corresponding to the seismograph number to the seismograph after the preset delay time is reached, to complete the connection handshake.
[0064] Specifically, the serial port signal can be a request to send (RTS) signal of the control serial port, and the use of the serial port signal of the host computer to power on the seismograph means using the request to send signal of the control serial port to turn on the power of the seismograph, thereby achieving power-on.
[0065] In detail, parsing the seismograph number from the handshake signal refers to parsing the seismograph number from the data bit of the handshake signal, for example, 0xDA refers to an IGU-16 1C seismograph, and 0xDB refers to an IGU-3C seismograph.
[0066] In detail, the delay time may be 150 milliseconds, for waiting for the seismograph's firmware to start successfully.
[0067] In detail, as shown in FIG3 , the method of obtaining the test instruction of the host computer by the seismograph after the handshake connection includes:
[0068] S31, sending a query command to the seismograph using a handshake connection to obtain device information of the seismograph corresponding to the query command;
[0069] S32, extracting the working status from the device information, and determining whether the working status is an idle state;
[0070] S33, when the working state is not the idle state, returning to the step of sending a query command to the seismograph by using a handshake connection after waiting for a preset interval time;
[0071] S34. When the working state is the idle state, sending the test instruction of the host computer to the seismograph.
[0072] In detail, the query command is a POLL command, and the interval time may be 1500 milliseconds.
[0073] In detail, the device information includes SD card status, temperature value, voltage value and working status, wherein the working status includes idle state, test end state and transmission progress state.
[0074] Specifically, extracting the working status from the device information refers to filtering out the bytes corresponding to the device information from the device information according to the byte sequence number, and judging whether the working status is the idle state refers to performing byte analysis on the bytes corresponding to the device information to determine whether it is the byte value corresponding to the idle state.
[0075] Specifically, the SD card status is a 1-byte byte, where 1 indicates a normal SD card state and 0 indicates an abnormal SD card state. The temperature value is used to represent the temperature of the acquisition station and is a 4-byte single-precision floating-point number (little endian). The temperature value ranges from -50°C to +125°C. A negative temperature value less than -100 indicates a temperature sensor error. The voltage value is used to represent the power supply voltage of the acquisition station and is a 4-byte single-precision floating-point number (little endian). The voltage value ranges from 4.5V to 5.2V. If it deviates from this range, it indicates a voltage measurement circuit failure. When the working status is 1, it indicates an idle state, i.e., the acquisition station is idle and has not yet been tested. It can receive test commands but cannot receive data transmission commands. When the working status is 2, it indicates a test end state, i.e., the test or transmission is complete and test commands can be received again, but the previous test result is discarded. When the working status is 3, it indicates a transmission in progress state, i.e., the transmission of a packet of data has ended, but not all of it has been transmitted, and the next packet is waiting to be transmitted. When all of it has been transmitted, the test ends.
[0076] In an embodiment of the present application, by establishing a handshake connection between a host computer and a seismograph, and using the seismograph after the handshake connection to obtain the test instructions of the host computer, the handshake connection can be used to realize command transmission between the seismograph and the host computer, and further facilitate the host computer to determine the status of the seismograph, ensuring that the seismograph can receive the test instructions of the host computer.
[0077] S2. Parse the test instruction to obtain the test type and enter the test mode;
[0078] In the embodiment of the present application, the test types include indicator tests and meter status tests. In detail, the tests.
[0079] In the embodiment of the present application, parsing the test instruction to obtain the test type includes:
[0080] Extracting a function code and a command code from the test instruction according to the byte sequence number;
[0081] The test type is determined according to the function code and the command code.
[0082] In detail, the function code is an identification code used to determine the function type implemented by the instruction, and the command code is an identification code for implementing a specific command. For example, the function code of the indicator test is 04, and the command code has 10 or 14 bits. The function code of the status test is 0x0A or 0x0B, and the command code is 00 or 01.
[0083] S3. When the test type is an index test, performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test;
[0084] In the embodiment of the present application, performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result includes:
[0085] Extracting a command code from the test instruction, performing a sine wave test on the seismograph according to the command code, and obtaining a positive harmonic result, wherein the positive harmonic result includes total harmonic distortion, common mode rejection ratio, noise, gain accuracy, and detector impedance;
[0086] Performing a wide pulse test on the seismograph according to the command code to obtain a wide pulse result, wherein the wide pulse result includes detector resistance, natural frequency, sensitivity, and damping coefficient;
[0087] Performing a spike pulse test on the seismograph according to the command code to obtain a spike pulse result, wherein the spike pulse result includes a channel impulse response and a detector impulse response;
[0088] The positive harmonic result, the wide pulse result, and the sharp pulse result are collected into a first test result.
[0089] In detail, the command code includes signal type, low-cut / pulse mode, amplitude, frequency, gain, sampling rate, signal mode, number of sampling points and file time, wherein the signal type and the low-cut / pulse mode are used to determine the type of the excitation pulse test. For example, when the signal type is 0, the excitation pulse test is a sine wave test; when the signal type is 1, the excitation pulse test is a wide pulse test; when the signal type is 1, the excitation pulse test is a sharp pulse test.
[0090] In detail, the total harmonic distortion refers to THD (Total Harmonic Distortion), where the harmonic distortion refers to the harmonic component of the output signal that is greater than that of the input signal. The common mode rejection ratio refers to CRMM (Common Mode Rejection Ratio), which is defined as the absolute value of the ratio of the voltage gain of the amplifier circuit for the differential mode signal to the voltage gain for the common mode signal.
[0091] In an embodiment of the present application, by performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, the seismograph's detector can be obtained for multi-directional detection to ensure the normal operation of the detector, replacing general command line operations, reducing the number of command bytes, and improving test efficiency.
[0092] S4. When the test type is a status test, performing a trigger test on the seismograph according to the test instruction to obtain a second test result, wherein the trigger test includes a GPS test and a polarity test;
[0093] In the embodiment of the present application, the triggering test on the seismograph according to the test instruction to obtain the second test result includes:
[0094] Performing a GPS test on the seismograph using the test instruction, obtaining periodic data of the seismograph for the GPS test, and compiling all periodic data into a GPS result;
[0095] Performing a polarity test on the seismograph using the test instruction, controlling the seismograph to trigger and flash according to the polarity test, notifying the user to tap the seismograph according to the trigger and flash, obtaining a pulse signal generated by the tapping, and aggregating all the pulse signals into a polarity result;
[0096] The GPS result and the polarity result are combined into a second test result.
[0097] In an embodiment of the present application, the periodic data refers to the GPS data periodically sent by the seismograph to the host computer, with an interval of 5 seconds. The triggered flashing refers to the LED of the seismograph flashing according to a preset flashing frequency and flashing color. The polarity results include timeout, correct polarity and reverse polarity.
[0098] In the embodiment of the present application, by triggering the seismograph according to the test instruction to obtain the second test result, the working status of the GPS can be detected, and whether the detector is welded correctly can be tested, thereby improving the breadth of the seismograph test.
[0099] S5. After sending the first test result and the second test result to the host computer, exit the test mode, use the seismograph to obtain test update data, use the test update data to update the version of the seismograph, and complete the test after the update is completed.
[0100] In the embodiment of the present application, the step of exiting the test mode after sending the first test result and the second test result to the host computer includes:
[0101] Aggregating the first test result and the second test result into a test result, and performing data packetization on the test result to obtain a plurality of test result data packets;
[0102] The test result data packets are selected one by one as target data packets in the order of the data subpackaging, and the target data packets are sent to the host computer using a handshake connection. When the target data packet is the last test result data packet, the test mode is exited.
[0103] Specifically, performing data segmentation on the test result to obtain multiple test result data packets means segmenting the test result according to the number of byte bits. Specifically, the number of byte bits of each test result data packet may be 1512 bytes.
[0104] In detail, the method of obtaining the test update data by using the seismograph includes: using the host computer to send a script write instruction to the seismograph, and obtaining the test update data from the script write instruction, wherein the test update data is a script file of up to 6144 bytes.
[0105] In an embodiment of the present application, by exiting the test mode after sending the first test result and the second test result to the host computer, the handshake connection can be used to ensure the stability of data transmission and reduce transmission losses. By subpackaging the test results, a large amount of transmission data can be prevented from being lost in a single time, thereby improving data transmission efficiency. By using the seismograph to obtain test update data and using the test update data to update the version of the seismograph, the next test can be facilitated and the efficiency of multiple seismograph tests can be improved.
[0106] The embodiment of the present application establishes a handshake connection between the host computer and the seismograph, and uses the seismograph after the handshake connection to obtain the test instructions of the host computer. The handshake connection can be used to realize command transmission between the seismograph and the host computer, and further facilitates the host computer to determine the status of the seismograph, ensuring that the seismograph can receive the test instructions of the host computer; by performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, the detector of the seismograph can be obtained for multi-directional detection to ensure the normal operation of the detector, replacing the general command line operation, reducing the number of bytes of the command, and improving the efficiency of the test. The seismometer performs a trigger test and obtains a second test result, which can detect the working status of the GPS and test whether the detector is welded correctly, thereby improving the breadth of the seismometer test. By sending the first test result and the second test result to the host computer and then exiting the test mode, the handshake connection can be used to ensure the stability of data transmission and reduce transmission losses. By subpackaging the test results, a large amount of transmission data can be prevented from being lost in a single time, thereby improving data transmission efficiency. By using the seismometer to obtain test update data and using the test update data to update the version of the seismometer, the next test can be facilitated and the efficiency of multiple seismometer tests can be improved. Therefore, the seismometer testing method based on data communication proposed in this application can solve the problem of low test efficiency when performing seismometer testing.
[0107] As shown in FIG4 , it is a functional module diagram of a seismograph testing device based on data communication provided in one embodiment of the present application.
[0108] The data communication-based seismograph testing device 100 described in this application can be installed in an electronic device. Depending on the functions implemented, the data communication-based seismograph testing device 100 may include a handshake connection module 101, a test type module 102, an index test module 103, a status test module 104, and a data transmission module 105. The module described in this application can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can perform fixed functions, which are stored in the memory of the electronic device.
[0109] In this embodiment, the functions of each module / unit are as follows:
[0110] The handshake connection module 101 is used to establish a handshake connection with the seismograph using the host computer, and obtain a test instruction from the host computer using the seismograph after the handshake connection;
[0111] The test type module 102 is used to parse the test instruction, obtain the test type, and enter the test mode;
[0112] The index test module 103 is configured to, when the test type is an index test, perform an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test;
[0113] The state test module 104 is configured to, when the test type is a state test, perform a trigger test on the seismograph according to the test instruction to obtain a second test result, wherein the trigger test includes a GPS test and a polarity test;
[0114] The data transmission module 105 is used to exit the test mode after sending the first test result and the second test result to the host computer, obtain test update data using the seismograph, update the version of the seismograph using the test update data, and complete the test after the update is completed.
[0115] In detail, each module described in the data communication-based seismograph testing device 100 described in the embodiment of the present application adopts the same technical means as the data communication-based seismograph testing method described in Figures 1 to 3 above when in use, and can produce the same technical effects, which will not be repeated here.
[0116] As shown in FIG5 , it is a schematic structural diagram of an electronic device for implementing a seismograph testing method based on data communication provided in one embodiment of the present application.
[0117] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13. It may also include a computer program stored in the memory 11 and executable on the processor 10, such as a seismograph testing program based on data communication.
[0118] In some embodiments, the processor 10 may be composed of an integrated circuit, such as a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 10 is the control core (Control Unit) of the electronic device, connecting the various components of the entire electronic device using various interfaces and lines, and executing programs or modules stored in the memory 11 (such as executing a seismograph test program based on data communication, etc.), as well as calling data stored in the memory 11, to perform various functions of the electronic device and process data.
[0119] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Furthermore, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a seismograph test program based on data communication, but can also be used to temporarily store data that has been output or is to be output.
[0120] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable connection and communication between the memory 11 and at least one processor 10, etc.
[0121] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0122] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0123] For example, although not shown, the electronic device may further include a power source (such as a battery) for powering various components. Preferably, the power source may be logically connected to the at least one processor 10 via a power management device, thereby implementing functions such as charge management, discharge management, and power consumption management through the power management device. The power source may further include any components such as one or more DC or AC power sources, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, etc. The electronic device may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0124] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0125] The data communication-based seismograph test program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When executed in the processor 10, the following can be achieved:
[0126] Using a host computer to establish a handshake connection with a seismograph, and using the seismograph after the handshake connection to obtain a test instruction from the host computer;
[0127] Parsing the test instruction to obtain the test type and entering the test mode;
[0128] When the test type is an index test, performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test;
[0129] When the test type is a status test, performing a trigger test on the seismograph according to the test instruction to obtain a second test result, wherein the trigger test includes a GPS test and a polarity test;
[0130] After sending the first test result and the second test result to the host computer, the test mode is exited, the test update data is obtained using the seismograph, the version of the seismograph is updated using the test update data, and the test is completed after the update is completed.
[0131] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0132] Furthermore, if the modules / units integrated into the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0133] The present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor of an electronic device, the computer program can implement:
[0134] Using a host computer to establish a handshake connection with a seismograph, and using the seismograph after the handshake connection to obtain a test instruction from the host computer;
[0135] Parsing the test instruction to obtain the test type and entering the test mode;
[0136] When the test type is an index test, performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test;
[0137] When the test type is a status test, performing a trigger test on the seismograph according to the test instruction to obtain a second test result, wherein the trigger test includes a GPS test and a polarity test;
[0138] After sending the first test result and the second test result to the host computer, the test mode is exited, the test update data is obtained using the seismograph, the version of the seismograph is updated using the test update data, and the test is completed after the update is completed.
[0139] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical function division, and actual implementation may employ other division methods.
[0140] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0141] In addition, the functional modules in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0142] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application.
[0143] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the present application is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.
[0144] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to achieve optimal results.
[0145] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. Terms such as "first" and "second" are used to indicate names and do not imply any particular order.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A seismograph testing method based on data communication, characterized in that: The method comprises: Using a host computer to establish a handshake connection with a seismograph, and using the seismograph after the handshake connection to obtain a test instruction from the host computer; Parsing the test instruction, obtaining the test type, and entering the test mode; When the test type is an index test, an excitation pulse test is performed on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test; When the test type is a status test, a trigger test is performed on the seismograph according to the test instruction to obtain a second test result, wherein the trigger test includes a GPS test and a polarity test; After sending the first test result and the second test result to the host computer, the test mode is exited, the test update data is obtained by using the seismograph, the version of the seismograph is updated by using the test update data, and the test is completed after the update is completed.
2. The seismograph testing method based on data communication as claimed in claim 1, characterized in that: The method of establishing a handshake connection between the host computer and the seismograph includes: Use the serial port signal of the host computer to turn on the seismograph; Obtaining a handshake signal sent when the seismograph is successfully powered on, and parsing the seismograph number from the handshake signal; A waiting delay is performed, and after the preset delay time is reached, a handshake response signal corresponding to the seismograph number is sent to the seismograph to complete the connection handshake.
3. The seismograph testing method based on data communication as claimed in claim 1, characterized in that: The method of obtaining the test instruction of the host computer by the seismograph after the handshake connection includes: Sending a query command to the seismograph by using a handshake connection to obtain device information of the seismograph corresponding to the query command; Extracting the working state from the device information, and determining whether the working state is an idle state; When the working state is not the idle state, returning to the step of sending a query command to the seismograph by using a handshake connection after waiting for a preset interval time; When the working state is the idle state, the test instruction of the host computer is sent to the seismograph.
4. The seismograph testing method based on data communication as claimed in claim 1, characterized in that: The parsing of the test instruction to obtain the test type includes: Extracting a function code and a command code from the test instruction according to the byte sequence number; The test type is determined according to the function code and the command code.
5. The seismograph testing method based on data communication as claimed in claim 1, characterized in that: The step of performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result includes: Extracting a command code from the test instruction, performing a sine wave test on the seismograph according to the command code, and obtaining a positive harmonic result, wherein the positive harmonic result includes total harmonic distortion, common mode rejection ratio, noise, gain accuracy, and detector impedance; Performing a wide pulse test on the seismograph according to the command code to obtain a wide pulse result, wherein the wide pulse result includes detector resistance, natural frequency, sensitivity and damping coefficient; Performing a spike pulse test on the seismograph according to the command code to obtain a spike pulse result, wherein the spike pulse result includes a channel impulse response and a detector impulse response; The positive harmonic result, the wide pulse result and the sharp pulse result are collected into a first test result.
6. The seismograph testing method based on data communication as claimed in claim 1, characterized in that: The triggering test on the seismograph according to the test instruction to obtain a second test result includes: Performing a GPS test on the seismograph using the test instruction, obtaining periodic data of the seismograph for the GPS test, and aggregating all periodic data into a GPS result; Performing a polarity test on the seismograph using the test instruction, controlling the seismograph to trigger flashing according to the polarity test, notifying the user to knock on the seismograph according to the trigger flashing, obtaining a pulse signal generated by the knocking, and collecting all the pulse signals into a polarity result; The GPS result and the polarity result are combined into a second test result.
7. The seismograph testing method based on data communication as claimed in claim 1, characterized in that: The step of sending the first test result and the second test result to the host computer and then exiting the test mode includes: Aggregating the first test result and the second test result into a test result, and performing data packetization on the test result to obtain a plurality of test result data packets; Selecting the test result data packets one by one as target data packets according to the order of the data packets, The target data packet is sent to the host computer by using a handshake connection, and when the target data packet is the last test result data packet, the test mode is exited.
8. A seismograph testing device based on data communication, characterized in that: The device comprises: A handshake connection module, used to establish a handshake connection between the host computer and the seismograph, and to obtain a test instruction from the host computer using the seismograph after the handshake connection; A test type module is used to parse the test instruction, obtain the test type, and enter the test mode; An index test module, used for, when the test type is an index test, performing an excitation pulse test on the seismograph according to the test instruction to obtain a first test result, wherein the excitation pulse test includes a sine wave test, a sharp pulse test, and a wide pulse test; A status test module, for performing a trigger test on the seismograph according to the test instruction to obtain a second test result when the test type is a status test, wherein the trigger test includes a GPS test and a polarity test; The data transmission module is used to exit the test mode after sending the first test result and the second test result to the host computer, obtain the test update data using the seismograph, update the version of the seismograph using the test update data, and complete the test after the update is completed.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the seismograph testing method based on data communication as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the seismograph testing method based on data communication as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Working state wireless monitoring method for cableless digital storage seismograph
CN102230972A
Wireless monitoring method for single-channel no-cable storage type seismographs
CN106646665A
Distributed seismograph simulation system for software tests and software testing method
CN106802981A
Router based on field broadband seismograph observation platform and seismograph control method
CN113589359A
Seismic geophysical prospecting eSeis node quality control method and device
CN114942470A
