CN111147091B - Antenna tuning switch logic control method, system and terminal - Google Patents

Antenna tuning switch logic control method, system and terminal Download PDF

Info

Publication number
CN111147091B
CN111147091B CN201911414323.4A CN201911414323A CN111147091B CN 111147091 B CN111147091 B CN 111147091B CN 201911414323 A CN201911414323 A CN 201911414323A CN 111147091 B CN111147091 B CN 111147091B
Authority
CN
China
Prior art keywords
antenna tuning
switch
tuning switch
antenna
list
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
CN201911414323.4A
Other languages
Chinese (zh)
Other versions
CN111147091A (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.)
Shanghai Moqin Intelligent Technology Co ltd
Original Assignee
Shanghai Moqin Intelligent 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 Shanghai Moqin Intelligent Technology Co ltd filed Critical Shanghai Moqin Intelligent Technology Co ltd
Priority to CN201911414323.4A priority Critical patent/CN111147091B/en
Publication of CN111147091A publication Critical patent/CN111147091A/en
Application granted granted Critical
Publication of CN111147091B publication Critical patent/CN111147091B/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
    • H04B1/0458Arrangements for matching and coupling between power amplifier and antenna or between amplifying stages
    • 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/06Receivers
    • H04B1/16Circuits
    • H04B1/18Input circuits, e.g. for coupling to an antenna or a transmission line

Abstract

The invention relates to the technical field of communication, and discloses a method, a system and a terminal for logically controlling an antenna tuning switch. The method comprises the following steps: according to the mapping relation table of the equipment model and the antenna tuning switch, obtaining an antenna tuning switch list corresponding to the equipment model of the terminal through an adb command and displaying the antenna tuning switch list on an interface; determining at least one antenna tuning switch in the list as a target switch according to input information collected by the interface, and acquiring logic configuration information aiming at the target switch; and according to the logic configuration information, performing logic configuration operation on the target switch through the adb command. Different from a conventional permanent writing mode, the antenna tuning switch state control method is realized by adopting a temporary writing mode based on Android APK, and a worker can directly and flexibly control the state of the antenna tuning switch on an equipment interface without the help of professional software programmers and computers, so that the antenna tuning switch logic configuration work is simplified, and the work efficiency is improved.

Description

Antenna tuning switch logic control method, system and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, and a terminal for logically controlling an antenna tuning switch.
Background
With the increasing frequency bands required to be supported by the handheld communication equipment, the antenna routing space is smaller, the antenna environment is more and more complex, the bandwidth requirement is wider, and when the antenna is debugged, the low-frequency part usually suffers from the problem of insufficient bandwidth, at this time, an antenna tuning switch is generally added at the antenna location, and meanwhile, the corresponding relation between different frequency bands and different switch paths (hereinafter referred to as antenna tuning switch logic) is written in software, so that different matching circuits are switched according to different frequencies, and the function of expanding the antenna bandwidth is achieved.
In the prior art, an adjustment scheme of an antenna tuning switch logic is as follows: the method comprises the steps of providing a complete compiling environment by means of a computer, firstly adjusting antenna tuning switch logic information in a radio frequency configuration table, then compiling software according to the whole radio frequency configuration table, importing a software version after bin files are output, updating the software version by equipment, and enabling the adjusted antenna tuning switch logic to be effective.
The above adjustment scheme adopts the implementation mode of permanent write logic, and has the following defects: in the antenna debugging stage, the logic configuration can not be flexibly carried out according to the antenna debugging result, and the compiling is carried out by a professional software engineer by means of a computer every time, so that the consumed time is long; in the process of antenna debugging, the logic of the antenna tuning switch needs to be adjusted repeatedly for many times to verify different logics, so that the adjusting scheme is complex in operation, inconvenient and long in time consumption, and greatly influences the working efficiency.
Disclosure of Invention
The invention aims to provide a method, a system and a terminal for controlling the logic of an antenna tuning switch, which overcome the defects of complex operation and low efficiency in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for logically controlling an antenna tuning switch is applied to an Android terminal and comprises the following steps:
according to a pre-stored mapping relation table of the equipment model and an antenna tuning switch, obtaining an antenna tuning switch list corresponding to the equipment model of the Android terminal through an adb command and displaying the antenna tuning switch list on an interface, wherein the antenna tuning switch list comprises at least one antenna tuning switch;
determining at least one antenna tuning switch in the antenna tuning switch list as a target switch according to the input information collected by the interface, and acquiring logic configuration information aiming at the target switch;
and carrying out logic configuration operation on the target switch through an adb command of the android debugging bridge according to the logic configuration information.
Optionally, in the antenna tuning switch list, each entry includes a GPIO identification number, a switch serial number, and corresponding logic pin information.
Optionally, the antenna tuning switch logic control method further includes: and obtaining root permission before obtaining an antenna tuning switch list corresponding to the equipment model of the Android terminal through an adb command.
Optionally, the antenna tuning switch is any one of a main set antenna switch, a diversity antenna switch, or a wide bandgap switch.
An antenna tuning switch logic control system is applied to an Android terminal and comprises:
the information storage area is used for storing a preset mapping relation table of the equipment model and the antenna tuning switch;
the switch list reading module is used for obtaining an antenna tuning switch list corresponding to the equipment model of the Android terminal through an adb command according to the mapping relation table;
the display module is used for displaying the antenna tuning switch list through an interface; the antenna tuning switch list is also used for acquiring input information in the interface, determining at least one antenna tuning switch in the antenna tuning switch list as a target switch according to the input information, and acquiring logic configuration information aiming at the target switch;
and the configuration adjusting module is used for carrying out logic configuration operation on the target switch through an adb command according to the logic configuration information.
Optionally, the system further includes a login module; and the login module is used for acquiring root permission before the antenna tuning switch list corresponding to the equipment model of the Android terminal is acquired through the adb command.
An Android terminal comprises an antenna and an antenna tuning switch connected with the antenna, and further comprises the antenna tuning switch logic control system.
Optionally, the antenna tuning switch is a main set antenna switch, a diversity antenna switch, or a wide band gap switch.
A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the antenna tuning switch logic control method as described in any one of the above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
different from a conventional permanent writing mode, the embodiment of the invention adopts a temporary writing mode and is realized based on android APK, and workers can directly and flexibly control the state of the antenna tuning switch on an equipment interface and can finish the control without the help of professional software programmers and computers, so that the logical configuration work of the antenna tuning switch is simplified, and the working efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for controlling an antenna tuning switch according to an embodiment of the present invention.
Detailed Description
In order to make the embodiment of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without any creative efforts shall fall within the protection scope of the embodiments of the present invention.
In embodiments of the present invention, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Because the high-pass platform can read the state of a General-purpose input/output (GPIO) through an adb (Android Debug Bridge) instruction, the embodiment of the present invention provides an antenna tuning switch logic control method, which is implemented based on an Android package (Android application package), and implements state control over an antenna tuning switch through an adb tool, and is particularly suitable for a debugging stage of an Android terminal.
The Android terminal can be specifically an Android mobile phone, an Android tablet computer, an Android smart television and the like.
Referring to fig. 1, an embodiment of the present invention provides a method for controlling an antenna tuning switch, including:
step 101, starting APK and obtaining root authority.
root authority, similar to administeror in Windows system, root is a super Administrator user account in Android system, and the account has the highest authority of the whole system, so that the components of the system can be deleted or changed conveniently.
102, obtaining an antenna tuning switch list corresponding to the equipment model of the electronic equipment through an adb command according to a pre-stored mapping relation table of the equipment model and the antenna tuning switch, and displaying the antenna tuning switch list on an interface; the antenna tuning switch list comprises at least one antenna tuning switch.
The antenna tuning switch may be, specifically, a main set antenna switch, a diversity antenna switch, a wide bandgap switch, or others, and is not limited in particular.
The antenna tuning switch list is actually a data table, as shown in table 1 below, and each table entry includes a GPIO identification number, a switch serial number, and corresponding logic pin information. For example, as shown in table 1, GPIO66 is pin 2 of switch 2.
Watch 1
GPIO Switch serial number The switch corresponds to the logic pin
47 1 1
48 1 2
65 2 1
66 2 2
75 3 1
38 3 2
134 3 3
The antenna tuning switch list can be obtained through the following code lines:
cd/sys/kernel/debug/
cat gpio。
step 103, determining at least one antenna tuning switch in the antenna tuning switch list as a target switch according to the input information collected by the interface, and obtaining logic configuration information for the target switch.
In the display interface of the antenna tuning switch list, a user can manually select any antenna tuning switch as a target switch needing state adjustment, and manually input the logic configuration information of the target switch.
And step 104, carrying out logic configuration operation on the target switch through an adb command according to the logic configuration information.
Illustratively, the GPIO may be directly configured by the following code (for convenience of illustration, GPIO66 is taken as an example here, and the corresponding adb instruction content called by the APK is directly illustrated):
adb root
adb shell
cd/sys/class/gpio/
echo 66>export
cdgpio66
echo 'value' > value// setting the gpio register value
cat value// obtaining the value of the gpio register
And replacing the value in the penultimate sentence by using the required corresponding value, wherein 1 is pull-up, and 0 is pull-down, namely the logic configuration is completed. And the last sentence can be used for APK to carry out logic implementation check and is synchronously displayed in the display interface, so that a user can conveniently confirm whether the command is correctly executed.
Based on the Android APK-based antenna tuning switch logic control method, a worker can directly and flexibly control the state of the antenna tuning switch on a mobile phone interface and can complete the control without the help of professional software programmers and computers, so that the antenna tuning switch logic configuration work is simplified, and the work efficiency is improved.
It should be noted that, unlike the conventional permanent writing method, the embodiment of the present invention employs the temporary writing method, which can quickly and conveniently perform temporary adjustment on the state of the antenna tuning switch, and thus is particularly suitable for the debugging stage that needs to repeat multiple state adjustments.
Another embodiment of the present invention provides an antenna tuning switch logic control system, which is applied to an Android terminal, and includes: the device comprises a login module, an information storage area, a display module and a configuration adjustment module.
And the login module is used for obtaining root authority when the APK is started.
And the information storage area is used for storing a preset mapping relation table between the equipment model and the antenna tuning switch.
And the switch list reading module is used for obtaining an antenna tuning switch list corresponding to the equipment model of the electronic equipment through an adb command according to the mapping relation table after the root authority is obtained.
The display module is used for displaying an antenna tuning switch list through an interface; the method is also used for acquiring input information in the interface, determining at least one antenna tuning switch in the antenna tuning switch list as a target switch according to the input information, and acquiring logic configuration information aiming at the target switch.
And the configuration adjusting module is used for carrying out logic configuration operation on the target switch through the adb command according to the logic configuration information.
Based on the system, simple and flexible on-off state control can be realized, the debugging working time is greatly reduced, and the working efficiency is improved.
Another embodiment of the present invention further provides an Android terminal, which includes an antenna and an antenna tuning switch connected to the antenna, and further includes the antenna tuning switch logic control system described above.
The Android terminal may be a terminal running an Android system, such as a smart phone, a notebook computer, a desktop computer, a tablet computer, a Personal Digital Assistant (PDA), a television, and the like.
It will be understood by those skilled in the art that all or part of the steps in the above method embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention further provides a computer-readable storage medium, where a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in the antenna tuning switch logic control method provided in the embodiment of the present invention.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for logically controlling an antenna tuning switch is applied to an Android terminal, and is characterized by comprising the following steps:
according to a pre-stored mapping relation table of the equipment model and an antenna tuning switch, obtaining an antenna tuning switch list corresponding to the equipment model of the Android terminal through an adb command and displaying the antenna tuning switch list on an interface, wherein the antenna tuning switch list comprises at least one antenna tuning switch;
determining at least one antenna tuning switch in the antenna tuning switch list as a target switch according to the input information collected by the interface, and acquiring logic configuration information aiming at the target switch;
and carrying out logic configuration operation on the target switch through an adb command of the android debugging bridge according to the logic configuration information.
2. The antenna tuning switch logic control method according to claim 1, wherein each entry in the antenna tuning switch list includes a general purpose input output port GPIO identification number, a switch serial number, and corresponding logic pin information.
3. The antenna tuning switch logic control method of claim 1, further comprising: and obtaining root permission before obtaining an antenna tuning switch list corresponding to the equipment model of the Android terminal through an adb command.
4. The antenna tuning switch logic control method of claim 1, wherein the antenna tuning switch is any one of a main set antenna switch, a diversity antenna switch, or a wide bandgap switch.
5. The utility model provides an antenna tuning switch logic control system, is applied to the Android terminal, its characterized in that includes:
the information storage area is used for storing a preset mapping relation table of the equipment model and the antenna tuning switch;
the switch list reading module is used for obtaining an antenna tuning switch list corresponding to the equipment model of the Android terminal through an adb command according to the mapping relation table;
the display module is used for displaying the antenna tuning switch list through an interface; the antenna tuning switch list is also used for acquiring input information in the interface, determining at least one antenna tuning switch in the antenna tuning switch list as a target switch according to the input information, and acquiring logic configuration information aiming at the target switch;
and the configuration adjusting module is used for carrying out logic configuration operation on the target switch through an adb command according to the logic configuration information.
6. The antenna tuning switch logic control system of claim 5, further comprising a log-in module; and the login module is used for acquiring root permission before the antenna tuning switch list corresponding to the equipment model of the Android terminal is acquired through the adb command.
7. An Android terminal comprising an antenna and an antenna tuning switch connected to the antenna, characterized by further comprising the antenna tuning switch logic control system of claim 5 or 6.
8. The Android terminal of claim 7, wherein the antenna tuning switch is a main set antenna switch, a diversity antenna switch, or a wide bandgap switch.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the antenna tuning switch logic control method of any one of claims 1 to 4.
CN201911414323.4A 2019-12-31 2019-12-31 Antenna tuning switch logic control method, system and terminal Active CN111147091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911414323.4A CN111147091B (en) 2019-12-31 2019-12-31 Antenna tuning switch logic control method, system and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911414323.4A CN111147091B (en) 2019-12-31 2019-12-31 Antenna tuning switch logic control method, system and terminal

Publications (2)

Publication Number Publication Date
CN111147091A CN111147091A (en) 2020-05-12
CN111147091B true CN111147091B (en) 2021-06-04

Family

ID=70522662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911414323.4A Active CN111147091B (en) 2019-12-31 2019-12-31 Antenna tuning switch logic control method, system and terminal

Country Status (1)

Country Link
CN (1) CN111147091B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104770B (en) * 2020-09-04 2022-08-05 Tcl通讯(宁波)有限公司 Antenna tuning switch controller, communication module and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9559745B2 (en) * 2013-02-05 2017-01-31 Qorvo Us, Inc. Dedicated shunt switch with improved ground
WO2017143175A1 (en) * 2016-02-18 2017-08-24 Searete Llc Empirically modulated antenna systems and related methods
CN106775758A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Method for managing resource and device
CN107835033B (en) * 2017-11-30 2020-06-05 Oppo广东移动通信有限公司 Antenna tuning switch control method and device, terminal equipment and storage medium
CN208272956U (en) * 2018-03-29 2018-12-21 厦门美图移动科技有限公司 antenna tuning circuit and terminal device
CN108712686A (en) * 2018-05-11 2018-10-26 星络科技有限公司 A kind of method of controlling switch and system

Also Published As

Publication number Publication date
CN111147091A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN101938566B (en) Visual terminal debugging method and device
US20090198770A1 (en) System and method of updating codes in controller
US20060259902A1 (en) Embedded system self-updating method and device
US20060200815A1 (en) Electronic Device and Method for Updating Related Programs
US11354192B2 (en) Data storage devices and methods for firmware failure prevention
CN110515641A (en) The update method of server firmware, apparatus and system
CN101154207A (en) Operating method for configured interface of microcontroller
CN104239097A (en) Method and system for upgrading fitting by virtue of mobile terminal, and mobile terminal
US20070079094A1 (en) System and method for enabling/disabling write-protection of a basic input output system
CN110780908A (en) Screen display program upgrading method and system and terminal equipment
CN111147091B (en) Antenna tuning switch logic control method, system and terminal
CN111949332A (en) Method, system and device for modifying options of basic input and output system
CN108694052B (en) Firmware upgrading method, firmware upgrading device and firmware upgrading system
US20150026519A1 (en) Serial attached small computer system interface expander and debugging method
US20070005860A1 (en) Interrupt control system and method
US8458730B2 (en) Multi-level driver configuration
CN110569038B (en) Random verification parameter design method, device, computer equipment and storage medium
CN111143240B (en) Image storage method, system and terminal equipment
KR102096085B1 (en) Apparatus and method for monitoring application
CN109582338A (en) BIOS option amending method, device, equipment and storage medium
CN106294143B (en) Debugging method and device for chip register
CN112417802B (en) Method, system, equipment and storage medium for simulating storage chip
CN108958837A (en) A kind of method, system and the medium of dynamic configuration ME firmware
CN110192178A (en) Method, apparatus, micro-control unit and the terminal device of program patch installing
US9519428B2 (en) Dynamically improving performance of a host memory controller and a memory device

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