Wi-Fi radio frequency calibration data storage method and radio frequency communication correction method
By combining the channel and mode grouping method with binary data storage, the problem of large Wi-Fi calibration data volume is solved, and the data volume is reduced and the storage efficiency is improved.
Patent Information
- Application Number
- CN202510687106.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-10-17
AI Technical Summary
In the prior art, Wi-Fi calibration data is stored channel by channel and mode by mode, resulting in a large amount of data and low storage efficiency.
The channel grouping and mode grouping methods are used to group and store Wi-Fi radio frequency calibration data in regular groups, and binary data is used for associated data storage to reduce the data volume.
This effectively compresses the number of channel groups, reduces the storage volume of Wi-Fi radio frequency calibration data, and improves data storage efficiency.
Smart Images

Figure CN120811513A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of wireless signal detection, in particular to the field of Wi-Fi radio frequency, and more particularly to a Wi-Fi radio frequency calibration data saving method and a Wi-Fi radio frequency communication correction method. BACKGROUND
[0002] Wi-Fi radio frequency technology is a widely used communication technology. In the process of producing Wi-Fi products, a radio frequency signal calibration process is generally required. On the one hand, this can greatly reduce the requirements of wireless transmitting and receiving devices on components and materials, thereby reducing the cost of materials and ultimately reducing the cost of the entire wireless transmitting and receiving device. On the other hand, due to the requirements of 802.11X protocols or regulations and the requirements of coexistence with other networks, the transmitting power of Wi-Fi devices needs to be strictly controlled, and the signal of the transmitting power of Wi-Fi devices in digital form needs to be saved.
[0003] At present, the industry generally adopts a Wi-Fi calibration data saving method after collecting calibration data, which is to save the calibration data one by one in channels and modes. The calibration steps are complicated and the data volume is large. How to reduce the calibration data volume of Wi-Fi devices and improve the data saving efficiency is a technical difficulty to be considered. SUMMARY
[0004] In view of the deficiencies in the prior art, the present application provides a Wi-Fi radio frequency calibration data saving method and a Wi-Fi radio frequency communication correction method, which mainly solve the problem of large data volume caused by saving Wi-Fi calibration data one by one in channels and modes.
[0005] The purpose of the present application is achieved by the following scheme:
[0006] According to the first aspect of the present application, a Wi-Fi radio frequency calibration data saving method is provided. The saving method comprises the following steps: S1, using a set Wi-Fi channel division rule to divide the working frequency band of Wi-Fi into a plurality of channel groups, wherein each channel group comprises a plurality of channels, each channel corresponds to a communication frequency range, and the center frequency corresponding to the communication frequency range; S2, determining a channel group from the plurality of channel groups in S1 as a reference channel group, and using a first binary data to store the Wi-Fi radio frequency calibration data of the reference channel group in a preset communication protocol mode; the Wi-Fi radio frequency calibration data comprises the target power of each channel group and the compensation power of each channel.
[0007] S3, taking the Wi-Fi radio frequency calibration data in the preset communication protocol mode in S2 as a reference, storing the associated data of the Wi-Fi radio frequency calibration data in the remaining communication protocol modes in the Wi-Fi protocol by a preset calculation rule, and using second binary data.
[0008] Further, the saving method further comprises storing the frequency offset compensation value of the center frequency in two bytes, one byte being used for storing the default Wi-Fi frequency value, and the other byte being used for storing the default Wi-Fi frequency offset compensation value.
[0009] In some embodiments of the present application, the plurality of channel groups comprises a channel group composed of a 2.4 GHz operating frequency band and a plurality of channel groups divided by a 5 GHz operating frequency band; wherein the bandwidth of each basic channel in the 5 GHz operating frequency band division is selected as 20 MHz bandwidth, and the basic channel number is incremented by 4.
[0010] In some embodiments of the present application, the first binary data comprises two octal binary numbers, the first octal binary number being used for storing the target power of the channel group, and the second octal binary number being used for storing the power compensation of the channel group, wherein the second octal binary number comprises an offset enable bit, a power compensation plus-minus bit, and a power compensation data bit.
[0011] In some embodiments of the present application, the second binary data comprises a third octal binary number used for storing the associated data corresponding to the channel group in the other communication protocol mode of the Wi-Fi protocol when the preset communication protocol mode is switched to the Wi-Fi protocol, wherein the three octal binary numbers comprise an associated data offset enable bit, an associated data power compensation plus-minus bit, and an associated data power compensation data bit.
[0012] Further, the maximum decimal number corresponding to the associated data power compensation data bit and the power compensation data bit is 63, representing the maximum power compensation of 31.5 dB, wherein the decimal number and the power compensation are in a positive proportional relationship.
[0013] Further, the default Wi-Fi frequency offset compensation value is calculated based on the compensation value and the correction data, or based on the compensation value and the correction data.
[0014] According to the second aspect of the present application, a Wi-Fi radio frequency communication correction method is provided. The Wi-Fi radio frequency communication correction method comprises: obtaining a communication channel parameter of a Wi-Fi radio frequency, the communication channel parameter comprising a channel communication frequency, a communication mode and a power; using the saving method provided in the first aspect of the present application to obtain data, and correcting the obtained communication channel parameter.
[0015] Compared with the prior art, the present application has the following beneficial effects: the present application can effectively compress the channel, reduce the number of channel groups and effectively reduce the Wi-Fi radio frequency calibration data by storing the Wi-Fi radio frequency calibration data in a channel group of calibration data in one communication protocol mode according to regular grouping of calibration data in multiple communication protocol modes (for example, Wi-Fi signal mode). In addition, the second binary data generated according to the overall conversion relationship of the Wi-Fi radio frequency calibration data in different communication protocol modes and the preset communication protocol mode can save the Wi-Fi radio frequency calibration data while effectively reducing the data volume and improving the data saving efficiency. Thus, the storage amount of correction data in the Wi-Fi radio frequency communication process is reduced as a whole. BRIEF DESCRIPTION OF DRAWINGS
[0016] The embodiments of the present application are further described below with reference to the accompanying drawings:
[0017] Figure 1 A Wi-Fi radio frequency calibration data saving method configuration flowchart is provided for the embodiments of the present application.
[0018] Figure 2 A 5GHz working frequency band division schematic diagram in the Wi-Fi radio frequency is provided for the embodiments of the present application. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings through specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0020] As mentioned in the background art, "to solve the above technical problems, the industry generally adopts the Wi-Fi calibration data saving method after calibration data collection, which is to save the calibration data one by one in channels and modes, the calibration steps are complicated and the data volume is large. How to reduce the calibration data volume of Wi-Fi devices and improve the data saving efficiency is a technical difficulty that needs to be considered." Based on this, the Wi-Fi radio frequency calibration data saving method provided by the present application mainly considers saving the data in a segmented manner, which reduces the saving data volume of the Wi-Fi radio frequency calibration data while trying not to reduce the data information.
[0021] As Figure 1As shown, the embodiment of the present application provides a Wi-Fi radio frequency calibration data saving method configuration flow diagram. The configuration process mainly includes Wi-Fi channel grouping; defining target power field according to channel grouping; defining power compensation field according to channel grouping; defining Wi-Fi different mode field; defining Wi-Fi frequency field and the like. The present application can save Wi-Fi radio frequency calibration data in different channels and different modes by regular grouping, reduce the number of data storage, and improve the storage efficiency.
[0022] According to one embodiment of the present application, a Wi-Fi radio frequency calibration data saving method is provided. The saving method comprises the following steps: S1, using a set Wi-Fi channel division rule, dividing the working frequency range of Wi-Fi into a plurality of channel groups, wherein each channel group includes a plurality of channels, each channel corresponds to a communication frequency range, and the center frequency corresponding to the communication frequency range; S2, determining a channel group from the plurality of channel groups in S1 as a reference channel group, and storing the Wi-Fi radio frequency calibration data of the reference channel group in a preset communication protocol mode using first binary data; the Wi-Fi radio frequency calibration data includes the target power of each channel group and the compensation power of each channel; S3, taking the Wi-Fi radio frequency calibration data in the preset communication protocol mode in S2 as a reference, and storing the associated data of the Wi-Fi radio frequency calibration data in the remaining communication protocol modes in the Wi-Fi protocol using second binary data through a preset calculation rule.
[0023] In the embodiment of the present application, by dividing the working frequency range of Wi-Fi into a plurality of channel groups, the basic channels in the working frequency range of Wi-Fi can be regularly grouped, which can effectively reduce the Wi-Fi radio frequency calibration data corresponding to the entire channel. In addition, taking the Wi-Fi radio frequency calibration data in the preset communication protocol mode in S2 as a reference, and storing the associated data of the Wi-Fi radio frequency calibration data in the remaining communication protocol modes in the Wi-Fi protocol using second binary data through a preset calculation rule. This can effectively reduce the amount of data that needs to be stored between different communication protocol modes.
[0024] Further, in order to better adapt to Wi-Fi radio frequency communication, the saving method further comprises storing the frequency offset compensation value of the center frequency using two bytes, wherein one byte is used to store the default Wi-Fi frequency value, and the other byte is used to store the default Wi-Fi frequency offset compensation value.
[0025] The embodiment process of the present application will be described in detail below.
[0026] In the Wi-Fi radio frequency calibration data saving method, the Wi-Fi channel division rule adopted in the S1 is to combine and group the working frequency bands (2.4 GHz, 5 GHz) of Wi-Fi, and compress the channels.
[0027] According to one embodiment of the present application, the plurality of channel groups includes a channel group composed of a 2.4 GHz working frequency band, and a plurality of channel groups divided by a 5 GHz working frequency band; wherein the bandwidth of each basic channel in the 5 GHz working frequency band division is selected as 20 MHz bandwidth, and the basic channel number is divided by 4 in step increments; and the channel group of the 5 GHz working frequency band division is based on the basic channel number and stepped by 4 to obtain the channel group.
[0028] Specifically, the working frequency bands of Wi-Fi are divided into 2.4 GHz and 5 GHz, wherein the 2.4 GHz Wi-Fi frequency band is divided into 14 channels (the frequency range is 2.402 GHz-2.483 GHz, and one channel has a 20 MHz bandwidth), and the 14 channels of the 2.4 GHz frequency range can be divided into one channel group. The 5 GHz frequency range is wide (the frequency range is 5.180 GHz-5.885 GHz), and the conventional method divides the basic channels into 81 channel groups, i.e., Group 1-Group 8. As shown in Figure 2 Group 1 is selected for exemplary description, CH184-CH196 are divided into Group 1, CH184-CH196 are four basic channel numbers (stepped by 4), and CH184 and CH196 are the basic signal numbers of 5 GHz communication, preferably 20 MHz bandwidth. In this way, the amount of channel radio frequency calibration data is effectively reduced.
[0029] According to one embodiment of the present application, in the Wi-Fi radio frequency calibration data saving method, the first binary data includes two octal binary numbers, the first octal binary number is used to store the target power of the channel group, and the second octal binary number is used to store the power compensation of the channel group, wherein the second octal binary number includes an offset enable bit, a power compensation plus-minus bit, and a power compensation data bit.
[0030] According to one example of the present application, as shown in Table 1, the first octal binary number is used to store the target power of the channel group.
[0031] Table 1: Target power storage table of channel group (Group)
[0032]
[0033] Define an address field 0x00 and a target power value of 19dBm. This value is represented by the eight-bit binary number 00100110. This way, the target power of the group, 19, is saved in the address field 0x00. The same applies to other groups.
[0034] According to an example of the present invention, as shown in Table 2, a second eight-bit binary number is used to store the power compensation of the channel group.
[0035] Table 2: Channel Group Power Compensation Storage Schematic
[0036]
[0037] One byte of 8-bit binary data represents the power compensation of the channel group. There are three possible power compensation situations, namely, plus compensation, no compensation, and minus compensation. The following rules are preferably used for arrangement, as described in detail below:
[0038] 1. The 7th bit is the offset enable bit, which indicates whether power offset compensation is enabled. 0 means disabled, and 1 means enabled.
[0039] 2. The sixth bit is the power compensation plus or minus bit, 0 means minus, 1 means plus;
[0040] 3. Bits 0 through 5 are power compensation data bits. The decimal data range is 0 to 63 (called index values). If 1 index value represents 0.5dB, the maximum power compensation of 63 is 31.5dB. Preferably, the decimal number and the power compensation are directly proportional. For example, if 31.5dB and 63 are divided into 10 parts, the corresponding relationships within these 10 parts are arranged from smallest to largest.
[0041] 4. 0xC1 indicates plus compensation of 0.5dB, 0x00 indicates no compensation, and 0x82 indicates minus compensation of 1dB. The actual transmit power can be close to the target power of 19dB through power calibration compensation.
[0042] In the method for saving Wi-Fi radio frequency calibration data, S3 includes, based on the Wi-Fi radio frequency calibration data in the preset communication protocol mode in S2, storing associated data of the Wi-Fi radio frequency calibration data in the remaining communication protocol modes (e.g., the 802.11ac protocol mode) in the Wi-Fi protocol using second binary data according to a preset calculation rule.
[0043] The preset calculation rules can be based on the Wi-Fi radio frequency calibration data corresponding to the preset communication protocol mode. The algorithm uses the associated data that can be directly calculated and stored, eliminating the need for power calibration for other modes. This is shown in Table 3 below.
[0044] Table 3: Schematic diagram of data storage in various modes of the 802.11ac protocol
[0045]
[0046] As shown in the table above, one byte of 8-bit binary data represents three possible situations in different mode fields, namely, the associated data offset enable bit, the associated data power compensation plus / minus bit, and the associated data power compensation data bit. Detailed descriptions are as follows:
[0047] 1. The 7th bit is the associated data offset enable bit, which indicates whether to enable power compensation in different modes. 0 means enabled, and 1 means disabled.
[0048] 2. The sixth bit is the power compensation plus or minus bit of the associated data. 0 indicates minus, and 1 indicates plus.
[0049] 3. Bits 0 to 5 are associated data power compensation data bits, and the decimal data range is: 0 to 63 (called index value). If 1 index value represents 0.5dB, the maximum power compensation of 63 is 31.5dB. For example, 31.5dB and 63 are divided into 10 parts, and the corresponding relationships in these 10 parts are arranged from small to large.
[0050] 4. For example, the Wi-Fi radio calibration data for the preset communication protocol mode is a baseline target power of 19dBm (calibrated). 0xC4 indicates adding a 2dB power compensation, i.e., 802.11ac_80M_MCS0 = 19 + 2 = 21dBm. The calculation is similar for other modes.
[0051] In summary, by defining fields for different Wi-Fi modes and using a specific algorithm, we can calculate the power of all Wi-Fi modes and then save the power data.
[0052] Furthermore, to better adapt to Wi-Fi radio frequency communication, the storage method also includes using two bytes to store the frequency offset compensation value of the center frequency, where one byte is used to store the default Wi-Fi frequency value, and the other byte is used to store the default Wi-Fi frequency offset compensation value.
[0053] When a Wi-Fi chip monitors or transmits on a channel, a frequency offset occurs between the center frequencies of the two communicating parties. This frequency offset can be corrected through calibration. The correction data is saved in a specified field and used by Wi-Fi during operation to ensure that the Wi-Fi frequency offset is within a reasonable range and correct decoding. Ideally, the frequency offset is 0 ppm, meaning there is no frequency offset. The frequency offset correction data is stored in the following Table 4:
[0054] Table 4
[0055] Wi-Fi frequency field Default frequency offset value Wi-Fi operating frequency offset 0x30 0x42 -10 ppm 0x31 0xE0 0 ppm
[0056] 1. Define a default frequency offset correction value, i.e. the value 0x42 of the 0x30 field, at this time the output frequency of Wi-Fi is -10ppm when working;
[0057] 2. It is found through calibration correction that 0x62 can achieve a frequency offset of 0ppm, 0x62-0x42=0x20, i.e. the Wi-Fi frequency offset correction data is 0x20;
[0058] 3. Frequency offset correction, there are two states of adding compensation (0xC0) and subtracting compensation (0x80), 0xC0 is represented in binary as "1100 0000", the 7th bit is an enabling bit (bit from zero, from right to left), 0 indicates that the frequency offset compensation is turned off, and 1 indicates that the frequency offset compensation is turned on, the 6th bit is an adding or subtracting compensation bit, 0 indicates subtracting compensation, and 1 indicates adding compensation, the 0th-5th bits are frequency offset compensation data bits, and the maximum frequency offset compensation value is 63 (0x3F), and 0x80 is the same.
[0059] 4. The default Wi-Fi frequency offset compensation value is calculated based on the adding compensation value and the correction data, or based on the subtracting compensation value and the correction data. As can be seen from the above second point, from 0x42 to 0x60, 0x20 is added, which is an adding compensation, and the value of the 0x31 frequency offset compensation field is calculated as 0xC0+0x20=0xE0 (the adding compensation value and the correction data are added to obtain), 0xE0 is the frequency offset compensation value. When subtracting compensation, the difference between the subtracting compensation value and the correction data is obtained.
[0060] In summary, using the above algorithm, the Wi-Fi frequency offset problem can be solved, a default Wi-Fi frequency field (0x30) is defined, and a field (0x31) for storing the frequency offset compensation value is defined, and two bytes can complete the saving of the 0ppm Wi-Fi frequency offset compensation value.
[0061] According to the second aspect of the present application, a Wi-Fi radio frequency communication correction method is provided. The Wi-Fi radio frequency communication correction method comprises: obtaining a communication channel parameter of a Wi-Fi radio frequency, the communication channel parameter comprising a channel communication frequency, a communication mode and a power; using the saving method provided by the first aspect of the present application to obtain data, and correcting the obtained communication channel parameter.
[0062] Specifically, the communication channel parameters of the Wi-Fi radio frequency, such as the channel communication frequency and power. The corresponding data is found by using the communication frequency (determining the channel group), the communication mode to the Wi-Fi radio frequency calibration data stored in the first aspect of the application to correct the data and perform the corresponding rule calculation, and the corrected communication data is obtained.
[0063] The present application can be a system, a method, and / or a computer program product. The computer program product can include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present application.
[0064] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves.
[0065] Embodiments of the application have been described above, with the understanding that these embodiments are merely examples, are not exhaustive, and are not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of words in this document is intended to best explain the principles of the embodiments, practical application, or improvement to the art in the marketplace, or to enable other ordinary skilled persons in the art to understand the embodiments disclosed herein.
Claims
1. A method for storing Wi-Fi radio frequency calibration data, characterized in that: The storage method comprises the following steps: S1. Using a set Wi-Fi channel division rule, divide the Wi-Fi operating frequency band into multiple channel groups, where each channel group includes multiple channels, each channel corresponds to a communication frequency range, and the communication frequency range corresponds to a center frequency; S2. Determine a channel group from the multiple channel groups in S1 as a reference channel group, and use first binary data to store Wi-Fi radio frequency calibration data of the reference channel group in a preset communication protocol mode; the Wi-Fi radio frequency calibration data includes a target power for each channel group and a compensation power for each channel; S3. Based on the Wi-Fi radio frequency calibration data in the preset communication protocol mode in S2, and using a preset calculation rule, store the associated data of the Wi-Fi radio frequency calibration data in the remaining communication protocol modes in the Wi-Fi protocol using second binary data.
2. The storage method according to claim 1, wherein The storing method further includes using two bytes to store the frequency offset compensation value of the center frequency, wherein one byte is used to store the default Wi-Fi frequency value, and the other byte is used to store the default Wi-Fi frequency offset compensation value.
3. The storage method according to claim 1, wherein: The multiple channel groups include channel groups composed of 2.4GHz working frequency bands and multiple channel groups divided by 5GHz working frequency bands; wherein, the bandwidth of each basic channel in the 5GHz working frequency band division is selected as 20MHz bandwidth, and the basic channel number is increased in steps of 4; the channel grouping divided by the 5GHz working frequency band is based on the basic channel number, and the channel grouping is obtained in steps of 4.
4. The storage method according to claim 1, wherein The first binary data includes two eight-bit binary numbers. The first eight-bit binary number is used to store the target power of the channel group; the second eight-bit binary number is used to store the power compensation of the channel group, wherein the second eight-bit binary number includes an offset enable bit, a power compensation addition and subtraction bit, and a power compensation data bit.
5. The storage method according to claim 1, wherein: The second binary data includes a third eight-bit binary number for storing associated data corresponding to a channel grouping when the preset communication protocol mode is switched to another communication protocol mode in the Wi-Fi protocol, wherein the three eight-bit binary numbers include an associated data offset enable bit, an associated data power compensation addition and subtraction bit, and an associated data power compensation data bit.
6. The storage method according to claim 4 or 5, characterized in that The maximum decimal number corresponding to the associated data power compensation data bit and the power compensation data bit is 63, indicating that the maximum power compensation is 31.5 dB, wherein the decimal number and the power compensation are in direct proportion.
7. The storage method according to claim 2, characterized in that The default Wi-Fi frequency offset compensation value is calculated based on the plus compensation value and the correction data, or calculated based on the minus compensation value and the correction data.
8. A Wi-Fi radio frequency communication correction method, characterized in that: The Wi-Fi radio frequency communication correction method includes: Obtaining communication channel parameters of the Wi-Fi radio frequency, wherein the communication channel parameters include channel communication frequency, communication mode, and power; Adopt the storage method described in any one of claims 1-7 to obtain data and correct the acquired communication channel parameters.
9. A computer-readable storage medium, characterized in that A computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of any one of the methods of claims 1-8.
10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the steps of the method according to any one of claims 1 to 8.