CN115766490A - Calibration data acquisition method, calibration data storage method, device and equipment - Google Patents

Calibration data acquisition method, calibration data storage method, device and equipment Download PDF

Info

Publication number
CN115766490A
CN115766490A CN202211270904.7A CN202211270904A CN115766490A CN 115766490 A CN115766490 A CN 115766490A CN 202211270904 A CN202211270904 A CN 202211270904A CN 115766490 A CN115766490 A CN 115766490A
Authority
CN
China
Prior art keywords
calibration data
storage space
bits
bit
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211270904.7A
Other languages
Chinese (zh)
Inventor
李骁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Guangzhou Quanshengwei Information Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Guangzhou Quanshengwei Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd, Guangzhou Quanshengwei Information Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202211270904.7A priority Critical patent/CN115766490A/en
Publication of CN115766490A publication Critical patent/CN115766490A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a calibration data acquisition method, a calibration data storage device and calibration data storage equipment, and belongs to the technical field of communication. According to the method, a plurality of calibration data of a WiFi chip to be calibrated are stored in a unit storage space, so that when target calibration data used for calibrating working parameters of the WiFi chip are acquired, an initial offset value and the number of bits corresponding to the target calibration data are acquired according to the working parameters, all bits included in the target calibration data are read from the unit storage space, and then analysis processing is performed on all the bits, so that the target calibration data are obtained. Since the number of bits included in the target calibration data may be any value smaller than the number of bits corresponding to the unit storage space, the present application is applicable to different cases of the number of bits included in the calibration data. Furthermore, since the unit memory space can store a plurality of calibration data, the memory resource usage rate of the unit memory space is high.

Description

Calibration data acquisition method, calibration data storage method, calibration data acquisition device, calibration data storage device and calibration data storage equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a calibration data obtaining method, a calibration data storing device, and a calibration data storing apparatus.
Background
After a WiFi (Wireless Fidelity ) chip is manufactured, stored calibration data needs to be acquired, and various operating parameters of the WiFi chip are calibrated according to the calibration data, so that the values of the various calibrated operating parameters meet the operating requirements of the WiFi chip.
Disclosure of Invention
The application provides a calibration data acquisition method, a calibration data storage device and calibration data storage equipment, which are used for storing a plurality of calibration data of a WiFi chip in a unit storage space and acquiring the calibration data stored in the unit storage space. The technical scheme is as follows:
in one aspect, the present application provides a method for acquiring calibration data, including:
acquiring working parameters of a WiFi chip to be calibrated;
based on the working parameters of the WiFi chip, acquiring an initial offset value and a bit number corresponding to target calibration data, wherein the initial offset value is used for indicating a start address of the target calibration data in a unit storage space, the target calibration data is used for calibrating the working parameters, and a plurality of calibration data are stored in the unit storage space;
reading respective bits included in the target calibration data from the unit storage space based on the initial offset value and the number of bits;
and analyzing each bit to obtain target calibration data.
In one possible implementation, the number of bits is less than the number of standard resolutions, the number of standard resolutions being the number of bits required to perform the data resolution; analyzing each bit to obtain target calibration data, including: writing each bit included in the target calibration data and a first number of first filling bits into a first spare storage space, wherein the number of bits corresponding to the first spare storage space is an integral multiple of the standard parsing number, and the first number is not less than the difference between the standard parsing number and the number of bits of the target calibration data; and performing data analysis on the bits included in the first spare storage space by taking the standard analysis quantity as a unit to obtain target calibration data.
In one possible implementation, writing the respective bits included in the target calibration data and the first number of first padding bits into the first spare memory space includes: writing an ith bit included in the target calibration data into an ith bit position of the first spare storage space, and writing a first number of first padding bits into the rest bit positions of the first spare storage space; where i is used to represent a sequence number, 1 ≦ i ≦ N or 0 ≦ i ≦ N-1, and N is used to represent the number of bits included in the target calibration data.
In a possible implementation manner, acquiring an initial offset value and a bit number corresponding to target calibration data based on a working parameter of a WiFi chip includes: and inquiring the corresponding relation between the working parameters and the offset value and the bit number based on the working parameters of the WiFi chip to obtain the initial offset value and the bit number corresponding to the target calibration data.
In a possible implementation manner, before acquiring the operating parameters of the WiFi chip to be calibrated, the method further includes: acquiring a calibration instruction, wherein the calibration instruction comprises identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the plurality of candidate WiFi chips according to the identification information included in the calibration instruction.
In another aspect, the present application provides a method for storing calibration data, including:
acquiring a plurality of calibration data of a WiFi chip to be calibrated, wherein one calibration data is used for calibrating one working parameter of the WiFi chip;
writing a plurality of calibration data into the unit memory space, wherein the starting address of the target calibration data in the plurality of calibration data in the unit memory space is indicated by the initial offset value, and the initial offset value and the number of bits corresponding to the target calibration data are used for reading each bit included in the target calibration data from the unit memory space.
In one possible implementation, writing a plurality of calibration data into a unit memory space includes: based on that the sum of the number of bits included in the plurality of calibration data is less than the number of bits corresponding to the second spare storage space, and the number of bits corresponding to the second spare storage space is less than or equal to the number of bits corresponding to the unit storage space, writing each bit included in the plurality of calibration data and a second number of second filling bits into the second spare storage space in sequence, where the second number is a difference between the number of bits corresponding to the second spare storage space and the sum of the number of bits included in the plurality of calibration data; and writing the bits included in the second spare storage space into the unit storage space.
In one possible implementation, sequentially writing the respective bits included in the plurality of calibration data and the second number of second padding bits into the second spare memory space includes: writing a jth bit of bits included in the plurality of calibration data into a jth bit position of the second spare storage space, and writing a second number of second padding bits into remaining bit positions of the second spare storage space; wherein j is used to represent a serial number, 1 ≦ j ≦ M or 0 ≦ j ≦ M-1, and M is used to represent the number of bits included in the plurality of calibration data.
In a possible implementation manner, after writing the plurality of calibration data into the unit storage space, the method further includes: for any one of the plurality of calibration data, acquiring an offset value corresponding to the any one of the plurality of calibration data according to a start address of the any one of the plurality of calibration data in the unit memory space; and generating the corresponding relation of the working parameters, the deviation values and the bit number based on the working parameters, the deviation values and the bit number corresponding to the calibration data.
In a possible implementation manner, before acquiring a plurality of calibration data of the WiFi chip to be calibrated, the method further includes: acquiring a storage instruction, wherein the storage instruction comprises identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the plurality of candidate WiFi chips according to the identification information included in the storage instruction.
In another aspect, an apparatus for acquiring calibration data is provided, the apparatus including:
the first acquisition module is used for acquiring working parameters of the WiFi chip to be calibrated;
the first obtaining module is further configured to obtain an initial offset value and a bit number corresponding to the target calibration data based on the working parameters of the WiFi chip, where the initial offset value is used to indicate a start address of the target calibration data in a unit storage space, the target calibration data is used to calibrate the working parameters, and the unit storage space stores multiple calibration data;
a second obtaining module, configured to read each bit included in the target calibration data from the unit storage space based on the initial offset value and the number of bits;
and the second acquisition module is also used for analyzing each bit to obtain target calibration data.
In one possible implementation, the number of bits is less than the number of standard parses, which is the number of bits required to perform data parsing; a second obtaining module, configured to write each bit included in the target calibration data and a first number of first padding bits into a first spare storage space, where a number of bits corresponding to the first spare storage space is an integer multiple of a standard parsing number, and the first number is not less than a difference between the standard parsing number and a number of bits of the target calibration data; and performing data analysis on the bits included in the first spare storage space by taking the standard analysis quantity as a unit to obtain target calibration data.
In a possible implementation manner, the second obtaining module is configured to write an ith bit included in the target calibration data into an ith bit position of the first spare storage space, and write a first number of first padding bits into the remaining bit positions of the first spare storage space; wherein i is used to represent a serial number, 1. Ltoreq. I.ltoreq.N or 0. Ltoreq. I.ltoreq.N-1, N is used to represent the number of bits included in the target calibration data.
In a possible implementation manner, the first obtaining module is configured to query, based on a working parameter of the WiFi chip, a corresponding relationship between the working parameter and the offset value and the number of bits, and obtain an initial offset value and the number of bits corresponding to the target calibration data.
In a possible implementation manner, the first obtaining module is further configured to obtain a calibration instruction, where the calibration instruction includes identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the plurality of candidate WiFi chips according to the identification information included in the calibration instruction.
In another aspect, there is provided a calibration data storage apparatus, including:
the device comprises an acquisition module, a calibration module and a calibration module, wherein the acquisition module is used for acquiring a plurality of calibration data of a WiFi chip to be calibrated, and one calibration data is used for calibrating one working parameter of the WiFi chip;
the writing module is used for writing the plurality of calibration data into the unit storage space, the starting address of target calibration data in the plurality of calibration data in the unit storage space is indicated by the initial offset value, and the initial offset value and the number of bits corresponding to the target calibration data are used for reading each bit included in the target calibration data from the unit storage space.
In a possible implementation manner, the writing module is configured to, based on that a sum of numbers of bits included in the plurality of calibration data is smaller than a number of bits corresponding to the second spare storage space, and the number of bits corresponding to the second spare storage space is smaller than or equal to the number of bits corresponding to the unit storage space, sequentially write each of the bits included in the plurality of calibration data and a second number of second padding bits into the second spare storage space, where the second number is a difference between the number of bits corresponding to the second spare storage space and the sum of the numbers of bits included in the plurality of calibration data; and writing the bits included in the second spare storage space into the unit storage space.
In a possible implementation manner, the writing module is configured to write a jth bit of bits included in the plurality of calibration data into a jth bit position of the second spare storage space, and write a second number of second padding bits into remaining bit positions of the second spare storage space; wherein j is used to represent a serial number, 1 ≦ j ≦ M or 0 ≦ j ≦ M-1, and M is used to represent the number of bits included in the plurality of calibration data.
In a possible implementation manner, the obtaining module is further configured to, for any one of the plurality of calibration data, obtain, according to a start address of the any one of the plurality of calibration data in the unit storage space, an offset value corresponding to the any one of the plurality of calibration data; and generating the corresponding relation of the working parameters, the deviation values and the bit quantity based on the working parameters, the deviation values and the bit quantity corresponding to the calibration data.
In a possible implementation manner, the obtaining module is further configured to obtain a storage instruction, where the storage instruction includes identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the candidate WiFi chips according to the identification information included in the storage instruction.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, and the memory stores at least one computer program, and the at least one computer program is loaded by the processor and executed to enable the computer device to implement any one of the above-mentioned method for acquiring calibration data or any one of the above-mentioned method for storing calibration data.
In another aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor, so as to enable a computer to implement any one of the above-mentioned method for acquiring calibration data or any one of the above-mentioned method for storing calibration data.
In another aspect, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer readable storage medium. A processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute any one of the above-described acquisition methods of calibration data or any one of the above-described storage methods of calibration data.
The technical scheme provided by the application at least brings the following beneficial effects:
in the present application, a plurality of calibration data of the WiFi chip to be calibrated are stored in the unit storage space. Therefore, when the working parameters of the WiFi chip need to be calibrated by using the target calibration data, the target calibration data can be obtained by reading each bit included in the target calibration data from the unit storage space and then analyzing each bit. Since the number of bits included in the target calibration data may be any value smaller than the number of bits corresponding to the unit storage space, the scheme of the present application is applicable to different cases of the number of bits included in the calibration data. Furthermore, since the unit memory space can store a plurality of calibration data, the memory resource usage rate of the unit memory space is high.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a method for storing calibration data according to an embodiment of the present application;
fig. 3 is a flowchart of a method for acquiring calibration data according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for acquiring calibration data according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a calibration data storage device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a server provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
After the WiFi chip is manufactured, the test equipment for testing the WiFi chip needs to acquire stored calibration data, and then the calibration data is used for calibrating the working parameters of the WiFi chip, so that the numerical values of the calibrated working parameters meet the working requirements of the WiFi chip. Wherein the test device may retrieve the stored calibration data by running test software. If the test software is developed using C language, since the standard data type with the least number of bits among the plurality of standard data types of C language is a character (char) type corresponding to 8 bits (bits), the number of bits included in the data that can be processed by the test software needs to be equal to or greater than 8 bits.
In the related art, in order to satisfy the requirement that the number of bits is equal to or greater than 8 bits, each calibration data is stored in one byte (byte) of 8 bits, and each calibration data is acquired by parsing each byte of 8 bits. In the case where the calibration data includes less than 8 bits, this way of storing the calibration data will result in a waste of memory resources.
The embodiment of the application provides a calibration data acquisition method and a calibration data storage method, which are used for acquiring target calibration data in a plurality of calibration data stored in a unit storage space and improving the utilization rate of storage resources of the unit storage space. Fig. 1 is a schematic diagram illustrating an implementation environment provided by an embodiment of the present application. The implementation environment may include: a terminal 11 and a server 12.
The method for acquiring calibration data provided in the embodiment of the present application may be executed by the terminal 11, or may be executed by the server 12, or may be executed by both the terminal 11 and the server 12, which is not limited in the embodiment of the present application. That is, both the terminal 11 and the server 12 can be used as a test device for testing the WiFi chip. For example, in the case that the method for acquiring calibration data provided in the embodiment of the present application is executed by the terminal 11 and the server 12 together, the server 12 undertakes primary computation work, and the terminal 11 undertakes secondary computation work; or, the server 12 undertakes the secondary computing work, and the terminal 11 undertakes the primary computing work; alternatively, the server 12 and the terminal 11 perform cooperative computing by using a distributed computing architecture.
The method for storing the calibration data provided in the embodiment of the present application may be executed by the terminal 11, or may be executed by the server 12, or may be executed by both the terminal 11 and the server 12, which is not limited in the embodiment of the present application. In the case that the storage method of the calibration data provided by the embodiment of the present application is executed by the terminal 11 and the server 12 together, the server 12 undertakes the primary calculation work, and the terminal 11 undertakes the secondary calculation work; or, the server 12 undertakes the secondary computing work, and the terminal 11 undertakes the primary computing work; alternatively, the server 12 and the terminal 11 perform cooperative computing by using a distributed computing architecture.
It should be noted that the execution device of the method for acquiring calibration data may be the same as or different from the execution device of the method for storing calibration data, and this is not limited in this embodiment of the present application.
In one possible implementation, the terminal 11 may be any electronic product capable of performing human-Computer interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC, palmtop Computer), a tablet Computer, a smart car machine, a smart television, a smart speaker, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, and the like. The server 12 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. The terminal 11 and the server 12 establish a communication connection through a wired or wireless network.
It should be understood by those skilled in the art that the above-mentioned terminal 11 and server 12 are only examples, and other existing or future terminals or servers may be suitable for the present application and are included within the scope of the present application and are herein incorporated by reference.
The calibration data storage method provided in the embodiment of the present application may be as shown in fig. 2, and the method may be executed by a test device for testing a WiFi chip, and in combination with the implementation scenario shown in fig. 1, the test device may be a terminal 11 or a server 12. As shown in fig. 2, the method includes, but is not limited to, step 201 and step 202.
In step 201, calibration data of a WiFi chip to be calibrated is obtained, and one calibration data is used to calibrate an operating parameter of the WiFi chip.
Illustratively, before acquiring a plurality of calibration data of the WiFi chip to be calibrated, the method further comprises: acquiring a storage instruction, wherein the storage instruction comprises identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the plurality of candidate WiFi chips according to the identification information included in the storage instruction. The method provided by the embodiment of the application can be suitable for a scene with a plurality of candidate WiFi chips, and the test equipment can determine the chip to be calibrated from the plurality of candidate WiFi chips based on the identification information in the acquired storage instruction, so as to execute the processes of acquiring a plurality of calibration data of the WiFi chip to be calibrated and writing the plurality of calibration data into the unit storage space. The embodiment of the application does not limit the manner of obtaining the storage instruction, and the test equipment can generate the storage instruction or receive the storage instruction sent by other equipment.
Whichever way the test device is triggered to determine the WiFi chip to be calibrated, the way for the test device to obtain the plurality of calibration data of the WiFi chip to be calibrated includes but is not limited to: the test equipment generates a plurality of calibration data of the WiFi chip to be calibrated, or receives a plurality of calibration data of the WiFi chip to be calibrated, which are sent by other equipment. The other device sending the plurality of calibration data of the WiFi chip to be calibrated may be the device sending the storage instruction to the test device. In addition, whether the test equipment generates the plurality of calibration data of the WiFi chip to be calibrated or other equipment except the test equipment generates the plurality of calibration data of the WiFi chip to be calibrated, the generating the plurality of calibration data of the WiFi chip to be calibrated includes but is not limited to: acquiring initial values of all working parameters of a WiFi chip to be calibrated; for any one of the operating parameters, calibration data corresponding to the any one of the operating parameters is calculated based on the initial value of the any one of the operating parameters.
In the embodiment of the present application, the operating parameters of the WiFi chip to be calibrated include, but are not limited to, power and frequency offset, and accordingly, the plurality of calibration data includes, but is not limited to, power calibration data and frequency calibration data. The power calibration data is used for calibrating power, and the frequency calibration data is used for calibrating frequency. For example, the power calibration data may comprise 4 bits and the frequency calibration data may comprise 3 bits.
In step 202, a plurality of calibration data are written into the unit memory space.
The unit storage space may be a granularity used by the test device in determining the size of the storage space, in other words, the test device determines the size of the storage space according to an integer multiple of the unit storage space. For example, if the unit storage space is an 8-bit byte, the test device determines the size of the storage space in integer multiples of the 8-bit byte.
In the embodiment of the present application, when the test equipment writes the plurality of calibration data into the unit memory space, the method includes, but is not limited to, writing the plurality of calibration data into the unit memory space in the order in which the plurality of calibration data are acquired. The starting address of the target calibration data in the unit storage space in the plurality of calibration data is indicated by the initial offset value, and the initial offset value and the number of bits corresponding to the target calibration data can be used for reading each bit included in the target calibration data from the unit storage space.
In one possible implementation, writing a plurality of calibration data to a unit memory space includes: based on that the sum of the number of bits included in the plurality of calibration data is less than the number of bits corresponding to the second spare storage space, and the number of bits corresponding to the second spare storage space is less than or equal to the number of bits corresponding to the unit storage space, writing each bit included in the plurality of calibration data and a second number of padding bits into the second spare storage space in sequence, where the second number is a difference between the number of bits corresponding to the second spare storage space and the sum of the number of bits included in the plurality of calibration data; and writing the bits included in the second spare storage space into the unit storage space.
Illustratively, the number of bits corresponding to the second spare storage space is the number of bits required to write data into the unit storage space. In the case that the sum of the number of bits included in the plurality of calibration data is smaller than the number of bits corresponding to the second spare storage space, writing the respective bits of the plurality of calibration data and the second filler bits of the second number into the second spare storage space enables writing the respective bits of the plurality of calibration data into the unit storage space by writing the bits included in the second spare storage space into the unit storage space. In this embodiment, the number of bits corresponding to the second spare storage space may be 8 bits. The test equipment can write the bits included in the second spare memory space into the unit memory space by using the test software using the C language as the development language.
In a possible implementation manner, sequentially writing the respective bits included in the plurality of calibration data and the second number of second padding bits into the second spare memory space includes: writing a jth bit of bits included in the plurality of calibration data into a jth bit position of the second spare storage space, and writing a second number of second padding bits into remaining bit positions of the second spare storage space; wherein j is used for representing a serial number, j is more than or equal to 1 and less than or equal to M or j is more than or equal to 0 and less than or equal to M-1, and M is used for representing the number of bits included by the plurality of calibration data. In the embodiment of the present application, the second padding bit may be 0.
Illustratively, for any one bit in each of the bits included in the plurality of calibration data, when the any one bit is written into the corresponding bit position in the second spare storage space, the bit position corresponding to the any one bit is cleared first, and then the any one bit is written into the cleared bit position. The principle is the same when any one of the second padding bits is written into the corresponding bit position in the second spare storage space, and details are not repeated here.
Regarding the way of writing the bits included in the second spare memory space into the unit memory space, the method includes but is not limited to: for any bit in a plurality of bits included in the second spare storage space, acquiring a storage address corresponding to the any bit in the unit storage space, clearing the storage address corresponding to the any bit, and writing the any bit into the cleared storage address. The storage address corresponding to any one bit may be determined based on a bit position of the any one bit in the second spare storage space and a start address of a bit included in the second spare storage space in the unit storage space.
For example, for the s-th bit in the plurality of bits included in the second spare storage space, the storage address corresponding to the s-th bit is A + s, A is used for indicating the starting address of the bit included in the second spare storage space in the unit storage space, s is used for indicating the sequence number, 1 ≦ s ≦ K or 0 ≦ s ≦ K-1, and K is used for indicating the number of bits included in the second spare byte. For example, in a case where the second spare storage space includes the same number of bits as the number of bits corresponding to the unit storage space, a start address of the bits included in the second spare storage space in the unit storage space may be the same as a start address of the unit storage space. In a case where the number of bits included in the second spare memory space is smaller than the number of bits corresponding to the unit memory space, a start address of each bit included in the second spare memory space in the unit memory space may be the same as or different from a start address of the unit memory space.
In one possible implementation, the unit storage space is a byte of a plurality of consecutive bytes. In this case, the storage address corresponding to the s-th bit may be indicated by a first byte destination index (byte _ dst _ idx) and a first bit destination index (bit _ dst _ idx), where the first byte destination index is used to indicate a start address of the unit storage space, and the first bit destination index is used to indicate a deviation between the storage address corresponding to the s-th bit and the start address of the unit storage space. Taking the example that the start address of the bits included in the second spare memory space in the unit memory space is the same as the start address of the unit memory space, the embodiment of the present application provides a code logic for writing the bits included in the second spare memory space into the unit memory space, where the code logic may be as follows:
Figure BDA0003892694410000101
Figure BDA0003892694410000111
in the code logic, the starting address of the unit memory space is represented by bit _ offset, and the number of bits included in the second spare memory space is represented by bit _ cnt. The first byte source index is used for indicating the bit position of the bit in the second spare storage space, and the bit sequence number is represented by bit _ src _ cnt. Thus, in conjunction with the code logic, the s-th bit may be written to the corresponding memory address by performing operations (11) through (14) as follows for the s-th bit in the second spare memory space.
And operation (11) of obtaining a storage location corresponding to the s-th bit based on the bit _ offset, wherein the storage location corresponding to the s-th bit is indicated by the index of the first byte destination and the index of the first bit destination.
And (12) clearing the storage position corresponding to the s-th bit.
In operation (13), the first byte source index of the s-th bit is obtained.
And (14) reading the s-th bit from the second spare storage space according to the first byte source index, and writing the s-th bit into the cleared storage position.
After the operations (11) to (14) are performed on the s-th bit, operations similar to the operations (11) to (14) may be performed on the s + 1-th bit again until each bit of the second spare memory space is written into the corresponding memory location.
Illustratively, after writing the plurality of calibration data into the unit memory space, the method further includes: for any one of the plurality of calibration data, acquiring an offset value corresponding to the any one of the plurality of calibration data according to a start address of the any one of the plurality of calibration data in the unit memory space; and generating the corresponding relation of the working parameters, the deviation values and the bit quantity based on the working parameters, the deviation values and the bit quantity corresponding to the calibration data. Therefore, when target calibration data in the plurality of calibration data is acquired subsequently, the initial offset value and the bit number corresponding to the target calibration data can be acquired by searching the corresponding relation between the working parameter and the offset value and the bit number, and then the target calibration data is acquired.
In the method provided by the embodiment of the application, the plurality of calibration data of the WiFi chip to be calibrated are stored in the unit storage space, so that the utilization rate of the storage resources of the unit storage space is higher. Furthermore, the number of bits included in each calibration data may be different, and the method can be applied to different cases of the number of bits included in the calibration data.
The embodiment of the present application further provides a method for acquiring calibration data, where the method may be executed by a test device for testing a WiFi chip, and with reference to the implementation environment shown in fig. 1, the test device may be a terminal 11 or a server 12. As shown in fig. 3, the method for acquiring calibration data provided in the embodiment of the present application may include the following steps 301 to 304.
In step 301, the operating parameters of the WiFi chip to be calibrated are obtained.
Before obtaining the operating parameters of the WiFi chip to be calibrated, the method may further include: acquiring a calibration instruction, wherein the calibration instruction comprises identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the plurality of candidate WiFi chips according to the identification information included in the calibration instruction. Therefore, after the WiFi chip to be calibrated is determined, the working parameters of the WiFi chip to be calibrated can be obtained according to the determined WiFi chip to be calibrated.
For example, the test equipment stores the operating parameters of each candidate WiFi chip. After the WiFi chip to be calibrated is determined, the test equipment acquires the stored working parameters of the WiFi chip to be calibrated. Of course, the operating parameters of each candidate WiFi chip may also be stored in other devices besides the test device. In this case, after the WiFi chips to be calibrated are determined, the test device may send a working parameter obtaining request to other devices in which the working parameters of each WiFi chip are stored, and receive the working parameters of the WiFi chips to be calibrated, which are returned by the other devices in response to the working parameter obtaining request.
In the embodiment of the application, the test equipment can also directly acquire the working parameters of the WiFi chip to be calibrated, and the WiFi chip to be calibrated does not need to be determined first. For example, the test equipment receives a first instruction input from the outside, the first instruction includes working parameter indication information, and the working parameter indication information is used for indicating the working parameters of the WiFi chip to be calibrated, so that the test equipment can acquire the working parameters of the WiFi chip to be calibrated according to the working parameter indication information. The first instruction may be an instruction sent by the device storing the operating parameters of the WiFi chip to the testing device.
In step 302, an initial offset value and a number of bits corresponding to the target calibration data are obtained based on the operating parameters of the WiFi chip.
Illustratively, the initial offset value is used to indicate a start address of target calibration data used for calibrating the operating parameter in a unit memory space in which a plurality of calibration data are stored.
In a possible implementation manner, acquiring an initial offset value and a bit number corresponding to target calibration data based on operating parameters of a WiFi chip includes: based on the working parameters of the WiFi chip, the corresponding relation between the working parameters and the deviation value and the corresponding relation between the working parameters and the number of bits are inquired, and the initial deviation value and the number of bits corresponding to the target calibration data are obtained. The corresponding relationship between the operating parameter and the offset value and the number of bits may be the corresponding relationship between the operating parameter and the offset value and the number of bits generated in the embodiment of the calibration data storage method shown in fig. 2.
In step 303, the respective bits included in the target calibration data are read from the unit storage space based on the initial offset value and the number of bits.
Illustratively, reading the respective bits included in the target calibration data from the unit storage space based on the initial offset value and the number of bits includes: the address of the unit memory space is acquired, and the respective bits included in the target calibration data are read from the unit memory space based on the initial offset value and the number of bits. For example, if the unit memory space is one of a plurality of consecutive bytes, the address of the unit memory space may be determined first, and the bits included in the target calibration data may be read from the unit memory space.
In this case, the storage address of the i-th bit included in the target calibration data may be indicated by a second byte source index indicating a start address of the unit storage space and a second bit source index indicating a deviation of the storage address of the i-th bit from the start address of the unit storage space. Since the start address of the target calibration data in the unit storage space may be indicated by the initial offset value corresponding to the target calibration data, the second bit source index corresponding to the ith bit may be equal to the initial offset value + i.
In step 304, each bit is parsed to obtain target calibration data.
Illustratively, the target calibration data includes a number of bits that is less than a standard parsing number, which is the number of bits required to perform the data parsing. For example, the standard parsing number is the number of bits for performing data parsing by test software in which C language is a development language. The standard parsing number may be 8 bits. Analyzing each bit to obtain target calibration data, including: writing each bit included in the target calibration data and a first number of first filling bits into a first spare storage space, wherein the number of bits corresponding to the first spare storage space is an integral multiple of the standard parsing number, and the first number is not less than a difference between the standard parsing number and the number of bits of the target calibration data; and performing data analysis on the first spare storage space by taking the standard analysis quantity as a unit to obtain target calibration data. The first spare storage space may be an 8-bit byte and the first padding bit may be 0.
The target calibration data is written into the first spare storage space by taking the first spare storage space as a transfer, data analysis is performed on bits included in the first spare storage space by taking the standard analysis quantity as a unit, and the test software taking the C language as a development language can obtain the target calibration data by analyzing the bits included in the first spare storage space. Therefore, each calibration data does not need to be stored in different unit storage spaces, and the method provided by the embodiment of the application can improve the utilization rate of the storage resources of the unit storage spaces while realizing the acquisition of the target calibration data.
Illustratively, writing the respective bits comprised by the target calibration data and the first number of first filler bits into the first spare memory space comprises: writing an ith bit included in the target calibration data into an ith bit position of the first spare storage space, and writing a first number of first padding bits into the rest bit positions of the first spare storage space; where i is used to represent a sequence number, 1 ≦ i ≦ N or 0 ≦ i ≦ N-1, and N is used to represent the number of bits included in the target calibration data. For any one of the bits included in the target calibration data, when the any one bit is written into the corresponding bit position in the first spare storage space, the corresponding bit position may be cleared first, and the any one bit may be written into the cleared bit position. The principle is the same when any one of the first padding bits is written into the corresponding bit position in the first spare storage space, and details are not repeated here.
In the embodiment of the present application, reading the respective bits included in the target calibration data and writing the respective bits included in the target calibration data into the first spare memory space may be performed alternately. That is, after the ith bit included in the target calibration data is read, the ith bit may be written into the first spare memory space, and then the (i + 1) th bit included in the target calibration data is read, and the (i + 1) th bit may be written into the first spare memory space. By performing the operations of reading and writing bits in an interleaving manner, the read bits can be directly written into the first spare storage space, and the read bits do not need to occupy other storage spaces except the first spare storage space to store the read bits and do not need to be transferred from the other storage spaces to the first spare storage space. The method for performing reading bits and writing bits in an interleaving mode can reduce occupation of storage space, and shorten time from reading each bit to writing each bit into the first spare storage space.
Taking a unit storage space as an example of one of a plurality of consecutive bytes, the present application provides a code logic for writing each bit of target calibration data into a first spare storage space, where the code logic may be as follows:
Figure BDA0003892694410000141
Figure BDA0003892694410000151
in the code logic, the starting read address is obtained according to the starting address of the unit memory space and the initial offset value corresponding to the target calibration data, the starting read address ori _ offset represents, and the number of bits included in the target calibration data is represented by target _ cnt. The index of the second byte is used to indicate the bit position of the bit included in the target calibration data in the first spare memory space, and the bit sequence number is represented by bit _ dst _ cnt. Thus, in conjunction with the code logic, an ith bit may be written to an ith bit position in the first spare memory space by performing operations (21) through (24) on an ith bit included in the target calibration data.
Operation (21) obtains a memory address of an i-th bit, which is indicated by the second byte source index and the second bit source index, based on the ori _ offset.
Operation (22) obtains an index of the second byte of the ith bit.
And operation (23) is to clear the bit position of the ith bit in the first spare storage space according to the index of the second byte.
And an operation (24) of reading the ith bit from the storage address of the ith bit and writing the ith bit into the cleared bit position based on the second byte source index and the second bit source index.
After the above operations (21) to (24) are performed on the ith bit, operations similar to the above operations (21) to (24) may be performed on the (i + 1) th bit again until each bit of the target calibration data is written into the corresponding bit position.
In the method provided by the embodiment of the application, a plurality of calibration data of the WiFi chip to be calibrated are stored in the unit storage space. When the target calibration data is needed to calibrate the working parameters of the WiFi chip to be calibrated, the initial offset and the number of bits corresponding to the target calibration data may be obtained first, and each bit included in the target calibration data is read from the unit storage space according to the initial offset and the number of bits, so that the target calibration data can be obtained by performing analysis processing on each read bit.
Since the number of bits included in the target calibration data may be any value smaller than the number of bits corresponding to the unit memory space, the method is applicable to different cases of the number of bits included in the calibration data. Furthermore, since the unit memory space can store a plurality of calibration data, the memory resource usage rate of the unit memory space is high.
Referring to fig. 4, an embodiment of the present application provides an apparatus for acquiring calibration data, where the apparatus includes: a first acquisition module 401 and a second acquisition module 402.
A first obtaining module 401, configured to obtain working parameters of a WiFi chip to be calibrated;
the first obtaining module 401 is further configured to obtain an initial offset value and a bit number corresponding to the target calibration data based on the working parameters of the WiFi chip, where the initial offset value is used to indicate a start address of the target calibration data in a unit storage space, the target calibration data is used to calibrate the working parameters, and the unit storage space stores multiple calibration data;
a second obtaining module 402, configured to read each bit included in the target calibration data from the unit storage space based on the initial offset value and the number of bits;
the second obtaining module 402 is further configured to perform parsing on each bit to obtain target calibration data.
In one possible implementation, the number of bits is less than the number of standard parses, which is the number of bits required to perform data parsing; a second obtaining module 402, configured to write each bit included in the target calibration data and a first number of first padding bits into a first spare storage space, where a number of bits corresponding to the first spare storage space is an integer multiple of a standard parsing number, and the first number is not less than a difference between the standard parsing number and a number of bits of the target calibration data; and performing data analysis on the bits included in the first spare storage space by taking the standard analysis quantity as a unit to obtain target calibration data.
In a possible implementation manner, the second obtaining module 402 is configured to write an ith bit included in the target calibration data into an ith bit position of the first spare storage space, and write a first number of first padding bits into the remaining bit positions of the first spare storage space; where i is used to represent a sequence number, 1 ≦ i ≦ N or 0 ≦ i ≦ N-1, and N is used to represent the number of bits included in the target calibration data.
In a possible implementation manner, the first obtaining module 401 is configured to query a corresponding relationship between the working parameter and the offset value and between the working parameter and the number of bits based on the working parameter of the WiFi chip, and obtain an initial offset value and a number of bits corresponding to the target calibration data.
In a possible implementation manner, the first obtaining module 401 is further configured to obtain a calibration instruction, where the calibration instruction includes identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the plurality of candidate WiFi chips according to the identification information included in the calibration instruction.
In the device provided by the embodiment of the application, a plurality of calibration data of the WiFi chip to be calibrated are stored in the unit storage space. When the target calibration data is needed to calibrate the working parameters of the WiFi chip to be calibrated, the initial offset and the number of bits corresponding to the target calibration data may be obtained first, and each bit included in the target calibration data is read from the unit storage space according to the initial offset and the number of bits, so that the target calibration data can be obtained by performing analysis processing on each read bit.
Since the number of bits included in the target calibration data may be any value smaller than the number of bits corresponding to the unit storage space, the apparatus is applicable to different cases of the number of bits included in the calibration data. Furthermore, since the unit memory space can store a plurality of calibration data, the memory resource usage rate of the unit memory space is high.
Referring to fig. 5, an embodiment of the present application provides a calibration data storage apparatus, including: an acquisition module 501 and a write module 502.
An obtaining module 501, configured to obtain multiple calibration data of a WiFi chip to be calibrated, where one calibration data is used to calibrate one working parameter of the WiFi chip;
a writing module 502, configured to write a plurality of calibration data into the unit memory space, where a start address of target calibration data in the plurality of calibration data in the unit memory space is indicated by the initial offset value, and the initial offset value and the number of bits corresponding to the target calibration data are used to read each bit included in the target calibration data from the unit memory space.
In a possible implementation manner, the writing module 502 is configured to, based on that a sum of numbers of bits included in the plurality of calibration data is smaller than a number of bits corresponding to the second spare storage space, and the number of bits corresponding to the second spare storage space is smaller than or equal to the number of bits corresponding to the unit storage space, sequentially write each bit included in the plurality of calibration data and a second number of second padding bits into the second spare storage space, where the second number is a difference between the number of bits corresponding to the second spare storage space and the sum of the numbers of bits included in the plurality of calibration data; and writing the bits included in the second spare storage space into the unit storage space.
In a possible implementation manner, the writing module 502 is configured to write a jth bit of bits included in the plurality of calibration data into a jth bit position of the second spare storage space, and write a second number of second padding bits into remaining bit positions of the second spare storage space; wherein j is used for representing a serial number, j is more than or equal to 1 and less than or equal to M or j is more than or equal to 0 and less than or equal to M-1, and M is used for representing the number of bits included by the plurality of calibration data.
In a possible implementation manner, the obtaining module 501 is further configured to, for any calibration data in the multiple calibration data, obtain an offset value corresponding to the any calibration data according to a start address of the any calibration data in the unit storage space; and generating the corresponding relation of the working parameters, the deviation values and the bit quantity based on the working parameters, the deviation values and the bit quantity corresponding to the calibration data.
In a possible implementation manner, the obtaining module 501 is further configured to obtain a storage instruction, where the storage instruction includes identification information of a WiFi chip to be calibrated; and determining the WiFi chip to be calibrated from the candidate WiFi chips according to the identification information included in the storage instruction.
In the device provided by the embodiment of the application, the plurality of calibration data of the WiFi chip to be calibrated are stored in the unit storage space, so that the utilization rate of the storage resources of the unit storage space is higher. Furthermore, the number of bits included in each calibration data may be different, and the apparatus can be adapted to different cases of the number of bits included in the calibration data.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments, which are not described herein again.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application, where the server may generate a relatively large difference due to a difference in configuration or performance, and may include one or more processors 601 and one or more memories 602, where at least one computer program is stored in the one or more memories 602, and is loaded and executed by the one or more processors 601, so as to enable the server to implement the method for storing the calibration data provided in the method embodiment shown in fig. 2 or the method for acquiring the calibration data shown in fig. 3. Processor 601 may be a Central Processing Unit (CPU). Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal may be: a smart phone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III, moving Picture Experts Group Audio Layer IV, moving Picture Experts Group Audio Layer 4) player, a notebook computer, or a desktop computer. A terminal may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, a terminal includes: a processor 1001 and a memory 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor, where the main processor is a processor, also called a CPU, for processing data in an awake state; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. Memory 1002 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer readable storage medium in the memory 1002 is configured to store at least one instruction, which is configured to be executed by the processor 1001, so as to enable the terminal to implement the method for storing the calibration data provided by the method embodiment shown in fig. 2 or the method for acquiring the calibration data provided by the method embodiment shown in fig. 3.
In some embodiments, the terminal may further optionally include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002, and peripheral interface 1003 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, display screen 1005, camera assembly 1006, audio circuitry 1007, positioning assembly 1008, and power supply 1009.
Peripheral interface 1003 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi networks. In some embodiments, the radio frequency circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to capture touch signals on or over the surface of the display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this point, the display screen 1005 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1005 may be one, disposed on a front panel of the terminal; in other embodiments, the display screens 1005 may be at least two, respectively disposed on different surfaces of the terminal or in a folded design; in other embodiments, the display 1005 may be a flexible display, disposed on a curved surface or a folded surface of the terminal. Even more, the display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1005 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, the main camera and the wide-angle camera are fused to realize panoramic shooting and a VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1001 for processing or inputting the electric signals into the radio frequency circuit 1004 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones can be arranged at different parts of the terminal respectively. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The loudspeaker can be a traditional film loudspeaker and can also be a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1007 may also include a headphone jack.
The positioning component 1008 is used to locate the current geographic Location of the terminal for navigation or LBS (Location Based Service). The Positioning component 1008 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 1009 is used to supply power to each component in the terminal. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery can also be used to support fast charge technology.
In some embodiments, the terminal also includes one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
The acceleration sensor 1011 can detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal. For example, the acceleration sensor 1011 can be used to detect the components of the gravitational acceleration on three coordinate axes. The processor 1001 may control the display screen 1005 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the terminal, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to collect a 3D motion of the user with respect to the terminal. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 1013 may be disposed on a side frame of the terminal and/or on a lower layer of the display screen 1005. When the pressure sensor 1013 is disposed on a side frame of the terminal, a user's holding signal of the terminal can be detected, and the processor 1001 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is disposed at a lower layer of the display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1005. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the user according to the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 1014 may be disposed on the front, rear, or side of the terminal. When a physical key or a manufacturer Logo (trademark) is provided on the terminal, the fingerprint sensor 1014 may be integrated with the physical key or the manufacturer Logo.
Optical sensor 1015 is used to collect ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
A proximity sensor 1016, also known as a distance sensor, is typically provided on the front panel of the terminal. The proximity sensor 1016 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 1016 detects that the distance between the user and the front surface of the terminal gradually decreases, the processor 1001 controls the display screen 1005 to switch from the bright screen state to the dark screen state; when the proximity sensor 1016 detects that the distance between the user and the front surface of the terminal gradually becomes larger, the display screen 1005 is controlled by the processor 1001 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer device is also provided, the computer device comprising a processor and a memory, the memory having at least one computer program stored therein. The at least one computer program is loaded and executed by one or more processors to cause a computer device to implement any one of the above-described methods for acquiring calibration data or any one of the above-described methods for storing calibration data.
In an exemplary embodiment, a test system is further provided, where the test system includes a first test device and a second test device, the first test device is configured to execute the method for storing the calibration data provided in the method embodiment shown in fig. 2, and the second test device is configured to execute the method for acquiring the calibration data provided in the method embodiment shown in fig. 3. The respective functions of the first testing device and the second testing device can refer to the related descriptions of fig. 2 and fig. 3, and are not described in detail here.
In an exemplary embodiment, there is also provided a computer-readable storage medium having at least one computer program stored therein, the at least one computer program being loaded and executed by a processor of a computer device to cause the computer to implement any one of the above-mentioned methods for acquiring calibration data or any one of the above-mentioned methods for storing calibration data. 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), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. A processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform any one of the above-described methods for acquiring calibration data or any one of the above-described methods for storing calibration data.
It should be noted that information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals referred to in this application are authorized by the user or sufficiently authorized by various parties, and the collection, use, and processing of the relevant data is required to comply with relevant laws and regulations and standards in relevant countries and regions. For example, the calibration data referred to in this application is obtained with sufficient authorization.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above description is only an exemplary embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the principle of the present application should be included in the protection scope of the present application.

Claims (14)

1. A method of obtaining calibration data, the method comprising:
acquiring working parameters of a wireless fidelity WiFi chip to be calibrated;
acquiring an initial offset value and a bit number corresponding to target calibration data based on working parameters of the WiFi chip, wherein the initial offset value is used for indicating a start address of the target calibration data in a unit storage space, the target calibration data is used for calibrating the working parameters, and a plurality of calibration data are stored in the unit storage space;
reading respective bits included in the target calibration data from the unit storage space based on the initial offset value and the number of bits;
and analyzing each bit to obtain the target calibration data.
2. The method of claim 1, wherein the number of bits is less than a standard number of parses, the standard number of parses being the number of bits required to perform data parsing;
the analyzing the bits to obtain the target calibration data includes:
writing each bit included in the target calibration data and a first number of first padding bits into a first spare storage space, where the number of bits corresponding to the first spare storage space is an integer multiple of the standard parsing number, and the first number is not less than a difference between the standard parsing number and the number of bits of the target calibration data;
and performing data analysis on bits included in the first spare storage space by taking the standard analysis quantity as a unit to obtain the target calibration data.
3. The method of claim 2, wherein writing the respective bits included in the target calibration data and the first number of first padding bits into a first spare memory space comprises:
writing an ith bit included in the target calibration data into an ith bit position of the first spare storage space, and writing the first number of first padding bits into the remaining bit positions of the first spare storage space; wherein i is used for representing a sequence number, i is greater than or equal to 1 and less than or equal to N or i is greater than or equal to 0 and less than or equal to N-1, and N is used for representing the number of bits included in the target calibration data.
4. The method according to any one of claims 1 to 3, wherein the obtaining of the initial offset value and the number of bits corresponding to the target calibration data based on the operating parameters of the WiFi chip comprises:
and inquiring the corresponding relation between the working parameters and the offset value and the number of bits based on the working parameters of the WiFi chip to obtain the initial offset value and the number of bits corresponding to the target calibration data.
5. The method according to any one of claims 1 to 3, wherein before obtaining the operating parameters of the WiFi chip to be calibrated, the method further comprises:
acquiring a calibration instruction, wherein the calibration instruction comprises identification information of the WiFi chip to be calibrated;
and determining the WiFi chip to be calibrated from a plurality of candidate WiFi chips according to the identification information included in the calibration instruction.
6. A method of storing calibration data, the method comprising:
acquiring a plurality of calibration data of a WiFi chip to be calibrated, wherein one calibration data is used for calibrating one working parameter of the WiFi chip;
writing the plurality of calibration data into a unit storage space, wherein a start address of target calibration data in the plurality of calibration data in the unit storage space is indicated by an initial offset value, and the initial offset value and the number of bits corresponding to the target calibration data are used for reading each bit included in the target calibration data from the unit storage space.
7. The method of claim 6, wherein writing the plurality of calibration data into a unit memory space comprises:
based on that the sum of the number of bits included in the plurality of calibration data is smaller than the number of bits corresponding to a second spare storage space, and the number of bits corresponding to the second spare storage space is smaller than or equal to the number of bits corresponding to the unit storage space, sequentially writing each bit included in the plurality of calibration data and a second number of second padding bits into the second spare storage space, where the second number is a difference between the number of bits corresponding to the second spare storage space and the sum of the number of bits included in the plurality of calibration data;
and writing the bits included in the second spare storage space into the unit storage space.
8. The method of claim 7, wherein sequentially writing the respective bits included in the plurality of calibration data and a second number of second padding bits into the second spare memory space comprises:
writing a jth bit of respective bits included in the plurality of calibration data into a jth bit position of the second spare storage space, and writing the second number of second filler bits into remaining bit positions of the second spare storage space; wherein j is used for representing a sequence number, j is greater than or equal to 1 and less than or equal to M or j is greater than or equal to 0 and less than or equal to M-1, and M is used for representing the number of bits included in the plurality of calibration data.
9. The method according to any of claims 6-8, wherein after writing the plurality of calibration data into the unit storage space, further comprising:
for any one of the plurality of calibration data, acquiring an offset value corresponding to the any one of the plurality of calibration data according to a start address of the any one of the plurality of calibration data in the unit storage space;
and generating the corresponding relation of the working parameters, the deviation values and the bit quantity based on the working parameters, the deviation values and the bit quantity corresponding to the calibration data.
10. The method according to any one of claims 6 to 8, wherein before the obtaining the plurality of calibration data of the WiFi chip to be calibrated, the method further comprises:
acquiring a storage instruction, wherein the storage instruction comprises identification information of the WiFi chip to be calibrated;
and determining the WiFi chip to be calibrated from a plurality of candidate WiFi chips according to the identification information included in the storage instruction.
11. An apparatus for acquiring calibration data, the apparatus comprising:
the first acquisition module is used for acquiring working parameters of the wireless fidelity WiFi chip to be calibrated;
the first obtaining module is further configured to obtain an initial offset value and a bit number corresponding to target calibration data based on a working parameter of the WiFi chip, where the initial offset value is used to indicate a start address of the target calibration data in a unit storage space, the target calibration data is used to calibrate the working parameter, and the unit storage space stores multiple calibration data;
a second obtaining module, configured to read, from the unit storage space, each bit included in the target calibration data based on the initial offset value and the number of bits;
the second obtaining module is further configured to perform parsing on each bit to obtain the target calibration data.
12. An apparatus for storing calibration data, the apparatus comprising:
the device comprises an acquisition module, a calibration module and a control module, wherein the acquisition module is used for acquiring a plurality of calibration data of a wireless fidelity (WiFi) chip to be calibrated, and one calibration data is used for calibrating one working parameter of the WiFi chip;
a writing module, configured to write the plurality of calibration data into a unit storage space, where a start address of target calibration data in the plurality of calibration data in the unit storage space is indicated by a starting offset value, and the starting offset value and the number of bits corresponding to the target calibration data are used to read each bit included in the target calibration data from the unit storage space.
13. A computer device comprising a processor and a memory, the memory having stored therein at least one program code, the at least one program code being loaded into and executed by the processor, to cause the computer device to carry out a method of acquiring calibration data as claimed in any one of claims 1 to 5, or a method of storing calibration data as claimed in any one of claims 6 to 10.
14. A computer-readable storage medium having stored therein at least one program code, which is loaded and executed by a processor, to cause a computer to implement the method of acquiring calibration data according to any one of claims 1 to 5, or to implement the method of storing calibration data according to any one of claims 6 to 10.
CN202211270904.7A 2022-10-17 2022-10-17 Calibration data acquisition method, calibration data storage method, device and equipment Pending CN115766490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211270904.7A CN115766490A (en) 2022-10-17 2022-10-17 Calibration data acquisition method, calibration data storage method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211270904.7A CN115766490A (en) 2022-10-17 2022-10-17 Calibration data acquisition method, calibration data storage method, device and equipment

Publications (1)

Publication Number Publication Date
CN115766490A true CN115766490A (en) 2023-03-07

Family

ID=85352162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211270904.7A Pending CN115766490A (en) 2022-10-17 2022-10-17 Calibration data acquisition method, calibration data storage method, device and equipment

Country Status (1)

Country Link
CN (1) CN115766490A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545860A (en) * 2023-07-07 2023-08-04 Tcl通讯科技(成都)有限公司 Calibration data reading method and device, storage medium and electronic equipment
CN117134841A (en) * 2023-10-27 2023-11-28 南京朗立微集成电路有限公司 Method for generating WIFI calibration data source and calibration method of WIFI transmitting link

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545860A (en) * 2023-07-07 2023-08-04 Tcl通讯科技(成都)有限公司 Calibration data reading method and device, storage medium and electronic equipment
CN116545860B (en) * 2023-07-07 2023-10-03 Tcl通讯科技(成都)有限公司 Calibration data reading method and device, storage medium and electronic equipment
CN117134841A (en) * 2023-10-27 2023-11-28 南京朗立微集成电路有限公司 Method for generating WIFI calibration data source and calibration method of WIFI transmitting link
CN117134841B (en) * 2023-10-27 2024-01-09 南京朗立微集成电路有限公司 Method for generating WIFI calibration data source and calibration method of WIFI transmitting link

Similar Documents

Publication Publication Date Title
CN108805560B (en) Numerical value integration method and device, electronic equipment and computer readable storage medium
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN115766490A (en) Calibration data acquisition method, calibration data storage method, device and equipment
CN111159604A (en) Picture resource loading method and device
CN110705614A (en) Model training method and device, electronic equipment and storage medium
CN117215990A (en) Inter-core communication method and device of multi-core chip and multi-core chip
CN110086814B (en) Data acquisition method and device and storage medium
CN108132817B (en) Object management method and device
CN112163677B (en) Method, device and equipment for applying machine learning model
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN113301422A (en) Method, terminal and storage medium for acquiring video cover
CN113268234A (en) Page generation method, device, terminal and storage medium
CN111145723A (en) Method, device, equipment and storage medium for converting audio
CN113010175A (en) Anonymous function information acquisition method, device, equipment and readable storage medium
CN111191254A (en) Access verification method and device, computer equipment and storage medium
CN111930686B (en) Method and device for storing logs and computer equipment
CN112131340B (en) Character string detection method, device and storage medium
CN111064782B (en) Method and device for transmitting data, electronic equipment and storage medium
CN109194966B (en) Method and device for acquiring payload of SEI (solid electrolyte interface) message and storage medium
CN110045999B (en) Method, device, terminal and storage medium for drawing assembly
CN111580892B (en) Method, device, terminal and storage medium for calling service components
CN116414773A (en) File synthesis method, device, equipment and storage medium
CN114926250A (en) Order processing method, device, equipment and computer readable storage medium
CN113051164A (en) Method, device and equipment for testing vehicle-mounted program and computer readable storage medium
CN111798358A (en) Method and device for determining route calculation time, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination