CN111641419B - Version identification method, control method and system of radio frequency power amplifier of terminal - Google Patents

Version identification method, control method and system of radio frequency power amplifier of terminal Download PDF

Info

Publication number
CN111641419B
CN111641419B CN202010356256.1A CN202010356256A CN111641419B CN 111641419 B CN111641419 B CN 111641419B CN 202010356256 A CN202010356256 A CN 202010356256A CN 111641419 B CN111641419 B CN 111641419B
Authority
CN
China
Prior art keywords
radio frequency
power amplifier
frequency power
version
port
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.)
Active
Application number
CN202010356256.1A
Other languages
Chinese (zh)
Other versions
CN111641419A (en
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.)
Xiamen Ziguang Zhanrui Technology Co ltd
Original Assignee
Xiamen Ziguang Zhanrui 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 Xiamen Ziguang Zhanrui Technology Co ltd filed Critical Xiamen Ziguang Zhanrui Technology Co ltd
Priority to CN202010356256.1A priority Critical patent/CN111641419B/en
Publication of CN111641419A publication Critical patent/CN111641419A/en
Application granted granted Critical
Publication of CN111641419B publication Critical patent/CN111641419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/02Transmitters
    • H04B1/04Circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/02Transmitters
    • H04B1/04Circuits
    • H04B2001/0408Circuits with power amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/02Transmitters
    • H04B1/04Circuits
    • H04B2001/0408Circuits with power amplifiers
    • H04B2001/0416Circuits with power amplifiers having gain or transmission power control

Abstract

The invention discloses a version identification method, a control method, a system, a medium and electronic equipment of a radio frequency power amplifier of a terminal, wherein the radio frequency power amplifier comprises a plurality of hardware versions, and each hardware version corresponds to an identification mark; the version identification method comprises the following steps: writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol; reading data in the preset address; detecting whether the read data is consistent with the identification mark; and if so, determining that the hardware version of the radio frequency power amplifier is the version identified by the identification mark. The technical scheme of the invention can support radio frequency power amplifiers of various versions through one software, reduces unnecessary maintenance and test of software versions, does not need to improve a hardware structure, does not waste chip pins and saves extra hardware cost.

Description

Version identification method, control method and system of radio frequency power amplifier of terminal
Technical Field
The invention relates to the field of communication, in particular to a version identification method, a version control system, a version control medium and electronic equipment of a radio frequency power amplifier of a terminal.
Background
With the development of communication technology, Radio Frequency Power Amplifier (RFPA) types of wireless mobile terminals (e.g., mobile phones, tablet computers, etc.) have various versions, such as: phase2.5, Phase2.0, etc. Generally, only one radio frequency power amplifier hardware is installed in one mobile terminal, radio frequency power amplifiers of different versions are installed in mobile terminals of different models, radio frequency power amplifiers of different versions are also installed in mobile terminals of the same model and produced in different batches, and a set of parameters matched with the radio frequency power amplifiers are needed to control the normal operation processes of receiving and sending signals of the radio frequency power amplifiers.
In the prior art, in order to ensure that radio frequency power amplifiers of different versions can normally operate, on one hand, different software parameter versions can be compiled for the radio frequency power amplifiers of different versions, and the radio frequency power amplifiers with different software parameter versions are respectively tested and maintained, so that the cost is high. On the other hand, it is also possible to store various operating parameters of the rf power amplifier in advance in the main control chip, and when allocating control parameters for the rf power amplifier, it is possible to detect the type of the rf power amplifier by specially setting a GPIO (general purpose input output) port in the main control chip, for example: 4 types (00, 01, 10 and 11) can be represented through two GPIO ports, so that a certain number of chip pins are occupied, the hardware design cost is increased, the distinguishable types are limited, and when the version types of the radio frequency power amplifier are greatly increased, the cost is greatly increased by distinguishing the types of the radio frequency power amplifier through a hardware improvement mode.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method, a system, a medium and an electronic device for controlling a radio frequency power amplifier of a terminal, in order to overcome the defect that in the prior art, software control parameters are separately set for radio frequency power amplifiers of different versions, or the types of the radio frequency power amplifiers are distinguished by improving a hardware design, and then the software control parameters are distributed for the radio frequency power amplifiers, so that the maintenance and manufacturing costs are increased.
The invention solves the technical problems through the following technical scheme:
a version identification method of a radio frequency power amplifier of a terminal is disclosed, wherein the radio frequency power amplifier comprises a plurality of hardware versions, and each hardware version corresponds to an identification mark;
the version identification method comprises the following steps:
writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol;
reading data in the preset address;
detecting whether the read data is consistent with the identification mark;
and if so, determining that the hardware version of the radio frequency power amplifier is the version identified by the identification mark.
Preferably, the version identification method further includes:
if the data cannot be read normally or the read data is inconsistent with the identification mark, writing a next identification mark into a preset address of the radio frequency power amplifier according to a preset protocol, wherein the next identification mark is different from the identification mark written last time;
and re-executing the step of reading the data in the preset address.
Preferably, the radio frequency power amplifier is connected and communicated with an SCK port (a clock port) and an SDA port (a data port) of a main control chip of the terminal;
the step of writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol further comprises:
backing up port information of an SCK port and an SDA port which are communicated with the radio frequency power amplifier, wherein the port information comprises port function information and port driving information;
controlling the SCK port and the SDA port to be converted into GPIO ports;
the step of writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol comprises:
and writing an identification mark into a preset address of the radio frequency power amplifier through the GPIO port according to a preset protocol.
Preferably, the step of determining that the hardware version of the rf power amplifier is the version identified by the identification mark further includes:
and according to the backed-up port information, converting the GPIO port into the SCK port and the SDA port again.
A method of controlling a radio frequency power amplifier of a terminal, the method comprising:
determining the hardware version of the radio frequency power amplifier according to the version identification method;
acquiring operation control parameters corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier;
and controlling the operation of the radio frequency power amplifier by using the operation control parameter.
Preferably, the operational control parameters include Delta Nv (differential nonvolatile data);
the step of obtaining the operation control parameter corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier comprises:
searching Delta Nv corresponding to the hardware version of the radio frequency power amplifier according to the determined hardware version;
the step of controlling the operation of the radio frequency power amplifier using the operation control parameter includes:
controlling a baseband processor to incorporate the Delta Nv into NV (non-volatile data) to be executed;
and controlling the operation of the radio frequency power amplifier according to the NV to be executed.
A version identification system of a radio frequency power amplifier of a terminal, wherein the radio frequency power amplifier comprises a plurality of hardware versions, and each hardware version corresponds to an identification mark;
the version identification system includes:
the data writing module is used for writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol;
the data reading module is used for reading data in the preset address;
the detection module is used for detecting whether the read data is consistent with the identification mark;
and if so, calling a version confirmation module, wherein the version confirmation module is used for determining that the hardware version of the radio frequency power amplifier is the version identified by the identification mark.
Preferably, the data writing module is further configured to write a next identification mark into a preset address of the radio frequency power amplifier according to a preset protocol when the data reading module cannot read data normally or the read data is inconsistent with the identification mark, where the next identification mark is different from the identification mark written last time;
the data writing module is also used for calling the data reading module after writing the next identification mark.
Preferably, the radio frequency power amplifier is connected and communicated with an SCK port and an SDA port of a main control chip of the terminal;
the version identification system also comprises a backup module and a port control module;
the backup module is used for backing up port information of an SCK port and an SDA port which are communicated with the radio frequency power amplifier, wherein the port information comprises port function information and port driving information;
the port control module is used for controlling the SCK port and the SDA port to be converted into GPIO ports;
and the data writing module is used for writing an identification mark into a preset address of the radio frequency power amplifier through the GPIO port according to a preset protocol.
Preferably, the port control module is further configured to convert the GPIO port into the SCK port and the SDA port again according to the backed-up port information.
A control system of a radio frequency power amplifier of a terminal comprises a control parameter acquisition module, an operation control module and the version identification system;
the control parameter acquisition module is used for acquiring operation control parameters corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier;
the operation control module is used for controlling the operation of the radio frequency power amplifier by using the operation control parameter.
Preferably, the operational control parameter comprises Delta Nv;
the control parameter acquisition module is used for searching Delta Nv corresponding to the hardware version of the radio frequency power amplifier according to the determined hardware version;
the operation control module is used for controlling the baseband processor to combine the Delta Nv into the NV to be executed and controlling the operation of the radio frequency power amplifier according to the NV to be executed.
An electronic device comprises a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the steps of the version identification method of the radio frequency power amplifier of the terminal or the steps of the control method of the radio frequency power amplifier of the terminal when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the aforementioned method for version identification of a radio frequency power amplifier of a terminal, or the steps of the aforementioned method for controlling a radio frequency power amplifier of a terminal.
The positive progress effects of the invention are as follows: the version identification method, the version control method and the version control system of the radio frequency power amplifier of the terminal only execute writing of an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol through a computer program; reading data in the preset address; detecting whether the read data is consistent with the identification mark; and if the hardware version of the radio frequency power amplifier is consistent with the hardware version of the radio frequency power amplifier, determining the hardware version of the radio frequency power amplifier to be the version identified by the identification mark. Therefore, the radio frequency power amplifiers of various versions can be identified and controlled, unnecessary maintenance and testing of software versions are reduced, improvement of a hardware structure is not needed, chip pins are not wasted, and extra hardware cost is saved.
Drawings
Fig. 1 is a flowchart of a version identification method for a radio frequency power amplifier of a terminal according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of a version identification method for a radio frequency power amplifier of a terminal according to embodiment 2 of the present invention.
Fig. 3 is a flowchart of a method for controlling a radio frequency power amplifier of a terminal according to embodiment 3 of the present invention.
Fig. 4 is a block diagram of a version identification system of a radio frequency power amplifier of a terminal according to embodiment 4 of the present invention.
Fig. 5 is a block diagram of a version identification system of a radio frequency power amplifier of a terminal according to embodiment 5 of the present invention.
Fig. 6 is a block diagram of a control system of a radio frequency power amplifier of a terminal according to embodiment 6 of the present invention.
Fig. 7 is a block diagram of an electronic device according to embodiment 7 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides a version identification method of a radio frequency power amplifier of a terminal, wherein the terminal can comprise a wireless mobile terminal (such as a mobile phone, a tablet computer and the like).
The Radio Frequency Power Amplifier (RFPA) may be an electronic circuit or an integrated chip that adjusts signal input power, signal output power, radio frequency power consumption, radio frequency transmission efficiency, etc. of the terminal.
The radio frequency power amplifier comprises a plurality of hardware versions, each hardware version corresponds to an identification mark, and the identification mark can be a character or a binary system which uniquely identifies the hardware version. For example: the identification flag of the phase2.5 version may be a character string 0X25 in the preset address, and the identification flag of the phase2.0 version may be a character string 0X24 in the preset address.
The corresponding relation between the hardware version of the radio frequency amplifier and the identification mark can be preset in the main control chip of the mobile terminal in advance, so that when the mobile terminal is started, the main control chip of the mobile terminal can judge the hardware version of the radio frequency amplifier in a mode of writing the identification mark into a preset address space of the radio frequency amplifier.
As shown in fig. 1, the version identification method in this embodiment may include the following steps:
step S10: writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol;
the predetermined protocol may be a mipi protocol (a communication protocol) in the prior art, which specifies a standard manner of reading and writing the register, transmitting data, and checking data.
Step S11: reading data in the preset address;
step S12: detecting whether the read data is consistent with the identification mark;
if yes, go to step S13: determining the hardware version of the radio frequency power amplifier as the version identified by the identification tag.
Further, if the read data is not consistent with the identification mark, step S14 is executed: writing a next identification mark into a preset address of the radio frequency power amplifier according to a preset protocol, wherein the next identification mark is different from the identification mark written last time;
in this embodiment, if the data cannot be read normally, step S14 may be executed to rewrite the next identification mark.
After writing the next identification mark in the preset address, step S11 is executed again.
In one particular application scenario, for example: after the terminal is powered on, the version of the radio frequency power amplifier needs to be automatically judged to be the Phase2.0 version, the Phase2.5 version or the application scenes of other versions.
First, 0X25 is written into the preset address of the rf pa, since 0X25 corresponds to the rf pa of phase2.5 version, if the actual rf pa is phase2.5 version, 0X25 can be normally written into the preset address and can be normally read, i.e. the read data is also 0X 25. If the actual rf pa is not the phase2.5 version, 0X25 cannot actually write the predetermined address, and the data read from the predetermined address subsequently is not 0X25 or cannot be read from the predetermined address normally at all.
If the actual version of the pa is not the phase2.5 version during the detection, the next id 0X24 can be written into the preset address, and if the actual rf pa is the phase2.0 version, the id 0X24 can be normally written into the preset address and can be normally read, i.e. the read data is also 0X 24. If the actual rf pa is not the phase2.0 version, 0X24 cannot actually write the predetermined address, and the data read from the predetermined address subsequently is not 0X24 or cannot be read from the predetermined address normally at all.
If the detected actual power amplifier version is not the Phase2.0 version, other versions are continuously detected according to the method for writing and reading data until the correct hardware version of the radio frequency power amplifier is determined.
The version identification method of the radio frequency power amplifier of the terminal provided by the embodiment performs version identification only by the computer program. Therefore, the radio frequency power amplifiers of various versions can be identified, the limitation of the number of the hardware versions of the radio frequency power amplifiers is avoided, unnecessary maintenance and test of software versions are reduced, the improvement of a hardware structure is not needed, chip pins are not wasted, and extra hardware cost is saved.
Example 2
The present embodiment provides a version identification method of a radio frequency power amplifier of a terminal, which is a further improvement on the basis of embodiment 1, as shown in fig. 2.
In this embodiment, the radio frequency power amplifier is connected and communicated with an SCK port and an SDA port of a main control chip of the terminal;
the step S10 may be preceded by the step S15: backing up port information of an SCK port and an SDA port which are communicated with the radio frequency power amplifier, wherein the port information comprises port function information and port driving information;
step S16: controlling the SCK port and the SDA port to be converted into GPIO ports;
based on this, the step S10 may include:
step S101: and writing an identification mark into a preset address of the radio frequency power amplifier through the GPIO port according to a preset protocol.
The step S13 is followed by:
step S17: and according to the backed-up port information, converting the GPIO port into the SCK port and the SDA port again.
In this embodiment, after the terminal is powered on, the enabling of the GPIO port may be first started, then the SCK port and the SDA port are converted into GPIO ports, and the converted GPIO ports may be directly used, so that the main control chip may flexibly implement writing and reading of data that conforms to the stii protocol specification by simulating the GPIO port.
And after the hardware version information is determined, the converted GPIO port can be converted into the SCK port and the SDA port again according to the backup port information, and the SCK port and the SDA port can continuously transmit corresponding data according to preset functions in the subsequent working process.
According to the version identification method of the radio frequency power amplifier of the terminal, the SCK port and the SDA port can be converted into the GPIO port to communicate with the radio frequency amplifier after the terminal is started, automatic identification of the hardware version is completed, and after the identification is finished, the SCK port and the SDA port can still recover the original functions, so that a special communication port does not need to be additionally designed for identification of the hardware version, and the process cost is further saved.
Example 3
In this embodiment, as shown in fig. 3, after determining the hardware version of the rf power amplifier according to the version identification method in embodiment 1, hardware version information is transmitted to a Modem (a software implementation manner in a communication protocol) through cmdline (a C + + command line), and control parameter acquisition and Merge processes are performed by using the Modem.
Specifically, the control method may include the steps of:
step S20: and acquiring the operation control parameters corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier. In this step, the cmdline correlation file may be parsed to obtain the hardware version of the power amplifier.
Step S21: and controlling the operation of the radio frequency power amplifier by using the operation control parameter.
Specifically, the operation control parameter includes Delta Nv, different hardware versions correspond to a set of Delta Nv, and since Delta Nv cannot be directly executed, the Merge of the Delta Nv into Nv to be executed is required to be called to control the operation of the radio frequency power amplifier.
Specifically, the step S20 may be performed as follows: searching Delta Nv corresponding to the hardware version of the radio frequency power amplifier according to the determined hardware version;
the step S21 may be performed as follows: controlling a baseband processor to merge the Delta Nv into the NV to be executed; and controlling the operation of the radio frequency power amplifier according to the NV to be executed.
It should be noted that, in order to explain a specific implementation of the control method, the control method in the embodiment 3 is executed based on the version identification method in the embodiment 1, but this is only an alternative way and is not limiting. It will be understood by those skilled in the art that the control method in embodiment 3 can also be performed using the present version identification method modified in embodiment 2.
According to the control method of the radio frequency power amplifier of the terminal, the control parameters corresponding to the hardware version can be quickly matched and searched according to the hardware version determined after the terminal is started, so that the operation of the radio frequency power amplifier is further controlled, and the control efficiency is effectively improved.
Example 4
The embodiment provides a version identification system of a radio frequency power amplifier of a terminal, wherein the terminal can comprise a wireless mobile terminal (such as a mobile phone, a tablet computer and the like).
The Radio Frequency Power Amplifier (RFPA) may be an electronic circuit or an integrated chip that adjusts signal input power, signal output power, radio frequency power consumption, radio frequency transmission efficiency, etc. of the terminal.
The radio frequency power amplifier comprises a plurality of hardware versions, each hardware version corresponds to an identification mark, namely, characters or binary systems and the like which can uniquely identify the hardware version. For example: the identification flag of the phase2.5 version may be a character string 0X25 in the preset address, and the identification flag of the phase2.0 version may be a character string 0X24 in the preset address.
The corresponding relation between the hardware version of the radio frequency amplifier and the identification mark can be preset in the main control chip of the mobile terminal in advance, so that when the mobile terminal is started, the main control chip of the mobile terminal can judge the hardware version of the radio frequency amplifier in a mode of writing the identification mark into a preset address space of the radio frequency amplifier.
As shown in fig. 4, the version identification system 1 may include:
the data writing module 11 is configured to write an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol; the predetermined protocol may be a mipi protocol (a communication protocol) in the prior art, which specifies a standard manner of reading and writing the register, transmitting data, and checking data.
A data reading module 12, configured to read data in the preset address;
a detection module 13, configured to detect whether the read data is consistent with the identification mark;
if the hardware version of the rf power amplifier is consistent with the hardware version of the rf power amplifier, the version confirmation module 14 is invoked, and the version confirmation module 14 is configured to determine that the hardware version of the rf power amplifier is the version identified by the identification mark.
Further, the data writing module 11 is further configured to write a next identification mark into a preset address of the radio frequency power amplifier according to a preset protocol when the data reading module 12 cannot read data normally or the read data is inconsistent with the identification mark, where the next identification mark is different from the identification mark written last time;
the data writing module 11 is further configured to invoke the data reading module 12 after writing the next identification mark.
In one particular application scenario, for example: after the terminal is powered on, the version of the radio frequency power amplifier needs to be automatically judged to be the Phase2.0 version, the Phase2.5 version or the application scenes of other versions.
First, 0X25 is written into the preset address of the rf pa, since 0X25 corresponds to the rf pa of phase2.5 version, if the actual rf pa is phase2.5 version, 0X25 can be normally written into the preset address and can be normally read, i.e. the read data is also 0X 25. If the actual rf pa is not the phase2.5 version, 0X25 cannot actually write the predetermined address, and the data read from the predetermined address subsequently is not 0X25 or cannot be read from the predetermined address normally at all.
If the actual version of the pa is not the phase2.5 version during the detection, the next id 0X24 can be written into the preset address, and if the actual rf pa is the phase2.0 version, the id 0X24 can be normally written into the preset address and can be normally read, i.e. the read data is also 0X 24. If the actual rf pa is not the phase2.0 version, 0X24 cannot actually write the predetermined address, and the data read from the predetermined address subsequently is not 0X24 or cannot be read from the predetermined address normally at all.
If the detected actual power amplifier version is not the Phase2.0 version, other versions are continuously detected according to the method for writing and reading data until the correct hardware version of the radio frequency power amplifier is determined.
The version identification system of the radio frequency power amplifier of the terminal provided by the embodiment performs version identification only by a computer program when running. Therefore, the radio frequency power amplifiers of various versions can be identified, the limitation of the number of the hardware versions of the radio frequency power amplifiers is avoided, unnecessary maintenance and test of software versions are reduced, the improvement of a hardware structure is not needed, chip pins are not wasted, and extra hardware cost is saved.
Example 5
The present embodiment provides a version identification system of a radio frequency power amplifier of a terminal, which is a further improvement on the basis of embodiment 4, as shown in fig. 5.
In this embodiment, the radio frequency power amplifier is connected and communicated with an SCK port and an SDA port of a main control chip of the terminal;
the version identification system further comprises a backup module 15 and a port control module 16;
the backup module 15 is configured to backup port information of an SCK port and an SDA port that communicate with the radio frequency power amplifier, where the port information includes port function information and port driver information;
the port control module 16 is configured to control the SCK port and the SDA port to be converted into GPIO ports;
the data writing module 11 is configured to write an identification mark into a preset address of the radio frequency power amplifier through the GPIO port according to a preset protocol.
Preferably, the port control module 16 is further configured to convert the GPIO port into the SCK port and the SDA port again according to the backed-up port information.
In this embodiment, after the terminal is powered on, the enabling of the GPIO port may be first started, then the SCK port and the SDA port are converted into GPIO ports, and the converted GPIO ports may be directly used, so that the main control chip may flexibly implement writing and reading of data that conforms to the stii protocol specification by simulating the GPIO port.
And after the hardware version information is determined, the converted GPIO port can be converted into the SCK port and the SDA port again according to the backup port information, and the SCK port and the SDA port can continuously transmit corresponding data according to preset functions in the subsequent working process.
The version identification system of the radio frequency power amplifier of the terminal provided by the embodiment can utilize the SCK port and the SDA port to convert into the GPIO port to communicate with the radio frequency amplifier after the terminal is powered on, so as to complete the automatic identification of the hardware version, and after the identification is finished, the SCK port and the SDA port can still recover the original functions thereof, so that a special communication port does not need to be additionally designed for the identification of the hardware version, and the process cost is further saved.
Example 6
This embodiment provides a control system of a radio frequency power amplifier of a terminal, as shown in fig. 6, the control system 2 includes a control parameter obtaining module 21, an operation control module 22, and the version identification system 1 described in embodiment 4;
the version confirmation module 14 in the version identification system 1 may transmit the hardware version information to the Modem (a software implementation manner in the communication protocol) through cmdline (a C + + command line), and the control parameter obtaining module 21 and the operation control module 22 may respectively perform the obtaining and Merge processes of the control parameters by using the Modem.
In this embodiment, the control parameter obtaining module 21 may obtain the hardware version of the power amplifier by analyzing the cmdlene related file. Next, the control parameter obtaining module 21 is configured to obtain an operation control parameter corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier;
the operation control module 22 is configured to control the operation of the rf power amplifier using the operation control parameter.
Preferably, the operational control parameter comprises Delta Nv; the control parameter obtaining module 21 is configured to search, according to the determined hardware version of the radio frequency power amplifier, for Delta Nv corresponding to the hardware version; the operation control module 22 is configured to control the baseband processor to incorporate the Delta Nv into the Nv to be executed, and control the operation of the radio frequency power amplifier according to the Nv to be executed.
It should be noted that, in order to explain a specific implementation of the control method, the control system in this embodiment 6 is constructed based on the version identification system in embodiment 4, but this is only an alternative way and is not limiting. It will be appreciated by those skilled in the art that the control system in embodiment 6 can also be constructed using the present version identification system modified in embodiment 5.
The control system of the radio frequency power amplifier of the terminal provided by this embodiment can quickly match and search the control parameter corresponding to the hardware version according to the hardware version determined after the terminal is turned on, so as to further control the operation of the radio frequency power amplifier, and effectively improve the control efficiency.
Example 7
The present invention also provides an electronic device, as shown in fig. 7, the electronic device may include a memory, a processor and a computer program stored in the memory and running on the processor, and the processor executes the computer program to implement the steps of the version identification method of the radio frequency power amplifier of the terminal in the foregoing embodiment 1 or 2, or to implement the steps of the control method of the radio frequency power amplifier of the terminal in embodiment 3.
It should be understood that the electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present invention.
As shown in fig. 7, the electronic device 3 may be embodied in the form of a general purpose computing device, such as: which may be a server device. The components of the electronic device 3 may include, but are not limited to: the at least one processor 4, the at least one memory 5, and a bus 6 connecting the various system components (including the memory 5 and the processor 4).
The bus 6 may include a data bus, an address bus, and a control bus.
The memory 5 may include volatile memory, such as Random Access Memory (RAM)51 and/or cache memory 52, and may further include Read Only Memory (ROM) 53.
The memory 5 may also include a program tool 55 (or utility tool) having a set (at least one) of program modules 54, such program modules 54 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 4 executes various functional applications and data processing, such as the steps of the version identification method of the radio frequency power amplifier of the terminal in the foregoing embodiment 1 or 2 of the present invention or the steps of the control method of the radio frequency power amplifier of the terminal in embodiment 3, by running the computer program stored in the memory 5.
The electronic device 3 may also communicate with one or more external devices 7, such as a keyboard, a pointing device, etc. Such communication may be via an input/output (I/O) interface 8. Furthermore, the model-generated electronic device 3 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network) via the network adapter 9.
As shown in fig. 7, the network adapter 9 may communicate with other modules of the model-generated electronic device 3 via the bus 6. It will be appreciated by those skilled in the art that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generated electronic device 3, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 8
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of the version identification method of the radio frequency power amplifier of the terminal in the aforementioned embodiment 1 or 2, or implements the steps of the control method of the radio frequency power amplifier of the terminal in embodiment 3.
More specific ways in which the computer-readable storage medium may be employed may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code for causing a terminal device to execute the steps of implementing the version identification method of the radio frequency power amplifier of the terminal in the foregoing embodiment 1 or 2, or implementing the steps of the control method of the radio frequency power amplifier of the terminal in embodiment 3, when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. The version identification method of the radio frequency power amplifier of the terminal is characterized in that the radio frequency power amplifier comprises a plurality of hardware versions, and each hardware version corresponds to an identification mark;
the version identification method comprises the following steps:
writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol;
reading data in the preset address;
detecting whether the read data is consistent with the identification mark;
if the hardware version of the radio frequency power amplifier is consistent with the hardware version of the radio frequency power amplifier, determining that the hardware version of the radio frequency power amplifier is the version identified by the identification mark;
if the data cannot be read normally or the read data is inconsistent with the identification mark, writing a next identification mark into a preset address of the radio frequency power amplifier according to a preset protocol, wherein the next identification mark is different from the identification mark written last time;
and re-executing the step of reading the data in the preset address.
2. The method for identifying a version of a radio frequency power amplifier of a terminal as claimed in claim 1,
the radio frequency power amplifier is connected and communicated with an SCK port and an SDA port of a main control chip of the terminal;
the step of writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol further comprises:
backing up port information of an SCK port and an SDA port which are communicated with the radio frequency power amplifier, wherein the port information comprises port function information and port driving information;
controlling the SCK port and the SDA port to be converted into GPIO ports;
the step of writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol comprises:
and writing an identification mark into a preset address of the radio frequency power amplifier through the GPIO port according to a preset protocol.
3. The method for identifying a version of a radio frequency power amplifier of a terminal as claimed in claim 2, wherein the step of determining that the hardware version of the radio frequency power amplifier is the version identified by the identification tag further comprises:
and according to the backed-up port information, converting the GPIO port into the SCK port and the SDA port again.
4. A method for controlling a radio frequency power amplifier of a terminal, the method comprising:
determining a hardware version of the radio frequency power amplifier according to the version identification method of any one of claims 1-3;
acquiring operation control parameters corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier;
and controlling the operation of the radio frequency power amplifier by using the operation control parameter.
5. The method of claim 4, wherein the operation control parameter comprises Delta Nv;
the step of obtaining the operation control parameter corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier comprises:
searching Delta Nv corresponding to the hardware version of the radio frequency power amplifier according to the determined hardware version;
the step of controlling the operation of the radio frequency power amplifier using the operation control parameter includes:
controlling a baseband processor to merge the Delta Nv into the NV to be executed;
and controlling the operation of the radio frequency power amplifier according to the NV to be executed.
6. A version identification system of a radio frequency power amplifier of a terminal is characterized in that the radio frequency power amplifier comprises a plurality of hardware versions, and each hardware version corresponds to an identification mark;
the version identification system includes:
the data writing module is used for writing an identification mark into a preset address of the radio frequency power amplifier according to a preset protocol;
the data reading module is used for reading data in the preset address;
the detection module is used for detecting whether the read data is consistent with the identification mark;
if the hardware version of the radio frequency power amplifier is consistent with the version of the identification mark, calling a version confirmation module, wherein the version confirmation module is used for determining that the hardware version of the radio frequency power amplifier is the version identified by the identification mark;
the data writing module is further configured to write a next identification mark into a preset address of the radio frequency power amplifier according to a preset protocol when the data reading module cannot read data normally or the read data is inconsistent with the identification mark, where the next identification mark is different from the identification mark written last time;
the data writing module is also used for calling the data reading module after writing the next identification mark.
7. The version identification system of a radio frequency power amplifier of a terminal of claim 6,
the radio frequency power amplifier is connected and communicated with an SCK port and an SDA port of a main control chip of the terminal;
the version identification system also comprises a backup module and a port control module;
the backup module is used for backing up port information of an SCK port and an SDA port which are communicated with the radio frequency power amplifier, wherein the port information comprises port function information and port driving information;
the port control module is used for controlling the SCK port and the SDA port to be converted into GPIO ports;
and the data writing module is used for writing an identification mark into a preset address of the radio frequency power amplifier through the GPIO port according to a preset protocol.
8. The version identification system for the rf power amplifier of the terminal as claimed in claim 7, wherein the port control module is further configured to convert the GPIO port to the SCK port and the SDA port again according to the backed up port information.
9. A control system of a radio frequency power amplifier of a terminal, characterized in that the control system comprises a control parameter acquisition module, an operation control module and a version identification system according to any one of claims 6 to 8;
the control parameter acquisition module is used for acquiring operation control parameters corresponding to the radio frequency power amplifier according to the determined hardware version of the radio frequency power amplifier;
the operation control module is used for controlling the operation of the radio frequency power amplifier by using the operation control parameter.
10. The control system for a radio frequency power amplifier of a terminal as set forth in claim 9, wherein said operational control parameter comprises Delta Nv;
the control parameter acquisition module is used for searching Delta Nv corresponding to the hardware version of the radio frequency power amplifier according to the determined hardware version;
the operation control module is used for controlling the baseband processor to combine the Delta Nv into the NV to be executed and controlling the operation of the radio frequency power amplifier according to the NV to be executed.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and being executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method for version identification of the radio frequency power amplifier of a terminal according to any of claims 1-3 or implements the steps of the method for control of the radio frequency power amplifier of a terminal according to any of claims 4-5.
12. A computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for version identification of the radio frequency power amplifier of a terminal according to any one of claims 1 to 3, or the steps of the method for controlling the radio frequency power amplifier of a terminal according to any one of claims 4 to 5.
CN202010356256.1A 2020-04-29 2020-04-29 Version identification method, control method and system of radio frequency power amplifier of terminal Active CN111641419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010356256.1A CN111641419B (en) 2020-04-29 2020-04-29 Version identification method, control method and system of radio frequency power amplifier of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010356256.1A CN111641419B (en) 2020-04-29 2020-04-29 Version identification method, control method and system of radio frequency power amplifier of terminal

Publications (2)

Publication Number Publication Date
CN111641419A CN111641419A (en) 2020-09-08
CN111641419B true CN111641419B (en) 2022-02-11

Family

ID=72332003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010356256.1A Active CN111641419B (en) 2020-04-29 2020-04-29 Version identification method, control method and system of radio frequency power amplifier of terminal

Country Status (1)

Country Link
CN (1) CN111641419B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019977A (en) * 2012-12-07 2013-04-03 上海市共进通信技术有限公司 Method for automatically identifying edition by application apparatus of embedded system and starting method
CN103186395A (en) * 2011-12-30 2013-07-03 北京谊安医疗系统股份有限公司 Hardware version information identification system
CN104407842A (en) * 2014-10-21 2015-03-11 深圳市新国都技术股份有限公司 A method and system for achieving hardware version identification of POS machine
CN105975289A (en) * 2015-07-06 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for obtaining hardware version information
CN110750405A (en) * 2019-10-28 2020-02-04 天津津航计算技术研究所 Software compatibility method based on hardware board card identification
CN110826112A (en) * 2019-11-04 2020-02-21 北京配天技术有限公司 Method and system for identifying hardware version number

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2379754B (en) * 2001-09-13 2005-08-24 Nec Technologies An apparatus for harware revision identification using a R-C circuit
CN100388678C (en) * 2004-11-29 2008-05-14 中兴通讯股份有限公司 Automatic obtaining method for telecommunication trausmission systen unit soft and hard ware version
CN102495790A (en) * 2011-10-20 2012-06-13 镇江睿泰信息科技有限公司 Version change difference identifier and version change identification method
CN104298635A (en) * 2014-09-26 2015-01-21 福建联迪商用设备有限公司 Method and device for recognizing equipment version information through GPIO port line
CN106626791B (en) * 2016-11-10 2019-08-23 广州众诺电子技术有限公司 Chip version-switching method, switching device and switching system
US11360955B2 (en) * 2018-03-23 2022-06-14 Ebay Inc. Providing custom read consistency of a data object in a distributed storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186395A (en) * 2011-12-30 2013-07-03 北京谊安医疗系统股份有限公司 Hardware version information identification system
CN103019977A (en) * 2012-12-07 2013-04-03 上海市共进通信技术有限公司 Method for automatically identifying edition by application apparatus of embedded system and starting method
CN104407842A (en) * 2014-10-21 2015-03-11 深圳市新国都技术股份有限公司 A method and system for achieving hardware version identification of POS machine
CN105975289A (en) * 2015-07-06 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for obtaining hardware version information
CN110750405A (en) * 2019-10-28 2020-02-04 天津津航计算技术研究所 Software compatibility method based on hardware board card identification
CN110826112A (en) * 2019-11-04 2020-02-21 北京配天技术有限公司 Method and system for identifying hardware version number

Also Published As

Publication number Publication date
CN111641419A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
US9262283B2 (en) Method for reading kernel log upon kernel panic in operating system
CN109426613B (en) Method for retrieving debugging data in UEFI and computer system thereof
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
US20040202015A1 (en) SDIO card development system
CN110515641A (en) The update method of server firmware, apparatus and system
CN101739322B (en) Test device and method of embedded system
US7747909B2 (en) Debug card
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN111930395B (en) Program downloading method of intelligent terminal and intelligent terminal
CN111641419B (en) Version identification method, control method and system of radio frequency power amplifier of terminal
CN102305906B (en) Chip testing method and device
CN111459730A (en) PCH (physical channel) end parameter adjusting method and system under Whitley platform
US10691569B2 (en) System and method for testing a data storage device
CN102184115B (en) Method for updating system software and terminal device
CN114446381B (en) eMMC fault analysis method, device, readable storage medium and electronic equipment
CN116048640A (en) Method for driving IIC equipment in computer system to work normally
CN112445734B (en) Communication control method and communication circuit
CN114496053A (en) Data anomaly detection method, device and equipment and computer readable storage medium
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
US10922023B2 (en) Method for accessing code SRAM and electronic device
CN103761203A (en) General connection method for different types of hardware equipment
CN110825572A (en) Method, device and system for detecting I2C equipment address and electronic equipment
CN1851612A (en) System and method for recording reset types
CN111953753B (en) Communication device connection method, device, computer device and storage medium
CN114121138B (en) Memory voltage testing method, device, computing equipment and system

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
GR01 Patent grant
GR01 Patent grant