Function verification method based on antenna, electronic equipment and storage medium
By connecting to the communication equipment via an external antenna, the signal parameters are detected and verified after the conditions are met. This solves the problem of long verification cycles caused by the dependence on built-in antennas and improves the development efficiency of communication equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2026-03-10
AI Technical Summary
Functional verification of communication equipment relies on the performance of the built-in antenna, which leads to a long verification cycle and affects development efficiency.
The device communicates with an external antenna, detects the signal parameters of the external antenna, and performs functional verification if the conditions are met; otherwise, it prompts the user to replace or adjust the external antenna, skipping the waiting process for the internal antenna.
It shortened the functional verification cycle and improved the development efficiency of communication equipment.
Smart Images

Figure CN121645308A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, electronic device and storage medium for functional verification based on an antenna. Background Technology
[0002] In the development of communication devices (such as mobile phones, tablets, etc.), functional verification is a crucial step to ensure that the communication devices can function properly according to the design specifications.
[0003] However, in related technologies, the completion of some functional verifications in communication devices depends on the performance of the built-in antennas in the communication devices, which may lead to a long functional verification cycle, affecting the development cycle of communication devices and resulting in low development efficiency of communication devices. Summary of the Invention
[0004] In view of this, this application provides a method, electronic device and storage medium for functional verification based on antenna, so as to solve the problem of low development efficiency of communication equipment in related technologies.
[0005] A first aspect of this application provides a method for functional verification based on an antenna, applied to an electronic device, the electronic device being communicatively connected to a communication device. The method includes: receiving a first signal from an external antenna; detecting a first parameter of the first signal; if the first parameter satisfies a first condition, performing functional verification on the communication device based on the communication connection between the external antenna and the communication device; if the first parameter does not satisfy the first condition, prompting the user to replace the external antenna or prompting the user to adjust the performance of the external antenna so that the first parameter of the first signal from the external antenna satisfies the first condition.
[0006] In some embodiments, the method further includes: determining the number of external antennas connected to the communication device based on the number of built-in antennas of the communication device.
[0007] In some embodiments, the method further includes: determining the position of the external antenna based on the position of the built-in antenna of the communication device; and, when the external antenna is located at the determined position, using the external antenna to simulate the function of the corresponding built-in antenna to perform functional verification of the communication device.
[0008] In some embodiments, the method further includes: receiving a second signal from the built-in antenna of the communication device, detecting a second parameter of the second signal; if the second parameter satisfies a second condition, performing functional verification on the communication device based on the communication connection between the built-in antenna and the communication device; if the second parameter does not satisfy the second condition, and the first parameter satisfies the first condition, performing functional verification on the communication device based on the communication connection between the external antenna and the communication device.
[0009] In some embodiments, the functional verification of the communication device based on the communication connection between the external antenna and the communication device includes: sending a third signal to the communication device, causing the communication device to receive the third signal through the external antenna; obtaining a first response signal returned by the communication device; and performing functional verification of the communication device according to a first functional parameter in the first response signal.
[0010] In some embodiments, the method further includes: verifying the anti-interference capability or sensitivity of the communication device based on a first functional parameter fed back by the communication device; wherein, when verifying the anti-interference capability of the communication device, the first functional parameter includes one or more of the following: receiving sensitivity, bit error rate; when verifying the sensitivity of the communication device, the first functional parameter includes one or more of the following: signal strength.
[0011] In some embodiments, the step of verifying the functionality of the communication device based on the communication connection between the built-in antenna and the communication device includes: sending a fourth signal to the communication device, causing the communication device to receive the fourth signal through the built-in antenna; obtaining a second response signal returned by the communication device; and verifying the functionality of the communication device according to a second functional parameter in the second response signal.
[0012] In some embodiments, the first parameter includes the gain of the external antenna, and the method further includes: if the gain of the external antenna meets a preset gain range, determining that the first parameter of the external antenna meets the first condition.
[0013] A second aspect of this application provides a communication device including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor executes the computer-readable instructions to implement the above-described method for functional verification based on an antenna.
[0014] A third aspect of this application provides a computer-readable storage medium storing computer-readable instructions that, when executed by a processor, implement the above-described method for functional verification based on an antenna.
[0015] This application provides a method for functional verification based on an antenna. An external antenna is designed to communicate with a communication device. When a first parameter of a first signal of the external antenna meets a first condition, functional verification of the communication device is performed based on the communication connection between the external antenna and the communication device. Using this method, there is no need to wait for the internal antenna design to be completed or for the internal antenna's performance to meet the functional verification conditions. Functional verification of the communication device can be performed using an external antenna, bypassing the internal antenna, thereby effectively shortening the functional verification cycle and consequently shortening the development cycle of the communication device, improving the development efficiency of the communication device. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is an example diagram illustrating an application scenario of the functional verification method provided in the embodiments of this application.
[0018] Figure 2 This is an example diagram illustrating an application scenario of the antenna-based functional verification method provided in this application.
[0019] Figure 3 This is an application scenario diagram of the method for functional verification based on antenna provided in the embodiments of this application.
[0020] Figure 4 This is a flowchart illustrating the implementation of the antenna-based functional verification method provided in this application embodiment.
[0021] Figure 5 This is a schematic diagram of the structure of the device for functional verification based on an antenna provided in an embodiment of this application.
[0022] Figure 6 This is a schematic diagram of the structure of the communication device provided in the embodiments of this application. Detailed Implementation
[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0024] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, unless otherwise stated, " / " in this application means "or". For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. "At least one" refers to one or more. "More than one" refers to two or more. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, and a, b, and c (seven cases).
[0026] Please see Figure 1 , Figure 1 The diagram shown illustrates an application scenario of the functional verification method provided in the embodiments of this application. For example... Figure 1 As shown, in related technologies, the communication device 100 includes a motherboard and a built-in antenna. The built-in antenna includes antenna 1, antenna 2, antenna 3, and antenna 4. The motherboard of the communication device 100 is connected to the built-in antenna. The communication device 100 uses the built-in antenna to perform some functional verifications, such as anti-interference verification and sensitivity verification integrated with the motherboard. These functional verifications are usually important steps in the development phase of the communication device 100. However, anti-interference verification and sensitivity verification integrated with the motherboard depend on the performance of the built-in antenna. If there are delays or malfunctions in the design of the built-in antenna, it may lead to a longer functional verification cycle, affecting the development cycle of the communication device 100 and resulting in lower development efficiency.
[0027] To address the aforementioned problems, embodiments of this application provide a method for functional verification based on an antenna. For example... Figure 2As shown, the communication device 100 is communicatively connected to an external antenna (e.g., antennas 5 to 8) via a motherboard. Based on this communication connection with the external antenna, the communication device 100 performs functional verification. This method eliminates the need to wait for the internal antenna design to be completed or for its performance to meet the functional verification requirements. It allows for direct functional verification of the communication device 100 via the external antenna, effectively shortening the functional verification cycle and consequently the development cycle of the communication device 100, thus improving its development efficiency.
[0028] In this embodiment, the number of built-in antennas of the communication device 100 can be set according to actual needs, and this embodiment does not limit it.
[0029] In some embodiments, external antennas are used to simulate the function of built-in antennas to verify the functionality of the communication device 100. Therefore, the number of external antennas connected to the communication device 100 should be consistent with the number of built-in antennas in the communication device 100. The positions of the external antennas should be adjacent to the corresponding positions of the built-in antennas, and adjacent external antennas should have similar or identical functions to the built-in antennas. This ensures the accuracy of simulating the function of the built-in antennas through external antennas, and the stability of the communication device 100 when it subsequently uses the built-in antennas for communication. Figure 2 As shown, the number of built-in antennas (antennas 1 to 4) and external antennas (antennas 5 to 8) in the communication device 100 is the same. Antenna 5 is adjacent to antenna 1 and has similar or identical functions; antenna 6 is adjacent to antenna 2 and has similar or identical functions; antenna 7 is adjacent to antenna 3 and has similar or identical functions; and antenna 8 is adjacent to antenna 4 and has identical functions.
[0030] Please see Figure 3 The diagram shown illustrates an application scenario of the antenna-based functional verification method provided in this application. Figure 3 As shown, electronic device 200 and communication device 100 are connected via a network. Communication device 100 is communicatively connected to external antenna 300.
[0031] In the process of implementing antenna-based functional verification, electronic device 200 can receive a first signal from external antenna 300 and detect a first parameter of the first signal. If the first parameter meets a first condition, electronic device 200 performs functional verification on communication device 100 based on the communication connection between external antenna 300 and communication device 100. If the first parameter does not meet the first condition, electronic device 200 can generate a prompt message, prompting to replace external antenna 300 or prompting to adjust the performance of external antenna 300 so that the first parameter of the first signal from external antenna 300 meets the first condition.
[0032] Typically, the performance of the external antenna 300 is sufficient to perform functional verification of the communication device 100. Therefore, when the external antenna 300 is connected to the communication device 100, the electronic device 200 can perform functional verification of the communication device 100 based on the communication connection between the external antenna 300 and the communication device 100.
[0033] In some embodiments, the network includes, but is not limited to, wired communication networks and wireless communication networks. The communication connection between the communication device 100 and the external antenna 300 can be a coaxial cable connection (e.g., an RF coaxial cable) or other types of connection. This application embodiment does not limit the communication connection method between the communication device 100 and the external antenna 300.
[0034] In some embodiments, electronic device 200 can be a test device, such as one or more devices including a spectrum analyzer, an electromagnetic compatibility test system, and an integrated communication test system. In other embodiments, the antenna-based functional verification method can be performed by communication device 100 without the need for electronic device 200. For clarity in the following description, in several embodiments of this application, electronic device 200 is described as an independent device. Electronic device 200 can be used to perform functional verification of communication device 100 or to test the performance of the antenna. Communication device 100 can be a device with a built-in antenna, such as a mobile phone, tablet computer, desktop computer, or laptop computer.
[0035] Figure 3 The scenarios shown are merely illustrative examples, and the device control method provided in this application can also be applied to other scenarios. For example, in some scenarios, it may include a communication device 100 and an external antenna 300, but not an electronic device 200; in some scenarios, the number of built-in antennas in the communication device 100 and the number of external antennas 300 that are communicatively connected to the communication device 100 may be other numbers; in some scenarios, it may also include other types of devices. The embodiments of this application do not limit the specific application scenarios of the method for functional verification based on antennas.
[0036] Please see Figure 4 The diagram shown is a flowchart illustrating the implementation of the antenna-based functional verification method provided in this application embodiment. This method is applied to electronic devices, and this application embodiment uses this method in… Figure 3 The method will be illustrated using electronic device 200 as an example. The method includes the following steps.
[0037] S11: Receive the first signal from the external antenna and detect the first parameter of the first signal.
[0038] In some embodiments, the first signal represents a signal emitted by an external antenna. The first parameter includes parameters representing the effectiveness of the external antenna, such as external antenna gain, efficiency, etc.
[0039] In the development of communication equipment, functional verification is typically required. Some of these verifications rely on the performance of the equipment's built-in antennas, such as interference immunity verification and sensitivity verification integrated with the motherboard. However, due to limitations in the shape and size of communication equipment, there is often insufficient space for the built-in antenna design, which in turn affects its performance. Furthermore, the design cycle for built-in antennas is lengthy, and verifications such as interference immunity and sensitivity verification integrated with the motherboard usually require the built-in antenna functionality to be fully developed before they can be initiated. Therefore, this process can easily lead to long development cycles and impact the efficiency of communication equipment development.
[0040] To address the aforementioned issues, this application embodiment designs an external antenna to connect with the communication device, allowing for functional verification of the communication device without the built-in antenna. This effectively shortens the functional verification cycle, thereby reducing the development cycle of the communication device and improving its development efficiency.
[0041] In this embodiment, to ensure the accuracy of functional verification of the communication device based on the communication connection between the external antenna and the communication device, the electronic device can pre-detect the first parameter of the first signal of the external antenna before performing functional verification, ensuring that the performance of the external antenna meets the conditions for functional verification. Typically, the performance of the external antenna used for functional verification is set by default to meet the conditions for functional verification.
[0042] In some embodiments, to ensure the accuracy of simulating the function of the built-in antenna through the external antenna, and the stability of the communication device when the communication device subsequently uses the built-in antenna for communication, it should be ensured that the number of external antennas is consistent with the number of built-in antennas in the communication device, the position of the external antenna is close to the position of the built-in antenna, and the function of the adjacent external antenna is similar to or consistent with that of the built-in antenna.
[0043] In some embodiments, placing an external antenna near the location of an internal antenna may include setting a corresponding external antenna within a preset location range of the internal antenna's location. The preset location range can be customized.
[0044] In some embodiments, the electronic device may determine the number of external antennas connected to the communication device based on the number of built-in antennas of the communication device, so as to provide installation prompts for the external antennas.
[0045] In some embodiments, the electronic device can determine the position of the external antenna based on the position of the built-in antenna of the communication device; when the external antenna is located in the determined position, the external antenna is used to simulate the function of the corresponding built-in antenna to perform functional verification of the communication device.
[0046] In the process of determining the location of an external antenna based on the location of the built-in antenna of a communication device, if the function of the external antenna has been pre-configured, the electronic device can determine the location of the external antenna with the function of the built-in antenna by comparing the function of the external antenna with that of the built-in antenna, based on the location of the built-in antenna.
[0047] In other embodiments, the electronic device can obtain the location of the built-in antenna, determine the location of the external antenna based on the location of the built-in antenna, prompt the user (e.g., a tester) about the location of the external antenna, and configure the corresponding functions of the external antenna according to the functions of the built-in antenna.
[0048] In other embodiments, an external antenna can be manually configured to enable communication between the external antenna and the communication device.
[0049] S12: Determine whether the first parameter satisfies the first condition.
[0050] In some embodiments, the first condition indicates that the performance of the external antenna meets the requirements for functional verification of the communication device. For example, the gain of the external antenna meets a preset gain range.
[0051] In some embodiments of this application, the first parameter includes the gain of the external antenna. If the gain of the external antenna meets a preset gain range, it is determined that the first parameter of the external antenna meets a first condition. In some embodiments, if the gain of the external antenna does not meet the preset gain range, it is determined that the first parameter of the external antenna does not meet the first condition.
[0052] In some embodiments, the preset gain range can be customized according to the type of functional verification.
[0053] In other embodiments, the first parameter may also include other performance parameters such as the efficiency of the external antenna. The embodiments of this application do not limit the specific setting of the first parameter.
[0054] S13: If the first parameter satisfies the first condition, the communication device is functionally verified based on the communication connection between the external antenna and the communication device.
[0055] In some embodiments, if the first parameter satisfies the first condition, then it can be determined that the performance of the external antenna meets the conditions for functional verification of the communication device. In this case, the electronic device can perform functional verification of the communication device based on the communication connection between the external antenna and the communication device.
[0056] In some embodiments of this application, functional verification of the communication device is performed based on the communication connection between the external antenna and the communication device, including: sending a third signal to the communication device so that the communication device receives the third signal through the external antenna; obtaining a first response signal returned by the communication device; and performing functional verification of the communication device according to the first functional parameters in the first response signal.
[0057] In some embodiments, the third signal represents a preset test signal used to simulate signals in an actual communication environment, such as normal signals, abnormal signals, boundary signals, etc.
[0058] In some embodiments, the communication device can generate a first response signal by decoding, demodulating, or otherwise processing the third signal.
[0059] In some embodiments, the first functional parameter can be signal strength, bit error rate, transmission rate, etc. Different types of functional verification result in different third signals, first response signals, and first functional parameters.
[0060] In some embodiments, the types of functional verification include, but are not limited to, verification of anti-interference capabilities and sensitivity verification integrated with the motherboard.
[0061] In other embodiments, functional verification of the communication device is performed based on the communication connection between the external antenna and the communication device, including: sending a signal to the communication device so that the communication device receives the signal through the external antenna; detecting the functional parameters of the communication device based on the received signal; and performing functional verification of the communication device based on the detected functional parameters.
[0062] In some embodiments of this application, the communication device is functionally verified based on the first functional parameter in the first response signal, including: verifying the anti-interference capability or sensitivity of the communication device based on the first functional parameter fed back by the communication device; wherein, when verifying the anti-interference capability of the communication device, the functional parameter includes one or more of the following: receiving sensitivity, bit error rate; when verifying the sensitivity of the communication device, the functional parameter includes one or more of the following: signal strength.
[0063] In some embodiments, during the process of enhancing the anti-interference capability of a communication device based on a communication connection with an external antenna, the electronic device can send a signal matching the operating frequency of the communication device and set appropriate signal power and modulation method to enable the communication device to maintain a low bit error rate (e.g., 1×10⁻⁶). -6Under the premise of [missing information], the receiving sensitivity and other parameters at this time are recorded as benchmark values for subsequent tests. Then, the electronic device can send interference signals with similar or the same operating frequency to the communication device, and gradually increase the strength of the interference signals. By analyzing the response signals of the communication device, the receiving sensitivity, bit error rate, and other functional parameters of the communication device under different interference intensities can be obtained. Based on the receiving sensitivity, bit error rate, and other functional parameters of the communication device, the electronic device can evaluate the anti-interference capability of the communication device. For example, the electronic device can compare the key parameters such as the receiving sensitivity and bit error rate of the communication device with the expected functional parameters to evaluate the anti-interference capability of the communication device.
[0064] In some embodiments, during the sensitivity assessment of a communication device based on a communication connection with an external antenna, the electronic device can transmit a signal matching the operating frequency of the communication device and gradually adjust the signal power of the transmitted signal. By analyzing the first response signal of the communication device, functional parameters such as signal strength and demodulation sensitivity of the communication device during the test can be obtained. Based on these functional parameters, the electronic device can evaluate the sensitivity of the communication device. For example, the electronic device can compare the signal strength and demodulation sensitivity of the communication device during the test with the expected functional parameters to evaluate the sensitivity of the communication device.
[0065] S14: If the first parameter does not meet the first condition, prompt to replace the external antenna or prompt to adjust the performance of the external antenna so that the first parameter of the first signal of the external antenna meets the first condition.
[0066] In some embodiments, if the first parameter does not meet the first condition, it can be determined that the effectiveness of the external antenna does not meet the conditions for functional verification of the communication device. In this case, the electronic device can generate a prompt message to prompt the user (e.g., a tester) to replace the external antenna or to prompt the user (e.g., a tester) to adjust the effectiveness of the external antenna so that the first parameter of the first signal of the external antenna meets the first condition.
[0067] This application provides a method for functional verification based on an antenna. An external antenna is designed to communicate with a communication device. When a first parameter of a first signal of the external antenna meets a first condition, functional verification of the communication device is performed based on the communication connection between the external antenna and the communication device. Using this method, there is no need to wait for the internal antenna design to be completed (assuming the internal antenna's performance meets the functional verification conditions). Functional verification of the communication device can be performed via an external antenna, bypassing the internal antenna, thereby effectively shortening the functional verification cycle, and consequently shortening the development cycle of the communication device and improving its development efficiency.
[0068] In some other embodiments of this application, the electronic device can receive a second signal from the built-in antenna of the communication device and detect a second parameter of the second signal; if the second parameter meets a second condition, the communication device is functionally verified based on the communication connection between the built-in antenna and the communication device; if the second parameter does not meet the second condition, and the first parameter meets the first condition, the communication device is functionally verified based on the communication connection between the external antenna and the communication device.
[0069] In this embodiment, the second signal represents the signal transmitted by the built-in antenna. The second parameter represents a parameter of the built-in antenna's performance, which may include, for example, the built-in antenna gain and efficiency. The second condition indicates that the performance of the built-in antenna meets the conditions required for the communication device to perform functional verification. For example, the gain of the built-in antenna meets a preset gain range.
[0070] In some embodiments, in order to ensure the accuracy and authenticity of the functional verification of the communication device, the electronic device can monitor the design progress of the built-in antenna of the communication device. When it is determined that the built-in antenna is functionally complete and its performance can meet the conditions required for the functional verification of the communication device, the electronic device can perform functional verification of the communication device based on the communication connection between the built-in antenna and the communication device, without the need to use an external antenna for functional verification.
[0071] In some embodiments, the electronic device may receive a second signal from the built-in antenna of the communication device and detect a second parameter of the second signal. If the second parameter satisfies a second condition, the communication device is functionally verified based on the communication connection between the built-in antenna and the communication device.
[0072] In some embodiments, if the second parameter does not meet the second condition, it indicates that the performance of the built-in antenna fails to meet the conditions required for functional verification of the communication device. In this case, if the first parameter of the first signal of the external antenna meets the first condition, the electronic device can perform functional verification of the communication device based on the communication connection between the external antenna and the communication device. If the first parameter does not meet the first condition, the electronic device can generate a prompt message to prompt the user (e.g., a tester) to replace the external antenna or to adjust the performance of the external antenna until the first parameter of the first signal of the external antenna meets the first condition. The electronic device can then perform functional verification of the communication device based on the communication connection between the external antenna and the communication device.
[0073] In some embodiments of this application, the second parameter includes the gain of the built-in antenna. If the gain of the built-in antenna meets a preset gain range, it is determined that the second parameter of the built-in antenna meets the second condition. In some embodiments, if the gain of the built-in antenna does not meet the preset gain range, it is determined that the second parameter of the built-in antenna does not meet the second condition.
[0074] In some embodiments, the preset gain range can be customized according to the type of functional verification.
[0075] In other embodiments, the second parameter may also include other performance parameters such as the efficiency of the built-in antenna. The embodiments of this application do not limit the specific setting of the second parameter.
[0076] In some other embodiments of this application, functional verification of the communication device is performed based on the communication connection between the built-in antenna and the communication device, including: sending a fourth signal to the communication device so that the communication device receives the fourth signal through the built-in antenna; obtaining a second response signal returned by the communication device; and performing functional verification of the communication device according to the second functional parameters in the second response signal.
[0077] In some embodiments, the fourth signal represents a preset test signal used to simulate signals in an actual communication environment, such as normal signals, abnormal signals, boundary signals, etc.
[0078] In some embodiments, the communication device can generate a second response signal by decoding, demodulating, or otherwise processing the fourth signal.
[0079] In some embodiments, the second functional parameter can be signal strength, bit error rate, transmission rate, etc. Different types of functional verification result in different fourth signals, second response signals, and second functional parameters.
[0080] In some embodiments, the types of functional verification include, but are not limited to, verification of anti-interference capabilities and sensitivity verification integrated with the motherboard.
[0081] In other embodiments, functional verification of the communication device is performed based on the communication connection between the built-in antenna and the communication device, including: sending a signal to the communication device so that the communication device receives the signal through the built-in antenna; detecting the functional parameters of the communication device based on the received signal; and performing functional verification of the communication device based on the detected functional parameters.
[0082] In some other embodiments of this application, the communication device is functionally verified based on the second functional parameters in the second response signal, including: verifying the anti-interference capability or sensitivity of the communication device based on the second functional parameters fed back by the communication device; wherein, when verifying the anti-interference capability of the communication device, the second functional parameters include one or more of the following: receiving sensitivity, bit error rate; when verifying the sensitivity of the communication device, the functional parameters include one or more of the following: signal strength.
[0083] In some embodiments, the process of verifying the function of the communication device based on the second functional parameter in the second response signal is similar to that in the embodiment of step S13, where the function verification of the communication device is performed based on the communication connection between the external antenna and the communication device, and the function verification of the communication device is performed based on the first functional parameter in the first response signal. Therefore, it will not be described again here.
[0084] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0085] Please see Figure 5 , Figure 5 The diagram shown is a structural diagram of an antenna-based functional verification device provided in an embodiment of this application. It implements the details of the antenna-based functional verification method described in the above embodiments and achieves the same effect. Figure 5 As shown, the antenna-based functional verification device 10 can be applied to electronic devices with data processing functions. The antenna-based functional verification device 10 includes: a detection module 11, used to receive a first signal from an external antenna and detect a first parameter of the first signal; a verification module 12, used to perform functional verification on the communication device based on the communication connection between the external antenna and the communication device if the first parameter meets a first condition; and a prompting module 13, used to prompt for replacement of the external antenna or prompt for adjustment of the performance of the external antenna if the first parameter does not meet the first condition, so that the first parameter of the first signal from the external antenna meets the first condition.
[0086] Specific limitations regarding the antenna-based functional verification device 10 can be found in the above-described limitations of the antenna-based functional verification method, and will not be repeated here. Each module in the antenna-based functional verification device 10 can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the electronic device, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0087] Please see Figure 6 , Figure 6 The diagram shown is a structural schematic of an electronic device provided in an embodiment of this application. The network in which the electronic device 200 is located includes, but is not limited to, the Internet, wide area network, metropolitan area network, local area network, and virtual private network (VPN).
[0088] like Figure 6As shown, the electronic device 200 includes a communication module 201, a memory 202, a processor 203, an input / output interface 204, and a bus 205. The processor 203 is coupled to the communication module 201, the memory 202, and the input / output interface 204 via the bus 205.
[0089] The communication module 201 can be a wireless communication module or a mobile communication module. The wireless communication module can provide solutions for wireless communication applications on the electronic device 200, including Wireless Local Area Networks (WLAN) (e.g., Wireless Fidelity, Wi-Fi), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR) technologies. The mobile communication module can provide solutions for wireless communication applications on the electronic device 200, including 2G / 3G / 4G / 5G technologies.
[0090] Memory 202 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM). The RAM can be directly read and written by the processor 203, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data. The RAM may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, such as fifth-generation DDR SDRAM, generally referred to as DDR5 SDRAM), etc.
[0091] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 203. Non-volatile memory can include disk storage devices and flash memory.
[0092] Memory 202 is used to store one or more computer programs. The one or more computer programs are configured to be executed by processor 203. The one or more computer programs include multiple instructions that, when executed by processor 203, enable an antenna-based functional verification method to be executed on electronic device 200.
[0093] In other embodiments, the electronic device 200 further includes an external memory interface for connecting to an external memory to expand the storage capacity of the electronic device 200.
[0094] Processor 203 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0095] The processor 203 provides computing and control capabilities. For example, the processor 203 is used to execute computer programs stored in the memory 202 to implement the above-described method for functional verification based on the antenna.
[0096] The input / output interface 204 is used to provide a channel for user input or output. For example, the input / output interface 204 can be used to connect various input / output devices, such as a mouse, keyboard, touch device, display screen, etc., so that users can enter information or visualize information.
[0097] Bus 205 is used at least to provide a channel for communication between communication modules 201, memory 202, processor 203, and input / output interface 204 in electronic device 200.
[0098] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0099] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the method implemented when the program instructions are executed can refer to the antenna-based functional verification method in the above embodiments of this application.
[0100] The computer-readable storage medium can be the internal memory of the electronic device described in the above embodiments, such as the hard disk or memory of the electronic device. Alternatively, the computer-readable storage medium can be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device.
[0101] Furthermore, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system, at least one application program required for a function, etc.; and the data storage area may store data created based on the use of the electronic device, etc.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.
Claims
1. A method for antenna-based functional verification, applied to an electronic device, comprising: The electronic device is in communication connection with a communication device, and the method comprises: receiving a first signal of an external antenna, detecting a first parameter of the first signal; if the first parameter meets a first condition, performing function verification on the communication device based on the communication connection between the external antenna and the communication device; if the first parameter does not meet the first condition, prompting to replace the external antenna or prompting to adjust the efficiency of the external antenna, so that the first parameter of the first signal of the external antenna meets the first condition.
2. The method of claim 1, wherein the function verification based on the antenna is performed by a function verification unit. The method further comprises: determining the number of external antennas connected to the communication device according to the number of built-in antennas of the communication device.
3. The method of claim 1, wherein the function verification based on the antenna is performed by a function verification unit. The method further comprises: determining the position of the external antenna according to the position of the built-in antenna of the communication device; in the case where the external antenna is located at the determined position, simulating the function of the corresponding built-in antenna by using the external antenna, and performing function verification on the communication device.
4. The method of claim 1, wherein the function verification based on the antenna is performed by a function verification unit. The method further comprises: receiving a second signal of a built-in antenna of the communication device, detecting a second parameter of the second signal; if the second parameter meets a second condition, performing function verification on the communication device based on the communication connection between the built-in antenna and the communication device; if the second parameter does not meet the second condition, the first parameter meets the first condition, and performing function verification on the communication device based on the communication connection between the external antenna and the communication device.
5. The method of claim 1, wherein the method further comprises: The function verification on the communication device based on the communication connection between the external antenna and the communication device comprises: sending a third signal to the communication device, so that the communication device receives the third signal through the external antenna; obtaining a first response signal returned by the communication device; performing function verification on the communication device according to a first function parameter in the first response signal.
6. The method of claim 5, wherein the function verification based on the antenna is performed by a function verification unit. The method further comprises: verifying the anti-interference ability or sensitivity of the communication device according to the first function parameter fed back by the communication device; wherein, when verifying the anti-interference ability of the communication device, the first function parameter comprises one or more of the following: reception sensitivity, bit error rate; when verifying the sensitivity of the communication device, the first function parameter comprises one or more of the following: signal strength.
7. The method of claim 4, wherein the function verification based on the antenna is performed by a function verification unit. The function verification on the communication device based on the communication connection between the built-in antenna and the communication device comprises: sending a fourth signal to the communication device, so that the communication device receives the fourth signal through the built-in antenna; obtaining a second response signal returned by the communication device; performing function verification on the communication device according to a second function parameter in the second response signal.
8. The method of claim 1, wherein the method further comprises: The first parameter comprises the gain of the external antenna, and the method further comprises: if the gain of the external antenna meets a preset gain range, it is determined that the first parameter of the external antenna meets the first condition.
9. An electronic device, comprising: The computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by the processor to implement the method for antenna-based function verification according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by the processor to implement the method for antenna-based function verification according to any one of claims 1 to 8.