Method for detecting metal protective shell, electronic device, and storage medium

CN122525235APending Publication Date: 2026-08-07SHENZHEN TINNO WIRELESS TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN TINNO WIRELESS TECH
Filing Date
2026-03-27
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0005]本申请主要解决的技术问题是提供一种金属保护壳的检测方法、电子设备以及存储介质,以解决智能终端的使用者因不知晓金属信号屏蔽现象导致的智能终端信号被干扰的问题

Benefits of technology

[0016]本发明的有益效果是:区别于现有技术的情况,本申请的金属保护壳的检测方法通过在预设时间段内,响应于目标终端发射天线信号,采集天线信号的驻波信息,得到目标终端在预设时间段内的多个驻波信息;分别将各驻波信息与预设驻波范围进行对比;其中,预设驻波范围是基于目标测试终端与多种金属保护壳之间的测试驻波信息进行确定的;目标测试终端的型号与目标终端相同;当所有的驻波信息均位于预设驻波范围内时,确定目标终端上套设有金属保护壳,通过目标终端进行金属保护壳的屏蔽提醒,从而使得目标终端可以自行检测其是否被套设了金属保护壳,从而提醒使用者更换保护壳,减少目标终端的天线信号被干扰的情况发生,保障目标终端的信号畅通。且在驻波信息的对比判断时,需要所有的驻波信息均位于预设驻波范围内时,才确定目标终端上套设有金属保护壳。上述判定方式有利于提高金属保护壳的检测准确性,减少临时环境改变的干扰,提高检测结果的可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122525235A_ABST
    Figure CN122525235A_ABST
Patent Text Reader

Abstract

The application discloses a metal protective shell detection method, an electronic device and a storage medium. The metal protective shell detection method comprises the following steps: in a preset time period, in response to a target terminal transmitting an antenna signal, collecting standing wave information of the antenna signal to obtain multiple standing wave information of the target terminal in the preset time period; comparing each standing wave information with a preset standing wave range respectively; wherein, the preset standing wave range is determined based on test standing wave information between the target test terminal and multiple metal protective shells; when all the standing wave information is located in the preset standing wave range, it is determined that the target terminal is sleeved with a metal protective shell, and a shielding reminder of the metal protective shell is performed through the target terminal. The above scheme can enable the target terminal to detect whether the target terminal is sleeved with a metal protective shell, thereby reminding a user to replace the protective shell, reducing the occurrence of the antenna signal of the target terminal being interfered, and ensuring the smooth signal of the target terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of metal detection, and in particular to a method for detecting metal protective cases, electronic devices, and storage media. Background Technology

[0002] Currently, users of smart terminals may purchase metal casings or metal external decorations on the market to decorate their smart terminals due to aesthetic considerations.

[0003] However, metal is the "enemy" of antenna signals. It can cause a decline in the performance of cellular signals, Wi-Fi, Bluetooth and GPS through shielding and detuning effects. Specifically, this can manifest as a reduction in signal bars, slower network speed, dropped calls and inaccurate positioning, which seriously affects the performance of smart terminal mobile phones.

[0004] Users of smart devices are often unaware of the above situation, making it impossible to clearly determine the cause of this problem. Summary of the Invention

[0005] The main technical problem addressed by this application is to provide a method for detecting metal protective shells, an electronic device, and a storage medium to solve the problem of interference with smart terminal signals caused by users being unaware of metal signal shielding.

[0006] To address the aforementioned issues, this application provides a method for detecting metal protective cases, comprising: within a preset time period, in response to a target terminal transmitting an antenna signal, collecting standing wave (SWR) information of the antenna signal to obtain multiple SWR information of the target terminal within the preset time period; comparing each SWR information with a preset SWR range; wherein the preset SWR range is determined based on test SWR information between the target test terminal and multiple metal protective cases; the target test terminal is of the same model as the target terminal; when all SWR information is within the preset SWR range, it is determined that the target terminal is equipped with a metal protective case, and a shielding reminder for the metal protective case is provided through the target terminal.

[0007] Within a preset time period, in response to the target terminal transmitting antenna signals, the standing wave information of the antenna signals is collected. This includes: acquiring multiple types of test terminals and corresponding multiple metal protective shells; collecting multiple standing wave information when the test terminal is equipped with multiple metal protective shells and transmits antenna signals, and determining the preset standing wave range of the test terminal based on the multiple standing wave information; wherein, at least one of the shapes, materials, and metal positions of the multiple metal protective shells is different.

[0008] The process involves collecting multiple standing wave (SWR) information when the test terminal is equipped with multiple metal protective shells and transmits antenna signals, and determining a preset SWR range for the test terminal based on the multiple SWR information. This includes: collecting multiple SWR information when the test terminal is equipped with multiple metal protective shells and transmits antenna signals; determining the average SWR information corresponding to the metal protective shells based on the multiple SWR information, thereby determining the multiple average SWR information when the test terminal is equipped with multiple metal protective shells; and determining the preset SWR range based on the maximum and minimum values ​​among the multiple average SWR information.

[0009] The step of collecting standing wave information of the antenna signal in response to the target terminal transmitting the antenna signal includes: collecting the reflected signal of the antenna signal through the directional coupler of the target terminal in response to the target terminal transmitting the antenna signal, and determining the standing wave information of the antenna signal based on the reflected signal.

[0010] Among them, each standing wave information is compared with a preset standing wave range, and it also includes: when at least one of the standing wave information is not within the preset standing wave range, it is determined that the target terminal is not covered with a metal protective shell.

[0011] The process includes: determining that the target terminal is not covered by a metal protective shell; or determining that the target terminal is covered by a metal protective shell and providing a shielding reminder via the target terminal; followed by: clearing multiple standing wave information within a preset time period; repeatedly executing the steps of collecting standing wave information of the antenna signal in response to the target terminal transmitting the antenna signal within the preset time period, and subsequent steps.

[0012] The method of providing a shielding reminder for the metal protective case through the target terminal includes: displaying a text pop-up and / or voice broadcast on the target terminal's screen to provide a shielding reminder for the metal protective case.

[0013] The preset time period includes at least 24 consecutive hours and at most 168 consecutive hours.

[0014] To address the aforementioned technical problems, the present invention also provides an electronic device, comprising a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the metal protective casing detection method as described above.

[0015] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing program instructions thereon, which, when executed by a processor, implement the metal protective casing detection method as described above.

[0016] The beneficial effects of this invention are as follows: Unlike existing technologies, the metal protective shell detection method of this application collects standing wave (SWR) information of the antenna signal transmitted by the target terminal within a preset time period, obtaining multiple SWR information of the target terminal within the preset time period. Each SWR information is then compared with a preset SWR range. The preset SWR range is determined based on the test SWR information between the target test terminal and various metal protective shells. The target test terminal is the same model as the target terminal. When all SWR information is within the preset SWR range, it is determined that the target terminal is equipped with a metal protective shell. The target terminal then provides a shielding reminder regarding the metal protective shell, allowing it to detect whether it is equipped with one, thus reminding the user to replace the shell, reducing interference with the target terminal's antenna signal, and ensuring uninterrupted signal transmission. Furthermore, the comparison of SWR information requires all SWR information to be within the preset SWR range before determining that the target terminal is equipped with a metal protective shell. This determination method improves the accuracy of metal protective shell detection, reduces interference from temporary environmental changes, and enhances the reliability of the detection results. Attached Figure Description

[0017] Figure 1 This is a schematic flowchart of an embodiment of the detection method for the metal protective shell of this application; Figure 2 This is a schematic flowchart of another embodiment of the detection method for the metal protective shell of this application; Figure 3 This is a schematic diagram of the framework of an embodiment of the electronic device of this application; Figure 4 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0018] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0019] If the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0020] Please see Figure 1 , Figure 1This is a schematic flowchart of an embodiment of the detection method for the metal protective casing of this application. The detection method for the metal protective casing in this embodiment specifically includes the following steps: Step S11: Within a preset time period, in response to the target terminal transmitting antenna signal, collect the standing wave information of the antenna signal to obtain multiple standing wave information of the target terminal within the preset time period.

[0021] The types of target terminals include, but are not limited to, mobile phones, tablets, smartwatches, smart glasses, smart bracelets, e-book readers, smart cameras, etc.

[0022] This embodiment detects the standing wave information of the target terminal within a preset time period. Specifically, each time the target terminal transmits an antenna signal, the standing wave information of the antenna signal is collected, thereby obtaining multiple standing wave information of the target terminal within the preset time period. When the target terminal actively transmits an antenna signal, it is often because the user of the target terminal actively uses the function of transmitting signals to the outside, or the target terminal actively contacts the base station to maintain the connection.

[0023] In this embodiment, the standing wave information refers to the antenna standing wave ratio (VSWR), a dimensionless value that measures the impedance matching degree between the antenna and the transmission line (and the underlying RF circuitry). The VSWR is generated because the incident wave energy is not fully absorbed when it reaches the antenna input, resulting in reflected waves that are superimposed. Therefore, a higher antenna VSWR indicates a poorer matching and lower antenna system efficiency.

[0024] Step S12: Compare each standing wave information with the preset standing wave range; wherein, the preset standing wave range is determined based on the test standing wave information between the target test terminal and various metal protective shells; the model of the target test terminal is the same as that of the target terminal.

[0025] The collected standing wave information data are compared with a preset standing wave range to determine whether each standing wave information falls within the preset range. The preset standing wave range is determined based on the test standing wave information between the target test terminal and various metal protective shells; the target test terminal model is the same as the target terminal.

[0026] Before testing, this embodiment first collects the standing wave (SWR) information of the target test terminal under the influence of various metal protective cases to determine the preset SWR range corresponding to the target terminal. The preset SWR range helps to determine whether the target terminal is being affected by interference from the metal protective case.

[0027] Step S13: When all standing wave information is within the preset standing wave range, it is determined that the target terminal is equipped with a metal protective shell, and the shielding reminder of the metal protective shell is sent through the target terminal.

[0028] When all standing wave information is within the preset standing wave range, it is determined that the target terminal is equipped with a metal protective case. Then, a reminder regarding the metal protective case is sent to the target terminal user, specifically through a pop-up window and / or voice prompt, to inform the user to replace the metal protective case to prevent interference with the antenna signal.

[0029] Placing the target terminal on a metal table, holding it in hand, or carrying it in a room with burglar bars will all increase the antenna's standing wave ratio (SWR). However, these situations are temporary, while metal protective cases are often worn on the target terminal for extended periods. Therefore, to determine if a metal protective case is present on the target terminal, all SWR information must be within a preset SWR range. This determination method improves the accuracy of metal protective case detection, reduces interference from temporary environmental changes, and enhances the reliability of the detection results.

[0030] Through the above steps, the metal protective shell detection method of this embodiment collects the standing wave information of the antenna signal in response to the target terminal's transmitted antenna signal within a preset time period, obtaining multiple standing wave information of the target terminal within the preset time period; each standing wave information is compared with a preset standing wave range; wherein, the preset standing wave range is determined based on the test standing wave information between the target test terminal and various metal protective shells; the model of the target test terminal is the same as the target terminal; when all standing wave information is within the preset standing wave range, it is determined that the target terminal is equipped with a metal protective shell, and the target terminal provides a shielding reminder of the metal protective shell, thereby enabling the target terminal to detect whether it is equipped with a metal protective shell, thus reminding the user to replace the protective shell, reducing the occurrence of interference with the target terminal's antenna signal, and ensuring the smooth signal of the target terminal. Moreover, in the comparison and judgment of standing wave information, it is only determined that the target terminal is equipped with a metal protective shell when all standing wave information is within the preset standing wave range. The above determination method helps to improve the detection accuracy of metal protective shells, reduce the interference of temporary environmental changes, and improve the reliability of detection results.

[0031] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the detection method for the metal protective casing of this application. The detection method for the metal protective casing in this embodiment specifically includes the following steps: Step S21: Obtain various types of test terminals and corresponding metal protective shells; collect multiple standing wave information when the test terminal is covered with multiple metal protective shells and transmits antenna signals, and determine the preset standing wave range of the test terminal based on the multiple standing wave information.

[0032] This embodiment involves different models of smart terminal devices. The metal protective shell, as a metal outer casing covering the terminal surface, affects the shielding effect of the antenna signal due to differences in its shape, material, and metal placement. Specifically, the shape of the metal protective shell (e.g., full-coverage, semi-coverage), its material (e.g., stainless steel, aluminum alloy), and its metal placement (e.g., back, frame) all lead to differences in standing wave (SWR) information response. Relying on a single combination cannot cover actual usage scenarios. Therefore, multiple models of test terminals and corresponding metal protective shells were obtained during testing. Among these, at least one of the following—shape, material, or metal placement—differences exist between the various metal protective shells.

[0033] The test terminal collects multiple standing wave (SWR) data points when it is equipped with various metal protective cases and transmits antenna signals. Based on these SWR data points, a preset SWR range for the test terminal is determined. In a specific application scenario, assuming each model of the test terminal has 10 corresponding metal protective cases, these 10 metal protective cases are respectively placed on the test terminal, and multiple SWR data points corresponding to each of these 10 metal protective cases are collected. If the number of SWR data points for each metal protective case is set to 5, then a total of 50 SWR data points are collected for each model of the test terminal. This application scenario is only an example and is not intended to limit the scope of the application.

[0034] The differences in shape, material, and metal position of various metal protective cases allow for the systematic collection of the variability in the impact of the metal protective case on the antenna signal. By determining a preset standing wave range based on multiple standing wave information, this range can accurately cover the VSWR variation characteristics when different metal protective cases are used, thereby achieving more accurate identification of the metal protective case, further improving the detection accuracy, and reducing misjudgments caused by mismatches in terminal model or metal case type.

[0035] In a specific application scenario, multiple standing wave (SWR) information is collected when the test terminal is covered with a metal protective shell and transmits antenna signals; the average SWR information corresponding to the metal protective shell is determined based on the multiple SWR information, so as to determine the multiple average SWR information when the test terminal is covered with multiple metal protective shells; and the preset SWR range is determined based on the maximum and minimum values ​​among the multiple average SWR information.

[0036] When collecting data using the same metal protective casing, multiple standing wave (SWR) data points are acquired, and the average SWR information corresponding to each metal protective casing is first determined. In a specific application scenario, the average SWR information can be obtained by calculating the arithmetic mean or weighted average of multiple SWR values ​​to eliminate random noise and measurement fluctuations.

[0037] After determining multiple average standing wave (VSW) values ​​when the test terminal is covered with multiple metal protective shells, a preset VSW range is determined based on the maximum and minimum values ​​among these average VSW values. In other words, the maximum and minimum values ​​are extracted from multiple average VSW values ​​to define the boundaries of the preset VSW range.

[0038] In a specific application scenario, a test terminal with a metal protective shell can be used to continuously collect 10 standing wave data in a laboratory environment. Then, a moving average algorithm can be used to process these 10 standing wave data to smooth out instantaneous interference. Finally, the extreme range of the preset standing wave range can be determined from the average standing wave information of all metal protective shells corresponding to the test terminal.

[0039] This embodiment determines the average standing wave information based on multiple standing wave information, which can effectively smooth data noise and thus improve the stability of the preset range benchmark. Determining the preset standing wave range based on the maximum and minimum values ​​among multiple average standing wave information ensures that the range boundary can fully cover the maximum variation range of VSWR when the metal protective case is used, further improving the accuracy of metal protective case detection, reducing misjudgments caused by data fluctuations, and helping to improve users' understanding of signal problems and communication experience.

[0040] Step S22: Within a preset time period, in response to the target terminal transmitting antenna signal, collect the standing wave information of the antenna signal to obtain multiple standing wave information of the target terminal within the preset time period.

[0041] In a specific application scenario, the preset time period includes at least 24 consecutive hours and at most 168 consecutive hours.

[0042] The preset time period needs to be continuous to ensure uninterrupted data collection. The minimum 24 hours can cover typical short-term usage cycles, such as daily signal fluctuation patterns, while the maximum 168 hours can cover a full week of usage habits, such as signal differences between weekdays and weekends.

[0043] In a specific application scenario, a 24-hour preset time period can be used to achieve rapid detection response and shorten detection alert time. Alternatively, a 72-hour preset time period can be used to balance detection efficiency and accuracy to adapt to daily usage scenarios. A 168-hour preset time period can also be used as a standard cycle to comprehensively reflect long-term signal changes. Setting preset time periods, in conjunction with the data acquisition process, can continuously collect sufficient data to distinguish between signal changes caused by the metal protective casing and normal fluctuations, reducing the impact of temporary interference or short-term signal anomalies on detection results. This helps improve detection reliability and user satisfaction.

[0044] During data acquisition, in response to the target terminal's transmitted antenna signal, the reflected signal of the antenna signal can be acquired through the target terminal's directional coupler, and the standing wave information of the antenna signal can be determined based on the reflected signal.

[0045] In a specific application scenario, a directional coupler is directly coupled to the antenna transmission path to separate reflected signals in the signal path. When the target terminal transmits an antenna signal, the directional coupler captures the reflected signal, which is then converted into voltage standing wave ratio (VSWR) data by a signal processing unit to determine the VSWR information. Embodiments may include using a radio frequency directional coupler built into the target terminal to acquire reflected signals. Different frequency band directional couplers can be used to adapt to different antenna systems, or software algorithms can be combined to perform real-time filtering of the reflected signal to eliminate noise interference.

[0046] In a specific application scenario, a directional coupler can be used to separate the forward wave emitted from the antenna and the reflected reverse wave. The directional coupler measures V_fwd (forward wave voltage) and V_rev (reverse wave voltage) and calculates the reflection coefficient. The formula for calculating the amplitude of the reflection coefficient is: | |=V_rev / V_fwd, this value ranges from 0 to 1. When =0 indicates a perfect match, with no reflection. When =1 indicates a complete mismatch, where all signals are reflected. The formula for calculating the voltage standing wave ratio (VSWR) and reflection coefficient is: VSWR = (1 + | |) / (1-| |), where VSWR ranges from 1 to infinity. A higher VSWR indicates poorer matching and greater power loss. Using the above method, the VSWR of each transmitted signal from the target terminal can be collected and calculated, thus obtaining VSWR information.

[0047] Step S23: Compare each standing wave information with the preset standing wave range.

[0048] The standing wave information collected by the target terminal within a preset time period is compared with the preset standing wave range. The preset standing wave range is determined based on the test standing wave information between the target test terminal and various metal protective shells. The model of the target test terminal is the same as that of the target terminal.

[0049] In a specific application scenario, the preset VSWR range for the antenna can be 3.5-6.0. When the target terminal is equipped with a metal protective shell, its antenna VSWR will stabilize within the above range. In other application scenarios, the range of the antenna VSWR can be set based on the actual data collected in step S21.

[0050] Step S24: When all standing wave information is within the preset standing wave range, it is determined that the target terminal is equipped with a metal protective shell. A text pop-up and / or voice broadcast is made through the target terminal screen to remind users of the shielding effect of the metal protective shell.

[0051] When all standing wave information is within the preset standing wave range, it is determined that the target terminal is equipped with a metal protective shell. Since multiple standing wave information are within a preset time period of at least 24 hours, if all of the above standing wave information is within the preset standing wave range, it means that the target terminal is continuously in a metal shielding state for at least 24 hours, which can avoid short-term metal shielding interference and confirm that the target terminal is equipped with a metal protective shell.

[0052] A text pop-up refers to a text prompt that appears on the target terminal's screen to directly inform the user about signal interference caused by a metal protective case. Examples may include setting the text content to "Metal protective case may affect signal, please check," using a semi-transparent background to avoid obstructing main screen operations, and setting the pop-up display duration to 3 seconds to balance the intensity of the reminder with the user experience. By using text pop-ups and / or voice announcements, the metal protective case's interference reminder becomes more intuitive and user-friendly, thereby improving the user's awareness of signal problems, reducing communication interruptions caused by metal protective cases, and ensuring uninterrupted signal coverage for the target terminal.

[0053] Step S25: When at least one of the standing wave information is not within the preset standing wave range, it is determined that the target terminal is not covered with a metal protective shell.

[0054] When at least one standing wave information is not within the preset standing wave range, it indicates that the target terminal is not in a metal shielding state for a long time, confirming that the target terminal is not covered by a metal protective shell. The target terminal remains silent, thereby avoiding false triggering of alerts when there is no metal protective shell, and further improving detection accuracy. This condition enables the target terminal to maintain a low false alarm rate when there is no metal protective shell, which is beneficial to improving the user's signal experience and reducing unnecessary user interference.

[0055] Step S26: Clear multiple standing wave information within a preset time period; repeatedly execute the steps of collecting standing wave information of antenna signals in response to the target terminal transmitting antenna signals within the preset time period, as well as subsequent steps.

[0056] After determining the structure based on the standing wave information within the preset time period, clear the multiple standing wave information within the preset time period; repeatedly execute the steps of collecting the standing wave information of the antenna signal in response to the target terminal transmitting the antenna signal and subsequent steps, that is, repeatedly execute steps S22-S24 to continuously detect the metal protective shell.

[0057] Each time the system determines that a target terminal is not covered by a metal protective shell or has been covered by a metal protective shell and triggers a shielding alert, it automatically performs a clearing operation to reset the standing wave (SWR) information data stored within a preset time period. The clearing operation is implemented through system data cache reset, ensuring that subsequent data acquisition is based on a completely new state and avoiding misjudgments caused by the accumulation of historical data. In a specific application scenario, a timed triggering clearing mechanism can be adopted, for example, automatically clearing SWR information at preset time intervals while continuously responding to antenna signal transmission, acquiring real-time SWR information, and performing subsequent analysis and judgment steps within the preset time period, maintaining the continuity and adaptability of the detection system.

[0058] Clearing the standing wave information within a preset time period allows the target terminal to avoid interference from historical data, thereby enabling real-time reset of the detection status and further improving the accuracy of judgment; repeatedly executing the data acquisition steps allows the system to continuously track changes in the usage status of the metal protective shell, which helps improve the user's timely perception of signal problems, reduces the continuous occurrence of signal performance degradation, and effectively improves the communication experience.

[0059] Through the above steps, the metal protective case detection method of this embodiment provides a shielding reminder from the target terminal, allowing the target terminal to automatically detect whether it is covered by a metal protective case. This reminds the user to replace the protective case, reducing interference with the target terminal's antenna signal and ensuring uninterrupted signal transmission. Furthermore, in the comparison and judgment of standing wave information, all standing wave information must be within a preset standing wave range to confirm that the target terminal is covered by a metal protective case. This determination method improves the accuracy of metal protective case detection, reduces interference from temporary environmental changes, and enhances the reliability of the detection results. This embodiment requires no additional hardware and can be implemented using the existing antenna system of the mobile phone, resulting in low cost.

[0060] Please see Figure 3 , Figure 3 This is a schematic diagram of a framework of an embodiment of the electronic device of this application. The electronic device 300 includes a memory 301 and a processor 302 coupled to each other. The processor 302 is used to execute program instructions stored in the memory 301 to implement the steps of the above method embodiment. In a specific implementation scenario, the electronic device 300 may include, but is not limited to, a microcomputer, a server, etc. In addition, the electronic device 300 may also include a laptop computer, a tablet computer, a solid-state drive, a memory card, a Nand Flash, etc., which are not limited here.

[0061] Specifically, processor 302 controls itself and memory 301 to implement the steps of any of the above method embodiments. Processor 302 may also be referred to as a CPU (Central Processing Unit). Processor 302 may be an integrated circuit chip with signal processing capabilities. Processor 302 may also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. A general-purpose processor may be a microprocessor or any conventional processor. Furthermore, processor 302 may be implemented using integrated circuit chips.

[0062] The above solution enables the target terminal to detect whether it is covered by a metal protective case, thereby reminding the user to replace the protective case, reducing the occurrence of antenna signal interference of the target terminal, and ensuring the smooth signal of the target terminal.

[0063] Please see Figure 4 , Figure 4 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 400 stores program instructions 401 that can be executed by a processor. The program instructions 401 are used to implement the steps of any of the above method embodiments.

[0064] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0065] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0066] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0067] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0068] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for detecting a metal protective casing, characterized in that, The detection method for the metal protective casing includes: Within a preset time period, in response to the target terminal transmitting an antenna signal, the standing wave information of the antenna signal is collected to obtain multiple standing wave information of the target terminal within the preset time period; Each standing wave information is compared with a preset standing wave range; wherein, the preset standing wave range is determined based on the test standing wave information between the target test terminal and various metal protective shells; the model of the target test terminal is the same as that of the target terminal. When all standing wave information is within the preset standing wave range, it is determined that the target terminal is equipped with a metal protective shell, and the shielding reminder of the metal protective shell is issued through the target terminal.

2. The method for detecting metal protective shells according to claim 1, characterized in that, Within a preset time period, in response to the target terminal transmitting an antenna signal, the standing wave information of the antenna signal is collected, which includes the following steps: We obtained various models of test terminals and their corresponding metal protective cases; Multiple standing wave information is collected when the test terminal is covered with multiple metal protective shells and transmits antenna signals, and a preset standing wave range of the test terminal is determined based on the multiple standing wave information. Among these, the shapes, materials, and metal positions of the various metal protective shells are different in at least one aspect.

3. The method for detecting metal protective shells according to claim 2, characterized in that, The process of collecting multiple standing wave (SWR) information when the test terminal is fitted with multiple metal protective shells and transmits antenna signals, and determining a preset SWR range for the test terminal based on the multiple SWR information, includes: Collect multiple standing wave information when the test terminal is covered with the metal protective shell and transmits antenna signals; determine the average standing wave information corresponding to the metal protective shell based on the multiple standing wave information, so as to determine the multiple average standing wave information when the test terminal is covered with multiple metal protective shells; The preset standing wave range is determined based on the maximum and minimum values ​​among the multiple average standing wave information.

4. The method for detecting metal protective shells according to claim 1, characterized in that, The step of collecting standing wave information of the antenna signal in response to the target terminal's transmitted antenna signal includes: In response to the target terminal transmitting an antenna signal, the reflected signal of the antenna signal is acquired through the directional coupler of the target terminal, and the standing wave information of the antenna signal is determined based on the reflected signal.

5. The method for detecting metal protective shells according to claim 1, characterized in that, The step of comparing each of the standing wave information with a preset standing wave range also includes: When at least one of the standing wave information is not within the preset standing wave range, it is determined that the target terminal is not covered by the metal protective shell.

6. The method for detecting metal protective shells according to claim 5, characterized in that, It is determined that the target terminal is not covered by the metal protective shell; Alternatively, if it is determined that the target terminal is equipped with a metal protective case, and the target terminal provides a shielding reminder regarding the metal protective case, then the process includes: Clear multiple standing wave information within the preset time period; The steps of collecting standing wave information of the antenna signal in response to the target terminal transmitting the antenna signal and subsequent steps are repeated in a loop within a preset time period.

7. The method for detecting metal protective shells according to claim 1, characterized in that, The step of providing a shielding reminder for the metal protective case via the target terminal includes: The target terminal displays a text pop-up and / or voice broadcast to remind users of the shielding effect of the metal protective case.

8. The method for detecting metal protective shells according to claim 1, characterized in that, The preset time period includes at least 24 consecutive hours and at most 168 consecutive hours.

9. An electronic device, characterized in that, It includes a memory and a processor coupled to each other, the processor being used to execute program instructions stored in the memory to implement the detection method for metal protective casing as described in any one of claims 1 to 8.

10. A computer-readable storage medium having program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the metal protective casing detection method as described in any one of claims 1 to 8.