Electronic equipment and control method

By designing a communication unit with a third interface in the electronic device, the MCU can be awakened based on the signals of the processing unit or auxiliary device, the problem of the MCU cannot wake up in the sleep state is solved, and the reliability and power consumption of the device are improved.

CN119960841APending Publication Date: 2025-05-09LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411959011.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The existing electronic devices cannot be effectively awakened when the MCU enters a dormant state, resulting in a crash.

Method used

An electronic device is designed, including a processing unit and a communication unit, which has a third interface that can switch the communication unit from a sleep state to an operating state based on a signal sent by a processing unit or a signal sent by an auxiliary device through a single bus.

Benefits of technology

It realizes effective wake-up in the MCU sleep state, avoids crashes, enhances the reliability and user experience of the device, and reduces the static power consumption of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960841A_ABST
    Figure CN119960841A_ABST
Patent Text Reader

Abstract

The invention provides electronic equipment and a control method, and is applied to the technical field of terminal equipment. The electronic equipment comprises a processing unit and a communication unit, wherein the processing unit is electrically connected with the communication unit; the communication unit comprises a first interface and a second interface, and the first interface and the second interface are connected with auxiliary equipment based on a single bus so as to perform transceiving communication; the communication unit further comprises a third interface, the third interface is different from the first interface and the second interface in type, the third interface can switch the communication unit from the second state to the first state based on a first signal sent by the processing unit or a second signal sent by the auxiliary device through the single bus, and when the communication unit is in the first state, the communication unit is in the second state. The first interface and the second interface are in a working state; and when the communication unit is in the second state, the first interface and the second interface are in a non-working state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of terminal equipment, and in particular to an electronic device and a control method. Background Art

[0002] At present, the sleep and wake-up function of electronic devices is a basic function. When the device is not in use, the sleep function can make the entire device enter a low-power state to avoid static power consumption of the system.

[0003] Microcontroller units (MCUs) are the basic components of many electronic devices. The power consumption of MCUs has a significant impact on the overall power consumption of devices. When they are not needed, they need to be able to enter sleep mode to reduce power consumption. However, some existing applications cannot guarantee the timing of external wake-up signals. Waking up the MCU may result in the chip failing to wake up and causing a freeze. Summary of the invention

[0004] In view of this, the present disclosure provides an electronic device and a control method.

[0005] According to a first aspect of the present disclosure, an electronic device is provided, comprising: a processing unit and a communication unit, the processing unit being electrically connected to the communication unit; the communication unit comprising a first interface and a second interface, the first interface and the second interface being connected to an auxiliary device based on a single bus for transceiver communication; the communication unit also comprising a third interface, the third interface being of a different type from the first interface and the second interface, the third interface being capable of switching the communication unit from a second state to a first state based on a first signal sent by the processing unit or a second signal sent by the auxiliary device via the single bus, wherein when the communication unit is in the first state, the first interface and the second interface are in a working state; and when the communication unit is in the second state, the first interface and the second interface are in a non-working state.

[0006] According to an embodiment of the present disclosure, the electronic device also includes: a first circuit, which is electrically connected to the processing unit and the third interface respectively; a second circuit, which is electrically connected to the first circuit, and the second circuit can logically invert the second signal based on the second signal sent by the auxiliary device through the single bus; the first circuit can perform a logical OR operation on the first signal sent by the processing unit or the second signal after logical inversion, and send the operation result to the third interface.

[0007] According to an embodiment of the present disclosure, when the communication unit is in the second state, the third interface is in a low level; the third interface can adjust the low level to a high level based on the first signal sent by the processing unit or the second signal sent by the auxiliary device through the single bus to switch the communication unit from the second state to the first state.

[0008] According to an embodiment of the present disclosure, when the communication unit is in the first state, the third interface is in a non-working state.

[0009] According to an embodiment of the present disclosure, when a predetermined event occurs in the auxiliary device in a non-working state, the auxiliary device can generate a second signal and send the second signal to the third interface through the single bus.

[0010] According to an embodiment of the present disclosure, the second signal satisfies the following predetermined conditions: the duration of the second signal exceeds a preset duration threshold; or the amount of data contained in the second signal exceeds a preset data amount threshold.

[0011] According to an embodiment of the present disclosure, the communication unit also includes a timer electrically connected to the third interface, and the timer can record the switching duration of the communication unit from the second state to the first state; the third interface can also keep the communication unit in the second state when the switching duration exceeds a preset abnormal duration threshold.

[0012] According to an embodiment of the present disclosure, the communication unit also includes a counter electrically connected to the third interface, and the counter can record the number of times the communication unit switches from the second state to the first state within a preset time period; the third interface can also keep the communication unit in the second state when the number of switching exceeds a preset abnormal number threshold.

[0013] A second aspect of the present disclosure provides a control method, including: when a communication unit of an electronic device is in a second state, the third interface of the communication unit switches the communication unit from the second state to the first state based on a first signal sent by a processing unit of the electronic device or a second signal sent by an auxiliary device through a single bus; wherein the processing unit is electrically connected to the communication unit, the first interface and the second interface of the communication unit are connected to the auxiliary device based on the single bus for transceiver communication, and the third interface is of a different type from the first interface and the second interface; when the communication unit is in the first state, the first interface and the second interface are in a working state; when the communication unit is in the second state, the first interface and the second interface are in a non-working state.

[0014] According to an embodiment of the present disclosure, the third interface of the communication unit switches the communication unit from the second state to the first state based on the first signal sent by the processing unit of the electronic device or the second signal sent by the auxiliary device through the single bus, including: the second circuit of the electronic device logically inverts the second signal based on the second signal sent by the auxiliary device through the single bus; the first circuit of the electronic device performs a logical OR operation on the first signal sent by the processing unit or the second signal after logical inversion; and the third interface switches the communication unit from the second state to the first state based on the result of the logical OR operation.

[0015] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0017] Figure 1 The structure of an electronic device in the related art is schematically shown.

[0018] Figure 2 The structure of an electronic device according to the first embodiment of the present disclosure is schematically shown.

[0019] Figure 3 The structure of an electronic device according to the second embodiment of the present disclosure is schematically shown.

[0020] Figure 4 The flowchart of the control method according to the embodiment of the present disclosure is schematically shown.

[0021] Figure 5 The flowchart of state switching using the third interface according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0022] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0023] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0024] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0025] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0026] The present disclosure provides an electronic device and a control method. Before introducing the technical solution provided by the present disclosure, Figure 1 The related technologies involved in the present disclosure are described.

[0027] Figure 1 The structure of an electronic device in the related art is schematically shown.

[0028] like Figure 1 As shown, in the related art, the expansion keyboard is connected to the microcontroller MCU of the tablet computer via a single bus 1-wire. It can be understood that 1-wire is a single-wire communication technology, a proprietary, half-duplex, bidirectional serial bus standard and interface technology, suitable for a single host system, capable of controlling one or more slave devices, the host only needs one port to communicate with the slave, and the slave can also obtain parasitic power from the bus.

[0029] When the tablet's microcontroller MCU is in a sleep state with lower power consumption (such as soft-power-off state), all common GPIOs (General Purpose Input / Output Port, such as the transmit TX port, receive RX port, and interrupt GPIO) of the MCU are in a high configuration and cannot recognize changes in external signals. The application processor AP can wake up the MCU by pulling up the wake-up signal (WAKE_UP), which is currently the only way to wake up the MCU when it is in this sleep state.

[0030] In this case, if the tablet computer is connected to an external keyboard and the MCU of the tablet computer needs to be woken up by the external keyboard, since the external keyboard is connected via a single bus 1-wire, the generated 1-wire signal cannot be recognized by all the ordinary GPIOs of the MCU, which also causes the 1-wire signal to fail to wake up the MCU.

[0031] It can be seen from this that some existing applications cannot guarantee the timing of the external wake-up signal. When the external wake-up signal comes during the time period when the sleep instruction is executed, the MCU may not be able to wake up normally and may freeze.

[0032] In view of the above problems, embodiments of the present disclosure provide an electronic device and a control method.

[0033] The following will be passed Figure 2~Figure 3 The electronic device according to the embodiment of the present disclosure is described in detail.

[0034] Figure 2 The structure of an electronic device according to the first embodiment of the present disclosure is schematically shown.

[0035] like Figure 2 As shown, the first embodiment of the present disclosure provides an electronic device 210, including:

[0036] The processing unit 211 and the communication unit 212 are electrically connected;

[0037] The communication unit 212 includes a first interface a and a second interface b, and the first interface a and the second interface b are connected to the auxiliary device 220 based on a single bus 1-wire to perform transceiver communication;

[0038] The communication unit 212 further includes a third interface c, which is different from the first interface a and the second interface b in type. The third interface c can switch the communication unit 212 from the second state to the first state based on the first signal sent by the processing unit 211 or the second signal sent by the auxiliary device 220 through the single bus 1-wire, wherein when the communication unit 212 is in the first state, the first interface a and the second interface b are in working state;

[0039] When the communication unit 212 is in the second state, the first interface a and the second interface b are in a non-working state.

[0040] By way of example, the electronic device 210 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like.

[0041] The auxiliary device 220 is a slave device connected to the electronic device 210 based on a single bus 1-wire. For example, it can be an expansion device with the electronic device 210 as the host, such as an expansion mouse, an expansion keyboard, or other 1-wire devices, such as a single bus IC device, memory, temperature and humidity sensor, logic device, clock chip, etc.

[0042] The processing unit 211 may be an application processor (AP), which is mainly responsible for executing an operating system, a user interface, and application programs.

[0043] The communication unit 212 may be a microcontroller unit (MCU). The MCU is a highly integrated chip that plays a core control role in various electronic devices and has the advantages of high performance, low power consumption, programmability, high flexibility, etc. Before entering sleep mode, the initial signal of the microcontroller is set to a high impedance state to execute the sleep command.

[0044] Exemplarily, the power consumption of the communication unit 212 in the second state is higher than that in the first state. For example, the first state may be a working state, and the second state may be a dormant state. Based on this, for the electronic device 210, when the communication unit 212 is in a working state, the first interface a and the second interface b are in a working state; when the communication unit 212 is in a dormant state, the first interface a and the second interface b are in a non-working state.

[0045] In other embodiments, the first state and the second state may be other power states, and the power consumption of the second state is lower than that of the first state. For example, for a computer system, multiple power states are supported, and these states correspond to the power states defined in the Advanced Configuration and Power Interface (ACPI) specification. Generally, the ACPI power states from the highest to the lowest power consumption include S0 (running state), S0ix low power idle, S1~S3 (sleep state), S4 (hibernation), S5 (soft off), G3 (mechanical off), etc.

[0046] It should be noted that the third interface c is of a different type from the first interface a and the second interface b. The different types do not refer to interface types such as USB interface, Type-C interface, Lightning interface, HDMI interface, VGA interface, DVI interface, etc., but indicate that the first interface a and the second interface b are in a high configuration when not in operation and cannot recognize changes in external signals, that is, they cannot be connected to the auxiliary device 220 based on the single bus 1-wire for transceiver communication. The third interface c can receive the second signal sent by the auxiliary device 220 through the single bus 1-wire regardless of whether it is in operation or not. In addition, the change of the interface type of the first interface a, the second interface b, and the third interface c cannot change the state of the communication unit 212.

[0047] For example, the first interface a and the second interface b may be ordinary GPIO (General Purpose Input / Output Port, such as a transmitting TX port, a receiving RX port, and an interrupt GPIO), and the third interface c is not an ordinary GPIO.

[0048] For another example, the first interface a, the second interface b, and the third interface c may all be common GPIOs, wherein the first interface a and the second interface b may be a transmitting TX port and a receiving RX port.

[0049] For example, when the electronic device is a tablet computer, the processing unit is an AP, the communication unit is an MCU, and the auxiliary device is an extended keyboard, when the MCU is in a sleep state with lower power consumption (such as a soft-power-off state), the third interface can switch the MCU from the sleep state to the working state based on the first signal sent by the AP or the second signal sent by the extended keyboard through the single bus 1-wire, thereby successfully waking up the MCU. In this way, the problem of being unable to wake up the MCU in the sleep state in the aforementioned related technology can be solved, the reliability of the device can be enhanced, and the user experience can be improved. In addition, it can be ensured that the function of the processing unit to wake up the MCU is not affected.

[0050] Through the electronic device of this embodiment, when the communication unit is in sleep mode, only the sleep wake-up function of the third interface is retained, so that the third interface can trigger the sleep wake-up of the communication unit based on the first signal sent by the processing unit or the second signal sent by the auxiliary device through the single bus 1-wire, thereby achieving complete power-off of most modules of the electronic device in the sleep state, effectively reducing the static power consumption of the system, and simplifying the design of peripheral circuits, with low cost, strong stability and high reliability.

[0051] In some embodiments, when the communication unit is in the second state, the third interface is at a low level; the third interface can adjust the low level to a high level based on the first signal sent by the processing unit or the second signal sent by the auxiliary device through the single bus to switch the communication unit from the second state to the first state.

[0052] Taking the second state as the sleep state as an example, in this way, when the communication unit is in the sleep state, the third interface is at a low level, that is, the wake-up function of the third interface can be enabled at this time, so that whether it is the processing unit or the auxiliary device connected through the single bus, the level of the third interface can be pulled up to wake up the communication unit.

[0053] In some embodiments, when the communication unit is in the first state, the third interface is in a non-working state.

[0054] Taking the first state as the working state as an example, in this way, when the communication unit is in the working state, the third interface is in the non-working state, that is, the wake-up function is invalid, thereby avoiding external interference when the communication unit is in the working state.

[0055] In some embodiments, when a predetermined event occurs in the non-working state, the auxiliary device can generate a second signal and send the second signal to the third interface via the single bus.

[0056] It is understandable that when the auxiliary device is different, the predetermined event may be the same or different. For example, the auxiliary device may be an extended keyboard, the predetermined event may be a key press event for the extended keyboard, and when the user triggers the key press event, a second signal may be generated and sent to the third interface.

[0057] In some embodiments, the second signal satisfies the following predetermined conditions: the duration of the second signal exceeds a preset duration threshold; or, the amount of data contained in the second signal exceeds a preset data amount threshold.

[0058] Based on the above embodiments, it can be known that when the communication unit is in the second state, the third interface needs to recognize a high level in order to trigger the wake-up instruction for the communication unit. In other words, the high level needs to last for a period of time before it can be recognized by the third interface. Therefore, the second signal sent by the auxiliary device through the single bus 1-wire needs to meet the predetermined condition that the duration of the second signal exceeds the preset duration threshold. Among them, the duration threshold can be pre-set, such as set to 200us (microseconds), and this embodiment does not limit the setting of the duration threshold.

[0059] Furthermore, based on the single bus communication technology, the speed of the second signal sent by the single bus 1-wire is about 1Mbps, that is, the amount of data transmitted per second is 1 megabit. If the duration of the second signal exceeds 200us, it is also necessary to detect the amount of data contained in the second signal. When the amount of data exceeds the preset data amount threshold, it can be recognized by the third interface. Therefore, the second signal sent by the auxiliary device through the single bus 1-wire needs to meet another predetermined condition that the amount of data contained in the second signal exceeds the preset data amount threshold. Among them, the data amount threshold can be pre-set, such as set to 200bit (bits), and this embodiment does not limit the setting of the data amount threshold.

[0060] In some embodiments, the communication unit further includes a timer electrically connected to the third interface, and the timer can record the switching time of the communication unit switching from the second state to the first state;

[0061] The third interface can also keep the communication unit in the second state when the switching duration exceeds a preset abnormal duration threshold.

[0062] For example, when the communication unit is in the second state and receives a wake-up instruction from the third interface, the communication unit switches to the first state after a longer switching time. In this case, the third interface can keep the communication unit in the second state, avoiding long-term abnormal wake-up, reducing the occurrence of sleep wake-up failures, and improving user experience.

[0063] In some embodiments, the communication unit further includes a counter electrically connected to the third interface, and the counter is capable of recording the number of times the communication unit switches from the second state to the first state within a preset period of time;

[0064] The third interface can also keep the communication unit in the second state when the number of switching times exceeds a preset abnormal number threshold.

[0065] For example, when the communication unit switches from the second state to the first state frequently within a preset time period, the third interface can keep the communication unit in the second state, avoiding frequent abnormal wake-up, reducing sleep wake-up failures, and improving user experience.

[0066] A second embodiment of the present disclosure provides an electronic device. For the sake of brevity, features that are the same or similar to those of the first embodiment are not described in detail, and only features that are different from those of the first embodiment are described below.

[0067] Figure 3 The structure of an electronic device according to the second embodiment of the present disclosure is schematically shown.

[0068] like Figure 3 As shown, the second embodiment of the present disclosure provides an electronic device 310. Different from the electronic device 210 in the above embodiment, the electronic device 310 further includes:

[0069] The first circuit 311 is electrically connected to the processing unit 211 and the third interface c respectively;

[0070] The second circuit 312 is electrically connected to the first circuit 311, and the second circuit 312 can logically invert the second signal based on the second signal sent by the auxiliary device 220 through the single bus 1-wire;

[0071] The first circuit 311 can perform a logic OR operation on the first signal sent by the processing unit 211 or the second signal after logical inversion, and send the operation result to the third interface c.

[0072] It should be noted that since the occurrence timings of the first signal and the second signal are unrelated to each other, the two may occur at the same time or at different times, and a logical OR operation may be performed on the first signal sent by the processing unit 211 or the second signal that is logically inverted, or a logical OR operation may be performed on at least one of the first signal and the second signal, so that the third interface can trigger the sleep wake-up of the communication unit based on the first signal sent by the processing unit or the second signal sent by the auxiliary device through the single bus 1-wire.

[0073] Considering that a single bus 1-wire usually requires an external pull-up resistor, when the bus is idle, its state is high level. When the bus is working, its state is low level. In this case, this embodiment performs logic inversion on the second signal sent through the single bus 1-wire, so that the second signal after logic inversion can reflect whether the second signal is a wake-up signal that needs to trigger the communication unit.

[0074] In addition, the first circuit 311 can also perform a logic OR operation on the first signal sent by the processing unit 211, which can ensure that the function of the processing unit waking up the communication unit is not affected.

[0075] Therefore, the following Table 1 provides a logic state table of the wake-up signal of the third interface of the electronic device 310 .

[0076] Table 1

[0077]

[0078] Among them, POGO_WAKE_UP, B, AP_WAKE_UP, and WAKE_UP are respectively Figure 3 At different points in the figure, POGO_WAKE_UP represents the logic state of the second signal sent by the auxiliary device 220 through the single bus 1-wire, B represents the logic state of the second signal after logical inversion, AP_WAKE_UP represents the logic state of the first signal sent by the processing unit 211, and WAKE_UP represents the result of a logical OR operation on the first signal sent by the processing unit 211 or the second signal after logical inversion.

[0079] From the above relationship, it can be seen that no matter it is the first signal sent by the processing unit 211 or the second signal sent by the auxiliary device 220 through the single bus 1-wire, the level of the third interface can be pulled high to wake up the communication unit.

[0080] To sum up, the electronic device provided by the embodiment of the present disclosure, when the communication unit is in sleep mode, only the sleep wake-up function of the third interface is retained, so that the third interface can trigger the sleep wake-up of the communication unit based on the first signal sent by the processing unit or the second signal sent by the auxiliary device through the single bus 1-wire, thereby achieving complete power-off of most modules of the electronic device in the sleep state, effectively reducing the static power consumption of the system, and simplifying the design of peripheral circuits, with low cost, strong stability and high reliability.

[0081] Based on the above electronic device, the present disclosure also provides a control method. Figure 4~Figure 5 The control method of the embodiment of the present disclosure is described in detail.

[0082] Figure 4The flowchart of the control method according to the embodiment of the present disclosure is schematically shown.

[0083] like Figure 4 As shown, the control method of this embodiment includes operation S410.

[0084] In operation S410, when the communication unit of the electronic device is in the second state, the third interface of the communication unit switches the communication unit from the second state to the first state based on a first signal sent by the processing unit of the electronic device or a second signal sent by the auxiliary device through the single bus.

[0085] The processing unit is electrically connected to the communication unit, the first interface and the second interface of the communication unit are connected to the auxiliary device based on a single bus to perform transceiver communication, and the third interface is of a different type from the first interface and the second interface;

[0086] When the communication unit is in the first state, the first interface and the second interface are in a working state;

[0087] When the communication unit is in the second state, the first interface and the second interface are in a non-working state.

[0088] Figure 5 The flowchart of state switching using the third interface according to an embodiment of the present disclosure is schematically shown.

[0089] like Figure 5 As shown, in some embodiments, the third interface of the communication unit in the above-mentioned operation S410 switches the communication unit from the second state to the first state based on the first signal sent by the processing unit of the electronic device or the second signal sent by the auxiliary device through the single bus, and may further include the following operations S501 to S503.

[0090] In operation S501, a second circuit of the electronic device logically inverts a second signal based on a second signal sent by the auxiliary device through the single bus.

[0091] In operation S502, the first circuit of the electronic device performs a logical OR operation on the first signal sent by the processing unit or the second signal that has been logically inverted.

[0092] In operation S503, the third interface switches the communication unit from the second state to the first state based on the result of the logical OR operation.

[0093] The control method of the disclosed embodiment is applied to the electronic device 210 and the electronic device 310 of the above embodiment. The communication unit, the processing unit, the first interface, the second interface, the third interface, the auxiliary device, the single bus, the first circuit, and the second circuit can all refer to the description of the electronic device 210 and the electronic device 310 of the above embodiment, and will not be repeated here.

[0094] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0095] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. An electronic device, comprising: a processing unit and a communication unit, wherein the processing unit is electrically connected to the communication unit; The communication unit includes a first interface and a second interface, wherein the first interface and the second interface are connected to the auxiliary device based on a single bus to perform transceiver communication; The communication unit further comprises a third interface, the third interface is of a different type from the first interface and the second interface, and the third interface is capable of switching the communication unit from the second state to the first state based on a first signal sent by the processing unit or a second signal sent by the auxiliary device through the single bus, wherein when the communication unit is in the first state, the first interface and the second interface are in working state; When the communication unit is in the second state, the first interface and the second interface are in a non-working state.

2. The electronic device according to claim 1, further comprising: A first circuit is electrically connected to the processing unit and the third interface respectively; a second circuit, electrically connected to the first circuit, and capable of logically inverting a second signal sent by the auxiliary device through the single bus; The first circuit can perform a logic OR operation on the first signal sent by the processing unit or the second signal after logical inversion, and send the operation result to the third interface.

3. The electronic device according to claim 1, wherein when the communication unit is in the second state, the third interface is at a low level; The third interface can adjust the low level to a high level based on the first signal sent by the processing unit or the second signal sent by the auxiliary device through the single bus, so as to switch the communication unit from the second state to the first state. 4 . The electronic device according to claim 1 , wherein when the communication unit is in the first state, the third interface is in a non-working state. 5 . The electronic device according to claim 1 , wherein when a predetermined event occurs in a non-working state, the auxiliary device is capable of generating a second signal and sending the second signal to the third interface through the single bus.

6. The electronic device according to claim 1 or 5, wherein the second signal satisfies the following predetermined condition: The duration of the second signal exceeds a preset duration threshold; or The amount of data included in the second signal exceeds a preset data amount threshold.

7. The electronic device according to claim 1, wherein the communication unit further comprises a timer electrically connected to the third interface, and the timer is capable of recording a switching time length of the communication unit switching from the second state to the first state; The third interface can also keep the communication unit in the second state when the switching duration exceeds a preset abnormal duration threshold.

8. The electronic device according to claim 1, wherein the communication unit further comprises a counter electrically connected to the third interface, wherein the counter is capable of recording the number of times the communication unit switches from the second state to the first state within a preset period of time; The third interface can also keep the communication unit in the second state when the switching times exceed a preset abnormal times threshold.

9. A control method, comprising: When the communication unit of the electronic device is in the second state, the third interface of the communication unit switches the communication unit from the second state to the first state based on the first signal sent by the processing unit of the electronic device or the second signal sent by the auxiliary device through the single bus; The processing unit is electrically connected to the communication unit, the first interface and the second interface of the communication unit are connected to the auxiliary device based on the single bus to perform transceiver communication, and the third interface is of a different type from the first interface and the second interface; When the communication unit is in the first state, the first interface and the second interface are in working state; When the communication unit is in the second state, the first interface and the second interface are in a non-working state.

10. The control method according to claim 9, wherein the third interface of the communication unit switches the communication unit from the second state to the first state based on the first signal sent by the processing unit of the electronic device or the second signal sent by the auxiliary device through the single bus, comprising: The second circuit of the electronic device logically inverts the second signal based on the second signal sent by the auxiliary device through the single bus; The first circuit of the electronic device performs a logical OR operation on the first signal sent by the processing unit or the second signal after logical inversion; The third interface switches the communication unit from the second state to the first state based on a result of the logical OR operation.