Control method and electronic device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2026-05-29
- Publication Date
- 2026-08-07
AI Technical Summary
对于以上场景,往往需要用户手动选择设备运行模式,从而完成切换,操作复杂且效率低下
Smart Images

Figure CN122534576A_ABST
Abstract
Description
Technical Field
[0001] This application relates to, but is not limited to, the field of control, and in particular to a control method and an electronic device. Background Technology
[0002] When using electronic devices, users may need to switch device operating modes, such as putting the device into sleep mode or waking it up from sleep mode. For these scenarios, users often need to manually select the device operating mode to complete the switch, which is cumbersome and inefficient. Summary of the Invention
[0003] In view of this, embodiments of this application provide at least one control method and an electronic device.
[0004] The technical solution of this application embodiment is implemented as follows: This application provides a control method applied to a first electronic device, the control method comprising: Obtain the first operating mode of the target electronic device; the target electronic device is the first electronic device or other devices connected to the first electronic device, excluding the second electronic device; In response to obtaining the target signal, a second operating mode corresponding to the first operating mode is determined; the target signal indicates a change in the connection state between the first electronic device and the second electronic device. Control the target electronic device to switch to the second operating mode.
[0005] This application provides an electronic device, applied to a first electronic device, including a connection module and a processor; The connection module is used to connect to other electronic devices; The processor is used to: acquire a first operating mode of the target electronic device; the target electronic device is the first electronic device or other devices connected to the first electronic device, excluding the second electronic device; In response to obtaining the target signal, a second operating mode corresponding to the first operating mode is determined; the target signal indicates a change in the connection state between the first electronic device and the second electronic device. Control the target electronic device to switch to the second operating mode.
[0006] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description
[0007] Figure 1 This is a schematic diagram illustrating the implementation process of a control method provided in an embodiment of this application; Figure 2This is a schematic diagram of the composition structure of an electronic device provided in an embodiment of this application; Figure 3 This is a schematic diagram of a linear movement track for a movable slider provided in an embodiment of this application; Figure 4 This is a schematic diagram of a circular moving track for a movable slider provided in an embodiment of this application. Figure 1 ; Figure 5 This is a schematic diagram of a circular moving track for a movable slider provided in an embodiment of this application. Figure 2 ; Figure 6 This is a schematic diagram illustrating a connection method between a first electronic device and a second electronic device provided in an embodiment of this application; Figure 7 This is a schematic diagram illustrating the implementation process of a method for achieving fast Bluetooth device connection and PC sleep mode according to an embodiment of this application. Figure 8 This is a schematic diagram of the composition structure of a control device provided in an embodiment of this application.
[0008] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation
[0009] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0010] In the following description, the terms "first / second / third" are used merely to distinguish similar objects and do not represent a specific ordering of the objects. It is understood that "first / second / third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for descriptive purposes only and is not intended to limit the scope of this application. It should also be noted that, for ease of description, only the parts relevant to the application are shown in the accompanying drawings.
[0011] This application provides a control method applied to a first electronic device. In implementation, the first electronic device can be an electronic device with data processing capabilities, and / or an electronic device capable of data interaction with other electronic devices. Exemplarily, the electronic device can refer to a server, personal computer (PC), laptop, tablet, desktop computer, smart TV, set-top box, mobile device (e.g., mobile phone, portable video player, personal digital assistant, dedicated messaging device, portable gaming device), or other devices with data processing capabilities; it may also include extension devices connected to the electronic device, such as hubs, docking stations, and / or conversion devices, such as multi-computer switches (KVM), and other external devices. Figure 1 As shown, the method includes the following steps S101 to S103: Step S101: Obtain the first operating mode of the target electronic device; the target electronic device is the first electronic device or other devices connected to the first electronic device, excluding the second electronic device.
[0012] Here, the second electronic device is an external device that can connect to the first electronic device. For example, depending on its function, the second electronic device may include input devices such as a mouse and keyboard; or output devices such as headphones and speakers.
[0013] The first operating mode is the current operating mode of the target electronic device. The operating mode can include a working mode or a non-working mode; the non-working mode can include, but is not limited to, standby mode, sleep mode, hibernation mode, power-off mode, etc.
[0014] The target electronic device can be a first electronic device or a third electronic device that is different from both the first electronic device and the second electronic device.
[0015] In practice, if the target electronic device is a first electronic device, the first electronic device can obtain the current operating mode through system applications or corresponding interfaces; if the target electronic device is a third electronic device, the first electronic device can obtain the current operating mode of the third electronic device based on the connection status with the third electronic device or by communicating with the third electronic device.
[0016] For example, the Dock can be the first electronic device, and the target electronic device can be a laptop. The Dock can be connected to the laptop (the third electronic device) via a cable with a Universal Serial Bus (USB) interface to obtain the current operating mode of the laptop.
[0017] For example, a desktop computer is the primary electronic device, and the target electronic device can be the desktop computer itself. The desktop computer can obtain its current operating mode in real time through system settings.
[0018] Step S102: In response to obtaining the target signal, determine the second operating mode corresponding to the first operating mode; the target signal indicates a change in the connection state between the first electronic device and the second electronic device.
[0019] Here, the target signal can be a signal received by the first electronic device in response to a change in the connection state between the first and second electronic devices; wherein, the connection state can include, but is not limited to, at least one of physical connection state, electrical connection state, and communication connection state. In implementation, a change in the connection state can include a switch from being connected to being disconnected, or a switch from being disconnected to being connected, between the first and second electronic devices. In this scenario, the second electronic device and the target electronic device can be used in combination or independently.
[0020] For example, in response to the second electronic device connecting to the first electronic device, the first electronic device can obtain an event representing the activation or control of the second electronic device as a target signal, and further determine the operating mode to be switched to (i.e., the second operating mode) of the target electronic device based on the current operating mode (i.e., the first operating mode) of the target electronic device, so that the user can collaboratively operate the target electronic device by controlling the second electronic device.
[0021] For example, the first electronic device can respond to the disconnection between the second electronic device and the first electronic device, obtain an event representing the shutdown or control of the second electronic device as a target signal, and further determine the operating mode to be switched of the target electronic device according to the current operating mode of the target electronic device, so that the user can switch the operating mode of the target electronic device while controlling the switch of the second electronic device.
[0022] In some implementations, the second electronic device may be connected to the first electronic device via wired or wireless means.
[0023] For example, the second electronic device can be connected to the first electronic device via a transmission cable.
[0024] For example, a connection can be established between a second electronic device and a first electronic device through physical contact of metal contacts or spring structures (such as springs or spring pins) that enable electrical connection.
[0025] For example, the second electronic device can connect to the first electronic device via wireless network or Near Field Communication (NFC).
[0026] During implementation, the method and / or location for connecting the second electronic device to the first electronic device can be determined based on the size of the second electronic device.
[0027] For example, when the second electronic device is a small device such as a mouse or headphone charging case, the second electronic device can be placed on top of the first electronic device (such as a dock) to further complete the wired or wireless connection between the two.
[0028] For example, if the second electronic device is a wireless keyboard or an irregularly shaped medium-sized external device, it can make lateral contact with the first electronic device (such as a laptop computer) to further complete the wired or wireless connection between the two.
[0029] Step S103: Control the target electronic device to switch to the second operating mode.
[0030] Here, the second operating mode is an operating mode different from the first operating mode of the target electronic device. During implementation, when the target electronic device switches from the first operating mode to the second operating mode, it can switch from the same type of mode to a different type of mode, or from the same type of mode to a specific different mode under the same type of mode.
[0031] For example, it can switch the target electronic device from working mode to non-working mode.
[0032] For example, it can switch the target electronic device from sleep mode (non-working mode) to power-off mode (non-working mode).
[0033] In this embodiment, the first electronic device responds to a change in the connection status between itself and the second electronic device based on a target signal, thereby controlling the target electronic device to switch its operating mode. In this way, the first electronic device can predict the user's usage needs for the target electronic device based on the connection status of the external device (the second electronic device) and the current operating status of the target electronic device, thereby achieving automatic switching of the target electronic device's operating mode. This reduces the operational complexity for the user when switching the target electronic device's operating mode, improves interaction efficiency by enhancing operational convenience, and ultimately improves the user's device experience.
[0034] In some embodiments, step S102 may include one of steps S111 to S112: Step S111: In response to obtaining the first target signal, if the first operating mode is a non-working mode, determine the second operating mode as a working mode; the first target signal indicates that the connection state between the first electronic device and the second electronic device has switched from a connected state to a disconnected state.
[0035] Here, the first target signal is a target signal indicating that the connection between the second electronic device and the first electronic device is broken.
[0036] It is understandable that if the connection between the second electronic device and the first electronic device is broken, it indicates that the user is more likely to have a need to use the second electronic device, and the operation of the second electronic device will not depend on its connection with the first electronic device.
[0037] In this situation, the target electronic device is currently in a non-operating mode (such as hibernation mode, sleep mode, etc.). It can be inferred that the user will need to coordinate with the second electronic device to control or use the target electronic device, thereby determining the operating mode (such as normal operating mode, high power operating mode, or low power operating mode, etc.) as the second operating mode.
[0038] In implementation, when the non-working mode is the power-off mode, the target electronic device can be a third electronic device. The first electronic device can respond to receiving the first target signal and control the third electronic device to start up, thereby enabling it to enter the working mode from the power-off mode. In other non-working modes, the target electronic device can be the first electronic device, thereby responding to receiving the first target signal in the low-power non-working mode and switching to the higher-power working mode to wake up the first electronic device.
[0039] Step S112: In response to obtaining the second target signal, if the first operating mode is the working mode, determine the second operating mode as the non-working mode; the second target signal indicates that the connection state between the first electronic device and the second electronic device has switched from the unconnected state to the connected state.
[0040] Here, the second target signal is a target signal indicating the establishment of a connection between the second electronic device and the first electronic device.
[0041] It is understandable that when a connection is established between the second electronic device and the first electronic device, it indicates that the user likely does not currently require a connection between the second electronic device and the target electronic device. Therefore, the second electronic device is connected to the first electronic device to allow the first electronic device to operate or control the second electronic device. In scenarios where the target electronic device is the first electronic device, the connection state between the first and second electronic devices changes from an unconnected state to a connected state, which can be set to trigger the non-operating mode of the first electronic device.
[0042] Given the above situation, the target electronic device is currently in working mode, and it can be inferred that the user will not need to control or use the target electronic device in the future, thus the non-working mode is determined as the second operating mode.
[0043] In implementation, when the target electronic device is a third electronic device and the first operating mode is the working mode, the first electronic device can respond to receiving the second target signal and control the third electronic device to enter the non-working mode from the working mode. Furthermore, the operating mode of the first electronic device can be set to the working mode or the non-working mode. When the target electronic device is the first electronic device and the first operating mode is the working mode, the first electronic device can respond to receiving the second target signal and automatically enter the non-working mode from the working mode after completing or terminating the currently executed or pending task, thereby realizing the hibernation of the first electronic device.
[0044] In this embodiment, the first electronic device controls the target electronic device to switch to different operating modes in response to different types of target signals. This allows for automatic wake-up of the sleep or hibernation target electronic device, or automatic hibernation of the operating target electronic device, based on the different connection status changes between the first and second electronic devices. This reduces the complexity of switching between different operating modes for the user in different usage scenarios of the target electronic device, further improving the user's device experience.
[0045] In some embodiments, step S112 may include steps S121 to S122: Step S121: In response to obtaining the second target signal, if the first operating mode is the working mode, output a prompt message; the prompt message is used to guide the user to select at least one of the multiple non-working operating modes.
[0046] Here, non-working operation modes may include, but are not limited to, at least one of the above-mentioned sleep mode (S3), hibernation mode (S4), shutdown mode (S5).
[0047] In implementation, the prompt information may include, but is not limited to, at least one of text information, voice information, and image information. For example, the prompt information may include trigger controls corresponding to different non-working type operating modes, or it may include a system interface for setting the device's operating mode; this application embodiment does not limit this.
[0048] For example, in response to receiving a second target signal, the first electronic device may display a control for various non-working operation modes on the display interface of the first electronic device, and in response to the user selecting at least one of the controls to perform a trigger operation (such as clicking or inputting), thereby obtaining the target non-working mode.
[0049] For example, the first electronic device can respond to receiving the second target signal and control the target electronic device to display the operating mode selection interface in the system settings, and respond to the user selecting at least one non-working type of operating mode to obtain the target non-working mode.
[0050] For example, if both the first electronic device and the target electronic device are equipped with displays, the same or different types of prompt information are displayed on the display interfaces of both devices, and the user's trigger operation (such as clicking or inputting) on the prompt information in at least one of the display interfaces is obtained to obtain the target non-working mode.
[0051] For example, in response to receiving the second target signal, the first electronic device can play voice information prompting the user to select an operating mode, and further collect the user's voice feedback data, and determine the target non-working mode selected by the user by analyzing the audio.
[0052] Step S122: Determine the target non-working mode selected by the user as the second operating mode.
[0053] Here, the target non-working mode is at least one operating mode selected by the user from a variety of non-working types of operating modes.
[0054] In some implementations, users can select one or more non-working operating modes as the final operating mode to be switched to for the target electronic device.
[0055] For example, sleep mode, hibernation mode, or power-off mode can be directly used as the final switching mode for the target electronic device.
[0056] For example, sleep mode and power-off mode can be set as the final modes to be switched to before the target electronic device is turned on again. For instance, after the user selects sleep mode and power-off mode as the target non-working mode, the target electronic device can be controlled to switch to sleep mode within a preset time (such as 10 minutes, half an hour, 1 hour, etc.) and switch to power-off mode after the preset time.
[0057] In this embodiment, the first electronic device responds to the second target signal and outputs a prompt message to the user, enabling the user to select a second operating mode. This approach, on the one hand, by prompting the user to select the device operating mode to switch to, a secondary determination of the specific type of non-working mode is made, reducing the possibility of accidental switching of operating modes and improving the scenario adaptability and user satisfaction of the second operating mode. On the other hand, by setting one or more target non-working modes as the second operating mode, the flexibility of switching device operating modes is improved (e.g., the user can re-wake up the device shortly after switching to the first target non-working mode according to usage needs, without entering subsequent target non-working modes), further enhancing user satisfaction.
[0058] Understandably, in order to reduce the possibility of users accidentally connecting the first electronic device and the second electronic device, resulting in receiving the second target signal and thus accidentally switching the operating mode, the output prompt information can also provide user-selectable information indicating that the first operating mode should be maintained, thereby further improving the user experience.
[0059] In some embodiments, the control method described above may further include the following step S131: Step S131: In response to obtaining the second target signal, if the first operating mode is the working mode, charge the second electronic device.
[0060] Here, since "obtaining the second target signal" indicates that the user is likely not currently in need of connecting the second electronic device to the target electronic device, it can be inferred that the user is unlikely to be currently using the second electronic device and / or the target electronic device. Charging the second electronic device at this time can prepare the user for the next use of the second electronic device without affecting the user's use of the second electronic device and / or the target electronic device, even if the device has sufficient power.
[0061] For example, the first electronic device is a wireless charging device, the second electronic device is a Bluetooth headset that supports wireless charging, and the target electronic device is a mobile phone. The wireless charging device can respond to the headset being placed on it (triggering an electrical connection) and the mobile phone, also placed on the wireless charging device, being in a screen-on state (working state), controlling the mobile phone to enter a screen-off state (non-working state) and charging the headset.
[0062] For example, both the first electronic device and the target electronic device are laptops, and the second electronic device is a wireless keyboard. The laptop can switch from normal operation (working state) to standby state (non-working state) after the metal contacts of the wireless keyboard make contact with the metal contacts on the side of the laptop (physical contact forms a circuit and triggers an electrical connection), and charge the wireless keyboard through the contacts.
[0063] In this embodiment, when the first electronic device receives the second target signal, and the first operating mode of the target electronic device is in working mode, it charges the second electronic device. This allows the target electronic device to automatically enter sleep mode and the external device to charge automatically when connected to the first electronic device, increasing the likelihood that the external device will have sufficient power when used again, thus improving the user experience in multi-device scenarios.
[0064] In some embodiments, step S102 may include step S141: Step S141: In response to obtaining the target signal, if the second electronic device is powered on, determine the second operating mode.
[0065] Here, the target signal represents a change in the connection state between the first electronic device and the second electronic device, that is, a change in the usage state of the second electronic device, such as the second electronic device switching from a working state to a non-working state, the second electronic device switching from a non-working state to a working state, the second electronic device switching from not working together to working together with the target electronic device, and / or the second electronic device switching from working together to not working together with the target electronic device, etc.
[0066] Based on this, the type of change in the usage status of the second electronic device can be further determined by whether the second electronic device is powered on, thereby determining whether the target electronic device needs to switch from the first operating mode to the second operating mode.
[0067] For example, the second electronic device can be considered a valid device only if it is powered on (i.e., the second electronic device is in an "on" state), and only changes in the connection state between the second and first electronic devices can trigger a switch in the operating mode of the target electronic device. The target electronic device can be the same as or different from the first electronic device. This reduces the possibility of erroneous switching of the target electronic device's operating mode due to the user mistakenly changing the connection state between the second and first electronic devices.
[0068] For example, the second electronic device can be considered to be in a working or standby state when it is powered on. In this case, changes in the connection between the second and first electronic devices are needed to indicate a change in the operating mode of the target electronic device, such as whether the second electronic device is used to coordinate with the target electronic device. The standby state corresponds to scenarios where the device is powered on but not used, such as a Bluetooth device being powered on but not connected to Bluetooth, or an input device being powered on but not used for input.
[0069] The above control method may further include the following step S142: Step S142: In response to obtaining the third target signal, if the first operating mode is the working mode, charge the second electronic device; the third target signal indicates that the connection state between the first electronic device and the second electronic device has switched from an unconnected state to a connected state, and the second electronic device is in a power-off state.
[0070] Here, after switching from being unconnected to connected with the second electronic device, the first electronic device can acquire the device information of the second electronic device. This device information includes at least parameters indicating whether the second electronic device is powered on (such as electrical parameters like voltage and current, clock signals, communication bus information, temperature, and fan speed). Furthermore, if the second electronic device is powered off, it can acquire a third target signal. Unlike the aforementioned second target signal, upon acquiring the third target signal, if the target electronic device is currently in its operating mode (first operating mode), the first electronic device can stop controlling the target electronic device to switch operating modes and instead charge the second electronic device. This allows for charging control of the second electronic device based on the connection status between the first and second electronic devices without affecting the use of the target electronic device.
[0071] During implementation, when the second electronic device is in a power-off state (i.e., the second electronic device is not turned on), it can make contact with the physical structure on the first electronic device through the physical structure (such as metal contacts or springs) provided on it, thereby achieving connection with the first electronic device.
[0072] In this embodiment, by combining the target signal and whether the second electronic device is powered on, it is further determined whether to switch the current operating mode (first operating mode) of the target electronic device or whether to charge the second electronic device. Thus, during the use of the target electronic device, even if the first electronic device is connected to an external device (the second electronic device), the operating mode of the target electronic device does not need to be switched because the external device is powered off. Therefore, by combining the power on / off status of the external device and the connection status between devices, more accurate device operating status control and device charging control can be achieved, improving the applicability of device application scenarios and enhancing the user's device experience.
[0073] In some embodiments, the control method described above may further include the following steps S151 to S152: Step S151: In response to obtaining the fourth target signal, acquire the device information of the second electronic device; the fourth target signal indicates that after the connection state between the first electronic device and the second electronic device changes from an unconnected state to a connected state, it changes back to an unconnected state within a target time period.
[0074] Here, the device information of the second electronic device may further include parameter information characterizing its communication status with the first electronic device. For example, the device information may also include, but is not limited to, at least one of the following: session information corresponding to the device serial number (ID) of the second electronic device, communication link, pairing information, etc. Here, the communication status differs from the connection status characterized by the fourth target signal. The connection status characterized by the fourth target signal includes the contact status between the first and second electronic devices, which can be at least one of physical contact or electrical connection. The communication status characterizes whether a communication link has been established between the first and second electronic devices.
[0075] The target duration is a preset maximum duration used to trigger the determination of the communication status between the first electronic device and the second electronic device. For example, the target duration may include, but is not limited to, 2 seconds, 3 seconds, 5 seconds, etc., and the specific value of the target duration is not limited in this application embodiment.
[0076] If the connection status between the first electronic device and the second electronic device changes from an unconnected state to a connected state, and then changes back to an unconnected state within the target time period, it indicates that the second electronic device is not used to trigger the switching of the target electronic device's operating mode, but rather to determine the communication status between the first electronic device and the second electronic device.
[0077] During implementation, the first electronic device can obtain the device information of the second electronic device through a preset application or plugin.
[0078] For example, when the first electronic device is the same as the target electronic device, the first electronic device can obtain device information of other devices connected to the first electronic device, including device information of the second electronic device, through an information capture application running in the control system (such as an operating system).
[0079] For example, when the first electronic device is an external extension device of the target electronic device (i.e., the third electronic device), the first electronic device can send the device serial number or device name of the second electronic device to the target electronic device after connecting to the second electronic device, thereby obtaining the device information of the second electronic device through the plug-in running in the target electronic device.
[0080] Step S152: If no communication is established between the target electronic device and the second electronic device, a communication request is sent to the second electronic device so that the second electronic device establishes communication with the target electronic device in response to the communication request.
[0081] Here, a communication request is a request information used to establish a communication link between a second electronic device and a target electronic device. For example, a communication request may include, but is not limited to, at least one of signals, events, data packets, etc., that characterize the establishment of a communication link.
[0082] A communication link is established between the target electronic device and the second electronic device for data exchange and / or coordinated control of the devices.
[0083] For example, the first electronic device is identical to the target electronic device. The target electronic device can establish communication with the second electronic device to enable the application of the functions supported by the second electronic device during the use of the target electronic device. For instance, the second electronic device can be a wireless keyboard, wireless microphone, Bluetooth mouse, or other wireless input device. When there is a physical or electrical connection between the first electronic device (such as a tablet or laptop) and the wireless input device, wireless communication can be established to enable the input of information into the first electronic device using the aforementioned wireless input device, i.e., collaborative control between multiple devices.
[0084] For example, the first electronic device differs from the target electronic device (i.e., the third electronic device). Even when device information indicates that no communication has been established between the target electronic device and the second electronic device, the first electronic device can control the target electronic device to send a communication request to the second electronic device, thereby enabling the second electronic device to establish communication with the target electronic device. For instance, the second electronic device could be a Bluetooth speaker, and the first electronic device could be a docking station connected to a desktop computer (the third electronic device). The docking station, in response to a preset position of the Bluetooth speaker placed on the docking station, can send the Bluetooth speaker's device information to the desktop computer. This allows the desktop computer to send a pairing request (i.e., a communication request) to the Bluetooth speaker even when it is not paired with it, enabling the desktop computer to pair with the Bluetooth speaker and exchange audio data via Bluetooth, and to play audio from the Bluetooth speaker on the desktop computer.
[0085] It is understandable that, given that communication has been established between the target electronic device and the second electronic device, it can be assumed that if the connection status between the first electronic device and the second electronic device changes from an unconnected state to a connected state, and then changes back to an unconnected state within the target time period, it is highly likely that the user has mistakenly switched the connection. Therefore, it is possible to either not perform other operations or perform the operation status switching operation of the target electronic device.
[0086] In this embodiment, firstly, after obtaining a fourth target signal indicating that the connection state between the first and second electronic devices has switched from a connected state to an unconnected state for a duration not less than a target duration, device information of the second electronic device is acquired. Then, if the device information indicates that no communication has been established between the target electronic device and the second electronic device, a communication request is sent to the second electronic device, causing the second electronic device to establish communication with the target electronic device in response to the communication request. In this way, based on a preset duration threshold, it can be determined whether the switching of the connection state between the first and second electronic devices corresponds to a device operation mode switching scenario or a communication establishment scenario between devices. By combining the connection state and its timing information, more accurate device operation state control and communication control between devices can be achieved, improving the applicability of device application scenarios and enhancing the user's device experience.
[0087] In conjunction with the above control method, embodiments of this application provide an electronic device applied to a first electronic device (i.e., the electronic device in this application embodiment can serve as the first electronic device executing the above control method). In implementation, the electronic device can be an electronic device with data processing capabilities, and / or an electronic device capable of data interaction with other electronic devices. Exemplarily, the electronic device can refer to a server, personal computer (PC), laptop, tablet, desktop computer, smart TV, set-top box, mobile device (e.g., mobile phone, portable video player, personal digital assistant, dedicated messaging device, portable gaming device), or other devices with data processing capabilities; it can also include external devices such as extension devices (e.g., hubs, docking stations) and conversion devices (e.g., multi-computer switches) connected to the electronic device. Figure 2 As shown, the electronic device 200 may include a connection module 210 and a processor 220; The connection module 210 is used to connect to other electronic devices.
[0088] Here, in the case where the electronic device in this application embodiment corresponds to the first electronic device that executes the above control method, the connection module can be a component or device for making wired or wireless connections with the second electronic device, or the second electronic device and the third electronic device in the above embodiment.
[0089] For example, the connectivity module may include an expansion interface for wired connection to a third electronic device (such as a connection port in a docking station for connecting other devices).
[0090] For example, the connection module can be a wireless sensing module used to wirelessly connect to a second electronic device and a third electronic device via a network, Bluetooth, or NFC.
[0091] For example, the connection module can be an extension structure for making an electrical connection with a second electronic device through physical contact.
[0092] In some implementations, the electronic devices used with the first electronic device, as well as other electronic devices, include wireless sensing modules capable of wireless connection via networks, Bluetooth, or NFC. In this case, the connection between the first electronic device and other electronic devices (the second electronic device, the third electronic device) is a wireless signal link connection, at least capable of wireless signal transmission, and may or may not have established a wireless communication link.
[0093] Processor 220 is configured to: acquire a first operating mode of the target electronic device; the target electronic device is the first electronic device or other devices connected to the first electronic device, excluding the second electronic device; In response to obtaining the target signal, a second operating mode corresponding to the first operating mode is determined; the target signal indicates a change in the connection state between the first electronic device and the second electronic device. Control the target electronic device to switch to the second operating mode.
[0094] Here, the processor can be used to execute any step in the above control method, which will not be described again in the embodiments of this application.
[0095] In this embodiment, the electronic device is equipped with a connection module for connecting to other electronic devices. When acting as the first electronic device, its processor can respond to changes in the connection status between the first and second electronic devices based on a target signal, thereby controlling the target electronic device to switch its operating mode. Thus, in this embodiment, the electronic device acting as the first electronic device can predict the user's usage needs for the target electronic device based on the connection status of the external device (the second electronic device) and the current operating status of the target electronic device. This allows for automatic switching of the target electronic device's operating mode, reducing the complexity of switching the target electronic device's operating mode for the user, improving operational convenience and interaction efficiency, and ultimately enhancing the user's device experience.
[0096] In some embodiments, the connection module includes a first connector; the second electronic device is provided with a second connector, and the first connector and the second connector are used to physically contact to form a path so that the connection state between the first electronic device and the second electronic device is in a connected state.
[0097] In some implementations, the first connector and the second connector can be metal contacts or spring structures (such as spring clips or spring pins) that can form a path through physical contact to achieve electrical connection. In this case, the connection state between the first electronic device and the second electronic device is an electrical connection state, which can at least transmit electrical energy (such as voltage and current), and may or may not involve information exchange.
[0098] For example, when the electronic device used in the first electronic device is a dock, a spring structure can be provided on it as a first connector. This spring structure can form a path with the second connector made of metal on the wireless mouse through physical contact, thereby realizing the electrical connection between the dock and the wireless mouse. In implementation, when the electronic device is another type of device (such as a PC, mobile device, etc.), its corresponding first connector can also adopt the same or similar structure as in the above embodiments. For specific solutions, please refer to the description of the structure in the above embodiments. This application embodiment will not repeat it here.
[0099] It is understood that the connection module may include only a first connector that achieves electrical connection through physical contact, or it may include a third connector that achieves wireless connection through wireless sensing. This application embodiment does not limit this.
[0100] In implementation, in the first and second electronic devices, at the locations of the first and second connectors, or in areas adjacent to the locations of the first and second connectors, a metal or non-metal structure may be provided to restrict (or indicate) the placement posture (or position) of the first or second electronic device. This facilitates the user in quickly determining the final posture of the first and second electronic devices when they are in physical contact to achieve the corresponding function.
[0101] In this embodiment, the connection module includes a first connector for physically contacting a second connector of a second electronic device to form a pathway. This allows for a simple physical structure to connect the first and second electronic devices, enabling users to switch device operating modes with simple device movement, reducing operational complexity and improving the user experience.
[0102] In some embodiments, the electronic device is further provided with a shielding component; the first connector includes a first connection structure, a second connection structure and a third connection structure arranged sequentially on the electronic device; The occlusion component is used for one of the following: The third connection structure is blocked so that the second connector physically contacts the first and second connection structures to form a first path; the target signal corresponding to the first path represents the second operating mode as a user-defined non-working mode. The second connection structure is blocked so that the second connector makes physical contact with the first and third connection structures to form a second path; the target signal corresponding to the second path represents the second operating mode as the initial non-operating mode of the target electronic device.
[0103] Here, by blocking different connection structures, the pathways formed by the first connection structure and other different connection structures correspond to different types of second operating modes. In this way, by setting up blocking components, the types of second operating modes that the target electronic device can switch can be increased, further improving the flexibility of the device in switching operating modes.
[0104] The user-defined non-operating mode can be the same as or different from the electronic device's initial (i.e., the non-operating mode preset at the factory) non-operating mode. That is, when the first connector and the second connector make contact and form a path, a target signal representing the switching of the second operating mode to the non-operating mode can be obtained. However, the non-operating modes can be the same or different depending on the type of path.
[0105] For example, if the user has not modified the non-working mode type of the target electronic device, such as the default non-working mode being sleep mode, the user will trigger the blocking component to block the second or third connection structure, and after the second connector makes physical contact with the unblocked connection structure to form a path, the target electronic device will switch to sleep mode.
[0106] For example, if the user has set a custom non-working mode for the target electronic device, such as setting the low-power standby mode as the custom non-working mode, the user will trigger the blocking component to block the third connection structure, and after the second connector makes physical contact with the first and second connection structures to form a first path, the target electronic device will switch to the low-power standby mode. If the device's default non-working mode is sleep mode, the user will trigger the blocking component to block the second connection structure, and after the second connector makes physical contact with the first and third connection structures to form a second path, the target electronic device will switch to the low-power standby mode.
[0107] The first, second, and third connecting structures can each correspond to a part of a metal contact or spring structure (such as a spring clip or spring pin). In implementation, the type and number of the first, second, and third connecting structures can be the same or different.
[0108] For example, the second electronic device is a wireless mouse, and the second connector may include three metal contacts disposed on the bottom of the mouse; the target electronic device is a PC, and the first electronic device may be a dock connected to the PC. The first connector includes three sequentially arranged metal pogo pins disposed on the dock, namely the first connection structure, the second connection structure, and the third connection structure. In implementation, two of the three pogo pins contact the metal contacts on the bottom of the mouse at any given time, forming a path.
[0109] In some implementations, the shielding component can be a non-conductive material such as a baffle, slider, or button.
[0110] For example, for each second or third connection structure, a button can be provided next to the connection structure, which, when triggered, can pop up a baffle to cover the connection structure.
[0111] For example, the blocking component can be a movable slider, which can be moved to different positions of the connection structure to block different connection structures.
[0112] In this embodiment, by setting a blocking component in the electronic device, the second or third connecting structure of the first connecting structure, second connecting structure, and third connecting structure arranged sequentially in the first connector is blocked. This causes one of the second or third connecting structures to contact the second connector together with the first connecting structure, forming a corresponding path, thereby entering a user-defined or initial non-working mode of the target electronic device. In this way, different second operating mode switching strategies can be automatically executed based on the different contact modes corresponding to the first and second connectors. This allows the user to switch the non-working mode of the target electronic device simply by adjusting the position of the blocking component, reducing the operational complexity for the user in scenarios where different non-working modes need to be switched.
[0113] In some embodiments, the blocking component includes a movable slider and a moving track for the movable slider, the moving track including one of the following: a linear moving track between the second connecting structure and the third connecting structure, and a circular moving track between the second connecting structure and the third connecting structure.
[0114] Here, the linear motion track can be set as a fully linear track from the first connecting structure to the third connecting structure, or a partially linear track from the second connecting structure to the third connecting structure, depending on hardware or operational requirements.
[0115] For example, the track of the movable slider may include a straight track from the position that can block the first connecting structure to the position that can block the third connecting structure.
[0116] For example, such as Figure 3 As shown, the movable slider 34 in the first connector 30, on the side relatively close to the third connecting structure 33, has its farthest movable position completely obscuring the third connecting structure 33. On the side relatively far from the third connecting structure 33, the movable slider 34 has its farthest movable position completely obscuring the second connecting structure 32. The movable slider 34 does not obstruct the first connecting structure 31 in its linear movement track 35. Furthermore, the movable slider 34 may also include an anti-slip structure 341 (such as an anti-slip block) to facilitate user sliding of the movable slider 34.
[0117] In some embodiments, the annular moving track between the second connecting structure and the third connecting structure may be composed of a complete or partial annular structure. The annular structure may include, but is not limited to, one of the following: annular, spiral, elliptical, circular, triangular, trapezoidal, etc. The embodiments of this application do not limit this.
[0118] For example, such as Figure 4 As shown, the movable slider 44 in the first connector 40 can move along the annular moving track 45, and completes the blocking when it moves to the second connecting structure 42 or when it moves to the third connecting structure 43. The movable slider 44 will not block the first connecting structure 41 in its annular moving track 45.
[0119] For example, such as Figure 5 As shown, the movable slider 54 in the first connector 50 can move along the annular moving track 55 (the annular moving track 55 is...) Figure 4 The movable slider 54 does not obstruct the first connecting structure 51 in its circular moving track 45 (partially circular structure), and completes the obstruction when moving to the second connecting structure 52 or when moving to the third connecting structure 53.
[0120] It is understood that the illustrations in this application only show a longitudinal linear movement track. In practice, a transverse linear movement track or other forms of sliding trajectory movement track may also be provided. This application does not limit this.
[0121] In this embodiment, the blocking component is a movable slider. By setting different types of moving tracks, the movable slider can block different connection structures. In this way, the type of moving track corresponding to the movable slider in the first electronic device can be flexibly set according to hardware limitations or user needs. This allows the user to select the first electronic device with different track types according to their usage habits (such as sliding up and down, sliding left and right, or sliding in a circle) to operate and / or control the target electronic device or the second electronic device.
[0122] In various usage scenarios for electronic devices, users often coordinate with other devices to improve efficiency. For example, using a wireless Bluetooth mouse to control a PC can enhance ease of operation and input efficiency. However, using wireless devices like Bluetooth mice also presents the following challenges: 1. Connecting and switching between different devices using a Bluetooth mouse requires complex operations: For example, when a user uses a Bluetooth mouse for the first time, they need to enter pairing mode, enable Bluetooth on their PC, search for compatible devices, and then select the appropriate mouse to pair. 2. The operation of adjusting the PC to non-working modes such as hibernation is complicated: For example, when users leave work or stop using the PC, they need to trigger the hibernation button or select the corresponding hibernation mode option in the system, and then trigger the power button before using the PC again, which is inconvenient. 3. Users may encounter situations where the wireless mouse is out of power when using a wireless mouse that requires charging: For example, mice that require charging, especially lightweight wireless mice, have small battery capacity and require frequent charging. Users need to charge the mouse promptly when not using the PC, but often users forget to charge it or charge it in a timely manner (such as needing to find an extra charging cable), causing the mouse to be unable to work properly when the user urgently needs to use it.
[0123] To address the above issues, taking a Bluetooth-connected wireless device (mouse) and a PC as an example, this application proposes a solution for quickly connecting Bluetooth devices and putting the PC to sleep using Bluetooth device contacts and a dock. By setting spring pins on the PC's dock and using these spring pins to determine the contact status of accessory devices (such as mice or other external devices connected to the PC), the PC is further driven to perform corresponding operations such as sleep, hibernation, or wake-up.
[0124] For example, such as Figure 6 As shown, Dock 61, as the first electronic device in the above control method, is provided with a spring pin (Pogo Pin) and a corresponding protruding limiting point is provided in area 610. The protruding limiting point is used to limit the position of mouse 62 (or other external devices with Bluetooth function) when placed on Dock 61, so that when the user places mouse 62 on Dock 61, the Pogo Pin of Dock 61 can accurately contact the metal contact (Quick Pin) of mouse 62. Correspondingly, in addition to the Quick Pin, the mouse 62 can also be provided with recessed limiting points corresponding to the Quick Pin and Pogo Pin. These recessed limiting points are used to engage with the raised limiting points provided in the aforementioned area 610 to limit the position of the Quick Pin. In implementation, the Quick Pin can be two independent metal contacts. Furthermore, the Dock 61 can determine the contact status between the Dock 61 and the mouse 62 by checking the continuity of the circuit between the Pogo Pin and the Quick Pin.
[0125] Combining the above control methods and Figure 6 The Dock 61 and Mouse 62 in this application embodiment provide a method for achieving fast Bluetooth device connection and PC sleep mode. For example... Figure 7 As shown, the method for achieving fast Bluetooth device connection and PC sleep mode includes the following steps S701 to S711: Step S701: Place the mouse on the Dock.
[0126] Here, the mouse used to connect to the PC is placed on a dock that enables quick Bluetooth device connection and PC sleep mode. For example, the mouse 62 is fitted with a raised limiting point in the dock 61 according to the position of its recessed limiting point.
[0127] Step S702, Pin contact.
[0128] For example, the Quick Pin of mouse 62 and the Pogo Pin of Dock 61 are brought into contact. Further, the user's current needs can be determined based on the type of circuit generated after the Quick Pin of mouse 62 and the Pogo Pin of Dock 61 are brought into contact, and step S703 or step S706 can be executed respectively.
[0129] Step S703: No communication connection is established between the PC and the mouse.
[0130] Here, if a communication connection has not yet been established between the PC and the mouse, the user cannot use the mouse to perform auxiliary control of the PC.
[0131] Step S704: Connect the mouse to the PC.
[0132] In practice, if a user wants to achieve a quick connection between the PC and the mouse (establish a communication connection, such as Bluetooth communication), they can place the mouse on the Dock and remove it from the Dock within a short period of time, thus achieving a quick connection between the mouse and the PC. Essentially, the time it takes for the Dock to respond to the contact between the Quick Pin of mouse 62 and the Pogo Pin of Dock 61 to form a path is less than a preset time (e.g., less than 2 seconds), triggering a wireless communication connection between the mouse and the PC.
[0133] In related technologies, taking the Bluetooth connection process between a Bluetooth mouse and a computer as an example, the user needs to actively trigger the establishment of a Bluetooth connection between the mouse and the computer by pressing a mouse button or other means. During this process, after the Bluetooth mouse is triggered, it broadcasts a Bluetooth signal, and the computer identifies the mouse by scanning the Bluetooth signal. After identifying the mouse, the computer further sends a pairing request to the mouse to pair; upon receiving the pairing request, the mouse generates a random pairing code and sends it to the computer; after receiving the pairing code, the computer compares it with a preset pairing code. If they match, the computer considers the mouse a legitimate device and a connection can be established. Note that the generation of the Bluetooth communication request between the mouse and the computer requires active user intervention.
[0134] For example, when the Dock is the first electronic device, the mouse is the second electronic device, and the PC is the third electronic device, a plugin for Bluetooth quick pairing can be set on the PC so that the user does not need to intervene in the generation of pairing requests between the mouse and the computer, and the plugin and the PC automatically generate pairing requests.
[0135] In practice, a mouse or other Bluetooth device can contact the Dock's Pogo Pin via the Quick Pin, thereby triggering its broadcast Bluetooth signal. The Dock then sends the signal indicating that a device is placed on the Pogo Pin to the control system on the PC. The control system triggers a plugin for Bluetooth quick pairing, which captures the mouse's device information and causes the control system to send a pairing request to the mouse in pairing mode, thus establishing a Bluetooth communication connection.
[0136] In some implementations, when a dock equipped with a Pogo Pin is first connected to a PC, a prompt message (such as a pop-up window) can be used to remind the user to download a plugin for quick Bluetooth pairing. The user can then decide whether to install the plugin and whether the plugin should be enabled when the PC control system starts up.
[0137] During implementation, the plugin functions as a standalone application, allowing users to flexibly close it or run it in the background as needed. Users can also use the plugin to view the connection status between the Bluetooth mouse or other Bluetooth devices and the PC. Step S705: The user removes the mouse and begins use.
[0138] Here, after establishing a communication connection between the mouse and the PC, the user can remove the mouse from the Dock and use it to perform auxiliary control of the PC.
[0139] Step S706: A communication connection has been established between the PC and the mouse.
[0140] Here, if the Quick Pin of Mouse 62 and the Pogo Pin of Dock 61 are in contact, a communication connection has been established between the PC and the mouse, indicating that the user's current needs are to charge the mouse and / or put the PC into sleep mode.
[0141] Step S707: Wait 5 seconds.
[0142] For example, if the user's current need is to charge the mouse and / or put the PC into sleep mode, the mouse can be placed on the dock and wait for 5 seconds. If the user does not perform any other operation after 5 seconds, the PC's control system will perform the response operation.
[0143] Step S708: Charge the mouse.
[0144] Here, the mouse can be charged in response to the user placing the mouse on the Dock for 5 seconds without any other operation (such as moving the mouse until the pin contact is broken, removing the mouse, etc.).
[0145] In practice, if a user needs to charge the mouse while using the PC, they can turn off the mouse's power button and place the mouse on the Dock. Even if the Quick Pin and Pogo Pin are in contact, the function of controlling the PC mode switching based on the mouse's contact with the Dock will be disabled. In this case, the mouse can be charged without changing the PC's operating mode or putting it into sleep mode.
[0146] Step S709: System hibernation.
[0147] Here, in response to the user placing the mouse on the Dock for 5 seconds without any other operation (such as triggering a new task on the PC via the keyboard or other input devices), the PC's operating system can be triggered to enter hibernation mode (corresponding to the second running mode mentioned above).
[0148] In implementation, three metal contacts can be set on the bottom of the mouse as Quick Pins; three Pogo Pins can be set on the Dock to select two Pogo Pins to contact the Quick Pins on the bottom of the mouse based on different non-working modes. A flat push-pull button (corresponding to the aforementioned movable slider and covering component) can be set next to the Pogo Pins. When this push-pull button is slid, it can cover the Pogo Pins that do not need to be triggered in the corresponding non-working mode.
[0149] by Figure 3For example, when the movable slider 34 obscures the third connecting structure 33, a prompt message can be output to allow the user to customize the sleep mode (such as entering sleep mode one hour later and then entering sleep mode), or to enter sleep mode by default; when the movable slider 34 obscures the second connecting structure 32, the system will directly enter sleep mode, hibernation mode, or shutdown mode by default (related to system settings).
[0150] Step S710: The user removes the mouse.
[0151] Here, in the current scenario where the mouse is charging and the system is in sleep mode, users can wake up the PC system at any time by removing the mouse from the dock.
[0152] Step S711: System wake-up.
[0153] Here, the Dock can respond to the signal (corresponding to the first target signal mentioned above) received by the user when removing the mouse from the Dock, thereby controlling the PC to switch from sleep mode (corresponding to the first running mode mentioned above) to working mode (corresponding to the second running mode mentioned above).
[0154] In this embodiment, on the one hand, by placing the mouse on the Dock and performing different operation types, quick pairing (communication connection) between the mouse and PC, mouse charging, and PC sleep / wake-up can be achieved, improving the convenience of charging the mouse and switching PC modes when using the mouse and PC. On the other hand, by utilizing the Bluetooth quick connection plugin, the device information of the mouse connected to the Dock can be quickly identified, thereby reducing the operational complexity of pairing between the PC and Bluetooth devices and further improving the efficiency of establishing a connection between the PC and Bluetooth devices. In addition, since the plugin's data package size is small, its download and operation consume less system resources.
[0155] This application provides a control device applied to a first electronic device, such as... Figure 8 As shown, the control device 800 includes: The acquisition module 810 is used to acquire the first operating mode of the target electronic device; the target electronic device is the first electronic device or other devices connected to the first electronic device, excluding the second electronic device. The determination module 820 is used to determine a second operating mode corresponding to the first operating mode in response to obtaining the target signal; the target signal indicates a change in the connection state between the first electronic device and the second electronic device. The control module 830 is used to control the target electronic device to switch to the second operating mode.
[0156] In some embodiments, the determining module may also be used for one of the following: in response to obtaining a first target signal, if the first operating mode is a non-working mode, determining a second operating mode as a working mode; the first target signal indicates that the connection state between the first electronic device and the second electronic device has switched from a connected state to a disconnected state; in response to obtaining a second target signal, if the first operating mode is a working mode, determining a second operating mode as a non-working mode; the second target signal indicates that the connection state between the first electronic device and the second electronic device has switched from a disconnected state to a connected state.
[0157] In some embodiments, the determination module may further be used to: in response to obtaining the second target signal, if the first operating mode is a working mode, output a prompt message; the prompt message is used to guide the user to select at least one of a variety of non-working operating modes; and determine the target non-working mode selected by the user as the second operating mode.
[0158] In some embodiments, the control device may further include a first charging module for: charging the second electronic device in response to obtaining a second target signal if the first operating mode is a working mode.
[0159] In some embodiments, the determining module described above can also be used to: in response to obtaining the target signal, if the second electronic device is in a powered-on state, determine a second operating mode; The control device may further include a second charging module for: charging the second electronic device in response to obtaining a third target signal if the first operating mode is a working mode; the third target signal indicates that the connection state between the first electronic device and the second electronic device has switched from an unconnected state to a connected state, and the second electronic device is in a power-off state.
[0160] In some embodiments, the control device may further include a communication module, configured to: acquire device information of the second electronic device in response to obtaining a fourth target signal; the fourth target signal indicates that the connection state between the first electronic device and the second electronic device has switched from an unconnected state to a connected state, and then switches back to an unconnected state within a target duration; and when the device information indicates that no communication has been established between the target electronic device and the second electronic device, send a communication request to the second electronic device so that the second electronic device establishes communication with the target electronic device in response to the communication request.
[0161] This application also proposes a computer program including computer-readable code, which, when run in an electronic device, enables a processor in the electronic device to execute methods provided in this application.
[0162] This application provides a computer program product, including a computer program or computer executable instructions, which, when executed by a processor, implement the method provided in this application.
[0163] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the method provided in this application when executed by a processor.
[0164] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus, and devices according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0165] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0166] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0167] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
[0168] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0169] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0170] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0171] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0172] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of the embodiments of this application, depending on actual needs.
[0173] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0174] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0175] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks. The above descriptions are merely embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A control method applied to a first electronic device, the control method comprising: Obtain the first operating mode of the target electronic device; the target electronic device is the first electronic device or other devices connected to the first electronic device, excluding the second electronic device; In response to obtaining a target signal, a second operating mode corresponding to the first operating mode is determined; the target signal indicates a change in the connection state between the first electronic device and the second electronic device. Control the target electronic device to switch to the second operating mode.
2. The method according to claim 1, wherein determining the second operating mode corresponding to the first operating mode in response to obtaining the target signal includes one of the following: In response to receiving the first target signal, if the first operating mode is a non-working mode, the second operating mode is determined to be a working mode; the first target signal indicates that the connection state between the first electronic device and the second electronic device has switched from a connected state to a disconnected state. In response to receiving the second target signal, if the first operating mode is the working mode, the second operating mode is determined to be the non-working mode; the second target signal indicates that the connection state between the first electronic device and the second electronic device has switched from an unconnected state to a connected state.
3. The method according to claim 2, wherein in response to obtaining the second target signal, if the first operating mode is the working mode, determining the second operating mode as the non-working mode includes: In response to receiving the second target signal, if the first operating mode is the working mode, a prompt message is output; The prompt information is used to guide the user to select at least one of several non-working operation modes; The user-selected target non-working mode is determined as the second operating mode.
4. The method according to claim 2, further comprising: In response to receiving the second target signal, if the first operating mode is the working mode, the second electronic device is charged.
5. The method according to any one of claims 1 to 4, wherein determining a second operating mode corresponding to the first operating mode in response to obtaining the target signal comprises: In response to receiving the target signal, if the second electronic device is powered on, the second operating mode is determined; The method further includes: In response to receiving a third target signal, if the first operating mode is a working mode, the second electronic device is charged; the third target signal indicates that the connection state between the first electronic device and the second electronic device has switched from an unconnected state to a connected state, and the second electronic device is in a power-off state.
6. The method according to any one of claims 1 to 4, further comprising: In response to receiving the fourth target signal, the device information of the second electronic device is acquired; The fourth target signal represents the connection state between the first electronic device and the second electronic device switching from an unconnected state to a connected state, and then switching back to the unconnected state within a target time period; If the device information indicates that no communication has been established between the target electronic device and the second electronic device, a communication request is sent to the second electronic device so that the second electronic device establishes communication with the target electronic device in response to the communication request.
7. An electronic device, applied to a first electronic device, comprising a connection module and a processor; The connection module is used to connect to other electronic devices; The processor is configured to: acquire a first operating mode of the target electronic device; the target electronic device is the first electronic device or other devices connected to the first electronic device, excluding the second electronic device; In response to obtaining a target signal, a second operating mode corresponding to the first operating mode is determined; the target signal indicates a change in the connection state between the first electronic device and the second electronic device. Control the target electronic device to switch to the second operating mode.
8. The electronic device according to claim 7, wherein the connection module includes a first connector; the second electronic device is provided with a second connector, and the first connector and the second connector are used to physically contact to form a passage, so that the connection state between the first electronic device and the second electronic device is in a connected state.
9. The electronic device according to claim 8, further comprising a shielding component; the first connector includes a first connection structure, a second connection structure, and a third connection structure arranged sequentially on the electronic device; The blocking component is used for one of the following: The third connection structure is blocked so that the second connector physically contacts the first connection structure and the second connection structure to form a first path; the target signal corresponding to the first path indicates that the second operating mode is a user-defined non-working mode. The second connection structure is blocked so that the second connector physically contacts the first connection structure and the third connection structure to form a second passage. The target signal corresponding to the second path represents the second operating mode as the initial non-operating mode of the target electronic device.
10. The electronic device of claim 9, wherein the blocking component includes a movable slider and a moving track for the movable slider, the moving track including one of the following: a linear moving track between the second connecting structure and the third connecting structure, and an annular moving track between the second connecting structure and the third connecting structure.