Method and device for obtaining WiFi calibration data and WiFi equipment calibration test system
By generating and storing calibration files in WiFi devices, the problem of increasing production line defective rates caused by unified calibration parameters is solved, individualized calibration and data backup are achieved, the defective rate is reduced and startup speed is improved.
Patent Information
- Application Number
- CN202110833224.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-07-22
AI Technical Summary
In the production process of WiFi equipment, because the unified calibration parameters ignore individual differences, the defective rate of the production line increases, and the consistency of the materials and circuit board parameters of each device cannot be guaranteed.
The WiFi calibration file is generated through the calibration tool and stored in a non-erasable preset storage partition. When the WiFi device receives the startup command, it downloads and applies the calibration file from this partition to ensure that the calibration parameters take into account the individuality of the device. .
It effectively avoids the problem of unqualified WiFi indicator testing due to individual differences, reduces the defective rate of the production line, and ensures the safe backup and quick startup of WiFi calibration data.
Smart Images

Figure CN113766554B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of WiFi product testing, and in particular to a method and device for obtaining WiFi calibration data, and a WiFi device calibration test system. Background Art
[0002] Wireless Fidelity (WiFi) is a widely used wireless network transmission technology. Many devices have WiFi chips to support WiFi wireless Internet access. In the production process of WiFi devices, due to individual differences in parts and other reasons, WiFi devices usually need to be calibrated and tested to meet the design expectations of the device. In related technologies, calibration parameters of multiple WiFi devices are usually sampled before production and the average value is calculated. The average value is used as the WiFi calibration parameter for the calibration test of the WiFi device.
[0003] However, the use of unified calibration parameters makes the calibration parameters of each WiFi device the same, ignoring individual differences. It is impossible to guarantee the consistency of the parameter range of related materials of each WiFi device or the consistency of the parameter range of the circuit board, which easily leads to an increase in the defective rate of the production line. Summary of the invention
[0004] Based on this, it is necessary to provide a method and device for obtaining WiFi calibration data and a WiFi equipment calibration test system that can reduce the defect rate of production lines in response to the above technical problems.
[0005] The present application embodiment provides a method for obtaining WiFi calibration data, the method comprising:
[0006] Receiving a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off a WiFi device before performing a WiFi test, and then sends the WiFi startup instruction to the WiFi device;
[0007] In response to the WiFi startup instruction, download a WiFi calibration file from a preset storage partition, wherein the data in the preset storage partition cannot be erased, the WiFi calibration file is generated by a calibration tool calibrating the WiFi device, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition;
[0008] Save the WiFi calibration file into a specified directory;
[0009] The WiFi calibration file is read from the specified directory, and WiFi is started to make the WiFi calibration file effective.
[0010] In one embodiment, downloading the WiFi calibration file from the preset storage partition includes:
[0011] Check whether there is a preset file in the specified directory;
[0012] If the preset file does not exist in the designated directory, the WiFi calibration file is downloaded from the preset storage partition.
[0013] In one embodiment, the method further comprises:
[0014] It is determined that there is a preset identifier in the preset storage partition, and the preset identifier is used to indicate that the WiFi calibration file exists in the preset storage partition. The preset identifier is written by the production line tool after storing the WiFi calibration file in the preset storage partition.
[0015] In one embodiment, the method further comprises:
[0016] The preset file is created in the designated directory, so that the production line tool starts the WiFi test when detecting the presence of the preset file in the designated directory.
[0017] In one embodiment, the method further comprises:
[0018] When it is determined that the preset identifier does not exist in the preset storage partition, a preset calibration file is read from the designated directory, and WiFi is started to make the preset calibration file effective.
[0019] The present application embodiment provides a device for obtaining WiFi calibration data, the device comprising:
[0020] An instruction receiving module, used to receive a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off the WiFi device before performing a WiFi test, and then sends the WiFi startup instruction to the WiFi device;
[0021] A download module, configured to download a WiFi calibration file from a preset storage partition in response to the WiFi startup instruction, wherein the data in the preset storage partition cannot be erased, the WiFi calibration file is generated by a calibration tool calibrating the WiFi device, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition;
[0022] A storage module, used to store the WiFi calibration file in a specified directory;
[0023] The startup module is used to read the WiFi calibration file from the specified directory and start WiFi to make the WiFi calibration file effective.
[0024] The embodiment of the present application provides a WiFi device calibration and testing system, characterized in that the system includes a calibration tool, a production line tool and a WiFi device, wherein the calibration tool and the production line tool are connected via a network, and the production line tool and the WiFi device are connected via a network;
[0025] The calibration tool is used to calibrate the WiFi device and generate a WiFi calibration file;
[0026] The production line tool is used to obtain the WiFi calibration file and store the WiFi calibration file in a preset storage partition, wherein the data in the preset storage partition cannot be erased; send a WiFi startup instruction to the WiFi device;
[0027] The WiFi device is used to receive the WiFi startup instruction sent by the production line tool; in response to the WiFi startup instruction, download the WiFi calibration file from the preset storage partition; store the WiFi calibration file in a specified directory and create a preset file in the specified directory; read the WiFi calibration file from the specified directory and start WiFi to make the WiFi calibration file effective;
[0028] The production line tool is also used to start the WiFi test when detecting that the preset file exists in the designated directory.
[0029] In one embodiment, the production line tool is further used to write a preset identifier into the preset storage partition;
[0030] The WiFi device is also used to detect whether the preset file exists in the specified directory; if the preset file does not exist in the specified directory, detect whether there is a preset identifier in the preset storage partition; when the preset identifier exists in the preset storage partition, download the WiFi calibration file from the preset storage partition.
[0031] In one embodiment, the production line tool is further used to delete the preset file in the designated directory.
[0032] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for obtaining WiFi calibration data provided in any embodiment of the application are implemented.
[0033] The method and apparatus for obtaining WiFi calibration data and the WiFi device calibration test system provided in the embodiments of the present application utilize a calibration tool to calibrate the WiFi device to be tested to generate a WiFi calibration file, and the production line tool stores the WiFi calibration file in a non-erasable preset storage partition. When the WiFi device receives a WiFi startup command sent by the production line tool, it downloads the WiFi calibration file from the preset storage partition and stores it in a specified directory, and then reads the WiFi calibration file from the specified directory and starts WiFi to make the WiFi calibration file effective. Since the WiFi calibration file is generated by calibrating the WiFi device to be tested, the calibration parameters in the WiFi calibration file take into account the individuality of the WiFi device to be tested, and then the WiFi test is performed using the calibration parameters related to the WiFi device itself, which can effectively avoid the problem of WiFi index test failure due to the use of unified calibration parameters due to individual differences in WiFi devices, thereby reducing the production line defect rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a production line tool in one embodiment performing a calibration test on a WiFi device;
[0035] Figure 2 A block diagram of a WiFi device calibration test system in an example;
[0036] Figure 3 A schematic diagram of a flow chart of a method for obtaining WiFi calibration data in one embodiment;
[0037] Figure 4 A schematic diagram of a WiFi device calibration test process in a specific embodiment;
[0038] Figure 5 A structural block diagram of a device for obtaining WiFi calibration data in one embodiment;
[0039] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0041] Figure 1 FIG. 1 is a flow chart of a production line tool in an embodiment performing a calibration test on a WiFi device. Figure 1As shown, the existing WiFi device calibration test process includes: T1-download the Assemble to Order (ATO) version of the WiFi software program, wherein the entire flash memory needs to be completely erased before downloading the ATO version of the WiFi software program; T2-WiFi calibration and generation of the calibration file bdwlan.bin, wherein the WiFi indicators of the ATO version of the WiFi software program are calibrated by the calibration tool, and the calibration tool generates a calibration file bdwlan.bin for the current WiFi software program, and the calibration file bdwlan.bin records the calibration parameters for the current WiFi software program; T3-the production line tool puts bdwlan.bin into a specified directory of the file system, specifically, the production line tool imports the bdwlan.bin generated by the calibration tool into the specified directory of the file system of the current WiFi software program; T4-WiFi test, specifically, the production line tool performs a WiFi indicator test on the calibrated current WiFi software program to detect whether the current WiFi software program is qualified; T5-other device calibration and testing, including the Long Term Evolution of Universal Mobile Communication Technology (Long Term Evolution of Universal Mobile Communication Technology Evolution, LTE) related calibration and testing; T6-upgrade user version. The user version is the software version used by customers after the product leaves the factory. The user version will not erase the pre-specified partitions on the flash memory, such as the Encrypting File System (EFS) partition where LTE-related calibration files exist. When upgrading the user version in T6, the data in the efs partition will not be erased; T7-product leaves the factory. The user version of the WiFi software program obtained after the upgrade can be shipped to customers for use.
[0042] In this embodiment, bdwlan.bin is placed in a specified directory of the file system, and the specified directory of the file system is erasable. Therefore, when T6-upgrades the user version, the bdwlan.bin file will be erased, causing the calibration file bdwlan.bin generated in the T2 process to be lost, making the T2 and T3 processes invalid.
[0043] In view of the above problems, a method for obtaining WiFi calibration data is provided, in which the WiFi calibration file is stored in a non-erasable preset storage partition. When the WiFi is started, the WiFi device downloads the WiFi calibration file from the preset storage partition, thereby avoiding the WiFi calibration file from being erased during the production line process of upgrading the user version, ensuring that the WiFi calibration data will not be lost, and realizing the safe backup of the WiFi calibration data.
[0044] In one embodiment, Figure 2As shown, the present application provides a WiFi device calibration test system, and the method for obtaining WiFi calibration data provided by the present application can be applied to Figure 2 In the application environment shown. The method for obtaining WiFi calibration data is applied to a WiFi device calibration test system. The WiFi device calibration test system includes a calibration tool 102, a production line tool 104 and a WiFi device 106. The calibration tool 102 and the production line tool 104 are connected and communicated through a network, the production line tool 104 and the WiFi device 106 are connected and communicated through a network, and the calibration tool 102 and the WiFi device 106 communicate through the network. The WiFi device 106 is calibrated by the calibration tool 102, and a WiFi calibration file is generated. The production line tool 104 obtains the WiFi calibration file generated by the calibration tool 102, and writes the WiFi calibration file into a preset storage partition, wherein the data in the preset storage partition cannot be erased; the production line tool 104 also sends a WiFi startup instruction to the WiFi device 106, and the WiFi device 106 receives the WiFi startup instruction sent by the production line tool 104. In response to the WiFi startup instruction, the WiFi device 106 downloads the WiFi calibration file from the preset storage partition, stores the WiFi calibration file in a specified directory, and creates a preset file in the specified directory. The WiFi device 106 reads the WiFi calibration file from the specified directory and starts the WiFi to make the WiFi calibration file effective; after the WiFi device 106 is started, if the production line tool 104 detects that there is a preset file in the specified directory, the WiFi indicator test is started. Among them, the calibration tool 102 and the production line tool 104 can be software products installed in various personal computers, laptops, tablet computers and other computer devices, and the WiFi device 106 can be a WiFi chip, WiFi module, etc. used in WiFi products.
[0045] In an embodiment of the present application, the calibration tool 102 is used to calibrate the WiFi device 106 to be tested. The WiFi device 106 to be tested may be, for example, an ATO version of a WiFi chip, a WiFi module, etc. The calibration tool 102 obtains the calibration parameters of the WiFi device 106 and generates a WiFi calibration file, which records the WiFi calibration parameters.
[0046] Exemplarily, the WiFi calibration file may be named, but is not limited to, bdwlan.bin.
[0047] The production line tool 104 is used to write the WiFi calibration file into a preset storage partition where data cannot be erased, and send a WiFi startup command to the WiFi device 106. Since the calibration parameters in the WiFi calibration file have changed, the WiFi needs to be restarted to take effect. Therefore, the production line tool 104 needs to shut down the WiFi first, and then send a WiFi startup command to the WiFi device 106 to start the WiFi.
[0048] Exemplarily, the preset storage partition may be, but is not limited to, a disk partition such as an Original Equipment Manufacturer (OEM) partition. The files in the OEM partition are system backup files required to restore the old version of the operating system in case an unexpected error occurs after the user updates the version and cannot be repaired.
[0049] The WiFi device 106 is used to receive the WiFi startup instruction sent by the production line tool 104. In response to the WiFi startup instruction, the WiFi device 106 downloads the WiFi calibration file from the preset storage partition and stores the WiFi calibration file in the specified directory. After the WiFi device 106 successfully downloads the WiFi calibration file, it also creates a preset file in the specified directory.
[0050] Exemplarily, the designated directory may be, but is not limited to, the file storage path / data / wlan_bin / , and the preset file may be, but is not limited to, named wlan_new.
[0051] By creating a preset file in the specified directory, the following two purposes can be achieved: first, the production line tool 104 is informed that the calibrated WiFi calibration file has taken effect inside the WiFi device 106, and the WiFi test can be performed; second, each time the WiFi device is started, it only needs to determine whether there is a preset file in the specified directory to determine whether the WiFi calibration file needs to be downloaded. If the preset file exists, it is started directly without downloading the WiFi calibration file every time it is started, which saves the time of downloading the WiFi calibration file, thereby shortening the WiFi startup time and ensuring the WiFi startup speed.
[0052] The WiFi device 106 reads the WiFi calibration file from the specified directory and starts WiFi to make the WiFi calibration file effective. The production line tool 106 is also used to start the WiFi test when a preset file is detected in the specified directory. When the production line tool 106 detects that a preset file exists in the specified target, it can be known that the WiFi device 106 has been calibrated and the calibration parameters have been effective in the WiFi device, and the WiFi test can be started. Then, the WiFi indicator test is started, such as testing the transmission power, frequency error, vector error amplitude and other indicators of the WiFi device. Exit the WiFi test after the test is completed. If the production line tool 104 does not detect the preset file in the specified target, exit the WiFi test.
[0053] The WiFi device calibration and testing system provided in the embodiment of the present application calibrates the WiFi device and generates a WiFi calibration file by a calibration tool, so that the calibration parameters in the WiFi calibration file take into account the individuality of the WiFi device to be tested, and then use the calibration parameters related to the WiFi device itself to perform WiFi testing, which can effectively avoid the problem that the use of unified calibration parameters causes WiFi index test failure due to individual differences in WiFi devices, thereby reducing the production line defect rate; by storing the WiFi calibration file in a preset storage partition whose data cannot be erased, when the WiFi is started, the WiFi device downloads the WiFi calibration file from the preset storage partition, thereby avoiding the situation that the WiFi calibration file is erased in the production line process of upgrading the user version, ensuring that the WiFi calibration data will not be lost, and realizing the safe backup of the WiFi calibration data; by creating a preset file in a specified directory after the WiFi device downloads the WiFi calibration file, not only an indication of whether the WiFi test can be started is provided to the production line tool, but also a judgment condition is provided for whether the WiFi device needs to download the WiFi calibration file again when the WiFi test is performed again. When the preset file exists, the WiFi device does not need to download the WiFi calibration file again, saving the time of downloading the WiFi calibration file, thereby ensuring the WiFi startup speed.
[0054] In one embodiment, the production line tool 104 is also used to write a preset identifier into a preset storage partition; the WiFi device 106 is also used to detect whether there is a preset file in the specified directory. If there is no preset file in the specified directory, it detects whether there is a preset identifier in the preset storage partition. When there is a preset identifier in the preset storage partition, the WiFi calibration file is downloaded from the preset storage partition.
[0055] Exemplarily, the preset identifier may be, but is not limited to, a CaliFlag flag.
[0056] In the embodiment of the present application, after the production line tool 104 writes the WiFi calibration file into the preset storage partition, a preset mark can be written into the preset storage partition. The preset mark is used to indicate that the WiFi calibration file has been written into the preset storage partition. When the WiFi device detects the presence of the preset mark, it can be known that the WiFi device has been calibrated and the WiFi calibration file has been stored in the preset storage partition for download. In response to the WiFi startup instruction received from the production line tool 104, the WiFi device 106 first detects whether the preset file is stored in the specified directory. If it exists, it means that the WiFi device has downloaded the WiFi calibration file, and then directly starts the WiFi. If it does not exist, it further detects whether there is a preset mark in the preset storage partition. If there is a preset mark, it means that the WiFi calibration file has been stored in the preset storage partition for download, and the WiFi device 106 downloads the WiFi calibration file from the preset storage partition. If there is no preset mark, the WiFi is directly started. By writing the preset mark into the preset storage partition, the WiFi device is provided with a judgment condition for judging whether the WiFi calibration file is stored in the preset storage partition, which is conducive to avoiding the situation where the WiFi device fails to download the calibration file when the WiFi calibration file is not stored in the preset storage partition, and reduces the probability of WiFi startup failure.
[0057] In one embodiment, the production line tool 104 is also used to delete the preset file in the specified directory. In the embodiment of the present application, after the production line tool 104 stores the WiFi calibration file in the preset storage partition, the preset file in the specified directory can be deleted to indicate that the production line tool has backed up or updated the WiFi calibration file. After that, the production line tool 104 sends a WiFi startup instruction to the WiFi device 106. The WiFi device 106 first determines whether there is a preset file in the specified directory, and decides whether to download the WiFi calibration file based on the judgment result. Since the preset file in the specified target has been deleted, the WiFi device 106 determines that there is no preset file in the specified directory, then downloads the backup or updated WiFi calibration file from the preset storage partition, and recreates the preset file in the specified directory. When the WiFi device needs to be tested repeatedly, since the preset file is newly created in the specified directory, the WiFi device will detect the presence of the preset file in the specified directory when receiving the WiFi startup instruction, and there is no need to download the WiFi calibration file again, saving the time of downloading the WiFi calibration file, thereby improving the WiFi startup efficiency.
[0058] In one embodiment, Figure 3 As shown, a method for obtaining WiFi calibration data is provided. This embodiment mainly applies this method to Figure 2 Take the WiFi device in as an example.
[0059] like Figure 3 As shown, a method for obtaining WiFi calibration data may include the following steps:
[0060] Step 202, receiving a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off the WiFi device before performing a WiFi test, and then sends a WiFi startup instruction to the WiFi device.
[0061] The WiFi startup instruction is used to instruct the WiFi device to start up. For example, the WiFi startup instruction may be a specified string, and the production line tool sends the specified string to the WiFi device to indicate that the WiFi device needs to start up.
[0062] In this embodiment, before performing the WiFi test, the production line tool first turns off the WiFi device and then sends a WiFi startup instruction to the WiFi device.
[0063] Step 204, in response to the WiFi startup instruction, download the WiFi calibration file from the preset storage partition, wherein the data in the preset storage partition cannot be erased, the WiFi calibration file is generated by the calibration tool by calibrating the WiFi device, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition.
[0064] The preset storage partition is a disk partition whose data cannot be erased. For example, the preset storage partition may be an OEM partition.
[0065] Specifically, for the WiFi device to be tested, the calibration tool first calibrates the WiFi device to generate a WiFi calibration file, the production line tool obtains the WiFi calibration file from the calibration tool, then stores the obtained WiFi calibration file in a preset storage partition, and sends a WiFi startup instruction to the WiFi device. After the WiFi device receives the WiFi startup instruction sent by the production line tool, in response to the WiFi startup instruction, the WiFi device downloads the WiFi calibration file from the preset storage partition, wherein the WiFi calibration file is generated after the calibration tool performs parameter calibration on the WiFi device, and the calibration parameters are recorded in the WiFi calibration file.
[0066] Step 206, save the WiFi calibration file into a designated directory.
[0067] The specified directory may be a file storage path on the WiFi device, and the WiFi device reads the required files from the specified directory. For example, the specified directory may be a path / data / wlan_bin / .
[0068] In the embodiment of the present application, after the WiFi device downloads the WiFi calibration file from the preset storage partition, the WiFi calibration file can be stored in a designated directory.
[0069] Step 208, read the WiFi calibration file from the specified directory, and start WiFi to make the WiFi calibration file effective.
[0070] In the embodiment of the present application, the WiFi device can read the WiFi calibration file from the specified directory and start the WiFi to make the WiFi calibration file effective.
[0071] The method for obtaining WiFi calibration data provided in this embodiment uses a calibration tool to calibrate the WiFi device to be tested to generate a WiFi calibration file, and the production line tool stores the WiFi calibration file in an inerasable preset storage partition. When the WiFi device receives the WiFi startup command sent by the production line tool, it downloads the WiFi calibration file from the preset storage partition and stores it in a specified directory, and then reads the WiFi calibration file from the specified directory and starts WiFi to make the WiFi calibration file effective. Since the WiFi calibration file is generated by calibrating the WiFi device to be tested, the calibration parameters in the WiFi calibration file take into account the individuality of the WiFi device to be tested, and then the WiFi test is performed using the calibration parameters related to the WiFi device itself, which can effectively avoid the problem of WiFi index test failure due to the use of unified calibration parameters due to individual differences in WiFi devices, thereby reducing the production line defect rate. In addition, by storing the WiFi calibration file in a data inerasable preset storage partition, when WiFi is started, the WiFi device downloads the WiFi calibration file from the preset storage partition, thereby avoiding the situation where the WiFi calibration file is erased in the production line process of upgrading the user version, ensuring that the WiFi calibration data will not be lost, and realizing the safe backup of the WiFi calibration data.
[0072] In one embodiment, when the WiFi device downloads the WiFi calibration file from the preset storage partition, it can first detect whether there is a preset file in the specified directory. If the preset file does not exist in the specified directory, the WiFi calibration file is downloaded from the preset storage partition.
[0073] In the embodiment of the present application, after the production line tool imports the WiFi calibration file into the preset storage partition, it will delete the preset file in the specified directory and then send a WiFi startup instruction to the WiFi device. After the WiFi device receives the WiFi startup instruction, it responds to the WiFi startup instruction and detects whether there is a preset file in the specified directory. Since the preset file in the specified directory has been deleted by the production line tool, the WiFi device will detect that there is no preset file in the specified directory, and then enter the download process of the WiFi calibration file. As a result, the WiFi device can download a new WiFi calibration file in time after backing up or updating the WiFi calibration file in the preset storage partition, which is conducive to the smooth completion of the WiFi test.
[0074] Furthermore, in one embodiment, before the WiFi device downloads the WiFi calibration file from the preset storage partition, it may also first determine whether there is a preset identifier in the preset storage partition, and the preset identifier is used to indicate that there is a WiFi calibration file in the preset storage partition. The preset identifier is written by the production line tool after storing the WiFi calibration file in the preset storage partition.
[0075] In the embodiment of the present application, after the production line tool imports the WiFi calibration file into the preset storage partition, it can also write a preset mark, such as a CaliFlag mark, into the preset storage partition to indicate that the WiFi calibration file has been written into the preset storage partition. In response to the WiFi startup instruction sent by the production line tool, the WiFi device first detects whether there is a preset file in the specified directory. If there is no preset file, it indicates that the WiFi calibration file needs to be downloaded. Then, the WiFi device detects whether there is a preset mark in the preset storage partition. If it is determined that there is a preset mark in the preset storage partition, it indicates that the WiFi calibration file has been written into the preset storage partition for downloading, and then the WiFi device downloads the WiFi calibration file from the preset storage partition.
[0076] Before the WiFi device downloads the WiFi calibration file from the preset storage partition, it is determined that there is a preset identifier in the preset storage partition for indicating that the WiFi calibration file exists in the preset storage partition. Only then does the WiFi download the WiFi calibration file from the preset storage partition. This helps to avoid the situation where the WiFi device fails to download the calibration file when the WiFi calibration file is not stored in the preset storage partition, thereby reducing the probability of WiFi startup failure.
[0077] In one embodiment, after the WiFi device downloads the WiFi calibration file from the preset storage partition and writes the WiFi calibration file to the specified directory, it can also create a preset file in the specified directory so that the production line tool starts the WiFi test when it detects the presence of the preset file in the specified directory.
[0078] In the embodiment of the present application, by creating a preset file in a specified directory, the following two purposes can be achieved: first, to inform the production line tool that the calibrated WiFi calibration file has taken effect inside the WiFi device and that a WiFi test can be performed. When the production line tool detects the presence of the preset file in the specified directory, the WiFi test is started and the WiFi test process is exited after the test is completed; second, in a scenario where repeated testing is required, if the production line tool has not updated the WiFi calibration file in the preset storage partition, the production line tool will not delete the preset file in the specified directory. The preset file created by the WiFi device will always exist in the specified directory. Each time the WiFi device is started, it only needs to determine whether there is a preset file in the specified directory to determine whether the WiFi calibration file needs to be downloaded. If the preset file exists, it is started directly without the need to download the WiFi calibration file each time it is started, thereby saving the time for downloading the WiFi calibration file, thereby shortening the WiFi startup time and ensuring the WiFi startup speed.
[0079] In one embodiment, when the WiFi device determines that there is no preset identifier in the preset storage partition, it reads the preset calibration file from the designated directory and starts the WiFi to make the preset calibration file effective.
[0080] Among them, the preset calibration file can be a calibration file before updating. For example, the preset calibration file can specifically be a file containing preset calibration parameters. The preset calibration parameters can be, for example, classic values of WiFi calibration parameters. The classic values of WiFi calibration parameters can be the average value calculated by sampling the calibration parameters of multiple WiFi devices.
[0081] In an embodiment of the present application, when the WiFi device determines that there is no preset identifier in the preset storage partition, it indicates that the calibrated WiFi calibration file has not been imported into the preset storage partition. In order to ensure that the WiFi device can start normally, the preset calibration file can be read from the specified directory and the WiFi can be started to make the preset calibration file effective.
[0082] By reading the preset calibration file from the specified directory and starting WiFi to make the preset calibration file effective when it is determined that the preset identifier does not exist in the preset storage partition, the preset calibration file can be read and WiFi can be started when the WiFi calibration file is not imported into the preset storage partition, thereby ensuring that the WiFi device can be started normally and improving the success rate of WiFi startup.
[0083] Figure 4 FIG. 1 is a schematic diagram of a WiFi device calibration test process in a specific embodiment. Figure 4As shown, the calibration tool downloads the ATO version of the WiFi device, performs WiFi calibration on the ATO version of the WiFi device, and generates the calibration file bdwlan.bin. The production line tool writes the bdwlan.bin file to the OEM partition and writes the CaliFlag flag to the OEM partition. After that, the production line tool deletes the file system specified file / data / wlan_bin / wlan_new and enters the WiFi test process. In the WiFi test process, the production line tool needs to turn off WiFi first, and then send a WiFi startup command to the WiFi device. After receiving the WiFi startup instruction, the WiFi device determines whether the / data / wlan_bin / wlan_new file exists, that is, whether the preset file wlan_new exists in the specified directory / data / wlan_bin / . If it exists, WiFi is started. If not, it continues to determine whether the CaliFlag flag exists in the OEM partition. If not, WiFi is started. If it exists, the bdwlan.bin file is read from the OEM partition and saved in the / data / wlan_bin / directory. If the WiFi device fails to read the bdwlan.bin file or fails to save the bdwlan.bin file in the / data / wlan_bin / directory, WiFi is directly started. If the WiFi device successfully reads the bdwlan.bin file and saves it in the / data / wlan_bin / directory, the WiFi device creates the / data / wlan_bin / wlan_new file and then starts WiFi. The production line tool determines whether the / data / wlan_bin / wlan_new file exists. If it does not exist, the WiFi test process is exited. If it exists, it is known that the WiFi has been calibrated and the parameters have taken effect, then the WiFi test is started, and the WiFi test process is exited after the WiFi test is completed. After exiting the WiFi test, the production line tool can also calibrate and test other devices, and then upgrade the user version before shipping the product. Since the data in the / data / wlan_bin / directory will be erased when the user version is upgraded, the bdwlan.bin file is also erased. In this application, the bdwlan.bin file is stored in the OEM partition where the data cannot be erased for backup. After upgrading the user version, the bdwlan.bin file can be downloaded from the OEM partition to ensure that the bdwlan.bin file will not be lost.
[0084] It should be understood that although Figure 3-4The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 3-4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0085] In one embodiment, Figure 5 As shown, a device for obtaining WiFi calibration data is provided, and the device 30 for obtaining WiFi calibration data includes an instruction receiving module 302, a downloading module 304, a storage module 306 and a starting module 308, wherein:
[0086] The instruction receiving module 302 is used to receive a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off the WiFi device before performing a WiFi test, and then sends a WiFi startup instruction to the WiFi device.
[0087] The download module 304 is used to download the WiFi calibration file from the preset storage partition in response to the WiFi startup instruction, wherein the data in the preset storage partition cannot be erased, and the WiFi calibration file is generated by the calibration tool by calibrating the WiFi device, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition.
[0088] The storage module 306 is used to store the WiFi calibration file in a specified directory.
[0089] The startup module 308 is used to read the WiFi calibration file from the specified directory and start the WiFi to make the WiFi calibration file effective.
[0090] In one embodiment, the download module 304 is specifically used for:
[0091] Check if there is a preset file in the specified directory;
[0092] If the preset file does not exist in the specified directory, the WiFi calibration file is downloaded from the preset storage partition.
[0093] In one embodiment, the download module 304 is further configured to:
[0094] It is determined that there is a preset identifier in the preset storage partition. The preset identifier is used to indicate that there is a WiFi calibration file in the preset storage partition. The preset identifier is written by the production line tool after storing the WiFi calibration file in the preset storage partition.
[0095] In one embodiment, the device 30 for acquiring WiFi calibration data further includes:
[0096] The creation module is used to create a preset file in a specified directory so that the production line tool starts the WiFi test when it detects that there is a preset file in the specified directory.
[0097] In one embodiment, the startup module 308 is further configured to:
[0098] When it is determined that the preset identifier does not exist in the preset storage partition, the preset calibration file is read from the specified directory, and WiFi is started to make the preset calibration file effective.
[0099] The device for obtaining WiFi calibration data provided in the embodiment of the present application uses a calibration tool to calibrate the WiFi device to be tested to generate a WiFi calibration file, and the production line tool stores the WiFi calibration file in an inerasable preset storage partition. When the WiFi device receives the WiFi startup command sent by the production line tool, it downloads the WiFi calibration file from the preset storage partition and stores it in a specified directory, and then reads the WiFi calibration file from the specified directory and starts WiFi to make the WiFi calibration file effective. Since the WiFi calibration file is generated by calibrating the WiFi device to be tested, the calibration parameters in the WiFi calibration file take into account the individuality of the WiFi device to be tested, and then the WiFi test is performed using the calibration parameters related to the WiFi device itself, which can effectively avoid the problem of WiFi index test failure due to the individual differences of the WiFi devices using unified calibration parameters, thereby reducing the production line defect rate. In addition, by storing the WiFi calibration file in a data inerasable preset storage partition, when WiFi is started, the WiFi device downloads the WiFi calibration file from the preset storage partition, thereby avoiding the situation where the WiFi calibration file is erased in the production line process of upgrading the user version, ensuring that the WiFi calibration data will not be lost, and realizing the safe backup of the WiFi calibration data.
[0100] For the specific definition of the device for obtaining WiFi calibration data, please refer to the definition of the method for obtaining WiFi calibration data above, which will not be repeated here. Each module in the above-mentioned device for obtaining WiFi calibration data can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0101] In one embodiment, a computer device is provided. The computer device may be a WiFi device including a WiFi chip or a WiFi module. The internal structure diagram thereof may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store WiFi calibration files. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for obtaining WiFi calibration data is implemented.
[0102] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0103] In one embodiment, the apparatus for obtaining WiFi calibration data provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 6 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the device for obtaining WiFi calibration data, such as: Figure 5 The instruction receiving module, downloading module, storage module and startup module shown in the figure. The computer program composed of each program module enables the processor to execute the steps in the method for obtaining WiFi calibration data of each embodiment of the present application described in this specification.
[0104] For example, Figure 6 The computer device shown can be Figure 5The instruction receiving module in the device for obtaining WiFi calibration data shown in the figure performs the step of receiving the WiFi startup instruction sent by the production line tool. The computer device can execute the step of downloading the WiFi calibration file from the preset storage partition in response to the WiFi startup instruction through the download module, wherein the data in the preset storage partition cannot be erased, and the WiFi calibration file is generated by the calibration tool for calibrating the WiFi device to be tested. The computer device can execute the step of storing the WiFi calibration file in the specified directory through the storage module. The computer device can execute the step of reading the WiFi calibration file from the specified directory and starting WiFi to make the WiFi calibration file effective through the startup module.
[0105] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: receiving a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off the WiFi device before performing a WiFi test, and then sends a WiFi startup instruction to the WiFi device; in response to the WiFi startup instruction, downloading a WiFi calibration file from a preset storage partition, wherein the data in the preset storage partition is not erasable, the WiFi calibration file is generated by the calibration tool by calibrating the WiFi device, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition; storing the WiFi calibration file in a specified directory; reading the WiFi calibration file from the specified directory, and starting WiFi to make the WiFi calibration file effective.
[0106] In one embodiment, when the processor executes the computer program, the following steps are further implemented: detecting whether there is a preset file in the specified directory; if there is no preset file in the specified directory, downloading the WiFi calibration file from the preset storage partition.
[0107] In one embodiment, the processor further implements the following steps when executing the computer program: if there is no preset file in the specified directory, before downloading the WiFi calibration file from the preset storage partition, first determine whether there is a preset identifier in the preset storage partition, and the preset identifier is used to indicate that there is a WiFi calibration file in the preset storage partition. The preset identifier is written by the production line tool after storing the WiFi calibration file in the preset storage partition.
[0108] In one embodiment, when the processor executes the computer program, the following steps are also implemented: creating a preset file in a specified directory, so that the production line tool starts the WiFi test when detecting the presence of the preset file in the specified directory.
[0109] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when it is determined that there is no preset identifier in the preset storage partition, a preset calibration file is read from a specified directory, and WiFi is started to make the preset calibration file effective.
[0110] The computer device provided in the embodiment of the present application uses a calibration tool to calibrate the WiFi device to be tested to generate a WiFi calibration file, and the production line tool stores the WiFi calibration file in an inerasable preset storage partition. When the WiFi device receives the WiFi startup command sent by the production line tool, it downloads the WiFi calibration file from the preset storage partition and stores it in a specified directory, and then reads the WiFi calibration file from the specified directory and starts WiFi to make the WiFi calibration file effective. Since the WiFi calibration file is generated by calibrating the WiFi device to be tested, the calibration parameters in the WiFi calibration file take into account the individuality of the WiFi device to be tested, and then the WiFi test is performed using the calibration parameters related to the WiFi device itself, which can effectively avoid the problem of WiFi index test failure due to the use of unified calibration parameters due to individual differences in WiFi devices, thereby reducing the production line defect rate. In addition, by storing the WiFi calibration file in a data inerasable preset storage partition, when WiFi is started, the WiFi device downloads the WiFi calibration file from the preset storage partition, thereby avoiding the situation where the WiFi calibration file is erased in the production line process of upgrading the user version, ensuring that the WiFi calibration data will not be lost, and realizing the safe backup of the WiFi calibration data.
[0111] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: receiving a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off the WiFi device before performing a WiFi test, and then sends a WiFi startup instruction to the WiFi device; in response to the WiFi startup instruction, downloading a WiFi calibration file from a preset storage partition, wherein the data in the preset storage partition is not erasable, the WiFi calibration file is generated by the calibration tool by calibrating the WiFi device, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition; storing the WiFi calibration file in a specified directory; reading the WiFi calibration file from the specified directory, and starting WiFi to make the WiFi calibration file effective.
[0112] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: detecting whether there is a preset file in the specified directory; if there is no preset file in the specified directory, downloading the WiFi calibration file from the preset storage partition.
[0113] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if there is no preset file in the specified directory, before downloading the WiFi calibration file from the preset storage partition, first determine whether there is a preset identifier in the preset storage partition, and the preset identifier is used to indicate that there is a WiFi calibration file in the preset storage partition. The preset identifier is written by the production line tool after storing the WiFi calibration file in the preset storage partition.
[0114] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: creating a preset file in a specified directory, so that the production line tool starts the WiFi test when detecting the presence of the preset file in the specified directory.
[0115] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when it is determined that there is no preset identifier in the preset storage partition, a preset calibration file is read from a specified directory, and WiFi is started to make the preset calibration file effective.
[0116] The computer-readable storage medium provided in the embodiment of the present application uses a calibration tool to calibrate the WiFi device to be tested to generate a WiFi calibration file, and the production line tool stores the WiFi calibration file in an inerasable preset storage partition. When the WiFi device receives the WiFi startup command sent by the production line tool, it downloads the WiFi calibration file from the preset storage partition and stores it in a specified directory, and then reads the WiFi calibration file from the specified directory and starts WiFi to make the WiFi calibration file effective. Since the WiFi calibration file is generated by calibrating the WiFi device to be tested, the calibration parameters in the WiFi calibration file take into account the individuality of the WiFi device to be tested, and then the WiFi test is performed using the calibration parameters related to the WiFi device itself, which can effectively avoid the problem of WiFi index test failure due to the use of unified calibration parameters due to individual differences in WiFi devices, thereby reducing the production line defect rate. In addition, by storing the WiFi calibration file in a data inerasable preset storage partition, when WiFi is started, the WiFi device downloads the WiFi calibration file from the preset storage partition, thereby avoiding the situation where the WiFi calibration file is erased in the production line process of upgrading the user version, ensuring that the WiFi calibration data will not be lost, and realizing the safe backup of the WiFi calibration data.
[0117] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).
[0118] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for obtaining WiFi calibration data, characterized in that: include: Receiving a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off a WiFi device before performing a WiFi test, and then sends the WiFi startup instruction to the WiFi device; In response to the WiFi startup instruction, detecting whether there is a preset file in the specified directory, wherein the preset file is used to indicate that a WiFi calibration file already exists in the specified directory; In response to the absence of the preset file in the designated directory, detecting whether there is a preset identifier in the preset storage partition, the preset identifier being used to indicate that the WiFi calibration file exists in the preset storage partition, and the preset identifier being written by the production line tool after storing the WiFi calibration file in the preset storage partition; In the case where it is determined that the preset identifier exists in the preset storage partition, downloading a WiFi calibration file from the preset storage partition, wherein the data in the preset storage partition cannot be erased, the WiFi calibration file is generated by the calibration tool by calibrating the WiFi device, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition; Save the WiFi calibration file into a specified directory; Read the WiFi calibration file from the specified directory, and start WiFi to make the WiFi calibration file effective; In response to the presence of the preset file in the designated directory, WiFi is directly started.
2. The method for obtaining WiFi calibration data according to claim 1, characterized in that: The method further comprises: The preset file is created in the designated directory, so that the production line tool starts the WiFi test when detecting the presence of the preset file in the designated directory.
3. The method for obtaining WiFi calibration data according to claim 1, characterized in that: The method further comprises: When it is determined that the preset identifier does not exist in the preset storage partition, a preset calibration file is read from the designated directory, and WiFi is started to make the preset calibration file effective.
4. A device for obtaining WiFi calibration data, characterized in that: include: An instruction receiving module, used to receive a WiFi startup instruction sent by a production line tool, wherein the production line tool first turns off the WiFi device before performing a WiFi test, and then sends the WiFi startup instruction to the WiFi device; A download module, configured to detect, in response to the WiFi startup instruction, whether there is a preset file in the specified directory, wherein the preset file is used to indicate that a WiFi calibration file already exists in the specified directory; in response to the absence of the preset file in the specified directory, detect whether there is a preset identifier in the preset storage partition, wherein the preset identifier is used to indicate that the WiFi calibration file exists in the preset storage partition, and the preset identifier is written by the production line tool after the WiFi calibration file is stored in the preset storage partition; if it is determined that the preset identifier exists in the preset storage partition, download the WiFi calibration file from the preset storage partition, wherein the data in the preset storage partition cannot be erased, and the WiFi calibration file is generated by the calibration tool when the WiFi device is calibrated, and the production line tool obtains the WiFi calibration file from the calibration tool and stores it in the preset storage partition; A storage module, used to store the WiFi calibration file in a specified directory; A startup module is used to read the WiFi calibration file from the designated directory and start WiFi to make the WiFi calibration file effective; and, in response to the presence of the preset file in the designated directory, directly start WiFi.
5. A WiFi device calibration test system, characterized in that: The system includes a calibration tool, a production line tool and a WiFi device, wherein the calibration tool is connected to the production line tool via a network, and the production line tool is connected to the WiFi device via a network; The calibration tool is used to calibrate the WiFi device and generate a WiFi calibration file; The production line tool is used to obtain the WiFi calibration file and store the WiFi calibration file in a preset storage partition, wherein the data in the preset storage partition cannot be erased; send a WiFi startup instruction to the WiFi device; The WiFi device is used to receive the WiFi startup instruction sent by the production line tool; in response to the WiFi startup instruction, detect whether there is a preset file in the specified directory, wherein the preset file is used to indicate that a WiFi calibration file already exists in the specified directory; in response to the absence of the preset file in the specified directory, detect whether there is a preset identifier in the preset storage partition, wherein the preset identifier is used to indicate that the WiFi calibration file exists in the preset storage partition, and the preset identifier is written by the production line tool after storing the WiFi calibration file in the preset storage partition; if it is determined that the preset identifier exists in the preset storage partition, download the WiFi calibration file from the preset storage partition; store the WiFi calibration file in the specified directory, and create a preset file in the specified directory; read the WiFi calibration file from the specified directory, and start WiFi to make the WiFi calibration file effective; in response to the presence of the preset file in the specified directory, directly start WiFi; The production line tool is also used to start the WiFi test when detecting that the preset file exists in the designated directory.
6. The WiFi device calibration test system according to claim 5, characterized in that: The production line tool is also used to delete the preset file in the designated directory.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for obtaining WiFi calibration data according to any one of claims 1 to 3 are implemented.
