Control method and electronic equipment

By reconnecting the communication link between the game controller and the main unit when the communication link is disconnected, and transmitting data according to switching conditions, the high power consumption problem of the game controller when not in use is solved, and low power data transmission is achieved.

CN121570798APending Publication Date: 2026-02-27LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511786523.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-30
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

The controller of a handheld game console still reports data packets to the host at fixed intervals when the user is not operating it, resulting in high power consumption.

Method used

When the communication link between the first part and the second part of the electronic device is disconnected, in response to the first part meeting the switching conditions, the first part is controlled to switch to the communication link connected state so as to transmit data between the first part and the second part.

Benefits of technology

By activating the communication link only when switching conditions are met, the power consumption of electronic devices is reduced while ensuring the continuity of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121570798A_ABST
    Figure CN121570798A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and electronic equipment, and the method comprises the steps: controlling a first part to be switched from a first state to a second state in response to the condition that the first part meets a first switching condition under the condition that the first part in the electronic equipment is in the first state; wherein in the first state, a communication link between the first part and a second part in the electronic equipment is in a disconnected state; and in the second state, the communication link is in a conducting state, and the communication link in the conducting state is used for transmitting data between the first part and the second part.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more particularly to a control method and electronic device. Background Technology

[0002] Currently, to prevent disconnections, handheld game controllers still send data packets to the host's central processing unit (CPU) at fixed intervals, even when the user is not operating the controller, resulting in high power consumption for handheld game consoles. Summary of the Invention

[0003] In view of the above, this application provides a control method and an electronic device, as follows:

[0004] A control method, comprising:

[0005] When the first part of the electronic device is in a first state, in response to the first part satisfying a first switching condition, the first part is controlled to switch from the first state to a second state.

[0006] In the first state, the communication link between the first part and the second part of the electronic device is disconnected; in the second state, the communication link is connected, and the connected communication link is used to transmit data between the first part and the second part.

[0007] Optionally, in the above method, the first state includes: a first sub-state; in the first sub-state, the light output structure corresponding to the first type of button on the first part is in the on state;

[0008] Wherein, in response to the first part satisfying the first switching condition, controlling the first part to switch from the first state to the second state includes:

[0009] In response to any input key being triggered on the first part, the first part is controlled to switch from the first sub-state to the second state.

[0010] Optionally, in the above method, the first state includes: a second sub-state or a third sub-state; in the third sub-state, the light output structure corresponding to the first type of button on the first part is in a closed state; in the third sub-state, the first part switches to the second sub-state in response to the trigger offset of the first type of button being greater than or equal to a first threshold; in the second sub-state, the light output structure corresponding to the first type of button on the first part is in an open state in response to the first type of button being triggered.

[0011] Wherein, in response to the first part satisfying the first switching condition, controlling the first part to switch from the first state to the second state includes:

[0012] In response to the triggering of a second type of button on the first part, the first part is controlled to switch from the second sub-state or the third sub-state to the second state.

[0013] Optionally, the first state in the above method includes: a first sub-state, a second sub-state, and a third sub-state; in the first sub-state, the light output structure corresponding to the first type of button on the first part is in an on state; in the second sub-state, the light output structure corresponding to the first type of button on the first part is in an on state in response to the first type of button being triggered; in the third sub-state, the light output structure corresponding to the first type of button on the first part is in a off state.

[0014] The method further includes one of the following:

[0015] When the first part is in the third sub-state, in response to the trigger offset of the first type of key on the first part being greater than or equal to the first threshold, the first part is controlled to switch from the third sub-state to the second sub-state.

[0016] When the first part is in the second state, in response to the duration of time during which all input keys on the first part are not triggered being greater than or equal to a first duration, the first part is controlled to switch from the second state to the first sub-state.

[0017] When the first part is in the first sub-state, in response to the duration of time during which all input keys on the first part are not triggered being greater than or equal to the second duration, the first part is controlled to switch from the first sub-state to the third sub-state.

[0018] When the first part is in the second sub-state, in response to the duration during which no input on the first part is triggered being greater than or equal to a third duration, the first part is controlled to switch from the second sub-state to the third sub-state.

[0019] Optionally, the above method may further include:

[0020] When the first part is in the second state, in response to the duration during which all input keys on the first part are not triggered being greater than or equal to the first duration, the transmission status information of the communication link is saved.

[0021] In response to the first part satisfying the first switching condition, based on the transmission status information, the communication link is controlled to be in an on state, and based on the transmission status information, data transmission between the first part and the second part is resumed on the communication link.

[0022] Optionally, in the above method, the light output structure of the first type of button on the first part consists of multiple indicator lights, which are deployed around the first type of button.

[0023] The method further includes:

[0024] When the light output structure of the first type of button in the first part is in the open state, according to the trigger offset angle and trigger offset amount of the first type of button, at least one first indicator light in the light output structure is controlled to be in the open state, and a second indicator light that is different from the first indicator light among the plurality of indicator lights is controlled to be in the closed state.

[0025] Wherein, different trigger offset angles correspond to the first indicator lights being in different deployment positions relative to the first type of button; and / or, different trigger offset amounts correspond to different numbers of the first indicator lights.

[0026] Optionally, the above method may further include:

[0027] The light output parameters of the first indicator light are controlled according to the trigger offset of the first type of button.

[0028] The light output parameters include at least one of the following: light brightness, light color luminance, and light hue.

[0029] An electronic device, comprising:

[0030] A first part and a second part; a communication link exists between the first part and the second part;

[0031] Wherein, when the first part is in the first state, in response to the first part satisfying the first switching condition, the first part is controlled to switch from the first state to the second state;

[0032] In the first state, the communication link is disconnected; in the second state, the communication link is connected, and the connected communication link is used to transmit data between the first part and the second part.

[0033] Optionally, in the aforementioned electronic device, a light output structure is deployed on the first type of button in the first part, the light output structure consisting of a plurality of indicator lights, the plurality of indicator lights being deployed around the first type of button;

[0034] Wherein, when the light output structure is in the open state, the first part controls at least one first indicator light in the light output structure to be in the open state according to the trigger offset angle and trigger offset amount of the first type of button, and controls a second indicator light among the plurality of indicator lights that is different from the first indicator light to be in the closed state.

[0035] Wherein, different trigger offset angles correspond to the first indicator lights being in different deployment positions relative to the first type of button; and / or, different trigger offset amounts correspond to different numbers of the first indicator lights.

[0036] Optionally, the first part of the aforementioned electronic device is provided with a second type of button, and the button chip corresponding to the second type of button is connected to the first interface in the first part, and the first interface is connected to the second part.

[0037] The trigger signal generated by the button chip of the second type of button when the second type of button is triggered is transmitted to the second part through the first interface, and the trigger signal is used to connect the communication link.

[0038] As can be seen from the above technical solutions, in the control method and electronic device disclosed in this application, when the first part of the electronic device is in a state where the communication link between the first part and the second part is disconnected, the first part can be controlled to switch to a state where the communication link is connected in response to the first part meeting the first switching condition. Thus, the communication link in the connected state can transmit data between the first part and the second part. It is evident that in this application, the communication link between the first part and the second part is only connected when the first part of the electronic device meets the first switching condition. This ensures that data transmission between the first part and the second part is not affected by the first switching condition, while simultaneously disconnecting data transmission between the first part and the second part by placing the first part in a state where the communication circuit is disconnected. This reduces the power consumption of the electronic device and achieves the objective of this application. Attached Figure Description

[0039] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the 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.

[0040] Figure 1 A flowchart of a control method provided in an embodiment of this application;

[0041] Figure 2 This is an example diagram of an electronic device with an integrated structure as described in this application.

[0042] Figure 3 , Figure 4 and Figure 5 These are example diagrams of electronic devices with detachable structures according to embodiments of this application;

[0043] Figure 6 This is an example diagram of a rocker ring light in an embodiment of this application;

[0044] Figure 7 This is an example diagram illustrating the lighting effect of the indicator light controlled by the trigger offset angle in an embodiment of this application.

[0045] Figure 8 This is an example diagram illustrating the lighting effect of the indicator light controlled by the trigger offset in the embodiments of this application;

[0046] Figure 9 This is an example diagram illustrating the lighting effect of the indicator light controlled by the trigger offset angle and trigger offset amount in an embodiment of this application.

[0047] Figure 10 This is a schematic diagram of the architecture for controlling the indicator lights in the first part of the embodiments of this application;

[0048] Figure 11 This is a schematic diagram of the process for controlling the indicator light in the first part of the embodiments of this application;

[0049] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0050] Figure 13 This is an example diagram of the light output structure in an embodiment of this application;

[0051] Figure 14 This is an example diagram illustrating the lighting effect of the indicator light in an embodiment of this application;

[0052] Figure 15 This is a diagram illustrating the connection architecture of the controller in a handheld game console scenario, as described in this application embodiment. Detailed Implementation

[0053] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0054] refer to Figure 1 The diagram shown illustrates a flowchart of a control method provided in this application. This method can be applied to electronic devices having a first part and a second part, such as handheld game consoles with gamepads or televisions with remote controls. The technical solution in this embodiment is mainly used to reduce the power consumption of electronic devices.

[0055] Specifically, the control method in this embodiment may include the following process:

[0056] Step 101: When the first part in the electronic device is in the first state, monitor whether the first part meets the first switching condition. If the first part meets the first switching condition, execute step 102. If the first part does not meet the first switching condition, continue monitoring.

[0057] The first part and the second part refer to the two parts of the electronic device that have a communication link. Taking a handheld game console as an example, the second part refers to the game console, and the first part includes two controllers, one on the left and one on the right, which are connected to the game console. The controllers provide input data to the game console, and the game console responds to the input data by executing corresponding instructions.

[0058] In the hardware deployment structure, the electronic device can be an integrated structure, in which the hardware modules contained in the first part and the second part, such as processors, input buttons and other structures, are deployed; or, the electronic device can be a detachable structure, in which the hardware modules contained in the first part and the second part can be deployed in the disassembled substructures based on business needs.

[0059] Taking a handheld game console as an example, the following explains the structural implementation of the electronic device:

[0060] In one implementation, the electronic device is a single, integrated structure, such as the controller (first part) and main unit (second part) of a handheld game console, which are not detachable. The first part includes a processor such as an MCU and input buttons such as joysticks, D-pads, Hall effect triggers, touchpads, macro buttons, etc. The second part includes a processor such as a CPU and other structures. The processor and input buttons in the first part, as well as the processor and other structures in the second part, are all deployed on the integrated structure.

[0061] For example, such as Figure 2As shown, the first part includes an MCU and multiple input buttons each wired to the MCU. The second part includes a CPU and other structures. A wired communication link is established between the MCU and the CPU. When a user triggers an operation on the input buttons in the first part, the MCU detects these trigger operations and generates corresponding input data. The CPU can receive the input data uploaded by the MCU through the communication link and execute corresponding response instructions. In this embodiment, the MCU in the first part detects whether the first part meets a first switching condition.

[0062] In another implementation, the electronic device is a detachable structure, such as a handheld game console with a detachable controller. There can be one or more first parts. The processor and input buttons in the first part can be deployed on the first hardware structure, while the processor and other structures in the second part can be deployed on the second hardware structure.

[0063] For example, such as Figure 3 As shown, the first part includes an MCU and multiple input buttons each wired to the MCU. The MCU and input buttons are deployed in a first hardware structure. The second part includes a CPU and other structures, which are deployed in a second hardware structure. The button chips of the input buttons are connected to the MCU, and a wireless communication link is established between the MCU and the CPU. When a user triggers an input button on the first part, the button chip generates corresponding input data in response to these triggering operations and transmits the input data to the MCU. The MCU receives this input data and transmits it to the CPU via the communication link. The CPU can receive the input data uploaded by the MCU and execute corresponding response instructions. In this embodiment, the MCU in the first part detects whether the first part meets a first switching condition.

[0064] In another implementation, the electronic device is a detachable structure, such as a handheld game console with a detachable controller. There can be one or more first parts. The processor and input buttons in the first part can be deployed on a first hardware structure, while other processors in the first part can be deployed on a second hardware structure; the processors and other structures in the second part can be deployed on the second hardware structure.

[0065] For example, such as Figure 4As shown, the first part includes MCU1, MCU2, and multiple input buttons each wired to MCU1. MCU1 and the input buttons are deployed in a first hardware structure, and MCU2 is deployed in a second hardware structure. The second part includes a CPU and other structures, which are also deployed in the second hardware structure. MCU1 is connected to MCU2 via a wireless communication module, and a wired communication link is established between MCU2 and the CPU. When a user triggers an input button on the first part, the button chip generates corresponding input data in response to these triggering operations and transmits the input data to MCU1. MCU1 receives this input data and transmits it to MCU2. MCU2 transmits the input data to the CPU via the communication link. The CPU can receive the input data uploaded by MCU2 and execute corresponding response instructions. In this embodiment, MCU1 or MCU2 in the first part detects whether the first part meets a first switching condition.

[0066] In another implementation, the electronic device is a detachable structure, such as a handheld game console with a detachable controller. There can be one or more first parts. Input buttons in the first part can be deployed on a first hardware structure, and the processor in the first part can be deployed on a second hardware structure; the processor and other structures in the second part can be deployed on the second hardware structure.

[0067] For example, such as Figure 5 As shown, the first part includes an MCU and multiple input buttons. The MCU is deployed on a second hardware structure, and the multiple input buttons are deployed on the first hardware structure. The button chips of the input buttons on the first hardware structure are connected to the MCU on the second hardware structure via a wireless communication module. The second part includes a CPU and other structures, which are deployed on the second hardware structure. A wired communication link is established between the MCU and the CPU. When a user triggers an operation on the input buttons in the first part, the button chips of the input buttons respond to these trigger operations, generate corresponding input data, and transmit the input data to the wireless communication module. The wireless communication module on the first part transmits these input data to the MCU on the second hardware structure. The MCU transmits the input data to the CPU, and the CPU can receive the input data uploaded by the MCU and execute corresponding response instructions. In this embodiment, the MCU in the first part detects whether the first part meets a first switching condition.

[0068] In a specific implementation, the first switching condition can be: the condition of transmitting data from the first part to the second part.

[0069] Step 102: Control the first part to switch from the first state to the second state.

[0070] The first part has a first state and a second state. In the first state, the communication link between the first part and the second part is disconnected; in the second state, the communication link is connected, and the connected communication link is used to transmit data between the first part and the second part.

[0071] It should be noted that the power consumption of the first part in the first state is lower than that of the second part in the second state. For example, the communication link between the first and second parts is disconnected, and the first part is only allowed to monitor whether the input key is triggered. For example, the first state can be a sleep state, and the second state can be a wake-up state.

[0072] For example, with Figure 2 As shown in the example, the first part is in the first state, which can be: the wired communication link between the MCU and the CPU is disconnected, and the MCU is in a low power state. For example, the MCU only monitors whether the input button in the first part is triggered.

[0073] by Figure 3 As shown in the example, the first part is in the first state, which can be: the wireless communication link between the MCU and the CPU is disconnected, and the MCU is in a low power state. For example, the MCU only monitors whether the input button in the first part is triggered.

[0074] by Figure 4 As shown in the example, the first part is in the first state, which can be: the wired communication link between MCU2 and the CPU is disconnected, and both MCU2 and MCU1 are in a low power state. For example, MCU1 only monitors whether the input button in the first part is triggered, and MCU2 only monitors whether input data is received.

[0075] by Figure 5 As shown in the example, the first part is in the first state, which can be: the wired communication link between the MCU and the CPU is disconnected, and the MCU is in a low power state. For example, the MCU only monitors whether the input button in the first part is triggered.

[0076] As can be seen from the above technical solutions, in the control method provided by the embodiments of this application, when the communication link between the first part of the electronic device and the second part is disconnected, the first part can be controlled to switch to a communication link-connected state in response to the first part meeting the first switching condition. Thus, the communication link in the connected state can transmit data between the first part and the second part. It is evident that in this application, the communication link between the first part and the second part is only connected when the first part of the electronic device meets the first switching condition. This ensures that data transmission between the first part and the second part is not affected by the first switching condition, while simultaneously disconnecting data transmission between the first part and the second part by placing the first part in a disconnected communication circuit state. This reduces the power consumption of the electronic device and achieves the objective of this application.

[0077] In one implementation, the first state may include a first sub-state, in which not only is the communication link between the first part and the second part disconnected, but the light output structure corresponding to the first type of button on the first part is turned on. For example, the first sub-state is a shallow sleep state.

[0078] The first type of button can be a specific button in the first part that has a noticeable raised structure that makes it easy to be accidentally pressed, such as a joystick button. The light output structure can be a light indicator structure belonging to the first type of button, such as the ring light of a joystick button; when the light output structure is turned on, the ring light is lit.

[0079] Based on this, in this embodiment, when the first part is in the first sub-state, in response to any input key being triggered on the first part, the first part can be controlled to switch from the first sub-state to the second state.

[0080] In other words, in the first sub-state, any key input can switch the first part from the first sub-state with lower power consumption to the second state.

[0081] For example, when the game controller is in a shallow sleep state, the communication link between the controller's MCU and the host's CPU is disconnected. At this time, the ring light of the joystick button on the controller is lit. When the controller's MCU detects that any input button, such as a joystick button or a non-joystick button, is triggered, it indicates that the first switching condition has been met. At this time, the controller's MCU switches from the shallow sleep state to the wake-up state. At this time, the communication link between the controller's MCU and the host's CPU is connected. Based on this, data can be transmitted between the controller's MCU and the host's CPU.

[0082] As can be seen, in this embodiment, a switching condition for switching to the second state can be set for the first sub-state with lower power consumption. According to the operated state of the first part, the first part can be controlled to quickly switch from the first sub-state with lower power consumption back to the second state. This can satisfy the user's usage needs for the first part and save the power consumption of the first part, thereby balancing the user experience and device power consumption.

[0083] In one implementation, the first state may include a second sub-state or a third sub-state. In the second sub-state, not only is the communication link between the first and second parts disconnected, but the light output structure corresponding to the first type of button on the first part is turned on in response to the triggering of the first type of button. In the third sub-state, the light output structure corresponding to the first type of button on the first part is turned off. The first part switches to the second sub-state only when the trigger offset of the first type of button is greater than or equal to a first threshold. At this time, the light output structure corresponding to the triggered first type of button will be turned on; for example, the second sub-state is a pre-wake-up state. The third sub-state is a deep sleep state. The power consumption of the first part in the second sub-state is less than that of the first part in the first sub-state. The power consumption of the first part in the second sub-state is similar to that of the first part in the third sub-state. Specifically, the power consumption of the first part in the second sub-state is slightly higher than that of the first part in the third sub-state because of the triggered light output structure of the first type of remote sensing.

[0084] Specifically, in this embodiment, when the first part is in the third sub-state, in response to the trigger offset of the first type of button on the first part being greater than or equal to the first threshold, the first part can be controlled to switch from the third sub-state to the second sub-state.

[0085] In the case that the first part is in the second sub-state, this embodiment can also control the first part to switch from the second sub-state to the third sub-state in response to the fact that the duration for which no input on the first part is triggered is greater than or equal to the third duration.

[0086] Therefore, in the third sub-state, if the first type of button is accidentally touched, the first part will not be directly switched to the second state. Instead, it will be switched to the second sub-state first. If the duration of the second type of button is not triggered for a third time, the first part will be switched back to the third sub-state, so that the light output structure is in the off state. Thus, in this embodiment, the deployment of the second sub-state can prevent the accidental touch operation from directly waking up the first part, thereby reducing the power consumption of the electronic device.

[0087] It should be noted that in the second sub-state, the light output structure corresponding to the first type of button on the first part is in the off state, but if the first type of button is triggered, the light output structure will be in the on state in response to the triggering of the first type of button.

[0088] Based on this, in this embodiment, when the first part is in the second sub-state or the third sub-state, in response to the triggering of a second type of button on the first part, the first part is controlled to switch from the second sub-state or the third sub-state to the second state.

[0089] The second type of buttons are other function buttons on the first part that are different from the first type of buttons, such as the cross button, Hall effect trigger, macro button, etc.

[0090] In other words, in the second sub-state, not just any key press can switch the first part to the second state; only when a second-type key is triggered can the first part switch from the lower-power second sub-state to the second state. Similarly, in the third sub-state, only when a second-type key is triggered can the first part switch from the lower-power second sub-state to the second state. Furthermore, in the third sub-state, if a first-type key is triggered and the trigger offset reaches the first threshold, the first part does not directly switch to the second state. Instead, it first switches to the second sub-state. If, in the second sub-state, no subsequent key presses are triggered for a duration that reaches the third duration, then the triggering of a first-type key and the trigger offset reaching the first threshold are considered erroneous operations, and the first part will switch back to the third sub-state.

[0091] For example, when the game controller is in deep sleep mode, the communication link between the controller's MCU and the host's CPU is disconnected. At this time, the ring lights of the joystick buttons on the controller are off. If the controller's MCU detects that a non-joystick button has been triggered, then the first switching condition is met, and the controller's MCU switches from deep sleep mode to wake-up mode. The communication link between the controller's MCU and the host's CPU is now open, allowing data transmission between them. If the controller's MCU detects that a joystick button has been triggered and the trigger offset reaches a first threshold, then the controller's MCU first switches from deep sleep mode to pre-wake-up mode. At this time, the communication link between the controller's MCU and the host's CPU remains disconnected. When the controller's MCU detects that a joystick button has been triggered, the ring light of the joystick button is turned on. If the controller's MCU detects that a non-joystick button has been triggered, then the first switching condition is met. At this time, the controller's MCU switches from the pre-wake-up state to the wake-up state. However, if the controller's MCU switches from the deep sleep state to the pre-wake-up state first, and no input button is triggered after the controller's MCU timer reaches the third duration, then it can be determined that the trigger operation of the joystick button whose trigger offset reached the first threshold was a user error. In this case, the controller's MCU switches from the pre-wake-up state back to the deep sleep state to maintain low power consumption.

[0092] As can be seen, in this embodiment, by setting a low-power second sub-state for the lower-power third sub-state, the direct switch from the third sub-state to the high-power second state can be prevented, thereby enabling the handling of erroneous operations and reducing the power consumption of the electronic device.

[0093] In another implementation, the first state may include a first sub-state, a second sub-state, and a third sub-state. In the third sub-state, the light output structure corresponding to the first type of button on the first part is in a closed state, and even if the first type of button is triggered, the light output structure corresponding to the first type of button will not be turned on. For example, the third sub-state is a deep sleep state. The power consumption of the first part in the third sub-state is less than the power consumption of the first part in the first sub-state.

[0094] Based on this, in this embodiment, when the first part is in the second state, in response to the first part satisfying the second switching condition, the first part can be controlled to switch from the second state to the first state.

[0095] In one implementation, this embodiment can also control the first part to switch from the second state to the first sub-state when the first part is in the second state, in response to the duration during which all input keys on the first part are not triggered being greater than or equal to the first duration (i.e., the second switching condition).

[0096] In other words, when the first part is in the second state, this embodiment continuously monitors whether any input keys on the first part are triggered. If none of the input keys are triggered, the duration for which none of the input keys are triggered is monitored. If the duration reaches the first duration, the first part can be put into sleep mode, that is, the first part is switched from the second state to the first sub-state with lower power consumption.

[0097] For example, when the game controller is in wake-up mode, the communication link between the controller's MCU and the host's CPU is active, allowing data transmission between them. At this time, the controller's MCU detects whether any input buttons have been triggered and records the duration for which no input buttons have been triggered. If any input button is triggered, the duration is reset. When the duration reaches a certain threshold, such as 10 seconds, it indicates that the user has not operated the controller for an extended period. At this point, the controller can be put into sleep mode, meaning the controller's MCU switches from wake-up mode to a shallow sleep mode. In this state, the communication link between the controller's MCU and the host's CPU is disconnected, and data cannot be transmitted between them. However, the indicator lights on the joystick buttons on the controller illuminate to remind the user that the controller is in a shallow sleep mode.

[0098] As can be seen, in this embodiment, by setting a first sub-state with lower power consumption for the first part, the first part can be controlled to be in the first sub-state according to the operated state of the first part, thereby saving the power consumption of the first part.

[0099] Furthermore, in this embodiment, when the first part is in the first sub-state, in response to the duration during which all input keys on the first part are not triggered being greater than or equal to the second duration, the first part can be controlled to switch from the first sub-state to the third sub-state.

[0100] In other words, when the first part is in the first sub-state, this embodiment continues to monitor the duration for which all input keys on the first part have not been triggered. If the duration reaches the second duration, the power consumption of the first part that is in sleep mode can be further reduced. At this time, the first part is switched from the first sub-state with lower power consumption to the third sub-state with even lower power consumption.

[0101] For example, when the game controller is in a shallow sleep state, the communication link between the controller's MCU and the host's CPU is disconnected. At this time, the ring lights on the joystick buttons on the controller are lit. The controller's MCU continues to record the duration for which no input buttons have been triggered. If any input button is triggered, the duration is reset and the controller switches from shallow sleep to wake-up. When the duration reaches a first duration, such as 10 seconds, the controller's MCU switches from wake-up to shallow sleep and continues to monitor the duration. If the duration for which no input buttons have been triggered reaches a second duration, such as 20 seconds, it indicates that the controller is idle and will not be operated by the user. At this time, the controller can be further put into sleep mode, that is, the controller's MCU switches from shallow sleep to deep sleep. At this time, the communication link between the controller's MCU and the host's CPU is disconnected, and no data can be transmitted between the controller's MCU and the host's CPU. In addition, the ring lights on the joystick buttons on the controller are off and will not light up when the joystick buttons are triggered, to remind the user that the controller is in deep sleep mode.

[0102] As can be seen, in this embodiment, by setting a first sub-state with lower power consumption and a third sub-state with even lower power consumption for the first part, the first part can be controlled to be in the first sub-state or the third sub-state according to the operating state of the first part. This can satisfy the user's usage needs for the first part and save the power consumption of the first part, thereby balancing the user experience and device power consumption.

[0103] For example, in this embodiment, the switching conditions, power consumption, and behavior between the shallow sleep state, deep sleep state, pre-wake state, and wake-up state are described in Table 1:

[0104] Table 1 Status

[0105] state Power consumption Behavior condition Wake-up state high Allow data transmission, turn on ring lights, When the duration reaches the first duration, the system switches to a shallow sleep state. shallow hibernation state middle Data transmission prohibited, ring light illuminated, input button monitored. Any key press triggers the switch to wake-up state; after a certain duration, the switch switches to deep sleep state. Deep hibernation Low Data transmission prohibited, ring light off, non-joystick buttons monitored. Switching to wake-up state is triggered by non-joystick button presses; pre-wake state Low Data transmission is prohibited, the joystick trigger ring light illuminates, and input button monitoring is activated. When the duration reaches the third duration, it switches to deep sleep mode; when triggered by a non-joystick button, it switches to wake-up mode.

[0106] As can be seen, in this embodiment, when the joystick button is triggered in the pre-wake-up state, it only triggers the ring light control module inside the MCU of the controller, without waking up the communication link, thus avoiding the system being woken up due to accidental operation. Moreover, in this embodiment, non-joystick buttons are used as the "golden wake-up source," and only physical buttons (such as ABXY / shoulder buttons) trigger the system to wake up, which conforms to the user's operating intention and can achieve the goal of preventing accidental touch.

[0107] Based on the states shown in Table 1, when there is no operation on any of the input buttons on the controller, the controller's MCU will pause the upload of callback data and X input / D input data to the CPU, and the joystick ring light will turn off after 10 minutes. When waking up the game controller, if only the joystick is moved, only the joystick light will turn on, and data interaction will not begin (the communication link is still disconnected at this time). If other non-joystick buttons are pressed, the controller will be woken up and data interaction with the host will begin.

[0108] In summary, this embodiment establishes a layered sleep-wake mechanism, realizes an independent joystick processing layer and uses non-joystick buttons as the primary wake-up source, thereby reducing the power consumption of electronic devices. Furthermore, it achieves zero-latency wake-up through hardware interrupt pass-through channels and buffering of transmission status information, thereby improving the user experience.

[0109] Based on the above implementation, in this embodiment, when the first part is in the second state, in response to the duration during which all input keys on the first part are not triggered being greater than or equal to the first duration, the transmission status information of the communication link can be saved.

[0110] The transmission status information of the communication link may include: the communication protocol information of the communication link, and the data breakpoint information of the communication link during data transmission.

[0111] Based on this, in this embodiment, in response to the first part satisfying the first switching condition, the communication link can be controlled to be in the conducting state based on the saved transmission status information, and the data transmission between the first part and the second part can be restored on the communication link based on the transmission status information.

[0112] In other words, in this embodiment, when the communication link is disconnected by controlling the first part to switch from the second state to the first sub-state or the third sub-state, the transmission status information of the communication link can be saved. In this way, when the first part switches back to the second state, the saved transmission status information can be used directly to restore the disconnected communication link and restore the data transmission between the first part and the second part.

[0113] For example, before the game controller enters a deep sleep state, the controller's MCU pre-saves the context data of the communication protocol stack, such as the Universal Serial Bus Human Interface Device (USB HID) / Xbox-compatible controller input application programming interface (X-Input), into the system memory. When the controller wakes up, it directly restores the communication state of the communication link, skipping processes such as protocol reconnection, and can directly resume interrupted transmissions based on the context data, thereby speeding up communication recovery.

[0114] As can be seen, in this embodiment, when restoring data transmission between the first part and the second part, it is not necessary to re-perform the communication link establishment process, such as re-handshake negotiation, nor is it necessary to retransmit the data that has already been transmitted between the first part and the second part. Instead, the transmission status information saved when the communication link was disconnected can be used directly to restore the disconnected communication link and resume the data transmission between the first part and the second part. This can save the time spent in the communication link establishment process and the time spent in data transmission, thereby improving the data transmission efficiency between the first part and the second part.

[0115] In one implementation, the light output structure of the first type of button on the first part can consist of multiple indicator lights, which are deployed around the first type of button. These indicator lights can form a specific shape around the first type of button, such as a ring or rectangle. For example, the indicator lights can be RGB LEDs (Red Green Blue Light-Emitting Diodes), which can emit various different colors of light by mixing the three basic colors (red, green, and blue).

[0116] For example, taking the joystick button as an example, such as Figure 6 As shown, multiple indicator lights, or ring lights, are deployed in a ring at the positions where the joystick buttons on the controller are located.

[0117] Based on this, in this embodiment, when the light output structure of the first type of button in the first part is in the on state, at least one first indicator light in the light output structure can be controlled to be in the on state and the second indicator light can be controlled to be in the off state according to the trigger offset angle and trigger offset amount of the first type of button.

[0118] The second indicator light is a different indicator light from the first indicator light in the light output structure. In other words, in this embodiment, a portion of the indicator lights are illuminated according to the trigger offset angle and trigger offset amount of the first type of button, while the other indicator lights remain off.

[0119] It should be noted that different trigger offset angles correspond to first indicator lights in different deployment positions relative to the first type of button, and / or different trigger offset amounts correspond to different numbers of first indicator lights.

[0120] For example, such as Figure 7 As shown, when the joystick button's trigger offset angle is upward, the indicator light above the joystick button in the ring light is lit, and the lit indicator light in the ring light forms an arc, indicating that the user is pressing the joystick upward with an arc-shaped light strip at the top; when the joystick button's trigger offset angle is to the right, the indicator light to the right of the joystick button in the ring light is lit, indicating that the user is pressing the joystick to the right with an arc-shaped light strip at the right position;

[0121] For example, such as Figure 8 As shown, when the trigger offset of the joystick button being pressed down is large, the number of indicator lights lit in the ring light is small, that is, the length of the arc formed by the lit indicator lights is short, indicating that the user has pressed down the joystick with more concentrated arc light strips; when the trigger offset of the joystick button being pressed down is small, the number of indicator lights lit in the ring light is large, that is, the length of the arc formed by the lit indicator lights is long, indicating that the user has pressed down the joystick with more dispersed arc light strips.

[0122] For example, such as Figure 9 As shown, when the joystick button's trigger offset angle is upward and the downward trigger offset is large, the indicator lights above the joystick button in the ring light are lit, and the number of lit indicator lights is small. The arc formed by the lit indicator lights is short, and the more concentrated arc light strip at the top indicates that the user is pressing the joystick downward with force. When the joystick button's trigger offset angle is to the right and the downward trigger offset is small, the indicator lights to the right of the joystick button in the ring light are lit, and the number of lit indicator lights is large. The more dispersed arc light strip at the right indicates that the user is pressing the joystick downward to the right.

[0123] Based on the above implementation scheme, in this embodiment, the light output parameters of the first indicator light can also be controlled according to the trigger offset of the first type of button.

[0124] The light output parameters may include at least one of the following: light brightness, light chromatic acuity, and light hue. Different trigger offsets correspond to different light output parameters.

[0125] For example, the greater the trigger offset of the user pressing down on the joystick, the brighter the indicator light will be. Figure 9 High and low brightness; for example, the greater the trigger offset of the user pressing down the joystick, the lower the color of the illuminated indicator light, such as changing from pink to burgundy; for example, the greater the trigger offset of the user pressing down the joystick, the hue of the illuminated indicator light changes from green to red.

[0126] Furthermore, in this embodiment, the light output parameters of the first indicator lights at different deployment locations can be different, thereby achieving a light gradient effect and improving the user experience. For example, the more closely the indicator light matches the trigger offset angle, the more obvious the display effect, such as higher light brightness and lower color intensity.

[0127] In one implementation, the trigger offset refers to the ratio between the distance the first type of button deviates from its initial center position after being triggered and the maximum offset, which can be represented by d. For example, taking a joystick as an example, a trigger offset of 20% when the joystick is moved away from its initial center position indicates that the joystick is gently moved but close to the initial center position; a trigger offset of 80% when the joystick is moved away from its initial center position indicates that the joystick is gently moved but far from the initial center position and close to the boundary of the maximum offset.

[0128] Specifically, in this embodiment, the trigger offset can be divided into three ranges, and the indicator lights can be controlled accordingly, as shown in Table 2, such as 0-20%, 20%-80%, and 80% to 100%. When the trigger offset is in the range of 0-20%, all indicator lights in the light output structure are lit, and the brightness of the light strip sector formed is 20% of the maximum brightness k. When the trigger offset is in the range of 20%-80%, 60% of the indicator lights in the light output structure are lit, and the deployment position of the light strip sector formed by 60% of the indicator lights in the light output structure matches the trigger offset. The indicator lights shift angle, and the ratio of the light brightness of the light strip sector formed by 60% of the indicator lights to the maximum brightness k (such as a value between 0.2 and 0.8) matches the trigger offset amount, while the remaining 40% of the indicator lights are turned off; when the trigger offset amount is in the range of 80%-100%, 30% of the indicator lights in the light output structure are lit, the deployment position of the light strip sector formed by 30% of the indicator lights in the light output structure matches the trigger offset angle, and the light brightness of the light strip sector formed by 30% of the indicator lights is the maximum brightness k, that is, the ratio of the light brightness to the maximum brightness k is d_max (which can be 1).

[0129] Table 2 Indicator Light Control

[0130] Trigger offset Illuminated LED strip Brightness L 0-20% Full ring illuminated L=k×0.2 20%-80% 60% L=k×d 80%-100% 30% L=k×d_max

[0131] In one implementation, combining Figure 10The hardware architecture shown in the first part, and the process for implementing lighting control in this embodiment are referenced. Figure 11 As shown:

[0132] First, the user shakes the joystick;

[0133] Then, the processor in the first part can receive the sensing data transmitted by the button chip of the first type of button. For example, the first type of button is a button structure based on a Hall sensor array. The signal processing module in the processor in the first part receives the Hall sensing data (magnetic field data) transmitted by the Hall sensor array.

[0134] Then, the signal processing module collects the changes in magnetic field strength (ΔBx, ΔBy) along the X / Y axes of the magnetic field data.

[0135] Then, the direction vector calculation unit converts it into a digital signal and calculates the trigger offset angle and trigger offset amount accordingly, where the trigger offset angle θ = arctan(ΔBy / ΔBx). Finally, these trigger offset angles and trigger offset amounts are sent to the lighting control processor.

[0136] In this embodiment, the indicator lights in the joystick ring light (i.e., the indicator lights in the light output structure of the first type of button) can be divided into multiple lighting sectors, such as 8 (one sector per 45 degrees) or 10 (one sector per 36 degrees). Based on this, the lighting control processor calculates the number of indicator lights to be lit and determines the sectors composed of the indicator lights to be lit according to the trigger offset angle and trigger offset amount. Furthermore, it also determines the brightness of the indicator lights to be lit. Finally, it sends a control signal to the indicator lights in the corresponding sectors to light them up. The specific control method can be referred to the contents shown in Table 2.

[0137] Therefore, the following mechanism can be implemented in this embodiment:

[0138] 1. Precise direction mapping:

[0139] By analyzing the trigger offset angle (i.e., the direction of the displacement vector) using a Hall sensor array, a one-to-one correspondence is achieved between the illuminated sectors of the indicator light and the trigger offset angle.

[0140] 2. Dynamic range convergence:

[0141] The illuminated sector of the indicator light narrows as the joystick's trigger offset increases, creating a visual focusing effect;

[0142] 3. Triple feedback mechanism:

[0143] (1) Directional indication (the location of the illuminated indicator light);

[0144] (2) Trip feedback (changes in the range of the illuminated indicator light);

[0145] (3) Operation intensity (brightness / color of the illuminated indicator light).

[0146] As can be seen, this embodiment combines Hall vector detection with light spatial modulation to break through the traditional ring lamp full-circle lighting mode and achieve asymmetric light effect. At the same time, it solves the problem of human-computer interaction intuition by using displacement-light domain mapping function.

[0147] refer to Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be a handheld game console with a controller, a television with a remote control, or other similar devices. The technical solution in this embodiment is mainly used to reduce the power consumption of the electronic device.

[0148] Specifically, the electronic device in this embodiment may include the following structure:

[0149] A first part 1201 and a second part 1202; a communication link 1203 is provided between the first part 1201 and the second part 1202;

[0150] Wherein, when the first part 1201 is in the first state, in response to the first part 1201 satisfying the first switching condition, the first part 1201 is controlled to switch from the first state to the second state;

[0151] In the first state, the communication link 1203 is disconnected; in the second state, the communication link 1203 is connected, and the connected communication link 1203 is used to transmit data between the first part 1201 and the second part 1202.

[0152] Specifically, processors are deployed in the first part 1201 and the second part 1202 respectively, and the communication link 1203 refers to the data transmission channel established between the processor in the first part 1201 and the processor in the second part 1202.

[0153] It should be noted that in the hardware deployment structure, the electronic device can be an integrated structure, with the hardware modules, such as processors, input buttons, and other structures, contained in both the first and second parts deployed within this integrated structure; alternatively, the electronic device can be a detachable structure, with the hardware modules contained in both the first and second parts deployed in separate substructures based on business requirements. For example, the input buttons in the first part are deployed on the first hardware structure, while the processor in the first part, the processor in the second part, and other structures are all deployed on the second hardware structure, with the second hardware structure detachably connected to the first hardware structure; another example is that the processor and input buttons in the first part are deployed on the first hardware structure, and the processor and other structures in the second part are all deployed on the second hardware structure; yet another example is that at least one processor and input buttons in the first part are deployed on the first hardware structure, while the other processors in the first part, the processor in the second part, and other structures are all deployed on the second hardware structure.

[0154] Taking a handheld game console as an example, the following explains the structural implementation of the electronic device:

[0155] In one implementation, the electronic device is a single, integrated structure, such as the controller (first part) and main unit (second part) of a handheld game console, which are not detachable. The first part includes a processor such as an MCU and input buttons such as joysticks, D-pads, Hall effect triggers, touchpads, macro buttons, etc. The second part includes a processor such as a CPU and other structures. The processor and input buttons in the first part, as well as the processor and other structures in the second part, are all deployed on the integrated structure.

[0156] For example, such as Figure 2 As shown, the first part includes an MCU and multiple input buttons each wired to the MCU. The second part includes a CPU and other structures. A wired communication link is established between the MCU and the CPU. When a user triggers an operation on the input buttons in the first part, the MCU detects these trigger operations and generates corresponding input data. The CPU can receive the input data uploaded by the MCU through the communication link and execute corresponding response instructions. In this embodiment, the MCU in the first part detects whether the first part meets a first switching condition.

[0157] In another implementation, the electronic device is a detachable structure, such as a handheld game console with a detachable controller. There can be one or more first parts. The processor and input buttons in the first part can be deployed on the first hardware structure, while the processor and other structures in the second part can be deployed on the second hardware structure.

[0158] For example, such as Figure 3As shown, the first part includes an MCU and multiple input buttons each wired to the MCU. The MCU and input buttons are deployed in a first hardware structure. The second part includes a CPU and other structures, which are deployed in a second hardware structure. The button chips of the input buttons are connected to the MCU, and a wireless communication link is established between the MCU and the CPU. When a user triggers an input button on the first part, the button chip generates corresponding input data in response to these triggering operations and transmits the input data to the MCU. The MCU receives this input data and transmits it to the CPU via the communication link. The CPU can receive the input data uploaded by the MCU and execute corresponding response instructions. In this embodiment, the MCU in the first part detects whether the first part meets a first switching condition.

[0159] In another implementation, the electronic device is a detachable structure, such as a handheld game console with a detachable controller. There can be one or more first parts. The processor and input buttons in the first part can be deployed on a first hardware structure, while other processors in the first part can be deployed on a second hardware structure; the processors and other structures in the second part can be deployed on the second hardware structure.

[0160] For example, such as Figure 4 As shown, the first part includes MCU1, MCU2, and multiple input buttons each wired to MCU1. MCU1 and the input buttons are deployed in a first hardware structure, and MCU2 is deployed in a second hardware structure. The second part includes a CPU and other structures, which are also deployed in the second hardware structure. MCU1 is connected to MCU2 via a wireless communication module, and a wired communication link is established between MCU2 and the CPU. When a user triggers an input button on the first part, the button chip generates corresponding input data in response to these triggering operations and transmits the input data to MCU1. MCU1 receives this input data and transmits it to MCU2. MCU2 transmits the input data to the CPU via the communication link. The CPU can receive the input data uploaded by MCU2 and execute corresponding response instructions. In this embodiment, MCU1 or MCU2 in the first part detects whether the first part meets a first switching condition.

[0161] In another implementation, the electronic device is a detachable structure, such as a handheld game console with a detachable controller. There can be one or more first parts. Input buttons in the first part can be deployed on a first hardware structure, and the processor in the first part can be deployed on a second hardware structure; the processor and other structures in the second part can be deployed on the second hardware structure.

[0162] For example, such as Figure 5As shown, the first part includes an MCU and multiple input buttons. The MCU is deployed on a second hardware structure, and the multiple input buttons are deployed on the first hardware structure. The button chips of the input buttons on the first hardware structure are connected to the MCU on the second hardware structure via a wireless communication module. The second part includes a CPU and other structures, which are deployed on the second hardware structure. A wired communication link is established between the MCU and the CPU. When a user triggers an operation on the input buttons in the first part, the button chips of the input buttons respond to these trigger operations, generate corresponding input data, and transmit the input data to the wireless communication module. The wireless communication module on the first part transmits these input data to the MCU on the second hardware structure. The MCU transmits the input data to the CPU, and the CPU can receive the input data uploaded by the MCU and execute corresponding response instructions. In this embodiment, the MCU in the first part detects whether the first part meets a first switching condition.

[0163] As can be seen from the above technical solutions, in the electronic device provided in this application embodiment, when the communication link between the first part of the electronic device and the second part is disconnected, the first part can be controlled to switch to a communication link-connected state in response to the first part meeting the first switching condition. Thus, the communication link in the connected state can transmit data between the first part and the second part. It is evident that in this application, the communication link between the first part and the second part is only connected when the first part of the electronic device meets the first switching condition. This ensures that data transmission between the first part and the second part is not affected by the first switching condition, while simultaneously disconnecting data transmission between the first part and the second part by placing the first part in a disconnected communication circuit state. This reduces the power consumption of the electronic device and achieves the objective of this application.

[0164] In one implementation, the first state includes a first sub-state, a second sub-state, and a third sub-state, wherein:

[0165] In the first sub-state, not only is the communication link between the first part and the second part disconnected, but the light output structure corresponding to the first type of button on the first part is also turned on. For example, the first sub-state is a shallow sleep state. The power consumption of the first part in the first sub-state is less than that of the first part in the second state.

[0166] In the second sub-state, not only is the communication link between the first and second parts disconnected, but the light output structure corresponding to the first type of button on the first part is turned on in response to the triggering of the first type of button. For example, the second sub-state is a pre-wake-up state. The power consumption of the first part in the second sub-state is less than the power consumption of the first part in the first sub-state.

[0167] In the third sub-state, the light output structure corresponding to the first type of button on the first part is in the off state. For example, the third sub-state is a deep sleep state. The power consumption of the first part in the third sub-state is less than that of the first part in the first sub-state. And the first part in the third sub-state switches to the second sub-state in response to the trigger offset of the first type of button being greater than or equal to a first threshold.

[0168] Based on this, when the first part is in the first sub-state, it can switch the first part from the first sub-state to the second state in response to any input key being triggered on the first part.

[0169] The first part can switch from the second sub-state to the second state when the first part is in the second or third sub-state, in response to the triggering of a second type of button on the first part.

[0170] When the first part is in the third sub-state, in response to the trigger offset of the first type of key on the first part being greater than or equal to the first threshold, the first part can control the first part to switch from the third sub-state to the second sub-state.

[0171] The first part can switch from the second state to the first sub-state when the first part is in the second state, in response to the duration of no input key being triggered on the first part being greater than or equal to the first duration.

[0172] The first part can switch from the first sub-state to the third sub-state when the first part is in the first sub-state, in response to a duration when all input keys on the first part are not triggered for a duration greater than or equal to a second duration.

[0173] The first part can switch from the second sub-state to the third sub-state when the first part is in the second sub-state, in response to the duration of any input on the first part not being triggered being greater than or equal to the third duration.

[0174] In addition, when the first part is in the second state, it can also save the transmission status information of the communication link in response to the fact that the duration for which all input keys on the first part have not been triggered is greater than or equal to the first duration. Then, the first part can control the communication link to be in the conducting state based on the transmission status information in response to the first part satisfying the first switching condition, and restore the data transmission between the first part and the second part on the communication link based on the transmission status information.

[0175] In one implementation, for example, such as Figure 13As shown, a light output structure 1212 is deployed on the first type button 1211 on the first part 1201. The light output structure 1212 consists of multiple indicator lights, which are deployed around the first type button 1211. These indicator lights can form a specific shape around the first type button 1211, such as a ring or a rectangle.

[0176] In this process, when the light output structure 1212 is in the on state, the first part 1201 controls at least one first indicator light 1221 in the light output structure 1212 to be in the on state according to the trigger offset angle and trigger offset amount of the first type button 1211, and controls a second indicator light 1222 that is different from the first indicator light 1221 to be in the off state. Figure 14 As shown in the diagram. The second indicator light 1222 is another indicator light in the light output structure 1212 that is different from the first indicator light 1221.

[0177] Here, different trigger offset angles correspond to first indicator lights positioned at different locations relative to the first type of button; and / or, different trigger offset amounts correspond to different numbers of first indicator lights. (Reference) Figure 7 , Figure 8 and Figure 9 The diagrams shown illustrate the lighting effects of the indicator lights in the light output structure 1212 (i.e., the joystick ring light) under different trigger offset angles and / or different trigger offset amounts.

[0178] As can be seen, in this embodiment, the indicator lights at different deployment positions in the light output structure can be lit according to the trigger offset angle and trigger offset amount of the first type of button to reflect the user's trigger state of the first type of button, thereby providing the user with a rich operating experience.

[0179] It should be noted that the number and deployment shape of the indicator lights in the light output structure 1212 can be set according to business or market requirements. For example, to achieve a better lighting indication effect, the indicator lights in the light output structure 1212 can be made small in size and numerous, resulting in a smoother light gradient effect.

[0180] In one implementation, a second type of button, such as a non-joystick button on a gamepad, is deployed on the first part. The button chip corresponding to the second type of button is connected to a first interface in the first part, and the first interface is connected to the second part.

[0181] The trigger signal generated by the button chip of the second type of button when the second type of button is triggered is transmitted to the second part through the first interface. The trigger signal is used to connect the communication link.

[0182] Specifically, the first interface is the interrupt pin of the processor in the first part, such as the INT pin of the MCU. The button chip of the second type of button is connected to the interrupt pin of the processor in the first part. The interrupt pin of the processor in the first part is directly connected to the processor in the second part. Therefore, the trigger signal generated when the second type of button is triggered can bypass the main core of the processor in the first part and be directly transmitted to the processor in the second part, thereby establishing a communication link between the first part and the second part.

[0183] As can be seen, in this embodiment, the trigger signal generated when the second type of button is triggered is directly transmitted to the second part through the first interface, without going through the processor of the first part. Thus, the processor of the second part can be directly notified to restore the communication link.

[0184] For example, such as Figure 15As shown, the first part, besides the MCU, includes various input buttons such as a D-pad, macro buttons, function buttons, left shoulder button (LB), shoulder buttons, left joystick, right joystick, Hall effect triggers, and a touchpad. The first part also includes a 6-axis sensor and RGB LEDs. Trigger signals generated by the D-pad and macro buttons are transmitted via General-Purpose Input / Output (GPIO) ports. Trigger signals generated by the left joystick, right joystick, and Hall effect triggers are transmitted via Analog-to-Digital Converter (ADC) ports. In addition to transmitting trigger signals via the interrupt pin INT, which is directly connected to the CPU, the MCU also transmits data with the CPU via a Universal Serial Bus (USB) or a wireless communication module such as Bluetooth. RGB LEDs and other sensors receive control signals from the MCU via a Pulse Width Modulation (PWM) port. A 6-axis sensor transmits sensor data via I2C, and the touchpad transmits touch signals via the I2C (Inter-Integrated Circuit) bus or the SPI (Serial Peripheral Interface) interface. Based on this, non-joystick buttons, such as the D-pad, are connected to the low-power interrupt pin INT on the MCU in the first part via GPIO. INT is directly connected to the CPU in the second part. Therefore, when a non-joystick button, such as the D-pad, is triggered, the generated trigger signal bypasses the MCU's main processing core and is directly sent to the INT interface via the GPIO interface, thus directly transmitting the signal to the CPU. This bypasses the MCU's main processing core and eliminates the need for caching and other processing steps, accelerating the transmission to the CPU and directly waking up the CPU to restore the communication link with the MCU, thereby speeding up the establishment of the communication link.

[0185] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0186] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0187] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0188] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A control method, comprising: When the first part of the electronic device is in a first state, in response to the first part satisfying a first switching condition, the first part is controlled to switch from the first state to a second state. In the first state, the communication link between the first part and the second part of the electronic device is disconnected; in the second state, the communication link is connected, and the connected communication link is used to transmit data between the first part and the second part.

2. The method according to claim 1, wherein the first state includes: First sub-state; In the first sub-state, the light output structure corresponding to the first type of button on the first part is in the on state; Wherein, in response to the first part satisfying the first switching condition, controlling the first part to switch from the first state to the second state includes: In response to any input key being triggered on the first part, the first part is controlled to switch from the first sub-state to the second state.

3. The method according to claim 1, wherein the first state includes: The second sub-state or the third sub-state; in the third sub-state, the light output structure corresponding to the first type of button on the first part is in the off state; The first part of the third sub-state switches to the second sub-state in response to the trigger offset of the first type of button being greater than or equal to the first threshold; in the second sub-state, the light output structure corresponding to the first type of button on the first part is turned on in response to the first type of button being triggered. Wherein, in response to the first part satisfying the first switching condition, controlling the first part to switch from the first state to the second state includes: In response to the triggering of a second type of button on the first part, the first part is controlled to switch from the second sub-state or the third sub-state to the second state.

4. The method according to claim 1, 2, or 3, wherein the first state includes: The system comprises a first sub-state, a second sub-state, and a third sub-state. In the first sub-state, the light output structure corresponding to the first type of button on the first part is in the on state. In the second sub-state, the light output structure corresponding to the first type of button on the first part is in the on state in response to the first type of button being triggered. In the third sub-state, the light output structure corresponding to the first type of button on the first part is in the off state. The method further includes one of the following: When the first part is in the third sub-state, in response to the trigger offset of the first type of key on the first part being greater than or equal to the first threshold, the first part is controlled to switch from the third sub-state to the second sub-state. When the first part is in the second state, in response to the duration of time during which all input keys on the first part are not triggered being greater than or equal to a first duration, the first part is controlled to switch from the second state to the first sub-state. When the first part is in the first sub-state, in response to the duration of time during which all input keys on the first part are not triggered being greater than or equal to the second duration, the first part is controlled to switch from the first sub-state to the third sub-state. When the first part is in the second sub-state, in response to the duration during which no input on the first part is triggered being greater than or equal to a third duration, the first part is controlled to switch from the second sub-state to the third sub-state.

5. The method according to claim 4, further comprising: When the first part is in the second state, in response to the duration during which all input keys on the first part are not triggered being greater than or equal to the first duration, the transmission status information of the communication link is saved. In response to the first part satisfying the first switching condition, based on the transmission status information, the communication link is controlled to be in an on state, and based on the transmission status information, data transmission between the first part and the second part is resumed on the communication link.

6. The method according to claim 1, 2, 3, 4 or 5, wherein the light output structure of the first type of button on the first part is composed of a plurality of indicator lights, the plurality of indicator lights being deployed around the first type of button; in, The method further includes: When the light output structure of the first type of button in the first part is in the open state, according to the trigger offset angle and trigger offset amount of the first type of button, at least one first indicator light in the light output structure is controlled to be in the open state, and a second indicator light that is different from the first indicator light among the plurality of indicator lights is controlled to be in the closed state. Wherein, different trigger offset angles correspond to the first indicator lights being in different deployment positions relative to the first type of button; and / or, different trigger offset amounts correspond to different numbers of the first indicator lights.

7. The method according to claim 6, further comprising: The light output parameters of the first indicator light are controlled according to the trigger offset of the first type of button. The light output parameters include at least one of the following: light brightness, light color luminance, and light hue.

8. An electronic device, comprising: Part One and Part Two; There is a communication link between the first part and the second part; Wherein, when the first part is in the first state, in response to the first part satisfying the first switching condition, the first part is controlled to switch from the first state to the second state; In the first state, the communication link is disconnected; in the second state, the communication link is connected, and the connected communication link is used to transmit data between the first part and the second part.

9. The electronic device according to claim 8, wherein a light output structure is deployed on the first type of button on the first part, the light output structure comprising a plurality of indicator lights, the plurality of indicator lights being deployed around the first type of button; in, When the light output structure is in the on state, the first part controls at least one first indicator light in the light output structure to be in the on state according to the trigger offset angle and trigger offset amount of the first type of button, and controls a second indicator light among the plurality of indicator lights that is different from the first indicator light to be in the off state. Wherein, different trigger offset angles correspond to the first indicator lights being in different deployment positions relative to the first type of button; and / or, different trigger offset amounts correspond to different numbers of the first indicator lights.

10. The electronic device according to claim 8 or 9, wherein a second type of button is deployed on the first part, and a button chip corresponding to the second type of button is connected to a first interface in the first part, and the first interface is connected to the second part; in, When the button chip of the second type of button is triggered, the trigger signal generated is transmitted to the second part through the first interface, and the trigger signal is used to connect the communication link.