Equipment control method and system and electronic equipment
By automatically establishing communication links and transmitting data, the problem of cumbersome data backup processes for electronic devices is solved, achieving efficient and secure data backup without any triggering.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2026-01-30
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technologies, electronic devices need to be connected via data cables and manually operated when backing up data, which makes the process cumbersome.
By detecting a first device that meets the conditions, a target communication link is automatically established, and the target data is sent to a second device for backup, including identity authentication and analysis of historical transmission records to ensure security and accuracy.
It enables automatic data transfer and backup without manual operation, improving user experience, simplifying operation processes, and enhancing the intelligence and security of data management.
Smart Images

Figure CN121967437A_ABST
Abstract
Description
A device control method, system, and electronic device Technical Field
[0001] This application relates to the field of computer technology, and in particular to a device control method, system and electronic device. Background Technology
[0002] Currently, when backing up data on electronic devices, it is usually necessary to connect the electronic device to a computer via a data cable, then select the data to be backed up, and perform the backup operation. This process is cumbersome. Summary of the Invention
[0003] In view of the above, this application provides a device control method, system, and electronic device, the specific solutions of which are as follows:
[0004] A device control method, applied to electronic devices, includes:
[0005] If a first device that meets the target conditions is detected, determine the device information of the first device;
[0006] Based on the device information of the first device, a target communication link is established between the first device and the second device, wherein the second device is any device connected to the electronic device.
[0007] The target data in the first device is sent to the second device through the target communication link so that the target data can be stored in the second device.
[0008] Furthermore, the method also includes:
[0009] If the charging coil of the electronic device is detected to be active, the first device is charged by the electronic device, and it is determined that the first device meets the target condition.
[0010] Furthermore, the method also includes:
[0011] An authentication request is output to the first device, and the authentication request includes at least: the identifier of the electronic device or the identifier of the second device;
[0012] Obtain the feedback information output by the first device in response to the authentication request;
[0013] If the feedback information indicates that the identity authentication is successful, it is determined that the first device meets the target conditions.
[0014] Furthermore, the detection of the first device that meets the conditions also includes:
[0015] Obtain the historical transmission records of the electronic device, which contain data transmission information transmitted through the electronic device;
[0016] If it is determined that the historical transmission records contain transmission records of data transmission between the first device and the second device through the electronic device, then the first device is determined to meet the target condition;
[0017] If it is determined that the historical transmission records do not contain any transmission records of data transmission between the first device and the second device through the electronic device, an authentication request is output to the first device.
[0018] Furthermore, the step of sending the target data in the first device to the second device through the target communication link includes:
[0019] Based on the data transmission information of the first device and the second device transmitting data through the electronic device in the historical transmission records, the target data in the first device is determined. The data transmission information includes at least: the identification information of the data transmitted by the first device to the second device through the electronic device.
[0020] The target data is sent to the second device via the target communication link.
[0021] Furthermore, determining the target data in the first device based on the data transmission information of the first device and the second device transmitting data through the electronic device in the historical transmission records includes:
[0022] Locate the identification information of the data stored in the first device;
[0023] Identify the identification information of the data stored in the first device that is inconsistent with the identification information of the data transmitted from the first device to the second device through the electronic device in the historical transmission record, and determine the data corresponding to the inconsistent identification information as the target data.
[0024] Furthermore, the target communication link includes: a first communication link and a second communication link, wherein the second communication link is a communication link established between the second device and the electronic device before a first device that meets the target condition is detected;
[0025] Establishing the target communication link between the first device and the second device includes:
[0026] Output a first link establishment request to the first device;
[0027] The first device obtains connection information from the first device's request to establish a connection based on the first link, and then initiates the target network corresponding to the connection information.
[0028] Based on the connection information, a connection is established with the target network initiated by the first device to establish a first communication link between the first device and the electronic device;
[0029] The target communication link is established based on the first communication link and the second communication link.
[0030] Furthermore, the electronic device and the second device are located in the same wireless communication network, and establishing a target communication link between the first device and the second device includes:
[0031] Determine the device information of at least one device connected to the wireless communication network currently in which the electronic device is located;
[0032] If it is determined that the device information of at least one device connected to the wireless communication network does not include the device information of the first device, the configuration information of the wireless communication network is sent to the first device so that the first device is in the wireless communication network based on the configuration information;
[0033] A second link establishment request is output to the first device, so that the first device can establish a target communication link between the first device and the second device through the wireless communication network based on the second link establishment request.
[0034] An electronic device, comprising:
[0035] The first interface is used to connect to the second device;
[0036] The processor is configured to, upon detecting a first device that meets the target conditions, determine the device information of the first device; based on the device information of the first device, establish a target communication link between the first device and a second device, wherein the second device is any device connected to the electronic device; and send target data from the first device to the second device through the target communication link so as to store the target data in the second device.
[0037] A device control system, comprising:
[0038] First equipment;
[0039] A second device, which is connected to an electronic device;
[0040] An electronic device is configured to, upon detecting a first device that meets target conditions, determine device information of the first device; establish a target communication link between the first device and a second device based on the device information of the first device; and send target data from the first device to the second device through the target communication link so as to store the target data in the second device. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 is a flowchart of a device control method disclosed in an embodiment of this application;
[0043] Figure 2 is a flowchart of a device control method disclosed in an embodiment of this application;
[0044] Figure 3 is a schematic diagram of an embodiment of this application disclosing a charging of a first device via an electronic device, and a second device connected to the electronic device;
[0045] Figure 4 is a flowchart of a device control method disclosed in an embodiment of this application;
[0046] Figure 5 is a flowchart of a device control method disclosed in an embodiment of this application;
[0047] Figure 6 is a flowchart of a device control method disclosed in an embodiment of this application;
[0048] Figure 7 is a schematic diagram of a target communication link between a first device and a second device disclosed in an embodiment of this application;
[0049] Figure 8 is a flowchart of a device control method disclosed in an embodiment of this application;
[0050] Figure 9 is a schematic diagram of a target communication link between a first device and a second device disclosed in an embodiment of this application;
[0051] Figure 10 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application;
[0052] Figure 11 is a schematic diagram of the structure of a device control system disclosed in an embodiment of this application. Detailed Implementation
[0053] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.
[0054] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0055] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0056] This application discloses a device control method applied to electronic devices, the flowchart of which is shown in Figure 1, including:
[0057] Step S11: If a first device that meets the target conditions is detected, determine the device information of the first device;
[0058] Step S12: Based on the device information of the first device, establish a target communication link between the first device and the second device, where the second device is any device connected to the electronic device;
[0059] Step S13: Send the target data in the first device to the second device through the target communication link so that the target data can be stored in the second device.
[0060] Currently, when backing up data on electronic devices, it is usually necessary to connect the electronic device to a computer via a data cable, then select the data to be backed up, and perform the backup operation. This process is cumbersome.
[0061] Based on this, in this embodiment, as long as a first device that meets the target conditions is detected, the device information of the first device is determined, and a target communication link between the first device and the second device is established based on the device information of the first device. The target data in the first device is sent to the second device through the target communication link so that the target data can be stored in the second device. This achieves automatic data transmission and backup without manual operation, improving the user experience.
[0062] The device control method disclosed in this embodiment is based on electronic devices. Specifically, the electronic device determines whether a first device that meets the conditions is detected. Then, the electronic device determines the device information of the first device. In addition, the electronic device establishes a target communication link between the first device and the second device so that the target data in the first device can be backed up in the second device through the target communication link.
[0063] The electronic device can monitor the first device to determine whether the first device meets the target conditions. In order for the electronic device to monitor the first device, it needs to establish a connection with the first device. This connection can be a wired connection or a wireless connection.
[0064] Furthermore, electronic devices can connect to multiple devices, and the connection to each device can be wired or wireless. If an electronic device connects to only two devices, one of them is designated as the first device, and the other connected device can be designated as the second device. If an electronic device connects to multiple devices, one of the other devices besides the first device can be selected as the second device. When selecting a second device, it can be a device that has stored data from the first device in its historical records, or it can be selected based on other criteria, such as selecting the device with the largest storage capacity, the device with the highest security, or the second device can be directly specified by the user.
[0065] The second device is used to receive the target data transmitted by the first device and store the received target data in order to complete the backup of the target data in the first device.
[0066] After an electronic device detects a first device that meets the conditions, it needs to determine the device information of the first device. Different devices have different device information so that when establishing a communication link based on the device information, the communication link can be accurately established between the devices corresponding to the device information. The device information can specifically be: an identifier used to realize the communication connection of the first device, which can be: the device's identity identifier, such as: serial number, MAC address, etc.; or the connection interface information, such as: USB port, IP address, etc.
[0067] After determining the device identifier of the first device, the electronic device can establish a target communication link between the first device and the second device based on the device identifier of the first device. The target communication link can be a bidirectional communication link, that is, the data in the first device can be transmitted to the second device and the data in the second device can be transmitted to the first device through the target communication link; or, the target communication link can be a unidirectional communication link, that is, the data in the first device can only be transmitted to the second device through the target communication link, but the data in the second device cannot be transmitted to the first device.
[0068] After the target communication link is established, the target data in the first device needs to be transmitted to the second device through the target communication link so that the second device can receive the target data and store it directly after receiving it.
[0069] When transmitting target data from the first device to the second device via the target communication link, the purpose of transmitting the target data to the second device must be transmitted to the second device in the form of an instruction. This instruction allows the second device to directly store the target data upon receiving it. The transmission of this instruction can occur simultaneously with the establishment of the target communication link, via an electronic device, so that the second device understands the purpose of the target communication link: transmitting data that needs to be backed up. Alternatively, the instruction can be transmitted by an electronic device or the first device after the target communication link is established. Furthermore, the instruction can be transmitted simultaneously with the first device transmitting the target data via the target communication link, so that the second device understands that the target data needs to be stored.
[0070] In this embodiment, as long as a first device that meets the target conditions is detected, a target communication link is automatically established, and the data to be backed up is transmitted to the second device through the target communication link to achieve automatic backup without manual operation, thus improving the user experience. In addition, the second device can be any device connected to the electronic device. Here, it is not limited to storing the data of the first device in a specific device, which enhances the versatility and flexibility of the solution.
[0071] Furthermore, after the data in the first device is backed up multiple times by the electronic device, since the data of the first device is backed up to any device connected to the electronic device, after each backup is completed, the information related to the backup data of the first device in multiple devices connected to it can be archived or organized by the electronic device to ensure data synchronization between different devices; or, when needed, the archiving or organization operation can be performed.
[0072] The device control method disclosed in this embodiment is applied to an electronic device. When a first device that meets the target conditions is detected, a target communication link is established between the first device and a second device based on the device information of the first device. The second device can be any device connected to the electronic device. The target data in the first device is sent to the second device through the target communication link so that the target data can be stored in the second device. In order to achieve the backup of the target data in the first device, as long as a first device that meets the target conditions is detected, a communication link is automatically established and the target data is sent. The whole process does not require manual operation by the user or physical connection, and the data transmission and backup can be completed without the need for manual operation by the user. This simplifies the operation process and improves the user experience. Furthermore, the steps of establishing the link and sending data are executed automatically, eliminating the time delay caused by manual operation by the user. This achieves efficient, timely and preventive data protection or synchronization, and improves the level of intelligence in data management.
[0073] This embodiment discloses a device control method applied to electronic devices, the flowchart of which is shown in Figure 2, including:
[0074] Step S21: If the charging coil of the electronic device is detected to be in an active state, the first device is charged by the electronic device to determine that the first device meets the target condition;
[0075] Step S22: Determine the equipment information of the first device;
[0076] Step S23: Based on the device information of the first device, establish a target communication link between the first device and the second device, where the second device is any device connected to the electronic device;
[0077] Step S24: Send the target data in the first device to the second device through the target communication link so that the target data can be stored in the second device.
[0078] When the first device meets the target conditions, the device information of the first device is determined, and a target communication link between the first device and the second device is established based on the device information of the first device. The target data in the first device is sent to the second device through the target communication link, thereby realizing the backup of the target data of the first device on the second device. The above process does not require user operation, which simplifies the backup process and improves the user experience.
[0079] Furthermore, determining whether the first device meets the target condition can be specifically as follows: if the charging coil of the electronic device is detected to be in an active state, and the first device is charged by the electronic device, then the first device is determined to meet the target condition.
[0080] In this embodiment, the electronic device can be: a device that can at least wirelessly charge the first device, such as a USB wireless charging docking station, which integrates traditional interface expansion and wireless charging functions. It is mainly aimed at electronic devices with limited interfaces but high peripheral connection requirements (such as ultra-thin laptops) or mobile phones that support wireless charging, so as to solve the problems of messy desktop device connections and inconvenient charging.
[0081] Electronic devices can connect to other devices, such as laptops, which can be designated as second devices; in addition, electronic devices can also wirelessly charge other devices, such as first devices.
[0082] When the electronic device is not connected to the first device, that is, when the first device is not placed on the wireless charging structure of the electronic device, the electronic device is not wirelessly charging any device, and the charging coil on the wireless charging structure of the electronic device is in a low-power inactive state.
[0083] When the charging coil of an electronic device is inactive, the wireless charging structure of the electronic device may only operate a low-power detection circuit to detect whether a device is nearby. When the detection circuit determines that a device is placed on the wireless charging structure, it controls the charging coil on the wireless charging structure to activate, that is, to turn on the main power circuit, so that it starts to work and generates an electromagnetic field to wirelessly charge the device.
[0084] Once it is determined that the first device is placed on the wireless charging structure of the electronic device and wirelessly charged by the electronic device, it can be determined that the first device currently meets the target conditions. As shown in Figure 3, which is a schematic diagram of charging the first device by the electronic device and connecting the second device to the electronic device, the device includes: electronic device 31, first device 32 and second device 33. Specifically, electronic device 31 can be a USB wireless charging dock, first device 32 is a mobile phone, and second device 33 is a laptop computer. The USB wireless charging dock is connected to the laptop computer via a wire, and the mobile phone is placed on the wireless charging structure of the USB wireless charging dock.
[0085] In this embodiment, when the mobile phone is placed on the USB wireless charging dock and the USB wireless charging dock wirelessly charges the mobile phone, the target condition can be determined to be met. At this time, a target communication link can be established between the first device (e.g., mobile phone) and the second device (e.g., laptop computer) so that the target data in the first device (e.g., mobile phone) can be transmitted to the second device (e.g., laptop computer) through the target communication link and stored on the second device to achieve backup of the target data in the first device.
[0086] In this embodiment, activating the charging coil and charging the first device serves as the trigger condition, achieving fully automatic and seamless triggering of the data backup task. Furthermore, this embodiment utilizes the idle time of the first device during its charging process to execute background data transmission tasks, avoiding the competition for system resources and network bandwidth for data transmission and backup when the user frequently uses the first device, thus achieving an optimal balance between background task scheduling and the user's foreground experience. Secondly, this solution links the data backup value-added service logic to the wireless charging energy transmission channel, providing a new way for intelligent collaboration between devices and improving the user experience. Additionally, the triggering mechanism in this embodiment is reliable and high-frequency, effectively ensuring the timeliness of backup data and enhancing data security.
[0087] The device control method disclosed in this embodiment detects that the charging coil of an electronic device is activated, charges a first device through the electronic device, determines that the first device meets the conditions, identifies the device information of the first device, and establishes a target communication link between the first device and a second device through the device information. The target data in the first device is then sent to the second device through the target communication link to achieve storage of the target data in the second device. This embodiment uses the activation of the charging coil and charging of the first device as a trigger condition, realizing fully automatic and seamless triggering of the data backup task. Data backup can be completed without any additional operation, solving problems such as users forgetting to back up data and cumbersome operations.
[0088] This embodiment discloses a device control method, the flowchart of which is shown in Figure 4, including:
[0089] Step S41: Output an authentication request to the first device. The authentication request shall include at least: the identifier of the electronic device or the identifier of the second device.
[0090] Step S42: Obtain the feedback information output by the first device in response to the authentication request;
[0091] Step S43: If the feedback information indicates that the identity authentication is successful, determine that the first device meets the target conditions, and determine the device information of the first device;
[0092] Step S44: Based on the device information of the first device, establish a target communication link between the first device and the second device, where the second device is any device connected to the electronic device;
[0093] Step S45: Send the target data in the first device to the second device through the target communication link so that the target data can be stored in the second device.
[0094] When the first device meets the target conditions, the device information of the first device is determined, and a target communication link between the first device and the second device is established based on the device information of the first device. The target data in the first device is sent to the second device through the target communication link, thereby realizing the backup of the target data of the first device on the second device. The above process does not require user operation, which simplifies the backup process and improves the user experience.
[0095] Furthermore, determining whether the first device meets the target conditions can be specifically done by: outputting an authentication request to the first device, the authentication request including at least: the identifier of the electronic device or the identifier of the second device; obtaining feedback information output by the first device in response to the authentication request; if the feedback information indicates that the authentication is successful, determining that the first device meets the target conditions.
[0096] Electronic devices can authenticate the identity of devices connected to them. Authentication involves sending the identifier of the electronic device or the identifier of another device connected to the electronic device (such as a second device) to a device connected to the electronic device (such as a first device) so that the first device can verify the identity of the electronic device or the second device.
[0097] That is, the electronic device outputs an identity authentication request to the first device. The identity authentication request includes at least the identifier of the electronic device or the identifier of the second device. The first device performs identity authentication on the electronic device or the second device based on the identity authentication request to determine whether the identity authentication of the electronic device or the second device is successful.
[0098] If the first device determines that the electronic device's identity authentication is successful, it indicates that the first device has determined that the electronic device is a secure device. At this time, it can be determined that the information of the first device can be transmitted to the electronic device. If the first device determines that the second device's identity authentication is successful, it indicates that the first device has determined that the second device is a secure device. At this time, it can be determined that the information of the first device can be transmitted to the second device.
[0099] Specifically, the first device can determine the electronic device or the second device based on a list of trusted devices. This list of trusted devices can be a pre-stored list of devices that have been authenticated by the first device. As long as the first device determines that the electronic device or the second device is a device in the list of trusted devices, it considers the electronic device or the second device to be trusted and determines that the electronic device or the second device has passed the identity authentication. Of course, the first device can also use other methods for authentication, such as: the first device pre-stores a specific identifier, and any device with the specific identifier is considered to have passed the identity authentication. If the first device determines that the second device has the specific identifier, it can determine that the second device has passed the identity authentication. If the electronic device does not have the specific identifier, it can determine that the electronic device has failed the identity authentication.
[0100] The first device authenticates the device to be authenticated (e.g., an electronic device or a second device) based on an authentication request, and then receives feedback information indicating whether the device to be authenticated has passed authentication. The electronic device receives the feedback information from the first device and analyzes it. If the feedback information indicates that the electronic device or the second device has passed authentication, then it can be determined that the first device has been detected, meeting the target conditions, meaning a target communication link can be established between the first and second devices. If the feedback information indicates that the electronic device or the second device has failed authentication, then a target communication link cannot be established between the first and second devices, and the data to be backed up in the first device cannot be transferred to the second device.
[0101] Furthermore, in the device control method disclosed in this embodiment, detecting a first device that meets the conditions can specifically be as follows:
[0102] Obtain the historical transmission records of the electronic device, which contain data transmission information transmitted through the electronic device; if it is determined that the historical transmission records contain data transmission records of the first device and the second device transmitted through the electronic device, determine that the first device meets the target condition; if it is determined that the historical transmission records do not contain data transmission records of the first device and the second device transmitted through the electronic device, output an authentication request to the first device.
[0103] The electronic device first queries the historical transmission records to determine whether there is a transmission record of data transmission between the first device and the second device. If there is such a transmission record, it indicates that the first device has authenticated the electronic device or the second device in the historical data, and the authentication has been successful. The target communication link can be established between the first device and the second device, and the target data to be backed up in the first device can be transferred to the second device through the target communication link for backup. At this time, no further authentication is required. That is, the electronic device does not need to send an authentication request to the first device. Instead, it can directly determine that the first device meets the target conditions based on the transmission record of data transmission between the first device and the second device in the historical transmission records, and directly establish the target communication link between the first device and the second device.
[0104] If there is no transmission record of data transfer between the first device and the second device in the historical transmission records, it indicates that no data has been transferred between the first device and the second device before. In this case, the first device cannot determine whether the electronic device or the second device is trustworthy. Therefore, it is necessary to authenticate the electronic device or the second device. That is, the electronic device outputs an authentication request to the first device. Only after the authentication is successful will it be determined that the first device meets the target conditions, and a target communication link will be established between the first device and the second device to transmit the target data of the first device to the second device through the target communication link.
[0105] Furthermore, the historical transmission records stored in the electronic device can be recorded and stored by the electronic device itself, or they can be recorded by a second device or the first device and then transmitted to the electronic device.
[0106] If the historical transmission records stored in the electronic device are recorded and stored by the electronic device itself, then the historical transmission records only contain transmission records of the first device transmitting data to the second device through the electronic device, and will not contain transmission records of the first device transmitting data directly to the second device without passing through the electronic device. Therefore, in this case, judging the historical transmission records can only determine whether the first device transmits data to the second device through the electronic device. Since the records are incomplete, records of the first device transmitting data directly to the second device may be missed. However, the amount of data that needs to be queried is small. Therefore, if it is determined in this way that there are no records of the first device transmitting data to the second device through the electronic device in the historical transmission records, then an authentication request can be output to the first device to perform authentication, and after successful authentication, a target communication link between the first device and the second device can be established.
[0107] If the historical transmission records stored in the electronic device are records of the second device or the first device that were transmitted to the electronic device, then the historical transmission records will contain all records of data transmission from the first device to the second device. This includes not only records of data transmission from the first device directly to the second device, but also records of data transmission from the first device to the second device through the electronic device. At this time, the records are complete and can directly determine whether the first device has transmitted data to the second device, thereby directly determining whether a target communication link can be established between the first device and the second device.
[0108] Furthermore, in the device control method disclosed in this embodiment, after detecting that the charging coil of the electronic device is in an activated state and charging the first device through the electronic device, further identity authentication is performed. Only after successful identity authentication will the device information of the first device be determined, and a target communication link will be established between the first device and the second device based on the device information. The identity authentication performed at this time can be performed by directly outputting an identity authentication request to the first device so that the first device can output feedback information; alternatively, it can be performed by first querying historical transmission records to determine if there is a transmission record of data transmission between the first device and the second device. If there is, there is no need to output an identity authentication request to the first device; instead, the device information of the first device is directly determined, and a target communication link is established between the first device and the second device based on the device information. If there is no such record in the historical transmission records, an identity authentication request needs to be output to the first device, and the first device determines whether the identity authentication is successful, thereby further ensuring the security of data transmission.
[0109] In addition, electronic devices can also perform security authentication on devices connected to them. Security authentication is different from identity authentication. Identity authentication is the process by which a first device verifies the identity of an electronic device or a second device to see if the authentication is successful. Security authentication, on the other hand, is the process by which an electronic device verifies whether a device connected to it (such as a first device or a second device) can be authenticated as a secure device by the electronic device.
[0110] In this embodiment, the first device that meets the target conditions is identified through identity authentication, making the data transmission between the first device and the second device more secure. This makes the data backup process not only automatic but also secure, controllable, and with clear permission boundaries. This not only enhances the security and reliability of the solution itself but also makes it applicable to scenarios with stringent security requirements, such as enterprise data management and multi-user device sharing.
[0111] The device control method disclosed in this embodiment outputs an authentication request to a first device, obtains feedback information from the first device in response to the authentication request, and if the feedback information indicates that the authentication is successful, it is determined that the first device meets the target conditions. At this time, the device information of the first device is determined, and a target communication link between the first device and a second device is established based on the device information of the first device. The target data in the first device is sent to the second device through the target communication link, thereby achieving the purpose of backing up the target data in the first device to the second device. This solution introduces an authentication mechanism before establishing the target communication link to verify the legitimacy of the electronic device or the second device, effectively solving the problems of unauthorized access and security risks that may exist during the data backup process.
[0112] This embodiment discloses a device control method applied to electronic devices, the flowchart of which is shown in Figure 5, including:
[0113] Step S51: If a first device that meets the target conditions is detected, determine the device information of the first device;
[0114] Step S52: Based on the device information of the first device, establish a target communication link between the first device and the second device, where the second device is any device connected to the electronic device;
[0115] Step S53: Based on the data transmission records of the first device and the second device transmitting data through electronic devices in the historical transmission records, determine the target data in the first device. The data transmission information includes at least the identification information of the data transmitted by the first device to the second device through electronic devices.
[0116] Step S54: Send the target data to the second device through the target communication link.
[0117] When the first device meets the target conditions, the device information of the first device is determined, and a target communication link between the first device and the second device is established based on the device information of the first device. The target data in the first device is sent to the second device through the target communication link, thereby realizing the backup of the target data of the first device on the second device. The above process does not require user operation, which simplifies the backup process and improves the user experience.
[0118] Furthermore, sending the target data in the first device to the second device through the target communication link can be specifically as follows: based on the data transmission records of the data transmission between the first device and the second device through electronic devices in the historical transmission records, the target data in the first device is determined, and the data transmission information includes at least: the identification information of the data transmitted by the first device to the second device through electronic devices; and sending the target data to the second device through the target communication link.
[0119] It should be noted here that the historical transmission records can be recorded and stored by the electronic device itself, or they can be recorded by a second device or the first device and then transmitted to the electronic device.
[0120] If the historical transmission records stored in the electronic device are recorded and stored by the electronic device itself, then the historical transmission records only contain the transmission records of the first device to the second device through the electronic device, and there will be no transmission records of the first device directly to the second device without passing through the electronic device. Therefore, the historical transmission records may omit the records of the first device directly to the second device. The target data determined by this historical transmission record may include the data of the first device directly to the second device in the historical transmission.
[0121] If the historical transmission records stored in the electronic device are records of data transmitted and stored by the second device or the first device, then the historical transmission records will contain all records of data transmitted from the first device to the second device. This includes not only records of data transmitted directly from the first device to the second device, but also records of data transmitted from the first device to the second device through the electronic device. At this time, the records are complete and can directly determine which data the first device has transmitted to the second device, thereby enabling the direct determination of the most accurate target data.
[0122] By querying historical transmission records, the data transmission records of the first device to the second device can be determined. The data transmission records may include: transmission time, transmission duration, data output device, data receiving device, and related information of the transmitted data.
[0123] By recording the data transmission from the first device to the second device, it is possible to determine which data has been transmitted from the first device to the second device and which data has not been transmitted. The untransmitted data can be directly identified as target data and transmitted to the second device in the current transmission, so as to achieve backup of the data in the first device.
[0124] Alternatively, it can be done by analyzing the data transmitted from the first device to the second device to determine the characteristics of the data transmitted from the first device to the second device, and then determining the target data from the untransmitted data based on these characteristics. That is, the data that the first device has not yet transmitted to the second device may include data regenerated after the last transmission, or data that was removed and not transmitted to the second device when the first device transmitted to the second device previously. Therefore, in this embodiment, the transmitted data can be analyzed to determine which of the remaining untransmitted data needs to be transmitted to the second device and which does not need to be transmitted to the second device, so as to ensure the accurate determination and transmission of data in the first device.
[0125] Furthermore, based on the data transmission information of the first device and the second device through electronic devices in the historical transmission records, the target data in the first device can be determined by: searching for the identification information of the data stored in the first device;
[0126] Identify the identification information in the data stored in the first device that is inconsistent with the identification information of the data transmitted from the first device to the second device through the electronic device in the historical transmission record, and determine the data corresponding to the inconsistent identification information as the target data.
[0127] The historical transmission record only records data transmission information at the time of transmission; it does not record every piece of data transmitted from the first device to the second device, which would result in significant memory usage. However, it can record the identification information of the transmitted data within the historical transmission record. Each piece of data in the first device has its corresponding identification information. Therefore, when the first device transmits data to the second device, the identification information of the transmitted data is recorded in the historical transmission record. When determining the target data in subsequent data transmissions from the first device to the second device, the identification information of the data transmitted from the first device to the second device in the historical transmission record can be used to determine which data from the first device has been transmitted to the second device and which data has not yet been transmitted. Data with the same identification information as the data recorded in the historical transmission record is considered data that has already been transmitted to the second device and does not need to be transmitted again. Therefore, the target data determined at this time is the data whose identification information differs from the identification information recorded in the historical transmission record.
[0128] For example, if the first device contains five data items with corresponding identifiers a, b, c, d, and e, and the historical transmission record contains data transmission information from the first device to the second device, and the identifiers of the data recorded in the historical transmission record include a, b, and d, then based on the comparison between the two, it can be determined that the data corresponding to c and e in the first device has not been transmitted to the second device. Therefore, the data corresponding to c and e is determined to be the target data, and the determined target data is transmitted to the second device through the target communication link.
[0129] The device control method disclosed in this embodiment determines the device information of the first device when a first device that meets the target conditions is detected, and establishes a target communication link between the first device and a second device based on the device information. Then, based on the historical transmission records of data transmission between the first and second devices, the target data in the first device is determined, so that the target data can be sent to the second device through the target communication link. This solution intelligently identifies the data that needs to be transmitted by analyzing historical transmission records, achieving the transmission of only valuable data, avoiding resource waste, and improving data backup efficiency.
[0130] This embodiment discloses a device control method applied to electronic devices, the flowchart of which is shown in Figure 6, including:
[0131] Step S61: If a first device that meets the target conditions is detected, determine the device information of the first device;
[0132] Step S62: Output the first link establishment request to the first device;
[0133] Step S63: Obtain the connection information returned by the first device based on the first link establishment request, and start the target network corresponding to the connection information;
[0134] Step S64: Establish a connection with the target network started by the first device based on the connection information, so as to establish a first communication link between the first device and the electronic device;
[0135] Step S65: Establish a target communication link based on the first communication link and the second communication link. The second communication link is a communication link established between the second device and the electronic device before the first device that meets the target conditions is detected.
[0136] Step S66: Send the target data in the first device to the second device through the target communication link so that the target data can be stored in the second device.
[0137] When the first device meets the target conditions, the device information of the first device is determined, and a target communication link between the first device and the second device is established based on the device information of the first device. The target data in the first device is sent to the second device through the target communication link, thereby realizing the backup of the target data of the first device on the second device. The above process does not require user operation, which simplifies the backup process and improves the user experience.
[0138] Furthermore, establishing a target communication link between the first device and the second device can be specifically achieved by: outputting a first link establishment request to the first device; obtaining connection information fed back by the first device based on the first link establishment request; the first device activating a target network corresponding to the connection information; establishing a connection with the target network activated by the first device based on the connection information to establish a first communication link between the first device and the electronic device; and establishing a target communication link based on the first communication link and the second communication link, wherein the second communication link is a communication link established between the second device and the electronic device before the first device that meets the target conditions is detected.
[0139] In this embodiment, the target communication link between the first device and the second device is implemented through an electronic device. Specifically, a first communication link is established between the first device and the electronic device, and a second communication link is established between the second device and the electronic device. The first and second communication links together constitute the target communication link. Figure 7 shows a schematic diagram of the target communication link between the first device and the second device, which includes: an electronic device 71, a first device 72 and a second device 73, a first communication link a1 between the first device and the electronic device, and a second communication link a2 between the second device and the electronic device. The electronic device may include: a wireless charging pad for wirelessly charging the first device, a power interface (Power PORT) for receiving power supply signals, and a USB-C interface (USB-C PORT) for connecting USB devices. The USB-C PORT allows connection to the second device.
[0140] When the target data in the first device is transmitted to the second device through the target communication link, the first device transmits the target data to the electronic device through the first communication link, and the electronic device then transmits the target data to the second device through the second communication link. This completes the transmission of the target data from the first device to the second device, and the data is stored on the second device, thus achieving the backup of the target data in the first device.
[0141] The second communication link is established between the second device and the electronic device before the first device that meets the target conditions is detected. The second device and the electronic device are connected for data transmission. That is, when the second device and the electronic device are connected, a data transmission channel is established between them. In this embodiment, this data transmission channel can be directly reused as the second communication link to transmit the target data that was transmitted to the electronic device through the first transmission channel and then transmitted through the electronic device. Therefore, the second communication link between the second device and the electronic device can be established between the first device that meets the target conditions.
[0142] The first communication link is requested to be established by the electronic device. After detecting the first device that meets the target conditions, the electronic device needs to determine the device information of the first device in order to establish the target communication link between the first device and the second device based on the device information. Therefore, it is the electronic device that determines that the target communication link needs to be established, and the electronic device needs to output the first link establishment request to the first device.
[0143] After receiving the first link establishment request, the first device analyzes the request and determines that a communication connection needs to be established between the first device and the electronic device. At this time, the first device can start a target network and determine the connection information with the target network. The first device then feeds back the connection information to the electronic device so that the electronic device can connect to the target network started by the first device based on the connection information. When the electronic device connects to the target network, the first communication link between the first device and the electronic device is established.
[0144] The target network can be a WiFi hotspot, whereby the first device starts a WiFi hotspot and sends the connection information of the WiFi hotspot to the electronic device. The electronic device can connect to the WiFi hotspot based on the connection information, thus realizing the establishment of a communication link based on a private protocol.
[0145] Alternatively, the target network can also be a Bluetooth Personal Area Network (PAN), where the first device creates a Bluetooth mesh and sends the relevant information of the Bluetooth mesh to an electronic device, which then pairs with and connects to the mesh based on the relevant information, forming a miniature network.
[0146] Alternatively, it can be: Wi-Fi Direct network, that is, the first device can start the Wi-Fi Direct function. In this case, there is no need for a Wi-Fi hotspot. The first device and the electronic device directly negotiate and establish a point-to-point Wi-Fi connection.
[0147] The target network can also be other networks, such as ultra-broadband or 60GHz millimeter-wave communication links, virtual networks, cellular network sharing, etc., without specific limitations.
[0148] It should be noted that the device control method disclosed in this embodiment is applicable to specific scenarios. In these scenarios, the first device and the second device cannot directly form a communication link. Therefore, an electronic device is used for bridging to establish a first communication link between the first device and the electronic device, and a second communication link between the second device and the electronic device, thereby establishing an indirect communication link between the first device and the second device. This specific scenario can be: for an enterprise's internal wireless network, there are security mechanisms that do not support direct access by mobile phones, meaning that mobile phones cannot establish a wireless communication link with computers. Therefore, a communication link is established between the mobile phone and a USB wireless charging dock, as well as a communication link formed by a wired connection between the USB wireless charging dock and the computer, thereby enabling data backup on the mobile phone in this specific scenario.
[0149] In this embodiment, the electronic device establishes links with both the first and second devices, and then bridges the two links, breaking the limitations of physical interfaces and network protocols between devices. This allows any device capable of connecting to the electronic device to indirectly synchronize data with other devices, resulting in greater versatility and flexibility. Furthermore, as long as the first device meets the target conditions, the target network is automatically activated and the target communication link is established, achieving automatic networking and improving convenience. Secondly, the second communication link directly reuses the pre-established link, avoiding resource consumption caused by re-establishing the link, improving overall connection efficiency, and reducing costs.
[0150] The device control method disclosed in this embodiment establishes a target communication link between the first device and a second device when a first device that meets the target conditions is detected. The target communication link includes a first communication link between the first device and an electronic device, and a second communication link between the electronic device and the second device. The establishment of the first communication link involves: outputting a first link establishment request to the first device, obtaining connection information from the first device, activating the target network corresponding to the connection information, and establishing a connection with the target network based on the connection information, thereby establishing the first communication link. The second communication link is established between the second device and the electronic device before the first device that meets the target conditions is detected. The target data in the first device is transmitted to the second device through both the first and second communication links to complete the backup. This solution establishes communication links between the first and second devices and the electronic device respectively, and then bridges them through the electronic device, achieving the establishment of a link between the first and second devices. It eliminates the need for complex network configurations, breaks the limitations of physical interfaces and network protocols between devices, and allows any device that can connect to the electronic device to indirectly transmit data with other devices, improving data transmission efficiency.
[0151] This embodiment discloses a device control method applied to electronic devices, the flowchart of which is shown in Figure 8, including:
[0152] Step S81: If a first device that meets the target conditions is detected, determine the device information of the first device;
[0153] Step S82: Determine the device information of at least one device connected to the wireless communication network currently in which the electronic device is located;
[0154] Step S83: If it is determined that the device information of at least one device connected to the wireless communication network does not include the device information of the first device, the configuration information of the wireless communication network is sent to the first device so that the first device is in the wireless communication network based on the configuration information.
[0155] Step S84: Output a second link establishment request to the first device, so that the first device can establish a target communication link between the first device and the second device through the wireless communication network based on the second link establishment request;
[0156] Step S85: Send the target data in the first device to the second device through the target communication link so that the target data can be stored in the second device.
[0157] When the first device meets the target conditions, the device information of the first device is determined, and a target communication link between the first device and the second device is established based on the device information of the first device. The target data in the first device is sent to the second device through the target communication link, thereby realizing the backup of the target data of the first device on the second device. The above process does not require user operation, which simplifies the backup process and improves the user experience.
[0158] Furthermore, establishing a target communication link between the first device and the second device can be specifically achieved by: determining the device information of at least one device connected to the wireless communication network currently in which the electronic device is located; if the device information of the at least one device connected to the wireless communication network does not include the device information of the first device, sending the configuration information of the wireless communication network to the first device so that the first device is in the wireless communication network based on the configuration information; and outputting a second link establishment request to the first device so that the first device establishes a target communication link between the first device and the second device through the wireless communication network based on the second link establishment request.
[0159] In this embodiment, the target communication link between the first device and the second device is a direct link between the first device and the second device, which does not need to go through electronic devices. As shown in Figure 9, which is a schematic diagram of the target communication link between the first device and the second device, it includes: electronic device 91, first device 92 and second device 93, and target communication link a3 between the first device and the second device (the wireless communication link is represented by a dashed line). The target communication link does not need to go through electronic devices, but the establishment of the target communication link between the first device and the second device needs to be implemented by electronic devices.
[0160] When it is determined that data needs to be transmitted from the first device to the second device for backup, the electronic device determines that a target communication link needs to be established between the first device and the second device. At this time, the electronic device can first determine the device information of at least one device currently connected to its current wireless communication network. For example, if the current wireless communication network of the electronic device is determined to be the first WiFi network, then determine which devices are under the first WiFi network and obtain the device information of each device under the first WiFi network.
[0161] In this process, the electronic device and the second device must be in the same wireless communication network. Under the premise that the electronic device and the second device are in the same wireless communication network, it is determined whether the first device is in the same wireless communication network. If it is, the first device and the second device under the same wireless communication network can establish a communication link. If the first device is not in the same wireless communication network, it is necessary to control the first device to connect to the wireless communication network so that the first device and the second device can be in the same wireless communication network in order to establish a communication link.
[0162] For example: If it is determined that both the second device and the electronic device are under the first WiFi network, it is determined whether the device information of each device under the first WiFi network includes the device information of the first device. If not, the electronic device needs to send the configuration information of the first WiFi network to the first device (the electronic device can transmit the configuration information of the first WiFi network to the first device through NFC communication or other proprietary protocols). The first device receives the configuration information of the first WiFi network, configures the network based on the configuration information, and connects to the first WiFi network, so that the first device and the second device are both under the same wireless communication network, namely the first WiFi network.
[0163] When both the first device and the second device are on the first WiFi network, the first device and the second device can establish a communication link through the first WiFi network, thereby transmitting the target data of the first device to the second device through the communication link and backing it up on the second device.
[0164] In this embodiment, the electronic device automatically detects and identifies devices not yet connected to the network, and proactively pushes configuration information to them, enabling these devices (such as the first device) to access the network without user intervention, thus improving user experience. Furthermore, by discovering the network, checking its status, automatically configuring the network, and finally establishing a communication link, the problem of devices being unable to transmit data due to network isolation is solved. Secondly, the electronic device determines which devices are in the network, sends configuration information, and outputs a link establishment request, simplifying the point-to-point negotiation process between devices. The unified scheduling by the electronic device improves the efficiency and reliability of multi-device collaboration. Additionally, this solution does not rely on the existing network topology; any device meeting the target conditions can dynamically join the network architecture. The addition of a device meeting the target conditions automatically grants it the ability to establish communication links with other devices in the network (such as the second device), greatly facilitating system expansion and maintenance. Finally, the first device is guided to the wireless communication network where the electronic device is located, ensuring all devices are in the same network before establishing a direct link, guaranteeing low latency and high bandwidth for subsequent data transmission.
[0165] Furthermore, the device control method disclosed in this embodiment can also be:
[0166] When an electronic device connects to a specific communication network, and it is determined that the devices connected to that specific WiFi network include a second device but not the first device (i.e., the first device is not connected to the specific communication network), the electronic device can output a prompt message to the first device, prompting it to connect to the specific communication network. Upon receiving the prompt message, the first device automatically searches for networks based on the prompt message. Once the specific communication network is found, it connects to it. If the first device has stored configuration information (e.g., password) for the specific communication network, it connects directly based on the stored configuration information. If the first device has not previously connected to the specific communication network, it does not store its configuration information. In this case, an input box can be displayed so that the user can manually enter the configuration information (e.g., password) for the specific communication network, enabling the first device to connect to the specific communication network. Furthermore, when the first and second devices are on the same communication network, a wireless communication link is established between them, ensuring efficient data transmission and effective data backup for the first device.
[0167] The device control method disclosed in this embodiment, when detecting a first device that meets the target conditions, if it is determined that the first device is not among the at least one device connected to the wireless communication network currently in which the electronic device is located, then the configuration information of the wireless communication network needs to be sent to the first device so that the first device can connect to the wireless communication network based on the configuration information. Afterwards, a second link establishment request is output to the first device so that the first device can establish a target communication link between itself and the second device through the wireless communication network, and achieve the purpose of transmitting the target data from the first device to the second device for backup through the target communication link. This solution guides the first device to the wireless communication network currently in which the electronic device is located, so that the first device, the second device, and the electronic device are all in the same wireless communication network, and then establishes a direct link between the first device and the second device. This ensures that data transmission has the characteristics of low latency, high bandwidth, and no consumption of cellular data traffic, providing an ideal network environment for high-quality, high-volume automatic backup.
[0168] This embodiment discloses an electronic device, the structural schematic of which is shown in Figure 10, including:
[0169] First interface 101 and processor 102.
[0170] The first interface 101 is used to connect to the second device;
[0171] The processor 102 is used to determine the device information of the first device when a first device that meets the target conditions is detected; establish a target communication link between the first device and a second device based on the device information of the first device, wherein the second device is any device connected to an electronic device; and send the target data in the first device to the second device through the target communication link so as to store the target data in the second device.
[0172] Furthermore, the electronic device disclosed in this embodiment may also include: a second interface, which is used to connect to an external power supply and to supply power to the electronic device through the external power supply.
[0173] Furthermore, the electronic device disclosed in this embodiment may also include a memory for storing programs required by the processor to execute the above-described processing procedure.
[0174] Furthermore, the processor is also used for:
[0175] If the charging coil of the electronic device is detected to be active, the first device is charged by the electronic device, and it is determined that the first device meets the target condition.
[0176] Furthermore, the processor is also used for:
[0177] Output an authentication request to the first device, the authentication request including at least: the identifier of the electronic device or the identifier of the second device; obtain feedback information output by the first device in response to the authentication request; if the feedback information indicates that the authentication is successful, determine that the first device meets the target conditions.
[0178] Furthermore, the processor is also used for:
[0179] Obtain the historical transmission records of the electronic device, which contain data transmission information transmitted through the electronic device; if it is determined that the historical transmission records contain data transmission records of the first device and the second device transmitted through the electronic device, determine that the first device meets the target condition; if it is determined that the historical transmission records do not contain data transmission records of the first device and the second device transmitted through the electronic device, output an authentication request to the first device.
[0180] Furthermore, the processor is used for:
[0181] Based on the data transmission information of the first device and the second device through electronic devices in the historical transmission records, the target data in the first device is determined. The data transmission information includes at least: the identification information of the data transmitted by the first device to the second device through electronic devices; and the sending of the target data to the second device through the target communication link.
[0182] Furthermore, the processor is used for:
[0183] Locate the identification information of the data stored in the first device; identify the identification information of the data stored in the first device that is inconsistent with the identification information of the data transmitted from the first device to the second device through the electronic device in the historical transmission record, and determine the data corresponding to the inconsistent identification information as the target data.
[0184] Furthermore, the target communication link includes: a first communication link and a second communication link, wherein the second communication link is a communication link established between the second device and the electronic device before the first device that meets the target conditions is detected;
[0185] The processor is used for:
[0186] Output a first link establishment request to the first device; obtain connection information fed back by the first device based on the first link establishment request, and the first device starts the target network corresponding to the connection information; establish a connection with the target network started by the first device based on the connection information to establish a first communication link between the first device and the electronic device; establish a target communication link based on the first communication link and the second communication link.
[0187] Furthermore, the processor is used for:
[0188] Determine the device information of at least one device connected to the wireless communication network currently in which the electronic device is located; if the device information of at least one device connected to the wireless communication network does not include the device information of the first device, send the configuration information of the wireless communication network to the first device so that the first device is in the wireless communication network based on the configuration information; output a second link establishment request to the first device so that the first device establishes a target communication link between the first device and the second device through the wireless communication network based on the second link establishment request.
[0189] Furthermore, the electronic device disclosed in this embodiment is implemented based on the device control method disclosed in the above embodiments, and will not be described again here.
[0190] The electronic device disclosed in this embodiment, upon detecting a first device that meets the target conditions, establishes a target communication link between the first device and a second device based on the device information of the first device. The second device can be any device connected to the electronic device. The target data from the first device is sent to the second device via the target communication link for storage. This embodiment's solution aims to back up the target data in the first device. As soon as a first device meeting the target conditions is detected, a communication link is automatically established and the target data is sent. The entire process requires no manual user operation or physical connection, simplifying the operation process and improving the user experience. Furthermore, the link establishment and data transmission steps are executed automatically, eliminating the time delay caused by manual user operation. This achieves efficient, timely, and preventative data protection or synchronization, enhancing the intelligence level of data management.
[0191] This embodiment discloses a device control system, the structural diagram of which is shown in Figure 11, including:
[0192] First device 111, second device 112 and electronic device 113.
[0193] The second device 112 is connected to the electronic device 113. In Figure 11, the dashed line represents the wireless connection between the devices, and the solid line represents the wired connection between the devices.
[0194] The electronic device 113 is used to determine the device information of the first device when a first device that meets the target conditions is detected; establish a target communication link between the first device and the second device based on the device information of the first device; and send the target data in the first device to the second device through the target communication link so as to store the target data in the second device.
[0195] Furthermore, the equipment control system disclosed in this embodiment is implemented based on the equipment control method disclosed in the above embodiments, and will not be described again here.
[0196] The device control system disclosed in this embodiment, upon detecting a first device that meets the target conditions, establishes a target communication link between the first device and a second device based on the device information of the first device. The second device can be any device connected to the electronic device. The target data from the first device is sent to the second device via the target communication link for storage. This embodiment's solution aims to back up the target data in the first device. As soon as a first device meeting the target conditions is detected, a communication link is automatically established and the target data is sent. The entire process requires no manual user operation or physical connection, simplifying the operation process and improving the user experience. Furthermore, the link establishment and data transmission steps are executed automatically, eliminating the time delay caused by manual user operation. This achieves efficient, timely, and preventative data protection or synchronization, enhancing the intelligence level of data management.
[0197] This application also provides a readable storage medium storing a computer program, which is loaded and executed by a processor to implement the steps of the above-described device control method. The specific implementation process can be referred to the description of the corresponding part of the above embodiments, and will not be repeated in this embodiment.
[0198] This application also proposes a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various optional implementations of the above-described device control method or device control system. Specific implementation processes can be referred to the descriptions of the corresponding embodiments above, and will not be repeated here.
[0199] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0200] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0201] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0202] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A device control method, applied to electronic equipment, comprising: If a first device that meets the target conditions is detected, determine the device information of the first device; Based on the device information of the first device, a target communication link is established between the first device and the second device, wherein the second device is any device connected to the electronic device; target data in the first device is sent to the second device through the target communication link so that the target data is stored in the second device.
2. The method according to claim 1, further comprising: If the charging coil of the electronic device is detected to be active, the first device is charged by the electronic device, and it is determined that the first device meets the target condition.
3. The method according to claim 1, further comprising: Output an authentication request to the first device, the authentication request including at least: the identifier of the electronic device or the identifier of the second device; obtain feedback information output by the first device in response to the authentication request; if the feedback information indicates that the authentication is successful, determine that the first device meets the target conditions.
4. The method according to claim 2 or 3, wherein the detection of the first device satisfying the condition further comprises: Obtain the historical transmission records of the electronic device, which contain data transmission information transmitted through the electronic device; If it is determined that the historical transmission records contain a transmission record of data transmission between the first device and the second device through the electronic device, the first device is determined to meet the target condition; if it is determined that the historical transmission records do not contain a transmission record of data transmission between the first device and the second device through the electronic device, an authentication request is output to the first device.
5. The method according to claim 4, wherein sending the target data in the first device to the second device through the target communication link comprises: Based on the data transmission information of the first device and the second device transmitting data through the electronic device in the historical transmission records, the target data in the first device is determined. The data transmission information includes at least: identification information of the data transmitted by the first device to the second device through the electronic device; and the target data is sent to the second device through the target communication link.
6. The method according to claim 5, wherein determining the target data in the first device based on the data transmission information of the first device and the second device transmitting data through the electronic device in the historical transmission record includes: Locate the identification information of the data stored in the first device; Identify the identification information of the data stored in the first device that is inconsistent with the identification information of the data transmitted from the first device to the second device through the electronic device in the historical transmission record, and determine the data corresponding to the inconsistent identification information as the target data.
7. The method according to claim 1, wherein the target communication link comprises: A first communication link and a second communication link, wherein the second communication link is a communication link established between the second device and the electronic device before the detection of a first device that meets the target condition; The step of establishing a target communication link between the first device and the second device includes: outputting a first link establishment request to the first device; obtaining connection information fed back by the first device based on the first link establishment request, and the first device activating a target network corresponding to the connection information; establishing a connection with the target network activated by the first device based on the connection information to establish a first communication link between the first device and the electronic device; and establishing the target communication link based on the first communication link and the second communication link.
8. The method according to claim 1, wherein the electronic device and the second device are in the same wireless communication network, and the step of establishing a target communication link between the first device and the second device includes: Determine the device information of at least one device connected to the wireless communication network currently in which the electronic device is located; If it is determined that the device information of at least one device connected to the wireless communication network does not include the device information of the first device, the configuration information of the wireless communication network is sent to the first device so that the first device is in the wireless communication network based on the configuration information; A second link establishment request is output to the first device, so that the first device can establish a target communication link between the first device and the second device through the wireless communication network based on the second link establishment request.
9. An electronic device, comprising: The first interface is used to connect to the second device; The processor is configured to determine device information of the first device when a first device that meets the target conditions is detected; Based on the device information of the first device, a target communication link is established between the first device and the second device, wherein the second device is any device connected to the electronic device; target data in the first device is sent to the second device through the target communication link so that the target data is stored in the second device.
10. A device control system, comprising: First equipment; A second device, which is connected to an electronic device; An electronic device for determining device information of the first device when a first device that meets a target condition is detected; Based on the device information of the first device, a target communication link is established between the first device and the second device; The target data in the first device is sent to the second device through the target communication link so that the target data can be stored in the second device.