Collected data transmission method and apparatus based on seismograph, and device and storage medium

By establishing a handshake connection, parsing status information and sub-packaging in seismometer data transmission, the problem of low seismometer data transmission efficiency is solved and more stable data transmission is achieved.

WO2024187591A1PCT designated stage expired Publication Date: 2024-09-19MIANYUAN TECH SHENZHEN CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/096731
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

Technical Problem

Existing seismometer data transmission technology is inefficient, and is prone to transmission interruptions and data loss, especially when the network environment is poor.

Method used

Establish a handshake connection between the host computer and the seismograph, obtain the status information of the seismometer, analyze the status type, conduct test collection according to the operation instructions, subcontract the collection results, and use the preset time scale reading instructions to transmit data in batches.

Benefits of technology

It improves the efficiency and stability of data transmission, prevents data loss, and ensures efficient and reliable transmission of seismometer data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023096731_19092024_PF_FP_ABST
    Figure CN2023096731_19092024_PF_FP_ABST
Patent Text Reader

Abstract

A collected data transmission method based on a seismograph. The method comprises: establishing a handshake connection with a seismograph by using an upper computer, and acquiring state information of the seismograph by using the upper computer of after the handshake connection is established (S1); analyzing a state type from the state information, when the state type is a collection type, acquiring an operation instruction of the upper computer, and performing test collection on the seismograph according to the operation instruction, so as to obtain a collection result (S2); acquiring a reading instruction of the upper computer, entering a data transmission mode, and dividing the collection result into packages, so as to obtain a result transmission sequence (S3); and transmitting the result transmission sequence to the upper computer in batches by using the reading instruction and a preset time scale reading instruction, exiting the data transmission mode, and ending data transmission (S4). Further provided are a collected data transmission apparatus based on a seismograph, and an electronic device and a storage medium. Therefore, the transmission efficiency of seismograph data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Seismograph-based acquisition data transmission method, device, equipment, and storage medium Technical Field

[0001] The present application relates to the technical field of seismograph data transmission, and in particular to a method, device, electronic device and computer-readable storage medium for transmitting data acquired by a seismograph. Background Art

[0002] A seismograph is a detection instrument used to collect seismic data. With the increase in geological exploration activities on the earth, the number of times people use seismographs has greatly increased, and the amount of seismic data collected by seismographs has also increased accordingly. However, in order to transmit the seismic data collected by the seismograph to the host computer, it is necessary to set the data transmission method between the seismograph and the host computer to carry out seismic data transmission.

[0003] Existing seismograph data transmission technologies are mostly based on simple wireless WLAN (wireless LAN) network connections. For example, WiFi-based seismograph data transmission. In practical applications, simple wireless WLAN network connections require extensive communication control operations from the host computer. Furthermore, data transmission efficiency is significantly affected by the surrounding environment, which can lead to transmission interruptions and data loss in poor network conditions, resulting in low data transmission efficiency.

[0004] Summary of the Invention

[0005] The present application provides a method and device for transmitting data collected by a seismograph, and a computer-readable storage medium, the main purpose of which is to solve the problem of low efficiency in transmitting data by a seismograph.

[0006] To achieve the above-mentioned purpose, the present application provides a method for transmitting data collected by a seismograph, comprising:

[0007] Establishing a handshake connection between a host computer and a seismograph, and obtaining status information of the seismograph by using the host computer after the handshake connection;

[0008] Parsing the state type from the state information, and when the state type is an acquisition type, obtaining an operation instruction of the host computer, performing a test acquisition on the seismograph according to the operation instruction, and obtaining an acquisition result;

[0009] Obtaining a read instruction from the host computer, entering a data transmission mode, and packetizing the collected results to obtain a result transmission sequence;

[0010] The result transmission sequence is transmitted to the host computer in batches using the read instruction and the preset time-stamp read instruction, and the data transmission mode is exited to end the data transmission.

[0011] Optionally, the obtaining of status information of the seismograph by the host computer after the handshake connection includes:

[0012] Using the host computer to send a basic information reading command to the seismograph through the handshake connection, and obtaining basic information returned by the seismograph in response to the basic information reading command;

[0013] Parsing the firmware information and model information of the seismograph from the basic information, and sending an operation status reading command to the seismograph according to the firmware information and the model information;

[0014] State information of the seismograph for the operating state reading command is obtained.

[0015] Optionally, the basic information includes serial number, firmware version number, sampling interval, programmable gain amplifier gain, filter type, low-cut filter parameter, channel type, device type, integrated circuit card identification code and international mobile equipment identity code.

[0016] Optionally, the status information includes power supply voltage, sensor temperature, total memory capacity, remaining memory capacity, acquisition operation status, GPS operation status, leap second number, number of satellites, signal-to-noise ratio, real-time clock drift, maximum clock drift, GPS elevation, GPS date, GPS time, device latitude and longitude, GPS latitude and longitude, signal strength value, network transmission mode, channel detector resistance, warning status and operation information.

[0017] Optionally, performing test acquisition on the seismograph according to the operating instruction to obtain acquisition results includes:

[0018] Entering an acquisition mode using the operation instruction, and acquiring a GPS acquisition result of the seismograph using a GPS time acquisition instruction of the acquisition mode;

[0019] The stored acquisition result in the TF card of the seismograph is acquired by using the TF acquisition instruction of the acquisition mode, and the state information, the GPS acquisition result and the stored acquisition result are aggregated into an acquisition result.

[0020] Optionally, the subpackaging the collection results to obtain a result transmission sequence includes:

[0021] Splitting the acquisition result into multiple channel data packets;

[0022] Selecting the channel data packets one by one as target channel data packets, and subpacketizing the target channel data packets according to a preset byte threshold to obtain multiple channel transmission packets;

[0023] All channel transmission packets of the target channel data packet are assembled into a channel transmission sequence in order, and all the channel transmission sequences are assembled into a result transmission sequence.

[0024] Optionally, the step of transmitting the result transmission sequence to the host computer in batches using the read instruction and a preset time-stamp read instruction includes:

[0025] Establishing a multi-channel transmission connection with the host computer using the read instruction;

[0026] Transmitting the channel transmission sequence in the result transmission sequence frame by frame according to the transmission channel of the multi-channel transmission connection;

[0027] When the frame-by-frame transmission is interrupted, the multi-channel transmission connection is re-established with the host computer using the preset time stamp reading instruction, and the step of establishing the multi-channel transmission connection with the host computer using the reading instruction is returned to, until the last frame of data in the result transmission sequence is transmitted, and the batch transmission is ended.

[0028] In order to solve the above problems, the present application also provides a data acquisition and transmission device based on a seismograph, the device comprising:

[0029] A handshake connection module is used to establish a handshake connection with the seismograph using a host computer, and obtain status information of the seismograph using the host computer after the handshake connection;

[0030] A test acquisition module, configured to parse a state type from the state information, obtain an operation instruction of the host computer when the state type is an acquisition type, perform test acquisition on the seismograph according to the operation instruction, and obtain an acquisition result;

[0031] A data subpackaging module is used to obtain the read instruction of the host computer, enter the data transmission mode, subpacketize the collected results, and obtain a result transmission sequence;

[0032] The data transmission module is used to transmit the result transmission sequence to the host computer in batches using the read instruction and the preset time-stamp read instruction, exit the data transmission mode, and end the data transmission.

[0033] In order to solve the above problem, the present application further provides an electronic device, comprising:

[0034] at least one processor; and,

[0035] a memory communicatively connected to the at least one processor; wherein,

[0036] 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-based acquisition data transmission method.

[0037] 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 seismograph-based acquisition data transmission method.

[0038] The embodiment of the present application establishes a handshake connection between a host computer and a seismograph, and uses the host computer after the handshake connection to obtain the status information of the seismograph, thereby obtaining the firmware information and signal information of the seismograph, which facilitates the subsequent selection of appropriate types of instructions for communication. By obtaining the status information, it is further convenient to further analyze the operating status of the device in the subsequent process. By parsing the status type from the status information, the current status of the seismograph can be determined, and the operation instructions of the host computer can be obtained in the state where the acquisition can be performed. By testing and acquiring the seismograph according to the operation instructions, the acquisition results can be obtained, and the real-time test data and T of the seismograph can be obtained. The past usage data stored in the F card can be used to perform a functional check on the seismograph to ensure that the seismograph is in normal working condition. By subpackaging the acquisition results to obtain a result transmission sequence, the acquisition results can be divided into multiple channel transmission sequences, and multi-channel data transmission can be performed simultaneously to ensure the efficiency of data transmission. At the same time, by using the channel transmission sequence to transmit in frames, data loss can be effectively prevented and the stability of data transmission can be improved. By using the read instruction and the preset time-stamp read instruction to transmit the result transmission sequence in batches to the host computer, the efficiency and stability of the result transmission sequence can be ensured, and the efficiency of data transmission can be improved. Therefore, the acquisition data transmission method, device, electronic device and computer-readable storage medium based on the seismograph proposed in this application can solve the problem of low efficiency when performing seismograph data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] FIG1 is a flow chart of a method for transmitting collected data based on a seismograph according to an embodiment of the present application;

[0040] FIG2 is a schematic diagram of a process for obtaining status information according to an embodiment of the present application;

[0041] FIG3 is a schematic diagram of a process for collecting subpackaged results according to an embodiment of the present application;

[0042] FIG4 is a functional module diagram of a seismograph-based data acquisition and transmission device according to an embodiment of the present application;

[0043] FIG5 is a schematic structural diagram of an electronic device for implementing the seismograph-based data acquisition and transmission method provided in an embodiment of the present application.

[0044] 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

[0045] 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.

[0046] The embodiment of the present application provides a method for collecting and transmitting data based on a seismograph. The execution subject of the method for collecting and transmitting data based on a seismograph 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 method for collecting and transmitting data based on a seismograph 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.

[0047] 1 is a flow chart of a method for transmitting data collected by a seismograph according to an embodiment of the present application. In this embodiment, the method for transmitting data collected by a seismograph according to an embodiment of the present application includes:

[0048] S1. Establishing a handshake connection between a host computer and a seismograph, and obtaining status information of the seismograph using the host computer after the handshake connection;

[0049] 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.

[0050] In detail, the seismograph may be an IGU-16 earth exploration instrument or an IGU-16HR 3C earth exploration instrument.

[0051] In the embodiment of the present application, the establishment of a handshake connection between the host computer and the seismograph includes:

[0052] Use the serial port signal of the host computer to start the seismograph;

[0053] Obtaining a handshake signal sent when the seismograph is successfully powered on, and parsing the terminal type from the handshake signal;

[0054] A handshake response signal corresponding to the terminal type is sent to the seismograph to complete the connection handshake.

[0055] Specifically, the terminal types include using WIFI, using wired Ethernet alone, and using Ethernet and connecting to a 4G communication module.

[0056] In detail, as shown in FIG2 , the process of obtaining the status information of the seismograph by the host computer after the handshake connection includes:

[0057] S21, using the host computer to send a basic information reading command to the seismograph through the handshake connection, and obtaining basic information returned by the seismograph in response to the basic information reading command;

[0058] S22, parsing the firmware information and model information of the seismograph from the basic information, and sending an operation status reading command to the seismograph according to the firmware information and the model information;

[0059] S23: Obtain status information of the seismograph corresponding to the operating status reading command.

[0060] In an embodiment of the present application, the basic information reading command refers to an INFO instruction, which includes a start code, a function code, an address code, instruction data and a cyclic redundancy check code (CRC), wherein the function code can be 05 and the instruction data can be 0X16.

[0061] In an embodiment of the present application, the basic information includes serial number, firmware version number, sampling interval, programmable gain amplifier gain, filter type, low-cut filter parameters, channel type, device type, integrated circuit card identification code and international mobile equipment identity code.

[0062] In detail, the basic information refers to the encrypted bytes containing the firmware information, model information and other information of the earthquake; the serial number is composed of 9 bytes of ASCII code and a 00 byte, for example, the following 10 bytes are the serial number "30000123": 0x33, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x32, 0x33, 0x00, and the firmware version number is composed of an ASCII string of up to 15 bytes, for example, the following 16 bytes are the version number "V 1.0.3.9":0x56,0x31,0x2e,0x30,0x2e,0x33,0x2e,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, the sampling interval can be 1 (1ms), 2 (2ms), 4 (4ms), corresponding to the sampling rate of 1000sps, 500sps, 250sps, respectively, the analog-to-digital converter (Analog-to-digital The gain of the programmable gain amplifier (PGA) of the ADC can be 0 (0db), 1 (6db), 2 (12db), 3 (18db), or 4 (24db). The filter type can be 0 (linear) or 1 (minimum delay). The low-cut filter parameter can be 0 (disable), 1-10 (corner frequency), or 11 (DC removal). The channel type ranges from 0 to 255 and can be set in the script. The device type is a device type description string with a maximum length of 19 bytes, such as "ADSR 10", "ADSR 5", "AUX", "TB", etc., which can be set by the script. The integrated circuit card identification code is the 4G integrated circuit card identity (ICCID), and the international mobile equipment identity code is the international mobile equipment identity (IMEI) of the 4G module.

[0063] In detail, the firmware information includes the version number, the sampling interval, the programmable gain amplifier gain, the filter type, the low-cut filter parameters and the channel type; the model information includes the serial number, the device type, the integrated circuit card identification code and the international mobile equipment identification code.

[0064] In detail, the operation status reading command refers to the STATE instruction, and the function code of the STATE instruction may be 06.

[0065] In an embodiment of the present application, by establishing a handshake connection between a host computer and a seismograph, and using the host computer after the handshake connection to obtain status information of the seismograph, the firmware information and signal information of the seismograph can be obtained, which facilitates the subsequent selection of appropriate types of instructions for communication. By obtaining the status information, the subsequent analysis of the operating status of the equipment can be further facilitated.

[0066] S2. parsing a state type from the state information, and when the state type is an acquisition type, obtaining an operation instruction of the host computer, and performing a test acquisition on the seismograph according to the operation instruction to obtain an acquisition result;

[0067] In an embodiment of the present application, the status information includes power supply voltage, sensor temperature, total memory capacity, remaining memory capacity, acquisition operation status, GPS operation status, leap second number, number of satellites, signal-to-noise ratio, real-time clock drift, maximum clock drift, GPS elevation, GPS date, GPS time, device latitude and longitude, GPS latitude and longitude, signal strength value, network transmission mode, channel detector resistance, warning status and operation information.

[0068] In detail, the power supply voltage is a 32-bit single-precision floating-point number in volts (a negative number indicates that the voltage is not obtained); the sensor temperature is a 32-bit single-precision floating-point number in degrees Celsius; the total memory capacity is a 32-bit unsigned number in K bytes; the remaining memory capacity is a 32-bit unsigned number in K bytes; the acquisition operation status is a single-byte unsigned number, and the GPS operation status includes GPS off, GPS open and unlocked, locked in 2D mode, and locked in 3D mode; the leap second number refers to the leap second number obtained by the satellite, and when it is 0, it means that it has not been obtained; the number of satellites refers to the total number of satellites currently received; the signal-to-noise ratio refers to the signal-to-noise ratio of the four satellites with the best GPS signals; the real-time clock drift is a signed integer in units of 0.122 microseconds (uS); the maximum clock drift is the maximum clock drift The absolute value of the displacement is an unsigned integer with a unit of 0.122 microseconds (uS); the GPS altitude refers to the altitude of GPS positioning, a 32-bit single-precision floating point number with a unit of meter; the GPS date is the UTC date of GPS, an ASCII string with a total length of 10, in a format such as: yyyymmdd, followed by zeros; the GPS time is the UTC time of GPS, an ASCII string with a total length of 10, in a format such as: hhmmss, followed by zeros; the device latitude and longitude are used to indicate whether the longitude is east or west and whether the latitude is south or north; the GPS latitude and longitude are used to indicate the longitude and latitude of GPS positioning, and both latitude and longitude are ASCII strings with a total length of 12, in the format of "ddmm.mmmm"; the signal strength value is used to indicate the signal strength value of WIFI or 4G (Received The RSSI value is as follows: the network transmission mode includes WiFi mode, Ethernet (4G) mode, 4G mode on, Ethernet mode DHCP mode, and Ethernet mode DNS mode; the channel detector resistance is the DC resistance of the Z channel, X channel, and Y channel detectors measured when the device is turned on, a single-precision floating-point number in kilo-ohms; the warning status includes detector test pass / fail status, battery voltage warning / normal status, TF card memory warning / normal status, and external / internal battery status; the operating information includes detector type and whether the detector's Z axis, X axis, and Y axis are shielded.

[0069] In the embodiment of the present application, parsing the status type from the status information includes:

[0070] Filtering the collection running status from the status information according to the byte sequence number;

[0071] The acquisition running status is byte parsed to obtain a status type.

[0072] In detail, the collected running status is the 16th byte of the status information, and the running status can be filtered out from the status information according to the byte sequence number using a regular expression or a character index.

[0073] Specifically, the state types include a power-on state type, a view-locked GPS type, an analog-to-digital converter initialization type, an initial crystal oscillator taming type, and an acquisition type.

[0074] The acquisition and running status is byte parsed to obtain a status type. For example, when the acquisition and running status byte is 0, it represents the ACQ_STATE_IDLE state, that is, the power-on state type; when the acquisition and running status byte is 1, it represents the ACQ_STATE_WAIT_GPS_LOCK state, that is, the GPS lock attempt type; when the acquisition and running status byte is 2, it represents the ACQ_STATE_WAIT_ADS_INIT state, that is, the analog-to-digital converter (ADC) initialization type; when the acquisition and running status byte is 3, it represents the ACQ_STATE_WAIT_SYNC_EVENT state, that is, the first crystal oscillator training type; when the acquisition and running status byte is 4, it represents the ACQ_STATE_RUNNING state, that is, the acquisition type.

[0075] In detail, the operation instruction may be an ENTER TEST instruction, and the function code of the STATE instruction may be 07.

[0076] In the embodiment of the present application, the testing and collecting data on the seismograph according to the operating instruction to obtain the collection results includes:

[0077] Entering an acquisition mode using the operation instruction, and acquiring a GPS acquisition result of the seismograph using a GPS time acquisition instruction of the acquisition mode;

[0078] The stored acquisition result in the TF card of the seismograph is acquired by using the TF acquisition instruction of the acquisition mode, and the state information, the GPS acquisition result and the stored acquisition result are aggregated into an acquisition result.

[0079] In detail, the GPS event collection instruction refers to the ACQ GPS TIME instruction, and the GPS collection results include: the GPS time week number (week_first_written) when the site starts collecting, the GPS time milliseconds in the week (msofwk_first_written) when the site starts collecting, the GPS time week number (msofwk_last_written) when the site last stores data on the TF card, the GPS time milliseconds in the week (msofwk_last_written) when the site last stores data on the TF card, the collection has not started, and the collection has started but the first block of data has not been written.

[0080] Specifically, the TF acquisition instruction refers to the STORED GPS TIM instruction, and the stored acquisition results include: the GPS week number (week_start) when the file acquisition starts, the GPS milliseconds in the week (msofwk_start) when the file acquisition starts, the GPS week number (msofwk_end) when the file acquisition ends, and the GPS milliseconds in the week (msofwk_end) when the file acquisition ends.

[0081] In an embodiment of the present application, by parsing the status type from the status information, the current status of the seismograph can be determined, and the operation instructions of the host computer can be obtained in a state where collection can be performed. By testing and collecting data on the seismograph according to the operation instructions, the collection results can be obtained, and the real-time test data of the seismograph and the past usage data stored in the TF card can be obtained. The function of the seismograph can be checked to ensure that the seismograph is in normal working condition.

[0082] S3, obtaining a read instruction from the host computer, entering a data transmission mode, and packetizing the collected results to obtain a result transmission sequence;

[0083] In the embodiment of the present application, the read instruction refers to the READ instruction, and the function code can be 03 or 1C.

[0084] In the embodiment of the present application, as shown in FIG3 , the collection results are subpacketized to obtain a result transmission sequence, including:

[0085] S31, splitting the collection result into multiple channel data packets;

[0086] S32, selecting the channel data packets one by one as target channel data packets, and subpacketizing the target channel data packets according to a preset byte threshold to obtain multiple channel transmission packets;

[0087] S33: Gather all channel transmission packets of the target channel data packet into a channel transmission sequence in order, and gather all the channel transmission sequences into a result transmission sequence.

[0088] In an embodiment of the present application, the byte threshold may be 3072 bytes, and the number of the channel data packets may be three.

[0089] In an embodiment of the present application, by subpackaging the acquisition results to obtain a result transmission sequence, the acquisition results can be divided into multiple channel transmission sequences, and multi-channel data transmission can be performed simultaneously to ensure the high efficiency of data transmission. At the same time, by utilizing the channel transmission sequence for frame transmission, data loss can be effectively prevented and the stability of data transmission can be improved.

[0090] S4. Utilize the read instruction and the preset time-stamp read instruction to transmit the result transmission sequence to the host computer in batches, exit the data transmission mode, and end the data transmission.

[0091] In the embodiment of the present application, the timestamp reading instruction is used only once when the communication is interrupted and reconnected.

[0092] In the embodiment of the present application, the method of transmitting the result transmission sequence to the host computer in batches using the read instruction and the preset time-stamp read instruction includes:

[0093] Establishing a multi-channel transmission connection with the host computer using the read instruction;

[0094] Transmitting the channel transmission sequence in the result transmission sequence frame by frame according to the transmission channel of the multi-channel transmission connection;

[0095] When the frame-by-frame transmission is interrupted, the multi-channel transmission connection is re-established with the host computer using the preset time stamp reading instruction, and the step of establishing the multi-channel transmission connection with the host computer using the reading instruction is returned to, until the last frame of data in the result transmission sequence is transmitted, and the batch transmission is ended.

[0096] In an embodiment of the present application, the frame-by-frame transmission of the channel transmission sequence in the result transmission sequence according to the transmission channel of the multi-channel transmission connection refers to matching the channel transmission sequence in the result transmission sequence with the transmission channel of the multi-channel transmission connection one by one, and simultaneously performing frame-by-frame transmission, wherein the frame-by-frame transmission refers to transmitting the data of one sequence frame in the channel transmission sequence each time, and accepting the return information of the host computer for the sequence frame transmission, so as to determine whether the transmission is interrupted.

[0097] In the embodiment of the present application, by utilizing the read instruction and the preset time-stamp read instruction to transmit the result transmission sequence to the host computer in batches, the efficiency and stability of the result transmission sequence can be ensured, thereby improving the efficiency of data transmission.

[0098] The embodiment of the present application establishes a handshake connection between a host computer and a seismograph, and uses the host computer after the handshake connection to obtain the status information of the seismograph, thereby obtaining the firmware information and signal information of the seismograph, which facilitates the subsequent selection of appropriate types of instructions for communication. By obtaining the status information, it is further convenient to further analyze the operating status of the device in the subsequent process. By parsing the status type from the status information, the current status of the seismograph can be determined, and the operation instructions of the host computer can be obtained in the state where the acquisition can be performed. By testing and acquiring the seismograph according to the operation instructions, the acquisition results can be obtained, and the real-time test data and T of the seismograph can be obtained. The past usage data stored in the F card can be used to perform a functional check on the seismograph to ensure that the seismograph is in normal working condition. By subpackaging the acquisition results to obtain a result transmission sequence, the acquisition results can be divided into multiple channel transmission sequences, and multi-channel data transmission can be performed simultaneously to ensure the efficiency of data transmission. At the same time, by using the channel transmission sequence to transmit in frames, data loss can be effectively prevented and the stability of data transmission can be improved. By using the read instruction and the preset time-stamp read instruction to transmit the result transmission sequence in batches to the host computer, the efficiency and stability of the result transmission sequence can be ensured, and the efficiency of data transmission can be improved. Therefore, the acquisition data transmission method based on the seismograph proposed in this application can solve the problem of low efficiency when performing seismograph data transmission.

[0099] As shown in FIG4 , it is a functional module diagram of a seismograph-based data acquisition and transmission device provided in one embodiment of the present application.

[0100] The seismograph-based data acquisition and transmission device 100 described herein can be installed in an electronic device. Depending on the functionality implemented, the seismograph-based data acquisition and transmission device 100 may include a handshake connection module 101, a test acquisition module 102, a data packetization module 103, and a data transmission module 104. A module, also referred to as a unit, is a series of computer program segments that can be executed by an electronic device processor and perform a fixed function, and is stored in the electronic device's memory.

[0101] In this embodiment, the functions of each module / unit are as follows:

[0102] The handshake connection module 101 is used to establish a handshake connection with the seismograph using a host computer, and obtain status information of the seismograph using the host computer after the handshake connection;

[0103] The test acquisition module 102 is configured to parse the state type from the state information, obtain an operation instruction from the host computer when the state type is an acquisition type, perform test acquisition on the seismograph according to the operation instruction, and obtain an acquisition result;

[0104] The data subpackaging module 103 is used to obtain the read instruction of the host computer, enter the data transmission mode, subpacketize the collected results, and obtain a result transmission sequence;

[0105] The data transmission module 104 is configured to transmit the result transmission sequence to the host computer in batches using the read instruction and a preset time-stamp read instruction, exit the data transmission mode, and terminate the data transmission.

[0106] In detail, each module described in the seismograph-based data acquisition and transmission device 100 described in the embodiment of the present application adopts the same technical means as the seismograph-based data acquisition and transmission method described in Figures 1 to 3 above when in use, and can produce the same technical effects, which will not be repeated here.

[0107] As shown in FIG5 , it is a schematic structural diagram of an electronic device for implementing a seismograph-based data acquisition and transmission method provided in one embodiment of the present application.

[0108] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a seismograph-based acquisition data transmission program.

[0109] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, 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 the programs or modules stored in the memory 11 (for example, executing the data acquisition and transmission program based on the seismograph, etc.), as well as calling the data stored in the memory 11, to perform various functions of the electronic device and process data.

[0110] 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 the acquisition data transmission program based on the seismograph, but can also be used to temporarily store data that has been output or is to be output.

[0111] 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.

[0112] 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.

[0113] 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.

[0114] 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.

[0115] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0116] The data transmission program based on the seismograph stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve the following:

[0117] Establishing a handshake connection between a host computer and a seismograph, and obtaining status information of the seismograph by using the host computer after the handshake connection;

[0118] Parsing the state type from the state information, and when the state type is an acquisition type, obtaining an operation instruction of the host computer, performing a test acquisition on the seismograph according to the operation instruction, and obtaining an acquisition result;

[0119] Obtaining a read instruction from the host computer, entering a data transmission mode, and packetizing the collected results to obtain a result transmission sequence;

[0120] The result transmission sequence is transmitted to the host computer in batches using the read instruction and the preset time-stamp read instruction, and the data transmission mode is exited to end the data transmission.

[0121] 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 drawings, which will not be repeated here.

[0122] 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).

[0123] 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:

[0124] Establishing a handshake connection between a host computer and a seismograph, and obtaining status information of the seismograph by using the host computer after the handshake connection;

[0125] Parsing the state type from the state information, and when the state type is an acquisition type, obtaining an operation instruction of the host computer, performing a test acquisition on the seismograph according to the operation instruction, and obtaining an acquisition result;

[0126] Obtaining a read instruction from the host computer, entering a data transmission mode, and packetizing the collected results to obtain a result transmission sequence;

[0127] The result transmission sequence is transmitted to the host computer in batches using the read instruction and the preset time-stamp read instruction, and the data transmission mode is exited to end the data transmission.

[0128] 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.

[0129] 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.

[0130] 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.

[0131] 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.

[0132] 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.

[0133] 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.

[0134] 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.

[0135] 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 method for transmitting data collected by a seismograph, characterized in that: The method comprises: Using a host computer to establish a handshake connection with a seismograph, and using the host computer after the handshake connection to obtain status information of the seismograph; Parsing the state type from the state information, and when the state type is an acquisition type, obtaining the operation instruction of the host computer, and testing and acquiring the seismograph according to the operation instruction to obtain an acquisition result; Obtaining a read instruction from the host computer, entering a data transmission mode, and packetizing the collected results to obtain a result transmission sequence; The result transmission sequence is transmitted to the host computer in batches using the read instruction and the preset time-stamp read instruction, and the data transmission mode is exited to end the data transmission.

2. The method for transmitting data collected based on a seismograph according to claim 1, characterized in that: The obtaining of the status information of the seismograph by the host computer after the handshake connection includes: Using the host computer to send a basic information reading command to the seismograph through the handshake connection, and obtaining basic information returned by the seismograph in response to the basic information reading command; Parsing the firmware information and model information of the seismograph from the basic information, and sending an operation status reading command to the seismograph according to the firmware information and the model information; The state information of the seismograph for the operation state reading command is obtained.

3. The method for transmitting data collected based on a seismograph according to claim 2, characterized in that: The basic information includes serial number, firmware version number, sampling interval, programmable gain amplifier gain, filter type, low-cut filter parameters, channel type, device type, integrated circuit card identification code and international mobile equipment identity code.

4. The method for transmitting data collected based on a seismograph according to claim 1, characterized in that: The status information includes power supply voltage, sensor temperature, total memory capacity, remaining memory capacity, acquisition operation status, GPS operation status, leap second number, number of satellites, signal-to-noise ratio, real-time clock drift, maximum clock drift, GPS altitude, GPS date, GPS time, device longitude and latitude, GPS longitude and latitude, signal strength value, network transmission mode, channel detector resistance, warning status and operation information.

5. The method for transmitting data collected based on a seismograph according to claim 1, characterized in that: The testing and collecting data on the seismograph according to the operation instruction to obtain the collection result includes: Use the operation command to enter the collection mode, use the GPS time collection command of the collection mode Obtain the GPS acquisition result of the seismograph; The storage acquisition result in the TF card of the seismograph is acquired by using the TF acquisition instruction of the acquisition mode, and the state information, the GPS acquisition result and the storage acquisition result are collected into an acquisition result.

6. The method for transmitting data collected based on a seismograph according to claim 1, characterized in that: The step of packaging the collected results to obtain a result transmission sequence includes: Splitting the acquisition result into a plurality of channel data packets; Selecting the channel data packets one by one as target channel data packets, and packetizing the target channel data packets according to a preset byte threshold to obtain a plurality of channel transmission packets; All channel transmission packets of the target channel data packet are assembled into a channel transmission sequence in order, and all the channel transmission sequences are assembled into a result transmission sequence.

7. The method for transmitting data collected based on a seismograph according to claim 6, characterized in that: The step of using the read instruction and the preset time-stamp read instruction to transmit the result transmission sequence to the host computer in batches includes: Establishing a multi-channel transmission connection with the host computer using the read instruction; Transmitting the channel transmission sequence in the result transmission sequence frame by frame according to the transmission channel of the multi-channel transmission connection; When the frame-by-frame transmission is interrupted, the multi-channel transmission connection is re-established with the host computer using the preset time stamp reading instruction, and the step of establishing the multi-channel transmission connection with the host computer using the reading instruction is returned to until the last frame of data in the result transmission sequence is transmitted, and the batch transmission is ended.

8. A data collection and transmission device based on a seismograph, characterized in that: The device comprises: A handshake connection module, used to establish a handshake connection with the seismograph using a host computer, and obtain status information of the seismograph using the host computer after the handshake connection; A test acquisition module, used for parsing the state type from the state information, and when the state type is an acquisition type, obtaining the operation instruction of the host computer, and performing test acquisition on the seismograph according to the operation instruction to obtain an acquisition result; A data subpackaging module is used to obtain the read instruction of the host computer, enter the data transmission mode, subpacketize the collection results, and obtain a result transmission sequence; A data transmission module is used to transmit the result to the If the transmission sequence is transmitted to the host computer in batches, the data transmission mode is exited and the data transmission is ended.

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-based acquisition data transmission method according to 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-based acquisition data transmission method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Storage type earthquake signal continuous collecting system

    CN101639539A

  • Distributed node seismometer network communication method

    CN106455135A

  • Wireless monitoring method for single-channel no-cable storage type seismographs

    CN106646665A

  • Data transmission method and device and storage medium

    CN110300113A

  • 5G and 4G combined communication method and system of wireless seismometer

    CN110376641A