Read-write method and device for interface control storage device

By processing Gigabit Ethernet module data through QT host computer software and micro-host, combined with GPS and differential signal modules, it solves the problem of unstable data transmission and small capacity of interface control storage devices, and realizes multi-channel, large-capacity and high-speed Data collection and storage ensure data integrity and reliability.

CN118761108APending Publication Date: 2024-10-11ZHONGBEI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410557054.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing interface control storage devices have problems such as instability in data transmission, limited number of channels, and small data capacity, making it difficult to meet the needs of multi-channel, large-capacity, and high-rate data collection and storage.

Method used

The micro-host equipped with QT host computer software is used to receive and process the data sent by the Gigabit Ethernet module through the UDP communication protocol. It realizes the packaging and processing of multi-channel data and sends it to the mobile hard disk for storage. It combines the GPS module and the differential signal data receiving module. , provides timestamp and longitude and latitude data, and is powered by the power module to ensure the stability and integrity of data transmission.

Benefits of technology

It realizes high-reliability multi-channel data collection and storage, can receive and store 10 channels of 100MB/S data, prevents the spread of viruses, has interface visual data reading and real-time monitoring functions, large data volume, fast transmission rate, and accurate storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761108A_ABST
    Figure CN118761108A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and particularly discloses an interface control storage device read-write method and device, and the method comprises the steps: S1, setting QT upper computer software; s2, multi-channel data acquisition is carried out through QT upper computer software; s3, carrying out packaging processing on the acquired multi-channel data through QT upper computer software; s4, sending the processed data to a mobile hard disk of the interface control storage device; according to the multi-channel data acquisition system, interface visual data reading is realized through the QT upper computer according to the requirements of multi-channel, high capacity, high speed and the like of the interface control storage equipment, reading of single-end data and multi-path differential data can be realized, and high-reliability multi-channel data acquisition is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a method and device for controlling the reading and writing of a storage device through an interface. Background Art

[0002] During the design process of various weapon systems, from the initial system solution demonstration to the later finalization test, a lot of testing work is required, the purpose is to record the working status and real-time parameters of each subsystem during the development and flight of the system for analysis and design improvement. The interface control storage device uses a mobile hard disk as the recording medium, mainly to complete the collection and reliable storage of various test parameters on the ground and during flight. It has the characteristics of pluggable, easy replacement, complete data storage, and convenient data readback; at the same time, the interface control storage device can realize the function of powering the external system.

[0003] In a Chinese patent with publication number CN114386113A, a method, apparatus, device and storage medium for controlling read and write of a mobile storage device are mentioned. Data system information is obtained through a system function, and a removable storage device is determined from all system mounted devices based on the data system information. The removable storage device is remounted with read-only permission through a preset command, so that all mounted removable storage devices can be monitored in real time, and the read and write permissions of the removable storage device can be changed in real time, thereby avoiding illegal writing of data while ensuring normal writing of data; however, the above-mentioned read and write methods often have problems such as unstable data transmission, limited number of channels, and small data capacity. Summary of the invention

[0004] The object of the present invention is to provide a method and apparatus for controlling the reading and writing of a storage device through an interface, so as to solve the problems raised in the above-mentioned background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] An interface-controlled storage device reading and writing device, comprising:

[0007] Mobile hard disk for data storage;

[0008] GPS module, used to provide timestamp and latitude and longitude data;

[0009] Differential signal data receiving module, used to receive and isolate 10 differential signals;

[0010] The main control module is used to receive and extract the information sent by the GPS module, receive 10 differential signals, package and frame the above data, and send the data through the UDP sending module;

[0011] The micro host, equipped with QT host software, is used to interconnect the main control module of the editor and the UDP sending module, and to perform data transmission and processing at the same time, and send data to the mobile hard disk;

[0012] The power module is used to supply power to the interface control storage device and external system.

[0013] A method for controlling storage device reading and writing via an interface comprises the following steps:

[0014] S1: Set up the QT host computer software;

[0015] S2: Multi-channel data acquisition through QT host computer software;

[0016] S3: Packaging and processing the collected multi-channel data through QT host computer software;

[0017] S4: The processed data is sent to the mobile hard disk of the interface control storage device.

[0018] Preferably, in S2, the QT host computer software uses the UDP communication protocol to receive the data sent by the Gigabit Ethernet module, specifically including:

[0019] S21: creating a data queue for data exchange between the main thread and the secondary thread according to the data format;

[0020] S22: A new UDP receiving thread created by the main thread monitors and captures UDP data packets on the network, and uses a data queue to effectively transfer the captured UDP data packets to the secondary thread.

[0021] Preferably, in S3, the collected multi-channel data is packaged and processed, specifically including:

[0022] S31: Set the UDP receiving thread priority to the highest through the secondary thread;

[0023] S32: Create a new UDP Socket, set the receiving buffer, and bind the IP and port number;

[0024] S33: Check whether there is data in the network data status. If there is no data, continue to check. Otherwise, read the data and write it into the cache queue.

[0025] S34: Determine whether the cache is larger than the set number of bytes;

[0026] S35: If it is greater, the secondary thread sends the buffered data to the primary thread, releases the cache, and returns to step S23.

[0027] Preferably, in said S4, sending the processed data to a mobile hard disk of the interface control storage device specifically includes:

[0028] S41: The main thread waits for data to be saved;

[0029] S42: Determine whether there is saved data. If there is no saved data, return to step S31; otherwise, start saving, update the progress bar, and enter step S43;

[0030] S43, determine whether the data is greater than the set value, if it is greater than the set value, create a new data folder and go to step S44, otherwise return to step S31;

[0031] S44, determine whether the data storage is completed, if so, end, otherwise return to step S31.

[0032] Preferably, in S1, QT host computer software is set, specifically including:

[0033] S11; Set the QT host computer software to start automatically when it is turned on;

[0034] S12: Initialize and self-check the QT host computer software: initialize the QT host computer software status, and detect the mobile hard disk connection status, hard disk capacity status and viruses.

[0035] Preferably, in S12, detecting the virus specifically includes:

[0036] S121: Analyze and search for virus programs according to a pre-defined virus database;

[0037] S122: Determine whether there is a virus program. If so, analyze whether the automatic run under the data points to a certain exe data, list the suspicious data names, and go to step S123; if not, go to step S125;

[0038] S123: Deleting the data, operating the suspicious data according to the user's choice, if the user chooses to kill it, restoring the properties of the virus program, and then deleting it;

[0039] S124: Modify the registry to solve the problem of not being able to open the storage device by double-clicking, and modify the registry startup items to prevent viruses from starting randomly;

[0040] S125: Create a new data that cannot be deleted to prevent the storage device from being infected with the virus again.

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] (1) By targeting the requirements of multi-channel, large capacity, and high-speed storage devices through interface control, the QT host computer can realize interface visualization data reading, which can realize the reading of single-ended data and multi-channel differential data, and achieve high-reliability multi-channel data acquisition.

[0043] (2) By searching and analyzing the data, it is determined whether it points to unknown executable data. If it points to certain data, the content of the automatic run item is modified, and the executable data is found, deleted, and written to a harmless and undeletable data. Through the above processing, viruses can be prevented from spreading through the system's automatic play function. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A flow chart of the interface control storage device reading and writing method of the present invention;

[0045] Figure 2 It is the overall block diagram of the interface control storage device reading and writing device of the present invention;

[0046] Figure 3 It is the QT host computer software flow chart of the present invention;

[0047] Figure 4 This is a schematic diagram of the structure of a power supply management unit of an interface-controlled storage device of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0049] Embodiment 1:

[0050] See also Figure 1-Figure 3 As shown, an interface control storage device reading and writing device includes:

[0051] Mobile hard disk for data storage;

[0052] GPS module, used to provide timestamp and latitude and longitude data;

[0053] Differential signal data receiving module, used to receive and isolate 10 differential signals;

[0054] The main control module is used to receive and extract the information sent by the GPS module, receive 10 differential signals, package and frame the above data, and send the data through the UDP sending module;

[0055] The micro host, equipped with QT host software, is used to interconnect the main control module of the editor and the UDP sending module, and to perform data transmission and processing at the same time, and finally send it to the mobile hard disk according to the specified 1GB file size;

[0056] The power module is used to supply power to the interface control storage device and external system, regulate and decouple the voltage input from the battery module to provide a stable and clean working voltage for each module, and has a charging function to ensure that it can be reused;

[0057] It has the function of providing 28V (3 positive and 3 negative) to the outside through a 51-core connector;

[0058] It has the function of transmitting data through 10 pairs of 3.3V differential lines (1 pair of clk_25MHz, 8 pairs of data lines, clock rising edge is valid, and 1 pair of CS data valid bit);

[0059] It has the function of adding the current GPS timestamp and latitude and longitude data before the data frame header; the data is composed of frame header + data + frame tail. After the frame header is detected, the current GPS timestamp and latitude and longitude data are added before the frame header of this frame of data, and so on for each frame of data. The frame data is stored in a mobile storage disk, and each file is stored in 1GB size.

[0060] A method for controlling storage device reading and writing via an interface comprises the following steps:

[0061] S1: Set up the QT host computer software;

[0062] S2: Multi-channel data acquisition through QT host computer software;

[0063] S3: Packaging and processing the collected multi-channel data through QT host computer software;

[0064] S4: The processed data is sent to the mobile hard disk of the interface control storage device.

[0065] In one embodiment of the present invention, in S2, the QT host computer software uses the UDP communication protocol to receive data sent by the Gigabit Ethernet module, specifically including:

[0066] S21: creating a data queue for data exchange between the main thread and the secondary thread according to the data format;

[0067] S22: A new UDP receiving thread created by the main thread monitors and captures UDP data packets on the network, and uses a data queue to effectively transfer the captured UDP data packets to the secondary thread.

[0068] In one embodiment of the present invention, in S3, the collected multi-channel data is packaged and processed, specifically including:

[0069] S31: Set the UDP receiving thread priority to the highest through the secondary thread;

[0070] S32: Create a new UDP Socket, set the receiving buffer, and bind the IP and port number;

[0071] S33: Check whether there is data in the network data status. If there is no data, continue to check. Otherwise, read the data and write it into the cache queue.

[0072] S34: Determine whether the cache is larger than the set number of bytes;

[0073] S35: If it is greater, the secondary thread sends the buffered data to the primary thread, releases the cache, and returns to step S23.

[0074] In one embodiment of the present invention, in S4, the processed data is sent to a mobile hard disk of the interface control storage device, specifically including:

[0075] S41: The main thread waits for data to be saved;

[0076] S42: Determine whether there is saved data. If there is no saved data, return to step S31; otherwise, start saving, update the progress bar, and enter step S43;

[0077] S43, determine whether the data is greater than the set value, if it is greater than the set value, create a new data folder and go to step S44, otherwise return to step S31;

[0078] S44, determine whether the data storage is completed, if so, end, otherwise return to step S31.

[0079] In one embodiment of the present invention, in S1, QT host computer software is set, specifically including:

[0080] S11; Set the QT host computer software to start automatically when it is turned on;

[0081] S12: Initialize and self-check the QT host computer software: initialize the QT host computer software status, and detect the mobile hard disk connection status, hard disk capacity status and viruses.

[0082] In one embodiment of the present invention, in S12, detecting a virus specifically includes:

[0083] S121: Analyze and search for virus programs according to a pre-defined virus database;

[0084] S122: Determine whether there is a virus program. If so, analyze whether the automatic run under the data points to a certain exe data, list the suspicious data names, and go to step S123; if not, go to step S125;

[0085] S123: Deleting the data, operating the suspicious data according to the user's choice, if the user chooses to kill it, restoring the properties of the virus program, and then deleting it;

[0086] S124: Modify the registry to solve the problem of not being able to open the storage device by double-clicking, and modify the registry startup items to prevent viruses from starting randomly;

[0087] S125: Create a new data that cannot be deleted to prevent the storage device from being infected with the virus again.

[0088] In one embodiment of the present invention, the power module is designed such that Figure 4 As shown:

[0089] The power module is responsible for adjusting the battery voltage (28V) in the battery module to the voltage required by each module in the system. The power supply of the micro host is provided by the 28V output of the battery module converted to 12V by the DC-DC step-down module, and the power supply of other modules is provided by the 28V converted to 5V by the DC-DC step-down module.

[0090] The decoupling filter circuit adds matching capacitors to the input and output ends of each power supply to filter out the coupling noise at the input and output ends of the power supply;

[0091] Among them, the QT host computer software program includes:

[0092]

[0093]

[0094]

[0095]

[0096]

[0097]

[0098] *Read network data in run() and display it through the DisplayRecvData method of the main window

[0099] *The waiForReadyRead method is used here to read data in a synchronous manner instead of using the asynchronous method of signals and slots

[0100] *When no new data arrives, the thread is in a suspended waiting state. When data arrives, it immediately proceeds to the next step of processing. This method responds more promptly and quickly

[0101]

[0102]

[0103]

[0104]

[0105]

[0106]

[0107]

[0108] As can be seen from the above, the present invention has the characteristics of large data volume, fast transmission rate, complete real-time storage with high precision, data fusion framing, and accurate storage throughout the process. It can receive 10 channels of 100MB / S data, combine and frame, package the data and send it to the host computer via Ethernet, and finally store the data in the hard disk through the QT host computer software. Through experimental verification, it can store the fusion data in the hard disk completely and accurately.

[0109] It has the characteristics of strong compatibility, can realize single-ended data and multi-channel differential data transmission and acquisition, and perform combined framing. It can store data in the hard disk through QT host computer software, and realize interface visualization through QT host computer, and can monitor data storage status and progress in real time.

[0110] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An interface control storage device reading and writing device, characterized in that: include: Mobile hard disk for data storage; GPS module, used to provide timestamp and latitude and longitude data; Differential signal data receiving module, used to receive and isolate 10 differential signals; The main control module is used to receive and extract the information sent by the GPS module, receive 10 differential signals, package and frame the above data, and send the data through the UDP sending module; The micro host, equipped with QT host software, is used to interconnect the main control module of the editor and the UDP sending module, and to perform data transmission and processing at the same time, and send data to the mobile hard disk; The power module is used to supply power to the interface control storage device and external system.

2. A method for controlling storage device reading and writing by an interface, characterized in that: The following steps are involved: S1: Set up the QT host computer software; S2: Multi-channel data acquisition through QT host computer software; S3: Packaging and processing the collected multi-channel data through QT host computer software; S4: The processed data is sent to the mobile hard disk of the interface control storage device.

3. The method for reading and writing an interface-controlled storage device according to claim 2, characterized in that: In S2, the QT host computer software uses the UDP communication protocol to receive data sent by the Gigabit Ethernet module, specifically including: S21: creating a data queue for data exchange between the main thread and the secondary thread according to the data format; S22: A new UDP receiving thread created by the main thread monitors and captures UDP data packets on the network, and uses a data queue to effectively transfer the captured UDP data packets to the secondary thread.

4. The method for reading and writing an interface-controlled storage device according to claim 2, characterized in that: In S3, the collected multi-channel data is packaged and processed, specifically including: S31: Set the UDP receiving thread priority to the highest through the secondary thread; S32: Create a new UDP Socket, set the receiving buffer, and bind the IP and port number; S33: Check whether there is data in the network data status. If there is no data, continue to check. Otherwise, read the data and write it into the cache queue. S34: Determine whether the cache is larger than the set number of bytes; S35: If it is greater, the secondary thread sends the buffered data to the primary thread, releases the cache, and returns to step S23.

5. The method for reading and writing an interface-controlled storage device according to claim 2, characterized in that: In the step S4, the processed data is sent to the mobile hard disk of the interface control storage device, which specifically includes: S41: The main thread waits for data to be saved; S42: Determine whether there is saved data. If there is no saved data, return to step S31; otherwise, start saving, update the progress bar, and enter step S43; S43, determine whether the data is greater than the set value, if it is greater than the set value, create a new data folder and go to step S44, otherwise return to step S31; S44, determine whether the data storage is completed, if so, end, otherwise return to step S31.

6. The method and device for controlling storage device reading and writing by an interface according to claim 2, characterized in that: In S1, QT host computer software is set, specifically including: S11; Set the QT host computer software to start automatically when it is turned on; S12: Initialize and self-check the QT host computer software: initialize the QT host computer software status, and detect the mobile hard disk connection status, hard disk capacity status and viruses.

7. The method for reading and writing an interface-controlled storage device according to claim 5, characterized in that: In said S12, detecting the virus specifically includes: S121: Analyze and search for virus programs according to a pre-defined virus database; S122: Determine whether there is a virus program. If so, analyze whether the automatic run under the data points to a certain exe data, list the suspicious data names, and go to step S123; if not, go to step S125; S123: Deleting the data, operating the suspicious data according to the user's choice, if the user chooses to kill it, restoring the properties of the virus program, and then deleting it; S124: Modify the registry to solve the problem of not being able to open the storage device by double-clicking, and modify the registry startup items to prevent viruses from starting randomly; S125: Create a new data that cannot be deleted to prevent the storage device from being infected with the virus again.