Connection state determination method and device, electronic equipment and storage medium
By obtaining the difference in capacitance parameter of the electronic device connector, the connection status of the connector is automatically determined, which solves the problems of low detection efficiency and high cost in the prior art, and achieves fast and accurate connector status detection.
Patent Information
- Application Number
- CN202310558744.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-11-22
AI Technical Summary
When detecting the connection status of electronic device connectors, the machine is often disassembled, sliced or CT scan, and it is time-consuming and expensive, and it cannot quickly and effectively locate the abnormal connector, affecting the detection efficiency.
By obtaining the current electrical parameter value of the capacitor corresponding to the connector metal sheet, calculating the parameter difference value with the reference electrical parameter value, and determining the connection status of the connector based on the difference value and the preset threshold value, automatically detecting abnormal state without manual disassembly or expensive equipment.
It realizes rapid and automatic detection of the connection status of the connector, improves detection efficiency, avoids manual analysis and the use of expensive equipment, and can position abnormal connectors in a timely manner.
Smart Images

Figure CN119001544A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of detection technology, and in particular to a connection status determination method and device, an electronic device, and a storage medium. Background Art
[0002] Currently, electronic devices have been integrated into users' daily lives, and whether they work properly will affect users' use.
[0003] Considering that there are multiple connectors in electronic devices, such as snap-on connectors that connect the main board and sub-board inside the electronic device, or some other communication connectors, during use, if the electronic device is dropped or hit, the above connectors may become loose or fall off, resulting in abnormal signal connection and function problems.
[0004] In the related technology, disassembly analysis, slice analysis or CT scanning analysis are usually used. Taking disassembly analysis as an example, disassembly analysis may destroy the problem site and fail to find the root cause of the problem; taking slice or CT scanning analysis as an example, slice or CT scanning analysis requires expensive equipment support and takes a lot of time. Summary of the invention
[0005] The present disclosure provides a connection status determination method and device, an electronic device, and a storage medium to address the deficiencies of related technologies.
[0006] According to a first aspect of an embodiment of the present disclosure, a connection status determination method is provided, which is applied to an electronic device, wherein the electronic device includes at least one connector, the connector includes at least one metal sheet, and a capacitor is formed between the metal sheet and a ground line of the electronic device; the method includes:
[0007] Obtain the current electrical parameter value of the capacitor corresponding to the metal sheet of the connector;
[0008] Obtaining a parameter difference between the current electrical parameter value and a reference electrical parameter value;
[0009] The connection state of the connector is determined according to the parameter difference and a preset difference threshold.
[0010] Optionally, the current electrical parameter value includes a capacitance value of the capacitor or a voltage value of the capacitor.
[0011] Optionally, obtaining a parameter difference between the current electrical parameter value and a reference electrical parameter value includes:
[0012] Acquire the reference electrical parameter value, where the reference electrical parameter value includes a preset value, a historical electrical parameter value of a previous detection cycle, or an average value of historical electrical parameter values of a preset number of detection cycles;
[0013] Calculating a difference between the current electrical parameter value and the reference electrical parameter value;
[0014] The absolute value of the difference is obtained, and the absolute value is used as the parameter difference.
[0015] Optionally, when the current electrical parameter value is a current voltage value, the reference electrical parameter value is a reference capacitance value;
[0016] Obtaining a parameter difference between the current electrical parameter value and a reference electrical parameter value, including:
[0017] Converting the current voltage value into a current capacitance value;
[0018] Obtaining a capacitance difference between the current capacitance value and the reference capacitance value;
[0019] The absolute value of the capacitance difference is obtained as the parameter difference.
[0020] Optionally, determining the connection state of the connector according to the parameter difference and a preset difference threshold includes:
[0021] When it is determined that the parameter difference is less than or equal to the preset difference threshold, determining that the connection state of the connector is a normal state;
[0022] When it is determined that the parameter difference is greater than the preset difference threshold, the connection state of the connector is determined to be an abnormal state.
[0023] Optionally, the method further comprises:
[0024] When the connection state of the connector is an abnormal state, the display of the electronic device is controlled to display prompt information that the connector is in an abnormal state.
[0025] According to a second aspect of an embodiment of the present disclosure, there is provided a connection status determination device, which is applied to an electronic device, wherein the electronic device includes at least one connector, the connector includes at least one metal sheet, and a capacitor is formed between the metal sheet and a ground line of the electronic device; the device includes:
[0026] A current parameter acquisition module is used to obtain the current electrical parameter value of the capacitor corresponding to the metal sheet of the connector;
[0027] A parameter difference acquisition module, used to acquire a parameter difference between the current electrical parameter value and a reference electrical parameter value;
[0028] A connection status determination module is used to determine the connection status of the connector according to the parameter difference and a preset difference threshold.
[0029] Optionally, the current electrical parameter value includes a capacitance value of the capacitor or a voltage value of the capacitor.
[0030] Optionally, the parameter difference acquisition module includes:
[0031] A reference parameter acquisition submodule, used to acquire the reference electrical parameter value, wherein the reference electrical parameter value includes a preset value, a historical electrical parameter value of a previous detection cycle, or an average value of historical electrical parameter values of a preset number of detection cycles;
[0032] A difference calculation submodule, used to calculate the difference between the current electrical parameter value and the reference electrical parameter value;
[0033] The parameter difference acquisition submodule is used to acquire the absolute value of the difference and use the absolute value as the parameter difference.
[0034] Optionally, when the current electrical parameter value is a current capacitance value, the reference electrical parameter value is a reference voltage value;
[0035] The parameter difference acquisition module comprises:
[0036] A current voltage acquisition submodule, used for converting the current voltage value into a current capacitance value;
[0037] A voltage difference acquisition submodule, used to acquire a capacitance difference between the current capacitance value and the reference capacitance value;
[0038] The parameter difference acquisition submodule is used to acquire the absolute value of the capacitance difference as the parameter difference.
[0039] Optionally, the connection status determination module includes:
[0040] A normal state determination submodule, configured to determine that the connection state of the connector is a normal state when it is determined that the parameter difference is less than or equal to the preset difference threshold;
[0041] The abnormal state determination submodule is used to determine that the connection state of the connector is an abnormal state when it is determined that the parameter difference is greater than the preset difference threshold.
[0042] Optionally, the device further comprises:
[0043] The abnormal state display module is used to control the display of the electronic device to display prompt information that the connector is in an abnormal state when the connection state of the connector is in an abnormal state.
[0044] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, the electronic device comprising a processor, a SAR sensor and at least one connector; the connector comprising at least one metal sheet; a capacitor is formed between the metal sheet and a ground line of the electronic device; the SAR sensor is electrically connected to the processor and the metal sheet respectively;
[0045] The SAR sensor is used to detect a current electrical parameter value of the capacitor and send the current electrical parameter value to the processor;
[0046] The processor is used to obtain a parameter difference between the current electrical parameter value and a reference electrical parameter value; and determine a connection state of the connector according to the parameter difference and a preset difference threshold.
[0047] Optionally, the processor obtains a parameter difference between the current electrical parameter value and a reference electrical parameter value, including:
[0048] Acquire the reference electrical parameter value, where the reference electrical parameter value includes a preset value, a historical electrical parameter value of a previous detection cycle, or an average value of historical electrical parameter values of a preset number of detection cycles;
[0049] Calculating a difference between the current electrical parameter value and the reference electrical parameter value;
[0050] The absolute value of the difference is obtained, and the absolute value is used as the parameter difference.
[0051] Optionally, when the current electrical parameter value is a current voltage value, the reference electrical parameter value is a reference capacitance value;
[0052] The processor obtains a parameter difference between the current electrical parameter value and a reference electrical parameter value, including:
[0053] Converting the current voltage value into a current capacitance value;
[0054] Obtaining a capacitance difference between the current capacitance value and the reference capacitance value;
[0055] The absolute value of the capacitance difference is obtained as the parameter difference.
[0056] Optionally, the processor determines the connection state of the connector according to the parameter difference and a preset difference threshold, including:
[0057] When it is determined that the parameter difference is less than or equal to the preset difference threshold, determining that the connection state of the connector is a normal state;
[0058] When it is determined that the parameter difference is greater than the preset difference threshold, the connection state of the connector is determined to be an abnormal state.
[0059] Optionally, the electronic device includes a display, and the display is electrically connected to the processor; the processor is further configured to control the display to display a prompt message indicating that the connector is in an abnormal state when the connection state of the connector is in an abnormal state.
[0060] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the method described in any one of the first aspects can be implemented.
[0061] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0062] The solution provided by the embodiment of the present disclosure can obtain the current electrical parameter value of the capacitor corresponding to the metal sheet of the connector; then, obtain the parameter difference between the current electrical parameter value and the reference electrical parameter value; then, determine the connection state of the connector according to the parameter difference and the preset difference threshold. In this way, in this embodiment, the connection state of the connector is determined by detecting the electrical parameter value of the capacitor corresponding to the connector, and the connector in abnormal state can be automatically located without manual disassembly, slice analysis or CT scanning and other analysis solutions, which can improve the detection efficiency.
[0063] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0065] Figure 1 The figure is a flow chart of a method for determining a connection status according to an exemplary embodiment.
[0066] Figure 2 It is a block diagram of an electronic device including a SAR sensor according to an exemplary embodiment.
[0067] Figure 3 is a block diagram of another electronic device including a SAR sensor according to an exemplary embodiment.
[0068] Figure 4 The figure is a flow chart showing a method of obtaining a parameter difference according to an exemplary embodiment.
[0069] Figure 5 is a flowchart of another method for obtaining parameter difference according to an exemplary embodiment.
[0070] Figure 6 The figure is a schematic diagram showing a structure of a connector corresponding to a capacitor according to an exemplary embodiment.
[0071] Figure 7 The figure is a block diagram of a device for determining a connection status according to an exemplary embodiment.
[0072] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described exemplarily below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the attached claims. It should be noted that the features in the following embodiments and implementations may be combined with each other without conflict.
[0074] To solve the above technical problems, the embodiments of the present disclosure provide a method and device for determining a connection status, an electronic device, and a storage medium. The connection status determination method can be applicable to an electronic device, which may include at least one connector, each connector including at least one metal sheet, which may be a pin or probe (Pin) of the connector or a sheet metal separately provided for the connector, which can be selected according to the specific scenario. It is understandable that since the metal sheet is a sheet structure, a capacitor is formed between it and the ground wire (or the metal shell of the electronic device).
[0075] Based on the above structure and the working state of the connector, it can be known that when the connector remains connected, the change in the electrical parameter value of the above capacitor is small; when the connector is disconnected, the change in the electrical parameter value before and after the disconnection is large. Based on this, the inventive concept of the present disclosure is to determine the connection state of the connector according to the change before and after the electrical parameter value of the capacitor, so as to achieve the effect of quickly detecting the connection state of the connector.
[0076] Figure 1 FIG. 1 is a flow chart showing a method for determining a connection state according to an exemplary embodiment. Figure 1 A method for determining a connection status is applied to an electronic device, wherein the electronic device includes at least one connector, the connector includes at least one metal sheet, and a capacitor is formed between the metal sheet and a ground line of the electronic device; the method includes steps 11 to 13.
[0077] In step 11, the current electrical parameter value of the capacitor corresponding to the metal sheet of the connector is obtained.
[0078] In this step, the electronic device includes a SAR sensor. Figure 2 The SAR (Specific Absorption Rate, electromagnetic wave absorption ratio or specific absorption rate) sensor is electrically connected to the antenna (Antenna1, Antenna2, ..., Antenna1) and the processor (CPU) respectively, the processor is also electrically connected to the modem (Modem) of the electronic device, and the modem (Modem) is electrically connected to the radio frequency amplifier (PA).
[0079] Continue to see Figure 2 , the working principle of the SAR sensor is:
[0080] The SAR sensor can detect the voltage change or capacitance change of one or more antennas in the antennas Antenna 1 to n; then, the SAR sensor can send the above voltage change or capacitance change to the processor; the processor can determine the distance between the obstruction and the electronic device based on the above change and the relationship between the pre-stored change and the distance. In addition, when the obstruction is close to the electronic device, the modem and the radio frequency power amplifier are controlled to reduce the generated power, thereby achieving the effect of reducing the SAR value.
[0081] In this step, combined with the working principle of SAR sensor, Figure 2 Antenna 1~n in the diagram is replaced with metal sheet 1~n, such as Figure 3 Among them, the metal sheets 1 to n may belong to one connector, or one metal sheet may correspond to one connector, which can be selected according to the specific scenario and is not limited here.
[0082] In this step, each metal sheet i (i ranges from 1 to n) can form a capacitor with the ground line of the electronic device. In one example, the electrical parameter value of the capacitor corresponding to each metal sheet can be pre-detected, and the pre-detected electrical parameter value can be used to determine the preset difference threshold and / or reference electrical parameter value of the connector.
[0083] Taking the determination of the reference electrical parameter value as an example, when the electrical parameter value is a preset value, the electronic device can obtain the electrical parameter value of each metal sheet of the connector and calculate the average value of these electrical parameter values, thereby using the average value as the reference electrical parameter value. It should be noted that the reference electrical parameter value is taken as an example to describe the use of the electrical parameter value. In some possible embodiments, the above-mentioned reference electrical parameter value can also take other values, which will be described in detail in subsequent steps and will not be explained here.
[0084] Taking the determination of the preset difference threshold as an example, the electronic device can obtain the electrical parameter values of the capacitors corresponding to each metal sheet when the connector remains connected, and can calculate the average value of all electrical parameter values corresponding to each connector, which is hereinafter referred to as the first average value for distinction. The electronic device can obtain the electrical parameter values of the capacitors corresponding to each metal sheet when the connector is disconnected, and can calculate the average value of all electrical parameter values corresponding to each connector, which is hereinafter referred to as the second average value for distinction. Then, the electronic device can obtain the absolute value of the difference between the first average value and the second average value to obtain the preset difference threshold.
[0085] In this step, when the electronic device is turned on, the SAR sensor can detect the current electrical parameter value of the capacitor corresponding to each metal sheet according to a set period (for example, 0.1 to 600 seconds), wherein the current electrical parameter value may include a capacitance value or a voltage value.
[0086] In this step, the processor of the electronic device is electrically connected to the SAR sensor, and the current electrical parameter value can be obtained through the electrical connection.
[0087] In one example, the processor is directly connected to the SAR sensor via a communication bus, and at this time, the current electrical parameter value collected by the SAR sensor is acquired.
[0088] In another example, the SAR sensor can store the current electrical parameter value to a designated location (such as a cache, local memory, or cloud), and the processor can determine that there is new data after receiving a trigger signal from the SAR sensor (such as a pin changing from a high level to a low level, or from a low level to a high level), and can read the current electrical parameter value from the designated location.
[0089] In another example, the SAR sensor can store the current electrical parameter value in a specified location (such as a cache, a local memory, or a cloud). The processor can poll the specified location at a certain period (which can be less than or equal to the above-mentioned set period). When it is detected that there is data at the specified location, the processor can read the current electrical parameter value from the specified location.
[0090] In one example, after reading the current electrical parameter value, the processor may delete the current electrical parameter value from the specified location, thereby reducing the space occupied by the specified location; or, solidify the current electrical parameter value into the electrical parameter value table. At this time, the current electrical parameter value becomes a historical parameter value to facilitate subsequent access and use of historical data.
[0091] In one example, the electrical parameter value table may store historical electrical parameter values within a preset time period, such as 1 to 24 hours; or, only store a historical electrical parameter value of the previous detection cycle, and the size of the electrical parameter value table may be adjusted according to the storage space in the electronic device.
[0092] Considering that the loosening of the connector is a low-probability event, in one embodiment, the electronic device may include a connection status detection function. The triggering method of the connection status detection function may include but is not limited to the operation of a virtual key of the connection status detection function, the operation of a physical key of the connection status detection function, or the detection of a combined operation of multiple physical keys.
[0093] When the user feels that the display of the electronic device is abnormal, the user can find the corresponding virtual button, or at least one physical button, in the operation interface and trigger the button. When the processor detects that the connection status detection function is triggered, the processor can send a control instruction to the SAR sensor. After receiving the above control instruction, the SAR sensor collects the current electrical parameter value of the capacitor. Then, the processor obtains the above current electrical parameter value. In this way, the SAR sensor can detect the electrical parameter value when there is a detection demand, which can reduce its power consumption.
[0094] Considering the use scenario of the electronic device, the electronic device includes a spatial attitude sensor, such as a pressure sensor, a gravity sensor or a gyroscope. The spatial attitude sensor can detect the spatial attitude data of the electronic device in real time, and adjust the display state or screen-off state of the electronic device according to the spatial attitude data. In one example, the processor can also obtain the spatial attitude data, and determine the spatial attitude change amount of the spatial attitude data of the adjacent cycles, and determine whether the electronic device is hit according to the spatial attitude change amount and the change amount threshold. For example, if the spatial attitude change amount is greater than or equal to the change amount threshold, it is determined that the electronic device is hit, and if the spatial attitude change amount is less than the change amount threshold, it is determined that the electronic device is not hit. When the electronic device is hit, the processor can send a control instruction to the SAR sensor, thereby triggering the SAR sensor to collect the current electrical parameter value. And, stop the detection after collecting the current electrical parameter value for a set number of times (such as 1 to 50). In this way, in this example, it can be ensured that the SAR sensor detects the electrical parameter value only in the scene where there is a detection demand, thereby reducing power consumption.
[0095] In step 12, a parameter difference between the current electrical parameter value and a reference electrical parameter value is obtained.
[0096] In one example, the processor may obtain a parameter difference between the current electrical parameter value and the reference electrical parameter value, see Figure 4 , including steps 41 to 43.
[0097] In step 41 , the processor may obtain the reference electrical parameter value.
[0098] In this step, the processor may obtain a reference electrical parameter, where the reference electrical parameter value includes a preset value, a historical electrical parameter value of a previous detection cycle, or an average value of historical electrical parameter values of a preset number of detection cycles.
[0099] In one example, when the reference electrical parameter value is a preset value, the reference electrical parameter value has been described in the solution of step 11 and will not be described again. At this time, the processor can read the preset value from the specified location.
[0100] In another example, when the reference electrical parameter value is a historical electrical parameter value of a previous detection cycle, the processor may read the historical electrical parameter value of the previous detection cycle from a specified location, such as an electrical parameter value table, to obtain the reference electrical parameter value.
[0101] In another example, when the reference electrical parameter value is the average value of historical electrical parameter values of a preset number of detection cycles before, the processor can read a preset number of historical electrical parameter values from a specified location and calculate the average value of the preset number of historical electrical parameter values to obtain the reference electrical parameter value.
[0102] In step 42 , the processor may calculate a difference between the current electrical parameter value and the reference electrical parameter value.
[0103] In step 43, the processor may obtain an absolute value of the difference and use the absolute value as the parameter difference.
[0104] In this example, the change in the electrical parameter value can be obtained by obtaining the parameter difference, which is helpful to improve the accuracy of subsequent results.
[0105] In another example, the processor may obtain a parameter difference between the current electrical parameter value and the reference electrical parameter value, see Figure 5 , including steps 51 to 53.
[0106] In step 51 , the processor may convert the current voltage value into a current capacitance value.
[0107] In this step, the calculation formula of the capacitance value is shown in formula (1).
[0108]
[0109] In formula (1), C represents the capacitance between the metal sheet and the ground wire; k represents the electrostatic force constant; S represents the relative area between the metal sheet and the ground wire; ε represents the dielectric constant; and h represents the distance between the metal sheet and the ground wire.
[0110] When the connector shakes or disconnects, the medium between the metal sheet and the ground wire changes, causing the dielectric constant to change. S and / or h in formula (1) changes, causing the dielectric constant ε to change, that is, the capacitance between the metal sheet and the ground wire also changes, as shown in formula (2).
[0111]
[0112] In formula (2), Q represents the charge between the metal sheet and the ground wire; U represents the voltage between the metal sheet and the ground wire.
[0113] It is understandable that when the capacitor is charged with the same amount of charge, when the voltage between the metal sheet and the ground wire changes, the capacitance change can be determined by the voltage change of the metal sheet; then, the connection state of the connector is determined based on the capacitance change.
[0114] Based on the above analysis, the SAR sensor can obtain the current voltage value and send it to the processor. The processor can convert the current voltage value into the current capacitance value. The calculation principle is shown in formula (2) and will not be repeated here.
[0115] In step 52, the processor may obtain a capacitance difference between the current capacitance value and the reference capacitance value.
[0116] In this step, the reference capacitance value is stored in the electronic device. The method for obtaining the reference capacitance value can refer to the method for obtaining the reference electrical parameter value in step 11, which will not be described in detail here.
[0117] In this step, the processor may obtain a reference capacitance value. Then, the processor may obtain a capacitance difference between the current capacitance value and the reference capacitance value.
[0118] In step 53, the processor may obtain the absolute value of the capacitance difference as the parameter difference.
[0119] In this example, the change in the electrical parameter value can be obtained by obtaining the parameter difference, which is helpful to improve the accuracy of subsequent results.
[0120] In step 13, the connection state of the connector is determined according to the parameter difference and a preset difference threshold.
[0121] In this step, the processor may determine the connection state of the connector according to the parameter difference and a preset difference threshold, including:
[0122] When it is determined that the parameter difference is less than or equal to the preset difference threshold, the processor may determine that the connection state of the connector is a normal state;
[0123] When it is determined that the parameter difference is greater than the preset difference threshold, the processor may determine that the connection state of the connector is an abnormal state.
[0124] In one embodiment, the electronic device further comprises a display. The display is electrically connected to a processor of the electronic device. Thus, when the processor determines the connection state of the connector, it can control the display to display the connection state, that is, whether the connector is in a normal state or an abnormal state, the display displays the connection state.
[0125] Considering the real-time display scenario, the above connection status can form an indicator icon, and the indicator icon can indicate the two connection states through text, symbols or colors.
[0126] Taking the indicator icon as an example, when the connection status of the connector is normal, the indicator icon displays "normal" or "normal connection", and when the connection status of the connector is abnormal, the indicator icon displays "abnormal" or "abnormal connection".
[0127] Taking the symbol used for the indicator icon as an example, when the connection status of the connector is normal, the symbol of the indicator icon is "√" or "on", and when the connection status of the connector is abnormal, the symbol of the indicator icon is "X" or "off".
[0128] Taking the indicator icon using color as an example, when the connection status of the connector is normal, the color of the indicator icon is yellow or red, and when the connection status of the connector is abnormal, the color of the indicator icon is green or blue.
[0129] It is understandable that the indicator icon of the connection status of the connector can be selected according to the specific scenario. For example, the above-mentioned symbols and colors can be combined to obtain a new display scheme. If it can remind the user to pay attention to the connection status of the connector, the corresponding scheme falls within the scope of protection of the present disclosure.
[0130] Considering that the user does not care about the situation that the connector is in a normal state, in order to reduce the impact on the user, when the connection state of the connector is determined to be a normal state, it is no longer displayed. In one example, when the connection state of the connector is determined to be an abnormal state, the processor controls the display to display a prompt message that the connector is in an abnormal state.
[0131] Taking into account that a slight abnormal state of the connector may not affect the normal operation of the electronic device, the processor can temporarily store the abnormal state in a designated location. When the optimization detection of the electronic device is detected, the above abnormal state will be reported to achieve the effect of reminding the user in the scenario that the user is concerned about. For example, when the electronic device is a mobile phone, the mobile phone manager in the mobile phone can optimize the detection of the mobile phone, including but not limited to garbage cleaning, virus scanning, optimization acceleration, application management, etc., plus the connection status of the connector). In this example, the connection status of the connector is added to the mobile phone manager, and the connection status of the connector is displayed at the same time when the mobile phone manager detects.
[0132] The above embodiment describes a solution in which a metal sheet and a ground line form a capacitor. In one embodiment, another metal sheet and a capacitor may be provided between the ground line and the metal sheet. Figure 6 As shown. A metal sheet of the connector is located on the side of the metal sheet A, and the metal sheet B is directly opposite to the metal sheet A, thereby forming a capacitor C1; the capacitor C1 is connected in series with the capacitor Cb to obtain the capacitor Csn, which can be used as the electrical parameter value corresponding to the connector. In this way, in this example, the electrical parameter value corresponding to the connector can be made larger to facilitate detection, which is conducive to improving the accuracy of the detection result.
[0133] Based on a connection status determination method provided in an embodiment of the present disclosure, an embodiment of the present disclosure further provides a connection status determination device, which is applied to an electronic device, wherein the electronic device includes at least one connector, the connector includes at least one metal sheet, and a capacitor is formed between the metal sheet and the ground line of the electronic device; see Figure 7 , the device comprises:
[0134] A current parameter acquisition module 71 is used to acquire the current electrical parameter value of the capacitor corresponding to the metal sheet of the connector;
[0135] A parameter difference acquisition module 72, used to acquire a parameter difference between the current electrical parameter value and a reference electrical parameter value;
[0136] The connection status determination module 73 is used to determine the connection status of the connector according to the parameter difference and a preset difference threshold.
[0137] In one embodiment, the current electrical parameter value includes a capacitance value of the capacitor or a voltage value of the capacitor.
[0138] In one embodiment, the parameter difference acquisition module includes:
[0139] A reference parameter acquisition submodule, used to acquire the reference electrical parameter value, wherein the reference electrical parameter value includes a preset value, a historical electrical parameter value of a previous detection cycle, or an average value of historical electrical parameter values of a preset number of detection cycles;
[0140] A difference calculation submodule, used to calculate the difference between the current electrical parameter value and the reference electrical parameter value;
[0141] The parameter difference acquisition submodule is used to acquire the absolute value of the difference and use the absolute value as the parameter difference.
[0142] In one embodiment, when the current electrical parameter value is a current capacitance value, the reference electrical parameter value is a reference voltage value;
[0143] The parameter difference acquisition module comprises:
[0144] A current voltage acquisition submodule, used for converting the current voltage value into a current capacitance value;
[0145] A voltage difference acquisition submodule, used to acquire a capacitance difference between the current capacitance value and the reference capacitance value;
[0146] The parameter difference acquisition submodule is used to acquire the absolute value of the capacitance difference as the parameter difference.
[0147] In one embodiment, the connection status determination module includes:
[0148] A normal state determination submodule, configured to determine that the connection state of the connector is a normal state when it is determined that the parameter difference is less than or equal to the preset difference threshold;
[0149] The abnormal state determination submodule is used to determine that the connection state of the connector is an abnormal state when it is determined that the parameter difference is greater than the preset difference threshold.
[0150] In one embodiment, the device further comprises:
[0151] The abnormal state display module is used to control the display of the electronic device to display prompt information that the connector is in an abnormal state when the connection state of the connector is in an abnormal state.
[0152] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.
[0153] Figure 8 8 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0154] Reference Figure 8The electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , a communication component 816 , and an image acquisition component 818 .
[0155] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute computer programs. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
[0156] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include computer programs for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0157] The power supply component 806 provides power to various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800. The power supply component 806 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off the first switch device, so that the battery supplies power to the mainboard circuit or does not supply power.
[0158] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0159] The audio component 810 is configured to output and / or input audio file information. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio file information. The received audio file information can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio file information.
[0160] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.
[0161] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component, the presence or absence of contact between the target object and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. In this example, the sensor assembly 814 may include a SAR sensor for detecting the current electrical parameter value of the connector so that the processor determines the connection state of the connector.
[0162] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies. For another example, the electronic device also includes multiple groups of antennas arranged in different positions.
[0163] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0164] In an exemplary embodiment, the present disclosure also provides a non-transitory computer-readable storage medium, and when an executable computer program in the storage medium is executed by a processor, the above-mentioned method can be implemented.
[0165] In an exemplary embodiment, a chip is also provided, the chip including a processor and an interface for reading a computer program through the interface to implement the above method. The chip may be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, etc., or an acceleration chip dedicated to artificial intelligence technology, such as an AI (Artificial Intelligence) accelerator, etc.
[0166] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0167] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for determining a connection state, characterized in that: Applied to electronic equipment, the electronic equipment includes at least one connector, the connector includes at least one metal sheet, and a capacitor is formed between the metal sheet and a ground line of the electronic equipment; the method includes: Obtain the current electrical parameter value of the capacitor corresponding to the metal sheet of the connector; Obtaining a parameter difference between the current electrical parameter value and a reference electrical parameter value; The connection state of the connector is determined according to the parameter difference and a preset difference threshold.
2. The method according to claim 1, characterized in that The current electrical parameter value includes a capacitance value of the capacitor or a voltage value of the capacitor.
3. The method according to claim 2, characterized in that Obtaining a parameter difference between the current electrical parameter value and a reference electrical parameter value, including: Acquire the reference electrical parameter value, where the reference electrical parameter value includes a preset value, a historical electrical parameter value of a previous detection cycle, or an average value of historical electrical parameter values of a preset number of detection cycles; Calculating a difference between the current electrical parameter value and the reference electrical parameter value; The absolute value of the difference is obtained, and the absolute value is used as the parameter difference.
4. The method according to claim 2, characterized in that: When the current electrical parameter value is a current voltage value, the reference electrical parameter value is a reference capacitance value; Obtaining a parameter difference between the current electrical parameter value and a reference electrical parameter value, including: Converting the current voltage value into a current capacitance value; Obtaining a capacitance difference between the current capacitance value and the reference capacitance value; The absolute value of the capacitance difference is obtained as the parameter difference.
5. The method according to claim 1, characterized in that Determining the connection state of the connector according to the parameter difference and a preset difference threshold includes: When it is determined that the parameter difference is less than or equal to the preset difference threshold, determining that the connection state of the connector is a normal state; When it is determined that the parameter difference is greater than the preset difference threshold, the connection state of the connector is determined to be an abnormal state.
6. The method according to claim 5, characterized in that The method further comprises: When the connection state of the connector is an abnormal state, the display of the electronic device is controlled to display prompt information that the connector is in an abnormal state.
7. A connection status determination device, characterized in that: Applied to electronic equipment, the electronic equipment includes at least one connector, the connector includes at least one metal sheet, and a capacitor is formed between the metal sheet and the ground line of the electronic equipment; the device includes: A current parameter acquisition module is used to obtain the current electrical parameter value of the capacitor corresponding to the metal sheet of the connector; A parameter difference acquisition module, used to acquire a parameter difference between the current electrical parameter value and a reference electrical parameter value; A connection status determination module is used to determine the connection status of the connector according to the parameter difference and a preset difference threshold.
8. An electronic device, characterized in that: The electronic device comprises a processor, a SAR sensor and at least one connector; the connector comprises at least one metal sheet; a capacitor is formed between the metal sheet and a ground line of the electronic device; the SAR sensor is electrically connected to the processor and the metal sheet respectively; The SAR sensor is used to detect a current electrical parameter value of the capacitor and send the current electrical parameter value to the processor; The processor is used to obtain a parameter difference between the current electrical parameter value and a reference electrical parameter value; The connection state of the connector is determined according to the parameter difference and a preset difference threshold.
9. The electronic device according to claim 8, characterized in that: The processor obtains a parameter difference between the current electrical parameter value and a reference electrical parameter value, including: Acquire the reference electrical parameter value, where the reference electrical parameter value includes a preset value, a historical electrical parameter value of a previous detection cycle, or an average value of historical electrical parameter values of a preset number of detection cycles; Calculating a difference between the current electrical parameter value and the reference electrical parameter value; The absolute value of the difference is obtained, and the absolute value is used as the parameter difference.
10. The electronic device according to claim 8, characterized in that: When the current electrical parameter value is a current voltage value, the reference electrical parameter value is a reference capacitance value; The processor obtains a parameter difference between the current electrical parameter value and a reference electrical parameter value, including: Converting the current voltage value into a current capacitance value; Obtaining a capacitance difference between the current capacitance value and the reference capacitance value; The absolute value of the capacitance difference is obtained as the parameter difference.
11. The electronic device according to claim 8, characterized in that: The processor determines the connection state of the connector according to the parameter difference and a preset difference threshold, including: When it is determined that the parameter difference is less than or equal to the preset difference threshold, determining that the connection state of the connector is a normal state; When it is determined that the parameter difference is greater than the preset difference threshold, the connection state of the connector is determined to be an abnormal state.
12. The electronic device according to claim 11, characterized in that: The electronic device includes a display, which is electrically connected to the processor; the processor is also used to control the display to display prompt information that the connector is in an abnormal state when the connection state of the connector is an abnormal state.
13. A non-transitory computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 6 can be implemented.
Citation Information
Cited By
Radio frequency rod state detection method and device and thin film deposition method
CN119667561A
Method for detecting the state of a radio frequency rod, device and method for depositing a thin film
CN119667561B
