A system for analyzing and judging USB file data of temperature control products

By designing an automated USB disk file data analysis system for temperature control products, the problems of inefficient inspection and unstable quality of traditional temperature control products are solved, and efficient and accurate judgment of test results is achieved, reducing employees' fatigue and ensuring test results accuracy and safety.

CN118095930BActive Publication Date: 2024-11-19JIANGXI JIEPEI IND INTERNET CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410150824.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2024-11-19
Estimated Expiration
2044-02-02

AI Technical Summary

Technical Problem

The analysis of traditional temperature control product inspection and testing results is inefficient, resulting in product quality being unable to be guaranteed, and long-term operation leads to fatigue and inaccurate judgment results.

Method used

Design a system for analyzing and judging the U disk file data of temperature control products, including the computer terminal and the test terminal, automatically read the U disk file data through the data analysis module, perform data processing and judgment, generate judgment results, and synchronize through the management module send. The system uses data collection unit and data processing unit, and uses USB driver software and HDFS for data storage and display, realizing automated analysis and judgment.

Benefits of technology

Improve analysis efficiency and judgment accuracy, save human resources, achieve fast and accurate judgment of whether the temperature control product is qualified, reduce employee fatigue, and ensure the accuracy and safety of the detection results through intelligent storage and data protection. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118095930B_ABST
    Figure CN118095930B_ABST
Patent Text Reader

Abstract

The present invention discloses a system for parsing and judging the U disk file data of a temperature control product, and relates to the technical field of numerical control machine tools. The present invention includes a computer terminal and a test terminal. A data analysis module runs inside the computer terminal. The test terminal is used to connect to a U disk. The data analysis module is used to control the test terminal to read the internal file data of the U disk, and feed the data back to the data analysis module. The data analysis module includes a data collection unit and a data processing unit. The data collection unit is used to directly control the test terminal to obtain each internal file data of the U disk. The data processing unit automatically determines whether the temperature control product is qualified according to the obtained file data inside the U disk, generates a judgment result, and synchronously sends the judgment result to the management module. The present invention is a system for parsing and judging the U disk file data of a temperature control product, which has the advantages of being more efficient and faster, and saves a lot of human resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of numerical control machine tools, and in particular to a system for analyzing and judging U disk file data of a temperature control product. Background Art

[0002] The inspection and test results of traditional temperature control products are stored in a U disk, which is manually plugged in and out of the host, and the interface is opened in turn to find and open the data file. The data value in the file is manually judged to be normal, and finally whether the temperature control product is qualified is judged. However, in the actual operation process; the numerous manual operations cause physical fatigue and low psychological morale, and employees cannot operate for a long time. The employees are too tired to work for a long time, and the efficiency is low, which cannot meet the assembly line operation. Staring at the display for a long time will cause eye fatigue, which affects the judgment results and causes the outflow of defective products, making the detection results inaccurate. The existing traditional temperature control product inspection and test results are inefficient and the product quality cannot be guaranteed when analyzing. Summary of the invention

[0003] In view of this, the purpose of the present invention is to propose a system for parsing and judging USB file data of temperature control products, so as to solve the problem that the existing traditional temperature control product inspection and test results are inefficient and the product quality cannot be guaranteed when analyzing.

[0004] Based on the above-mentioned purpose, the present invention provides a system for parsing and judging the USB flash drive file data of a temperature control product, including a computer end and a test end, wherein a data analysis module runs inside the computer end, the test end is used to connect to the USB flash drive, the data analysis module is used to control the test end to read the internal file data of the USB flash drive, and feed the data back to the data analysis module, the data analysis module includes a data collection unit and a data processing unit, the data collection unit is used to directly control the test end to obtain the internal file data of each USB flash drive, the data processing unit automatically determines whether the temperature control product is qualified according to the obtained file data inside the USB flash drive, generates a judgment result, and synchronously sends the judgment result to the management module.

[0005] Furthermore, each USB flash drive has a private identity number, and the identity number of each USB flash drive cannot be changed. When testing the temperature control product, the identity number of each USB flash drive is first read, and the identity information of the temperature control product being tested is obtained at the same time, and the test results and the identity information of the temperature control product being tested are synchronously sent to the management module.

[0006] Furthermore, the data collection unit is used to collect data. After the U disk is connected to the test end, the data collection unit is automatically triggered. The data collection unit first copies the internal file data of the U disk, then pops open the U disk, and creates a folder on the computer for storage. The above steps are repeated to continuously obtain a number of internal file data of the U disk.

[0007] Furthermore, the data processing unit first acquires and obtains the file data contents in several USB flash drives, and superimposes the file data in several USB flash drives to generate a complete detection data table. The processing unit analyzes and judges each content in the detection data table, and completes the judgment whether the content is qualified, and then judges whether the internal file data of the USB flash drive corresponding to the content is qualified, and finally parses and judges whether the temperature control product corresponding to the internal file of the USB flash drive is qualified.

[0008] Furthermore, the data collection unit drives the test end through USB driver software, and the test end is connected to the USB flash drive using USB interface hardware. After the data collection unit obtains the internal file data of the USB flash drive each time, the data collection module starts the USB flash drive pop-up program through the USB driver software, and then pops up the USB flash drive.

[0009] Furthermore, the data analysis module uses test software on the computer to complete control data collection, data processing, data storage and data display. The data analysis module is synchronously connected to the computer sound card control module to complete the control of the computer sound card hardware.

[0010] Furthermore, the test software has the function of displaying the current time, facilitating the operator to check the current time, and setting the current time of the product. The test software is used to set how many minutes to check the records of the product. The test software is used to set whether to check the temperature and humidity records of the product. The test software is used to set the temperature standard of the product. The test software is used to set the humidity standard of the product. The test software is used to count the number of production tests. The test software is used to display log information. In the test software, the first click starts and the subsequent operations are automatically executed. When each item in the test data table is detected, the test is stopped. The test software displays the corresponding test status by displaying different colors. While displaying the test status, it controls the computer sound card to issue a prompt when the test fails.

[0011] Furthermore, the data collection module stores all the internal files of the USB disk in a folder of a single directory of HDFS. All file operations of the internal files of the USB disk are accessed through an interface, which includes the following operation functions:

[0012] Conversion function: merge all the internal files of the USB flash drive stored in a single directory of HDFS into the final file with index. After conversion, two files are generated in the same directory: one is the .index file containing the index. After reading the content of each internal file of the USB flash drive and appending the new internal file of the USB flash drive, the index file will be accessed in this process. The content of the index file consists of several index information of "USB flash drive identity number <first character offset: content length>"; the other is the .data file containing the content of the internal file of the USB flash drive. The content file combines the contents of all the internal files of the USB flash drive to obtain a complete detection data table;

[0013] In this embodiment, it should be noted that HDFS refers to a distributed file system designed to run on commodity hardware. HDFS is a highly fault-tolerant system that can provide high-throughput data access and is suitable for applications on large-scale data sets. The HDFS data auxiliary processing system here is common knowledge and will not be elaborated here.

[0014] Reading function: reads the contents of a given internal file of a USB flash drive, finds the character offset and content length of the folder content in .data corresponding to the internal USB flash drive in the hidden index file .index through the USB flash drive identification number as the file name, and then directly reads the corresponding content from .data and returns it to the data processing unit.

[0015] Furthermore, the specific process of cyclically superimposing the file data in several USB flash drives to generate a complete detection data table is as follows:

[0016] Step 1: Get the input directory as PATH;

[0017] Step 2: Determine whether the path PATH is empty, if it is empty, return FALSE;

[0018] Step 3: Loop through the next file in the PATH directory; if the file does not exist, terminate the loop; if it is not a file, skip it; if it is, go to step 4;

[0019] Step 4: Save the next file read to the .data file under the PATH path in an append-write mode, and write the current file name, the starting offset of the first character of the file data in .data, and the size information of the current file data to the index file .index in an append-write mode; then jump to step 3;

[0020] Step 5: In step 3 and step 4, if an exception occurs, return FALSE directly; otherwise, return true.

[0021] It should be noted that the user variable path refers to a search path specified for the computer user, through which the required files can be found.

[0022] Furthermore, the data analysis module also includes a data display unit and a data protection unit. The data display unit is used to display data through a computer display screen, and the data protection unit protects all data through an established traffic log.

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

[0024] Compared with the existing manual checking of the internal file data of the USB flash drive, the system of the present invention has the advantages of being more efficient and faster in actual operation, thus saving a large amount of human resources.

[0025] In the present invention, a detection data table is established, the data in the internal file of the U disk is superimposed on the detection data table, and the newly added data in the detection data table is intelligently analyzed. Since the present invention only needs to perform intelligent analysis and judgment on the data in the data detection table, the processing efficiency is greatly improved, and the accuracy of the judgment is increased. Since the detection data table is intelligently stored, the file data in each U disk is intelligently stored, and the analysis and judgment results can be accurately checked. After the analysis is completed, the present invention synchronously controls the data collection unit to rename the files in the U disk, so that it can more intuitively check whether the temperature control product corresponding to the file data in the U disk is qualified. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a system block diagram of a system for parsing and judging USB file data of a temperature control product according to the present invention;

[0027] Figure 2 This is a system block diagram of a computer terminal in a system for parsing and judging U disk file data of a temperature control product of the present invention;

[0028] Figure 3 This is an operation flow chart of a system for parsing and judging USB file data of a temperature control product according to the present invention;

[0029] Figure 4 This is a system block diagram of a data analysis module in a system for parsing and judging U disk file data of a temperature control product according to the present invention;

[0030] Figure 5 The present invention discloses a flow chart of file content superposition in a system for parsing and judging USB flash drive file data of a temperature control product. DETAILED DESCRIPTION

[0031] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0032] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0033] Please also read Figure 1-Figure 5 A system for parsing and judging the U disk file data of a temperature control product includes a computer end and a test end. A data analysis module runs inside the computer end. The test end is used to connect to the U disk. The data analysis module is used to control the test end to read the file data inside the U disk and feed the data back to the data analysis module. The data analysis module includes a data collection unit and a data processing unit. The data collection unit is used to directly control the test end to obtain the internal file data of each U disk. The data processing unit automatically determines whether the temperature control product is qualified according to the obtained file data inside the U disk, generates a judgment result, and synchronously sends the judgment result to the management module.

[0034] Compared with the existing manual checking of file data inside the USB flash drive, the system of the present invention has the advantages of being more efficient and faster in actual operation, saving a lot of human resources.

[0035] Furthermore, each USB flash drive has a private identity number, and the identity number of each USB flash drive cannot be changed. When testing the temperature control product, the identity number of each USB flash drive is first read, and the identity information of the temperature control product being tested is obtained at the same time, and the test results and the identity information of the temperature control product being tested are synchronously sent to the management module.

[0036] In actual use, the private identity number of each USB flash drive is directly engraved on the outer surface of the USB flash drive using a laser. For example, if the identity number of each USB flash drive is 0101001, then the USB flash drive is the 001st in the 01st group of the 01st category. It should be noted that the name of the USB flash drive is also 0101001. The identity number of the USB flash drive cannot be changed, and the identity number of the USB flash drive is not repeated.

[0037] Furthermore, the data collection unit is used to collect data. After the U disk is connected to the test end, the data collection unit is automatically triggered. The data collection unit first copies the internal file data of the U disk, then pops open the U disk, and creates a folder on the computer for storage. Repeat the above steps to continuously obtain a number of internal file data of the U disk.

[0038] In actual use, when the data collection unit obtains the file data inside the USB flash drive, there will be multiple folders stored in the USB flash drive under actual conditions. The multiple folders are in chronological order, and the name of each folder is the number of the temperature control product being tested plus whether it is qualified. For example, if the product number is 039568271, if the folder name is 039568271 (qualified), it means that after the USB flash drive obtains the test data of the temperature control product with product number 039568271, it analyzes and judges the test data, and the analysis and judgment result is qualified. If the folder name is 039568 271 (unqualified) means that after the U disk obtains the test data of the temperature control product with product number 039568271, the test data is analyzed and judged, and the analysis and judgment result is unqualified. If the folder name is 039568271 (unanalyzed), it means that after the U disk obtains the test data of the temperature control product with product number 039568271, no analysis has been performed. At this time, the data collection unit copies the internal files of the U disk with the folder name 039568271 (unanalyzed) to the folder established on the computer, and finally completes the collection of the internal file data of the U disk.

[0039] Furthermore, the data processing unit first obtains and acquires the file data contents in several USB flash drives, and superimposes the file data in several USB flash drives to generate a complete detection data table. The processing unit analyzes and judges each content in the detection data table, and completes the judgment whether the content is qualified, and then judges whether the internal file data of the USB flash drive corresponding to the content is qualified, and finally parses and judges whether the temperature control product corresponding to the internal file of the USB flash drive is qualified.

[0040] In actual use, during the data analysis process, first, the data files collected in the U disk that have not been analyzed, such as the contents of the file with the folder name 039568271 (unanalyzed), are superimposed on the detection data table. The contents of the file 039568271 (unanalyzed) are, for example: the temperature value and humidity value output by the temperature control product at the corresponding time of the previous minute, the temperature value and humidity value output by the temperature control product at the corresponding time of the next minute, and the actual temperature value and humidity value in the current environment; the contents of the file 039568271 (unanalyzed) are superimposed on the detection data table, and the contents superimposed on the detection data table are intelligently analyzed to determine whether the three sets of temperature values ​​and humidity values ​​are If they are the same, they are analyzed as qualified; if they are not the same, they are analyzed as unqualified. The corresponding mark at the end of the current data in the test data table is qualified or unqualified. At the same time, the name of the corresponding folder 039568271 (unanalyzed) on the computer is changed to 039568271 (qualified) or 039568271 (unqualified). The data collection unit is synchronously controlled to change the name of the file 39568271 (unanalyzed) in the U disk to 039568271 (qualified) or 039568271 (unqualified), and then the test data table is stored. Finally, the U disk pop-up program is started through the data collection unit. After the U disk is popped open, unplug the U disk and reinsert the new U disk.

[0041] In the present invention, a detection data table is established, the data in the internal files of the U disk are superimposed on the detection data table, and the newly added data in the detection data table are intelligently analyzed. Since the present invention only needs to perform intelligent analysis and judgment on the data in the data detection table, the processing efficiency is greatly improved, and the accuracy of the judgment is increased. Since the detection data table is intelligently stored, the file data in each U disk is intelligently stored, and the analysis and judgment results can be accurately checked. After the analysis is completed, the present invention synchronously controls the data collection unit to rename the files in the U disk, so that it can more intuitively check whether the temperature control product corresponding to the file data in the U disk is qualified.

[0042] Furthermore, the data collection unit drives the test end through the USB driver software, and the test end is connected to the U disk using the USB interface hardware. After the data collection unit obtains the internal file data of the U disk each time, the data collection unit starts the U disk pop-up program through the USB driver software, and then pops up the U disk.

[0043] In actual use, the present invention obtains the internal files of the U disk, analyzes and judges them, and finally renames the internal files of the U disk, then starts the U disk pop-up program, and finally pops up the U disk, thereby achieving a certain protection effect on the U disk during use of the U disk, so that the U disk can be reused multiple times.

[0044] Furthermore, the data analysis module uses the test software on the computer to complete control data collection, data processing, data storage and data display. The data analysis module is synchronously connected to the sound card control module on the computer to complete the control of the sound card hardware on the computer.

[0045] In actual use, while the data analysis module synchronously controls the data collection unit to change the name of the file 39568271 (unanalyzed) in the U disk to 039568271 (qualified) or 039568271 (unqualified), the data analysis module controls the computer to issue a prompt of qualified or unqualified detection. For temperature control products that fail the detection, the data analysis module generates a judgment result and obtains a result table. The result table contains the product numbers of several unqualified products, and the judgment result is synchronously sent to the management module. The management module promptly screens out unqualified products according to the product numbers of the unqualified products in the result table.

[0046] Furthermore, the test software has the function of displaying the current time, facilitating the operator to check the current time, and setting the current time of the product. The test software is used to set the number of minutes to check the records of the product. The test software is used to set whether to check the temperature and humidity records of the product. The test software is used to set the temperature standard of the product. The test software is used to set the humidity standard of the product. The test software is used to count the number of production tests. The test software is used to display log information. In the test software, click Start for the first time, and it will run automatically afterwards. When each item in the test data table is detected, the test will stop. The test software displays the corresponding test status by displaying different colors. While displaying the test status, it controls the computer sound card to issue a prompt when the test fails. Gray represents waiting to be run; yellow represents running; red represents test failure; green represents test pass.

[0047] In actual use, compared with the existing manual viewing of internal file data of the USB flash drive, the system of the present invention has the advantages of being more efficient and faster in actual operation, saving a lot of human resources.

[0048] Furthermore, the data collection module stores all the internal files of the USB disk in a folder of a single directory of HDFS, specifically in the folder: " / user / hadoop / input / small-foles / ". All file operations of the internal files of the USB disk are accessed through the interface Smallfolesitlnterface, which contains the following operation functions:

[0049] In actual use, the data collection unit copies the internal files of the USB flash drive with the folder name suffixed with "(unanalyzed)" to the folder created on the computer side, specifically stored in the folder: " / user / hadoop / input / small-foles / ", and uses the interface Smallfolesitlnterface to access and obtain the internal files of the USB flash drive copied on the computer side.

[0050] Conversion function: merge all the internal files of the USB flash drive stored in a single directory of HDFS into the final file with index. After conversion, two files are generated in the same directory: one is the .index file containing the index. After reading the content of each internal file of the USB flash drive and appending the new internal file of the USB flash drive, the index file will be accessed in this process. The content of the index file consists of several index information of "USB flash drive identity number <first character offset: content length>"; the other is the .data file containing the content of the internal file of the USB flash drive. The content file combines the contents of all the internal files of the USB flash drive to obtain a complete detection data table;

[0051] In actual use, first use the conversion function to merge the folder with the suffix "(unanalyzed)" under the folder " / user / hadoop / input / small-foles / " into the final file with an index, and overlay the contents of the folder on the detection data table inside the final file to generate a .data file containing the contents of the files inside the USB flash drive. The specific detection data table is used as the .data file, and another .index file containing the index is generated in the same directory. The index file can be used to find the location of the contents of each file inside the USB flash drive, and the corresponding content can be quickly found from the .data file.

[0052] Read function: read the contents of the given internal file of the USB flash drive, find the character offset and content length of the folder content in the corresponding USB flash drive in .data in the hidden index file .index through the USB flash drive identity number as the file name, and then directly read the corresponding content from .data and return it to the data processing unit.

[0053] In actual use, the read function is used to read the content of each data from the detection data table as a .data file, and the matter returns the read content to the data processing unit

[0054] Furthermore, if Figure 5 As shown in the figure, the specific process of cyclically superimposing the file data in several USB flash drives to generate a complete detection data table is as follows:

[0055] Step 1: Get the input directory as PATH;

[0056] Step 2: Determine whether the path PATH is empty, if it is empty, return FALSE;

[0057] Step 3: Loop through the next file in the PATH directory; if the file does not exist, terminate the loop; if it is not a file, skip it; if it is, go to step 4;

[0058] Step 4: Save the next file read to the .data file under the PATH path in an append-write mode, and write the current file name, the starting offset of the first character of the file data in .data, and the size information of the current file data to the index file .index in an append-write mode; then jump to step 3;

[0059] Step 5: In step 3 and step 4, if an exception occurs, return FALSE directly; otherwise, return true.

[0060] In actual use of the present invention, after the merging algorithm is processed, a large number of small files are processed into

[0061] A final file .data and an index file .index of several copied internal files of the USB flash drive; the reading algorithm of several copied internal files of the USB flash drive is based on the merging algorithm; when reading the contents of several copied internal files of the USB flash drive, first request .index to obtain the index information, including the starting offset position and content length of several copied internal files of the USB flash drive, and then directly read the content length characters starting from the offset position in .data.

[0062] Furthermore, the data analysis module also includes a data display unit and a data protection unit. The data display unit is used to display data through a computer display screen, and the data protection unit protects all data by establishing a traffic log; it records the behavior of users or devices. When a device is attacked or invaded by a virus or Trojan horse, it will exhibit different behavior from before the invasion. By analyzing the traffic log of the device, abnormal traffic can be identified and intrusion and attack behavior can be discovered.

[0063] In actual use of the present invention, by setting up a data protection unit and protecting the data records in the detection data table, malicious changes to the data in the data detection table are avoided, the security of the data is guaranteed, and ultimately the accuracy of the temperature control product detection is guaranteed.

[0064] In summary, in actual use, first start the computer-side data analysis module, complete the connection of the test end, start the computer-side test software and USB driver software, initialize the software, set the test configuration and specifications, and then the data collection unit drives the test end through the USB driver software. The test end uses the USB interface hardware to connect to the U disk. When the data collection unit obtains the internal file data of the U disk, there will be multiple folders stored in the U disk under actual conditions. The multiple folders are in chronological order, and the name of each folder is the number of the temperature control product being tested plus whether it is qualified. For example, if the product number is 039568271, if the folder name is 039568271 (qualified), it means that the U disk has obtained the internal file data. After obtaining the test data of the temperature control product with product number 039568271, the test data is analyzed and judged, and the analysis and judgment result is qualified. If the folder name is 039568271 (unqualified), it means that after obtaining the test data of the temperature control product with product number 039568271, the test data is analyzed and judged, and the analysis and judgment result is unqualified. If the folder name is 039568271 (unanalyzed), it means that after obtaining the test data of the temperature control product with product number 039568271, the U disk has not been analyzed. At this time, the data collection unit copies the internal files of the U disk with the folder name 039568271 (unanalyzed) to the computer to establish , and finally completes the collection of file data inside the U disk. When the data collection unit obtains the file data inside the U disk, multiple folders will be stored in the U disk under actual conditions. The multiple folders are in chronological order, and the name of each folder is the number of the temperature control product being tested plus whether the test is qualified. For example, the product number is 039568271. If the folder name is 039568271 (qualified), it means that after the U disk obtains the test data of the temperature control product with the product number 039568271, the test data is analyzed and judged, and the analysis and judgment result is qualified. If the folder name is 039568271 (unqualified), it means that after the U disk obtains the test data of the temperature control product with the product number 039568271, the test data is analyzed and judged, and the analysis and judgment result is qualified. 71, and analyze and judge the test data, and the analysis and judgment result is unqualified. If the folder name is 039568271 (not analyzed), it means that after the U disk obtains the test data of the temperature control product with product number 039568271, it has not been analyzed. At this time, the data collection unit copies the internal files of the U disk with the folder name 039568271 (not analyzed) to the folder established on the computer, and finally completes the collection of the internal file data of the U disk. In the process of data analysis, first, the data files that have not been analyzed in the collected U disk, such as the contents of the files with the folder name 039568271 (not analyzed), are superimposed on the test data table.The contents in the file 039568271 (unanalyzed) are, for example: the temperature and humidity values ​​output by the temperature control product at the corresponding time of the previous minute, the temperature and humidity values ​​output by the temperature control product at the corresponding time of the next minute, and the actual temperature and humidity values ​​in the current environment; the contents in the file 039568271 (unanalyzed) are superimposed on the test data table, and the contents superimposed on the test data table are intelligently analyzed to determine whether the three sets of temperature and humidity values ​​are the same. If they are the same, they are analyzed as qualified, and if they are not the same, they are analyzed as unqualified. The corresponding end of the current data in the test data table is marked as qualified or unqualified, and the name of the corresponding folder 039568271 (unanalyzed) on the computer is changed to 039568271 (qualified) or 039568271 (unqualified), and the synchronous control data collection unit converts the file 39568271 in the U disk into a qualified or unqualified file. 271 (unanalyzed) is changed to 039568271 (qualified) or 039568271 (unqualified), and then the test data table is stored. Finally, the U disk pop-up program is started through the data collection unit. After the U disk is popped open, the U disk is unplugged and a new U disk is reinserted. The data analysis module synchronously controls the data collection unit to change the name of the file 39568271 (unanalyzed) in the U disk to 039568271 (qualified) or 039568271 (unqualified). At the same time, the data analysis module controls the computer to issue a prompt of qualified or unqualified detection. For temperature control products that fail to pass the test, the data analysis module generates a judgment result and obtains a result table. The result table contains the product numbers of several unqualified products, and the judgment result is synchronously sent to the management module. The management module promptly screens out unqualified products according to the product numbers of unqualified products in the result table.

[0065] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention (including the claims) is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.

[0066] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A system for parsing and judging the USB file data of a temperature control product, characterized by: It includes a computer terminal and a test terminal, wherein a data analysis module runs inside the computer terminal, the test terminal is used to connect to a U disk, the data analysis module is used to control the test terminal to read the internal file data of the U disk, and feed the internal file data of the U disk back to the data analysis module, the data analysis module includes a data collection unit and a data processing unit, the data collection unit is used to directly control the test terminal to obtain each internal file data of the U disk, the data processing unit automatically determines whether the temperature control product is qualified according to the obtained internal file data of the U disk, generates a judgment result, and synchronously sends the judgment result to the management module; Each USB flash drive has a unique identification number, and the identification number of each USB flash drive cannot be changed. When testing temperature control products, first read the identification number of each USB flash drive, and at the same time obtain the identification information of the tested temperature control product, and then send the test results and the identification information of the tested temperature control product to the management module synchronously; The data processing unit first obtains and obtains the data contents of several internal files of the USB flash drive, and superimposes the data contents of several internal files of the USB flash drive to generate a complete test data table; the data processing unit analyzes and judges each content in the test data table, and completes the judgment whether the content is qualified, and then judges whether the internal file data of the USB flash drive corresponding to the content is qualified, and finally analyzes and judges whether the temperature control product corresponding to the internal file data of the USB flash drive is qualified; after the analysis and judgment are completed, the synchronous control data collection unit renames the internal file of the USB flash drive; The data collection unit stores all the internal files of the USB disk in a folder of a single directory of HDFS. All file operations of the internal files of the USB disk are accessed through an interface, which includes the following operation functions: Conversion function: merge all the internal files of the USB flash drive stored in a single directory of HDFS into the final file with index. After conversion, two files are generated in the same directory: one is the .index file containing the index. After reading the data content of each internal file of the USB flash drive, the new internal file data content of the USB flash drive is appended to the detection data table. This process will access the index file. The content of the index file consists of several index information of "USB flash drive identity number <first character offset: content length>"; the other is the .data file containing the data content of the internal file of the USB flash drive. The .data file combines the data content of all internal files of the USB flash drive. The .data file is the complete detection data table. Reading function: reads the internal file data content of a given USB flash drive to be read, finds the first character offset and content length of the corresponding internal file data content of the USB flash drive in the .data file in the hidden index file .index through the USB flash drive identity number as the file name, and then directly reads the corresponding content from the .data file and returns it to the data processing unit.

2. A system for analyzing and judging USB file data of a temperature control product according to claim 1, characterized in that: The data collection unit is used to collect data. After the U disk is connected to the test end, the data collection unit is automatically triggered to obtain the file data inside the U disk.

3. A system for analyzing and judging USB file data of a temperature control product according to claim 2, characterized in that: The data collection unit drives the test end through USB driver software, and the test end is connected to the U disk using USB interface hardware. After the data collection unit obtains the internal file data of the U disk each time and renames the internal files of the U disk, the data collection module starts the U disk pop-up program through the USB driver software and then pops up the U disk.

4. A system for analyzing and judging USB file data of a temperature control product according to claim 1, characterized in that: The data analysis module uses test software on the computer to complete control data collection, data processing, data storage and data display. The data analysis module is synchronously connected to the computer sound card control module to complete control of the computer sound card hardware.

5. A system for analyzing and judging USB file data of a temperature control product according to claim 4, characterized in that: The test software has the function of displaying the current time and setting the current time of the product. The test software is used to set how many minutes the product is checked for record. The test software is used to set whether to check the temperature and humidity records of the product. The test software is used to set the temperature standard of the product. The test software is used to set the humidity standard of the product. The test software is used to count the number of production tests. The test software is used to display log information. In the test software, the first click starts and the software runs automatically. When each item in the test data table is checked, the test is stopped. The test software displays the corresponding test status by displaying different colors. While displaying the test status, the computer sound card is controlled to issue a prompt when the test fails.

6. The system for analyzing and judging the USB file data of a temperature control product according to claim 1, characterized in that: The specific process of superimposing the data contents of several files in USB flash drives to generate a complete test data table is as follows: Step 1: Get the input directory as PATH; Step 2: Determine whether the path PATH is empty, if so, return FALSE; Step 3: Loop through the next file in the PATH directory; If the file does not exist, terminate the loop; if it is not a file, skip it; if it is, execute step 4; Step 4: Save the next file read to the .data file under the PATH path in an append-write mode, and write the current file name, the offset of the first character of the file data in the .data file, and the size information of the current file data to the index file .index in an append-write mode; then jump to step 3; Step 5: In steps 3 and 4, if an exception occurs, return FALSE directly; otherwise, return true.

7. The system for analyzing and judging the USB file data of a temperature control product according to claim 1, characterized in that: The data analysis module also includes a data display unit and a data protection unit. The data display unit is used to display data through a computer display screen, and the data protection unit protects all data through an established traffic log.