Data acquisition method and device, electronic equipment and storage medium

By receiving the transmission status information of the short-wave device at the transmitting end and performing dynamic data acquisition based on this information, the problem of poor data quality on the short-wave channel is solved, more accurate data acquisition and fault location are achieved, and the performance of the short-wave wireless communication device is improved.

CN119030858APending Publication Date: 2024-11-26GUANGZHOU HAIGE COMMUNICATION GROUP INCORPORATED COMPANY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310611168.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

When collecting data on short-wave channels, the data quality is poor, and there are problems such as large amount of data, many invalid information, and difficulty locating fault points.

Method used

By receiving the transmission status information from the shortwave device at the transmitting end, based on the information and preset record file configuration information, the data acquisition operation is dynamically and real-time, and a data acquisition record file associated with the transmission status of the shortwave device at the transmitting end is generated to reduce invalid information , improve the accuracy and reliability of data acquisition.

Benefits of technology

It effectively reduces the amount of data recorded in the data acquisition and recording file, reduces invalid information, and makes it easier to locate data failure points during short-wave wireless communication, and locates problems in signal transmission and signal processing of short-wave wireless communication equipment, and optimizes algorithms. Performance improvement provides an effective solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030858A_ABST
    Figure CN119030858A_ABST
Patent Text Reader

Abstract

The invention provides a data acquisition method and device, electronic equipment and a storage medium, and relates to the technical field of short-wave communication, and the method comprises the steps: receiving the transmitting state information from transmitting-end short-wave equipment, the transmitting state information being used for representing the real-time state of transmitting data to receiving-end short-wave equipment by the transmitting-end short-wave equipment; based on the transmitting state information and preset record file configuration information, target operation is executed on data received by the receiving end short wave equipment, the preset record file configuration information is used for generating a data collection record file, and the target operation is related to data collection. According to the method, the data acquisition and recording file is associated with the transmitting state of the short-wave equipment at the transmitting end in real time, so that the volume of data recorded in the data acquisition and recording file is effectively reduced, and invalid information is reduced; and an effective solution is provided for problem positioning, algorithm optimization and performance improvement of the short-wave wireless communication equipment in signal transmission and signal processing processes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of shortwave communication, and in particular to a data acquisition method, device, electronic equipment and storage medium. Background Art

[0002] Shortwave communication, also known as high frequency (HF) communication, uses electromagnetic waves with a frequency range of 1.6MHz to 30MHz for wireless communication. As an important means of communication in the field of communication, shortwave communication has the advantages of long communication distance, strong anti-destruction, low operating cost, and easy equipment installation. It has long been widely used in message transmission, weather broadcasting, commercial communication, navigation and aviation, military command, flood prevention and disaster relief, etc. Therefore, it is very necessary to collect data on the signals on the shortwave channel and provide it to relevant designers for problem analysis, algorithm optimization and performance improvement.

[0003] In the related art, when data is collected on a shortwave channel, the quality of the collected data is poor, and there are defects such as a large amount of data, a lot of invalid information, and difficulty in locating the fault point.

[0004] Therefore, how to improve the quality of data collected on the shortwave channel is an urgent problem to be solved. Summary of the invention

[0005] In view of the problems existing in the prior art, the embodiments of the present invention provide a data collection method, device, electronic device and storage medium.

[0006] The present invention provides a data collection method, comprising:

[0007] Receiving transmission status information from a shortwave device at a transmitting end, wherein the transmission status information is used to represent a real-time status of data transmitted by the shortwave device at the transmitting end to the shortwave device at the receiving end;

[0008] Based on the transmission status information and preset record file configuration information, a target operation is performed on the data received by the shortwave device at the receiving end, the preset record file configuration information is used to generate a data collection record file, and the target operation is related to data collection.

[0009] Optionally, the transmission status information includes any one of the following:

[0010] The first indication information is used to instruct the shortwave device at the transmitting end to start transmitting data to the shortwave device at the receiving end;

[0011] The second indication information is used to instruct the shortwave device at the transmitting end to stop transmitting data to the shortwave device at the receiving end.

[0012] Optionally, the performing a target operation on the data received by the shortwave device at the receiving end based on the transmission state information and the preset record file configuration information includes any one of the following:

[0013] In the case where the transmission state information includes the first indication information, based on the first indication information and the preset record file configuration information, starting to collect data received by the shortwave device at the receiving end, and creating the data collection record file;

[0014] In the case where the transmission status information includes the second indication information, based on the second indication information and the preset record file configuration information, the data received by the shortwave device at the receiving end is stopped from being collected, and the data collection record file is generated.

[0015] Optionally, the preset record file configuration information includes file creation advance information, which is used to indicate that, starting from a first preset time before receiving the first indication information, the data received by the shortwave device at the receiving end is collected and the data collection record file is created;

[0016] The step of starting to collect data received by the shortwave device at the receiving end and creating the data collection record file based on the first indication information and the preset record file configuration information includes:

[0017] Based on the file creation advance information, starting from a first preset time before receiving the first indication information, the data received by the shortwave device at the receiving end is collected, and the data collection record file is created.

[0018] Optionally, the preset record file configuration information further includes file closing hysteresis information, which is used to indicate that after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped from being collected after a second preset time period, and the data collection record file is generated;

[0019] The method of stopping collecting data received by the shortwave device at the receiving end and generating the data collection record file based on the second indication information and the preset record file configuration information includes:

[0020] Based on the file closing hysteresis information, after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped after a second preset time period, and the data collection record file is generated.

[0021] Optionally, before receiving the transmission status information from the shortwave device at the transmitting end, the method further includes:

[0022] The data received by the shortwave device at the receiving end is cached.

[0023] Optionally, before receiving the transmission status information from the shortwave device at the transmitting end, the method further includes:

[0024] Reporting configuration information is sent to the transmitting end shortwave device and the receiving end shortwave device, wherein the reporting configuration information is used to receive the transmitting state information and / or the data received by the receiving end shortwave device.

[0025] The present invention also provides a data acquisition device, comprising:

[0026] A receiving module, used for receiving transmission status information from a shortwave device at a transmitting end, wherein the transmission status information is used for representing a real-time status of data transmitted by the shortwave device at the transmitting end to the shortwave device at the receiving end;

[0027] An execution module is used to perform a target operation on the data received by the receiving end shortwave device based on the transmission state information and preset record file configuration information, the preset record file configuration information is used to generate a data acquisition record file, and the target operation is related to data acquisition.

[0028] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned data collection methods is implemented.

[0029] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data acquisition method described in any one of the above is implemented.

[0030] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the data collection methods described above.

[0031] The data acquisition method, device, electronic device and storage medium provided by the present invention determine the real-time state of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end by receiving the transmission state information from the shortwave device at the transmitting end, so as to trigger the dynamic and real-time execution of target operations related to data acquisition, and generate a data acquisition record file based on preset record file configuration information, so that the data acquisition record file is associated with the transmission state of the shortwave device at the transmitting end in real time, effectively reducing the amount of data recorded in the data acquisition record file, reducing invalid information, and making it easier to locate data fault points during shortwave wireless communication, thereby providing an effective solution for problem location, algorithm optimization and performance improvement of shortwave wireless communication equipment during signal transmission and signal processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 It is one of the flow charts of the data collection method provided by the present invention;

[0034] Figure 2 It is a schematic diagram of the connection structure of the data acquisition system provided by the present invention;

[0035] Figure 3 This is the second flow chart of the data collection method provided by the present invention;

[0036] Figure 4 This is one of the flow charts of data acquisition by the data acquisition terminal provided by the present invention;

[0037] Figure 5 It is a schematic diagram of the data acquisition terminal interface provided by the present invention;

[0038] Figure 6 This is the second schematic diagram of the process of data collection by the data collection terminal provided by the present invention;

[0039] Figure 7 It is a schematic diagram of a flow chart of caching collected data by the data collection terminal provided by the present invention;

[0040] Figure 8 It is one of the flow charts of generating data acquisition record files provided by the present invention;

[0041] Fig. 9 This is the second flow chart of generating a data acquisition record file provided by the present invention;

[0042] Fig.10 It is a structural schematic diagram of the data acquisition device provided by the present invention;

[0043] Fig.11 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] In order to facilitate a clearer understanding of the embodiments of the present application, some relevant background knowledge is first introduced as follows.

[0046] Shortwave radio stations and other equipment are commonly used devices for shortwave signal processing and shortwave wireless transceiver. During the development phase, the device usually requires data collection and analysis of the signals received in real time by the shortwave signal processing equipment on the shortwave channel, and some scenarios require higher real-time and instantaneous requirements.

[0047] In the related art, the data acquisition of signals on the shortwave channel usually uses a direct acquisition long-transmission shortwave channel data acquisition solution. That is, the signal receiving device directly acquires the information received on the shortwave channel and continuously outputs it to the outside of the device in a long-transmission manner. The external output method generally adopts a wired network output method. The external terminal receives the data output by the device through the network and automatically records it into a file, which is convenient for subsequent related designers to analyze the data.

[0048] However, the direct long-transmission shortwave channel data acquisition solution collects the shortwave channel data of the output signal receiving end for a long time, and the data recording cannot be linked with the signal transmitting end. It has defects such as large data volume, much invalid information, and difficulty in locating fault points.

[0049] Therefore, the embodiments of the present invention provide a data acquisition method, device, electronic device and storage medium to realize on-demand real-time acquisition of channel data (such as baseband data) of a shortwave signal processing device, and provide data acquisition record files to relevant designers for problem analysis, algorithm optimization and performance improvement.

[0050] Combine the following Figures 1 to 9 The data acquisition method provided by the present invention is described in detail. Figure 1 This is one of the flow charts of the data collection method provided by the present invention, see Figure 1 As shown, the method includes steps 101-102, wherein:

[0051] Step 101: receiving transmission status information from a shortwave device at a transmitting end, wherein the transmission status information is used to represent a real-time status of data transmitted by the shortwave device at the transmitting end to the shortwave device at the receiving end.

[0052] First of all, it should be explained that the executor of the present invention is a data acquisition terminal, which can be any electronic device capable of realizing data acquisition, for example, it can be any one of a smart phone, a smart watch, a desktop computer, a laptop computer, etc.

[0053] The shortwave device at the transmitting end and the shortwave device at the receiving end are two shortwave signal processing devices, such as shortwave radio stations. In this embodiment, it is first necessary to receive the transmission status information from the shortwave device at the transmitting end, so that the data acquisition terminal can determine the real-time status of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end.

[0054] Optionally, the transmission status information includes any one of the following:

[0055] a) first indication information, used to instruct the shortwave device at the transmitting end to start transmitting data to the shortwave device at the receiving end.

[0056] Specifically, when the shortwave device at the transmitting end transmits data to the shortwave device at the receiving end, first indication information needs to be sent to the data collection terminal so that the data collection terminal knows that the shortwave device at the transmitting end starts to transmit data to the shortwave device at the receiving end.

[0057] b) second indication information, used to instruct the shortwave device at the transmitting end to stop transmitting data to the shortwave device at the receiving end.

[0058] Specifically, when the shortwave device at the transmitting end stops transmitting data to the shortwave device at the receiving end, second indication information needs to be sent to the data collection terminal to let the data collection terminal know that the shortwave device at the transmitting end stops transmitting data to the shortwave device at the receiving end.

[0059] Optionally, this embodiment provides a data acquisition system, including: a shortwave device at a transmitting end, a shortwave device at a receiving end, and a data acquisition terminal. Figure 2 2 is a schematic diagram of the connection structure of the data acquisition system 200 provided by the present invention. In the data acquisition system 200, the data acquisition terminal 203 is connected to the shortwave device 201 at the transmitting end and the shortwave device 202 at the receiving end by wired means, and the shortwave device 201 at the transmitting end and the shortwave device 202 at the receiving end communicate with each other by shortwave wireless means. The two are mutually exclusive in the state of sending and receiving, that is, when the shortwave device 201 at the transmitting end is in the transmitting state, the shortwave device 202 at the receiving end is in the receiving state.

[0060] Optionally, the shortwave device 201 at the transmitting end may be switched to the shortwave device at the receiving end, and the shortwave device 202 at the receiving end may be switched to the shortwave device at the transmitting end. In this case, when the shortwave device 201 at the transmitting end is in the receiving state, the shortwave device 202 at the receiving end is in the transmitting state.

[0061] Step 102: Based on the transmission status information and preset record file configuration information, a target operation is performed on the data received by the receiving end shortwave device, the preset record file configuration information is used to generate a data acquisition record file, and the target operation is related to data acquisition.

[0062] In this embodiment, after receiving the transmission status information from the shortwave device at the transmitting end, it is necessary to perform target operations related to data acquisition on the data received by the shortwave device at the receiving end based on the transmission status information, and generate a data acquisition record file based on the preset record file configuration information, wherein the data received from the shortwave device at the receiving end is recorded in the data acquisition record file.

[0063] The data acquisition method provided by the present invention determines the real-time state of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end by receiving the transmission state information from the shortwave device at the transmitting end, so as to trigger the dynamic and real-time execution of target operations related to data acquisition, and generate a data acquisition record file based on preset record file configuration information, so that the data acquisition record file is associated with the transmission state of the shortwave device at the transmitting end in real time, effectively reducing the amount of data recorded in the data acquisition record file, reducing invalid information, and making it easier to locate data fault points during shortwave wireless communication, thereby providing an effective solution for problem location, algorithm optimization, and performance improvement of shortwave wireless communication equipment during signal transmission and signal processing.

[0064] Optionally, before receiving the transmission status information from the shortwave device at the transmitting end, the data acquisition terminal needs to set the parameters of the shortwave device at the transmitting end and the shortwave device at the receiving end, so that the shortwave device at the transmitting end can report the transmission status information to the data acquisition terminal, and the shortwave device at the receiving end can report the shortwave channel data; this can be specifically achieved by the following steps:

[0065] Reporting configuration information is sent to the transmitting end shortwave device and the receiving end shortwave device, wherein the reporting configuration information is used to receive the transmitting state information and / or the data received by the receiving end shortwave device.

[0066] In this embodiment, the reported configuration information includes at least one of the following:

[0067] a) Reporting address information, used to indicate the address to which the shortwave device reports data.

[0068] For example, the IP address, port number, data collection channel number, etc. of the data acquisition terminal.

[0069] b) File storage path, used to indicate the storage location of the data acquisition record file.

[0070] c) Maximum file length, used to indicate the upper limit of the length of a single data acquisition record file.

[0071] Specifically, if the shortwave channel data collected by the data collection terminal exceeds the maximum file length during a single data transmission, the data is automatically divided and saved into multiple data collection record files according to the maximum file length.

[0072] In practical applications, the data acquisition terminal can send the reported configuration information to the sending shortwave device and the receiving shortwave device by means of a software interface protocol. The software interface protocol can adopt the User Datagram Protocol (UDP) or the Transmission Control Protocol (TCP).

[0073] The shortwave device at the transmitting end can report the transmission status information to the data collection terminal based on the reporting configuration information, and the shortwave device at the receiving end can report the shortwave channel data from the shortwave device at the transmitting end to the data collection terminal based on the reporting configuration information.

[0074] When the shortwave device at the transmitting end transmits data to the shortwave device at the receiving end, the transmission status information (i.e., the first indication information) will also be reported to the data acquisition terminal, indicating that the shortwave device at the transmitting end starts to transmit data to the shortwave device at the receiving end; at this time, the data acquisition terminal opens the data acquisition channel for the shortwave device at the receiving end and performs data acquisition.

[0075] When the shortwave device at the transmitting end stops transmitting data, it will also report the stop status information (i.e., the second indication information) to the data acquisition terminal; at this time, the data acquisition terminal stops collecting data from the shortwave device at the receiving end, and generates a collection data file to record the shortwave signal data received by the shortwave device at the receiving end from the shortwave device at the transmitting end, so as to facilitate subsequent analysis and research.

[0076] In the above implementation, by sending reporting configuration information to the shortwave device at the sending end and the shortwave device at the receiving end, the shortwave device at the sending end can report the transmission status information based on the reporting configuration information, and the shortwave device at the receiving end can report the received shortwave signal data based on the reporting configuration information, thereby realizing triggered dynamic and real-time collection of the data received by the shortwave device at the receiving end.

[0077] Optionally, before receiving the transmission status information from the shortwave device at the transmitting end, the data acquisition terminal will continue to receive and cache the data reported by the shortwave device at the receiving end, which is specifically achieved by the following steps:

[0078] The data received by the shortwave device at the receiving end is cached.

[0079] In this embodiment, since the data acquisition terminal is connected to the shortwave device at the transmitting end and the shortwave device at the receiving end by wire, the shortwave device at the transmitting end and the shortwave device at the receiving end communicate wirelessly. The shortwave signal between the two shortwave devices propagates at the speed of light, which will cause network delay between the data acquisition terminal and the shortwave device.

[0080] When the data collection terminal receives the transmission status information reported by the shortwave device at the transmitting end, due to network delay, the shortwave device at the transmitting end has actually transmitted part of the shortwave signal data to the shortwave device at the receiving end. At this time, the data collected by the data collection terminal will be incomplete.

[0081] Therefore, the data collection terminal will continue to receive and cache the data reported by the shortwave device at the receiving end, but will not create the data collection record file immediately. Instead, it will start to create the data collection record file and write the cached data into the data collection record file after receiving the transmission status information from the shortwave device at the sending end.

[0082] It should be noted that the data acquisition terminal will continue to receive the reported acquisition data from the shortwave device at the receiving end, and open a data receiving cache for storage. The size of the data cache is the cache capacity calculated based on the "file creation advance" time; among them, the file creation advance will be introduced in detail in subsequent embodiments and will not be elaborated here.

[0083] The data receiving cache adopts a first-in-first-out queue structure, and the newly received data is appended to the end of the queue; if the data cache exceeds the cache upper limit, the earliest packet of data at the head of the queue will be deleted first, and then the latest packet of data will be appended to the end of the queue, thus ensuring that the data cache always stores the latest data.

[0084] In the above implementation, before receiving the transmission status information from the shortwave device at the transmitting end, the data received by the shortwave device at the receiving end is cached, which can overcome the problem of inaccurate and incomplete collected data caused by network delay.

[0085] Optionally, the performing of a target operation on the data received by the shortwave device at the receiving end based on the transmission state information and the preset record file configuration information is performed in any of the following ways:

[0086] Mode 1: When the transmission status information includes the first indication information, based on the first indication information and the preset record file configuration information, start collecting data received by the shortwave device at the receiving end and create the data collection record file.

[0087] In this embodiment, the preset record file configuration information may be sent to the shortwave device at the transmitting end and the shortwave device at the receiving end together with the reported configuration information.

[0088] Optionally, the preset record file configuration information includes file creation advance information, which is used to indicate that the data received by the shortwave device at the receiving end is collected and the data collection record file is created starting from a first preset time before receiving the first indication information.

[0089] The step of starting to collect data received by the shortwave device at the receiving end and creating the data collection record file based on the first indication information and the preset record file configuration information can be specifically implemented by the following steps:

[0090] Based on the file creation advance information, starting from a first preset time before receiving the first indication information, the data received by the shortwave device at the receiving end is collected, and the data collection record file is created.

[0091] In this embodiment, the data collection terminal will continue to receive and cache the data reported by the shortwave device at the receiving end, and only cache it into the memory, but will not save it into the file immediately, but wait for the shortwave device at the sending end to report the first indication information in real time.

[0092] When the shortwave device at the transmitting end reports the first indication information to the data acquisition terminal, the data acquisition terminal immediately creates a data acquisition record file and sets the file record start flag, after which a dedicated task thread will write the collected data into the data acquisition record file.

[0093] It can be understood that the dedicated task thread is an independently executed thread task. When the file record start mark is detected, all the data cached within the "file creation advance" period will be written into the header of the data collection record file at one time, and the collected data continuously reported by the shortwave device at the receiving end will be continuously written into the data collection record file.

[0094] In the above implementation, based on the file creation advance information, starting from the first preset time before receiving the first indication information, the data received by the shortwave device at the receiving end is collected, and a data collection record file is created, which can overcome the problem of inaccurate and incomplete collected data caused by network delay problems.

[0095] Mode 2: When the transmission status information includes the second indication information, based on the second indication information and the preset record file configuration information, stop collecting the data received by the shortwave device at the receiving end and generate the data collection record file.

[0096] Optionally, the preset record file configuration information also includes file closing hysteresis information, which is used to indicate that after receiving the second indication information, the data received by the receiving end shortwave device is stopped from being collected after a second preset time period, and the data collection record file is generated.

[0097] The stopping of collecting the data received by the shortwave device at the receiving end and generating the data collection record file based on the second indication information and the preset record file configuration information can be specifically achieved by the following steps:

[0098] Based on the file closing hysteresis information, after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped after a second preset time period, and the data collection record file is generated.

[0099] In this embodiment, when the shortwave device at the transmitting end reports the transmission end status (i.e., the second indication information) to the data acquisition terminal, the data acquisition terminal will not immediately stop data acquisition and close the data acquisition record file, but will set a file record end flag, and a special task thread will subsequently execute the file closing action.

[0100] That is to say, when the file record end mark is detected, data collection and data collection record file will not be stopped immediately, but the "file closing lag" duration will be delayed. After all the data agreed upon by the "file closing lag" duration is written into the data collection record file, the file closing action will be executed to generate the final data collection record file.

[0101] In the above implementation, based on the file closing hysteresis information, after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped from being collected after a second preset time period, and a data collection record file is generated, thereby solving the problem of inaccurate and incomplete collected data due to network delay problems during remote data collection.

[0102] Figure 3 This is the second flow chart of the data collection method provided by the present invention, see Figure 3 As shown, the method includes steps 301 to 304, wherein:

[0103] Step 301: Report configuration information is sent to a shortwave device at a transmitting end and a shortwave device at a receiving end, wherein the reported configuration information is used to receive transmission status information and / or data received by the shortwave device at the receiving end, and the transmission status information is used to represent the real-time status of data transmitted by the shortwave device at the transmitting end to the shortwave device at the receiving end.

[0104] Step 302: Buffer the data received by the shortwave device at the receiving end.

[0105] Step 303: Receive transmission status information from the shortwave device at the transmitting end, wherein the transmission status information includes any one of the following: first indication information; second indication information.

[0106] Specifically, the first indication information is used to instruct the shortwave device at the transmitting end to start transmitting data to the shortwave device at the receiving end. The second indication information is used to instruct the shortwave device at the transmitting end to stop transmitting data to the shortwave device at the receiving end.

[0107] Step 304: When the transmission status information includes the first indication information, based on the file creation advance information included in the preset record file configuration information, data received by the shortwave device at the receiving end is collected starting from the first preset time before the first indication information is received, and a data collection record file is created.

[0108] Step 305: When the transmission status information includes the second indication information, based on the file closing hysteresis information included in the preset record file configuration information, after receiving the second indication information, stop collecting the data received by the shortwave device at the receiving end after a second preset time period, and generate a data collection record file.

[0109] The data acquisition method provided by the present invention is further described below in conjunction with multiple embodiments.

[0110] Figure 4 This is one of the flow charts of data acquisition by the data acquisition terminal provided by the present invention. Specifically, it includes the following steps:

[0111] Step 401: The data acquisition terminal sends data acquisition parameters to the shortwave device at the transmitting end and the shortwave device at the receiving end.

[0112] Specifically, the data collection parameters include, for example, the IP address and port of the data collection terminal.

[0113] Step 402: While the shortwave device at the transmitting end transmits data to the shortwave device at the receiving end, it reports the device transmission status to the data collection terminal.

[0114] Step 403: The data acquisition terminal opens a data acquisition channel for the shortwave device at the receiving end and performs data acquisition.

[0115] Step 404: When the shortwave device at the transmitting end stops transmitting data, the device stop status is reported to the data collection terminal.

[0116] Step 405: The data collection terminal stops collecting data from the shortwave device at the receiving end and generates a data collection record file.

[0117] Specifically, the data acquisition record file is used to record the shortwave signal data received by the shortwave device at the receiving end from the shortwave device at the transmitting end, so as to facilitate subsequent analysis and research.

[0118] Figure 5 This is a schematic diagram of the data acquisition terminal interface provided by the present invention. Figure 5 In the example, "Shortwave Device 1" can be the shortwave device at the transmitting end; "Shortwave Device 2" can be the shortwave device at the receiving end. The two parameters "Shortwave Device 1" and "Shortwave Device 2" are used to configure the IP addresses of the two shortwave devices that the data collection terminal needs to control.

[0119] When the user clicks the corresponding "Connect" button, the data acquisition terminal and the corresponding shortwave device perform software network connection, software handshake and acquisition parameter configuration (parameters include terminal IP address and data reporting port).

[0120] After receiving the acquisition parameter configuration command, the shortwave device at the receiving end will report the shortwave channel data received in real time to the target IP and port agreed upon in the acquisition parameters in the agreed software interface mode (such as UDP or TCP).

[0121] "File storage path" specifies the storage location of the data collection record file on the data collection terminal.

[0122] "Maximum file length" stipulates the upper limit of the length of a single data collection record file. If the shortwave channel data collected from the shortwave device on the receiving end exceeds the maximum file length during a single transmission by the shortwave device on the sending end, it will be automatically divided and saved into multiple files according to the maximum file length.

[0123] "File creation advance" stipulates the time to start recording the data collection file in advance. "File closing lag" stipulates the time to delay closing the data collection file. The two are used to overcome the error caused by the asymmetric network delay between the data collection terminal and the shortwave equipment at the transmitting end and the shortwave equipment at the receiving end.

[0124] For example, the network delay between the terminal and the shortwave device at the transmitting end is very large, but the network delay between the terminal and the shortwave device at the receiving end is very small. Since the shortwave wireless signal between the two shortwave devices propagates at the speed of light, when the data acquisition terminal receives the transmission start status reported by the shortwave device at the transmitting end, it has already lagged behind by the length of the wired network delay.

[0125] If the data acquisition record file is generated to record the collected data at this time, it will cause a lag in data acquisition. The recorded data acquisition record file will lose the header information of the signal transmitted by the shortwave device at the transmitting end.

[0126] Therefore, a "file creation advance amount" is needed to overcome network transmission delays and solve the problem of incomplete and inaccurate collected data due to network delays during remote data collection; accordingly, the working principle of the "file closing lag amount" is similar to the working principle of the "file creation advance amount", which will not be repeated here.

[0127] Figure 6 This is the second flow chart of data acquisition by the data acquisition terminal provided by the present invention, which specifically includes the following steps:

[0128] Step 601: The shortwave device at the receiving end listens to the collection control message from the data collection terminal.

[0129] Specifically, the collection control message includes any one of an opening data collection control message and a closing data collection control message.

[0130] Step 602: When receiving the data collection control message, the shortwave device at the receiving end starts the channel data collection function and reports the collected data to the destination address port in real time.

[0131] Step 603: When receiving the data collection closing control message, the shortwave device at the receiving end closes the data collection function and stops reporting the collected data.

[0132] Figure 7 The present invention provides a data acquisition terminal for caching collected data, which specifically includes the following steps:

[0133] Step 701: The data collection terminal continuously receives the reported collection data from the shortwave device at the receiving end, and caches the collection data.

[0134] Step 702: The data collection terminal determines whether the number of packets of collected data has reached the upper limit. If so, execute step 703; if not, directly execute step 704.

[0135] Step 703: Delete a packet of data at the head of the data cache queue.

[0136] Step 704: store the current packet of data into the tail of the data cache queue.

[0137] Figure 8 This is one of the flow charts for generating a data acquisition record file provided by the present invention, which specifically includes the following steps:

[0138] Step 801: The data acquisition terminal receives the transmission status information from the shortwave device at the transmitting end.

[0139] Step 802: The data collection terminal determines the type of the transmission status information. If the transmission status information is a transmission start status report, step 803 is executed; if the transmission status information is a transmission end status report, step 804 is executed.

[0140] Step 803: The data collection terminal creates a data collection record file based on the file record start mark.

[0141] Step 804: The data collection terminal determines based on the file record end mark and generates a data collection record file.

[0142] Fig. 9 This is the second flow chart of generating a data acquisition record file provided by the present invention, which specifically includes the following steps:

[0143] Step 901: The data collection terminal creates a data collection record file.

[0144] Step 902 , the data collection terminal determines whether there is cached data, if so, executes step 903 ; if not, executes step 906 .

[0145] Step 903: Write all cached data into the data collection record file.

[0146] Step 904 , the data acquisition terminal determines whether the file length of the data acquisition record file reaches the upper limit, if so, execute step 905 ; if not, execute step 906 .

[0147] Step 905: close the current data collection record file and create a new data collection record file.

[0148] Step 906: When the data collection terminal receives the transmission end status report from the shortwave device at the transmitting end, the data collection terminal writes the data cached within the file closing hysteresis time into the data collection record file.

[0149] The data acquisition device provided by the present invention is described below. The data acquisition device described below and the data acquisition method described above can be referenced to each other. Fig.10 It is a structural schematic diagram of the data acquisition device provided by the present invention, such as Fig.10 As shown, the data acquisition device 1000 includes: a receiving module 1001 and an execution module 1002, wherein:

[0150] The receiving module 1001 is used to receive the transmission status information from the shortwave device at the transmitting end, wherein the transmission status information is used to represent the real-time status of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end;

[0151] The execution module 1002 is used to perform a target operation on the data received by the receiving end shortwave device based on the transmission state information and the preset record file configuration information, the preset record file configuration information is used to generate a data collection record file, and the target operation is related to data collection.

[0152] The data acquisition device provided by the present invention determines the real-time state of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end by receiving the transmission state information from the shortwave device at the transmitting end, so as to trigger the dynamic and real-time execution of target operations related to data acquisition, and generate a data acquisition record file based on preset record file configuration information, so that the data acquisition record file is associated with the transmission state of the shortwave device at the transmitting end in real time, effectively reducing the amount of data recorded in the data acquisition record file, reducing invalid information, and making it easier to locate data fault points during shortwave wireless communication, thereby providing an effective solution for problem location, algorithm optimization, and performance improvement of shortwave wireless communication equipment during signal transmission and signal processing.

[0153] Optionally, the transmission status information includes any one of the following:

[0154] The first indication information is used to instruct the shortwave device at the transmitting end to start transmitting data to the shortwave device at the receiving end;

[0155] The second indication information is used to instruct the shortwave device at the transmitting end to stop transmitting data to the shortwave device at the receiving end.

[0156] Optionally, the execution module 1002 is further used for any of the following:

[0157] In the case where the transmission state information includes the first indication information, based on the first indication information and the preset record file configuration information, starting to collect data received by the shortwave device at the receiving end, and creating the data collection record file;

[0158] In the case where the transmission status information includes the second indication information, based on the second indication information and the preset record file configuration information, the data received by the shortwave device at the receiving end is stopped from being collected, and the data collection record file is generated.

[0159] Optionally, the preset record file configuration information includes file creation advance information, which is used to indicate that, starting from a first preset time before receiving the first indication information, the data received by the shortwave device at the receiving end is collected and the data collection record file is created;

[0160] The execution module 1002 is further used to:

[0161] Based on the file creation advance information, starting from a first preset time before receiving the first indication information, the data received by the shortwave device at the receiving end is collected, and the data collection record file is created.

[0162] Optionally, the preset record file configuration information further includes file closing hysteresis information, which is used to indicate that after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped from being collected after a second preset time period, and the data collection record file is generated;

[0163] The execution module 1002 is further used to:

[0164] Based on the file closing hysteresis information, after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped after a second preset time period, and the data collection record file is generated.

[0165] Optionally, the device further comprises:

[0166] The cache module is used to cache the data received by the shortwave device at the receiving end.

[0167] Optionally, the device further comprises:

[0168] The sending module is used to send reporting configuration information to the sending end shortwave device and the receiving end shortwave device, and the reporting configuration information is used to receive the transmission status information and / or the data received by the receiving end shortwave device.

[0169] Fig.11 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Fig.11 As shown, the electronic device may include: a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120 and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call the logic instructions in the memory 1130 to execute the data acquisition method, which includes: receiving the transmission state information from the shortwave device at the transmitting end, the transmission state information is used to characterize the real-time state of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end; based on the transmission state information and the preset record file configuration information, performing the target operation on the data received by the shortwave device at the receiving end, the preset record file configuration information is used to generate the data acquisition record file, and the target operation is related to the data acquisition.

[0170] In addition, the logic instructions in the above-mentioned memory 1130 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0171] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data acquisition method provided by the above-mentioned methods, which includes: receiving transmission status information from a shortwave device at a transmitting end, wherein the transmission status information is used to characterize the real-time status of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end; based on the transmission status information and preset record file configuration information, performing a target operation on the data received by the shortwave device at the receiving end, wherein the preset record file configuration information is used to generate a data acquisition record file, and the target operation is related to data acquisition.

[0172] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the data acquisition method provided by the above-mentioned methods, the method comprising: receiving transmission status information from a shortwave device at a transmitting end, the transmission status information being used to characterize the real-time status of the shortwave device at the transmitting end transmitting data to the shortwave device at the receiving end; based on the transmission status information and preset record file configuration information, performing a target operation on the data received by the shortwave device at the receiving end, the preset record file configuration information being used to generate a data acquisition record file, and the target operation being related to data acquisition.

[0173] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0175] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data collection method, characterized in that: include: Receiving transmission status information from a shortwave device at a transmitting end, wherein the transmission status information is used to represent a real-time status of data transmitted by the shortwave device at the transmitting end to the shortwave device at the receiving end; Based on the transmission status information and preset record file configuration information, a target operation is performed on the data received by the shortwave device at the receiving end, the preset record file configuration information is used to generate a data collection record file, and the target operation is related to data collection.

2. The data collection method according to claim 1, characterized in that: The transmission status information includes any of the following: The first indication information is used to instruct the shortwave device at the transmitting end to start transmitting data to the shortwave device at the receiving end; The second indication information is used to instruct the shortwave device at the transmitting end to stop transmitting data to the shortwave device at the receiving end.

3. The data collection method according to claim 2, characterized in that: The performing of a target operation on the data received by the shortwave device at the receiving end based on the transmission state information and the preset record file configuration information includes any one of the following: In the case where the transmission state information includes the first indication information, based on the first indication information and the preset record file configuration information, starting to collect data received by the shortwave device at the receiving end, and creating the data collection record file; In the case where the transmission status information includes the second indication information, based on the second indication information and the preset record file configuration information, the data received by the shortwave device at the receiving end is stopped from being collected, and the data collection record file is generated.

4. The data collection method according to claim 3, characterized in that: The preset record file configuration information includes file creation advance information, which is used to indicate that the data received by the shortwave device at the receiving end is collected and the data collection record file is created starting from a first preset time before the first indication information is received; The step of starting to collect data received by the shortwave device at the receiving end and creating the data collection record file based on the first indication information and the preset record file configuration information includes: Based on the file creation advance information, starting from a first preset time before receiving the first indication information, the data received by the shortwave device at the receiving end is collected, and the data collection record file is created.

5. The data collection method according to claim 3, characterized in that: The preset record file configuration information also includes file closing hysteresis information, which is used to indicate that after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped from being collected after a second preset time period, and the data collection record file is generated; The method of stopping collecting data received by the shortwave device at the receiving end and generating the data collection record file based on the second indication information and the preset record file configuration information includes: Based on the file closing hysteresis information, after receiving the second indication information, the data received by the shortwave device at the receiving end is stopped after a second preset time period, and the data collection record file is generated.

6. The data collection method according to any one of claims 1 to 5, characterized in that: Before receiving the transmission status information from the shortwave device at the transmitting end, the method further includes: The data received by the shortwave device at the receiving end is cached.

7. The data collection method according to any one of claims 1 to 5, characterized in that: Before receiving the transmission status information from the shortwave device at the transmitting end, the method further includes: Reporting configuration information is sent to the transmitting end shortwave device and the receiving end shortwave device, wherein the reporting configuration information is used to receive the transmitting state information and / or the data received by the receiving end shortwave device.

8. A data acquisition device, characterized in that: include: A receiving module, used for receiving transmission status information from a shortwave device at a transmitting end, wherein the transmission status information is used for representing a real-time status of data transmitted by the shortwave device at the transmitting end to the shortwave device at the receiving end; An execution module is used to perform a target operation on the data received by the receiving end shortwave device based on the transmission state information and preset record file configuration information, the preset record file configuration information is used to generate a data acquisition record file, and the target operation is related to data acquisition.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the data collection method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data collection method according to any one of claims 1 to 7 is implemented.