Chip calibration methods, apparatus, computer equipment and storage media
By performing initial power calibration on the chip's rate module and saving relative power data, the problems of error and limited storage space in the chip manufacturing process are solved, achieving efficient chip calibration, reducing repetitive calibration operations, and improving efficiency and storage utilization.
Patent Information
- Application Number
- CN202211351554.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-10-31
AI Technical Summary
Because chips are affected by factors such as design, manufacturing and packaging during the production process, errors may occur during operation. In addition, some chips do not have erasable and rewritable memory, but only carry efuse memory, which limits the storage space for calibration data. Therefore, multiple calibrations need to be performed efficiently within a limited space.
By performing power calibration on the rate module of the target chip at the first transmission rate, a first power calibration word is obtained, and the relative power is determined. The first power calibration word and the relative power are saved, and the power calibration word at other transmission rates is calculated using these data, thus reducing the need for repeated calibration at each transmission rate.
This approach reduces calibration items, improves calibration efficiency, and saves storage space and time without affecting chip functionality.
Smart Images

Figure CN115691630B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a chip calibration method, apparatus, computer equipment, and storage medium. Background Technology
[0002] Due to factors such as design, manufacturing, and packaging during chip production, errors may occur during chip operation. Therefore, chip calibration is necessary to ensure its proper functioning.
[0003] Currently, the usual practice is to calibrate the chip and then store the calibration data in the chip's erasable and rewritable memory.
[0004] However, some chips do not have encapsulated erasable memory, but only carry an electrically programmable fuse (EPF). Since the EPF has a storage space of 512 bits, and calibration data needs to be stored and multiple calibrations need to be supported within the limited storage space, this requires efficient calibration of the chip. Summary of the Invention
[0005] This application provides a chip calibration method, apparatus, computer device, and storage medium, which eliminates the need to calibrate every transmission rate in the rate module. This reduces calibration items and improves calibration efficiency without affecting chip functionality. The technical solution is as follows:
[0006] On the one hand, a chip calibration method is provided, the method comprising:
[0007] Under the first standard, the power of the rate module in the target chip is calibrated at the first transmission rate. When the rate module reaches the first desired power at the first transmission rate, the first power calibration word corresponding to the first transmission rate is obtained.
[0008] Determine the relative power between the second desired power and the first desired power of the rate module at the second transmission rate;
[0009] Save the first calibration data, which includes the first power calibration word and the relative power.
[0010] On the other hand, a chip calibration apparatus is provided, the apparatus comprising:
[0011] The calibration module is used to calibrate the power of the rate module in the target chip at the first transmission rate under the first standard. When the rate module reaches the first expected power at the first transmission rate, the first power calibration word corresponding to the first transmission rate is obtained.
[0012] A first determining module is used to determine the relative power between the second desired power and the first desired power of the rate module at the second transmission rate;
[0013] A first storage module is used to store first calibration data, which includes the first power calibration word and the relative power.
[0014] In some embodiments, the apparatus further includes:
[0015] The second determining module is configured to determine, based on the first power calibration word and the relative power, a second power calibration word when the rate module reaches the second desired power at the second transmission rate.
[0016] In some embodiments, the first power calibration word, the relative power, and the second power calibration word conform to the following formula:
[0017] a = 20log(x / y); where a represents the relative power; x represents the first power calibration word; and y represents the second power calibration word.
[0018] In some embodiments, the second expected power is the expected power of the rate module at the second transmission rate under the first standard; or, the second expected power is the expected power of the rate module at the second transmission rate under the second standard, wherein the second standard and the first standard are of the same type of calibration standard, and the calibration result of the rate module under the second standard is determined by the calibration result of the rate module under the first standard.
[0019] In some embodiments, the first calibration data is a calibration result for a first channel; the adjacent channels of the first channel use the same calibration result as the first channel; the number of adjacent channels of the first channel is one or more, and the frequency difference between the adjacent channels of the first channel and the first channel is within a set range.
[0020] In some embodiments, the apparatus further includes:
[0021] The third determining module is used to determine, based on the first power calibration word, the power difference between the power of the rate module at the first transmission rate and the first expected power in the second channel, and the power difference is used to determine the calibration result for the second channel;
[0022] The second storage module is used to store the power difference.
[0023] In some embodiments, the apparatus further includes:
[0024] The fourth determining module is used to determine the calibration result for the second channel based on the power difference and the first power calibration word.
[0025] In some embodiments, the power difference, the first power calibration word, and the calibration result for the second channel conform to the following formula:
[0026] d = 20log(p / q); where d represents the power difference; p represents the first power calibration word; and q represents the calibration result for the second channel.
[0027] In some embodiments, the neighboring channels of the second channel adopt the same calibration result as the second channel; the number of neighboring channels of the second channel is one or more, and the frequency difference between the neighboring channels of the second channel and the second channel is within a set range.
[0028] In some embodiments, the first storage module is used to determine the difference between the historical power calibration word and the first power calibration word as a calibration word difference. The historical power calibration word is the power calibration word obtained when the rate module reaches the first expected power at the first transmission rate after calibrating the power of the rate module at the first transmission rate within a historical time period. If the calibration word difference is not less than the calibration word change threshold, the first calibration data is stored.
[0029] In some embodiments, the apparatus further includes:
[0030] The third storage module is used to store the calibration word difference when the calibration word difference is less than the calibration word change threshold.
[0031] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded and executed by the processor to implement the chip calibration method in the embodiments of this application.
[0032] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the at least one computer program being loaded and executed by a processor to implement the chip calibration method as described in the embodiments of this application.
[0033] On the other hand, a computer program product is provided, including a computer program that is executed by a processor to implement the chip calibration method provided in the embodiments of this application.
[0034] This application provides a chip calibration method. It involves calibrating the power of a rate module in a target chip at a first transmission rate. When the rate module reaches a first desired power at the first transmission rate, a first power calibration word corresponding to that first transmission rate is obtained. Then, the relative power between the second desired power and the first desired power at a second transmission rate is determined. The first power calibration word and the relative power, i.e., the first calibration data, can then be saved. The power calibration word for when the rate module reaches the corresponding desired power at other transmission rates can be determined using the relative power. This eliminates the need to calibrate the power of the rate module at each transmission rate to the desired power corresponding to that transmission rate, thus reducing calibration items and improving calibration efficiency without affecting chip functionality. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is a schematic diagram of the implementation environment of a chip calibration method provided in the embodiments of this application;
[0037] Figure 2 This is a flowchart of a chip calibration method provided according to an embodiment of this application;
[0038] Figure 3 This is a flowchart of another chip calibration method provided according to an embodiment of this application;
[0039] Figure 4 This is a block diagram of a chip calibration device provided according to an embodiment of this application;
[0040] Figure 5 This is a block diagram of another chip calibration device provided according to an embodiment of this application;
[0041] Figure 6 This is a structural block diagram of a terminal provided according to an embodiment of this application. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0043] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.
[0044] In this application, the term "at least one" means one or more, and "multiple" means two or more.
[0045] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the chips and chip parameters involved in this application were obtained under fully authorized conditions.
[0046] The following is an explanation of the terms used in this application.
[0047] One-time programmable fuse (efuse): It usually has a small capacity and can be used to store repair data or chip information, such as the chip's power supply voltage, chip version number, or production date.
[0048] First power calibration word: The power calibration word obtained when the terminal calibrates the power of the rate module of the target chip at the first transmission rate and the rate module reaches the first expected power at the first transmission rate.
[0049] First expected power: The theoretical power that the rate module can achieve at various transmission rates. The expected power that the rate module can achieve varies at different transmission rates.
[0050] Relative power: With the first expected power at the first transmission rate as a reference, for any second transmission rate of the target chip's rate module, the difference between the absolute value of the second expected power corresponding to the second transmission rate and the first expected power corresponding to the first transmission rate is the relative power of the second transmission rate. The relative power is the theoretical difference in power achieved by the rate module at different transmission rates.
[0051] Historical power calibration word: The power calibration word obtained when the rate module of the target chip reaches the first desired power at the first transmission rate within a historical time period.
[0052] Power difference: The difference between the power of the rate module at the first transmission rate and the first desired power in the second channel.
[0053] Calibration word difference: The difference between the historical power calibration word and the first power calibration word.
[0054] The chip calibration method provided in this application can be executed by a computer device. In some embodiments, the computer device is a terminal. Figure 1 This is a schematic diagram illustrating the implementation environment of a chip calibration method according to an embodiment of this application. See also... Figure 1 The implementation environment specifically includes: a PC (Personal Computer) 101, an RF (Radio Frequency) test instrument 102, and a DUT (Device Under Test) 103. The PC 101 can be connected to the RF test instrument 102 via a wireless network or a wired network.
[0055] PC101 can be used with tablets, laptops, desktop computers, etc., but is not limited to these. PC101 installs and runs applications that support chip calibration.
[0056] The RF Comprehensive Test Instrument 102 is used for radio frequency performance testing on wireless product production lines. It can be used for radio frequency performance testing of products such as WIFI, Bluetooth, and ZigBee in non-signaling mode. It features easy deployment and use, accurate testing, high testing efficiency, and low cost.
[0057] The DUT103 can be used in smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, etc., but is not limited to these devices that have a chip installed to be calibrated.
[0058] In some embodiments, the PC serves as the control terminal for chip calibration and provides an interactive interface for communication with the user. The PC connects to the RF test instrument via a wired or wireless network and to the DUT (Device Under Test) via a USB (Universal Serial Bus) interface. The DUT contains the chip to be calibrated. The RF test instrument is connected to the chip via an RF cable. When the chip calibration system is running, the user can calibrate the chip using the RF test instrument, and the calibration results are stored in the chip's efuse. The chip calibration results can also be transferred to the PC via USB.
[0059] Figure 2 This is a flowchart of a chip calibration method provided according to an embodiment of this application, such as... Figure 2 As shown in the illustration, this application embodiment uses execution by a terminal as an example. The method includes the following steps:
[0060] 201. The terminal calibrates the power of the rate module in the target chip at the first transmission rate under the first standard. When the rate module reaches the first desired power at the first transmission rate, the terminal obtains the first power calibration word corresponding to the first transmission rate.
[0061] In this embodiment, due to various factors affecting the chip's manufacturing process, errors may occur during operation. Therefore, chip calibration is necessary to ensure its normal operation. When calibrating the target chip, the terminal needs to calibrate multiple calibration standards separately. This embodiment uses the first standard as an example to illustrate the calibration process. This calibration standard refers to the communication standard that the target chip to be calibrated must meet.
[0062] The target chip includes multiple modules, such as a rate module, a channel module, and a storage module, to implement different functions. The terminal can calibrate the power of the rate module in the target chip under a first standard. When the rate module reaches a preset first desired power at a first transmission rate, a first power calibration word is obtained. The first transmission rate can be any of several transmission rates available to the rate module. The first desired power is the power that the rate module is expected to calibrate to at that first transmission rate. The first power calibration word represents parameters such as voltage and current corresponding to the rate module reaching the first desired power at the first transmission rate. By calibrating the power of the rate module in the target chip under the first standard, the function of the rate module can be properly implemented, thereby ensuring the normal operation of the chip.
[0063] 202. The terminal determines the relative power between the second desired power and the first desired power at the second transmission rate.
[0064] In this embodiment, when calibrating the power of the rate module, since the rate module includes multiple transmission rates, calibrating the power of each transmission rate to the expected power corresponding to that transmission rate would consume a significant amount of calibration time, reducing calibration efficiency. Therefore, the terminal can determine multiple relative powers to reduce calibration items, i.e., not calibrating all transmission rates in the rate module. For any second transmission rate, the terminal can use the first expected power corresponding to the first transmission rate as a reference to determine the difference between the absolute value of the expected power corresponding to the second transmission rate and the first expected power of the first transmission rate, i.e., the relative power. Here, the second transmission rate is any transmission rate other than the first transmission rate among the multiple transmission rates. Then, based on the relative power of the second transmission rate, the terminal can determine the actual power of the rate module when it reaches that transmission rate, enabling the calibration result to be obtained based on the relative power of the transmission rate. This eliminates the need to calibrate the power of each transmission rate to the expected power corresponding to that transmission rate, reducing calibration items and thus improving calibration efficiency.
[0065] 203. The terminal saves the first calibration data, which includes the first power calibration word and the relative power.
[0066] In this embodiment, the terminal can save the calibration result corresponding to the first transmission rate of the rate module under the first standard, i.e., the first calibration data. Optionally, the terminal can save the first calibration data in the memory of the target chip. This memory can be an erasable / rewritable memory or a one-time use memory; this embodiment uses efuse as an example. Since efuse is a one-time use memory with limited storage space, after calibrating the power of the rate module, the terminal does not need to store all calibration results, but only needs to store the first power calibration word and multiple relative powers. When the terminal determines the power calibration word when the rate module reaches the corresponding expected power at other transmission rates, it can calculate the power calibration word when reaching the corresponding expected power at that transmission rate simply by using the first power calibration word and the relative power at that transmission rate. By saving the first power calibration word and the relative power, it is not necessary to store all calibration results, thereby reducing storage space usage.
[0067] This application provides a chip calibration method. It involves calibrating the power of a rate module in a target chip at a first transmission rate. When the rate module reaches a first desired power at the first transmission rate, a first power calibration word corresponding to that first transmission rate is obtained. Then, the relative power between the second desired power and the first desired power at a second transmission rate is determined. The first power calibration word and the relative power, i.e., the first calibration data, can then be saved. The power calibration word for when the rate module reaches the corresponding desired power at other transmission rates can be determined using the relative power. This eliminates the need to calibrate the power of the rate module at each transmission rate to the desired power corresponding to that transmission rate, thus reducing calibration items and improving calibration efficiency without affecting chip functionality.
[0068] Figure 3 This is a flowchart of another chip calibration method provided according to an embodiment of this application, such as... Figure 3 As shown in the illustration, this application embodiment uses execution by a terminal as an example. The method includes the following steps:
[0069] 301. The terminal calibrates the power of the rate module in the target chip at the first transmission rate under the first standard. When the rate module reaches the first expected power at the first transmission rate, the terminal obtains the first power calibration word corresponding to the first transmission rate.
[0070] In this embodiment, taking a Wi-Fi chip as an example, Wi-Fi chips have multiple calibration standards, such as 802.11b, 802.11g, 802.11n, and 802.11ax. Among them, 802.11n can be divided into 20MHz and 40MHz bandwidth standards. Taking any of the above standard standards as an example, the calibration process of the target chip will be described.
[0071] The target chip comprises multiple modules implementing different functions. Taking the power calibration of the rate module within the target chip as an example, the terminal adjusts the power of the rate module by adjusting parameters such as voltage and current. It then determines the first power calibration word when the rate module reaches a preset first desired power at a first transmission rate, thereby calibrating the power of the rate module. This first power calibration word refers to the voltage, current, and other parameters corresponding to when the rate module reaches the first desired power at the first transmission rate. By calibrating the power of the rate module of the target chip under the first standard, the function of the rate module can be realized normally, thus ensuring the normal operation of the chip.
[0072] In some embodiments, since there is a certain correlation between multiple calibration standards, the terminal can calculate the calibration result of the second standard based on the calibration result of the first standard, so that the terminal does not need to calibrate the second standard again. Here, the second standard and the first standard are of the same type of calibration standard, and the calibration result of the rate module under the second standard can be determined by the calibration result of the rate module under the first standard. This allows the calibration result of the same type of standard to be obtained based on the calibration result of the first standard, eliminating the need to calibrate all calibration standards, reducing calibration items, and improving calibration efficiency.
[0073] For example, taking a Wi-Fi chip as an example, the calibration standards for this chip include 802.11b, 802.11g, 802.11n_20M, 802.11n_40M, and 802.11ax. Since the terminal can calculate the calibration results for calibration standards 802.11g and 802.11ax based on the capacitance parameters, resistance parameters, and chip characteristics of the chip, and using the calibration results of calibration standard 802.11n, it can determine that calibration standards 802.11g and 802.11ax are the second standard, while calibration standard 802.11n is the first standard. Calibration standards 802.11g, 802.11ax, and 802.11n belong to the same type of calibration standard. Therefore, the terminal only needs to calibrate 802.11b, 802.11n_20M, and 802.11n_40M. Taking the calibration of the power of the rate module of the chip as an example, once the terminal determines the calibration result of the power of the rate module in the chip under calibration standard 802.11n, the terminal can obtain the calibration result of the power of the rate module under calibration standard 802.11g and calibration standard 802.11ax based on the calibration result. It should be noted that due to the differences in the capacitance parameters, resistance parameters, and chip characteristics of the chip, the correlation between different calibration standards is not entirely the same. Therefore, this application embodiment does not limit the method of calculating the calibration result of the second standard from the calibration result of the first standard.
[0074] 302. The terminal determines the relative power between the second desired power and the first desired power at the second transmission rate.
[0075] In this embodiment, after determining the first calibration standard for the target chip, the terminal knows that the expected power of the rate module is different at different transmission rates under this first standard. Therefore, the terminal can first calibrate the power of the rate module at the first transmission rate to obtain a first power calibration word. Then, using the first expected power corresponding to the first transmission rate as a reference, that is, using the theoretically achieved power at the first transmission rate as a reference, the terminal determines the difference between the absolute value of the second expected power corresponding to the second transmission rate and the first expected power at the first transmission rate. Then, based on the relative power at the second transmission rate and the first power calibration word, the terminal can obtain the power calibration word when the second expected power is achieved at the second transmission rate. Here, the second transmission rate is any transmission rate other than the first transmission rate among multiple transmission rates. By determining multiple relative powers, it is possible to obtain the power calibration word corresponding to other transmission rates without calibrating the power of other transmission rates in the rate module to the expected power corresponding to the transmission rate, thereby reducing calibration items and improving calibration efficiency.
[0076] For example, taking the first standard 802.11b as an example, the rate module under this first standard includes four transmission rates. The expected power corresponding to the above four transmission rates are 20 dBm, 19 dBm, 18 dBm, and 17 dBm, respectively. Using the first expected power corresponding to the first transmission rate as a reference, that is, using 20 dBm as a reference, the terminal can obtain the relative power of the other transmission rates as -1 dBm, -2 dBm, and -3 dBm, respectively.
[0077] It should be noted that the terminal can also directly obtain multiple stored relative power values based on the chip model to further improve the chip calibration efficiency.
[0078] 303. The terminal saves the first calibration data, which includes the first power calibration word and the relative power.
[0079] In this embodiment, since efuse is a 512-bit one-time memory that cannot be erased or rewritten, after storing the necessary information of the chip, only about 208 bits may remain for storing calibration results. The relative power occupies relatively little storage space, allowing for multiple calibrations. Therefore, the terminal only needs to store the first power calibration word and the relative power. When the terminal wants to determine the power calibration word when the rate module reaches the corresponding expected power at other transmission rates, it only needs to calculate the power calibration word when the rate module reaches the expected power corresponding to that transmission rate by combining the first power calibration word and the relative power at that transmission rate. By saving the first power calibration word and the relative power, it is not necessary to store all calibration results, thereby reducing storage space usage.
[0080] In some embodiments, after the rate module reaches the first desired power at the first transmission rate, the terminal does not need to perform recalibration for other transmission rates in the rate module. Correspondingly, for any second transmission rate in the rate module, the terminal can determine the power calibration word (i.e., the second power calibration word) when the rate module reaches the second desired power at that second transmission rate, based on the relative power corresponding to that second transmission rate and the first power calibration word. The second power calibration word refers to parameters such as voltage and current corresponding to the rate module reaching the second desired power at the second transmission rate. By determining the second power calibration word based on the relative power and the first power calibration word, it is not necessary to calibrate the power of each transmission rate in the rate module to the desired power corresponding to that transmission rate, reducing calibration items and improving calibration efficiency.
[0081] It should be noted that the second expected power can be the expected power of the rate module under the first standard and the second transmission rate, or it can be the expected power of the rate module under the second standard and the second transmission rate. Therefore, the terminal can obtain the calibration result of the rate module under the same standard and the second transmission rate, or it can obtain the calibration result of the rate module under the same type of calibration standard under the first standard and the second transmission rate.
[0082] In some embodiments, the terminal may determine the second power calibration word when the rate module reaches the second desired power at the second transmission rate by using the following formula (1).
[0083] a = 20log(x / y) (1)
[0084] Where a represents the relative power of the second transmission rate; x represents the first power calibration word when the rate module reaches the first desired power at the first transmission rate; and y represents the second power calibration word when the rate module reaches the second desired power at the second transmission rate.
[0085] For example, taking calibration standard 802.11b as an example, the first expected power corresponding to the first transmission rate is 20 dBm. For any second transmission rate, the second expected power corresponding to the second transmission rate is 18 dBm. Then the terminal can determine that the relative power of the second transmission rate is -2 dBm. Assuming that the first expected power preset to be reached by the rate module at the first transmission rate is 22 dBm, then the terminal can obtain the second power calibration word when the rate module reaches the second expected power at the second transmission rate through the above formula (1).
[0086] It should be noted that due to factors such as human error or hardware modifications, the calibration results may not be accurate, and the terminal can perform multiple calibrations on the target chip. Since the target chip's memory has limited storage space, and the difference between multiple calibration results occupies less storage space than the total calibration results from multiple calibrations, the terminal can obtain the difference between the historical power calibration word and the first power calibration word (i.e., the calibration word difference), and then save different calibration results based on the relationship between the calibration word difference and the calibration word change threshold. The historical power calibration word is the power calibration word obtained when the rate module reaches the first desired power at the first transmission rate after calibration of the rate module's power at the first transmission rate within a historical time period. Accordingly, if the calibration word difference is not less than the calibration word change threshold, the terminal saves the first calibration data. Alternatively, if the calibration word difference is less than the calibration word change threshold, the terminal saves the calibration word difference. By determining the difference between the historical power calibration word and the first power calibration word, different calibration results can be stored based on this difference, thereby improving storage efficiency.
[0087] For example, the terminal obtains a historical power calibration word of 71456, and after calibrating the power of the rate module at the first transmission rate, the first power calibration word obtained is 71450. The terminal can determine that the calibration word difference between the historical power calibration word and the first power calibration word is 6. Assuming the calibration word change threshold is 10, and this calibration word difference is less than the calibration word change threshold, then the terminal can only store this calibration word difference, that is, store 6 in the target chip's efuse.
[0088] It should be noted that both the rate module and channel module of the target chip need to be calibrated. Accordingly, when calibrating the target chip, under the first standard, the terminal calibrates the power of the rate module of the target chip at the first transmission rate by executing steps 301 to 303 above, and obtains the calibration result for the first channel, i.e., the first power calibration word. Then, the terminal can obtain the calibration result of the target chip under the second channel by executing step 304 below.
[0089] 304. Based on the first power calibration word corresponding to the first channel, the terminal determines the power difference between the power of the rate module at the first transmission rate and the first expected power under the second channel. The power difference is used to determine the calibration result for the second channel.
[0090] In this embodiment, the terminal obtains the calibration result of the target chip under the first standard in the first channel, i.e., the first calibration data, through steps 301 to 303 described above. Then, the terminal can calculate the calibration result for the second channel based on the calibration result of the first channel. Since the calibration result occupies a larger storage space than the power difference, the terminal can retain the power difference between other channels and the first channel to reduce storage space usage. By determining the power difference, the calibration results of other channels can be determined based on this power difference, eliminating the need to calibrate the power of the rate module in all channels, reducing calibration items, and improving calibration efficiency.
[0091] It should be noted that, taking the channel module as divided into high channel, medium channel, and low channel as an example, each channel category includes at least one channel. Taking any channel in the medium channel as an example, the first calibration data is the calibration result for that first channel. The medium channel includes at least one channel, and the other channels in the medium channel are the adjacent channels of the first channel. The number of adjacent channels can be one or more, and the calibration results of the adjacent channels are consistent with the calibration results of the first channel. The frequency difference between the adjacent channels and the first channel is within a set range.
[0092] For example, taking a Wi-Fi chip as an example, the calibration standards for this chip include 802.11b, 802.11g, 802.11n_20M, 802.11n_40M, and 802.11ax. This chip's calibration standards generally support 13 channels, where channels 1-4 are low channels, channels 5-8 are medium channels, and channels 9-13 are high channels. The first channel belongs to the medium channel category. Taking channel 6 as an example, then channels 5, 7, and 8 in the medium channel category are adjacent channels to channel 6. That is, the calibration results of channels 5, 7, and 8 are consistent with the calibration results of channel 6.
[0093] It should be noted that the calibration results of the adjacent channels of the second channel are also consistent with those of the second channel. Specifically, the frequency difference between the adjacent channels of the second channel and the second channel is within a set range, and the number of such adjacent channels can be one or more. This set range may or may not be the same as the set range of the first channel; this embodiment does not impose any limitations on this.
[0094] For example, the second channel can belong to either the low channel classification or the high channel classification, meaning it can be any of the channels 1-4 or 9-13. Taking the second channel as channel 1 as an example, then the other channels in the low channel classification are the adjacent channels of the second channel, that is, channels 2, 3, and 4 are the adjacent channels of the second channel, consistent with the calibration result of the second channel.
[0095] For example, suppose the first channel is any channel in the medium channel range, and the second channel is any channel in the high channel range. The first desired power corresponding to the first channel is 20 dBm. The power achieved by the rate module at the first transmission rate in the second channel is 22 dBm. Therefore, the terminal can determine the power difference to be 2 dBm.
[0096] 305. Poor terminal storage power.
[0097] In this embodiment, since the efuse storage space is limited, and the power difference occupies less storage space than the power calibration word, the terminal only needs to store the power difference. When the terminal wants to determine the calibration result of the rate module at the first transmission rate on the second channel, it only needs to calculate the calibration result for the second channel by combining the first calibration data corresponding to the first channel and the power difference of the second channel. By storing the power difference, it is not necessary to store the calibration results of the rate module at different transmission rates on all channels, thereby reducing storage space usage.
[0098] In some embodiments, after the terminal determines the first calibration data corresponding to the first channel, for any other channel, if the channel is an adjacent channel of the first channel, the calibration result of that channel is consistent with that of the first channel. If the channel is a second channel, the terminal can obtain the calibration result for that channel based on the first calibration data and the power difference. By determining the calibration result for the second channel based on the power difference and the first power calibration word corresponding to the first channel, it is not necessary to determine the power of the rate module under all channels, reducing calibration items and improving calibration efficiency.
[0099] In some embodiments, the terminal may determine the calibration result for the second channel using the following formula (2).
[0100] d = 20log(p / q) (2)
[0101] Where d represents the power difference corresponding to the second channel; p represents the first power calibration word corresponding to the first channel; and q represents the calibration result for the second channel.
[0102] For example, after calibrating the power of the rate module at the first transmission rate under the first standard, the terminal obtains the first calibration data corresponding to the first channel, where the first power calibration word is 33660. Assuming the first expected power corresponding to this first transmission rate is 22 dBm, and the power of the rate module at the first transmission rate under the second channel is 20 dBm, the terminal can then determine the power difference as 2 dBm. Therefore, the terminal can determine the calibration result for the second channel using the above formula (2).
[0103] This application provides a chip calibration method. It involves calibrating the power of a rate module in a target chip at a first transmission rate. When the rate module reaches a first desired power at the first transmission rate, a first power calibration word corresponding to that first transmission rate is obtained. Then, the relative power between the second desired power and the first desired power at a second transmission rate is determined. The first power calibration word and the relative power, i.e., the first calibration data, can then be saved. The power calibration word for when the rate module reaches the corresponding desired power at other transmission rates can be determined using the relative power. This eliminates the need to calibrate the power of the rate module at each transmission rate to the desired power corresponding to that transmission rate, thus reducing calibration items and improving calibration efficiency without affecting chip functionality.
[0104] Figure 4 This is a block diagram of a chip calibration apparatus according to an embodiment of this application. See also... Figure 4 As shown, the device includes:
[0105] The calibration module 401 is used to calibrate the power of the rate module in the target chip at the first transmission rate under the first standard. When the rate module reaches the first expected power at the first transmission rate, the first power calibration word corresponding to the first transmission rate is obtained.
[0106] The first determining module 402 is used to determine the relative power between the second desired power and the first desired power of the rate module at the second transmission rate;
[0107] The first storage module 403 is used to store the first calibration data, which includes the first power calibration word and the relative power.
[0108] In some embodiments, Figure 5 This is a block diagram of another chip calibration device provided according to an embodiment of this application.
[0109] In some embodiments, see Figure 5 As shown, the device also includes:
[0110] The second determining module 404 is used to determine the second power calibration word when the rate module reaches the second desired power at the second transmission rate, based on the first power calibration word and the relative power.
[0111] In some embodiments, the first power calibration word, the relative power, and the second power calibration word conform to the following formula:
[0112] a = 20log(x / y); where a represents the relative power; x represents the first power calibration word; and y represents the second power calibration word.
[0113] In some embodiments, the second expected power is the expected power of the rate module under the first standard and the second transmission rate; or, the second expected power is the expected power of the rate module under the second standard and the second transmission rate, wherein the second standard and the first standard are of the same type of calibration standard, and the calibration result of the rate module under the second standard is determined by the calibration result of the rate module under the first standard.
[0114] In some embodiments, the first calibration data is the calibration result for the first channel; the adjacent channels of the first channel use the same calibration result as the first channel; the number of adjacent channels of the first channel is one or more, and the frequency difference between the adjacent channels of the first channel and the first channel is within a set range.
[0115] In some embodiments, see Figure 5 As shown, the device also includes:
[0116] The third determining module 405 is used to determine, based on the first power calibration word, the power difference between the power of the rate module at the first transmission rate and the first desired power in the second channel, and the power difference is used to determine the calibration result for the second channel;
[0117] The second storage module 406 is used to store the power difference.
[0118] In some embodiments, see Figure 5 As shown, the device also includes:
[0119] The fourth determining module 407 is used to determine the calibration result for the second channel based on the power difference and the first power calibration word.
[0120] In some embodiments, the power difference, the first power calibration word, and the calibration result for the second channel conform to the following formula:
[0121] d = 20log(p / q); where d represents the power difference; p represents the first power calibration word; and q represents the calibration result for the second channel.
[0122] In some embodiments, the adjacent channels of the second channel adopt the same calibration result as the second channel; the number of adjacent channels of the second channel is one or more, and the frequency difference between the adjacent channels of the second channel and the second channel is within a set range.
[0123] In some embodiments, the first storage module 403 is used to determine the difference between the historical power calibration word and the first power calibration word as the calibration word difference. The historical power calibration word is the power calibration word obtained when the power of the rate module at the first transmission rate is calibrated within a historical time period and the rate module reaches the first expected power at the first transmission rate. The first calibration data is stored if the calibration word difference is not less than the calibration word change threshold.
[0124] In some embodiments, see Figure 5 As shown, the device also includes:
[0125] The third storage module 408 is used to save the calibration word difference when the calibration word difference is less than the calibration word change threshold.
[0126] This application provides a chip calibration apparatus. It calibrates the power of a rate module in a target chip at a first transmission rate. When the rate module reaches a first desired power at the first transmission rate, a first power calibration word corresponding to that first transmission rate is obtained. Then, the relative power between the second desired power and the first desired power at a second transmission rate is determined. The first power calibration word and the relative power, i.e., the first calibration data, can then be saved. The power calibration word for when the rate module reaches the corresponding desired power at other transmission rates can be determined using the relative power. This eliminates the need to calibrate the power of the rate module at each transmission rate to the desired power corresponding to that transmission rate, thus reducing calibration items and improving calibration efficiency without affecting chip functionality.
[0127] It should be noted that the chip calibration device provided in the above embodiments is only illustrated by the division of the above functional modules when running the application. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the chip calibration device and the chip calibration method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0128] Figure 6 This is a structural block diagram of an electronic device 600 according to an embodiment of this application. The electronic device 600 can be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The electronic device 600 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0129] Typically, electronic device 600 includes a processor 601 and a memory 602.
[0130] Processor 601 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 601 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 601 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0131] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 602 are used to store at least one computer program, which is executed by the processor 601 to implement the chip calibration method provided in the method embodiments of this application.
[0132] In some embodiments, the electronic device 600 may optionally include a peripheral device interface 603 and at least one peripheral device. The processor 601, memory 602, and peripheral device interface 603 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 604, a display screen 605, a camera assembly 606, an audio circuit 607, and a power supply 608.
[0133] Peripheral interface 603 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 601 and memory 602. In some embodiments, processor 601, memory 602 and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 601, memory 602 and peripheral interface 603 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0134] The radio frequency (RF) circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 604 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. In some embodiments, the RF circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 604 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 604 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0135] Display screen 605 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 605 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 601 for processing. In this case, display screen 605 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 605, disposed on the front panel of electronic device 600; in other embodiments, there may be at least two display screens, disposed on different surfaces of electronic device 600 or in a folded design; in still other embodiments, display screen 605 may be a flexible display screen, disposed on a curved or folded surface of electronic device 600. Furthermore, display screen 605 may be configured as a non-rectangular irregular shape, i.e., a non-rectangular screen. Display screen 605 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0136] The camera assembly 606 is used to acquire images or videos. In some embodiments, the camera assembly 606 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 606 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash is a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0137] The audio circuit 607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting them into electrical signals that are input to the processor 601 for processing, or to the radio frequency circuit 604 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located in a different part of the electronic device 600. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 607 may also include a headphone jack.
[0138] Power supply 608 is used to supply power to various components in electronic device 600. Power supply 608 can be alternating current, direct current, a disposable battery, or a rechargeable battery. When power supply 608 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0139] In some embodiments, the electronic device 600 further includes one or more sensors 609. The one or more sensors 609 include, but are not limited to, an accelerometer 610, a gyroscope 611, a pressure sensor 612, an optical sensor 613, and a proximity sensor 614.
[0140] Accelerometer 610 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established by electronic device 600. For example, accelerometer 610 can be used to detect the components of gravitational acceleration on the three coordinate axes. Processor 601 can control display screen 605 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 610. Accelerometer 610 can also be used for games or for acquiring user motion data.
[0141] The gyroscope sensor 611 can detect the orientation and rotation angle of the electronic device 600. The gyroscope sensor 611 can work in conjunction with the accelerometer sensor 610 to collect 3D motion data from the user on the electronic device 600. Based on the data collected by the gyroscope sensor 611, the processor 601 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0142] The pressure sensor 612 can be disposed on the side bezel of the electronic device 600 and / or on the lower layer of the display screen 605. When the pressure sensor 612 is disposed on the side bezel of the electronic device 600, it can detect the user's grip signal on the electronic device 600, and the processor 601 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 612. When the pressure sensor 612 is disposed on the lower layer of the display screen 605, the processor 601 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 605. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0143] An optical sensor 613 is used to collect ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the display screen 605 based on the ambient light intensity collected by the optical sensor 613. Specifically, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is decreased. In another embodiment, the processor 601 can also dynamically adjust the shooting parameters of the camera assembly 606 based on the ambient light intensity collected by the optical sensor 613.
[0144] A proximity sensor 614, also known as a distance sensor, is typically mounted on the front panel of an electronic device 600. The proximity sensor 614 is used to detect the distance between the user and the front of the electronic device 600. In one embodiment, when the proximity sensor 614 detects that the distance between the user and the front of the electronic device 600 is gradually decreasing, the processor 601 controls the display screen 605 to switch from a screen-on state to a screen-off state; when the proximity sensor 614 detects that the distance between the user and the front of the electronic device 600 is gradually increasing, the processor 601 controls the display screen 605 to switch from a screen-off state to a screen-on state.
[0145] Those skilled in the art will understand that Figure 6 The structure shown does not constitute a limitation on the electronic device 600, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0146] This application also provides a computer-readable storage medium storing at least one computer program. This computer program is loaded and executed by a terminal's processor to implement the operations performed by the terminal in the chip calibration method described above. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, or optical data storage device, etc.
[0147] This application also provides a computer program product or computer program, which includes computer program code stored in a computer-readable storage medium. The terminal's processor reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform the chip calibration method provided in the various optional implementations described above.
[0148] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0149] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A chip calibration method, characterized in that, The method includes: Under the first standard, the power of the rate module in the target chip is calibrated at the first transmission rate. When the rate module reaches the first desired power at the first transmission rate, the first power calibration word corresponding to the first transmission rate is obtained. Determine the relative power between the second desired power and the first desired power of the rate module at the second transmission rate; Save the first calibration data, which includes the first power calibration word and the relative power; Based on the first power calibration word and the relative power, a second power calibration word is determined when the rate module reaches the second desired power at the second transmission rate; Wherein, the first power calibration word, the relative power, and the second power calibration word conform to the following formula: a = 20log(x / y); where a represents the relative power; x represents the first power calibration word; and y represents the second power calibration word.
2. The method according to claim 1, characterized in that, The second desired power is the desired power of the rate module at the second transmission rate under the first standard; or, The second expected power is the expected power of the rate module under the second standard and the second transmission rate. The second standard and the first standard are of the same type of calibration standard. The calibration result of the rate module under the second standard is determined by the calibration result of the rate module under the first standard.
3. The method according to claim 1, characterized in that, The first calibration data is the calibration result for the first channel; the adjacent channels of the first channel use the same calibration result as the first channel; the number of adjacent channels of the first channel is one or more, and the frequency difference between the adjacent channels of the first channel and the first channel is within a set range.
4. The method according to claim 3, characterized in that, The first calibration data is the calibration result for the first channel; the method further includes: Based on the first power calibration word, the power difference between the power of the rate module at the first transmission rate and the first expected power under the second channel is determined, and the power difference is used to determine the calibration result for the second channel; Save the power difference.
5. The method according to claim 4, characterized in that, The method further includes: The calibration result for the second channel is determined based on the power difference and the first power calibration word.
6. The method according to claim 5, characterized in that, The power difference, the first power calibration word, and the calibration result for the second channel conform to the following formula: d = 20log(p / q); where d represents the power difference; p represents the first power calibration word; and q represents the calibration result for the second channel.
7. The method according to claim 5 or 6, characterized in that, The adjacent channels of the second channel use the same calibration result as the second channel; the number of adjacent channels of the second channel is one or more, and the frequency difference between the adjacent channels of the second channel and the second channel is within a set range.
8. The method according to claim 1, characterized in that, The process of saving the first calibration data includes: The difference between the historical power calibration word and the first power calibration word is determined as the calibration word difference. The historical power calibration word is the power calibration word obtained when the rate module reaches the first expected power at the first transmission rate after the power of the rate module is calibrated at the first transmission rate within a historical time period. If the calibration word difference is not less than the calibration word change threshold, the first calibration data is saved.
9. The method according to claim 8, characterized in that, The method further includes: If the calibration word difference is less than the calibration word change threshold, the calibration word difference is saved.
10. A chip calibration device, characterized in that, The device includes: The calibration module is used to calibrate the power of the rate module in the target chip at the first transmission rate under the first standard. When the rate module reaches the first expected power at the first transmission rate, the first power calibration word corresponding to the first transmission rate is obtained. A first determining module is used to determine the relative power between the second desired power and the first desired power of the rate module at the second transmission rate; A first storage module is used to store first calibration data, the first calibration data including the first power calibration word and the relative power; The second determining module is configured to determine, based on the first power calibration word and the relative power, the second power calibration word when the rate module reaches the second desired power at the second transmission rate; Wherein, the first power calibration word, the relative power, and the second power calibration word conform to the following formula: a = 20log(x / y); where a represents the relative power; x represents the first power calibration word; and y represents the second power calibration word.
11. A computer device, characterized in that, The computer device includes a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded by the processor and executed as the chip calibration method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store at least one computer program for performing the chip calibration method according to any one of claims 1 to 9.
13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the chip calibration method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Channel calibration method, terminal and computer readable storage medium
CN108964794A