Seismograph testing method, device and equipment based on data communication and storage medium
By establishing a handshake connection between the host computer and the seismograph, and obtaining test commands to conduct tests, the problem of low testing efficiency of the seismograph is solved, and efficient testing and data transmission are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-16
- Publication Date
- 2026-03-24
AI Technical Summary
Existing seismograph testing technology is inefficient and cannot achieve long-distance testing, while manual operation is time-consuming and labor-intensive.
The host computer establishes a handshake connection with the seismograph, obtains test commands, performs excitation pulse tests and trigger tests, obtains test results, and updates the version.
It improves the efficiency and scope of seismograph testing, ensures the stability of data transmission, reduces transmission loss, and facilitates multiple tests.
Smart Images

Figure CN116243402B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of seismograph testing technology, and in particular to a seismograph testing method, apparatus, electronic device, and computer-readable storage medium based on data communication. Background Technology
[0002] With the advancement of Earth exploration technology, more and more institutions are introducing seismographs for Earth geological exploration. In order to check the working status of seismographs that have been exposed to the outdoor environment for a long time and to ensure that the seismographs can obtain accurate seismic data, it is necessary to test the seismographs.
[0003] Existing seismograph testing technologies mostly rely on manual operation of seismographs for geological exploration, with testing based on the exploration results. In practical applications, seismographs have complex and diverse functions, manual operation is time-consuming and labor-intensive, and long-distance seismograph testing is not possible, potentially leading to low testing efficiency. Summary of the Invention
[0004] This invention provides a seismograph testing method, apparatus, and computer-readable storage medium based on data communication, with the main objective of solving the problem of low testing efficiency when conducting seismograph tests.
[0005] To achieve the above objectives, the present invention provides a seismograph testing method based on data communication, comprising:
[0006] A handshake connection is established between the host computer and the seismograph, and the test commands from the host computer are obtained by the seismograph after the handshake connection is established.
[0007] The test command is parsed to obtain the test type, and then the test mode is entered;
[0008] When the test type is an index test, the seismograph is subjected to an excitation pulse test according to the test instruction to obtain a first test result. The excitation pulse test includes a sine wave test, a spike pulse test, and a wide pulse test.
[0009] When the test type is a state test, the seismograph is triggered to perform a test according to the test instruction to obtain a second test result, wherein the trigger test includes GPS test and polarity test;
[0010] After sending the first and second test results to the host computer, the test mode is exited. Test update data is obtained using the seismograph, and the seismograph is updated using the test update data. The test is completed after the update is finished.
[0011] Optionally, establishing a handshake connection between the host computer and the seismograph includes:
[0012] The seismograph is powered on using the serial port signal from the host computer.
[0013] Obtain the handshake signal sent when the seismograph is successfully powered on, and parse the seismograph number from the handshake signal;
[0014] 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.
[0015] Optionally, the step of obtaining test commands from the host computer using the seismograph after a handshake connection includes:
[0016] A query command is sent to the seismograph using a handshake connection to obtain the device information of the seismograph in response to the query command;
[0017] The working status is extracted from the device information, and it is determined whether the working status is an idle state.
[0018] When the working state is not the idle state, wait for a preset interval and then return to the step of sending a query command to the seismograph using a handshake connection;
[0019] When the working state is the idle state, the test command from the host computer is sent to the seismograph.
[0020] Optionally, parsing the test instruction to obtain the test type includes:
[0021] Extract the function code and command code from the test instructions based on the byte sequence number;
[0022] The test type is determined based on the function code and the command code.
[0023] Optionally, the step of performing an excitation pulse test on the seismograph according to the test command to obtain a first test result includes:
[0024] The command code is extracted from the test command, and the seismograph is subjected to a sine wave test according to the command code to obtain the positive harmonic results, wherein the positive harmonic results include total harmonic distortion, common mode rejection ratio, noise, gain accuracy and detector impedance.
[0025] The seismograph is subjected to a wide pulse test according to the command code to obtain wide pulse results, wherein the wide pulse results include detector resistance, natural frequency, sensitivity and damping coefficient;
[0026] The seismograph is subjected to a spike test according to the command code to obtain spike results, wherein the spike results include channel impulse response and detector impulse response;
[0027] The positive harmonic results, the wide pulse results, and the sharp pulse results are combined into a first test result.
[0028] Optionally, the step of triggering the seismograph according to the test command to obtain a second test result includes:
[0029] The seismograph is subjected to GPS testing using the test command to obtain periodic data of the seismograph for the GPS test, and all periodic data are aggregated into GPS results.
[0030] The polarity of the seismograph is tested using the test command. The seismograph is then controlled to flash according to the polarity test. The user is notified to tap the seismograph according to the flashing, and the pulse signal generated by the tapping is obtained. All the pulse signals are then combined into a polarity result.
[0031] The GPS results and the polarity results are combined into a second test result.
[0032] Optionally, the step of sending the first test result and the second test result to the host computer and then exiting the test mode includes:
[0033] The first test result and the second test result are combined into a test result, and the test result is divided into data packets to obtain multiple test result data packets;
[0034] The test result data packets are selected one by one as target data packets according to the order of the data packets. 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.
[0035] To address the above problems, the present invention also provides a seismograph testing device based on data communication, the device comprising:
[0036] The handshake connection module is used to establish a handshake connection between the host computer and the seismograph, and to obtain test commands from the host computer using the seismograph after the handshake connection.
[0037] The test type module is used to parse the test instructions, obtain the test type, and enter the test mode;
[0038] The index testing module is used to perform excitation pulse testing on the seismograph according to the test instruction when the test type is index testing, and obtain a first test result. The excitation pulse testing includes sine wave testing, spike pulse testing and wide pulse testing.
[0039] The state test module is used to trigger a test on the seismograph according to the test instruction when the test type is state test, and obtain a second test result, wherein the trigger test includes GPS test and polarity test;
[0040] The data transmission module is used to send the first test result and the second test result to the host computer, exit the test mode, obtain test update data using the seismograph, update the seismograph using the test update data, and complete the test after the update is completed.
[0041] To address the above problems, the present invention also provides an electronic device, the electronic device comprising:
[0042] At least one processor; and,
[0043] A memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the data communication-based seismograph testing method described above.
[0045] To address the aforementioned problems, the present invention also provides a computer-readable storage medium storing at least one computer program, which is executed by a processor in an electronic device to implement the aforementioned data communication-based seismograph testing method.
[0046] This invention establishes a handshake connection between a host computer and a seismograph, and uses the seismograph to receive test commands from the host computer after the handshake connection. This handshake connection enables command transmission between the seismograph and the host computer, further facilitating the host computer's determination of the seismograph's status and ensuring the seismograph can receive test commands. By performing excitation pulse tests on the seismograph according to the test commands, a first test result is obtained. This allows for multi-directional detection of the seismograph's detector, ensuring its normal operation. This replaces conventional command-line operations, reduces the number of command bytes, and improves testing efficiency. Furthermore, by performing excitation pulse tests on the seismograph according to the test commands, the seismograph can obtain test results and perform multi-directional detection of the seismograph's detector, ensuring its normal operation. This replaces conventional command-line operations, reduces the number of command bytes, and improves testing efficiency. The seismograph performs a trigger test, obtaining a second test result. This allows for the detection of the GPS's operational status and the verification of the correct welding of the detector, thus broadening the scope of seismograph testing. By sending the first and second test results to the host computer and then exiting the test mode, a handshake connection can be used to ensure data transmission stability and reduce transmission loss. Data packetization of the test results prevents the loss of large amounts of data in a single transmission, improving data transmission efficiency. Using the seismograph to obtain test update data and updating the seismograph version facilitates subsequent tests and improves the efficiency of multiple seismograph tests. Therefore, the seismograph testing method, apparatus, electronic device, and computer-readable storage medium based on data communication proposed in this invention can solve the problem of low testing efficiency during seismograph testing. Attached Figure Description
[0047] Figure 1 This is a flowchart illustrating a data communication-based seismograph testing method according to an embodiment of the present invention.
[0048] Figure 2 This is a schematic diagram of the process for establishing a handshake connection according to an embodiment of the present invention;
[0049] Figure 3 This is a schematic diagram of a process for obtaining test instructions according to an embodiment of the present invention;
[0050] Figure 4 A functional block diagram of a data communication-based seismograph testing device provided in an embodiment of the present invention;
[0051] Figure 5 This is a schematic diagram of the structure of an electronic device for implementing the data communication-based seismograph testing method according to an embodiment of the present invention.
[0052] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0053] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0054] This application provides a seismograph testing method based on data communication. The executing entity of the data communication-based seismograph testing method includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application: a server, a terminal, etc. In other words, the data communication-based seismograph testing method 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. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0055] Reference Figure 1 The diagram shown is a flowchart illustrating a data communication-based seismograph testing method according to an embodiment of the present invention. In this embodiment, the data communication-based seismograph testing method includes:
[0056] S1. Establish a handshake connection between the host computer and the seismograph, and obtain the test instructions from the host computer using the seismograph after the handshake connection is established.
[0057] In this embodiment of the invention, the host computer refers to a computer that can directly issue control commands, used to send various instructions to the seismograph and receive test result data from the seismograph.
[0058] Specifically, the seismograph may be an IGU-16 intelligent seismic instrument, an IGU-16HR 3C three-component intelligent seismic instrument, an IAU-19 intelligent seismic acquisition device, a BD3C-5 intelligent three-component seismic instrument, or an IMU-3C intelligent data logger.
[0059] In this embodiment of the invention, reference is made to Figure 2 As shown, the process of establishing a handshake connection between the host computer and the seismograph includes:
[0060] S21. Power on the seismograph using the serial port signal from the host computer;
[0061] S22. Obtain the handshake signal sent when the seismograph is successfully powered on, and parse the seismograph number from the handshake signal;
[0062] S23. Perform a waiting delay, and after the preset delay time is reached, send a handshake response signal corresponding to the seismograph number to the seismograph to complete the connection handshake.
[0063] Specifically, the serial port signal can be a request to send (RTS) signal for controlling the serial port. The operation of powering on the seismograph using the serial port signal of the host computer refers to turning on the power of the seismograph using the request to send signal of the control serial port, thereby achieving power-on.
[0064] In detail, retrieving the seismograph identifier from the handshake signal means retrieving the seismograph identifier from the data bits of the handshake signal. For example, 0xDA refers to the IGU-16 1C seismograph, and 0xDB refers to the IGU-3C seismograph.
[0065] Specifically, the delay time can be 150 milliseconds, used to wait for the seismograph's firmware to start successfully.
[0066] For details, refer to Figure 3 As shown, the process of obtaining test commands from the host computer using the seismograph after a handshake connection includes:
[0067] S31. Send a query command to the seismograph using a handshake connection to obtain device information of the seismograph in response to the query command;
[0068] S32. Extract the working status from the device information and determine whether the working status is an idle state;
[0069] S33. When the working state is not the idle state, wait for a preset interval time and then return to the step of sending a query command to the seismograph using a handshake connection.
[0070] S34. When the working state is the idle state, the test command of the host computer is sent to the seismograph.
[0071] Specifically, the query command refers to the POLL command, and the interval can be 1500 milliseconds.
[0072] In detail, the device information includes SD card status, temperature value, voltage value, and operating status, wherein the operating status includes idle status, test completed status, and transmission in progress status.
[0073] Specifically, extracting the working status from the device information means filtering out the bytes corresponding to the device information according to the byte sequence number, and determining whether the working status is an idle state means performing byte analysis on the bytes corresponding to the device information to determine whether it is the byte value corresponding to the idle state.
[0074] Specifically, the SD card status is represented by a 1-bit byte, where 1 indicates a normal SD card status and 0 indicates an abnormal SD card status. The temperature value represents the temperature of the data acquisition station and is a 4-byte single-precision floating-point number (little endian). The temperature value ranges from -50°C to +125°C. When the temperature value is a negative number less than -100°C, it indicates a temperature sensor error. The voltage value represents the power supply voltage of the data 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 state is 1, it indicates an idle state, meaning the data acquisition station is idle and has not yet been tested. Test commands can be received, but data transmission commands cannot be received. When the working state is 2, it indicates a test-complete state, meaning the test or transmission is complete, and test commands can be received again. The previous test result is discarded. When the working state is 3, it indicates a transmission in progress state, meaning one data packet has been transmitted but not all of it has been transmitted. It is waiting to transmit the next packet. When all data has been transmitted, it enters the test-complete state.
[0075] In this embodiment of the invention, by establishing a handshake connection between the host computer and the seismograph, and by using the seismograph to obtain test commands from the host computer after the handshake connection, the handshake connection can 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 test commands from the host computer.
[0076] S2. Parse the test command to obtain the test type and enter the test mode;
[0077] In this embodiment of the invention, the test types include index tests and status tests. Specifically, the tests...
[0078] In this embodiment of the invention, parsing the test instruction to obtain the test type includes:
[0079] Extract the function code and command code from the test instructions based on the byte sequence number;
[0080] The test type is determined based on the function code and the command code.
[0081] In detail, the function code is an identifier code used to determine the type of function implemented by the instruction, and the command code is an identifier code for implementing a specific command. For example, the function code for the indicator test is 04, and the command code has 10 or 14 bits. The function code for the status test is 0x0A or 0x0B, and the command code is 00 or 01.
[0082] S3. When the test type is an index test, the seismograph is subjected to an excitation pulse test according to the test instruction to obtain a first test result. The excitation pulse test includes a sine wave test, a spike pulse test, and a wide pulse test.
[0083] In this embodiment of the invention, the step of performing an excitation pulse test on the seismograph according to the test command to obtain a first test result includes:
[0084] The command code is extracted from the test command, and the seismograph is subjected to a sine wave test according to the command code to obtain the positive harmonic results, wherein the positive harmonic results include total harmonic distortion, common mode rejection ratio, noise, gain accuracy and detector impedance.
[0085] The seismograph is subjected to a wide pulse test according to the command code to obtain wide pulse results, wherein the wide pulse results include detector resistance, natural frequency, sensitivity and damping coefficient;
[0086] The seismograph is subjected to a spike test according to the command code to obtain spike results, wherein the spike results include channel impulse response and detector impulse response;
[0087] The positive harmonic results, the wide pulse results, and the sharp pulse results are combined into a first test result.
[0088] 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. 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; and when the signal type is 1, the excitation pulse test is a sharp pulse test.
[0089] Specifically, the total harmonic distortion (THD) refers to the harmonic components present in the output signal compared to the input signal. The common mode rejection ratio (CRMM) is defined as the absolute value of the ratio of the voltage gain of the amplifier circuit for differential-mode signals to the voltage gain for common-mode signals.
[0090] In this embodiment of the invention, by performing an excitation pulse test on the seismograph according to the test command to obtain a first test result, the detector of the seismograph can be obtained for multi-directional detection, ensuring the normal operation of the detector. This replaces the general command line operation, reduces the number of bytes in the command, and improves the efficiency of the test.
[0091] S4. When the test type is a state test, the seismograph is triggered according to the test instruction to obtain a second test result, wherein the trigger test includes GPS test and polarity test;
[0092] In this embodiment of the invention, the step of triggering the seismograph according to the test command to obtain a second test result includes:
[0093] The seismograph is subjected to GPS testing using the test command to obtain periodic data of the seismograph for the GPS test, and all periodic data are aggregated into GPS results.
[0094] The polarity of the seismograph is tested using the test command. The seismograph is then controlled to flash according to the polarity test. The user is notified to tap the seismograph according to the flashing, and the pulse signal generated by the tapping is obtained. All the pulse signals are then combined into a polarity result.
[0095] The GPS results and the polarity results are combined into a second test result.
[0096] In this embodiment of the invention, the periodic data refers to the GPS data periodically sent by the seismograph to the host computer at intervals of 5 seconds. The trigger flashing refers to the LEDs of the seismograph flashing according to a preset flashing frequency and flashing color. The polarity result includes timeout, correct polarity, and reversed polarity.
[0097] In this embodiment of the invention, by triggering the seismograph according to the test command and obtaining the second test result, the working status of the GPS can be detected, and the weldability of the detector can be tested, thereby improving the breadth of seismograph testing.
[0098] 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.
[0099] In this embodiment of the invention, the step of sending the first test result and the second test result to the host computer and then exiting the test mode includes:
[0100] The first test result and the second test result are combined into a test result, and the test result is divided into data packets to obtain multiple test result data packets;
[0101] The test result data packets are selected one by one as target data packets according to the order of the data packets. 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.
[0102] Specifically, dividing the test results into multiple test result data packets means dividing the test results into packets according to the number of bytes. In detail, the number of bytes in each test result data packet can be 1512 bytes.
[0103] In detail, the step of obtaining test update data using the seismograph includes: sending a script writing instruction to the seismograph using the host computer, and obtaining test update data from the script writing instruction, wherein the test update data is a script file of up to 6144 bytes.
[0104] In this embodiment of the invention, 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 loss. By splitting the test results into data packets, the loss of a large amount of transmitted data in a single instance can be prevented, thereby improving data transmission efficiency. By using the seismograph to obtain test update data and using the test update data to update the seismograph version, the next test can be facilitated, and the efficiency of multiple seismograph tests can be improved.
[0105] This invention establishes a handshake connection between a host computer and a seismograph, and uses the seismograph to receive test commands from the host computer after the handshake connection. This handshake connection enables command transmission between the seismograph and the host computer, further facilitating the host computer's determination of the seismograph's status and ensuring the seismograph can receive test commands. By performing excitation pulse tests on the seismograph according to the test commands, a first test result is obtained. This allows for multi-directional detection of the seismograph's detector, ensuring its normal operation. This replaces conventional command-line operations, reduces the number of command bytes, and improves testing efficiency. Furthermore, by performing excitation pulse tests on the seismograph according to the test commands, the seismograph can obtain test results and perform multi-directional detection of the seismograph's detector, ensuring its normal operation. This replaces conventional command-line operations, reduces the number of command bytes, and improves testing efficiency. The seismograph performs a trigger test, obtaining a second test result. This allows for the detection of the GPS's operational status and the verification of the correct welding of the detector, thus broadening the scope of seismograph testing. By sending the first and second test results to the host computer and then exiting the test mode, a handshake connection can be used to ensure data transmission stability and reduce transmission loss. Data packetization of the test results prevents the loss of large amounts of data in a single transmission, improving data transmission efficiency. Using the seismograph to obtain test update data and updating the seismograph version facilitates subsequent tests and improves the efficiency of multiple seismograph tests. Therefore, the data communication-based seismograph testing method proposed in this invention can solve the problem of low testing efficiency during seismograph testing.
[0106] like Figure 4 The diagram shown is a functional block diagram of a seismograph testing device based on data communication provided in an embodiment of the present invention.
[0107] The data communication-based seismograph testing device 100 of this invention 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 invention can also be called a unit, referring to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, stored in the memory of the electronic device.
[0108] In this embodiment, the functions of each module / unit are as follows:
[0109] The handshake connection module 101 is used to establish a handshake connection between the host computer and the seismograph, and to obtain the test instructions from the host computer using the seismograph after the handshake connection.
[0110] The test type module 102 is used to parse the test instruction, obtain the test type, and enter the test mode;
[0111] The index testing module 103 is used to perform excitation pulse testing on the seismograph according to the test instruction when the test type is index testing, and obtain a first test result. The excitation pulse test includes sine wave testing, spike pulse testing and wide pulse testing.
[0112] The state test module 104 is used to trigger a test on the seismograph according to the test instruction when the test type is state test, and obtain a second test result, wherein the trigger test includes GPS test and polarity test;
[0113] The data transmission module 105 is used to send the first test result and the second test result to the host computer, exit the test mode, obtain test update data using the seismograph, update the seismograph using the test update data, and complete the test after the update is completed.
[0114] In detail, the modules in the data communication-based seismograph testing device 100 described in this embodiment of the invention employ the same methods as described above during use. Figures 1 to 3 The method uses the same technical means as the data communication-based seismograph testing method described in the previous section and can produce the same technical effect, so it will not be repeated here.
[0115] like Figure 5 The diagram shown is a structural schematic of an electronic device for implementing a data communication-based seismograph testing method according to an embodiment of the present invention.
[0116] 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 capable of running on the processor 10, such as a seismograph test program based on data communication.
[0117] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., executing a seismograph test program based on data communication) and calls data stored in the memory 11 to perform various functions of the electronic device and process data.
[0118] The memory 11 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device, such as a plug-in portable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, the memory 11 can include both internal and external storage units of the electronic device. The memory 11 can be used not only to store application software and various types of data installed on the electronic device, such as the code of a seismograph test program based on data communication, but also to temporarily store data that has been output or will be output.
[0119] The communication bus 12 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.
[0120] The communication interface 13 is used for communication between the aforementioned 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, Bluetooth interface, etc.), typically used to establish communication connections between the electronic device and other electronic devices. The user interface may be a display, an input unit (such as a keyboard), or, optionally, a standard wired or wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device and to display a visual user interface.
[0121] 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, or combine certain components, or have different component arrangements.
[0122] For example, although not shown, the electronic device may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0123] It should be understood that the embodiments described are for illustrative purposes only and are not limited to this structure in the scope of the patent application.
[0124] The seismograph test program based on data communication stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When run in the processor 10, it can achieve the following:
[0125] A handshake connection is established between the host computer and the seismograph, and the test commands from the host computer are obtained by the seismograph after the handshake connection is established.
[0126] The test command is parsed to obtain the test type, and then the test mode is entered;
[0127] When the test type is an index test, the seismograph is subjected to an excitation pulse test according to the test instruction to obtain a first test result. The excitation pulse test includes a sine wave test, a spike pulse test, and a wide pulse test.
[0128] When the test type is a state test, the seismograph is triggered to perform a test according to the test instruction to obtain a second test result, wherein the trigger test includes GPS test and polarity test;
[0129] After sending the first and second test results to the host computer, the test mode is exited. Test update data is obtained using the seismograph, and the seismograph is updated using the test update data. The test is completed after the update is finished.
[0130] Specifically, the specific implementation method of the processor 10 for the above instructions can be referred to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, and will not be repeated here.
[0131] Furthermore, if the modules / units integrated in 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 may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0132] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following:
[0133] A handshake connection is established between the host computer and the seismograph, and the test commands from the host computer are obtained by the seismograph after the handshake connection is established.
[0134] The test command is parsed to obtain the test type, and then the test mode is entered;
[0135] When the test type is an index test, the seismograph is subjected to an excitation pulse test according to the test instruction to obtain a first test result. The excitation pulse test includes a sine wave test, a spike pulse test, and a wide pulse test.
[0136] When the test type is a state test, the seismograph is triggered to perform a test according to the test instruction to obtain a second test result, wherein the trigger test includes GPS test and polarity test;
[0137] After sending the first and second test results to the host computer, the test mode is exited. Test update data is obtained using the seismograph, and the seismograph is updated using the test update data. The test is completed after the update is finished.
[0138] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0139] The modules described as separate components may or may not be physically separate. 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 units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0140] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0141] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0142] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.
[0143] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0144] 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. The terms "first," "second," etc., are used to indicate names and do not indicate any specific order.
[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A seismograph testing method based on data communication, characterized in that, The method includes: A handshake connection is established between the host computer and the seismograph, and a query command is sent to the seismograph through the handshake connection to obtain the device information of the seismograph in response to the query command. The working status is extracted from the device information, and it is determined whether the working status is idle. If the working status is not idle, the process returns to the step of sending the query command to the seismograph through the handshake connection after waiting for a preset interval. If the working status is idle, the test command from the host computer is sent to the seismograph. The function code and command code are extracted from the test instruction based on the byte sequence number. The test type is determined based on the function code and command code, and the test mode is entered. When the test type is an index test, the seismograph is subjected to an excitation pulse test according to the test instruction to obtain a first test result. The excitation pulse test includes a sine wave test, a spike pulse test, and a wide pulse test. When the test type is a state test, the seismograph is triggered to perform a test according to the test instruction to obtain a second test result, wherein the trigger test includes GPS test and polarity test; After sending the first and second test results to the host computer, the test mode is exited. Test update data is obtained using the seismograph, and the seismograph is updated using the test update data. The test is completed after the update is finished.
2. The seismograph testing method based on data communication as described in claim 1, characterized in that, The process of establishing a handshake connection between the host computer and the seismograph includes: The seismograph is powered on using the serial port signal from the host computer. Obtain the handshake signal sent when the seismograph is successfully powered on, and parse 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 described in claim 1, characterized in that, The step of performing an excitation pulse test on the seismograph according to the test command to obtain a first test result includes: The command code is extracted from the test command, and the seismograph is subjected to a sine wave test according to the command code to obtain the positive harmonic results, wherein the positive harmonic results include total harmonic distortion, common mode rejection ratio, noise, gain accuracy and detector impedance. The seismograph is subjected to a wide pulse test according to the command code to obtain wide pulse results, wherein the wide pulse results include detector resistance, natural frequency, sensitivity and damping coefficient; The seismograph is subjected to a spike test according to the command code to obtain spike results, wherein the spike results include channel impulse response and detector impulse response; The positive harmonic results, the wide pulse results, and the sharp pulse results are combined into a first test result.
4. The seismograph testing method based on data communication as described in claim 1, characterized in that, The step of triggering the seismograph according to the test command to obtain a second test result includes: The seismograph is subjected to GPS testing using the test command to obtain periodic data of the seismograph for the GPS test, and all periodic data are aggregated into GPS results. The polarity of the seismograph is tested using the test command. The seismograph is then controlled to flash according to the polarity test. The user is notified to tap the seismograph according to the flashing, and the pulse signal generated by the tapping is obtained. All the pulse signals are then combined into a polarity result. The GPS results and the polarity results are combined into a second test result.
5. The seismograph testing method based on data communication as described 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: The first test result and the second test result are combined into a test result, and the test result is divided into data packets to obtain multiple test result data packets; The test result data packets are selected one by one as target data packets according to the order of the data packets. 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.
6. A seismograph testing device based on data communication, characterized in that, The device includes: The handshake connection module is used to establish a handshake connection between the host computer and the seismograph, and to send a query command to the seismograph using the handshake connection. It obtains the device information of the seismograph in response to the query command, extracts the working status from the device information, and determines whether the working status is idle. If the working status is not idle, it waits for a preset interval and then returns to the step of sending the query command to the seismograph using the handshake connection. If the working status is idle, it sends the test command from the host computer to the seismograph. The test type module is used to extract the function code and command code from the test instruction according to the byte sequence number, determine the test type according to the function code and the command code, and enter the test mode. The index testing module is used to perform excitation pulse testing on the seismograph according to the test instruction when the test type is index testing, and obtain a first test result. The excitation pulse testing includes sine wave testing, spike pulse testing and wide pulse testing. The state test module is used to trigger a test on the seismograph according to the test instruction when the test type is state test, and obtain a second test result, wherein the trigger test includes GPS test and polarity test; The data transmission module is used to send the first test result and the second test result to the host computer, exit the test mode, obtain test update data using the seismograph, update the seismograph using the test update data, and complete the test after the update is completed.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data communication-based seismograph testing method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the data communication-based seismograph testing method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Operation method of communication system
CN101345680A
Seismic exploration equipment tester
CN110297282A