Method for obtaining RF test data through code scanning

The method of obtaining RF test data by scanning barcodes utilizes internationally recognized barcode standards and encryption technology, combined with a distributed storage system, to solve the problems of bloated storage and manual maintenance in existing systems, and achieves automated management and efficient and secure data processing of test data.

CN120805957APending Publication Date: 2025-10-17RI SHAN COMPUTER ACCESSORY (JIASHAN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510949724.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

The existing system for scanning QR codes to obtain RF test data requires large storage space and is inconvenient to migrate. Test item adjustments rely on manual maintenance, which affects production efficiency and increases costs.

Method used

The QR code is scanned by a barcode scanner, and data is bound using international barcode standards. Combined with AES symmetric encryption and RSA asymmetric encryption, dynamic configuration and automated management of test data are achieved. A distributed storage system is used and CRC checksums are used to ensure data integrity, supporting breakpoint resuming and data traceability.

Benefits of technology

It achieves precise association between test data and products, reduces errors caused by manual intervention, ensures data compatibility and security, improves data processing efficiency and traceability, and meets ISO/IEC 17025 standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120805957A_ABST
    Figure CN120805957A_ABST
Patent Text Reader

Abstract

The invention relates to a method for acquiring RF test data through code scanning. The method comprises the following steps: providing test data of RF related edge computing equipment; scanning a two-dimensional code of a to-be-tested product by using a code scanning gun, reading a text as a trigger instruction, judging whether the two-dimensional code is correct or not, and binding the text to test data; analyzing the format of the data returned by the equipment, obtaining the latest group of data and moving the test file to a preset storage system or a specified path; before test data processing is executed, test items modified by a user are dynamically obtained, and processing is carried out according to conditions after comparison; through the above steps, latest product test data and latest test items set by an operator can be obtained, and the data and the test product are associated and bound.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a method for obtaining RF test data by scanning a code. Background Art

[0002] The current system for acquiring RF test data by scanning codes requires large storage space and is inconvenient to migrate. It can only acquire RF data for existing test items. Adding, deleting, or modifying test items requires separate maintenance by operations personnel. This hinders on-site users, affects production efficiency, and increases production and operation costs.

[0003] Chinese patent CN111144526B discloses a method and device for maintaining and verifying data based on QR codes. The method includes: determining the target task and obtaining the device QR code corresponding to the target device; uploading the device-related information to the digital delivery platform to associate the device-related information with the device QR code; using a first mobile terminal to process the digital delivery platform and the official account to obtain the dispatch QR code; using a second mobile terminal to scan the dispatch QR code and the device QR code to complete the target device metadata maintenance and device measurement point data verification.

[0004] While the aforementioned solution improves the efficiency of some data maintenance and verification through mobile QR code scanning, for RF test data systems, this solution only associates static device information (such as metadata) and does not enable flexible expansion of dynamic test item configuration. Adding or removing test items still requires manual system adjustments, and QR code scanning cannot directly trigger test logic updates.

[0005] Therefore, we propose a method to obtain RF test data by scanning the code. Summary of the Invention

[0006] The main purpose of this application is to provide a method for obtaining RF test data by scanning a code, aiming to solve the problems in the prior art such as bloated system storage, difficult migration, and test item adjustment relying on manual maintenance.

[0007] To achieve the above objectives, the present application provides a method for scanning a code to obtain RF test data, comprising the following steps: S110. Provide test data of RF-related edge computing equipment; S120: Scan the QR code of the product to be tested using a barcode scanner, read the text as an instruction to trigger the extraction of the test data, perform a preliminary judgment on the text to determine whether the QR code is correct, bind the text to the test data, and append the text to a fixed position in the test data; S130, analyze the format of the provided RF-related edge computing device return data, obtain all groups of data according to the signature characters or data of each group of data, sort the data, obtain the latest group of data as the data corresponding to the current test product, and move the test file to a preset distributed storage system or a specified path; S140, before performing test data processing, dynamically obtaining test items modified by the user, comparing whether the test items are consistent with the last run, if consistent, no processing is performed, if inconsistent, re-generating the storage file required by the current latest test item, and backing up the previous storage file; S150, through the processing of steps S130 and S140, the latest product test data and the latest test items set by the operator are obtained, and by matching the test items in the test data, the desired test data can be obtained; at the same time, through the processing of step S120, the obtained data is associated and bound together with the tested product.

[0008] Preferably, in step S120, the preliminary judgment on the text is to judge whether the two-dimensional code is correct, specifically including: Verify whether the encoding format of the two-dimensional code meets the preset standard; wherein the preset standard is specifically: setting an internationally recognized one-dimensional code or two-dimensional code standard; and containing a product identifier, batch number, and test type code of fixed length; Check whether the product identification information contained in the two-dimensional code matches the expected identification of the product to be tested; Check if the two-dimensional code is damaged, blurred, or cannot be recognized, if so, prompt an error message and refuse to perform subsequent operations.

[0009] Preferably, in step S120, when the text is appended to the fixed position of the test data, it specifically includes: Inserting two-dimensional code text information in the reserved byte segment of the original data file of the RF-related edge computing device; Ensure that the insertion operation does not damage the original data structure through CRC16 check code; Add a custom identifier to the file header to distinguish between bound data and original data.

[0010] Preferably, in step S120, when the text is bound to the test data, an encryption algorithm is used to encrypt the binding information. The encryption algorithm uses a double-layer encryption mechanism; wherein the first layer is an AES symmetric encryption binding based on the product serial number; the second layer is an RSA asymmetric encryption signature based on the timestamp.

[0011] Preferably, in step S130, after obtaining the latest group of data, it further includes: real-time checking the test data based on preset rules, triggering an alarm mechanism and marking the corresponding test file if abnormal data is detected; The test data is automatically classified according to the product batch number into a distributed storage system, and a data fingerprint is generated for subsequent tracing.

[0012] Preferably, the preset rules for real-time checking of test data are as follows: Check if the structure of the returned data conforms to the predefined template, including parameter order, separator, unit identifier and data length; Compare the measured values of key parameters such as standing wave ratio, gain, and phase deviation to see if they are outside the threshold range set in the product specification; Verify the logical relationship between related parameters, i.e., whether the physical quantity conversion of frequency and wavelength is matched, and whether the mathematical relationship between power and attenuation value is established; Confirm the logical order of data generation time and test execution time to prevent data confusion caused by time misplacement; Ensure that the data has not been truncated or tampered with during transmission through CRC checksum or hash value comparison; Automatically adjust the criteria according to the product batch characteristic value, and trigger an abnormal mark when the measured data deviates from the mean value of the same group by more than 3σ standard deviation; Establish a test data trend archive, such as a review process when the current data deviates from the historical pass rate of similar products by more than 60-80%.

[0013] Preferably, in step S130, when moving the test file to the preset distributed storage system, further comprising: Automatically create a multi-level directory structure according to the product model, and the directory level includes date / shift / production line code; Implement file fragment upload through MinIO object storage protocol, and set erasure code strategy to ensure data reliability; Synchronously generate metadata index table to record file physical path, data fingerprint and associated product QR code information.

[0014] Preferably, in step S140, when regenerating the storage file, differential data migration is used to copy the data block related to the change test item, and the history version is associated through hash chain structure.

[0015] Preferably, in step S140, when backing up the previous storage file, further comprising: Generate a distributed backup log based on blockchain to record file version, modification timestamp and operator identity information; Use incremental snapshot technology to backup only the changed data block, and combine LZ77 compression algorithm to reduce storage redundancy; Synchronize backup files to offsite disaster recovery center and check integrity through SHA-512 hash value.

[0016] Preferably, it also includes a test data visualization step: Extract encrypted test data from distributed storage system, and convert to JSON format after decryption; Push key parameters to MES system dashboard in real time through WebSocket protocol; Generate interactive test report containing polar coordinate graph, Smith circle graph and trend analysis curve, support PDF / SVG format export.

[0017] The beneficial effects of the technical scheme of the present application are: By scanning the QR code to trigger data binding, the accurate association between the test product and the RF-related edge computing device data is realized, avoiding matching errors caused by manual intervention. At the same time, the internationally accepted barcode standard (such as ISO / IEC 15420) is used to ensure the compatibility and traceability of the QR code, and the data source reliability is ensured through the three mechanisms of format checking, information comparison and damage detection Combined with AES symmetric encryption (based on product serial number) and RSA asymmetric encryption (based on timestamp signature), it not only ensures the confidentiality of data transmission, but also meets the anti-tampering requirements. And through the check code in the data insertion stage, it ensures that the original structure is not damaged, and through the file header identification, it distinguishes the processing state to prevent unbound data from being mixed in. Further, the distributed ledger records file version, operation time and information of the person responsible, combined with SHA-512 hash check, to realize the non-repudiation and integrity verification of backup data.

[0018] LZ77 compression algorithm is used to reduce the amount of backup data, synchronize to offsite center, ensure data recovery ability in extreme cases, and record file path, fingerprint and QR code information through metadata index table, meet the strict requirements of industry standards such as ISO / IEC 17025 on test data traceability. BRIEF DESCRIPTION OF DRAWINGS

[0019] Figure 1 Program logic diagram for the method of scanning code to obtain RF test data in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The embodiments of the present application are described below in detail, examples of the embodiments are shown in the drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary, and are intended to explain the present application, and cannot be understood as a limitation of the present application, all other embodiments obtained by those skilled in the art based on the embodiments in the present application without making creative efforts are within the scope of protection of the present application.

[0021] In addition, if the description involving "first", "second" and the like in the present application is only for the purpose of description, such as for distinguishing the same or similar elements, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the fact that the technical solutions can be realized by those skilled in the art, when the combination of technical solutions appears contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist, and is not within the scope of protection required by the present application.

[0022] Referring to Figure 1 The present application provides a method for obtaining RF test data by scanning code, comprising the following steps: S110, providing test data of RF related edge computing device, the test data is the inherent format of RF related data of network analyzer about the test product; S120, using a code scanning gun to scan the two-dimensional code of the product to be tested, reading the text as a trigger to extract the test data, preliminarily judging the text, judging whether the two-dimensional code is correct, and binding the text to the test data, and appending the text in the fixed position of the test data; S130, analyzing the format of the return data of the RF related edge computing device, obtaining all groups of data according to the characteristic characters or data of each group of data, sorting the data, obtaining the latest group of data as the data corresponding to the current test product, and moving the test file to the preset distributed storage system or the specified path; S140, before executing the test data processing, dynamically obtaining the test items modified by the user, comparing whether the test items are consistent with the last running test items, if consistent, no processing is performed, if inconsistent, the storage file required for the current latest test items is regenerated, and the previous storage file is backed up; S150, through the processing of steps S130 and S140, the latest product test data and the latest test items set by the operator are obtained, and by matching the test items in the test data, the desired test data can be obtained; at the same time, through the processing of step S120, the data obtained is associated and bound together with the tested product.

[0023] In this embodiment, by inserting two-dimensional code text information in the reserved byte segment (such as the idle area of the file header) of the original data file of the RF related edge computing device, the original data structure is avoided to be damaged; the file integrity after insertion is verified by CRC16 check code to prevent data tampering; and a custom identifier (such as [DATA_BIND]) is added in the file header to distinguish between bound data and unprocessed data, which is convenient for subsequent parsing. At the same time, a dynamic test item comparison mechanism is adopted, when the test item is changed, the system automatically triggers the file reconstruction process, and through the timestamp marking and differential backup strategy, the traceability of historical test data is ensured, and redundant data storage is avoided. In addition, the distributed storage system realizes fast positioning of test data through MD5 hash algorithm, and combines the index association of the scanned code text, so that the data retrieval efficiency is improved.

[0024] In addition, the breakpoint resume function is also supported, when the network fluctuation causes the transmission to be interrupted, the system can automatically resume the data transmission progress according to the bound two-dimensional code information, to ensure the integrity and continuity of the RF test data.

[0025] Specifically, in the data insertion stage, the system will first scan the header structure of the original data file of the RF related edge computing device, and accurately locate the available space range of the reserved byte segment. If the space is insufficient, the expansion mechanism will be intelligently enabled, and the expansion area will be opened at the end of the file and the mapping relationship with the header will be established, to ensure that the two-dimensional code text information is completely embedded and does not affect the normal parsing of the original data.

[0026] The generation and verification of the CRC16 check code is performed immediately after each data insertion operation is completed. The system will calculate the key data area from the start of the file to the insertion point according to a specific algorithm rule, generate a unique check code and attach it to a specific position of the file. Before subsequent data reading or transmission, the verification process is triggered again, and only when the check code is completely matched, the data is allowed to be further processed, so as to strictly prevent illegal tampering of data in the storage and transmission process.

[0027] In the dynamic test item comparison link, the system will deeply analyze the test item configuration parameters modified by the user, and compare them with the last run test item in multiple dimensions, including but not limited to test frequency range, signal strength threshold, test item order and other key information. Once inconsistencies are found, not only will the storage file adapted to the new test item be regenerated, but the previous storage file will also be backed up in layers. According to the test time, product batch and other key information, a multi-layer backup directory is constructed to facilitate data backtracking and analysis in different scenarios. When it comes to data retrieval of a distributed storage system, the MD5 hash algorithm will quickly operate on the file content at the initial data storage stage to generate a unique hash value index.

[0028] In the actual retrieval process, after the user initiates a query request, the system first extracts key information through code scanning text, performs high-speed matching positioning in the hash index library, quickly locates the storage node where the target data is located, greatly shortens the data retrieval path, and significantly improves the efficiency compared with traditional retrieval methods. In the implementation of the breakpoint resume function, the system records the progress information of data transmission in real time and stores it in association with the two-dimensional code binding information.

[0029] When the network is restored, the system accurately locates the interruption point based on the saved progress data, automatically restarts the data transmission task, and continues to transmit the remaining data in a seamless manner, without the need for manual intervention throughout the process, effectively ensuring the integrity and continuity of RF test data in complex network environments, and providing solid and reliable technical support for the stable operation of the entire test process.

[0030] In one of the embodiments, in step S120, the preliminary judgment on the text is made to determine whether the two-dimensional code is correct, specifically including: Verifying whether the encoding format of the two-dimensional code conforms to the preset standard; wherein the preset standard is specifically: setting the international standard one-dimensional code or two-dimensional code standard; and containing product identifier, batch number, test type code of fixed length; Checking whether the product identification information contained in the two-dimensional code matches the expected identification of the product to be tested; Checking whether the two-dimensional code is damaged, blurred or unrecognizable, and if so, prompting an error message and refusing to perform subsequent operations.

[0031] Specifically, the internationally recognized one-dimensional code (such as Code 128) or two-dimensional code (such as QR Code) standard is adopted to ensure the compatibility of the code scanning gun; the content of the two-dimensional code is verified to see if it conforms to the preset format, such as a fixed-length product identifier (such as a 12-digit serial number), a batch number (such as the YYYYMMDD format), and a test type code (such as RF1 / RF2); at the same time, the product ID in the two-dimensional code is extracted and compared with the expected identifier of the product to be tested (such as the task number issued by the MES system), and if they are inconsistent, an error prompt is triggered and the process is terminated. The scanning success rate and parsing time of the code scanning gun are used to determine whether the two-dimensional code is damaged, blurred, or contaminated, and if the recognition confidence is below a threshold (such as 80%), the code is marked as invalid and the subsequent operation is rejected.

[0032] In this embodiment, the strict two-dimensional code verification mechanism effectively prevents test data binding errors caused by two-dimensional code errors, ensuring the accuracy of data association from the source. The internationally recognized encoding standard ensures the wide compatibility of the code scanning device in different scenarios, whether it is a one-dimensional code or a two-dimensional code, which can be accurately identified to lay the foundation for the smooth development of subsequent processes.

[0033] Among them, the detailed checking of the two-dimensional code content format, such as the fixed-length product identifier, the standardized batch number, and the test type code, ensures that each two-dimensional code carries clear and standardized information, facilitating fast parsing and processing by the system, greatly improving the efficiency and accuracy of data processing. Through the comparison of product identifier information, it is matched with the expected identifier of the product to be tested (such as the task number issued by the MES system), forming a double verification, further preventing the test data from being bound to the wrong product due to human error or system error, and ensuring the one-to-one correspondence between the test data and the actual product. With the scanning success rate and parsing time of the code scanning gun, 80% recognition confidence is used as the threshold to timely screen out invalid two-dimensional codes that are damaged, blurred, or contaminated, avoiding invalid data from entering the subsequent process and reducing system failures and resource waste caused by incorrect data.

[0034] In one of the embodiments, in step S120, when the text is added at a fixed position of the test data, it specifically includes: Inserting two-dimensional code text information in the reserved byte segment of the RF-related edge computing device original data file; Ensuring that the insertion operation does not damage the original data structure through CRC16 check code; Adding a custom identifier in the file header to distinguish between bound data and original data.

[0035] In this embodiment, by inserting the two-dimensional code text information in the reserved byte segment of the RF-related edge computing device original data file, seamless association of test data and product identification is achieved, which not only makes full use of the idle space of the file, but also avoids interference with the core test data. And through the introduction of CRC16 check code, the data integrity after the insertion operation is accurately detected, effectively preventing parsing errors or information loss caused by data structure damage. At the same time, the addition of the file header self-defined identifier ensures that it can efficiently distinguish data at different processing stages, greatly simplifying the subsequent data parsing process, accelerating the data processing speed, improving the overall test efficiency, and ensuring the operation of RF test data management.

[0036] In one of the embodiments, in step S120, when the text is bound to the test data, the binding information is encrypted by using an encryption algorithm. The encryption algorithm uses a double-layer encryption mechanism; wherein the first layer is an AES symmetric encryption binding based on the product serial number; the second layer is an RSA asymmetric encryption signature based on the timestamp.

[0037] Specifically, the first layer encryption uses the product serial number as the key element to generate a unique encryption key. The product serial number is unique, and the AES key derived therefrom can ensure that the binding information of each product has its exclusive encryption method. When performing encryption operation, the system converts the two-dimensional code text information into a specific data format, and then uses the AES key to perform encryption processing according to the rules of the AES encryption algorithm, thereby having the ability to efficiently encrypt data, and in the case of knowing the correct key, being able to quickly decrypt. For example, in actual application scenarios, when it is necessary to read the binding information of a certain product, the system can quickly generate the corresponding AES key according to the serial number of the product, thereby quickly decrypting to obtain the original two-dimensional code text information, realizing precise association of data. At the same time, since the key is generated based on the product serial number, the keys of different products are independent of each other, so even if part of the product encryption information is obtained, it will not affect the security of other product data, effectively guaranteeing the confidentiality of the single product test data binding information.

[0038] The second layer encryption uses a combination of timestamp elements and RSA asymmetric encryption signature technology. The addition of the timestamp adds a time-sensitive information dimension to the data, making each binding operation have a clear time identifier. The RSA asymmetric encryption algorithm uses the characteristics of public and private keys, where the private key is securely stored by the system, and the public key can be publicly disclosed to relevant devices or systems for signature verification. During the signing operation, the system combines the AES-encrypted binding information with the timestamp to form a data block to be signed. Then, using the private key, a unique digital signature is generated. When other devices or systems need to verify the integrity and authenticity of the binding information, they only need to use the corresponding public key to verify the signature. If the verification is successful, it means that the data has not been tampered with during transmission and storage, and it was generated within the correct time range, thereby ensuring the integrity and legality of the binding information.

[0039] In this embodiment, through the cooperation of the double-layer encryption mechanism, a rigorous security protection system is formed, which guarantees the security of the test data binding information during storage, transmission, and use from multiple angles, preventing data leakage, tampering, and other security issues, and providing a solid security foundation for the entire RF test data management process.

[0040] In one of the embodiments, after obtaining the latest set of data in step S130, further comprising: Real-time verification of the test data based on preset rules, and triggering an alarm mechanism and marking the corresponding test file if abnormal data is detected; Automatically classifying the test data by product batch number into a distributed storage system, and generating a data fingerprint for subsequent tracing.

[0041] The preset rules for real-time verification of the test data are as follows: Checking whether the structure of the returned data conforms to the predefined template, including parameter order, separator, unit identifier, and data length; Comparing the measured values of key parameters such as VSWR, gain, and phase deviation to see if they are outside the threshold range set in the product specification; Verifying the logical relationship between related parameters, i.e., whether the physical quantity conversion of frequency and wavelength is matched, and whether the mathematical relationship between power and attenuation value is established; Confirming the logical order of data generation time and test execution time to prevent data confusion caused by time misplacement; Using CRC check code or hash value comparison to ensure that the data has not been truncated or tampered with during transmission; Automatically adjusting the criteria based on product batch characteristic values, and triggering an abnormal mark when the measured data deviates from the mean value of the same group by more than 3σ standard deviation; Establish test data trend archives, such as starting a review process when the current data deviates from the historical qualified rate of similar products by more than 60-80%.

[0042] In this embodiment, through strict checking of the returned data structure, it is ensured that the data format conforms to the predefined template, and data processing abnormalities caused by format errors are avoided from the source, effectively preventing "dirty data" from entering the subsequent analysis process. The comparison of the threshold values of the key parameters can quickly identify measured values that exceed the allowed range of the product specification, accurately locate the situation where the product performance does not meet the standard, and timely detect abnormalities caused by factors such as test equipment failure, product defects, or external environmental interference. The verification of the logical relationship between related parameters further explores the internal rationality of the data, uses the principle of physical quantity conversion and mathematical relationship, and cross-checks multiple parameters to make it impossible for abnormalities hidden in the data to escape. For example, if the conversion relationship between frequency and wavelength deviates, it may indicate that there is an error in the frequency measurement or calculation during the test process. The logical sequence confirmation of the data generation time and the test execution time eliminates the confusion caused by time misplacement, ensures the time continuity and authenticity of the data, and provides accurate time clues for fault tracing. CRC check code or hash value comparison is like a "security instrument" for data, strictly guarding the integrity of the data transmission process. Once it finds that the data has been truncated or tampered with, it will immediately trigger an alarm, ensuring the originality and authority of the data and preventing malicious attacks or transmission failures from damaging the test data. Automatically adjust the criteria according to the product batch characteristic value, fully consider the performance differences and process fluctuations that may exist between different batches of products. When the measured data deviates from the mean value of the same group by more than 3σ standard deviation, an abnormality flag is triggered. This method based on statistical principles can not only adapt to the normal fluctuation range of the product itself, but also can sensitively capture abnormal situations that exceed the reasonable variation, avoiding false positives or false negatives caused by fixed thresholds.

[0043] In one of the embodiments, in step S130, when the test file is moved to the preset distributed storage system, further comprising: According to the product model, automatically create a multi-level directory structure, and the directory level includes date / shift / production line code; Implement file fragment upload through the MinIO object storage protocol, and set the erasure code strategy to ensure data reliability; Synchronously generate a metadata index table to record the file physical path, data fingerprint, and associated product two-dimensional code information.

[0044] In one of the embodiments, in step S140, when the storage file is regenerated, the differential data migration is used to copy the data block related to the test item, and the hash chain structure is used to associate the historical version.

[0045] In this embodiment, when the test item is detected to change, the system will first conduct a comprehensive scan and analysis on the test data in the current storage file. By comparing the configuration parameters of the new test item with the old test item, it is determined which data block is related to the changed test item. For example, if the new test item adds a test of a certain frequency point, and the old test item does not have data of the frequency point, then the data block related to the newly added frequency point will be identified as the part that needs to be migrated and copied. By using the index structure and metadata information of the storage file, the system can accurately locate the specific position of the data block related to the changed test item in the storage file.

[0046] After locating the data block, the system will extract it from the original storage file and prepare for migration and copying. For the extracted changed data block, the system will not conduct a full copy, but will use differential copying, that is, only the data block related to the new test item and changed will be copied to the new storage file, and for the unchanged data block, its original link or reference in the new storage file will be retained to avoid storing the same data repeatedly.

[0047] After completing the differential data migration and copying, the system will generate a unique hash value for the new storage file and each data block therein. The hash value is a fixed-length string calculated by a specific hash algorithm (such as SHA-256, etc.) on the data, which has the characteristics of uniqueness and determinism, that is, the same data always generates the same hash value, and different data almost cannot generate the same hash value.

[0048] Further, the hash value of the new storage file is associated with the hash value of the historical version storage file to form a chain structure. Specifically, the hash value of the new storage file will be connected as a node in the chain with the hash value of the previous historical version storage file, while retaining the pointer to the earlier historical version. In this way, a complete hash chain is formed, through which any historical version of the storage file can be traced back. At the same time, in the hash chain structure, each node (i.e. the hash value of each storage file) contains certain information, such as version number, test item configuration, data generation time, etc. to help users quickly understand the basic situation of each historical version.

[0049] In one of the embodiments, in step S140, when the previous storage file is backed up, further comprising: Generate a distributed backup log based on the blockchain, record the file version, modification timestamp and operator identity information; Use incremental snapshot technology to backup only the changed data block, and combine with LZ77 compression algorithm to reduce storage redundancy; Synchronize backup files to offsite disaster recovery center and check integrity by SHA-512 hash value.

[0050] In one of the embodiments, a test data visualization step is further included: Extract encrypted test data from distributed storage system, and convert to JSON format after decryption; Push key parameters to MES system dashboard in real time through WebSocket protocol; Generate interactive test report containing polar coordinate graph, Smith circle graph and trend analysis curve, support PDF / SVG format export.

[0051] In one of the embodiments, in step S140, the dynamically acquired modified test items specifically include: Listen to the test configuration change instruction of the MES system; and acquire the current test parameters of the RF related edge computing device in real time through the OPC UA protocol; and compare the cached last test configuration in the memory to identify the added / deleted / modified test items.

[0052] In one of the embodiments, a data trace enhancement function is further included: Establish a space-time index in the distributed storage system to support multi-dimensional retrieval according to operators / time periods / equipment numbers; generate digital watermarks for each test file to embed operator ID and audit status information; and provide an API interface for the quality department to call historical data for horizontal comparison and analysis.

[0053] The application further provides a computer terminal including a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned method for obtaining RF test data by scanning a code when executing the computer program.

[0054] The application further provides a computer readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for acquiring RF test data by scanning a code. The computer program, when executed, can include the processes of the above-mentioned respective embodiments of the method for acquiring RF test data by scanning a code. Any reference to memory, storage, database, or other medium provided by the present application and used in the embodiments can include non-volatile and / or volatile memory. The non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. The volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, the RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0055] It should be noted that, in this document, the terms "comprise", "contain" or any other variant thereof are intended to cover non-exclusive inclusions, so that the process, device, article or method for acquiring RF test data by scanning a code not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, device, article or method for acquiring RF test data by scanning a code. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of another identical element in the process, device, article or method for acquiring RF test data by scanning a code.

[0056] The above description is only the preferred embodiments of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the present application specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for obtaining RF test data by scanning a code, characterized in that: The following steps are involved: S110. Provide test data of RF-related edge computing equipment; S120: Scan the QR code of the product to be tested using a barcode scanner, read the text as an instruction to trigger the extraction of the test data, perform a preliminary judgment on the text to determine whether the QR code is correct, bind the text to the test data, and append the text to a fixed position in the test data; S130: Analyze the format of the data returned by the RF-related edge computing device, obtain all groups of data based on the iconic characters or data of each group of data, sort them, obtain the latest group of data as the data corresponding to the current test product, and move the test file to a preset distributed storage system or a designated path; S140. Before executing test data processing, dynamically obtain the test items modified by the user and compare them with the test items of the last run to see if they are consistent. If they are consistent, no processing is performed. If they are inconsistent, regenerate the storage file required for the current latest test item and back up the previous storage file; S150. Through the processing of steps S130 and S140, the latest product test data and the latest test items set by the operator are obtained, and by matching the test items in the test data, the desired test data can be obtained; at the same time, through the processing of step S120, the obtained data will be associated and bound with the tested product.

2. The method for obtaining RF test data by scanning a code according to claim 1, characterized in that: In step S120, the text is preliminarily judged to determine whether the QR code is correct, specifically including: Verify that the encoding format of the QR code complies with a preset standard; wherein the preset standard specifically includes: adopting an internationally accepted one-dimensional or two-dimensional code standard setting; and including a fixed-length product identifier, batch number, and test type code; Verify that the product identification information contained in the QR code matches the expected identification of the product to be tested; Check whether the QR code is damaged, blurred or unrecognizable. If so, an error message will be displayed and subsequent operations will be refused.

3. The method for obtaining RF test data by scanning a code according to claim 2, characterized in that: In step S120, the appending of text at a fixed position of the test data specifically includes: Insert QR code text information into the reserved byte segment of the original data file of the RF-related edge computing device; The CRC16 checksum is used to ensure that the insertion operation does not destroy the original data structure; Add a custom identifier to the file header to distinguish bound data from original data.

4. The method for obtaining RF test data by scanning a code according to claim 3, characterized in that: In step S120, when the text is bound to the test data, an encryption algorithm is used to encrypt the binding information; the encryption algorithm adopts a double-layer encryption mechanism; wherein the first layer is an AES symmetric encryption binding based on the product serial number; and the second layer is an RSA asymmetric encryption signature based on a timestamp.

5. The method for obtaining RF test data by scanning a code according to claim 1, characterized in that: In step S130, after obtaining the latest set of data, the following steps are further performed: Perform real-time verification of the test data based on preset rules. If abnormal data is detected, an alarm mechanism is triggered and the corresponding test file is marked; The test data is automatically classified into a distributed storage system according to the product batch number, and a data fingerprint is generated for subsequent tracing.

6. According to the method for obtaining RF test data by scanning a code in claim 5, the preset rules for performing real-time verification of the test data are specifically: Check whether the structure of the returned data conforms to the predefined template, including parameter order, separators, unit identifiers and data length; Compare the measured values ​​of key parameters such as standing wave ratio, gain, and phase deviation to see if they exceed the threshold range set in the product specification; Verify the logical relationship between the associated parameters, that is, whether the physical quantity conversion of frequency and wavelength matches, and whether the mathematical relationship between power and attenuation value holds; Confirm the logical sequence of data generation time and test execution time to prevent data confusion caused by time misalignment; Use CRC checksum or hash value comparison to ensure that data has not been truncated or tampered with during transmission; Automatically adjust the judgment criteria based on the product batch characteristic values, and trigger an abnormal flag when the measured data deviates from the mean of the same group by more than 3σ standard deviation; Establish a test data trend file. If the current data deviates from the historical pass rate of similar products by more than 60-80%, initiate the review process.

7. The method for obtaining RF test data by scanning a code according to claim 6, characterized in that: In step S130, the step of moving the test file to the preset distributed storage system further includes: Automatically create a multi-level directory structure based on product model, with directory levels including date / shift / production line codes; Use the MinIO object storage protocol to upload files in shards, and set erasure coding strategies to ensure data reliability; A metadata index table is generated synchronously to record the file physical path, data fingerprint and associated product QR code information.

8. The method for obtaining RF test data by scanning a code according to claim 1, characterized in that: In step S140 , when the storage file is regenerated, differential data migration is used to copy the data blocks related to the changed test items, and the historical versions are associated through a hash chain structure.

9. The method for obtaining RF test data by scanning a code according to claim 8, characterized in that: In step S140, when backing up the previously stored files, the process further includes: Generate a distributed backup log based on blockchain, recording file versions, modification timestamps, and operator identity information; Adopt incremental snapshot technology to back up only changed data blocks, combined with the LZ77 compression algorithm to reduce storage redundancy; Synchronize the backup files to the off-site disaster recovery center and verify their integrity using the SHA-512 hash value.

10. The method for obtaining RF test data by scanning a code according to claim 1, characterized in that: Also included is a test data visualization step: Extract the encrypted test data from the distributed storage system, decrypt it and convert it into JSON format; Push key parameters to the MES system dashboard in real time via the WebSocket protocol; Generate interactive test reports including polar plots, Smith charts, and trend analysis curves, and support PDF / SVG format export.

Citation Information

Patent Citations

  • A method and apparatus for data maintenance and verification based on QR codes

    CN111144526B