Antenna tuner pin level state control method, device, medium and program product
By obtaining the pin level configuration command, the pin level status of the antenna tuner can be flexibly configured, which solves the problem that different antenna tuners require different wireless communication module firmware and realizes efficient and low-cost antenna tuner configuration.
Patent Information
- Application Number
- CN202211263184.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-14
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-10-14
AI Technical Summary
In the prior art, different antenna tuners in the same frequency band require different wireless communication module firmware to be configured, resulting in low configuration efficiency and high cost.
By obtaining the pin level configuration command, the pin level state of the antenna tuner is configured and set according to the target pin level state of the target frequency band, thereby realizing a flexible configuration method.
The configuration flexibility and efficiency of the antenna tuner are improved, and the configuration cost is reduced.
Smart Images

Figure CN115664436B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a method, device, medium, and program product for controlling the pin level state of an antenna tuner. Background Art
[0002] An antenna tuner is an impedance matching network that connects the RF transmitter / RF receiver and the antenna. It can achieve impedance matching between the RF transmitter / RF receiver and the antenna, thereby improving the RF signal transmission performance between the RF transmitter / RF receiver and the antenna.
[0003] At present, antenna tuners are often configured through wireless communication modules to achieve impedance matching between the RF transmitter / RF receiver and the antenna. The specific process is: the wireless communication module can pre-set the pin level state of the antenna tuner for each frequency band. When using a certain frequency band for wireless communication, the wireless communication module can configure the pin level state of the antenna tuner based on the pin level state corresponding to the frequency band set above to achieve impedance matching between the RF transmitter / RF receiver and the antenna.
[0004] However, for wireless communications in the same frequency band, different antenna tuners generally have different pin level states when matching the impedance between the RF transmitter / RF receiver and the antenna, while the pin level state of the antenna tuner set in the wireless communication module is fixed. Therefore, different wireless communication module firmware is required to configure different antenna tuners, and if the state of the same antenna tuner needs to be changed, different wireless communication module firmware also needs to be replaced, which makes the configuration of the antenna tuner less efficient and more costly. Summary of the Invention
[0005] The present application provides a method, device, medium, and program product for controlling the pin level state of an antenna tuner, so as to reduce the cost of configuring the antenna tuner and improve the flexibility and efficiency of configuring the antenna tuner.
[0006] In a first aspect, the present application provides a pin level state control method for an antenna tuner, the method comprising: obtaining a pin level configuration command, the pin level configuration command including a target pin level state configuration of a target frequency band; and setting the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band.
[0007] In the second aspect, the present application provides a pin level state control device for an antenna tuner, comprising: an acquisition module and a setting module, wherein the acquisition module is used to acquire a pin level configuration command, the pin level configuration command including a target pin level state configuration of a target frequency band; the setting module is used to set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band.
[0008] In a third aspect, an electronic device is provided, comprising: a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the first aspect or its various implementations.
[0009] In a fourth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program enables a computer to execute the method according to the first aspect or its various implementations.
[0010] In a fifth aspect, a computer program product is provided, comprising computer program instructions, which enable a computer to execute the method in the first aspect or its various implementations.
[0011] In a sixth aspect, a computer program is provided, which enables a computer to execute the method in the first aspect or its various implementations.
[0012] Through the technical solution of the present application, the electronic device can first obtain a pin level configuration command, and the pin level configuration command includes a target pin level state configuration of the target frequency band. Then, the electronic device can set the pin level state of the antenna tuner in the above target frequency band according to the target pin level state configuration of the target frequency band. In the above process, the electronic device can set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band in the pin level configuration command. Compared with the prior art that can only set the antenna tuner according to the pin level state pre-set by the electronic device, the present application can improve the flexibility and efficiency of configuring the antenna tuner. Moreover, for different antenna tuners, different pin level configuration commands can be obtained through the same electronic device to set them, thereby reducing the cost of configuring the antenna tuner. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0014] Figure 1 A flowchart of a method for controlling a pin level state of an antenna tuner provided in an embodiment of the present application;
[0015] Figure 2 A schematic diagram of pin level state control of an antenna tuner provided in an embodiment of the present application;
[0016] Figure 3A flowchart of a method for powering on and initializing a wireless communication module provided in an embodiment of the present application;
[0017] Figure 4 A flow chart of a method for setting the pin level state of an antenna tuner provided in an embodiment of the present application;
[0018] Figure 5 A schematic diagram of a pin level state control device 500 for an antenna tuner provided in an embodiment of the present application;
[0019] Figure 6 It is a schematic block diagram of an electronic device 600 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0022] As mentioned above, when wireless communications are currently performed within a specific frequency band, the wireless communication module often configures an antenna tuner to achieve impedance matching between the RF transmitter / RF receiver and the antenna. Specifically, the wireless communication module pre-sets the antenna tuner's pin level state for each frequency band. Then, based on the previously set pin level state corresponding to the current frequency band, the wireless communication module configures the antenna tuner's pin level state to achieve impedance matching between the RF transmitter / RF receiver and the antenna. However, for wireless communications within the same frequency band, different antenna tuners typically use different pin level states when achieving impedance matching between the RF transmitter / RF receiver and the antenna. However, the pin level states of the antenna tuner set by the wireless communication module are fixed. Therefore, configuring different antenna tuners requires different wireless communication module firmware. Furthermore, changing the state of the same antenna tuner also requires replacing different wireless communication module firmware, which results in low efficiency and high cost in configuring the antenna tuner.
[0023] To solve the above technical problems, the present application can receive a pin level configuration command and set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band in the pin level configuration command. Compared with the prior art that can only set the antenna tuner according to the pin level state pre-set by the electronic device, the present application can improve the flexibility and efficiency of configuring the antenna tuner. Moreover, for different antenna tuners, different pin level configuration commands can be obtained through the same electronic device to set them, thereby reducing the cost of configuring the antenna tuner.
[0024] The technical solution of the present application can be implemented by an electronic device, for example, a wireless communication module. The application scenario of the technical solution of the present application is: during wireless communication, the electronic device sets the pin level state of the antenna tuner to achieve impedance matching between the RF transmitter / RF receiver and the antenna, thereby improving the RF signal transmission performance between the RF transmitter / RF receiver and the antenna.
[0025] After introducing the application scenarios of the technical solution of this application, the technical solution of this application will be elaborated in detail below:
[0026] Figure 1 A flowchart of a method for controlling the pin level state of an antenna tuner provided in an embodiment of the present application. The method can be executed by an electronic device, for example, the electronic device can be a wireless communication module, and the present application does not limit this. Figure 1 As shown, the method may include the following steps:
[0027] S110: Acquire a pin level configuration command, where the pin level configuration command includes a target pin level state configuration for a target frequency band;
[0028] S120: Setting the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band.
[0029] In the following embodiments, the present application will take an electronic device that is a wireless communication module as an example to introduce the technical solution of the present application.
[0030] In some implementations, the target pin level state configuration of the target frequency band may include, but is not limited to, an identifier of the target frequency band and a pin level state of the target frequency band. The identifier of the target frequency band may be a name of the target frequency band, which is not limited in this application.
[0031] In some implementations, the terminal device can generate a pin level configuration command based on a user input operation on the terminal device, and send the pin level configuration command to the wireless communication module, so that the wireless communication module can obtain the pin level configuration command. The terminal device can be a mobile phone, a tablet computer, a laptop computer, etc., and this application does not limit this.
[0032] For example, assuming that the target pin level state configuration of the target frequency band includes the target frequency band identifier and the target frequency band pin level state, the user can input the target frequency band identifier and the target frequency band pin level state on the terminal device, and the terminal device can generate a pin level configuration command based on the above user input. For example, assuming that the antenna tuner has 3 pins, the user input on the terminal device is as follows: Figure 2 As shown, the identifier of the target frequency band input by the user is frequency band 1, and the pin level status of the target frequency band input by the user is "high-low-high". Then, the terminal device can generate a pin level configuration command 1 according to the above input operation of the user, and the pin level configuration command 1 includes: frequency band 1, high-low-high.
[0033] In some possible implementations, assuming that the wireless communication module uses the above-mentioned frequency band 1 for wireless communication, after obtaining the pin level configuration command which is the above-mentioned pin level configuration command 1, the wireless communication module can set the pin level state of the wireless tuner under frequency band 1 to "high, low, high" according to the "frequency band 1, high, low, high" in the pin level configuration command 1.
[0034] In some implementations, before setting the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration for the target frequency band, the wireless communication module may determine whether the target pin level state configuration for the target frequency band is legal. If the target pin level state configuration for the target frequency band is legal, the wireless communication module may set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration for the target frequency band. In this way, by ensuring the legality of the target pin level state configuration for the target frequency band, the wireless communication module can ensure that the pin level state of the antenna tuner can be properly set, thereby improving the accuracy and efficiency of the pin level state setting of the antenna tuner.
[0035] In some possible implementations, when the target pin level state configuration of the target frequency band includes: the identifier of the target frequency band and the pin level state of the target frequency band, the wireless communication module can determine whether the target pin level state configuration of the target frequency band is legal by determining whether the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner and whether the pin level state of the target frequency band is within the preset pin level state range. If the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner and the pin level state of the target frequency band is within the preset pin level state range, the wireless communication module can determine that the target pin level state configuration of the target frequency band is legal; if the identifier of the target frequency band is not a frequency band identifier supported by the antenna tuner, or the pin level state of the target frequency band is not within the preset pin level state range, the wireless communication module can determine that the target pin level state configuration of the target frequency band is illegal.
[0036] Exemplarily, the wireless communication module can pre-store the frequency band identifiers supported by the antenna tuner in a target database. When determining whether the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner, the wireless communication module can search the above-mentioned target database for the identifier of the target frequency band. If the identifier of the target frequency band is stored in the above-mentioned target database, it can be determined that the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner; if the identifier of the target frequency band is not stored in the above-mentioned target database, it can be determined that the identifier of the target frequency band is not a frequency band identifier supported by the antenna tuner. The above-mentioned target database can be a local database of the wireless communication module, a cloud database of the wireless communication module, or other databases, and this application does not impose any restrictions on this. For example: assuming that the frequency band identifiers supported by the antenna tuner are: Band 1 and Band 2, the wireless communication module can store Band 1 and Band 2 in the target database in advance, and the pin level configuration command obtained by the wireless communication module is the above-mentioned pin level configuration command 1, and the pin level configuration command 1 includes "Band 1, high, low, high", then the wireless communication module can determine that Band 1 is stored in the target database, and the wireless communication module can determine that Band 1 is the frequency band identifier supported by the antenna tuner.
[0037] For example, assuming that the preset pin level state range is: 0, 1, where "0" represents a low level and "1" represents a high level, if the pin level state of the target frequency band is "001", the wireless communication module can determine that the pin level state of the above-mentioned target frequency band is within the above-mentioned preset pin level state range; if the pin level state of the target frequency band is "002", the wireless communication module can determine that the pin level state of the above-mentioned target frequency band is not within the above-mentioned preset pin level state range.
[0038] Exemplarily, assuming that the preset pin level state range is: high-high-low, high-low-low, low-low-high, if the pin level state of the target frequency band is "low-low-high", the wireless communication module can determine that the pin level state of the above-mentioned target frequency band is within the above-mentioned preset pin level state range; if the pin level state of the target frequency band is "high-low-high", the wireless communication module can determine that the pin level state of the above-mentioned target frequency band is not within the above-mentioned preset pin level state range.
[0039] In some implementations, the wireless communication module may be powered on and initialized before obtaining the pin level configuration command. Figure 3 This is a flowchart of a method for powering on and initializing a wireless communication module provided in an embodiment of the present application. The method is executed by the wireless communication module, such as Figure 3 As shown, the method may include the following steps:
[0040] S310: Read the configuration file;
[0041] S320: Determine whether the configuration file stores any pin level state configuration. If the configuration file does not store any pin level state configuration, execute S330. If the configuration file does store any pin level state configuration, execute S340.
[0042] S330: Write the default pin level status configuration of the target frequency band into the configuration file;
[0043] S340: Power-on initialization is completed.
[0044] It is understandable that if the wireless communication module is powered on and initialized for the first time, no pin level state configuration will be stored in the configuration file, and the wireless communication module can write the default pin level state configuration of the target frequency band into the configuration file; if the wireless communication module is not powered on and initialized for the first time, the configuration file will store the default pin level state configuration of the target frequency band. In this way, when the wireless communication module needs to set the antenna tuner, the wireless communication module can choose to set the antenna tuner based on the default pin level state configuration of the target frequency band. In other words, regardless of whether the wireless communication module obtains the target pin level state configuration, the wireless communication module can set the antenna tuner, thereby ensuring that the wireless communication module can set the antenna tuner normally.
[0045] In some implementations, the configuration file may be a file in the wireless communication module used to store pin level status configurations. The default pin level status configuration may include: a default frequency band identifier and a pin level status of the default frequency band, but is not limited thereto.
[0046] For example, assuming that the default pin level state configuration of the target frequency band includes: Band 1, high-high-high, when the wireless communication module is powered on and initialized, the wireless communication module determines that the configuration file does not store any pin level state configuration, then the wireless communication module can write the default pin level state configuration of the above-mentioned target frequency band "Band 1, high-high-high" into the configuration file.
[0047] In some implementable embodiments, after determining whether the target pin level state configuration of the above-mentioned target frequency band is legal, the wireless communication module may also determine whether the target pin level state configuration of the target frequency band is consistent with the default pin level state configuration of the target frequency band in the above-mentioned configuration file when the target pin level state configuration of the above-mentioned target frequency band is legal; when the target pin level state configuration of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band, the target pin level state configuration of the target frequency band is written into the configuration file. In this way, on the one hand, it can be ensured that when the pin level state of the antenna tuner is suddenly stopped due to a sudden power outage or other reasons, the user can find the target pin level state configuration of the target frequency band in the configuration file, so as to continue to set the pin level state of the antenna tuner according to the target pin level state configuration of the target frequency band; on the other hand, the wireless communication module can set the pin level state of the antenna tuner at any time by reading the target pin level state configuration of the target frequency band in the configuration file, thereby improving the efficiency of setting the pin level state of the antenna tuner; on the other hand, since the wireless communication module writes the target pin level state configuration of the target frequency band into the configuration file only when the target pin level state configuration of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band, the storage pressure of the configuration file can be reduced.
[0048] For example, assuming that the default pin level state configuration of the target frequency band stored in the configuration file is: Band 1, high-high-high, the wireless communication module determines that the target pin level state configuration command 1 of the target frequency band is legal, and the target pin level state configuration command 1 of the target frequency band obtained by the wireless communication module is: Band 1, high-low-high, then the wireless communication module can determine that the target pin level state configuration command 1 of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band, then the wireless communication module can write the target pin level state configuration command 1 of the target frequency band into the configuration file.
[0049] In some possible implementations, when the target pin level state configuration of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band, the wireless communication module can set the target pin level state configuration of the target frequency band to an enabled state, so that the wireless communication module can set the pin level state of the antenna tuner according to the target pin level state configuration of the target frequency band.
[0050] In some implementations, Figure 4 This is a flow chart of a method for setting the pin level state of an antenna tuner provided in an embodiment of the present application. The method is executed by a wireless communication module, such as Figure 4 As shown, the method may include the following steps:
[0051] S410: Read the configuration file;
[0052] S420: Determine whether the target pin level state configuration of the target frequency band is in the enabled state. If the target pin level state configuration of the target frequency band is in the enabled state, execute S430; if the target pin level state configuration of the target frequency band is not in the enabled state, execute S440;
[0053] S430: Setting the pin level state of the antenna tuner according to the target pin level state configuration of the target frequency band;
[0054] S440: Setting the pin level state of the antenna tuner according to the default pin level state configuration of the target frequency band.
[0055] For example, assuming that the default pin level state configuration of the target frequency band stored in the configuration file is: band 1, high-high-high, the wireless communication module determines that the target pin level state configuration command 1 of the target frequency band is legal, and the target pin level state configuration command 1 of the target frequency band obtained by the wireless communication module is: band 1, high-low-high, then the wireless communication module can determine that the target pin level state configuration command 1 of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band, then the wireless communication module can write the target pin level state configuration command 1 of the target frequency band into the configuration file, and the wireless communication module can set the target pin level state configuration command 1 of the target frequency band to the enabled state, then, when the wireless communication module performs wireless communication under the above-mentioned target frequency band, the wireless communication module can first read the configuration file, then, the wireless communication module can determine that the target pin level state configuration command 1 of the target frequency band is the enabled state, then the wireless communication module can set the pin level state of the antenna tuner according to the target pin level state configuration of the target frequency band.
[0056] In some implementations, after the antenna tuner is updated, the wireless communication module may set the target pin level state configuration of the target frequency band to a non-enabled state. For example, the updating of the antenna tuner may refer to the wireless communication module setting the pin level state of the antenna tuner according to the target pin level state configuration of the target frequency band. In this way, after the wireless communication module sets the pin level state of the antenna tuner according to the target pin level state configuration of the target frequency band, the wireless communication module may also set other pin level state configurations of other frequency bands to enabled states, thereby facilitating the wireless communication module to set the pin level state of the antenna tuner according to other pin level state configurations of other frequency bands.
[0057] In other possible implementations, after the antenna tuner is updated, such as after the wireless communication module sets the pin level state of the antenna tuner according to the target pin level state configuration of the target frequency band, the wireless communication module can delete the target pin level state configuration of the target frequency band from the configuration file. In this way, not only can the storage pressure of the configuration file be reduced, but the wireless communication module can also set other pin level state configurations of other frequency bands to an enabled state, thereby facilitating the wireless communication module to set the pin level state of the antenna tuner according to other pin level state configurations of other frequency bands.
[0058] In summary, the technical solutions provided by the above embodiments bring at least the following beneficial effects: through the technical solution of the present application, the electronic device can first obtain a pin level configuration command, the pin level configuration command includes a target pin level state configuration of the target frequency band, and then the electronic device can set the pin level state of the antenna tuner in the above target frequency band according to the target pin level state configuration of the target frequency band. In the above process, the electronic device can set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band in the pin level configuration command. Compared with the prior art that can only set the antenna tuner according to the pin level state pre-set by the electronic device, the present application can improve the flexibility and efficiency of configuring the antenna tuner. Moreover, for different antenna tuners, different pin level configuration commands can be obtained through the same electronic device to set them, thereby reducing the cost of configuring the antenna tuner.
[0059] Furthermore, when the target pin level state configuration of the target frequency band is legal, the electronic device can set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band. In this way, by ensuring the legality of the target pin level state configuration of the target frequency band, it can be ensured that the wireless communication module can normally set the pin level state of the antenna tuner, thereby improving the accuracy and efficiency of the pin level state setting of the antenna tuner.
[0060] Furthermore, the wireless communication module can perform power-on initialization before obtaining the pin level configuration command to ensure that the configuration file stores the default pin level state configuration, thereby ensuring that when the wireless communication module needs to set the antenna tuner, the wireless communication module can choose to set the antenna tuner based on the default pin level state configuration. In other words, regardless of whether the wireless communication module obtains the target pin level state configuration, the wireless communication module can set the antenna tuner, thereby ensuring that the wireless communication module can set the antenna tuner normally.
[0061] Furthermore, the wireless communication module can write the target pin level state configuration of the target frequency band into the configuration file when the target pin level state configuration of the target frequency band is legal and inconsistent with the default pin level state configuration of the target frequency band. This ensures that if the setting of the antenna tuner's pin level state is suddenly interrupted due to a sudden power outage or other reasons, the user can find the target pin level state configuration of the target frequency band in the configuration file, conveniently continuing to set the antenna tuner's pin level state according to the target pin level state configuration of the target frequency band. It also enables the wireless communication module to set the antenna tuner's pin level state at any time by reading the target pin level state configuration of the target frequency band from the configuration file, thereby improving the efficiency of setting the antenna tuner's pin level state. Furthermore, because the wireless communication module only writes the target pin level state configuration of the target frequency band into the configuration file when it is inconsistent with the default pin level state configuration of the target frequency band, it can also reduce the storage pressure of the configuration file.
[0062] Figure 5 A schematic diagram of a pin level state control device 500 for an antenna tuner provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the apparatus 500 includes:
[0063] An acquisition module 510 is configured to acquire a pin level configuration command, where the pin level configuration command includes a target pin level state configuration of a target frequency band;
[0064] The setting module 520 is configured to set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band.
[0065] In some possible implementations, the device 500 also includes: a first judgment module 530, the first judgment module 530 is used to determine whether the target pin level state configuration of the target frequency band is legal; the setting module 520 is specifically used to set the pin level state of the antenna tuner in the target frequency band according to the target pin level state configuration of the target frequency band when the target pin level state configuration of the target frequency band is legal.
[0066] In some possible implementations, the device 500 also includes: a second judgment module 540 and a writing module 550, wherein the second judgment module 540 is used to judge whether the target pin level state configuration of the target frequency band is consistent with the default pin level state configuration of the target frequency band in the configuration file when the target pin level state configuration of the target frequency band is legal; the writing module 550 is used to write the target pin level state configuration of the target frequency band into the configuration file when the target pin level state configuration of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band.
[0067] In some implementations, the apparatus 500 further includes: a deleting module 560 , configured to delete the target pin level state configuration of the target frequency band from the configuration file after the antenna tuner is updated.
[0068] In some implementations, the apparatus 500 further includes: a first setting module 570, configured to set the target pin level state configuration of the target frequency band to an enabled state when the target pin level state configuration of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band.
[0069] In some implementations, the apparatus 500 further includes: a second setting module 580, configured to set the target pin level state configuration of the target frequency band to a disabled state after the antenna tuner is updated.
[0070] In some possible implementations, the target pin level state configuration of the target frequency band includes: an identifier of the target frequency band and a pin level state of the target frequency band; the first judgment module 530 is specifically used to determine whether the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner, and whether the pin level state of the target frequency band is within a preset pin level state range; if the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner, and the pin level state of the target frequency band is within the preset pin level state range, then it is determined that the target pin level state configuration of the target frequency band is legal; if the identifier of the target frequency band is not a frequency band identifier supported by the antenna tuner, or the pin level state of the target frequency band is not within the preset pin level state range, then it is determined that the target pin level state configuration of the target frequency band is illegal.
[0071] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Figure 5 The device 500 shown can execute the above method embodiments, and the aforementioned and other operations and / or functions of each module in the device 500 are respectively for implementing the corresponding processes in the above methods. For the sake of brevity, they are not repeated here.
[0072] The above describes the device 500 of the embodiment of the present application from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in conjunction with its hardware.
[0073] Figure 6 It is a schematic block diagram of an electronic device 600 provided in an embodiment of the present application.
[0074] like Figure 6 As shown, the electronic device 600 may include:
[0075] The memory 610 and the processor 620 are configured to store computer programs and transmit the program code to the processor 620. In other words, the processor 620 can call and run the computer program from the memory 610 to implement the method in the embodiment of the present application.
[0076] For example, the processor 620 may be configured to execute the above method embodiments according to instructions in the computer program.
[0077] In some embodiments of the present application, the processor 620 may include but is not limited to:
[0078] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0079] In some embodiments of the present application, the memory 610 includes but is not limited to:
[0080] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0081] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 610 and executed by the processor 620 to implement the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0082] like Figure 6 As shown, the electronic device may further include:
[0083] The transceiver 630 may be connected to the processor 620 or the memory 610 .
[0084] The processor 620 may control the transceiver 630 to communicate with other devices. Specifically, the processor 620 may send information or data to other devices or receive information or data sent by other devices. The transceiver 630 may include a transmitter and a receiver. The transceiver 630 may further include one or more antennas.
[0085] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0086] The present application also provides a computer storage medium having a computer program stored thereon, which, when executed by a computer, enables the computer to perform the method of the above-mentioned method embodiment. In other words, the present application also provides a computer program product containing instructions, which, when executed by a computer, enables the computer to perform the method of the above-mentioned method embodiment.
[0087] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state drive (SSD)).
[0088] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0090] Modules described as separate components may or may not be physically separate, and components displayed as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected based on actual needs to achieve the purpose of the present embodiment. For example, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module.
[0091] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for controlling the pin level state of an antenna tuner, characterized in that: include: Obtaining a pin level configuration command, wherein the pin level configuration command includes a target pin level state configuration of a target frequency band; Determining whether the target pin level state configuration of the target frequency band is legal; When the target pin level state configuration of the target frequency band is legal, determining whether the target pin level state configuration of the target frequency band is consistent with the default pin level state configuration of the target frequency band in the configuration file; When the target pin level state configuration of the target frequency band is inconsistent with the default pin level state configuration of the target frequency band, writing the target pin level state configuration of the target frequency band into the configuration file; and setting the target pin level state configuration of the target frequency band to an enabled state; Setting a pin level state of the antenna tuner in the target frequency band according to a target pin level state configuration of the target frequency band; The pin level configuration command is generated by the terminal device according to the user's input operation on the terminal device and sent to the wireless communication module.
2. The method according to claim 1, characterized in that Also includes: After the antenna tuner is updated, the target pin level status configuration of the target frequency band is deleted from the configuration file.
3. The method according to claim 1, characterized in that Also includes: After the antenna tuner is updated, the target pin level state of the target frequency band is configured to be a disabled state.
4. The method according to any one of claims 1 to 3, characterized in that The target pin level state configuration of the target frequency band includes: an identifier of the target frequency band and a pin level state of the target frequency band; The determining whether the target pin level state configuration of the target frequency band is legal includes: Determining whether the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner, and whether the pin level state of the target frequency band is within a preset pin level state range; If the identifier of the target frequency band is a frequency band identifier supported by the antenna tuner, and the pin level state of the target frequency band is within a preset pin level state range, determining that the target pin level state configuration of the target frequency band is legal; If the identifier of the target frequency band is not a frequency band identifier supported by the antenna tuner, or the pin level state of the target frequency band is not within a preset pin level state range, it is determined that the target pin level state configuration of the target frequency band is illegal.
5. A pin level state control device for an antenna tuner for executing the method according to any one of claims 1 to 4, characterized in that: include: an acquisition module, configured to acquire a pin level configuration command, wherein the pin level configuration command includes a target pin level state configuration of a target frequency band; The setting module is configured to set a pin level state of the antenna tuner in the target frequency band according to a target pin level state configuration of the target frequency band.
6. An electronic device, characterized in that: include: processor; as well as a memory for storing executable instructions of the processor; The processor is configured to perform the method according to any one of claims 1 to 4 by executing the executable instructions.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
8. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Chip pin configuration method and device, equipment and medium
CN109740282A