Electronic device with low-power wakeup mechanism and operating method thereof
By waking up the upper-layer circuit using the logic conversion event of the differential signal line in the electronic device and changing the voltage state of the differential signal line, the host device detects the insertion and unplugging event, and solving the problem of the electronic device in the sleep state in the prior art. The problem of high power consumption achieves the effect of low power consumption wake-up and fast recovery of connections.
Patent Information
- Application Number
- CN202310966454.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-02
- Publication Date
- 2025-02-14
AI Technical Summary
The existing electronic devices still maintain high power consumption in a dormant state, affecting the purpose of power saving.
By designing an electronic device with a low power wake-up mechanism in an electronic device, a pair of differential signal lines of the universal serial bus interface performs logic conversion events in a sleep state, wake up the upper layer circuit and restore power supply, and change The voltage state of the differential signal line drives the host device to detect the insertion and removal events, causing the upper-layer circuit and the host device to initialize and enumerate the program.
It realizes the low-power consumption wake-up of the upper layer circuit in the sleep state, and quickly restores the connection with the host device without additional storage before power outage, achieving the purpose of power saving.
Smart Images

Figure CN119440635A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an electronic device wake-up technology, and more particularly to an electronic device with a low-power wake-up mechanism and an operation method thereof. Background Art
[0002] Universal Serial Bus (USB) is a serial bus standard that connects computers and devices, allowing the host to communicate with peripheral devices. In order to save power consumption, the host and peripheral devices connected by the USB will enter a dormant state when not in use for a period of time. Once there is any activity on the USB, the host or peripheral device can be awakened.
[0003] When a peripheral device enters a dormant state, it is often necessary to divide the upper circuit into a power-off area and an uninterruptible area, so that the uninterruptible area stores the status information before the power-off and stops the power supply to enter the dormant state. After waking up, the upper circuit that resumes power can quickly restore the connection with the host through the status information stored in the uninterruptible area. However, such a design will cause the peripheral device to maintain a high power consumption even in the dormant state, which is not conducive to the purpose of power saving. Summary of the invention
[0004] In view of the problems of the prior art, one object of the present invention is to provide an electronic device with a low-power wake-up mechanism and an operating method thereof to improve the prior art.
[0005] The present invention includes an electronic device with a low-power wake-up mechanism, including: an upper layer circuit and a physical layer circuit. The upper layer circuit is configured to cut off power in a sleep state. The physical layer circuit is configured to: wake up the upper layer circuit to restore power supply according to a logic conversion event in which a pair of differential signal lines of a universal serial bus interface is converted from a sleep logic state to a wake-up logic state in the sleep state, wherein the pair of differential signal lines electrically couple the physical layer circuit with a host device; change the voltage state of the pair of differential signal lines to drive the host device to detect a pull-out event and a plug-in event in sequence; and enable the upper layer circuit to perform an initialization and enumeration procedure with the host device, thereby reconnecting with the host device.
[0006] The present invention also includes a method for operating an electronic device with a low-power wake-up mechanism, which is applied to an electronic device and includes the following steps: cutting off power to the upper-layer circuit in a sleep state; waking up the upper-layer circuit to restore power supply in a sleep state according to a logic conversion event in which a pair of differential signal lines of a universal serial bus interface are converted from a sleep logic state to a wake-up logic state, wherein the pair of differential signal lines electrically couples the physical layer circuit to a host device; causing the physical layer circuit to change the voltage state of the pair of differential signal lines to drive the host device to detect unplugging events and plugging events in sequence; and causing the upper-layer circuit to perform initialization and enumeration procedures with the host device to reconnect with the host device.
[0007] The features, implementation and effects of the present invention are described in detail below with reference to the drawings as preferred embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 A block diagram showing an electronic device with a low-power wake-up mechanism and a host device electrically coupled to the electronic device in one embodiment of the present invention;
[0009] Figure 2 A block diagram showing an electronic device with a low-power wake-up mechanism and a host device electrically coupled to the electronic device in another embodiment of the present invention; and
[0010] Figure 3 The flowchart shows an operation method of an electronic device with a low power consumption wake-up mechanism according to an embodiment of the present invention. DETAILED DESCRIPTION
[0011] One of the purposes of the present invention is to provide an electronic device with a low-power wake-up mechanism and an operating method thereof, which wakes up the upper circuit in a sleep state according to a logic conversion event of a differential signal line to restore power supply, and drives a host device to detect unplugging events and plugging events in sequence by changing the voltage state of the differential signal line, so that the upper circuit and the host device perform initialization and enumeration procedures and reconnect with the host device.
[0012] Please refer to Figure 1 . Figure 1 The block diagram shows an electronic device 100 with a low power consumption wake-up mechanism and a host device 150 electrically coupled to the electronic device 100 according to an embodiment of the present invention.
[0013] In one embodiment, the electronic device 100 is, for example but not limited to, a mouse, a keyboard or other peripheral electronic devices, and is configured to be electrically coupled to the host device 150 to interact with the host device 150. In one embodiment, the electronic device 100 and the host device 150 are electrically coupled via a universal serial bus (USB) interface.
[0014] Generally speaking, a universal serial bus interface includes at least a pair of differential signal lines (D+, D-) and a power line (Vbus), and optionally includes, for example but not limited to, a ground line, an identification (ID) line, etc. Figure 1 , a differential signal line including a positive signal line DP and a negative signal line DN electrically coupled between the electronic device 100 and the host device 150 is exemplarily shown. The electronic device 100 and the host device 150 are respectively provided with corresponding connection ports to be electrically coupled through the above lines.
[0015] The electronic device 100 includes an upper layer circuit 110 and a physical layer circuit 120 .
[0016] The upper layer circuit 110 is configured to be powered off in a sleep state. In one embodiment, the upper layer circuit 110 includes a data link layer circuit (not shown), and the data link layer circuit includes, for example but not limited to, a media access control layer (MAC) circuit (not shown) and a logical link control (LLC) layer circuit (not shown). It should be noted that the structure of the upper layer circuit 110 described above is only an example. The present invention is not limited thereto.
[0017] The physical layer circuit 120 is still powered in the sleep state. The physical layer circuit 120 is configured to wake up the upper layer circuit 110 in the sleep state according to a logic transition event of the differential signal line from the sleep logic state to the wake-up logic state so that the upper layer circuit 110 can resume power supply. The differential signal line electrically couples the physical layer circuit 120 to the host device 150.
[0018] In one embodiment, the positive signal line DP in the differential signal line is in the first logic state and the negative signal line DN in the differential signal line is in the second logic state corresponding to the sleep logic state. The positive signal line DP is in the second logic state and the negative signal line DN is in the first logic state corresponding to the wake-up logic state.
[0019] In one embodiment, the first logic state is 1, and the second logic state is 0. In more detail, the logic states of the positive signal line DP and the negative signal line DN are high and low, respectively, and the "J state" represented by (1,0) corresponds to the sleep logic state. The logic states of the positive signal line DP and the negative signal line DN are low and high, respectively, and the "K state" represented by (0,1) corresponds to the wake-up logic state.
[0020] The electronic device 100 may have different operation modes according to the different roles it plays in the wake-up process.
[0021] When the electronic device 100 is the awakened party, that is, when the electronic device 100 is awakened by the host device 150 , the host device 150 actively switches the differential signal line from the sleep logic state to the awake logic state.
[0022] Therefore, the above logic conversion event is that the physical layer circuit 120 passively detects that the host device 150 causes the differential signal line to convert from the sleep logic state to the wake-up logic state. In one embodiment, the physical layer circuit 120 can immediately restore power to the upper layer circuit 110 when detecting that the differential signal line converts from the sleep logic state to the wake-up logic state.
[0023] When the electronic device 100 is the awakening party, that is, the electronic device 100 is used to wake up the host device 150, the electronic device 100 will actively convert the differential signal line from the sleep logic state to the awake logic state, so that the host device 150 passively detects the occurrence of the state transition.
[0024] Therefore, the above-mentioned logic conversion event is that the physical layer circuit 120 actively converts the differential signal line from the sleep logic state to the wake-up logic state. In one embodiment, since the host device 150 needs a period of time to detect the occurrence of the state change, the physical layer circuit 120 waits for a preset period of time, such as but not limited to 2.5 milliseconds, after actively converting the differential signal line from the sleep logic state to the wake-up logic state, before restoring power to the upper layer circuit 110.
[0025] In one embodiment, the physical layer circuit 120 can wake up the upper layer circuit 110 only according to the logic conversion event corresponding to one of the positive signal line DP and the negative signal line DN. Taking the above-mentioned case where (1,0) corresponds to the sleep logic state and (0,1) corresponds to the wake-up logic state as an example, the physical layer circuit 120 can wake up the upper layer circuit 110 only according to the event that the positive signal line DP changes from a high state (1) to a low state (0), or wake up the upper layer circuit 110 only according to the event that the negative signal line DN changes from a low state (0) to a high state (1).
[0026] In one embodiment, the above-mentioned logic conversion event can be performed by an analog driving circuit (not shown in the figure) included in the physical layer circuit 120 to control the voltage of the positive signal line DP and the negative signal line DN.
[0027] The physical layer circuit 120 can determine whether it has a state storage area for storing the state before power failure of the upper layer circuit 110. When the physical layer circuit 120 determines that it does not have a state storage area, it will change the voltage state of the differential signal line to drive the host device 150 to detect the unplug event and the plug event in sequence.
[0028] In one embodiment, the electronic device 100 further includes a pull-up resistor circuit 130 electrically coupled to the differential signal line in the sleep state and having a first resistance parameter relative to the differential signal line, so that the differential signal line has a first voltage state.
[0029] The physical layer circuit 120 is configured to control the pull-up resistor circuit 130 so that the pull-up resistor circuit 130 has a second resistance parameter relative to the differential signal line so that the differential signal line has a second voltage state, thereby driving the host device 150 to detect a pull-out event. The physical layer circuit 120 is further configured to control the pull-up resistor circuit 130 so that the pull-up resistor circuit 130 has a first resistance parameter relative to the differential signal line so that the differential signal line has a first voltage state, thereby driving the host device 150 to detect an insertion event.
[0030] In one example, the pull-up resistor circuit 130 includes a first resistor R1 corresponding to the positive signal line DP and a second resistor R2 corresponding to the negative signal line DN. In the dormant state, the first resistor R1 is electrically coupled to the positive signal line DP, the second resistor R2 is electrically coupled to the negative signal line DN, and the first resistance parameter includes a first resistance value of the first resistor R1 relative to the positive signal line DP and a second resistance value of the second resistor R2 relative to the negative signal line DN.
[0031] The physical layer circuit 120 is configured to control the pull-up resistor circuit 130 to be disconnected from the differential signal line so that the differential signal line has a second voltage state. In more detail, the physical layer circuit 120 controls the first resistor R1 and the second resistor R2 to be disconnected from the positive signal line DP and the negative signal line DN respectively. The second resistance parameter includes a first resistance value of the first resistor R1 relative to the positive signal line DP and a second resistance value of the second resistor R2 relative to the negative signal line DN, both of which are 0 in this embodiment. At this time, the second voltage state of the positive signal line DP and the negative signal line DN will drive the host device 150 to detect the unplugging event.
[0032] Furthermore, the physical layer circuit 120 is configured to control the pull-up resistor circuit 130 to be electrically coupled to the differential signal line again so that the differential signal line has a first voltage state. In more detail, the physical layer circuit 120 controls the first resistor R1 and the second resistor R2 to be electrically coupled to the positive signal line DP and the negative signal line DN respectively again so that the first resistor R1 and the second resistor R2 have a first resistance parameter relative to the positive signal line DP and the negative signal line DN respectively again. At this time, the first voltage state of the positive signal line DP and the negative signal line DN will drive the host device 150 to detect the insertion event.
[0033] After the host device 150 detects the insertion event, the physical layer circuit 120 will perform initialization and enumeration procedures with the host device 150, thereby reconnecting the upper layer circuit 110 to the host device 150. More specifically, after the host device 150 detects the insertion event, it will initiate and perform initialization and enumeration procedures with the upper layer circuit 110. After the initialization and enumeration procedures are completed, the upper layer circuit 110, which has been powered on again, can reconnect to the host device 150.
[0034] It should be noted that in the above embodiment, the physical layer circuit 120 changes the logic state of the differential signal line and adjusts the resistance parameter of the pull-up resistor circuit 130 to change the voltage state of the differential signal line as an example to illustrate the method of changing the voltage state of the differential signal line. In other embodiments, the change of the voltage state of the differential signal line can be achieved by other methods.
[0035] Furthermore, in the above embodiment, the method of driving the host device 150 to detect the unplugging event and the plugging event is only described by adjusting the resistance parameter of the pull-up resistor circuit 130. In other embodiments, the physical layer circuit 120 can drive the host device 150 to detect the unplugging event and the plugging event by other methods.
[0036] For example, the physical layer circuit 120 can change the resistance value of the pull-up resistor circuit relative to the differential signal line by connecting the pull-up resistor circuit in parallel or in series with other resistor circuits or by using a variable resistor to implement the pull-up resistor circuit without disconnecting the pull-up resistor circuit from the differential signal line, thereby achieving the purpose of driving the host device 150 to detect unplugging events and plugging events.
[0037] In another example, the physical layer circuit 120 can also change the voltage state of the differential signal line in a manner independent of the pull-up resistor circuit to achieve the purpose of driving the host device 150 to detect the unplug event and the plug-in event. The present invention is not limited thereto.
[0038] Please refer to Figure 2 . Figure 2The block diagram of an electronic device 100 with a low power consumption wake-up mechanism and a host device 150 electrically coupled to the electronic device 100 is shown in another embodiment of the present invention. Figure 1 The electronic device 100 is similar to the above, and also includes an upper layer circuit 110 and a physical layer circuit 120. The same element relationships and operation methods will not be described in detail here.
[0039] In this embodiment, the physical layer circuit 120 has a state storage area 200, and the state storage area 200 is configured to store the pre-power-off state 210 of the upper layer circuit 110 in the sleep state. In one embodiment, the state storage area 200 may be an onboard physical layer (A-PHY) circuit.
[0040] Therefore, when the physical layer circuit 120 has the state storage area 200 , the voltage state of the differential signal line is not changed, and the upper layer circuit 110 is directly allowed to access the pre-power-off state 210 from the state storage area 200 , thereby restoring the connection with the host device 150 .
[0041] In some technologies, in order to quickly restore the connection between the upper circuit and the host device, the upper circuit needs to be divided into an uninterrupted power area to store the state of the upper circuit before power failure, so that the upper circuit can access it after power is restored. However, such a design will cause the electronic device to maintain a high power consumption even in the sleep state, which is not conducive to the purpose of power saving.
[0042] Therefore, the electronic device with low power consumption wake-up mechanism and its operation method of the present invention wakes up the upper circuit in the sleep state according to the logic conversion event of the differential signal line to restore power supply, and drives the host device to detect the unplugging event and the plugging event in sequence by changing the voltage state of the differential signal line, so that the upper circuit and the host device are initialized and enumerated and connected to the host device. In the case of not needing to store the state before power failure, the upper circuit of the electronic device can still quickly restore the connection with the host device, thereby achieving the purpose of power saving.
[0043] Optionally, an electronic device with a low-power wake-up mechanism and its operating method can also completely power off the upper-layer circuit with a more complex design and power consumption in a sleep state when the physical layer circuit has a status storage area, and directly enable the upper-layer circuit that has restored power to access the state before power failure from the status storage area when waking up, thereby restoring the connection with the host device.
[0044] Please refer to Figure 3 . Figure 3 The flowchart shows an operation method 300 of an electronic device with a low power consumption wake-up mechanism according to an embodiment of the present invention.
[0045] In addition to the aforementioned devices, the present invention further discloses an electronic device operation method 300 with a low power consumption wake-up mechanism, which is applied to, for example, but not limited to Figure 1 In the electronic device 100. One embodiment of the electronic device operation method 300 is as follows: Figure 3 As shown, it includes the following steps:
[0046] In step S310 , the upper layer circuit 110 is powered off in the sleep state.
[0047] In step S320, the physical layer circuit 120 is caused to switch from a sleep logic state to a wake-up logic state in a sleep state according to a logic conversion event of a pair of differential signal lines of the universal serial bus interface, thereby waking up the upper layer circuit 110 to restore power supply, wherein the differential signal lines electrically couple the physical layer circuit 120 to the host device 150.
[0048] In step S330 , the physical layer circuit 120 determines whether it has a status storage area for storing the pre-power-off status of the upper layer circuit 110 .
[0049] In step S340 , when the physical layer circuit 120 does not have a state storage area, the physical layer circuit 120 changes the voltage state of the differential signal line to drive the host device 150 to detect the unplugging event and the plugging event in sequence.
[0050] In step S350 , the upper layer circuit 110 and the host device 150 are initialized and enumerated, and then reconnected to the host device 150 .
[0051] In step S360, when the physical layer circuit 120 has, for example Figure 2 When the state storage area 200 is shown, the upper layer circuit 110 directly accesses the state 210 before power failure from the state storage area 200, and then restores the connection with the host device 150.
[0052] It should be noted that the above implementation is only an example, and those skilled in the art may make changes in other embodiments without departing from the spirit of the present invention.
[0053] In summary, the electronic device with a low-power wake-up mechanism and its operating method in the present invention can wake up the upper circuit to restore power supply according to the logic conversion event of the differential signal line in the sleep state, and drive the host device to detect the unplugging event and the plugging event in sequence by changing the voltage state of the differential signal line, so that the upper circuit and the host device can be initialized and enumerated and reconnected to the host device.
[0054] Although the embodiments of the present case are described above, these embodiments are not intended to limit the present case. Those with ordinary knowledge in the technical field may make changes to the technical features of the present case based on the explicit or implicit contents of the present case. All these changes may fall within the scope of patent protection sought in the present case. In other words, the scope of patent protection in the present case shall be subject to the scope of the patent application defined in this specification.
[0055]
Explanation of symbols
[0056] 100: Electronic devices
[0057] 110: Upper circuit
[0058] 120: Physical layer circuit
[0059] 130: Pull-up resistor circuit
[0060] 150: Host device
[0061] 200: Status storage area
[0062] 210: Status before power failure
[0063] 300: Method of operating an electronic device
[0064] S310-S360: Steps
[0065] DN: Negative signal line
[0066] DP: positive signal line
[0067] R1, R2: resistance.
Claims
1. An electronic device with a low-power wake-up mechanism, comprising: an upper circuit configured to be powered off in a sleep state; and A physical layer circuit is configured to: In the sleep state, according to a logic conversion event in which a pair of differential signal lines of a universal serial bus interface is converted from a sleep logic state to a wake-up logic state, the upper layer circuit is awakened to restore power supply, wherein the pair of differential signal lines electrically couple the physical layer circuit to a host device; Changing a voltage state of the pair of differential signal lines to drive the host device to detect a pull-out event and a plug-in event in sequence; and The upper layer circuit and the host device are made to perform an initialization and enumeration procedure, and then reconnect with the host device. 2 . The electronic device as claimed in claim 1 , wherein the logic conversion event is a passive detection by the physical layer circuit that the host device causes the pair of differential signal lines to convert from the sleep logic state to the wake-up logic state. 3 . The electronic device as claimed in claim 1 , wherein the logic conversion event is that the physical layer circuit actively converts the pair of differential signal lines from the sleep logic state to the wake-up logic state.
4. The electronic device as claimed in claim 1, further comprising a pull-up resistor circuit electrically coupled to the pair of differential signal lines in the sleep state and having a first resistance parameter relative to the pair of differential signal lines, so that the pair of differential signal lines have a first voltage state; The physical layer circuit is configured to control the pull-up resistor circuit so that the pull-up resistor circuit has a second resistance parameter relative to the pair of differential signal lines so that the pair of differential signal lines has a second voltage state, thereby driving the host device to detect the unplug event; as well as The physical layer circuit is further configured to control the pull-up resistor circuit so that the pull-up resistor circuit has the first resistance parameter relative to the pair of differential signal lines so that the pair of differential signal lines has the first voltage state, thereby driving the host device to detect the insertion event.
5. An electronic device as described in claim 4, wherein the physical layer circuit is configured to control the pull-up resistor circuit to be disconnected from the pair of differential signal lines so that the pair of differential signal lines have the second voltage state, and to control the pull-up resistor circuit to be electrically coupled to the pair of differential signal lines again so that the pair of differential signal lines have the first voltage state.
6. An electronic device as described in claim 4, wherein the pair of differential signal lines has a positive signal line and a negative signal line, the pull-up resistor circuit includes a first resistor corresponding to the positive signal line and a second resistor corresponding to the negative signal line, and each of the first resistance parameter and the second resistance parameter includes a first resistance value of the first resistor relative to the positive signal line and a second resistance value of the second resistor relative to the negative signal line.
7. An electronic device as described in claim 1, wherein the pair of differential signal lines has a positive signal line and a negative signal line, so that the sleep logic state corresponds to the positive signal line being a first logic state and the negative signal line being a second logic state, and the wake-up logic state corresponds to the positive signal line being the second logic state and the negative signal line being the first logic state.
8. The electronic device as claimed in claim 6, wherein the physical layer circuit wakes up the upper layer circuit only according to the logic conversion event corresponding to one of the positive signal line and the negative signal line.
9. The electronic device as claimed in claim 1, wherein the physical layer circuit determines whether it has a state storage area for storing a state of the upper layer circuit before power failure; When the physical layer circuit does not have the state storage area, the voltage state of the pair of differential signal lines is changed to drive the host device to detect the unplugging event and the plugging event in sequence, so that the upper layer circuit and the host device perform the initialization and enumeration procedures, and then reconnect with the host device; and When the physical layer circuit has the state storage area, the voltage state of the pair of differential signal lines is not changed, and the upper layer circuit is directly enabled to access the state before power failure from the state storage area, thereby restoring the connection with the host device.
10. An electronic device operation method with a low power consumption wake-up mechanism, applied in an electronic device, comprising: De-energizing an upper circuit in a dormant state; A physical layer circuit in the sleep state is caused to switch from a sleep logic state to a wake-up logic state according to a logic conversion event of a pair of differential signal lines of a universal serial bus interface, so as to wake up the upper layer circuit to restore power supply, wherein the pair of differential signal lines electrically couple the physical layer circuit to a host device; The physical layer circuit changes a voltage state of the pair of differential signal lines to drive the host device to detect a pull-out event and a plug-in event in sequence; and The upper layer circuit and the host device are made to perform an initialization and enumeration procedure, and then reconnect with the host device.