Wake-up method of electronic equipment and electronic equipment

By managing charging status and USB peripheral connection in electronic devices, the USB interface compatibility problem between the laptop and the mobile phone is solved, resulting in extended boot time, faster wake-up and data transmission are achieved, and user experience is improved.

CN119271279APending Publication Date: 2025-01-07HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310834039.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-07
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Due to the diverse types of laptops and mobile phones on the market, there are USB interface compatibility issues, which leads to a long boot time when charging the mobile phone in a dormant state. Users mistakenly think that the laptop has a malfunction, which reduces the user experience.

Method used

By introducing embedded controller EC and personal computer PC manager in electronic devices, we manage charging status and USB peripheral connections, avoid USB peripheral initialization data transmission in sleep state, ensure that there is no data transmission when the BIOS is started, and when it is turned on, it is not possible to use the computer. It is charged through the USB interface in state and supports USB 3.0 interface to speed up wake-up speed.

Benefits of technology

It shortens the power-on time when the electronic device charges and wakes up the USB peripheral in a sleep state, avoids data transmission abnormalities, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271279A_ABST
    Figure CN119271279A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic equipment awakening method and electronic equipment, relates to the technical field of electronics, and is used for shortening the startup time when the electronic equipment is awakened after charging a USB (Universal Serial Bus) peripheral in a dormant state. The awakening method of the electronic device comprises the steps that the electronic device is connected with a first USB peripheral through a USB interface, the electronic device charges the first USB peripheral in a power-on state, and the electronic device keeps charging the first USB peripheral in a dormant state; the awakening operation of the user is received, the BIOS of the electronic equipment is started, and in the BIOS starting process, data transmission does not exist between the electronic equipment and the first USB peripheral. The electronic equipment is connected with the second USB peripheral through the USB interface, and the electronic equipment does not charge the second USB peripheral in the dormant state; awakening operation of the user is received, the BIOS is started, and in the BIOS starting process, data transmission exists between the electronic equipment and the second USB peripheral.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a method for waking up an electronic device and the electronic device. Background Art

[0002] With the increasing demand for mobile office, many notebooks support the function of charging mobile phones through a universal serial bus (USB) interface in a dormant state (or standby state).

[0003] When the laptop is in sleep mode and charging the mobile phone, the laptop is awakened and enters the power-on state from sleep mode. The laptop needs to initialize the USB peripherals of the mobile phone. The laptop will perform data transmission (such as USB initialization signaling transmission) with the mobile phone to obtain the information of the USB peripherals (mobile phone).

[0004] However, since there are many types of laptops and mobile phones on the market, some mobile phones and laptops have USB interface compatibility issues. For example, the USB interface of the laptop supports USB 2.0, while the USB interface of the mobile phone supports USB 3.0, which makes data transmission (such as USB initialization signaling transmission) between the laptop and the mobile phone prone to abnormalities, making the laptop take a long time (for example, 30 seconds) to complete the USB peripheral initialization process and start up normally, causing users to mistakenly believe that the laptop has a malfunction, reducing the user experience. Summary of the invention

[0005] The embodiments of the present application provide a method for waking up an electronic device and an electronic device, which are used to shorten the boot time of the electronic device when it is in a sleep state and then wakes up after charging a USB peripheral.

[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, a method for waking up an electronic device is provided, comprising: the electronic device charges a first USB peripheral device in a powered-on state, and the electronic device is connected to the first USB peripheral device via a universal serial bus (USB) interface; at a first time point, the electronic device enters a dormant state, and between the first time point and a second time point, the electronic device continues to charge the first USB peripheral device; at a second time point, a user's wake-up operation is received; after the second time point, a basic input / output system BIOS of the electronic device is started, and during the BIOS startup process, there is no data transmission between the electronic device and the first USB peripheral device; the electronic device disconnects from the first USB peripheral device, connects to a second USB peripheral device via a USB interface, and the electronic device does not charge the second USB peripheral device; at a third time point, the electronic device enters a dormant state, and between the third time point and a fourth time point, the electronic device does not charge the second USB peripheral device; at a fourth time point, a user's wake-up operation is received; after the fourth time point, the BIOS is started, and during the BIOS startup process, there is data transmission between the electronic device and the second USB peripheral device.

[0008] The wake-up method of the electronic device provided by the embodiment of the present application, the wake-up method of the electronic device and the electronic device provided by the embodiment of the present application, if the electronic device is connected to the second USB peripheral through the USB interface (not charged through the USB interface), the electronic device does not charge the second USB peripheral regardless of the power-on state or the sleep state. When the electronic device wakes up from the sleep state, during the BIOS startup process, the electronic device will transmit data with the USB peripheral (for example, USB initialization signaling transmission). After the BIOS startup is completed, it is ensured that the electronic device and the second USB peripheral can communicate normally. When the electronic device is connected to the first USB peripheral through the USB interface in the power-on state (capable of being charged through the USB interface), the electronic device charges the first USB peripheral, and then the electronic device enters the sleep state, and continues to charge the first USB peripheral in the sleep state. Since the charging of the electronic device to the USB peripheral is irrelevant to the USB communication protocol, when the electronic device wakes up from the sleep state, it does not transmit data with the USB peripheral, thereby shortening the boot time when the electronic device charges the USB peripheral in the sleep state and then wakes up.

[0009] In a possible implementation, the method further includes: when the electronic device charges the first USB peripheral, if the embedded controller EC in the electronic device determines that the electronic device meets the sleep condition, then the sleep charging flag is set to be valid, and the sleep charging flag is used to indicate whether the electronic device charges the USB peripheral in the sleep state; in response to the wake-up operation, if the sleep charging flag is set to be valid, the EC sends a first interrupt to the BIOS, and the first interrupt is used to indicate that the electronic device is awakened when charging the USB peripheral in the sleep state; the basic input and output system BIOS of the electronic device is started, and during the BIOS startup process, there is no data transmission between the electronic device and the first USB peripheral, including: in response to the first interrupt, the BIOS is started, and during the BIOS startup process, there is no data transmission between the electronic device and the first USB peripheral. This implementation discloses the underlying implementation method to ultimately achieve no data transmission between the electronic device and the first USB peripheral.

[0010] In a possible implementation, it also includes: if the electronic device charges the first USB peripheral device in the power-on state, the EC sends a start charging command to the personal computer PC manager in the electronic device, and the start charging command is used to instruct the electronic device to charge the USB peripheral device in the power-on state; in response to the start charging command, the PC manager sets the power-on charging flag to be valid, and the power-on charging flag is used to indicate whether the electronic device charges the USB peripheral device in the power-on state; before the electronic device enters the sleep state, the operating system of the electronic device broadcasts a sleep message; in response to the broadcast sleep message, if the power-on charging flag has been set to be valid, the PC manager sends a sleep charging command to the EC, and the sleep charging command is used to instruct the electronic device to charge the USB peripheral device in the sleep state. The EC determines that the electronic device meets the sleep condition, including: the EC receives the sleep charging command. This implementation is optional, and when the EC itself can detect the operation that triggers sleep, this implementation may not be executed.

[0011] In a possible implementation, the method further includes: after the electronic device is disconnected from the first USB peripheral, the EC sends a stop charging command to the PC manager, the stop charging command is used to instruct the electronic device to stop charging the USB peripheral in the power-on state; in response to the stop charging command, the PC manager sets the power-on charging flag to invalid. Because the electronic device has stopped charging the USB peripheral at this time, the power-on charging flag is set to invalid, so that the power-on charging flag is consistent with the state of the electronic device.

[0012] In a possible implementation, the BIOS further includes: after startup, the BIOS instructs the EC to invalidate the sleep charge flag. Because the electronic device has exited the sleep state at this time, the sleep charge flag is invalidated, so that the sleep charge flag is consistent with the state of the electronic device, and the EC can re-validate the sleep charge flag when the electronic device enters the sleep state next time.

[0013] In a possible implementation, the properties of the USB interface of the electronic device are configured as follows: the USB Type-C interface is connected to the central processor in hardware, so that the USB interface of the electronic device supports USB 3.0, which can not only speed up the wake-up speed, but also does not reduce the data transmission rate.

[0014] In a possible implementation, the data transmission includes USB initialization signaling transmission, and the USB initialization signaling transmission is used by the electronic device to obtain the type of the USB peripheral and the USB protocol version supported by the USB peripheral. By detecting whether the USB initialization signaling is transmitted between the electronic device and the USB peripheral, it can be determined whether to adopt the solution of the present application.

[0015] In a second aspect, an electronic device is provided, including a USB interface, an EC and a memory. The electronic device charges a USB peripheral through the USB interface in standby mode. Instructions are stored in the memory. When the embedded controller executes the instructions, the electronic device executes the method described in the first aspect and any embodiment thereof.

[0016] In a third aspect, a USB peripheral connection system is provided, comprising the electronic device as described in the second aspect and a USB peripheral, wherein the electronic device charges the USB peripheral through a USB interface in a standby state.

[0017] In a fourth aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method as described in the first aspect and any embodiment thereof.

[0018] In a fifth aspect, a computer program product comprising instructions is provided. When the instructions are executed on the electronic device, the electronic device executes the method as described in the first aspect and any embodiment thereof.

[0019] In a sixth aspect, a chip system is provided, the chip system including a processor for supporting an electronic device to implement the functions involved in the first aspect. In one possible design, the device also includes an interface circuit, which can be used to receive signals from other devices (such as a memory) or send signals to other devices (such as a communication interface). The chip system may include a chip and may also include other discrete devices.

[0020] The technical effects of the second to sixth aspects refer to the technical effects of the first aspect and any of its embodiments, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of the architecture of a USB peripheral connection system provided in an embodiment of the present application;

[0022] Figure 2 A schematic diagram of the architecture of another USB peripheral connection system provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of a Type-C USB interface provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of a software and hardware architecture of an electronic device and a corresponding method for waking up the electronic device provided in an embodiment of the present application;

[0026] Figure 6 A schematic diagram of a process flow of a first method for waking up an electronic device provided in an embodiment of the present application;

[0027] Figure 7 A schematic diagram of a second method for waking up an electronic device provided in an embodiment of the present application;

[0028] Figure 8 A schematic diagram of a process flow of a third electronic device wake-up method provided in an embodiment of the present application;

[0029] Fig. 9 A schematic diagram of a fourth method for waking up an electronic device provided in an embodiment of the present application;

[0030] Fig.10 A schematic diagram of a fifth method for waking up an electronic device provided in an embodiment of the present application;

[0031] Fig.11 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The terms "first", "second", etc. involved in the embodiments of the present application are only used to distinguish features of the same type and cannot be understood as indicating relative importance, quantity, order, etc.

[0033] The terms "exemplary" or "for example" and the like in the embodiments of the present application are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the related concepts in a specific way.

[0034] With the increasing demand for mobile office, and many users' heavy use of mobile phones leads to low battery, and it is inconvenient to charge mobile phones during mobile office, so many notebooks support the function of charging mobile phones through USB interfaces in sleep mode to reduce the power consumption of notebooks. This function can be called reverse charging function. At this time, assuming that the notebook is charging the mobile phone in sleep mode, the user clicks the power button or operates the keyboard and mouse to wake up the notebook so that the notebook enters the power-on state from sleep mode. At this time, the notebook needs to perform data transmission (such as USB initialization signaling transmission) with the mobile phone because of the need to initialize the USB peripherals. The USB peripheral initialization mainly includes: for example, obtaining the type of USB peripherals (such as USB peripherals as input devices, storage devices, etc.), and obtaining the USB protocol version supported by the USB peripherals (USB 2.0, USB 3.0, USB 3.2 and subsequent versions). A typical input device is a mouse, and a typical storage device is a mobile phone.

[0035] However, due to the large number of mobile phones and laptops on the market, mobile phones and laptops produced by different manufacturers often have USB interface compatibility issues, which not only leads to a decrease in the data transmission rate between the laptop and the mobile phone, but also causes abnormalities in the data transmission between the laptop and the mobile phone (such as USB initialization signaling transmission). For example, the attribute of the USB interface of the laptop is configured as USB_TYPEC_PCH (i.e., the Type C USB interface is connected to the south bridge chip in hardware), so that the USB interface of the laptop only supports USB 2.0, while the attribute of the USB interface of the mobile phone is configured as USB_TYPEC_CPU (i.e., the Type C USB interface is connected to the CPU in hardware), so that the USB interface of the mobile phone supports USB 3.0. Then, data can only be transmitted between the laptop and the mobile phone according to USB 2.0, resulting in a decrease in the data transmission rate. In addition, the laptop and the mobile phone use different USB communication protocols, which makes it easy for the data transmission between the laptop and the mobile phone (such as USB initialization signaling transmission) to be abnormal.

[0036] Abnormal data transmission between the laptop and the mobile phone (such as USB initialization signaling transmission) will cause the USB peripheral initialization process to take a long time or even be blocked. And when the number of USB peripherals connected to the laptop through the USB interface is large, the USB peripheral initialization process takes longer (for example, 30 seconds), which makes the user mistakenly think that the laptop has a fault, reducing the user experience.

[0037] The embodiment of the present application provides a method for waking up an electronic device and an electronic device. When the electronic device (e.g., a notebook) charges a first USB peripheral (a device that can be charged through a USB interface, such as a mobile phone) in a powered-on state, an embedded controller (EC) in the electronic device sends a start charging command to a personal computer (PC) butler, and the PC butler sets a power-on charging flag to be valid. When the system is about to go to sleep, the PC butler sends a sleep charging command to the EC, and the EC sets a sleep charging flag to be valid. Since the charging of the USB peripheral by the electronic device has nothing to do with the type of the USB peripheral and the USB protocol version supported by the USB peripheral, when the EC detects a system wake-up event, it instructs the BIOS not to execute the USB peripheral initialization process, that is, not to execute the data transmission (e.g., USB initialization signaling transmission) process between the electronic device and the first USB peripheral, thereby avoiding the problem that the data transmission (e.g., USB initialization signaling transmission) process takes too long, and shortens the boot time when the electronic device charges the USB peripheral in a dormant state and then wakes up.

[0038] The present application embodiment provides a USB peripheral connection system, such as Figure 1 As shown, the USB peripheral connection system includes an electronic device (eg Figure 1 The notebook computer 110 shown) and the first USB peripheral device (eg Figure 1 The mobile phone 120 shown in FIG. 1 , or Figure 2 As shown, the USB peripheral connection system includes an electronic device (eg Figure 2 The notebook computer 110 shown) and a second USB peripheral (eg Figure 2 The first USB peripheral device and the second USB peripheral device may be collectively referred to as USB peripheral devices of the electronic device.

[0039] The electronic device and the first USB peripheral can be connected through a USB interface, and the electronic device can charge the first USB peripheral. The electronic device and the second USB peripheral can be connected through a USB interface, and the electronic device does not charge the second USB peripheral. The electronic device is a device that can supply power to the outside through a USB interface, such as a computer, a notebook, etc. The first USB peripheral is a device that can be charged through a USB interface, such as a mobile phone, a tablet, a smart watch, a virtual reality (VR) device, an augmented reality (AR) device, etc. The second USB peripheral is a device that does not need to be charged through a USB interface, such as a power adapter, a mobile hard disk, a camera, a mouse, a keyboard, etc.

[0040] like Figure 3 As shown, taking the electronic device 30 as a notebook as an example, the electronic device 30 includes a processor 301, a memory 302, an EC 303, a first battery 304, a sensor 305, a display 306, a first USB interface 307, a keyboard 308, a power button 309, a first charging chip 310, and a first power delivery (PD) chip 311. Taking the USB peripheral 32 as a mobile phone as an example, the USB peripheral 32 includes a second USB interface 321, a second battery 322, a second charging chip 323, a second PD chip 324, and a power management module 325.

[0041] The processor 301 may include one or more processing units, for example, the processor 301 may include a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a microcontroller unit (MCU), a programmable logic device (PLD), an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0042] The memory 302 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM) and direct rambus RAM (DRRAM). In particular, the ROM may store a basic input output system (BIOS). The memory 302 may store computer instructions, and when the EC 303 executes the computer instructions, the wake-up method of the electronic device involved in the present application may be implemented.

[0043] The display 306 is used to display images. When the notebook is in a dormant state, the display 306 is turned off. When the notebook is in a powered-on state, the display 306 is turned on.

[0044] EC 303 is a dedicated control chip for mobile portable applications of x86 architecture, mainly used in mobile computer systems and embedded computer systems, providing system management functions for such computer systems. For example, processor timing management, thermal management, keyboard management, advanced configuration and power management interface (ACPI) management, etc. Exemplarily, when used in a notebook, it can manage battery charging and discharging, keyboard scanning, cover opening and closing detection (through sensor 305), fan control, indicator light control, and core data reporting to the operating system. Optionally, EC 303 can have a certain capacity of flash memory (Flash) inside to store the executed computer instructions. When EC executes the computer instructions, the wake-up method of the electronic device involved in this application can be implemented. After the notebook is in a dormant state, EC 303 keeps running to detect system wake-up events. If a system wake-up event is detected, the BIOS is awakened, and the BIOS controls the processor to restore the normal working frequency and power on the devices that need to work in the working state (such as cameras, display screens, etc.). When the notebook is turned on, EC 303 controls the operation of the keyboard controller, mouse, touchpad, charging indicator light, and fan.

[0045] The first USB interface 307 and the second USB interface 321 are both Type C USB interfaces. Figure 4 As shown, the Type-C USB interface includes configuration channel (CC) pins (CC1, CC2) for configuration communication, transmitting pins (TX1+, TX1-, TX2+, TX2-) and receiving pins (RX1+, RX1-, RX2+, RX2-) for data communication, a power pin (VBUS) and a ground pin (GND) for power supply. Among them, the first PD chip 324 and the second PD chip 324 perform configuration communication through the CC pin (CC1 or CC2) to negotiate the power supply power, power supply current and power supply voltage of the USB peripheral. The first charging chip 310 supplies power to the second charging chip 323 through the power pin (VBUS), thereby charging the second battery 322.

[0046] The properties of the first USB interface 307 and the second USB interface 321 are both configured as USB_TYPEC_CPU, so that the USB interfaces of the electronic device and the USB peripheral device both support USB 3.0, there will be no USB compatibility issues between the electronic device and the USB peripheral device, and the data transmission rate between the electronic device and the USB peripheral device will not be reduced, and data transmission can still be performed according to USB 3.0.

[0047] Furthermore, the first USB interface 307 is not limited to one, but may be multiple, one USB interface is connected to a first USB peripheral such as a mobile phone, and other USB interfaces may be used to connect a second USB peripheral such as a mouse, a keyboard, a camera, etc. The sensor 305 may include a Hall sensor for detecting the opening and closing of the notebook cover and sending it to the EC 303. When the electronic device is in a dormant state, if the EC 303 detects that the user clicks the mouse, presses the keyboard 308, presses the power button 309, or opens the cover, the dormant electronic device can be awakened.

[0048] The first charging chip 310 is controlled by the EC 303 and can charge the first battery 304 , or the first battery 304 can charge externally. The second charging chip 323 is controlled by the power management module 325 and can charge the second battery 322 .

[0049] like Figure 5 As shown, the hardware and software architecture of the electronic device includes the hardware layer, the driver layer, the system layer and the application layer. Among them, the hardware layer includes EC (function reference Figure 3 The driver layer includes the Windows Management Instrumentation (WMI) communication module, BIOS and USB driver. The system layer includes the WMI service and the operating system (OS). The application layer includes the personal computer (PC) butler. The PC butler is used for peripheral management, power management, system optimization, garbage removal, etc. WMI is an interface provided by the Windows@ operating system to operate or obtain system information. The OS is used for memory management, clock management, thread scheduling, etc. The PC butler calls the WMI communication module through the WMI service to communicate with the EC, such as obtaining the charging status from the EC and sending a sleep command to the EC.

[0050] The wake-up method of the electronic device provided in the embodiment of the present application includes the following process: the electronic device (such as a laptop) is connected to a USB peripheral (such as a mobile phone or a mouse) through a USB interface when the electronic device is powered on. If the USB peripheral is a first USB peripheral (capable of being charged through a USB interface, such as a mobile phone), the electronic device charges the first USB peripheral, and then the electronic device enters a sleep state, and continues to charge the first USB peripheral in the sleep state. If the USB peripheral is a second USB peripheral (does not need to be charged through a USB interface, such as a mouse), the electronic device does not charge the second USB peripheral regardless of whether it is powered on or in sleep mode. Figure 5-Figure 7As shown, the wake-up method of the electronic device includes S101-S109, wherein S102-S103 and S104-S105 are two parallel branches, and S102-S103 and S107 are optional steps. Figure 5 It is explained from the perspective of the interaction between the modules of the software and hardware architecture. Figure 6 It is explained from the perspective of the interaction between multiple modules. Figure 7 It is explained from the perspective of execution order.

[0051] S101. When the electronic device is powered on, after a user connects the electronic device (e.g., a notebook) to a USB peripheral through a USB interface, an EC in the electronic device determines whether the electronic device charges the USB peripheral when powered on (i.e., determines whether the USB peripheral is a first USB peripheral or a second USB peripheral).

[0052] As mentioned above, the first USB peripheral is an electronic device that can be charged through a USB interface, such as a mobile phone, a tablet, a smart watch, a VR device, an AR device, etc. The second USB peripheral is an electronic device that does not need to be charged through a USB interface, such as a power adapter, a mobile hard disk, a camera, a mouse, a keyboard, etc.

[0053] The first charging chip of the electronic device determines whether the electronic device is connected to the USB peripheral through the USB interface by whether there is a voltage drop on the power pin (VBUS) of the USB interface. If there is no voltage drop on the power pin (VBUS) of the USB interface, it is determined that the electronic device is not connected to the USB peripheral. If there is a voltage drop on the power pin (VBUS) of the USB interface, it is determined that the electronic device is connected to the USB peripheral. The EC of the electronic device obtains from the first charging chip whether the electronic device is connected to the USB peripheral through the USB interface. After the user connects the electronic device to the USB peripheral through the USB interface, there is a voltage drop on the power pin (VBUS) of the USB interface, so the first charging chip determines that the electronic device is connected to the USB peripheral, and then the EC determines that the electronic device is connected to the USB peripheral.

[0054] Then, the electronic device performs USB peripheral initialization. During the USB peripheral initialization process, the electronic device performs data transmission (e.g., USB initialization signaling transmission) with the USB peripheral through the CC pin of the USB interface to obtain information about the USB peripheral (e.g., transmitted in the form of a descriptor in the USB communication protocol), for example, obtaining the type of the USB peripheral (e.g., the USB peripheral is an input device, a storage device, etc.), and obtaining the version of the USB protocol supported by the USB peripheral (USB 2.0, USB 3.0, USB 3.2), etc. Among them, the type of the USB peripheral can be preliminarily screened to determine whether the USB peripheral belongs to the first USB peripheral or the second USB peripheral. For example, a mobile phone belongs to a type of storage device, so a USB peripheral of the type of storage device may belong to the first USB peripheral, and the electronic device can charge the first USB peripheral. A USB peripheral of the type of input device belongs to the second USB peripheral, such as a mouse, and the electronic device does not charge the second USB peripheral.

[0055] In addition, the first PD chip of the electronic device can communicate with the USB peripheral (specifically, the second PD chip in the mobile phone) through the CC pin of the USB interface to negotiate the power supply of the USB peripheral. The EC of the electronic device can determine whether the USB peripheral is a power supply (source) (belonging to the second USB peripheral) or a power receiver (sink) (belonging to the first USB peripheral) based on the power supply of the USB peripheral. That is, the USB peripheral is further screened to belong to the first USB peripheral or the second USB peripheral. If the power supply of the USB peripheral (such as a mobile phone) is less than the power threshold (such as 15W), the USB peripheral is determined to be the power receiver and belongs to the first USB peripheral, and the EC controls the first charging chip to charge the first USB peripheral. Otherwise, if the power supply of the USB peripheral (such as a power adapter) is greater than or equal to the power threshold (such as 15W), the USB peripheral is determined to be the power supply and belongs to the second USB peripheral, and the EC controls the first charging chip to charge the first battery in the electronic device by the second USB peripheral.

[0056] In summary, for a USB peripheral belonging to the first USB peripheral, the electronic device can charge the first USB peripheral, and for a USB peripheral belonging to the second USB peripheral, the electronic device does not charge the second USB peripheral.

[0057] S102: If the electronic device charges the first USB peripheral device in the powered-on state, the EC sends a charging start command to the PC manager through the WMI service.

[0058] The start charging command is sent in the form of a WMI command, occupying some reserved fields in the WMI command. The start charging command is used to instruct the electronic device to charge the USB peripheral device when the device is powered on.

[0059] If the EC determines that the second USB peripheral device is connected in the power-on state (the second USB peripheral device is not charged), steps S106 to S108 are executed.

[0060] S103. In response to the start charging command, PC Manager sets the power-on charging flag to be valid.

[0061] The power-on charging flag is used to indicate whether the electronic device is charging the USB peripheral device when it is powered on. If the electronic device is charging the USB peripheral device when it is powered on, the power-on charging flag is set to valid (for example, set to 1), otherwise the power-on charging flag is set to invalid (for example, set to 0). In other words, if the electronic device is connected to a second USB peripheral device through a USB interface when it is powered on, the power-on charging flag will not be set to valid. The power-on charging flag can be stored in a register or in a flash memory, and can be stored in the form of bits or bytes.

[0062] S104: After the user disconnects the electronic device from the first USB peripheral, the EC sends a stop charging command to the PC manager through the WMI service.

[0063] The EC detects that the electronic device is disconnected from the first USB peripheral, and there is no voltage drop on the power pin (VBUS) of the USB interface, so the first charging chip determines that the electronic device is disconnected from the first USB peripheral, and then the EC determines that the electronic device is disconnected from the first USB peripheral. Then the EC sends a stop charging command to the PC housekeeper through the WMI service. The stop charging command is sent in the form of a WMI command, occupying certain reserved fields in the WMI command. The stop charging command is used to instruct the electronic device to stop charging the USB peripheral when it is powered on.

[0064] S105. In response to the stop charging command, the PC manager sets the power-on charging flag to be invalid.

[0065] Because the electronic device has stopped charging the USB peripheral at this time, the power-on charging flag is set to be invalid, so that the power-on charging flag is consistent with the state of the electronic device.

[0066] S106: When an event occurs that triggers the electronic device to enter a sleep state, the operating system broadcasts a sleep message before entering sleep mode. In response to the sleep message, the PC manager sends a sleep command to the BIOS.

[0067] Events that trigger an electronic device to enter a sleep state may include any of the following: the electronic device's operating system detects that a sleep button displayed on the display is clicked by the user with a mouse or touch, the EC detects that the power button is pressed by the user and notifies the operating system, the EC detects a cover closing operation through a Hall sensor and notifies the operating system, the EC detects that the time when the keyboard and mouse are not operated by the user reaches a threshold and notifies the operating system, and so on.

[0068] S107 : The PC manager determines whether to send a sleep charging command to the EC according to whether the power-on charging flag has been set to valid.

[0069] If the power-on charging flag has been set to valid, that is, the electronic device is connected to the first USB peripheral through the USB interface in the power-on state, and is charging the first USB peripheral, then the PC manager sends a sleep charging command to the EC through the WMI service. The sleep charging command is sent in the form of a WMI command, occupying some reserved fields in the WMI command. The sleep charging command is used to instruct the electronic device to charge the USB peripheral in the sleep state.

[0070] If the power-on charging flag is not set to valid, that is, the electronic device is connected to the second USB peripheral through the USB interface in the power-on state, or the USB peripheral is not connected, the PC manager does not send a sleep charging command to the EC, and the system directly enters the sleep state. This can avoid the PC manager sending a sleep charging command to the EC every time the electronic device is to sleep. Moreover, for the scenario where the electronic device is connected to the second USB peripheral, the electronic device will not charge the second USB peripheral in the sleep state.

[0071] It should be noted that steps S102-S103 and S107 are optional. When the EC itself can detect a sleep trigger event, for example, the EC detects that the power button is pressed by the user, the EC detects the cover closing operation through the Hall sensor, the EC detects that the keyboard and mouse have not been operated by the user for a threshold time, etc., then steps S102-S103 and S107 may not be executed.

[0072] S108. In response to the sleep command, the BIOS controls the processor to enter a sleep state and powers off non-working devices.

[0073] When the processor is in sleep mode, the processor can reduce the operating frequency, shut down threads that consume a lot of power (such as threads for graphics drawing, threads for voice recognition, etc.), and retain necessary threads (such as the main thread and threads for receiving wake-up signals from BIOS). If the processor includes multiple cores, the processor can also retain one core and shut down the remaining cores. These methods can reduce the power consumption of the processor in sleep mode.

[0074] When the processor is in sleep mode, it also loses control of many devices (such as cameras, displays, etc.), so these devices are not actually working properly. If these devices continue to be powered, the power consumption of the electronic device will increase. Therefore, these non-working devices can be powered off to reduce the power consumption of the electronic device. At this time, the electronic device also enters sleep mode.

[0075] S109: When the electronic device charges the first USB peripheral device, if the EC determines that the electronic device meets the sleep condition, a sleep charging flag is set to be valid (eg, set to 1).

[0076] If steps S102-S103 and S107 are executed, the EC can determine that the electronic device meets the sleep condition in response to the sleep charging command from the PC manager. If steps S102-S103 and S107 are not executed, according to the method described in the previous S106, if the EC itself detects an event that triggers the electronic device to enter the sleep state, it can be determined that the electronic device meets the sleep condition, for example, the EC detects that the power button is pressed by the user, the EC detects the cover closing operation through the Hall sensor, and the EC detects that the keyboard and mouse have not been operated by the user for a time that reaches a threshold.

[0077] The dormancy charging flag is used to indicate whether the electronic device charges the USB peripheral device in the dormancy state. The dormancy charging flag can be stored in a register or in a flash memory (Flash), and can be stored in the form of bits or bytes.

[0078] At this time, the EC still maintains normal operation, for example, continues to detect whether the power button is pressed by the user, continues to detect whether the mouse or keyboard is operated by the user, detects whether the user opens the cover through the Hall sensor, etc. In addition, the EC still controls the first charging chip to charge the first USB peripheral, so that the electronic device can still charge the first USB peripheral in the sleep state.

[0079] It should be noted that step S108 and step S109 can be executed in parallel without restriction on the order of execution.

[0080] The electronic device awakening method provided in the embodiment of the present application also includes the following process: the electronic device charges the first USB peripheral device in the sleep state and then is awakened. Figure 5 , Figure 8 and Fig. 9 As shown, the wake-up method of the electronic device includes S201-S206, wherein S202-S204 and S205-S206 are two parallel branches. Figure 8 It is explained from the perspective of the interaction between multiple modules. Fig. 9 It is explained from the perspective of execution order. Figure 8-Figure 9 The steps shown and Figure 6-Figure 7 There is no requirement for the order in which the steps are performed. You can perform them first. Figure 8-Figure 9 Execute the following steps Figure 6-Figure 7 Alternatively, you can first perform Figure 6-Figure 7 Execute the following steps Figure 8-Figure 9 Steps shown.

[0081] S201 : In a sleep state, in response to a wake-up operation, the EC in the electronic device determines whether a sleep charging flag is enabled.

[0082] The wake-up operation may include any of the following: the user presses the power button, the user operates the mouse or keyboard, the user opens the cover, etc. That is, if the user has a wake-up operation, the EC determines whether the dormant charging flag is set to valid. If the user has no wake-up operation, the electronic device continues to be in the dormant state. For the dormant charging flag, refer to the description in step S109 and will not be repeated here.

[0083] S202: If the sleep charging flag is set to be valid, the EC sends a sleep charging wake-up interrupt to the BIOS to trigger the BIOS to start.

[0084] That is, when the electronic device is in a dormant state, the electronic device charges the first USB peripheral, and then the electronic device is awakened, the EC sends a dormant charging wake-up interrupt to the BIOS to trigger the BIOS startup. The dormant charging wake-up interrupt is used to indicate that the electronic device is awakened when charging the USB peripheral in the dormant state, or in other words, the dormant charging wake-up interrupt is used to indicate that the BIOS does not perform data transmission with the USB peripheral during the startup process (such as USB peripheral initialization transmission). The dormant charging wake-up interrupt can also be called the first interrupt.

[0085] During the BIOS startup process, the BIOS controls the processor to restore the normal operating frequency and powers on the components that need to work (such as cameras, displays, etc.) in the working state so that users can use the electronic devices normally. The BIOS startup time and end time will be recorded in the log, and the BIOS startup time and end time in the log can be used to determine whether the BIOS startup is completed.

[0086] S203: In response to the sleep charge wake-up interrupt, during the BIOS startup process, the BIOS obtains whether the sleep charge flag is set to valid.

[0087] S204: If the dormant charging flag is set to be valid, the BIOS does not perform data transmission with the USB peripheral (eg, USB peripheral initialization transmission), notifies the operating system to load the USB driver, and the operating system enters a normal working state.

[0088] It should be noted that the BIOS may not query whether the sleep charge flag is set to be valid, and may determine not to execute the USB peripheral initialization process during the startup process based on the sleep charge wake-up interrupt.

[0089] The purpose of USB peripheral initialization includes: obtaining the type of USB peripheral (for example, the USB peripheral is a mouse, keyboard, mobile hard disk, mobile phone, etc.), and the USB protocol version supported by the USB peripheral (for example, 2.0, 3.0, 3.2), etc. Since the electronic device charges the USB peripheral in the sleep state, it does not need to care about the type of USB peripheral and the USB protocol version, so the BIOS does not perform the USB peripheral initialization process, so that there is no data transmission between the electronic device and the first USB peripheral (for example, no USB initialization signaling transmission), and the subsequent boot process is directly performed, so the boot time will be shortened.

[0090] After the BIOS is started (i.e. after normal wake-up), it can also instruct the EC to invalidate the sleep charging flag. Because the electronic device has exited the sleep state at this time, the sleep charging flag is invalidated, so that the sleep charging flag is consistent with the state of the electronic device, and the EC can re-validate the sleep charging flag when the electronic device enters the sleep state next time.

[0091] After the operating system loads the USB driver, it can perform normal data transmission with the USB peripheral.

[0092] S205: If the sleep charging flag is not set to be valid, the EC does not send a sleep charging wake-up interrupt to the BIOS but sends the original wake-up interrupt to trigger the BIOS to start.

[0093] That is, when the electronic device is in a dormant state, the electronic device is connected to a second USB peripheral through a USB interface or is not connected to a USB peripheral, and then the electronic device is awakened, the EC sends the original wake-up interrupt to the BIOS. The original wake-up interrupt is used to indicate that the electronic device is awakened when it is not charging the USB peripheral in a dormant state, or in other words, the dormant charging wake-up interrupt is used to indicate that the BIOS performs data transmission with the USB peripheral during the startup process (for example, USB peripheral initialization transmission). The original wake-up interrupt can also be called a second interrupt.

[0094] S206. In response to the wake-up interrupt, during the BIOS startup process, the BIOS performs a USB peripheral initialization process, notifies the operating system to load the USB driver, and the operating system enters a normal working state.

[0095] At this time, during the BIOS startup process, there is data transmission (such as USB initialization signaling transmission) between the electronic device and the second USB peripheral to obtain the type of the USB peripheral and the USB protocol version supported by the USB peripheral, etc. This information can help the electronic device to correctly initialize the second USB peripheral.

[0096] In addition, similar to step S202, during the BIOS startup process, the BIOS controls the processor to restore the normal working frequency and powers on the components that need to work in the working state (such as a camera, a display screen, etc.) so that the user can use the electronic device normally. In addition, the BIOS startup time and end time will be recorded in the log, and the BIOS startup time and end time in the log can be used to determine whether the BIOS startup is completed.

[0097] In summary, the process of waking up the electronic device after hibernation is described by taking the electronic device being connected to the first USB peripheral (such as a mobile phone) and the second USB peripheral (such as a mouse) through USB devices in sequence as an example. Fig.10 As shown, the wake-up method of the electronic device provided in the embodiment of the present application includes:

[0098] S301: When the electronic device is connected to a first USB peripheral device via a USB interface, the electronic device charges the first USB peripheral device in a powered-on state.

[0099] This step refers to steps S101-S103 and will not be described in detail here.

[0100] S302: At a first time point, the electronic device enters a sleep state, and between the first time point and a second time point, the electronic device keeps charging the first USB peripheral device.

[0101] This step refers to steps S106-S109 and will not be repeated here.

[0102] S303: At a second time point, the electronic device receives a wake-up operation from the user.

[0103] This step refers to step S201 and will not be described in detail here.

[0104] S304: After the second time point, the basic input and output system BIOS of the electronic device is started. During the BIOS startup process, there is no data transmission between the electronic device and the first USB peripheral device.

[0105] This step refers to steps S202-S204 and will not be repeated here.

[0106] S305: The electronic device disconnects from the first USB peripheral device, connects to the second USB peripheral device through the USB interface, and the electronic device does not charge the second USB peripheral device.

[0107] For details of disconnecting the electronic device from the first USB peripheral, refer to steps S104-S105. For connecting the electronic device to the second USB peripheral through the USB interface and not charging the second USB peripheral, refer to steps S101, S106-S108, which will not be described in detail here.

[0108] S306: At a third time point, the electronic device enters a sleep state, and between the third time point and a fourth time point, the electronic device does not charge the second USB peripheral device.

[0109] This step refers to steps S106-S108 and will not be described in detail here.

[0110] S307: At a fourth time point, receiving a wake-up operation from the user.

[0111] This step refers to step S201 and will not be described in detail here.

[0112] S308. After the fourth time point, the BIOS is started. During the BIOS startup process, data is transmitted between the electronic device and the second USB peripheral device.

[0113] This step refers to steps S205-S206 and will not be repeated here.

[0114] The wake-up method and electronic device of the electronic device provided in the embodiment of the present application, if the electronic device is connected to the second USB peripheral through the USB interface (not charged through the USB interface), the electronic device does not charge the second USB peripheral regardless of the power-on state or the sleep state. When the electronic device wakes up from the sleep state, during the BIOS startup process, the electronic device will transmit data with the USB peripheral (for example, USB initialization signaling transmission). After the BIOS startup is completed, it is ensured that the electronic device and the second USB peripheral can communicate normally. When the electronic device is connected to the first USB peripheral through the USB interface in the power-on state (capable of being charged through the USB interface), the electronic device charges the first USB peripheral, and then the electronic device enters the sleep state, and continues to charge the first USB peripheral in the sleep state. Since the charging of the electronic device to the USB peripheral is irrelevant to the USB communication protocol, when the electronic device wakes up from the sleep state, it does not transmit data with the USB peripheral, thereby shortening the boot time when the electronic device charges the USB peripheral in the sleep state and then wakes up.

[0115] like Fig.11As shown, the embodiment of the present application also provides a chip system. The chip system 110 includes at least one processor 1101 and at least one interface circuit 1102. The at least one processor 1101 and the at least one interface circuit 1102 can be interconnected through a line. The processor 1101 is used to support the electronic device to implement each step in the above method embodiment, such as Figure 6-Figure 10 In the method shown, at least one interface circuit 1102 may be used to receive signals from other devices (eg, memory) or to send signals to other devices (eg, communication interface). The chip system may include a chip and may also include other discrete devices.

[0116] The present application also provides a computer-readable storage medium, which includes instructions. When the instructions are executed on the electronic device, the electronic device executes each step in the method embodiment, such as executing Figure 6-Figure 10 The method shown.

[0117] The present application also provides a computer program product including instructions. When the instructions are executed on the electronic device, the electronic device executes each step in the method embodiment, such as executing Figure 6-Figure 10 The method shown.

[0118] Regarding the technical effects of the chip system, computer-readable storage medium, and computer program product, refer to the technical effects of the previous method embodiments.

[0119] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0120] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0122] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0123] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one device or distributed on multiple devices. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0124] In addition, each functional module in each embodiment of the present application may be integrated into one device, or each module may exist physically separately, or two or more modules may be integrated into one device.

[0125] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may contain one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for waking up an electronic device, characterized in that: include: The electronic device charges a first USB peripheral device when powered on, and the electronic device is connected to the first USB peripheral device via a USB interface; At a first time point, the electronic device enters a dormant state, and between the first time point and a second time point, the electronic device keeps charging the first USB peripheral device; At the second time point, receiving a wake-up operation from the user; After the second time point, a basic input / output system BIOS of the electronic device is started, and during the BIOS startup process, no data is transmitted between the electronic device and the first USB peripheral device; The electronic device disconnects from the first USB peripheral device, connects to a second USB peripheral device through a USB interface, and the electronic device does not charge the second USB peripheral device; At a third time point, the electronic device enters a dormant state, and between the third time point and a fourth time point, the electronic device does not charge the second USB peripheral device; At the fourth time point, receiving a wake-up operation from a user; After the fourth time point, the BIOS is started, and during the BIOS startup process, data is transmitted between the electronic device and the second USB peripheral device.

2. The method according to claim 1, characterized in that The method further comprises: When the electronic device charges the first USB peripheral device, if the embedded controller EC in the electronic device determines that the electronic device meets the sleep condition, a sleep charging flag is set to be valid, and the sleep charging flag is used to indicate whether the electronic device charges the USB peripheral device in the sleep state; In response to the wake-up operation, if the dormant charging flag is set to be valid, the EC sends a first interrupt to the BIOS, wherein the first interrupt is used to indicate that the electronic device is awakened when charging the USB peripheral device in a dormant state; The basic input and output system BIOS of the electronic device is started, and during the BIOS startup process, there is no data transmission between the electronic device and the first USB peripheral device, including: In response to the first interrupt, the BIOS is started, and during the BIOS startup process, there is no data transmission between the electronic device and the first USB peripheral device.

3. The method according to claim 2, characterized in that Also includes: If the electronic device charges the first USB peripheral device in the powered-on state, the EC sends a charge start command to the personal computer PC manager in the electronic device, where the charge start command is used to instruct the electronic device to charge the USB peripheral device in the powered-on state; In response to the start charging command, the PC manager sets a power-on charging flag to be valid, where the power-on charging flag is used to indicate whether the electronic device charges the USB peripheral device in a power-on state; Before the electronic device enters the sleep state, the operating system of the electronic device broadcasts a sleep message; In response to the broadcast sleep message, if the power-on charging flag has been set to valid, the PC manager sends a sleep charging command to the EC, where the sleep charging command is used to instruct the electronic device to charge the USB peripheral device in a sleep state; The EC determines that the electronic device meets the sleep condition, including: The EC receives the dormancy charging command.

4. The method according to claim 3, characterized in that The method further comprises: After the electronic device is disconnected from the first USB peripheral, the EC sends a stop charging command to the PC manager, where the stop charging command is used to instruct the electronic device to stop charging the USB peripheral in a powered-on state; In response to the stop charging command, the PC manager sets the power-on charging flag to be invalid.

5. The method according to any one of claims 2 to 4, characterized in that: Also includes: After starting, the BIOS instructs the EC to invalidate the dormant charging flag.

6. The method according to any one of claims 1 to 5, characterized in that: The properties of the USB interface of the electronic device are configured as follows: the Type-C USB interface is connected to the central processing unit in hardware.

7. The method according to any one of claims 1 to 6, characterized in that: The data transmission includes USB initialization signaling transmission, and the USB initialization signaling transmission is used by the electronic device to obtain the type of the USB peripheral and the USB protocol version supported by the USB peripheral.

8. An electronic device, characterized in that: The electronic device comprises a universal serial bus (USB) interface, an embedded controller (EC) and a memory. The electronic device charges a USB peripheral device through the USB interface in a standby state. The memory stores instructions. When the embedded controller executes the instructions, the electronic device executes the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The method comprises instructions, and when the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 7.

10. A universal serial bus (USB) peripheral connection system, characterized in that: The invention comprises the electronic device as claimed in claim 8 and a universal serial bus (USB) peripheral device, wherein the electronic device charges the USB peripheral device through a USB interface in a sleep state.

Citation Information

Cited By

  • Electronic device wake-up method and electronic device

    EP4650953A1

  • Electronic device wake-up method and electronic device

    WO2025011053A1