A device connection method and electronic device

By detecting the status parameters of electronic devices and controlling their connection status with connected objects, the problem of device damage caused by external factors is solved, and device protection is achieved.

CN114791871BActive Publication Date: 2025-10-28LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210312564.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2025-10-28
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

During the connection process of electronic devices, external factors may cause damage to the devices, and existing technologies lack effective protection mechanisms.

Method used

By detecting the status parameters of electronic devices, such as friction, displacement, tension, electrical energy status, and environmental status, the connection status between the device and the connected object can be controlled to implement protection strategies, such as disconnecting or strengthening the connection.

Benefits of technology

It effectively reduces the risk of damage to electronic devices caused by external factors, and prevents devices from falling, overloading, or causing environmental damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114791871B_ABST
    Figure CN114791871B_ABST
Patent Text Reader

Abstract

This application provides a device connection method, comprising: detecting a first state parameter of a first electronic device; and controlling the connection state between the first electronic device and a second electronic device based on the first state parameter; wherein the first state parameter includes at least a first parameter between the first electronic device and a first object carrying the first electronic device; and the second electronic device is a device that provides power and / or data transmission to the first electronic device. This application also provides an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to device connection technology, and more particularly to a device connection method and an electronic device. Background Art

[0002] When using electronic devices (such as mobile phones, computers, and servers), if the electronic device is connected to a second device (such as a cable), various external factors may damage the electronic device or the second device. Therefore, a method is needed to protect the electronic device or the second device. Summary of the Invention

[0003] In view of this, embodiments of this application aim to provide a device connection method and an electronic device.

[0004] To achieve the above objectives, the technical solution of this application is implemented as follows:

[0005] According to one aspect of this application, a device connection method is provided, comprising:

[0006] Detect the first state parameter of the first electronic device;

[0007] The connection status between the first electronic device and the second electronic device is controlled according to the first status parameter;

[0008] Wherein, the first state parameter includes at least a first parameter between the first electronic device and the first object carrying the first electronic device; the second electronic device is an electronic device that provides power and / or data transmission to the first electronic device.

[0009] The above plan also includes:

[0010] Based on the first status parameter and the connection status, a prompt message is issued.

[0011] In the above scheme, the connection state includes one or more of the following:

[0012] Connecting tensile force value and power transmission status;

[0013] The step of controlling the connection state between the first electronic device and the second electronic device according to the first state parameter includes at least:

[0014] Based on the first state parameter, the first electronic device and the second electronic device are controlled to be in a first connection tension value state and / or a first power transmission state.

[0015] In the above scheme, the first state parameter includes at least one of the following: electrical state parameter, environmental state parameter, and load state parameter;

[0016] The step of controlling the connection status between the first electronic device and the second electronic device according to the first status parameter includes:

[0017] The connection status between the first electronic device and the second electronic device is controlled according to at least one of the power state parameters, the environmental state parameters, and the load state parameters.

[0018] In the above scheme, if the bearing state parameter indicates that the first electronic device and the first object carrying the first electronic device are in a first bearing state, then controlling the connection state between the first electronic device and the second electronic device according to the bearing state parameter includes at least one of the following methods:

[0019] The friction force parameter in the first parameter is compared with the friction force threshold. If the first comparison result indicates that the friction force parameter is greater than the friction force threshold, the first electronic device and the second electronic device are controlled to be in a connected state.

[0020] The displacement parameter in the first parameter is compared with the first displacement threshold for the second comparison; if the second comparison result indicates that the displacement parameter is greater than or equal to the first displacement threshold, the displacement direction parameter in the first parameter is compared with the preset direction parameter for the third comparison; if the third comparison result indicates that the displacement direction parameter and the preset direction parameter meet the same condition, the first electronic device and the second electronic device are controlled to be in a connected state.

[0021] A fourth comparison is made between the displacement parameter in the first parameter and the second displacement threshold. If the fourth comparison result indicates that the displacement parameter is greater than or equal to the second displacement threshold, a fifth comparison is made between the tension parameter in the first parameter and the tension threshold. If the fifth comparison result indicates that the tension parameter is greater than or equal to the tension threshold, the first electronic device and the second electronic device are controlled to be in a disconnected state.

[0022] In the above scheme, controlling the first electronic device and the second electronic device to be in a disconnected state includes at least one of the following methods:

[0023] When the first electronic device is connected to the second electronic device via magnetic attraction, the first electronic device is controlled to stop supplying power to the male end magnetic head assembly on the first electronic device, so that the male end magnetic head assembly is separated from the corresponding female end magnetic head assembly on the second electronic device.

[0024] When the first electronic device is connected to the second electronic device via a plug-in method, the male interface component on the first electronic device is controlled to detach the corresponding female interface component on the second electronic device from the male interface component, so that the male interface component and the female interface component are in a separated state.

[0025] In the above scheme, controlling the male interface component on the first electronic device to detach the corresponding female interface component on the second electronic device from the male interface component includes at least one of the following methods:

[0026] Control the elastic component within the male interface component to pop out of the male interface component, so as to push the female interface component out of the male interface component;

[0027] Control the inner wall of the male interface component to move away from the axis of the male interface component in a peripheral direction, so that the male interface component releases the female interface component.

[0028] In the above scheme, controlling the first electronic device and the second electronic device to be in a connected state includes at least one of the following methods:

[0029] When the first electronic device is connected to the second electronic device by magnetic attraction, the first fastening component on the first electronic device is popped out to fix the male end magnetic head assembly on the first electronic device and the corresponding female end magnetic head assembly on the second electronic device.

[0030] When the first electronic device is connected to the second electronic device via a plug-in connection, the second fastening component on the first electronic device is popped out to fix the male interface component on the first electronic device and the corresponding female interface component on the second electronic device.

[0031] The method in the above scheme further includes:

[0032] Obtain the weight parameters of the electronic device;

[0033] The tensile threshold is determined based on the weight parameters of the electronic device.

[0034] According to another aspect of this application, an electronic device is provided, comprising:

[0035] The detection unit is used to detect the first state parameter of the first electronic device;

[0036] A control unit is used to control the connection status between the first electronic device and the second electronic device according to the first status parameter.

[0037] Wherein, the first state parameter includes at least a first parameter between the first electronic device and the first object carrying the first electronic device; the second electronic device is an electronic device that provides power and / or data transmission to the first electronic device.

[0038] The device connection method and electronic device provided in this application detect the first state parameter of the first electronic device and determine whether the current working state of the first electronic device is abnormal based on the first state parameter. In this way, when the electronic device is abnormal, a protection strategy can be adopted in a timely manner to effectively protect the electronic device and reduce the risk of damage to the device due to external factors.

[0039] The protection strategy here can be to control the electronic device to be connected to the second device based on the first state parameter, or it can be to control the electronic device to be disconnected from the second device. Attached Figure Description

[0040] Figure 1 This is a schematic diagram illustrating the process of implementing the device connection method in this application. Figure 1 ;

[0041] Figure 2 This is a schematic diagram illustrating the process of implementing the device connection method in this application. Figure 2 ;

[0042] Figure 3 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 1 ;

[0043] Figure 4 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 2 . Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. The steps shown in the flowcharts can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0045] As mentioned above, when using electronic devices (such as mobile phones, computers, and servers), if a second device (such as a cable) is connected to the electronic device, various external factors may damage the electronic device or the second device. However, the technical solution provided in this application detects the status parameters of the electronic device and determines whether its current operating state is abnormal based on these parameters. This allows for timely implementation of protection strategies to effectively protect the electronic device or the second device when an abnormality occurs, thereby reducing the risk of damage caused by external factors.

[0046] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0047] Figure 1 This is a schematic diagram illustrating the process of implementing the device connection method in this application. Figure 1 ,like Figure 1 As shown, it includes:

[0048] Step 101: Detect the first state parameter of the first electronic device;

[0049] Step 102: Control the connection status between the first electronic device and the second electronic device according to the first status parameter.

[0050] The second electronic device is an electronic device that provides power and / or data transmission to the first electronic device.

[0051] In this application, the method can be applied to an electronic device with a cable interface (referred to as the first electronic device), such as a personal computer, mobile phone, watch, glasses, speaker, robot, etc. The first electronic device can be connected to a second electronic device such as an earphone cable, power cord, or data cable via the cable interface.

[0052] In one implementation of this application, the first state parameter may include at least a first parameter between the first electronic device and the first object carrying the first electronic device.

[0053] Here, the first parameter includes, but is not limited to, at least one of the following: frictional force parameter, displacement parameter, direction parameter, and tensile force parameter between the first electronic device and the first object carrying the first electronic device.

[0054] In this application, the first state parameter of the first electronic device can be a load-bearing state parameter, which can characterize whether the load-bearing state between the first electronic device and the first object carrying the first electronic device is a contact state or a floating state. The first electronic device can control the connection state between the first electronic device and the second electronic device according to the load-bearing state parameter.

[0055] In this application, if the bearing state parameter indicates that the first electronic device and the first object bearing the first electronic device are in a first bearing state (i.e., contact state), the first electronic device can make a first comparison between the friction force parameter in the first parameter and the friction force threshold; if the first comparison result indicates that the friction force parameter is greater than the friction force threshold, then the first electronic device and the second electronic device are controlled to be in a connected state.

[0056] For example, the first electronic device is a laptop placed on a table, connected to a power cord via a power interface. If someone accidentally bumps the laptop, creating a significant frictional force A between the laptop and the table, and comparing this force A to a frictional threshold B, it's determined that force A is greater than B, meaning force A is sufficient to cause the laptop to fall to the ground. In this scenario, the laptop will maintain its connection to the power cord.

[0057] Here, the connection state is not a transition from a disconnected state to a connected state, but rather a transition from the original connected state to a reinforced connection state. This reinforced connection state can be achieved through the tightening force between the laptop and the power cord. For example, the tightening force between the laptop and the power cord in the normal connection state is value A, while the tightening force in the reinforced connection state is value B, where B is greater than A. In this way, when the laptop is subjected to a heavy impact, the tension of the power cord can prevent the laptop from falling to the ground and being damaged.

[0058] In this application, if the bearing state parameter indicates that the first electronic device and the first object bearing the first electronic device are in a first bearing state (i.e., contact state), the first electronic device can also perform a second comparison between the displacement parameter in the first parameter and a first displacement threshold; if the second comparison result indicates that the displacement parameter is greater than or equal to the first displacement threshold, then the direction parameter in the first parameter is compared with a preset direction parameter; if the third comparison result indicates that the direction parameter and the preset direction parameter meet the same conditions, then the first electronic device and the second electronic device are controlled to be in a connected state.

[0059] Here, the first displacement threshold represents displacement not caused by cable tension. For example, a user hitting a computer causes displacement between the computer and the desktop. This "same condition" can refer to relative similarity, not absolute similarity. That is, there can be a first error between the direction parameters and the preset direction parameters, and this first error is less than the error threshold.

[0060] For example, the first electronic device is a laptop placed on a table, and the laptop is connected to a power cord via a power interface. If someone accidentally bumps the laptop, a small frictional force C is generated between the laptop and the table. By comparing this frictional force C with a frictional force threshold B, it is determined that the frictional force C is less than the frictional force threshold B, indicating that the frictional force C is insufficient to cause the laptop to fall to the ground. In this scenario, the laptop records its displacement parameter as 1. Then, if the laptop is bumped again, a frictional force parameter D will be generated between the laptop and the table. By comparing this frictional force parameter D with a frictional force threshold B, it is determined that D is less than B. At this point, the laptop records its displacement parameter as 2 and compares it with a first displacement threshold (e.g., 3). This comparison also determines that displacement parameter 2 is less than the first threshold. The laptop continues to monitor its displacement until it detects a displacement parameter greater than the first threshold (e.g., 3). Then, the laptop compares the direction parameter corresponding to this displacement with a preset direction parameter. If the error between the direction parameter and the preset direction parameter is less than the error threshold, it indicates that the laptop is displaced horizontally. To prevent the laptop from being bumped again and falling to the ground, the laptop maintains a reinforced connection with the power cord. Thus, when the laptop is bumped again, the tension of the power cord prevents it from falling and being damaged.

[0061] In this application, the connection state between the first electronic device and the second electronic device also includes the connection tension value state of the second electronic device to the first electronic device. If the bearing state parameter indicates that the first electronic device and the first object bearing the first electronic device are in a first bearing state (i.e., a contact state), the first electronic device can also perform a fourth comparison between the displacement parameter in the first parameter and a second displacement threshold; if the fourth comparison result indicates that the displacement parameter is greater than or equal to the second displacement threshold, then a fifth comparison is performed between the tension parameter in the first parameter and a tension threshold; if the fifth comparison result indicates that the tension parameter is greater than or equal to the tension threshold, the first electronic device is controlled to be in a disconnected state from the second electronic device.

[0062] Here, the first displacement threshold represents the displacement caused by cable tension. For example, if a user trips over the cable connecting to the computer, it causes the computer to shift relative to the desktop.

[0063] For example, the first electronic device is a laptop placed on a table, and the laptop is connected to a power cord via a power interface. If someone accidentally trips over the power cord, a frictional force E is generated between the laptop and the table. By comparing this frictional force E with a frictional force threshold B, it is determined that the frictional force E is less than the frictional force threshold B, indicating that the frictional force E is insufficient to cause the laptop to fall to the ground. In this scenario, the laptop records its displacement parameter as 1. Then, if the power cord is tripped over, a frictional force F is generated between the laptop and the desktop. This frictional force F is compared to a frictional force threshold B. If F is less than B, the laptop records its displacement parameter as 2 and compares it to a second displacement threshold (e.g., 2). If the comparison determines that displacement parameter 2 equals displacement threshold 2, the laptop obtains the corresponding tension parameter and compares it to a tension threshold. If the comparison shows that the tension parameter is greater than the threshold, it indicates that the power cord exerts a significant pulling force on the laptop. To prevent the laptop from being pulled to the ground by the power cord, the laptop will disconnect itself from the power cord. Thus, even when the power cord is subjected to external force, the disconnection prevents the laptop from being damaged by the pulling force of the power cord.

[0064] In this application, the first electronic device can also acquire the weight parameters of the first electronic device; and determine the tensile threshold based on the weight parameters of the first electronic device.

[0065] Here, the first electronic device can first calculate the frictional force between the first electronic device and the first object carrying the first electronic device, and obtain the tensile force threshold based on the frictional force.

[0066] For example, the frictional force between two objects (a laptop and a desktop) is calculated as follows:

[0067] Friction: Fr=μ×N, where μ is the coefficient of kinetic friction between the two objects, and N is the pressure perpendicular to the contact surface of the two objects.

[0068] N = mg = 1 kg (e.g., the weight of the lightest laptop, assumed to be 1 kg) * 9.8 m / s (gravitational acceleration, a fixed value on Earth) = 9.8 N;

[0069] Tensile force: Fr=μ×N=0.1×9.8N=0.98N≈1N, where μ is the coefficient of kinetic friction. The coefficient of kinetic friction between the desktop and the D side of the laptop needs to be taken into account, and then the minimum value is taken.

[0070] The minimum value can be determined from the preset table 1 shown below as 0.1.

[0071] Material A Material B Coefficient of kinetic friction μ wood Metal 0.2-0.6 aluminum Low carbon steel 0.47 Glass Metal 0.5-0.7 graphite steel 0.1 High hard carbon steel 0.14

[0072] Table 1

[0073] In this application, the first electronic device can also issue a prompt message based on the first status parameter and the connection status between the first electronic device and the second electronic device.

[0074] Here, the prompt message includes, but is not limited to, at least one of the following methods: voice prompt, indicator light prompt, display screen prompt, etc. The prompt message is generated when the connection status between the first electronic device and the second electronic device changes. This allows the user to be promptly informed of the current connection status between the first and second electronic devices.

[0075] This application detects the friction parameters, displacement frequency, displacement direction, and tensile force threshold between the first electronic device and the first object (such as a desktop) that carries the first electronic device. When the friction parameters, displacement frequency, displacement direction, and tensile force threshold meet the conditions, the connection between the power cord and the first electronic device can be strengthened, which can prevent the first electronic device from falling off the desktop and being suspended in the air, thus preventing damage to the first electronic device.

[0076] In the second implementation of this application, the first state parameter may include at least the power state parameter of the first electronic device, and the first electronic device may control the power transmission state between the first electronic device and the second electronic device according to the power state parameter.

[0077] For example, if the second electronic device provides power to the first electronic device, and the power state parameter indicates that the first electronic device is in a first power state, then the control will keep the first electronic device and the second electronic device in a disconnected state. Here, the first power state can represent the state in which the power parameters of the first electronic device meet the desired conditions.

[0078] Here, when the current power value of the first electronic device is greater than or equal to the power threshold, it can be characterized that the power parameters of the first electronic device meet the desired conditions.

[0079] For example, a mobile phone is connected to a charger via a charging cable to be charged. The phone can detect its current battery level in real time and compare it to a battery threshold. If the comparison determines that the current battery level (e.g., 100%) equals the threshold (e.g., 100%), then the first and second electronic devices are disconnected. Alternatively, if the comparison determines that the difference between the current battery level (e.g., 98%) and the first threshold (e.g., 100%) is less than the second threshold (e.g., 1%), then the first and second electronic devices are disconnected. This avoids the risk of the phone battery or charger overheating and potentially damaging the phone or charger when the phone is fully charged and continues to charge via a charger.

[0080] In this application, the first electrical state can also characterize the state in which the voltage or current parameters of the first electronic device meet the desired conditions.

[0081] Here, if the current voltage or current value of the first electronic device is within a preset voltage or current range within a preset time period, it can be determined that the current voltage or current parameter of the first electronic device meets the desired condition.

[0082] For example, a mobile phone is connected to a charger via a cable to charge itself. The phone can detect its current voltage and / or current values ​​in real time and compare them (e.g., 5V, 1A) with a first voltage threshold and / or a first current threshold (e.g., 4.8V, 0.8A) and a second voltage threshold and / or a second current threshold (e.g., 5.2V, 1.2A). If the comparison indicates that the current voltage and / or current value is greater than the first voltage threshold and / or the first current threshold but less than the second voltage threshold and / or the second current threshold, then the phone's current voltage and / or current value is determined to be within the voltage threshold range and / or current threshold range. Next, the duration for which the phone's current voltage and / or current value is within the voltage threshold range and / or current threshold range is detected and compared with a preset duration (e.g., 3s). If the comparison determines that the phone's current voltage and / or current is unstable, then the first electronic device and the second electronic device are disconnected. This avoids damage to the phone battery or charger caused by continuing to charge the phone through the charger when the charging voltage and / or charging current of the charger is unstable.

[0083] In this application, the first state of power can also characterize the state in which the electrical parameters of the first electronic device do not meet the desired conditions.

[0084] Here, when the duration for which the current battery value of the first electronic device is less than the battery threshold is greater than or equal to a preset duration, it can be indicated that the battery parameter of the first electronic device does not meet the expected conditions.

[0085] For example, a mobile phone is connected to a charger via a charging cable to be charged. The phone can detect its current battery level in real time and compare it with a battery threshold. If the comparison determines that the current battery level (e.g., 1%) is less than the threshold (e.g., 50%), the phone can detect the duration for which the current battery level is less than the threshold and compare it with a preset duration (e.g., 15 minutes). If the comparison determines that the duration for which the current battery level is less than the threshold is greater than the preset duration, it indicates that the phone's battery cannot be charged, or the battery may be damaged. In this case, the first electronic device and the second electronic device are disconnected. This avoids the risk of the charger overheating and being damaged if the phone battery is damaged and cannot be charged for a long time.

[0086] In this application, the first electronic device can also issue a prompt message based on the first status parameter and the connection status between the first electronic device and the second electronic device.

[0087] Here, the prompt message includes, but is not limited to, at least one of the following methods: voice prompt, indicator light prompt, display screen prompt, etc. The prompt message is generated when the connection status between the first electronic device and the second electronic device changes. This allows the user to be promptly informed of the current connection status between the first and second electronic devices.

[0088] This application detects the charging status, battery status, charging voltage, and / or charging current of the first electronic device. When the charging status, battery status, charging voltage, and / or charging current meet the conditions, the connection between the power cord and the first electronic device can be disconnected to avoid damage to the first electronic device or the power cord.

[0089] In the third implementation of this application, the first state parameter may include at least the environmental state parameter of the first electronic device, and the first electronic device may control the connection state between the first electronic device and the second electronic device according to the environmental state parameter.

[0090] For example, if the second electronic device is a device that provides data transmission for the first electronic device, and the environmental state parameter indicates that the first electronic device is in a first environmental state, then the first electronic device and the second electronic device are controlled to be in a disconnected state.

[0091] Here, the first environmental state can characterize the current harsh environmental state of the first electronic device. For example, harsh environmental states include, but are not limited to, at least one of the following: high temperature environment, high wind environment, high humidity environment, and earthquake environment.

[0092] Here, the first electronic device can detect the current temperature value and compare the current temperature value with a temperature threshold. When the comparison result indicates that the current temperature value is greater than or equal to the temperature threshold, it is determined that the first electronic device is in a high-temperature environment, and then the first electronic device is controlled to be disconnected from the second electronic device.

[0093] Here, the first electronic device can detect the current humidity value and compare the current humidity value with a humidity threshold. When the comparison result indicates that the current humidity value is greater than or equal to the humidity threshold, it is determined that the first electronic device is in a humidity environment, and then the first electronic device is controlled to be disconnected from the second electronic device.

[0094] Here, the first electronic device can detect the current wind force value and compare the current wind force value with the wind force threshold. When the comparison result indicates that the current wind force value is greater than or equal to the wind force threshold, it is determined that the first electronic device is in a strong wind environment, and then the first electronic device is controlled to be disconnected from the second electronic device.

[0095] Here, the first electronic device can detect the current vibration amplitude or vibration frequency and compare the current vibration amplitude or vibration frequency with the vibration threshold. When the comparison result indicates that the current vibration amplitude or vibration frequency is greater than or equal to the vibration threshold, it is determined that the first electronic device is in an earthquake environment, and then the first electronic device is controlled to be disconnected from the second electronic device.

[0096] Here, the temperature, humidity, wind speed, vibration amplitude, or vibration frequency that characterize environmental parameters can be detected by the corresponding sensors set in the first electronic device, or they can be obtained through a third-party platform (such as weather software).

[0097] This application, by conducting environmental testing on the environment in which the first electronic device is located, can disconnect the power cord from the first electronic device when the first electronic device is in a harsh environment, so as to avoid damage to the first electronic device or the cable.

[0098] In this application, the first electronic device can also strengthen the connection between the first electronic device and the cable when the first electronic device is in a harsh environment, so as to prevent data loss or malfunction caused by the cable breaking off from the first electronic device.

[0099] For example, if the first electronic device detects the current wind speed and determines that the current wind speed is greater than or equal to a wind speed threshold, it indicates that the first electronic device is in a windy environment and controls the first electronic device to maintain a reinforced connection with the second electronic device. This prevents strong winds from breaking the connection between the cable and the first electronic device, which could lead to data loss or malfunction of the first electronic device.

[0100] In this application, the first electronic device can be connected to the second electronic device via magnetic attraction. When the first electronic device is connected to the second electronic device via magnetic attraction, and the first electronic device is in a disconnected state, it can stop supplying power to the male magnetic head assembly on its own device, thereby separating the male magnetic head assembly from the corresponding female magnetic head assembly on the second electronic device. Thus, the first electronic device and the second electronic device can be disconnected due to the disappearance of the magnetic force.

[0101] In this application, the first electronic device can also be connected to the second electronic device via a plug-in connection. When the first electronic device is connected to the second electronic device via a plug-in connection, and the first electronic device is in a disconnected state, it can control the male interface component on the first electronic device to detach the corresponding female interface component on the second electronic device from the male interface component, thereby separating the male interface component from the female interface component. In this way, the first electronic device and the second electronic device can be disconnected due to the separation of the female interface component and the male interface component.

[0102] Here, the male terminal component of the first electronic device may be provided with an elastic component. When the first electronic device controls the male terminal interface component on the first electronic device to detach the corresponding female terminal interface component on the second electronic device from the male terminal interface component, it can control the elastic component in the male terminal interface component to pop out the male terminal interface component, so as to push the female terminal interface component out from the male terminal interface component.

[0103] The elastic component can be a spring, sheet, or column, or other elastic part.

[0104] In this application, when the first electronic device controls the male interface component on the first electronic device to detach the corresponding female interface component on the second electronic device from the male interface component, it can also control the inner wall of the male interface component to move away from the axis of the male interface component in a surrounding direction, so that the male interface component releases the female interface component.

[0105] Here, the male interface component may include a displacement component, which enables the inner wall of the male interface component to move about the axis of the male interface component in a direction away from the axis.

[0106] In this application, if the first electronic device is connected to the second electronic device by magnetic attraction, when the first electronic device controls the first electronic device and the second electronic device to be in a connected state, the first fastening component on the first electronic device can be popped out to fix the male end magnetic head assembly on the first electronic device and the corresponding female end magnetic head assembly on the second electronic device.

[0107] Here, the first fastening component can be installed around the male end magnetic head assembly. The composition of the specific fastening component is not limited, as long as it can fix the male end magnetic head assembly on the first electronic device and the corresponding female end magnetic head assembly on the second electronic device.

[0108] In this application, when the first electronic device is connected to the second electronic device via a plug-in method, the first electronic device can also control the second fastening component on the first electronic device to pop out when controlling the first electronic device and the second electronic device to be in a connected state, so as to fix the male interface component on the first electronic device and the corresponding female interface component on the second electronic device.

[0109] Here, the second fastening component can be installed around the male interface component. The composition of the fastening component is not limited, as long as it can fix the male interface component on the first electronic device and the corresponding female interface component on the second electronic device.

[0110] This application detects the status parameters of a first electronic device. Based on these status parameters, it can determine whether the first electronic device is currently abnormal, in a harsh environment, or in a dangerous state. This allows for the activation of a protection mechanism to control the connection status between the first electronic device and the second electronic device, thereby protecting the first electronic device.

[0111] Figure 2 This is a flowchart illustrating the device connection method in this application. Figure 2 ,like Figure 2 As shown, it includes:

[0112] Step 201: The power cord is subjected to an external force that pulls on the laptop.

[0113] Here, the laptop is connected to the power cord via magnetic attraction, and the laptop contains a displacement sensor and a judgment program.

[0114] Step 202: The laptop moves due to the tension of the power cord.

[0115] Step 203: Trigger the program in the laptop to judge this movement event of the laptop;

[0116] Step 204: The program determines the current scenario of the laptop based on the relevant parameters corresponding to the movement of the laptop. If it is scenario A, proceed to step 205; if it is scenario B, proceed to step 206; if it is scenario C, proceed to step 207; if it is scenario D, proceed to step 208.

[0117] Step 205: In scenarios where only the laptop moves, no processing is performed on the laptop.

[0118] Step 206: If the combined force of the laptop movement and pulling is greater than or equal to the threshold, then the magnetic attraction between the laptop and the power cord is demagnetized to allow the power cord to detach from the laptop.

[0119] Here, when the program detects movement of the laptop and simultaneously experiences a pulling force exceeding a threshold, it identifies this as an abnormal situation. In this case, it automatically demagnetizes the connection between the laptop and the power cord, causing the power cord to detach automatically and preventing the laptop from being pulled off the floor by the cord.

[0120] Step 207: If the laptop does not move and the pulling force is less than the threshold, then no further action will be taken on the laptop.

[0121] Step 208: If only a tensile force value is detected, and the tensile force value is greater than or equal to the threshold, but the laptop does not move, then no relevant processing is performed on the laptop.

[0122] The device connection method provided in this application allows the laptop to intelligently detect abnormal conditions and automatically disconnect the power cord from the laptop, thus protecting the laptop from damage.

[0123] Figure 3 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 1 ,like Figure 3 As shown, the electronic device includes:

[0124] Detection unit 301 is used to detect the first state parameter of the first electronic device;

[0125] Control unit 302 is used to control the connection status between the first electronic device and the second electronic device according to the first status parameter;

[0126] Wherein, the first state parameter includes at least a first parameter between the first electronic device and the first object carrying the first electronic device; the second electronic device is a device that provides power and / or data transmission to the first electronic device.

[0127] In a preferred embodiment, the electronic device further includes:

[0128] Alarm unit 303 is used to issue a prompt message based on the first status parameter and the connection status.

[0129] In a preferred embodiment, the connection status includes one or more of the connection tension value and the power transmission status.

[0130] The control unit 302 is specifically used to control the first electronic device and the second electronic device to be in a first connection tension value state and / or a first power transmission state according to the first state parameter.

[0131] In a preferred embodiment, the first state parameter includes one or more of the following: electrical state parameter, environmental state parameter, and load-bearing state parameter.

[0132] The control unit 302 is specifically used to control the connection state between the first electronic device and the second electronic device according to at least one of the power state parameters, the environmental state parameters, and the load state parameters.

[0133] In a preferred embodiment, the electronic device further includes: a comparison unit 304;

[0134] Here, if the bearing state parameter indicates that the first electronic device and the first object bearing the first electronic device are in a first bearing state, the comparison unit 304 is used to make a first comparison between the friction force parameter in the first parameter and the friction force threshold; if the first comparison result indicates that the friction force parameter is greater than the friction force threshold, the control unit 302 is triggered, and the control unit 302 controls the first electronic device and the second electronic device to be in a connected state.

[0135] In a preferred embodiment, the comparison unit 304 is further configured to perform a second comparison between the displacement parameter in the first parameter and a first displacement threshold; if the second comparison result indicates that the displacement parameter is greater than or equal to the first displacement threshold, a third comparison is performed between the direction parameter in the first parameter and a preset direction parameter; if the third comparison result indicates that the direction parameter and the preset direction parameter meet the same conditions, the control unit 302 is triggered, and the control unit 302 controls the first electronic device and the second electronic device to be in a connected state.

[0136] In a preferred embodiment, the comparison unit 304 is further configured to perform a fourth comparison between the displacement parameter in the first parameter and the second displacement threshold; if the fourth comparison result indicates that the displacement parameter is greater than or equal to the second displacement threshold, a fifth comparison is performed between the tension parameter in the first parameter and the tension threshold; if the fifth comparison result indicates that the tension parameter is greater than or equal to the tension threshold, the control unit 302 is triggered, and the control unit 302 controls the first electronic device and the second electronic device to be in a disconnected state.

[0137] In a preferred embodiment, the control unit 302 is further configured to control the first electronic device to stop supplying power to the male end magnetic head assembly on the first electronic device when the first electronic device is connected to the second electronic device via magnetic attraction, so that the male end magnetic head assembly is in a separated state from the corresponding female end magnetic head assembly on the second electronic device.

[0138] In a preferred embodiment, the control unit 302 is further configured to, when the first electronic device is connected to the second electronic device via a plug-in method, control the male interface component on the first electronic device to detach the corresponding female interface component on the second electronic device from the male interface component, so that the male interface component and the female interface component are in a separated state.

[0139] In a preferred embodiment, the control unit 302 is specifically used to control the elastic component within the male interface component to pop out of the male interface component, so as to push the female interface component out of the male interface component;

[0140] In a preferred embodiment, the control unit 302 is further configured to control the inner wall of the male interface component to move in a direction away from the axis of the male interface component, so as to release the male interface component from the female interface component.

[0141] In a preferred embodiment, when the first electronic device is connected to the second electronic device via magnetic attraction, the control unit 302 is further configured to control the first fastening component on the first electronic device to pop out, so as to fix the male end magnetic head assembly on the first electronic device and the corresponding female end magnetic head assembly on the second electronic device.

[0142] In a preferred embodiment, when the first electronic device is connected to the second electronic device via a plug-in connection, the control unit 302 is further configured to control the second fastening component on the first electronic device to pop out, so as to fix the male interface component on the first electronic device and the corresponding female interface component on the second electronic device.

[0143] In a preferred embodiment, the electronic device further includes: an acquisition unit 305 and a determination unit 306;

[0144] The acquisition unit 305 is used to acquire the weight parameters of the first electronic device;

[0145] The determining unit 306 is used to determine the tensile force threshold based on the weight parameters of the first electronic device.

[0146] It should be noted that the above embodiments of the electronic device, when performing device connection control, are only illustrated by the division of the above-described program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. Furthermore, the electronic device provided in the above embodiments and the device connection method embodiments provided above belong to the same concept; the specific implementation process is detailed in the method embodiments and will not be repeated here.

[0147] This application also provides an electronic device, which includes: a processor and a memory for storing a computer program capable of running on the processor.

[0148] When the processor runs the computer program, it executes any of the method steps in the above-described device connection method.

[0149] Figure 4 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 2 Electronic device 400 can be a terminal with a cable interface, such as a mobile phone, computer, digital broadcasting terminal, information transceiver, game console, tablet device, medical device, fitness equipment, or personal digital assistant. Figure 4 The illustrated electronic device 400 includes at least one processor 401, a memory 402, at least one network interface 404, and a user interface 403. The various components in the electronic device 400 are coupled together via a bus system 405. It is understood that the bus system 405 is used to implement communication between these components. In addition to a data bus, the bus system 405 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 4 The general designated all buses as Bus System 405.

[0150] The user interface 403 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.

[0151] It is understood that memory 402 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 402 described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.

[0152] In this embodiment, the memory 402 is used to store various types of data to support the operation of the electronic device 400. Examples of such data include: any computer program used to operate on the electronic device 400, such as the operating system 4021 and application program 4022; contact data; phonebook data; messages; pictures; audio, etc. The operating system 4021 includes various system programs, such as the framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. The application program 4022 may include various applications, such as a media player, browser, etc., used to implement various application services. Programs implementing the methods of this embodiment may be included in the application program 4022.

[0153] The methods disclosed in the embodiments of this application can be applied to processor 401, or implemented by processor 401. Processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 401 or by instructions in the form of software. The processor 401 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 401 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 402. Processor 401 reads the information in memory 402 and combines its hardware to complete the steps of the aforementioned method.

[0154] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.

[0155] In an exemplary embodiment, this application also provides a computer-readable storage medium, such as a memory 402 including a computer program, which can be executed by a processor 401 of an electronic device 400 to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM; it may also be various devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0156] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the method steps of any of the above-described device connection methods.

[0157] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0158] The units described above 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 multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0159] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0160] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0161] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0162] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A device connection method, comprising: Detect the first state parameter of the first electronic device; The first state parameter includes at least: bearing state parameter; The connection state between the first electronic device and the second electronic device is controlled according to the first state parameter; the connection state includes at least one of the following: disconnected, connected, or strengthened connection; Wherein, the first state parameter includes at least a first parameter between the first electronic device and the first object carrying the first electronic device; the second electronic device is a device that provides power and / or data transmission to the first electronic device; The step of controlling the connection state between the first electronic device and the second electronic device according to the first state parameter includes at least the following: The connection status between the first electronic device and the second electronic device is controlled according to the bearing status parameters; If the bearing state parameter indicates that the first electronic device and the first object bearing the first electronic device are in a first bearing state; The displacement parameter in the first parameter is compared with the first displacement threshold for the second time; if the second comparison result indicates that the displacement parameter is greater than or equal to the first displacement threshold, the direction parameter in the first parameter is compared with the preset direction parameter for the third time; if the third comparison result indicates that the direction parameter and the preset direction parameter meet the same condition, the first electronic device and the second electronic device are controlled to be in a strengthened connection state.

2. The method according to claim 1, further comprising: Based on the first status parameter and the connection status, a prompt message is issued.

3. The method according to claim 1, wherein the connection state includes one or more of the following: Connecting tensile force value and power transmission status; The step of controlling the connection state between the first electronic device and the second electronic device according to the first state parameter includes at least: Based on the first state parameter, the first electronic device and the second electronic device are controlled to be in a first connection tension value state and / or a first power transmission state.

4. The method according to claim 1, wherein the first state parameter further includes one or more of the following: electrical state parameters and / or environmental state parameters; The step of controlling the connection status between the first electronic device and the second electronic device according to the first status parameter includes: The connection status between the first electronic device and the second electronic device is controlled according to the power state parameters and / or the environmental state parameters.

5. The method according to claim 4, wherein controlling the connection state between the first electronic device and the second electronic device based on the bearing state parameter comprises at least one of the following methods: The friction force parameter in the first parameter is compared with the friction force threshold. If the first comparison result indicates that the friction force parameter is greater than the friction force threshold, the first electronic device and the second electronic device are controlled to be in a strengthened connection state. The displacement parameter in the first parameter is compared with the second displacement threshold in the fourth comparison. If the fourth comparison result indicates that the displacement parameter is greater than or equal to the second displacement threshold, then the tension parameter in the first parameter is compared with the tension threshold in the fifth comparison. If the fifth comparison result indicates that the tensile parameter is greater than or equal to the tensile threshold, the first electronic device and the second electronic device are controlled to be disconnected.

6. The method according to claim 5, wherein, Controlling the first electronic device and the second electronic device to be in a disconnected state includes at least one of the following methods: When the first electronic device is connected to the second electronic device via magnetic attraction, the first electronic device is controlled to stop supplying power to the male end magnetic head assembly on the first electronic device, so that the male end magnetic head assembly is separated from the corresponding female end magnetic head assembly on the second electronic device. When the first electronic device is connected to the second electronic device via a plug-in method, the male interface component on the first electronic device is controlled to detach the corresponding female interface component on the second electronic device from the male interface component, so that the male interface component and the female interface component are in a separated state.

7. The method according to claim 6, wherein, Controlling the male interface component on the first electronic device to detach the corresponding female interface component on the second electronic device from the male interface component includes at least one of the following methods: Control the elastic component within the male interface component to pop out of the male interface component, so as to push the female interface component out of the male interface component; Control the inner wall of the male interface component to move away from the axis of the male interface component in a peripheral direction, so that the male interface component releases the female interface component.

8. The method according to claim 5, wherein, Controlling the first electronic device and the second electronic device to be in a strengthened connection state includes at least one of the following methods: When the first electronic device is connected to the second electronic device by magnetic attraction, the first fastening component on the first electronic device is popped out to fix the male end magnetic head assembly on the first electronic device and the corresponding female end magnetic head assembly on the second electronic device. When the first electronic device is connected to the second electronic device via a plug-in connection, the second fastening component on the first electronic device is popped out to fix the male interface component on the first electronic device and the corresponding female interface component on the second electronic device.

9. The method according to claim 5, wherein, The method further includes: Obtain the weight parameters of the first electronic device; The tensile threshold is determined based on the weight parameters of the first electronic device.

10. An electronic device, comprising: The detection unit is used to detect the first state parameter of the first electronic device; The first state parameter includes at least: bearing state parameter; A control unit is configured to control the connection state between a first electronic device and a second electronic device according to a first state parameter; the connection state includes at least one of the following: disconnection, connection, or enhanced connection; wherein, the first state parameter includes at least a first parameter between the first electronic device and a first object carrying the first electronic device; the second electronic device is a device that provides power and / or data transmission to the first electronic device; the control of the connection state between the first electronic device and the second electronic device according to the first state parameter includes at least: controlling the connection state between the first electronic device and the second electronic device according to the carrying state parameter; The comparison unit is configured to: if the bearing state parameter indicates that the first electronic device and the first object bearing the first electronic device are in a first bearing state; perform a second comparison between the displacement parameter in the first parameter and a first displacement threshold; if the second comparison result indicates that the displacement parameter is greater than or equal to the first displacement threshold, perform a third comparison between the direction parameter in the first parameter and a preset direction parameter; if the third comparison result indicates that the direction parameter and the preset direction parameter meet the same condition, then trigger the control unit to control the first electronic device and the second electronic device to be in a reinforced connection state.

Citation Information

Patent Citations

  • Annular magnetic interface

    CN103390832A

  • Method for controlling electronic equipment and electronic equipment

    CN106156666A