A wireless network card calibration method and device

By setting the accumulated flag bits during the wireless network card calibration process and adjusting hardware parameters according to the calibration software and API instructions, the problem of low calibration efficiency of wireless network card in the prior art is solved, and a more efficient calibration process is achieved.

CN117768044BActive Publication Date: 2025-03-14GUANGZHOU TOZED KANGWEI INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410083636.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-19
Publication Date
2025-03-14
Estimated Expiration
2044-01-19

AI Technical Summary

Technical Problem

The existing wireless network card calibration method has low calibration efficiency, high operation difficulty, and unable to effectively output power due to compatibility between the driver version and the API version or frequency interval of input instructions.

Method used

By setting the cumulative flag bits to count the same API instruction factors, adjusting the hardware parameters of the wireless network card according to the calibration software and API instructions, obtaining the power values ​​adjusted by each hardware parameter, and performing power calibration.

Benefits of technology

Improve the efficiency of wireless network card calibration, avoid manual control of wireless network card power outage and restart calibration from scratch, and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117768044B_ABST
    Figure CN117768044B_ABST
Patent Text Reader

Abstract

The present invention discloses a wireless network card calibration method and device, including: setting a cumulative flag bit, counting consecutive identical API instruction factors according to the cumulative flag bit; the instruction factors include channel value, bandwidth value, power value and antenna port value; setting the initial value of the power factor according to the scheme of the wireless network card, and adjusting the hardware parameters of the wireless network card according to the calibration software and the API instruction; obtaining the power value corresponding to the wireless network card after each hardware parameter is adjusted, and performing power calibration on the wireless network card according to the power value, power factor and cumulative flag value. The present invention sets the cumulative flag bit to count consecutive identical API instruction factors, thereby avoiding the problem that the wireless network card cannot output power and cannot calibrate the wireless network card due to the problem of frequent input of instructions when calibrating the same hardware parameter multiple times during the wireless network card calibration process, thereby improving the calibration efficiency and avoiding manual control of the wireless network card to power off and restart and calibrate from the beginning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a wireless network card calibration method and device. Background Art

[0002] At present, wireless network cards need to be calibrated for RF output power during the production process to ensure that the output power meets the requirements of various countries for radiation power. The calibration plan of wireless network card manufacturers is generally that the manufacturer of the calibration instrument they purchase provides the instruction set for controlling the instrument, and the wireless network card chip manufacturer provides the instruction set for controlling the underlying hardware of the chip. On this basis, the wireless network card manufacturer develops automatic calibration software according to its own needs.

[0003] The existing method of controlling the underlying hardware of wireless network cards is to directly call the API interface instructions provided by the chip manufacturer. During the calibration process of the wireless network card, due to the compatibility of the wireless network card driver version and the API version or the frequency interval of the input instructions, it is easy to cause the wireless network card to fail to output power. The only way is to manually control the wireless network card to power off and restart the calibration from the beginning, which has low calibration efficiency and great difficulty in operation. Summary of the invention

[0004] The invention provides a wireless network card calibration method and device to solve the technical problem of low calibration efficiency in the existing wireless network card calibration method.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a wireless network card calibration method, including:

[0006] Setting a cumulative flag bit, and counting consecutive identical API instruction factors according to the cumulative flag bit; the instruction factors include a channel value, a bandwidth value, a power value, and an antenna port value;

[0007] Setting an initial value of the power factor according to the scheme of the wireless network card, and adjusting the hardware parameters of the wireless network card according to the calibration software and the API instructions;

[0008] The power value corresponding to the wireless network card after each hardware parameter is adjusted is obtained, and the power calibration of the wireless network card is performed according to the power value, the power factor and the cumulative mark value.

[0009] The present invention sets a cumulative flag bit to count consecutive identical API instruction factors, thereby avoiding the situation in which the wireless network card cannot output power and cannot be calibrated due to frequent input of instructions when the same hardware parameter is calibrated multiple times during the wireless network card calibration process. The calibration efficiency is improved and manual control of the wireless network card to power off and restart to calibrate from the beginning is avoided.

[0010] Further, the initial value of the power factor is set according to the scheme of the wireless network card, and the hardware parameters of the wireless network card are adjusted according to the calibration software and the API instruction, including:

[0011] Set the initial values ​​of various hardware parameters according to the API instructions, and set the corresponding initial value of the power factor according to the wireless network card solution;

[0012] The calibration software adjusts the hardware parameters of the wireless network card one by one according to the API instruction and the initial values ​​of the hardware parameters and the initial value of the power factor, wherein the hardware parameters include channel, bandwidth, power and antenna port.

[0013] Further, the method of setting the initial value of the power factor according to the scheme of the wireless network card and adjusting the hardware parameters of the wireless network card according to the calibration software and the API instruction also includes:

[0014] Controlling the output power of the wireless network card according to the calibration software and the first API instruction, and obtaining the power of the wireless network card according to the detection instrument;

[0015] If the detection instrument fails to obtain the power of the wireless network card, the first API command is repeatedly input until the detection instrument successfully obtains the wireless network card or the number of command inputs reaches a preset threshold, and calibration continues.

[0016] Further, the obtaining of the power value corresponding to the wireless network card after each hardware parameter is adjusted, and performing power calibration on the wireless network card according to the power value, power factor and cumulative flag value, includes:

[0017] After each adjustment of a first parameter of the wireless network card, a power value corresponding to the wireless network card is obtained; the first parameter is a currently adjusted hardware parameter;

[0018] If the power value is not within the power factor range, and continue to adjust the first parameter again according to the API instruction;

[0019] If the power value is within the power factor range, the adjustment of the first parameter is stopped and the next hardware parameter is calibrated.

[0020] Further, if the power value is not within the power factor range, after continuing to adjust the first parameter again according to the API instruction, the method further includes:

[0021] When the accumulated mark value reaches a preset threshold, the wireless network card is controlled to stop outputting power.

[0022] In a second aspect, the present invention further provides a wireless network card calibration device, comprising: a factor statistics module, an adjustment module and a calibration module;

[0023] The factor statistics module is used to set a cumulative flag bit, and count consecutive identical API instruction factors according to the cumulative flag bit; the instruction factors include channel value, bandwidth value, power value and antenna port value;

[0024] The adjustment module is used to set the initial value of the power factor according to the scheme of the wireless network card, and adjust the hardware parameters of the wireless network card according to the calibration software and the API instruction;

[0025] The calibration module is used to obtain the power value corresponding to the wireless network card after each hardware parameter is adjusted, and perform power calibration on the wireless network card according to the power value, power factor and cumulative mark value.

[0026] Furthermore, the adjustment module is used to:

[0027] Set the initial values ​​of various hardware parameters according to the API instructions, and set the corresponding initial value of the power factor according to the wireless network card solution;

[0028] The calibration software adjusts the hardware parameters of the wireless network card one by one according to the API instruction and the initial values ​​of the hardware parameters and the initial value of the power factor, wherein the hardware parameters include channel, bandwidth, power and antenna port.

[0029] Furthermore, the adjustment module is also used for:

[0030] Controlling the output power of the wireless network card according to the calibration software and the first API instruction, and obtaining the power of the wireless network card according to the detection instrument;

[0031] If the detection instrument fails to obtain the power of the wireless network card, the first API command is repeatedly input until the detection instrument successfully obtains the wireless network card or the number of command inputs reaches a preset threshold, and calibration continues.

[0032] Furthermore, the calibration module is used to:

[0033] After each adjustment of a first parameter of the wireless network card, a power value corresponding to the wireless network card is obtained; the first parameter is a currently adjusted hardware parameter;

[0034] If the power value is not within the power factor range, and continue to adjust the first parameter again according to the API instruction;

[0035] If the power value is within the power factor range, the adjustment of the first parameter is stopped and the next hardware parameter is calibrated.

[0036] Furthermore, the calibration module is also used for:

[0037] When the accumulated mark value reaches a preset threshold, the wireless network card is controlled to stop outputting power. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a flow chart of a wireless network card calibration method provided by an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of cumulative flag bit statistics of the wireless network card calibration method provided by an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of the distribution of hardware parameters of a wireless network card for the wireless network card calibration method provided by an embodiment of the present invention;

[0041] Figure 4 A calibration flow diagram of a wireless network card calibration method provided by an embodiment of the present invention;

[0042] Figure 5 A schematic diagram of the structure of a wireless network card calibration device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] Embodiment 1

[0045] Please refer to Figure 1 , Figure 1 A flowchart of a wireless network card calibration method provided by an embodiment of the present invention includes steps 101 to 103, which are specifically as follows:

[0046] Step 101: Setting a cumulative flag, and counting consecutive and identical API instruction factors according to the cumulative flag; the instruction factors include channel value, bandwidth value, power value and antenna port value;

[0047] In this embodiment, the wireless network card is powered to enter the calibration mode, and a cumulative flag "API-SUM" is set in the calibration program. The cumulative flag is used to count consecutive identical API instruction factors, that is, to count the number of times the calibration software repeatedly inputs the same API instruction. The API instruction factors include: channel, bandwidth, power, and antenna port, which are recorded in the calibration program as (CHIdx: m, BandIdx: n, PowerIdx: x, AntIdx: y).

[0048] In this embodiment, when one API instruction is detected, API-SUM=1 is counted, and when API instructions with exactly the same factors are detected continuously, API-SUM=n is accumulated.

[0049] Please refer to Figure 2 , Figure 2 A schematic diagram of cumulative flag bit statistics of the wireless network card calibration method provided by an embodiment of the present invention.

[0050] In this embodiment, the calibration software inputs API instructions to the wireless network card through an interface such as telnet or a serial port. After receiving the API instructions, the wireless network card will feed back the corresponding echo information to the log of the main program, where the format of the echo information is: MtCmdSetTxPowerCtrl:chIdx:36,BandIdx:0,PowerIdx:42,AntIdx:1.

[0051] In this embodiment, the cumulative flag is used to detect the echo information of the API instruction. When any API instruction echo information is detected, the count is 1; when two identical echo information are detected consecutively, the count is 2; when two identical echo information are detected but there is other different echo information in between, the count is still 1.

[0052] Step 102: setting an initial value of the power factor according to the scheme of the wireless network card, and adjusting the hardware parameters of the wireless network card according to the calibration software and the API instruction;

[0053] In this embodiment, the initial value of the power factor is set according to the scheme of the wireless network card, and the hardware parameters of the wireless network card are adjusted according to the calibration software and the API instruction, including:

[0054] Set the initial values ​​of various hardware parameters according to the API instructions, and set the corresponding initial value of the power factor according to the wireless network card solution;

[0055] The calibration software adjusts the hardware parameters of the wireless network card one by one according to the API instruction and the initial values ​​of the hardware parameters and the initial value of the power factor, wherein the hardware parameters include channel, bandwidth, power and antenna port.

[0056] In this embodiment, the initial values ​​and power factors of various hardware parameters in the calibration software are set according to the API instructions, so that the wireless network card is calibrated according to the initial values ​​and the power factors.

[0057] In this embodiment, the power factor sets different initial values ​​according to different WIFI schemes. Specifically, the calibration software sets the initial values ​​of the calibration parameters through API instructions: AntIdx: A1, BandIdx: B1, chIdx: C1, PowerIdx: 42, where PowerIdx is the power factor.

[0058] In this embodiment, the initial value of the power factor is set according to the scheme of the wireless network card, and the hardware parameters of the wireless network card are adjusted according to the calibration software and the API instruction, and further includes:

[0059] Controlling the output power of the wireless network card according to the calibration software and the first API instruction, and obtaining the power of the wireless network card according to the detection instrument;

[0060] If the detection instrument fails to obtain the power of the wireless network card, the first API command is repeatedly input until the detection instrument successfully obtains the wireless network card or the number of command inputs reaches a preset threshold, and calibration continues.

[0061] In this embodiment, when the output power of the wireless network card is controlled by inputting an API instruction and the detection instrument cannot detect the power, the same API instruction is repeatedly input 10 times.

[0062] Step 103: Obtain the power value corresponding to the wireless network card after each hardware parameter is adjusted, and perform power calibration on the wireless network card according to the power value, power factor and cumulative flag value.

[0063] In this embodiment, the step of obtaining the power value corresponding to the wireless network card after each hardware parameter is adjusted, and performing power calibration on the wireless network card according to the power value, power factor and cumulative flag value includes:

[0064] After each adjustment of a first parameter of the wireless network card, a power value corresponding to the wireless network card is obtained; the first parameter is a currently adjusted hardware parameter;

[0065] If the power value is not within the power factor range, and continue to adjust the first parameter again according to the API instruction;

[0066] If the power value is within the power factor range, the adjustment of the first parameter is stopped and the next hardware parameter is calibrated.

[0067] In this embodiment, the calibration software adjusts the hardware parameters of the network card through API instructions, such as channel, bandwidth, power, antenna port, etc., so that the wireless network card outputs corresponding power. At the same time, the calibration software detects the corresponding power value by controlling the instrument, thereby performing power calibration according to the preset target power.

[0068] In this embodiment, the number of antenna ports of the wireless network card is A1-An, the number of bandwidths is B1-Bn, and the number of channels is C1-Cn.

[0069] Please refer to Figure 3 and Figure 4 , Figure 3 A schematic diagram of the distribution of hardware parameters of a wireless network card for the wireless network card calibration method provided by an embodiment of the present invention; Figure 4 A calibration flow diagram of a wireless network card calibration method provided by an embodiment of the present invention.

[0070] In this embodiment, the calibration software sets the initial values ​​of the calibration parameters through API instructions: AntIdx: A1, BandIdx: B1, chIdx: C1, power factor: PowerIdx: 42.

[0071] In this embodiment, after issuing the API instruction, the calibration software reads the power detection value of the test instrument, and when the detection power is within the target power range, the calibration of this parameter is ended and the calibration of the next channel is transferred. When the detection power is not within the target power range, for example, when the detection power is not within the target power range after inputting an API instruction, the power factor is: PowerIdx: 42, and then the power factor is adjusted to PowerIdx: 43, the parameters of the wireless network card are calibrated again to adjust the power factor so that the detection power is within the target power range.

[0072] The calibration is completed when the antenna ports, bandwidth quantity and channels of all wireless network cards are calibrated.

[0073] In this embodiment, after if the power value is not within the power factor range and continuing to adjust the first parameter again according to the API instruction, the method includes:

[0074] When the accumulated mark value reaches a preset threshold, the wireless network card is controlled to stop outputting power.

[0075] In this embodiment, when the main program detects the corresponding API instruction, the cumulative flag bit API-SUM starts to count, and when the cumulative flag bit API-SUM reaches a preset threshold, the wireless network card is controlled to stop outputting power.

[0076] In this embodiment, when API-SUM=5, the main program sends the following command to the wireless network card:

[0077] [166.426476]SetATE:Arg=TXSTOP

[0078] [166.438345]SetATE:Arg=APSTOP

[0079] In this embodiment, the functions of the instruction SetATE:Arg=TXSTOP and the instruction SetATE:Arg=APSTOP are to stop the wireless network card from outputting power, and then the calibration software starts the next calibration.

[0080] In this embodiment, a cumulative mark bit API-SUM is introduced into the wireless network card main program, and cooperates with the calibration software program to implement the input of SetATE:Arg=TXSTOP, SetATE:Arg=APSTOP instructions when the network card driver is stuck, so that the wireless network card can output the corresponding power and continue calibration.

[0081] Please refer to Figure 5 , Figure 5 A schematic diagram of a structure of a wireless network card calibration device provided by an embodiment of the present invention, comprising: a factor statistics module, an adjustment module and a calibration module;

[0082] The factor statistics module 501 is used to set a cumulative flag bit, and count consecutive identical API instruction factors according to the cumulative flag bit; the instruction factors include channel value, bandwidth value, power value and antenna port value;

[0083] The adjustment module 502 is used to set the initial value of the power factor according to the scheme of the wireless network card, and adjust the hardware parameters of the wireless network card according to the calibration software and the API instructions;

[0084] The calibration module 503 is used to obtain the power value corresponding to the wireless network card after each hardware parameter is adjusted, and perform power calibration on the wireless network card according to the power value, power factor and cumulative flag value.

[0085] In this embodiment, the adjustment module is used to:

[0086] Set the initial values ​​of various hardware parameters according to the API instructions, and set the corresponding initial value of the power factor according to the wireless network card solution;

[0087] The calibration software adjusts the hardware parameters of the wireless network card one by one according to the API instruction and the initial values ​​of the hardware parameters and the initial value of the power factor, wherein the hardware parameters include channel, bandwidth, power and antenna port.

[0088] In this embodiment, the adjustment module is further used for:

[0089] Controlling the output power of the wireless network card according to the calibration software and the first API instruction, and obtaining the power of the wireless network card according to the detection instrument;

[0090] If the detection instrument fails to obtain the power of the wireless network card, the first API command is repeatedly input until the detection instrument successfully obtains the wireless network card or the number of command inputs reaches a preset threshold, and calibration continues.

[0091] In this embodiment, the calibration module is used to:

[0092] After each adjustment of a first parameter of the wireless network card, a power value corresponding to the wireless network card is obtained; the first parameter is a currently adjusted hardware parameter;

[0093] If the power value is not within the power factor range, and continue to adjust the first parameter again according to the API instruction;

[0094] If the power value is within the power factor range, the adjustment of the first parameter is stopped and the next hardware parameter is calibrated.

[0095] In this embodiment, the calibration module is further used for:

[0096] When the accumulated mark value reaches a preset threshold, the wireless network card is controlled to stop outputting power.

[0097] In this embodiment, a cumulative flag bit is set to count consecutive identical API instruction factors, thereby avoiding the situation in which the wireless network card cannot output power and cannot be calibrated due to problems such as frequent input of instructions when the same hardware parameters are calibrated multiple times during the wireless network card calibration process. This improves the calibration efficiency and avoids manual control of the wireless network card to power off and restart the calibration from the beginning.

[0098] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A wireless network card calibration method, characterized in that: include: Setting a cumulative flag, and counting consecutive identical API instruction factors according to the cumulative flag; The command factors include channel value, bandwidth value, power value and antenna port value; The initial value of the power factor is set according to the scheme of the wireless network card, and the hardware parameters of the wireless network card are adjusted according to the calibration software and the API instruction, including: controlling the output power of the wireless network card according to the calibration software and the first API instruction, and obtaining the power of the wireless network card according to the detection instrument; if the detection instrument fails to obtain the power of the wireless network card, repeatedly inputting the first API instruction until the detection instrument successfully obtains the wireless network card or the number of instruction inputs reaches a preset threshold, and continuing the calibration; The power value corresponding to the wireless network card after each hardware parameter is adjusted is obtained, and the power calibration of the wireless network card is performed according to the power value, the power factor and the cumulative mark value.

2. The wireless network card calibration method according to claim 1, characterized in that: The initial value of the power factor is set according to the scheme of the wireless network card, and the hardware parameters of the wireless network card are adjusted according to the calibration software and the API instruction, including: Set the initial values ​​of various hardware parameters according to the API instructions, and set the corresponding initial value of the power factor according to the wireless network card solution; The calibration software adjusts the hardware parameters of the wireless network card one by one according to the API instruction and the initial values ​​of the hardware parameters and the initial value of the power factor, wherein the hardware parameters include channel, bandwidth, power and antenna port.

3. The wireless network card calibration method according to claim 2, characterized in that: The obtaining of the power value corresponding to the wireless network card after each hardware parameter is adjusted, and performing power calibration on the wireless network card according to the power value, the power factor and the cumulative mark value, includes: After each adjustment of a first parameter of the wireless network card, a power value corresponding to the wireless network card is obtained; the first parameter is a currently adjusted hardware parameter; If the power value is not within the power factor range, and continue to adjust the first parameter again according to the API instruction; If the power value is within the power factor range, the adjustment of the first parameter is stopped and the next hardware parameter is calibrated.

4. The wireless network card calibration method according to claim 3, characterized in that: After the step of if the power value is not within the power factor range and continuing to adjust the first parameter again according to the API instruction, the method includes: When the accumulated mark value reaches a preset threshold, the wireless network card is controlled to stop outputting power.

5. A wireless network card calibration device, characterized in that: include: Factor statistics module, adjustment module and calibration module; The factor statistics module is used to set a cumulative flag bit and count consecutive identical API instruction factors according to the cumulative flag bit; The command factors include channel value, bandwidth value, power value and antenna port value; The adjustment module is used to set the initial value of the power factor according to the scheme of the wireless network card, and adjust the hardware parameters of the wireless network card according to the calibration software and the API instruction, including: controlling the output power of the wireless network card according to the calibration software and the first API instruction, and obtaining the power of the wireless network card according to the detection instrument; if the detection instrument fails to obtain the power of the wireless network card, repeatedly inputting the first API instruction until the detection instrument successfully obtains the wireless network card or the number of instruction inputs reaches a preset threshold, and continuing the calibration; The calibration module is used to obtain the power value corresponding to the wireless network card after each hardware parameter is adjusted, and perform power calibration on the wireless network card according to the power value, power factor and cumulative mark value.

6. The wireless network card calibration device as claimed in claim 5, characterized in that: The adjustment module is used for: Set the initial values ​​of various hardware parameters according to the API instructions, and set the corresponding initial value of the power factor according to the wireless network card solution; The calibration software adjusts the hardware parameters of the wireless network card one by one according to the API instruction and the initial values ​​of the hardware parameters and the initial value of the power factor, wherein the hardware parameters include channel, bandwidth, power and antenna port.

7. The wireless network card calibration device as claimed in claim 6, characterized in that: The calibration module is used for: After each adjustment of a first parameter of the wireless network card, a power value corresponding to the wireless network card is obtained; the first parameter is a currently adjusted hardware parameter; If the power value is not within the power factor range, and continue to adjust the first parameter again according to the API instruction; If the power value is within the power factor range, the adjustment of the first parameter is stopped and the next hardware parameter is calibrated.

8. The wireless network card calibration device as claimed in claim 5, characterized in that: The calibration module is further used for: When the accumulated mark value reaches a preset threshold, the wireless network card is controlled to stop outputting power.

Citation Information

Patent Citations

  • WiFi power calibration method based on server statistics

    CN108923864A