Electronic device, test method, apparatus, and readable storage medium

By setting a switch in the electronic device to control the on/off state of the RF link, the test of the Wi-Fi adaptive function was realized, which solved the problem of high testing cost in the prior art, reduced the dependence on external equipment, and improved the stability and efficiency of the test.

CN116054972BActive Publication Date: 2026-03-31VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Testing the Wi-Fi adaptive function in existing technologies requires complex external equipment such as spectrum analyzers and signal generators, resulting in high testing costs.

Method used

By setting up a switch between two radio frequency links in an electronic device, and controlling the on/off state of the switch and signal transmission, the Wi-Fi adaptive function can be tested, avoiding dependence on external devices.

Benefits of technology

It reduced testing costs, simplified the testing process, and improved the stability and efficiency of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116054972B_ABST
    Figure CN116054972B_ABST
Patent Text Reader

Abstract

The application discloses an electronic device, a test method, an apparatus and a readable storage medium. The electronic device comprises a signal transceiving component, a switch component and a controller. The signal transceiving component comprises a first radio frequency link and a second radio frequency link. The first moving contact of the switch component is in conduction with the second end of the first radio frequency link. The second moving contact of the switch component is grounded. The first stationary contact of the switch component is grounded. The second stationary contact of the switch component is in conduction with the second radio frequency link. The controller is connected with the signal transceiving component and the switch component. The controller is used for controlling the signal transceiving state of the first radio frequency link and the second radio frequency link, and controlling the on-off state between the first moving contact, the second moving contact, the first stationary contact and the second stationary contact of the switch component, so as to test the fault state of the first radio frequency link and the second radio frequency link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, specifically relating to an electronic device, a testing method, an apparatus, and a readable storage medium. Background Technology

[0002] With the development of wireless network technology, all terminals are equipped with a WI-FI (Wireless-Fidelity) module. The WI-FI module in the terminal needs to have WI-FI adaptive function. The WI-FI adaptive function is to automatically stop the WI-FI module from working on the current channel when there is strong interference on the same channel, so as to avoid interference.

[0003] Wi-Fi adaptive functionality testing is a necessary test item in current wireless product certification. In related technologies, testing Wi-Fi adaptive functionality requires the use of various instruments and devices such as spectrum analyzers and signal generators, making the testing scheme relatively complex. Summary of the Invention

[0004] The purpose of this application is to provide an electronic device, a testing method, an apparatus, and a readable storage medium that avoids high dependence on external devices during the testing process and reduces testing costs.

[0005] In a first aspect, embodiments of this application provide an electronic device, including: a signal transceiver component, including a first radio frequency link and a second radio frequency link; a switch, wherein a first moving contact of the switch is connected to a second end of the first radio frequency link, a second moving contact of the switch is grounded, a first stationary contact of the switch is grounded, and a second stationary contact of the switch is connected to the second radio frequency link; and a controller, connected to the signal transceiver component and the switch, the controller being used to control the signal transmission and reception states of the first radio frequency link and the second radio frequency link, and to control the on / off states between the first moving contact, the second moving contact, the first stationary contact, and the second stationary contact of the switch, and to test the fault states of the first radio frequency link and the second radio frequency link.

[0006] Secondly, embodiments of this application provide a testing method for the electronic device described in the first aspect. The testing method includes: when the electronic device transmits signals to a test device via a first target link of a signal transceiver component, controlling a first moving contact of a switch to conduct with a second stationary contact, and the second moving contact of the switch to conduct with the first stationary contact; controlling a second target link to output a first signal, wherein the first target link is either a first radio frequency (RF) link or a second RF link, and the second target link is a link other than the first target link among the first and second RF links; and determining that the first target link is in a fault state while the first target link is in a signal transmission state with the test device.

[0007] Thirdly, embodiments of this application provide a testing apparatus for the electronic device described in the first aspect. The testing apparatus includes: a control module, configured to control a first moving contact of a switch to conduct with a second stationary contact, and a second moving contact of the switch to conduct with the first stationary contact, when the electronic device is transmitting signals with a test device via a first target link of a signal transceiver component; the control module is further configured to control a second target link to output a first signal, wherein the first target link is either a first radio frequency link or a second radio frequency link, and the second target link is a link other than the first target link among the first and second radio frequency links; and a determination module, configured to determine that the first target link is in a fault state when the signal transmission state exists between the first target link and the test device.

[0008] Fourthly, embodiments of this application provide an electronic device. The electronic device includes a memory and a processor. The memory stores programs or instructions; the processor executes the programs or instructions to implement the steps of the test method provided in the second aspect.

[0009] Fifthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the test method provided in the second aspect.

[0010] In a sixth aspect, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method as described in the second aspect.

[0011] In a seventh aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the second aspect.

[0012] In this embodiment, a switch is provided between the two radio frequency links of the electronic device to adjust the signal on / off state between the two radio frequency links. During the test, the test radio frequency link is controlled to transmit signals normally with the test device, and the on / off state of the switch is controlled to keep the two radio frequency links in a conducting state. The other radio frequency link is controlled to output an interference signal to test the test radio frequency link. There is no need to set up an interference spectrum analyzer or other devices that output interference signals, which avoids the high dependence of the test process on external equipment and reduces the test cost. Attached Figure Description

[0013] Figure 1 A circuit diagram of an electronic device provided in an embodiment of this application is shown;

[0014] Figure 2Schematic block diagrams of a test system provided by some embodiments of this application are shown;

[0015] Figure 3 A flowchart illustrating the testing method provided in an embodiment of this application is shown;

[0016] Figure 4 Schematic diagrams of switching devices provided in some embodiments of this application are shown;

[0017] Figure 5 A schematic diagram of the structure of the testing device provided in an embodiment of this application is shown.

[0018] Figure 6 A structural block diagram of an electronic device according to an embodiment of this application is shown;

[0019] Figure 7 A schematic diagram of the hardware structure of an electronic device according to an embodiment of this application is shown.

[0020] in, Figure 1 and Figure 4 The correspondence between the reference numerals and the component names is as follows:

[0021] 100 Electronic device, 110 Signal transceiver assembly, 112 First RF link, 1122 First filter, 1124 Second filter, 1126 First combiner, 1128 First antenna, 114 Second RF link, 1142 Third filter, 1144 Fourth filter, 1146 Second combiner, 1148 Second antenna, 116 Signal transceiver, 120 Switch, 130 Controller, 140 First coupler, 150 Second coupler, 160 Attenuator, RF1 First moving contact, RF2 First stationary contact, RF3 Second moving contact, RF4 Second stationary contact. Detailed Implementation

[0022] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0023] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0024] The following is in conjunction with the appendix Figures 1 to 7 The electronic devices, testing apparatus, testing methods, and readable storage media provided in this application will be described in detail through specific embodiments and application scenarios.

[0025] An electronic device is provided in some embodiments of this application. Figure 1 A circuit diagram of an electronic device provided in an embodiment of this application is shown. For example... Figure 1 and Figure 4 As shown, the electronic device 100 includes: a signal transceiver assembly 110, a switch 120, and a controller 130.

[0026] The signal transceiver component 110 includes a first radio frequency link 112 and a second radio frequency link 114;

[0027] The first moving contact RF1 of the switch 120 is connected to the second end of the first radio frequency link 112, the second moving contact RF3 of the switch 120 is grounded, the first stationary contact RF2 of the switch 120 is grounded, and the second stationary contact RF4 of the switch 120 is connected to the second radio frequency link 114.

[0028] The controller 130 is connected to the signal transceiver assembly 110 and the switch 120. The controller 130 is used to control the signal transmission and reception status of the first RF link 112 and the second RF link 114, and to control the on / off status between the first moving contact RF1, the second moving contact RF3, the first stationary contact RF2 and the second stationary contact RF4 of the switch 120, and to test the fault status of the first RF link and the second RF link.

[0029] In this embodiment of the application, the electronic device 100 includes a signal transceiver component 110, which is used to transmit and receive Wi-Fi signals. The signal transceiver component 110 includes a first radio frequency link 112 and a second radio frequency link 114. The signal transceiver component 110 can be designed as a MIMO (Multiple-Input Multiple-Output) architecture. The first radio frequency link 112 can be a radio frequency link for transmitting and receiving 2.4G Wi-Fi signals, and the second radio frequency link 114 can be a radio frequency link for transmitting and receiving 5G Wi-Fi signals.

[0030] In this embodiment, a switch 120 is disposed between the first RF link 112 and the second RF link 114. The switch 120 is used to control the on / off state between the first RF link 112 and the second RF link 114. When the first RF link 112 and the second RF link 114 are in the on state, the RF signal of the first RF link 112 can be transmitted to the second RF link 114, and the RF signal of the second RF link 114 can also be transmitted to the first RF link 112. When the first RF link 112 and the second RF link 114 are in the off state, the first RF link 112 and the second RF link 114 are directly isolated from each other, and the RF signals between the first RF link 112 and the second RF link 114 do not interfere with each other.

[0031] Specifically, the switch 120 is a double-pole double-throw switch. Both the second moving contact RF3 and the first stationary contact RF2 of the switch 120 are grounded. The first moving contact RF1 of the switch 120 is connected to the first radio frequency link 112, and the second stationary contact RF4 of the switch 120 is connected to the second radio frequency link 114. When the first moving contact RF1 is connected to the first stationary contact RF2, and the second moving contact RF3 is connected to the second stationary contact RF4, the first radio frequency link 112 and the second radio frequency link 114 remain disconnected, and the radio frequency signals between the first radio frequency link 112 and the second radio frequency link 114 are isolated from each other. When the first moving contact RF1 is connected to the second stationary contact RF4, and the second moving contact RF3 is connected to the first stationary contact RF2, the first radio frequency link 112 and the second radio frequency link 114 are in a conducting state, and the radio frequency signals between the first radio frequency link 112 and the second radio frequency link 114 can transmit and influence each other.

[0032] In this embodiment, the controller 130 is connected to the signal transceiver assembly 110 and the switch 120, and can control the signal transmission and reception status of the first radio frequency link 112 and the second radio frequency link 114 in the signal transceiver assembly 110. The controller 130 can also adjust the on / off state between the first moving contact RF1, the second moving contact RF3, the first stationary contact RF2 and the second stationary contact RF4 of the switch 120. The controller 130 is configured to, when the electronic device 100 is transmitting signals to the test device via the first target link of the signal transceiver component 110, control the first moving contact RF1 and the second stationary contact RF4 of the switch 120 to be turned on, and the second moving contact RF3 and the first stationary contact RF2 of the switch 120 to be turned on; and control the second target link to output a first signal, wherein the first target link is any one of the first radio frequency link 112 and the second radio frequency link 114, and the second target link is the link other than the first target link among the first radio frequency link 112 and the second radio frequency link 114; and determine that the first target link is in a fault state when the first target link is in a signal transmission state with the test device.

[0033] Controller 130 controls either the first RF link 112 or the second RF link 114 to be in signal transmission state with the device under test. The RF link in signal transmission state is designated as the first target link, and the other RF link is designated as the second target link. Controller 130 controls switch 120 to switch its on / off state, making the first moving contact RF1 and the second stationary contact RF4 of switch 120 conduct, and the second moving contact RF3 and the first stationary contact RF2 conduct, and controlling the second target link to output a first signal. The first signal can be transmitted to the first target link through switch 120, interfering with the signal transmission of the first target link. If the first target link maintains signal transmission with the device under test, the adaptive on / off function of the first target link is considered to be in a fault state. If the signal transmission state between the first target link and the device under test is disconnected, the adaptive on / off function of the first target link is considered to be in a normal state.

[0034] It should be noted that the first signal output by the second target link reaches the signal threshold corresponding to the first target link, which is the signal threshold of the first target link. The signal thresholds of the first signal corresponding to the first RF link 112 and the second RF link 114 are different. During the testing of the first RF link 112, the signal value of the first signal output by the second RF link 114 is the signal threshold corresponding to the first RF link 112. During the testing of the second RF link 114, the signal value of the first signal output by the first RF link 112 is the signal threshold corresponding to the second RF link 114.

[0035] For example, the signal threshold corresponding to the RF link of WIFI 2.4G is -70dBm / MHz+10log10(100mW / Pout), and the signal threshold corresponding to the RF link of WIFI 5G is -75dBm / MHz.

[0036] Figure 2 Schematic block diagrams of a test system provided by some embodiments of this application are shown, such as Figure 2 As shown, the electronic device can be a mobile phone. During the test, the mobile phone needs to be connected to the computer via a data cable. The computer can install the test application on the mobile phone via the data cable. The accompanying device can be a router. The mobile phone transmits signals to the router, and the router is connected to the computer via a network cable. The computer can control the operation of the router.

[0037] In this embodiment, a switch 120 is provided between the two radio frequency links of the electronic device 100 to adjust the signal on / off state between the two radio frequency links. During the test, the test radio frequency link is controlled to transmit signals normally with the test device, and the on / off state of the switch 120 is controlled to make the two radio frequency links conduct. The other radio frequency link is controlled to output an interference signal to test the test radio frequency link. There is no need to set up an interference spectrum analyzer or other devices that output interference signals, which avoids the high dependence on external equipment in the test process and reduces the test cost.

[0038] In some embodiments of this application, the electronic device 100 further includes a first coupler 140 and a second coupler 150.

[0039] The first end of the first coupler 140 is connected to the first radio frequency link 112, and the second end of the first coupler 140 is connected to the first moving contact RF1 of the switch 120; the first end of the second coupler 150 is connected to the second radio frequency link 114, and the second end of the second coupler 150 is connected to the second stationary contact RF4 of the switch 120.

[0040] In this embodiment, the electronic device 100 further includes a first coupler 140 and a second coupler 150. The first coupler 140 is disposed between the first RF link 112 and the first moving contact RF1 of the switch 120, and the second coupler 150 is disposed between the second RF link 114 and the second stationary contact RF4 of the switch 120. By distributing the first coupler 140 and the second coupler 150 between the first moving contact RF1 and the second stationary contact RF4 of the switch 120 and the first RF link 112 and the second RF link 114 respectively, it can be ensured that the first signals output from the first RF link 112 and the second RF link 114 can be stably transmitted through the switch 120.

[0041] It should be noted that during the test, the coupling coefficient of the first coupler 140 and the second coupler 150 remains fixed, which ensures stable transmission of the first signal when the first RF link 112 and the second RF link 114 output the first signal.

[0042] In this embodiment of the application, by setting a first coupler 140 and a second coupler 150 in the electronic device 100, and keeping the coupling coefficient of the first coupler 140 and the second coupler 150 fixed, the stability of the first signal transmitted by the switching device 120 can be improved, and the stability of the test can be guaranteed.

[0043] In some embodiments of this application, the electronic device 100 further includes an attenuator 160. The attenuator 160 is disposed between the first moving contact RF1 of the switch 120 and the first radio frequency link 112, or between the second stationary contact RF4 of the switch 120 and the second radio frequency link 114.

[0044] In this embodiment, the attenuator 160 can be disposed between the switch 120 and the first RF link 112, or between the switch 120 and the second RF link 114. During testing, the attenuation coefficient of the attenuator 160 remains fixed, ensuring that the first signal output from the first RF link 112 or the second RF link 114, after being transmitted through the attenuator 160, is the corresponding signal threshold.

[0045] For example, attenuator 160 is disposed between the first moving contact RF1 of switch 120 and the first radio frequency link 112.

[0046] For example, attenuator 160 is disposed between the second stationary contact RF4 of switch 120 and the second radio frequency link 114.

[0047] In this embodiment of the application, by setting an attenuator 160 between the switch 120 and the first radio frequency link 112, or between the switch 120 and the second radio frequency link 114, and keeping the attenuation coefficient of the attenuator 160 fixed, the stability of the first signal transmitted by the switch 120 can be improved, thus ensuring the stability of the test.

[0048] In some embodiments of this application, the signal transceiver assembly 110 includes a signal transceiver 116.

[0049] The first radio frequency link 112 includes a first filter 1122, a second filter 1124, a first combiner 1126, and a first antenna 1128.

[0050] The first end of the first filter 1122 is connected to the first end of the signal transceiver 116; the first end of the second filter 1124 is connected to the second end of the signal transceiver 116; the first end and the second end of the first combiner 1126 are respectively connected to the second end of the first filter 1122 and the second end of the second filter 1124; and the first antenna 1128 is connected to the third end of the first combiner 1126.

[0051] The second radio frequency link 114 includes a third filter 1142, a fourth filter 1144, a second combiner 1146, and a second antenna 1148.

[0052] The first terminal of the third filter 1142 is connected to the third terminal of the transceiver 116; the first terminal of the fourth filter 1144 is connected to the fourth terminal of the transceiver 116; the first and second terminals of the second combiner 1146 are connected to the second terminals of the third filter 1142 and the fourth filter 1144, respectively; and the second antenna 1148 is connected to the third terminal of the second combiner 1146.

[0053] In this embodiment of the application, the WI-FI module of the electronic device 100 is a WI-FI MIMO radio frequency architecture.

[0054] In this embodiment, the first radio frequency link 112 includes a first filter 1122, a second filter 1124, a first combiner 1126, and a first antenna 1128. The first radio frequency link 112 is connected to two transceiver ports of the transceiver 116 via one end of the first filter 1122 and one end of the second filter 1124, respectively. The other end of both the first filter 1122 and the second filter 1124 is connected to the first combiner 1126. The first combiner 1126 is connected to the first antenna 1128, through which radio frequency signals are transmitted and received. The first moving contact RF1 of the switch 120 is connected between the first combiner 1126 and the first antenna 1128.

[0055] In this embodiment, the second RF link 114 includes a third filter 1142, a fourth filter 1144, a second combiner 1146, and a second antenna 1148. The first RF link 112 is connected to two transceiver ports of the transceiver 116 via one end of the third filter 1142 and one end of the fourth filter 1144, respectively. The other ends of the third filter 1142 and the fourth filter 1144 are both connected to the second combiner 1146. The second combiner 1146 is connected to the second antenna 1148, through which RF signals are transmitted and received. The second stationary contact RF4 of the switch 120 is connected between the second combiner 1146 and the second antenna 1148.

[0056] In this embodiment, the first radio frequency link 112 and the second radio frequency link 114 can be the same radio frequency link, that is, radio frequency links that transmit and receive the same radio frequency signals. For example, both the first radio frequency link 112 and the second radio frequency link 114 can transmit and receive 2.4G Wi-Fi signals, or both the first radio frequency link 112 and the second radio frequency link 114 can transmit and receive 5G Wi-Fi signals. Alternatively, the first radio frequency link 112 and the second radio frequency link 114 can be different radio frequency links. For example, the first radio frequency link 112 can transmit and receive 2.4G Wi-Fi signals, and the second radio frequency link 114 can transmit and receive 5G Wi-Fi signals.

[0057] In this embodiment, the first moving contact RF1 of the switch 120 is connected between the first combiner 1126 and the first antenna 1128, and the second stationary contact RF4 of the switch 120 is connected between the second combiner 1146 and the second antenna 1148, so that the first signal transmitted through the switch 120 is a signal that has passed through the filter and combiner, thus ensuring the stability of the test.

[0058] In this embodiment of the application, a first filter 1122, a second filter 1124, a first combiner 1126 and a first antenna 1128 are provided in the first radio frequency link 112, and a third filter 1142, a fourth filter 1144, a second combiner 1146 and a second antenna 1148 are provided in the second radio frequency link 114, so that the electronic device 100 can stably transmit and receive radio frequency signals in non-test operation state.

[0059] In some embodiments of this application, a testing method is provided, which is applied to the electronic device in any of the above embodiments. Figure 3 A flowchart illustrating the testing method provided in an embodiment of this application is shown, as follows: Figure 3 As shown, the test methods include:

[0060] Step 302: When the electronic device transmits signals to the test device through the first target link of the signal transceiver component, the first moving contact of the control switch is connected to the second stationary contact, and the second moving contact of the control switch is connected to the first stationary contact.

[0061] Step 304: Control the second target link to output a first signal. The first target link is any link between the first radio frequency link and the second radio frequency link. The second target link is any link between the first radio frequency link and the second radio frequency link other than the first target link.

[0062] Step 306: When the first target link and the accompanying device are in signal transmission state, it is determined that the first target link is in a fault state.

[0063] In this embodiment, either the first RF link or the second RF link is controlled to be in a signal transmission state with the test device. The RF link in the signal transmission state is designated as the first target link, and the other RF link is designated as the second target link. A control switch is used to switch the on / off state, making the first moving contact of the switch connected to the second stationary contact, and vice versa, and controlling the second target link to output a first signal. This first signal can be transmitted to the first target link through the switch, interfering with the signal transmission of the first target link. If the first target link maintains its signal transmission state with the test device, it is determined that the first target link cannot automatically disconnect its communication transmission with the test device under interference, i.e., the adaptive on / off function of the first target link is faulty. If the signal transmission state between the first target link and the test device is disconnected, it is determined that the first target link can automatically disconnect its communication transmission with the test device under interference, i.e., the adaptive on / off function of the first target link is normal. The adaptive on / off function is the function of automatically disconnecting communication transmission with other devices when interference occurs during the communication transmission process of the first target link with other devices.

[0064] It should be noted that the first signal output by the second target link reaches the signal threshold corresponding to the first target link, which is the signal threshold of the first target link. The signal thresholds of the first signal corresponding to the first RF link and the second RF link are different. During the testing of the first RF link, the signal value of the first signal output by the second RF link is the signal threshold corresponding to the first RF link. During the testing of the second RF link, the signal value of the first signal output by the first RF link is the signal threshold corresponding to the second RF link.

[0065] For example, the electronic device can be a mobile phone. During the test, the mobile phone needs to be connected to the computer via a data cable. The computer can install the test application onto the mobile phone via the data cable. The accompanying device can be a router. The mobile phone transmits signals to the router, and the router is connected to the computer via a network cable. The computer can control the operation of the router.

[0066] Figure 4 Schematic diagrams of switching devices provided in some embodiments of this application are shown, such as... Figure 4As shown, a switch 120 is provided between the first RF link 112 and the second RF link 114. A first coupler 140 is provided between the switch 120 and the first RF link 112. A second coupler 150 and an attenuator 160 are provided between the switch 120 and the second RF link 114. In the normal operating state of the electronic device, the first moving contact RF1 of the switch 120 is connected to the first stationary contact RF2, and the second moving contact RF3 is connected to the second stationary contact RF4. At this time, the first RF link 112 and the second RF link 114 are isolated from each other. In the test operation state of the electronic device, the first moving contact RF1 of the switch 120 is connected to the second stationary contact RF4, and the second moving contact RF3 is connected to the first stationary contact RF2. At this time, the first RF link 112 and the second RF link 114 are connected.

[0067] In this embodiment, a switch is provided between the two radio frequency links of the electronic device to adjust the signal on / off state between the two radio frequency links. During the test, the test radio frequency link is controlled to transmit signals normally with the test device, and the on / off state of the switch is controlled to keep the two radio frequency links in a conducting state. The other radio frequency link is controlled to output an interference signal to test the test radio frequency link. There is no need to set up an interference spectrum analyzer or other devices that output interference signals, which avoids the high dependence of the test process on external equipment and reduces the test cost.

[0068] In some embodiments of this application, after determining that the first target link is in a fault state while the first target link and the accompanying testing device are in a signal transmission state, the method further includes:

[0069] The signal strength of the first signal output by the second target link is increased until the first target link and the test device are in a stopped transmission state, and the signal strength increase value is determined; based on the strength increase value, the radio frequency parameters of the first target link are adjusted so that the first target link switches to the disconnect state when the strength value of the received interference signal reaches the interference strength threshold.

[0070] In this embodiment, after detecting that the first target link is in a fault state, it is determined that the first target link is still in a connected state even when affected by an interference signal with a preset interference strength threshold. At this time, it is necessary to adjust the interference strength threshold corresponding to the first target link so that the first target link remains disconnected when affected by an interference signal with the interference strength threshold.

[0071] Before adjusting the operating parameters of the first target link, it is necessary to determine the strength of the interference signal that the first target link can currently withstand. Specifically, the signal strength of the first signal output by the second target link is increased, and the signal transmission between the first target link and the test device is continuously monitored to see if it is disconnected. When the signal transmission between the first target link and the test device is detected to switch from on to off, the increase in the signal strength of the first signal is recorded. This increase in signal strength reflects the radio frequency parameters that need to be adjusted for the first target link, and the radio frequency parameters of the first target link are adjusted accordingly, so that the first target link can automatically disconnect when the strength of the interference signal reaches the interference strength threshold, thus meeting the requirement of the electronic device to adaptively adjust the on / off state of the radio frequency link.

[0072] It should be noted that the radio frequency parameters include an adaptive CCA (Congestion Control Algorithm) threshold. By adjusting the adaptive CCA threshold, the first target link can be debugged, so that the first target link in a faulty state can be automatically disconnected when subjected to corresponding interference signals.

[0073] In this embodiment of the application, when the first target link is detected to be in a fault state, the second target link can be controlled to increase the signal strength value of the output first signal, the signal strength increase value of the first signal is recorded, and the first target link in the fault state is debugged according to the signal strength increase value, thereby realizing the automatic debugging of the first target link.

[0074] In some embodiments of this application, controlling the signal strength of the first signal output by the second target link to increase until the first target link and the accompanying device are in a stopped transmission state, and determining the signal strength increase value, includes: controlling the signal strength value of the first signal to increase by a first strength value each time by adjusting the output power of the second target link until the first target link switches to a disconnected state; calculating the signal strength increase value based on the target adjustment number and the first strength value, wherein the target adjustment number is the number of times the output power of the second target link is adjusted during the process of the first target link switching from a conducting state to a disconnected state.

[0075] In this embodiment, controlling the signal strength of the first signal output by the second target link to increase involves repeatedly increasing the signal strength value of the first signal, with each increase being the same value (the first strength value). When the first target link and the accompanying device are detected to be in a stopped transmission state, the number of times the first strength value is adjusted is recorded. The increase in strength value can be calculated by combining the number of adjustments with the first strength value.

[0076] For example, the output power of the second target link is increased by 1 dB based on the previous output power, and the system count of the electronic device is incremented by 1. The increased first signal continues to interfere with the signal transmission between the first target link and the test device. If no signal transmission is detected between the first target link and the router, the intensity increase value is calculated for subsequent adaptive debugging of the first target link based on this intensity increase value. If signal transmission is still detected between the first target link and the router, the output power of the second target link is increased by 1 dB based on the previous output power until the signal transmission between the first target link and the router is interrupted.

[0077] In this embodiment of the application, by controlling the second target link to increase the strength value of the first signal by a fixed amount at a time, and counting the number of times the second target link controls the strength value of the first signal to increase, the electronic device system can quickly calculate the strength increase value of the first signal.

[0078] In some embodiments of this application, after the first target link and the accompanying device are in a signal transmission state and it is determined that the first target link is in a fault state, the method further includes: controlling the first moving contact of the switch to conduct with the first stationary contact, and the second moving contact of the switch to conduct with the second stationary contact.

[0079] In this embodiment, after the detection of the first target link is completed, the first moving contact of the control switch is connected to the first stationary contact, and the second moving contact is connected to the second stationary contact, causing the first target link and the second target link to switch from a connected state to an isolated state. While the first target link and the second target link remain isolated, the normal use of the electronic device is not affected.

[0080] The testing method provided in this application can be executed by a testing device. This application uses the example of a testing device executing the testing method to illustrate the testing device provided in this application.

[0081] In some embodiments of this application, a testing apparatus is provided, which is applied to the electronic device in any of the above embodiments. Figure 5 A schematic diagram of the structure of the testing device provided in an embodiment of this application is shown, as follows: Figure 5 As shown, the testing apparatus 500 includes:

[0082] The control module 502 is used to control the first moving contact and the second stationary contact of the switch to be connected when the electronic device transmits signals to the test device through the first target link of the signal transceiver component, and the second moving contact and the first stationary contact of the switch to be connected.

[0083] The control module 502 is also used to control the second target link to output a first signal, wherein the first target link is any one of the first radio frequency link and the second radio frequency link, and the second target link is the link other than the first target link among the first radio frequency link and the second radio frequency link.

[0084] The determination module 504 is used to determine that the first target link is in a fault state when there is a signal transmission state between the first target link and the accompanying device.

[0085] In this embodiment, a switch is provided between the two radio frequency links of the electronic device to adjust the signal on / off state between the two radio frequency links. During the test, the test radio frequency link is controlled to transmit signals normally with the test device, and the on / off state of the switch is controlled to keep the two radio frequency links in a conducting state. The other radio frequency link is controlled to output an interference signal to test the test radio frequency link. There is no need to set up an interference spectrum analyzer or other devices that output interference signals, which avoids the high dependence of the test process on external equipment and reduces the test cost.

[0086] In some embodiments of this application, the control module 502 is further configured to control the signal strength of the first signal output by the second target link to increase until the first target link and the test device are in a stopped transmission state.

[0087] Module 504 is used to determine the signal strength increase value;

[0088] The testing device 500 also includes:

[0089] The adjustment module is used to adjust the radio frequency parameters of the first target link based on the intensity increase value, so that the first target link switches to the disconnected state when the intensity value of the received interference signal reaches the interference intensity threshold.

[0090] In this embodiment of the application, when the first target link is detected to be in a fault state, the second target link can be controlled to increase the signal strength value of the output first signal, the signal strength increase value of the first signal is recorded, and the first target link in the fault state is debugged according to the signal strength increase value, thereby realizing the automatic debugging of the first target link.

[0091] In some embodiments of this application, the testing apparatus 500 further includes:

[0092] The adjustment module is used to control the signal strength value of the first signal to increase the first strength value each time by adjusting the output power of the second target link until the first target link switches to the disconnected state;

[0093] The calculation module is used to calculate the signal strength increase based on the target adjustment number and the first strength value. The target adjustment number is the number of times the output power of the second target link is adjusted during the process of the first target link switching from the conducting state to the disconnected state.

[0094] In this embodiment of the application, by controlling the second target link to increase the strength value of the first signal by a fixed amount at a time, and counting the number of times the second target link controls the strength value of the first signal to increase, the electronic device system can quickly calculate the strength increase value of the first signal.

[0095] In some embodiments of this application, the control module 502 is further configured to control the first moving contact of the switch to be connected to the first stationary contact, and the second moving contact of the switch to be connected to the second stationary contact.

[0096] In this embodiment, after the detection of the first target link is completed, the first moving contact of the control switch is connected to the first stationary contact, and the second moving contact is connected to the second stationary contact, causing the first target link and the second target link to switch from a connected state to an isolated state. While the first target link and the second target link remain isolated, the normal use of the electronic device is not affected.

[0097] The testing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.

[0098] The testing device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0099] The testing apparatus provided in this application embodiment can implement all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.

[0100] Optionally, embodiments of this application also provide an electronic device, which includes the testing apparatus as described in any of the above embodiments, and thus has all the beneficial effects of the testing apparatus in any of the embodiments, which will not be elaborated further here.

[0101] Optionally, embodiments of this application also provide an electronic device. Figure 6 A structural block diagram of an electronic device according to an embodiment of this application is shown, such as... Figure 6 As shown, the electronic device 600 includes a processor 602, a memory 604, and a program or instructions stored in the memory 604 and executable on the processor 602. When the program or instructions are executed by the processor 602, they implement the various processes of the above-described test method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0102] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0103] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0104] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.

[0105] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0106] The processor 710 is used to control the first moving contact and the second stationary contact of the switch to be connected when the electronic device transmits signals to the test device through the first target link of the signal transceiver component, and the second moving contact of the switch to be connected to the first stationary contact.

[0107] The processor 710 is also used to control the second target link to output a first signal, wherein the first target link is any one of the first radio frequency link and the second radio frequency link, and the second target link is a link other than the first target link among the first radio frequency link and the second radio frequency link.

[0108] The processor 710 is used to determine that the first target link is in a fault state when the first target link is in a signal transmission state between the first target link and the test device.

[0109] In this embodiment, a switch is provided between the two radio frequency links of the electronic device to adjust the signal on / off state between the two radio frequency links. During the test, the test radio frequency link is controlled to transmit signals normally with the test device, and the on / off state of the switch is controlled to keep the two radio frequency links in a conducting state. The other radio frequency link is controlled to output an interference signal to test the test radio frequency link. There is no need to set up an interference spectrum analyzer or other devices that output interference signals, which avoids the high dependence of the test process on external equipment and reduces the test cost.

[0110] Furthermore, the processor 710 is also used to control the signal strength of the first signal output by the second target link to increase until the first target link and the test device are in a stopped transmission state.

[0111] Processor 710 is used to determine the increase in signal strength;

[0112] The processor 710 is used to adjust the radio frequency parameters of the first target link based on the intensity increase value, so that the first target link switches to a disconnected state when the intensity value of the received interference signal reaches the interference intensity threshold.

[0113] In this embodiment of the application, when the first target link is detected to be in a fault state, the second target link can be controlled to increase the signal strength value of the output first signal, the signal strength increase value of the first signal is recorded, and the first target link in the fault state is debugged according to the signal strength increase value, thereby realizing the automatic debugging of the first target link.

[0114] Furthermore, the processor 710 is used to control the signal strength value of the first signal to increase the first strength value each time by adjusting the output power of the second target link until the first target link switches to the disconnected state;

[0115] The processor 710 is used to calculate the signal strength increase value based on the target adjustment number and the first strength value, wherein the target adjustment number is the number of times the output power of the second target link is adjusted during the process of the first target link switching from the conducting state to the disconnected state.

[0116] In this embodiment of the application, by controlling the second target link to increase the strength value of the first signal by a fixed amount at a time, and counting the number of times the second target link controls the strength value of the first signal to increase, the electronic device system can quickly calculate the strength increase value of the first signal.

[0117] Furthermore, the processor 710 is used to control the first moving contact of the switching element to be connected to the first stationary contact, and the second moving contact of the switching element to be connected to the second stationary contact.

[0118] In this embodiment, after the detection of the first target link is completed, the first moving contact of the control switch is connected to the first stationary contact, and the second moving contact is connected to the second stationary contact, causing the first target link and the second target link to switch from a connected state to an isolated state. While the first target link and the second target link remain isolated, the normal use of the electronic device is not affected.

[0119] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch component. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0120] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may 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), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0121] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.

[0122] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0123] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0124] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described test method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0125] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0126] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described test method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0127] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0128] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0129] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An electronic device, comprising: The electronic device comprises: a signal transceiver assembly comprising a first radio frequency link and a second radio frequency link; a switch element, a first moving contact of the switch element being in conduction with the first radio frequency link, a second moving contact of the switch element being grounded, a first stationary contact of the switch element being grounded, and a second stationary contact of the switch element being in conduction with the second radio frequency link; a controller connected with the signal transceiver assembly and the switch element, the controller being configured to control signal transceiving states of the first radio frequency link and the second radio frequency link, and to control on-off states between the first moving contact, the second moving contact, the first stationary contact and the second stationary contact of the switch element, for testing fault states of the first radio frequency link and the second radio frequency link.

2. The electronic device of claim 1, wherein, Further comprising: a first coupler, a first end of the first coupler being connected with the first radio frequency link, and a second end of the first coupler being connected with the first moving contact of the switch element; a second coupler, a first end of the second coupler being connected with the second radio frequency link, and a second end of the second coupler being connected with the second stationary contact of the switch element.

3. The electronic device of claim 1, wherein, Further comprising: an attenuator, the attenuator being arranged between the first moving contact of the switch element and the first radio frequency link, or arranged between the second stationary contact of the switch element and the second radio frequency link.

4. The electronic device of any of claims 1-3, wherein, The signal transceiver assembly comprises a signal transceiver, and the first radio frequency link comprises: a first filter, a first end of the first filter being connected with a first end of the signal transceiver; a second filter, a first end of the second filter being connected with a second end of the signal transceiver; a first combiner, a first end and a second end of the first combiner being connected with a second end of the first filter and a second end of the second filter respectively; a first antenna, the first antenna being connected with a third end of the first combiner; The second radio frequency link comprises: a third filter, a first end of the third filter being connected with a third end of the signal transceiver; a fourth filter, a first end of the fourth filter being connected with a fourth end of the signal transceiver; a second combiner, a first end and a second end of the second combiner being connected with a second end of the third filter and a second end of the fourth filter respectively; a second antenna, the second antenna being connected with a third end of the second combiner.

5. A test method for the electronic device of any one of claims 1 to 4, characterized in that, The testing method comprises: in a case that the electronic device transmits signals with a test device through a first target link of the signal transceiver assembly, controlling the first moving contact and the second stationary contact of the switch element to be in conduction, and the second moving contact and the first stationary contact of the switch element to be in conduction; controlling a second target link to output a first signal, the first target link being any one of the first radio frequency link and the second radio frequency link, and the second target link being a link other than the first target link among the first radio frequency link and the second radio frequency link; in a case that the first target link and the test device are in a signal transmission state, determining that the first target link is in a fault state.

6. The test method of claim 5, wherein, The method further comprises, after determining that the first target link is in the fault state while the first target link and the test device are in the signal transmission state: controlling the second target link to increase the signal strength of the first signal until the first target link and the test device are in the stop transmission state, and determining the signal strength increase value; adjusting the radio frequency parameter of the first target link based on the signal strength increase value, so that the first target link switches to the disconnected state when the received interference signal strength value reaches the interference strength threshold.

7. The test method of claim 6, wherein, The method further comprises, controlling the second target link to increase the signal strength of the first signal until the first target link and the test device are in the stop transmission state, and determining the signal strength increase value: controlling the signal strength value of the first signal to increase by a first strength value each time by adjusting the output power of the second target link until the first target link switches to the disconnected state; calculating the signal strength increase value based on the target adjustment number and the first strength value, the target adjustment number being the number of times of adjusting the output power of the second target link during the process of switching the first target link from the connected state to the disconnected state.

8. The test method according to any one of claims 5 to 7, characterized in that, The method further comprises, after determining that the first target link is in the fault state while the first target link and the test device are in the signal transmission state: controlling the first moving contact and the first fixed contact of the switch to be connected, and controlling the second moving contact and the second fixed contact of the switch to be connected.

9. A test apparatus for the electronic device of any one of claims 1 to 4, characterized by, The test device comprises: a control module configured to control the first moving contact and the second fixed contact of the switch to be connected, and control the second moving contact and the first fixed contact of the switch to be connected when the electronic device transmits signals with the test device through the first target link of the signal transceiver assembly; the control module is further configured to control the second target link to output the first signal, the first target link being any one of the first radio frequency link and the second radio frequency link, and the second target link being the link other than the first target link among the first radio frequency link and the second radio frequency link; a determination module configured to determine that the first target link is in the fault state while the first target link and the test device are in the signal transmission state.

10. A readable storage medium, on which a program or instructions are stored, characterized in that, The program or instructions, when executed by the processor, implement the steps of the test method according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Device, mobile terminal and method for improving radiofrequency link receiving / transmitting performance

    CN104753553A

  • Bluetooth device radio frequency test system

    CN107359944A