WO2023174129A1 - Charging control method and electronic device - Google Patents

Charging control method and electronic device Download PDF

Info

Publication number
WO2023174129A1
WO2023174129A1 PCT/CN2023/080341 CN2023080341W WO2023174129A1 WO 2023174129 A1 WO2023174129 A1 WO 2023174129A1 CN 2023080341 W CN2023080341 W CN 2023080341W WO 2023174129 A1 WO2023174129 A1 WO 2023174129A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
charging
user
sleep
time
Prior art date
Application number
PCT/CN2023/080341
Other languages
French (fr)
Chinese (zh)
Inventor
方玲玲
李欣欣
王坚
张文涛
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023174129A1 publication Critical patent/WO2023174129A1/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters

Definitions

  • the present application relates to the field of charging technology, and in particular, to a charging control method and electronic equipment.
  • Electronic devices such as mobile phones, tablets, and wearable devices are increasingly used. However, due to their limited size and limited battery capacity, users who use a lot of electronic devices need to charge the electronic devices to enhance their performance. Battery life of electronic devices. Users generally choose to charge electronic devices during sleep. During this period, the demand for the use of electronic devices is smaller and the charging time is longer. The electronic devices can be charged to a higher or fully charged state after sleeping.
  • the increase in charging power shortens the charging time required for electronic devices to reach full power.
  • the sleep time is about 6 to 8 hours.
  • the electronic device may only need 1 to 2 hours to charge to a higher power state or to a fully charged state. This will cause the electronic device to continue to be charged after being fully charged while the user is sleeping, which will affect the service life of the battery of the electronic device; Some electronic devices can disconnect from the charging adapter on their own after being fully charged, but users have less demand for using electronic devices during sleep. Placing electronic devices in a fully charged state (or high power state) also has a negative impact on the battery of the electronic device. has an impact on the service life.
  • Embodiments of the present application provide a charging control method and an electronic device.
  • the charging speed of the electronic device can be adjusted according to the monitoring parameters to improve the battery life of the electronic device.
  • embodiments of the present application provide a charging control method, which includes: performing charging detection on an electronic device, and after detecting that the electronic device is connected to a charging adapter, obtaining monitoring parameters of at least one smart device that establishes a communication connection with the electronic device.
  • at least one smart device includes an environmental parameter monitoring device and a wearable device.
  • the monitoring parameters include environmental parameters of the environment where the user of the electronic device is located and human physiological parameters of the user of the electronic device, where the environmental parameter monitoring device is used to monitor the environment where the user of the electronic device is located.
  • Environmental parameters, wearable devices are used to monitor human physiological parameters of users of electronic devices; determine the work and rest status of the electronic device based on the monitoring parameters, and then adjust the charging speed of the electronic device according to the user's work and rest status, where the user charges the electronic device under different work and rest status.
  • the usage requirements of electronic devices are different. For example, in one state, electronic devices may not be used, and in another state, electronic devices may be used more frequently.
  • the charging speed of electronic devices should be adjusted according to the user's work and rest status to avoid the use of electronic devices. During the charging process, it is always placed in a high power state or a fully charged state to improve the service life of the electronic device battery.
  • the method before obtaining monitoring parameters of at least one smart device that establishes a communication connection with the electronic device, the method further includes: after detecting that the electronic device is connected to the charging adapter, setting the electronic device to is the first charging mode, and the charging speed of the first charging mode is the normal charging speed. After the charging adapter is connected, the electronic device is charged in the first charging mode, and the monitoring parameters of at least one smart device are periodically obtained, and then the electronic device is adjusted. Charging speed.
  • the above-mentioned work and rest state may include sleep state, such as deep sleep state, light sleep state, etc. Determining the user's work and rest state according to the monitoring parameters includes:
  • adjusting the charging mode of the electronic device according to the user's work and rest status includes: when it is determined according to the monitoring parameters that the user of the electronic device enters the sleep stage, since the user is easy to wake up during the sleep stage, the user may wake up.
  • the electronic device is set to the second charging mode, where the charging speed of the second charging mode is greater than the normal charging speed, and the electronic device is charged in the second charging mode until the electronic device is When charging reaches the power threshold, charging is stopped.
  • the second charging mode can quickly increase the power of the electronic device to meet the user's needs when waking up.
  • the electronic device will stop charging after charging to the power threshold. , the electronic device is placed in a state where the battery power is the power threshold, avoiding situations such as being placed in a high power state or being placed in a full power state, and improving the battery life of the electronic device.
  • the method further includes: when it is determined according to the monitoring parameters that the user of the electronic device enters the deep sleep stage, setting the electronic device to the third charging mode.
  • the charging speed of the three charging modes is lower than the normal charging speed. If it is determined according to the monitoring parameters that the user enters the deep sleep stage, the user will not wake up easily during the deep sleep stage, and the user is less likely to use electronic devices. If the electronic device is charged too fast, it will Affecting battery life, in order to reduce the time the electronic device uses the second charging mode, when the user enters the deep sleep stage, the charging mode of the electronic device is set to the third charging mode, which reduces the charging speed and improves the battery life.
  • the method before setting the electronic device to the second charging mode, the method further includes: determining that the power of the electronic device is less than the power threshold, and during the user's sleep period, determining that the power of the electronic device is less than the power threshold. Charging is performed only after the threshold is reached to prevent electronic devices from being overcharged while the user is sleeping and leaving the device in a high power state for a long time, which affects the service life of the battery.
  • the method when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, the method further includes: closing unclosed applications on the electronic device. During the sleep period of the user of the electronic device, if the battery power of the electronic device is greater than or equal to the first threshold, charging will be stopped. During the sleep period of the user of the electronic device, closing the applications that are not closed on the electronic device can avoid the power consumption of the electronic device in the standby state. Too high consumes too much power.
  • adjusting the charging mode of the electronic device according to the sleep state further includes: when it is determined that the restart charging time is reached, charging in the second charging mode, and the restart charging time is earlier than the wake-up time of the user of the electronic device. Since the electronic device is placed with the battery power as the power threshold during the user's sleep, before the user wakes up, the second charging mode is activated to quickly increase the battery power of the electronic device to meet the user's usage needs after waking up.
  • charging in the second charging mode Before, it also includes: determining the wake-up time of the user of the electronic device; determining the charging time required to charge to a fully charged state in the second charging mode based on the battery power of the electronic device; determining the restart charging by subtracting the charging time from the waking time time.
  • the restart charging time is determined based on the time it takes for the electronic device to charge to a fully charged state and the time it wakes up, so that the electronic device can be charged to a fully charged state when the user wakes up.
  • determining the wake-up time of the user of the electronic device includes: determining the wake-up time of the user of the electronic device based on the current date and a pre-trained sleep habit model.
  • determining the wake-up time of the user of the electronic device includes: determining the wake-up alarm time stored in the electronic device as the user's wake-up time.
  • the method before determining the user's wake-up time based on the current date and a pre-trained sleep habit model, includes: obtaining sleep data of the user of the electronic device, where the sleep data includes the time and the sleep corresponding to the time. status; train the sleep habit model based on sleep data to obtain a trained sleep habit model.
  • the method before determining the user's wake-up time based on the current date and a pre-trained sleep habit model, includes: obtaining sleep data of the user of the electronic device, where the sleep data includes the time and the sleep corresponding to the time. status; send sleep data to the server; obtain the sleep habit model trained by the server based on the sleep data.
  • the charging control device includes a detection unit, an acquisition unit and a charging unit.
  • the detection unit is used to detect charging of electronic equipment; the acquisition unit is used to detect that the electronic equipment is connected.
  • After charging the adapter obtain the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device.
  • the at least one smart device includes an environmental parameter monitoring device and a wearable device.
  • the monitoring parameters include environmental parameters of the environment where the user of the electronic device is located, and the user of the electronic device. Human body physiological parameters; the charging unit is used to determine the user's work and rest status based on the monitoring parameters, and adjust the charging speed of the electronic device according to the user's work and rest status.
  • the charging unit is configured to set the electronic device to a first charging mode after detecting that the electronic device is connected to the charging adapter, and the charging speed of the first charging mode is a normal charging speed; the obtaining unit is configured to Monitoring parameters of at least one smart device that establishes a communication connection with the electronic device are periodically acquired.
  • the work and rest state includes a sleep state
  • the charging unit is used to determine the sleep state of the user of the electronic device based on the monitoring parameters; wherein the electronic device stores environmental parameters and/or human physiological parameters and the user's sleep state. corresponding relationship.
  • the charging unit is used to set the electronic device to the second charging mode when it is determined according to the monitoring parameters that the user of the electronic device enters the sleep stage, and stops charging until the electronic device is charged to the power threshold,
  • the charging speed of the second charging mode is greater than the normal charging speed.
  • the charging unit is also used to set the electronic device to the third charging mode when it is determined according to the monitoring parameters that the user of the electronic device enters the deep sleep stage. , the charging speed of the third charging mode is slower than the normal charging speed.
  • the charging unit before setting the electronic device to the second charging mode, is also used to determine that the power of the electronic device is less than the power threshold.
  • the charging unit when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, the charging unit is also used to close unclosed applications on the electronic device.
  • the charging unit when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, the charging unit is also used to stop charging and discharge until the battery power of the electronic device is equal to the power threshold.
  • the charging unit is also used to charge in the second charging mode when it is determined that the restart charging time is reached, and the restart charging time is earlier than the user's wake-up time.
  • the charging unit is also used to determine the wake-up time of the user of the electronic device; determine the charging time required to charge to a fully charged state in the second charging mode according to the battery power of the electronic device; and wake up The time minus the charging time is determined as the restart charging time.
  • the charging unit is also used to determine the user's wake-up time based on the current date and a pre-trained sleep habit model.
  • the charging unit when the electronic device stores a wake-up alarm time, in a possible implementation, the charging unit is also used to determine the wake-up alarm time stored in the electronic device as the wake-up time of the user of the electronic device. time.
  • the charging unit is also used to obtain sleep data of the user of the electronic device.
  • the sleep data includes time and sleep status corresponding to the time; the sleep habit model is trained based on the sleep data to obtain trained sleep. Habit model.
  • the charging unit is also used to: obtain the sleep data of the user of the electronic device, where the sleep data includes time and sleep state corresponding to the time; send the sleep data to the server; and obtain the sleep trained by the server based on the sleep data. Habit model.
  • embodiments of the present application provide an electronic device, including: a processor, a transceiver device, and a charging management module.
  • the processor is used to detect charging of the electronic device, and the transceiver device is used to detect when the processor detects that the electronic device is connected.
  • the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device are obtained.
  • the at least one smart device includes an environmental parameter monitoring device and a wearable device.
  • the monitoring parameters include environmental parameters of the environment where the user of the electronic device is located and the user of the electronic device. Human body physiological parameters, the processor is also used to control the charging management module to adjust the charging speed of the electronic device based on the monitoring parameters.
  • embodiments of the present application provide a computer-readable storage medium.
  • the computer-readable storage medium stores computer instructions.
  • the electronic device causes the electronic device to execute the instructions provided in the first aspect of the embodiment of the present application.
  • the steps of the charging control method are not limited to:
  • Figure 1a is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • Figure 1b is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 3 is a software structure block diagram of the electronic device provided by the embodiment of the present application.
  • FIG. 4 is a schematic flowchart of the charging control method provided by the embodiment of the present application.
  • FIG. 5 is a schematic flow chart of another charging control method provided by an embodiment of the present application.
  • Figure 5a is a schematic flow chart of another charging control method provided by an embodiment of the present application.
  • Figure 5b is a schematic flow chart of another charging control method provided by an embodiment of the present application.
  • Figure 6 is a schematic flowchart of determining the restart charging time provided by an embodiment of the present application.
  • Figure 7 is a schematic flowchart of determining the wake-up time provided by an embodiment of the present application.
  • Figure 8 is a schematic flowchart of training to obtain a sleep habit model provided by an embodiment of the present application.
  • Figure 9 is a schematic flowchart of obtaining a sleep habit model provided by an embodiment of the present application.
  • Figure 10 is a schematic flowchart of determining the wake-up time provided by another embodiment of the present application.
  • Figure 11a is a schematic diagram of charging during a user's sleep according to an embodiment of the present application.
  • Figure 11b is a schematic diagram of another user charging during sleep according to an embodiment of the present application.
  • Figure 12 is a schematic diagram of a sub-step of S242 provided by another embodiment of the present application.
  • Figure 13 is a schematic flow chart of another charging control method provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of the functional modules of the charging control device provided by the embodiment of the present application.
  • Figure 15 is a schematic diagram of an electronic device provided by another embodiment of the present application.
  • Some electronic devices have a longer battery life or are used less frequently. Such electronic devices will also be charged less frequently, such as Bluetooth headsets, smart bracelets or watches. ; Other electronic devices are used more frequently, such as mobile phones, tablets, etc. Such devices need to be charged frequently. Different users have different charging habits. Different charging habits may have an impact on the service life of the batteries of electronic devices.
  • some mobile phone users will choose to charge their mobile phones during sleep, so that the mobile phones can be charged to a fully charged state when the user's sleep ends.
  • a person's sleep state includes the falling asleep stage and the deep sleep stage.
  • the falling asleep stage is the beginning of sleep.
  • the person's brain waves begin to change, the frequency gradually slows down, and the breathing, heartbeat and other speeds are relative (deep sleep stage) It is faster and there will be more frequent turning movements, and it is easier for people to wake up in this sleep stage.
  • the speed of breathing, heartbeat, etc. will decrease, and the frequency of turning over will also decrease. It is generally difficult for people to wake up in the deep sleep stage.
  • the deep sleep stage can be divided into multiple sleep cycles.
  • the internationally accepted method is to divide sleep into two different periods based on changes in brain electrical performance, eye movements and muscle tension during sleep, namely non-rapid sleep.
  • the eye movement period and the rapid eye movement period, the non-rapid eye movement period and the rapid eye movement period each occur alternately once each as a sleep cycle.
  • One sleep cycle is about 90 to 120 minutes, so the length of a person's sleep is about 6 to 8 hours.
  • the time to fall asleep is slightly different, people's sleep and wake-up times are relatively close. For example, if you fall asleep at 23:30 at night, or fall asleep at 23:50 at night, you may fall asleep at 07:30 in the morning.
  • the change in wake-up time is small. That is to say, the number of sleep cycles in the deep sleep stage may change with the time to fall asleep. If the time to fall asleep is earlier, then the number of sleep cycles in the deep sleep stage may change.
  • the number of sleep cycles in the deep sleep stage may be larger, such as 4 sleep cycles; if the sleep time is later, the number of sleep cycles in the deep sleep stage may be reduced, such as 3 sleep cycles.
  • Some mobile phones can disconnect from the charging adapter on their own after being fully charged.
  • the increase in charging speed or charging power in charging modes such as fast charging makes the charging time required for the mobile phone to reach full power. Shortening, when the user charges the mobile phone while sleeping, the mobile phone will be left in a fully charged state for a long time, which will also lead to problems such as reduced capacity or shortened service life of the mobile phone battery.
  • the above example takes the user in the sleeping state as an example.
  • the mobile phone When the user is in the sleeping state, the mobile phone will be idle for a long time (that is, the user will not use the mobile phone during this period). In some other situations, such as long-term use of the mobile phone, When watching movies, TV series, or when the user is focused on work, study, etc., there will also be a long period of idle time. If the user charges the mobile phone under the above circumstances, the mobile phone will also be left in a fully charged state for a long time.
  • the battery has problems such as reduced capacity or shortened service life.
  • embodiments of the present application provide a charging control method.
  • the monitoring of at least one smart device that has established a communication connection with the electronic device can be obtained.
  • Parameters determine the user's work and rest status, and adjust the charging speed of the electronic device according to the user's work and rest status. For example, adjust the charging speed of the electronic device at different sleep stages during sleep, and charge the electronic device to the power threshold during sleep to stop charging. , start charging again before waking up to charge the electronic device to a full power state. This will prevent the electronic device from being continuously charged at a full power state or left in a high power state for a long time, thereby improving the battery life of the electronic device. On the other hand, it can Charging electronic devices to full power while the user is sleeping does not affect use.
  • the system includes an electronic device 100, an environmental parameter monitoring device and a wearable device, where the environment
  • the parameter monitoring device can be any device with an environmental parameter monitoring function.
  • These environmental parameter monitoring devices can be used to collect or monitor environmental parameters of the environment where the user of the electronic device 100 is located.
  • they can be sensors, such as brightness sensors and humidity sensors. , temperature sensors, sound sensors, etc.; it can also be household appliances equipped with various sensors, such as televisions, air conditioners, stereos, lights, cameras, etc.; or, the environmental parameter monitoring equipment can also be objects with environmental parameter monitoring functions.
  • IoT Internet of things
  • IoT Internet of things
  • shoes that can be used to monitor user movement, or electric curtains that can be opened or closed according to user instructions, or smart door locks, etc.
  • environmental parameter monitoring equipment Based on the above environmental parameter monitoring equipment, it can monitor the geographical location, indoor temperature, humidity, illumination or brightness, the switch status of air conditioners/fans, temperature, whether to set sleep mode, movie mode, working mode, etc., and video images captured by the camera Information, the opening and closing status of doors and windows, the movement trajectory of slippers, the user's location and other environmental parameters.
  • the wearable device may be a bracelet, a watch, or other wearable devices, and the wearable device may be used to monitor the human body physiological parameters of the user of the electronic device 100, such as body temperature, heart rate, respiratory rate, and movement conditions (such as slight movement, immobility, large movements, etc.) exercise, etc.), sleep status, blood pressure, blood oxygen saturation, wrist acceleration, electroencephalogram, electrooculogram and electromyogram, etc.
  • body physiological parameters of the user of the electronic device 100 such as body temperature, heart rate, respiratory rate, and movement conditions (such as slight movement, immobility, large movements, etc.) exercise, etc.), sleep status, blood pressure, blood oxygen saturation, wrist acceleration, electroencephalogram, electrooculogram and electromyogram, etc.
  • Figure 1a and Figure 1b only show schematic diagrams of part of the environmental parameter monitoring equipment and part of the wearable equipment, and do not limit the environmental parameter monitoring equipment and the wearable equipment.
  • the environmental parameter monitoring equipment and the wearable equipment provided by the embodiments of the present application The device is not limited to what is shown in Figures 1a and 1b.
  • the electronic device 100 can be a terminal device such as a mobile phone or a tablet computer, and the electronic device 100 can obtain information related to the electronic device.
  • the device establishes a communication connection to monitor the environmental parameters of the environment where the user of the electronic device 100 is monitored by the device, or establishes a communication connection with the electronic device to obtain the human body physiological parameters of the user of the electronic device 100 monitored by the wearable device, thereby according to the environmental parameters and / Or the physiological parameters of the human body determine the user's work and rest state, for example, the user is in a sleeping state, or watching movies/TV, or working (concentrating), etc., and the charging speed of the electronic device 100 is adjusted according to the user's work and rest state.
  • the electronic device 100 can be interconnected with the above-mentioned environmental parameter monitoring device and wearable device, so as to obtain the environmental parameters monitored by the environmental parameter monitoring device, or obtain the human physiology monitored by the wearable device. parameters, or send control instructions to the above-mentioned environmental parameter monitoring equipment and wearable devices to control their adjustment of working status or working mode.
  • the electronic device 100 can communicate with the above-mentioned environmental parameter monitoring device and wearable device through at least one cloud server, so as to obtain the environmental parameters monitored by the environmental parameter monitoring device. , or obtain the human body physiological parameters monitored by the wearable device, or send control instructions to the above-mentioned environmental parameter monitoring equipment and wearable devices to control their adjustment of working status or working mode.
  • the electronic device 100 can share the same user account with at least one of the above-mentioned smart devices, so that the electronic device 100 can determine the user's work and rest status based on the monitoring parameters of the at least one smart device, and then adjust the electronic device 100 charging speed.
  • FIG. 2 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. Taking the electronic device 100 as a mobile phone as an example, a schematic structural diagram of an electronic device 100 used in the implementation of the present application will be described below.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and other sensors.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, a Lighting interface, etc.
  • the USB interface 130 can be used to connect a charging adapter to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices.
  • the interface connection relationships between the modules illustrated in this embodiment are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charging adapter.
  • the charging adapter may be a wireless charging adapter or a wired charging adapter.
  • the charging management module 140 may receive charging input from the wired charging adapter through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • the charging management module 140 can be used to adjust the charging mode or charging speed of the electronic device 100.
  • the charging management module 140 can adjust the charging mode of the electronic device 100 to the first charging mode, The charging speed of the first charging mode is the normal charging speed; the charging management module 140 can also adjust the charging mode of the electronic device 100 to the second charging mode.
  • the charging speed of the electronic device 100 in the second charging mode is greater than the charging speed of the first charging mode.
  • it can be a fast charging mode, which has fast charging efficiency and can quickly charge the electronic device 100 to a fully charged state; or the charging management module 140 can also adjust the charging mode of the electronic device 100 to the third charging mode.
  • the charging speed of the electronic device 100 is lower than the charging speed in the first charging mode.
  • it may be a slow charging mode, in which the charging speed is slower.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • the electronic device The antenna 1 of 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including WLAN (such as (wireless fidelity, Wi-Fi) network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation ( Frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN such as (wireless fidelity, Wi-Fi) network
  • Bluetooth bluetooth, BT
  • global navigation satellite system global navigation satellite system, GNSS
  • frequency modulation Frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193.
  • Camera 193 is used to capture still images or video.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 .
  • the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 can include a program storage area and a data storage area.
  • the stored program area can store the operating system and at least one application program required for the function (such as sound player). playback function, image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA Cellular Telecommunications Industry Association of the USA
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 3 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, machine learning, sleep recognition service, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • the machine learning service can learn the user's sleeping habits.
  • the service first learns the user's sleep in the past period of time, and learns the user's sleep habits in the deep sleep stage based on the time points of the user's falling asleep, deep sleep, and waking up in each sleep. Multiple sleep cycles so that the user's wake-up time can be predicted based on the user's sleeping habits.
  • the sleep recognition service can identify the user's sleep state based on the monitoring parameters of the smart device, such as environmental parameters monitored by the environmental parameter monitoring device (such as brightness, etc.) and human physiological parameters monitored by the wearable device (such as heart rate, respiratory rate, body temperature, movement, etc.) )Identifies the user's sleep state, such as falling asleep, deep sleep, waking up, etc.
  • environmental parameters monitored by the environmental parameter monitoring device such as brightness, etc.
  • human physiological parameters monitored by the wearable device such as heart rate, respiratory rate, body temperature, movement, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer at least includes display driver, camera driver, audio driver, sensor driver, and charging driver.
  • the charging driver can adjust the charging speed of the electronic device 100, for example, by adjusting the charging mode of the electronic device 100 to switch between the first charging mode and the third charging mode to adjust the charging speed of the electronic device 100.
  • charging detection is performed on the electronic device 100 to detect whether the electronic device 100 is connected to the charging adapter.
  • the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device 100 are obtained.
  • At least one Intelligent devices include environmental parameter monitoring equipment and wearable devices.
  • the monitoring parameters include environmental parameters of the environment where the user of the electronic device is located and human physiological parameters of the user of the electronic device.
  • the work and rest status of the user of the electronic device is determined based on the monitoring parameters. According to the user's The work and rest state adjusts the charging speed of the electronic device 100. Take the user charging during sleep as an example.
  • the user easily wakes up and charges in the second charging mode with a faster charging speed.
  • the user does not easily wake up. After charging to the battery threshold, charging is stopped until the restart charging time is reached, and then the electronic device is charged to a fully charged state in the second charging mode.
  • the charging control method provided by the embodiment of the present application will be described in detail below with reference to examples. For example, please refer to Figure 4.
  • the charging control method provided by the embodiment of the present application includes:
  • S210 Perform charging detection on electronic devices.
  • the electronic device 100 When it is detected that the electronic device 100 is connected to the charging adapter, it is charged in the first charging mode, where the first charging mode is the normal charging mode, or the default charging mode after the power adapter is connected to the electronic device, for example, the charging adapter and the electronic device If the default charging mode of the electronic device 100 is the fast charging mode, then the first charging mode is the fast charging mode; if the default charging mode of the charging adapter and the electronic device 100 is the slow charging mode, then the first charging mode is the slow charging mode.
  • S230 Periodically obtain monitoring parameters of at least one smart device that establishes a communication connection with the electronic device.
  • the environmental parameter monitoring device monitors the environmental parameters of the environment where the user of the electronic device 100 is located.
  • the electronic device 100 The environmental parameters monitored by the environmental parameter monitoring equipment can be obtained.
  • the electronic device 100 can communicate with the environmental parameter monitoring equipment through wireless communication (wifi, Bluetooth, infrared), etc., and then obtain the environmental monitoring parameters of the environmental parameter monitoring equipment; or, the environment
  • the parameter monitoring device can be connected to a server through communication, or the environmental parameter monitoring device and the electronic device 100 can use the same or associated user account, etc.; the environmental parameter monitoring device can send the environmental monitoring parameters to the server, and the electronic device 100 can obtain them from the server.
  • the above environmental monitoring parameters can be used to a server through communication, or the environmental parameter monitoring device and the electronic device 100 can use the same or associated user account, etc.
  • the environmental parameter monitoring device can send the environmental monitoring parameters to the server, and the electronic device 100 can obtain them from the server.
  • the environmental parameter monitoring device can be any device with an environmental parameter monitoring function.
  • the environmental parameter monitoring device can be various types of sensors, such as brightness sensors, temperature sensors, sound sensors, etc. It can also be household appliances with various types of sensors. , such as lights, televisions, computers, audio, etc.; the environmental parameter monitoring equipment can also be other Internet of Things (IoT) equipment with environmental parameter monitoring functions.
  • IoT Internet of Things
  • the wearable device can be used to monitor the human body physiological parameters of the user of the electronic device, such as: body temperature, heart rate, sleep, movement trajectory, etc.; the wearable device can be communicated and connected with the electronic device, so that the electronic device 100 can obtain the human body physiological parameters monitored by the electronic device; In another implementation, the wearable device can communicate with a server, or the wearable device and the electronic device 100 use the same or associated user account, etc.; the wearable device can send the monitored human physiological parameters to the server, so that the electronic device 100 can The device 100 can obtain the human body physiological parameters monitored by the wearable device from the server.
  • the wearable device can communicate with a server, or the wearable device and the electronic device 100 use the same or associated user account, etc.; the wearable device can send the monitored human physiological parameters to the server, so that the electronic device 100 can The device 100 can obtain the human body physiological parameters monitored by the wearable device from the server.
  • wearable devices in addition to monitoring human physiological parameters, can also be used to monitor some environmental parameters; in addition to monitoring environmental parameters, the environmental parameter monitoring equipment can also be used to monitor environmental parameters. Used to monitor some human physiological parameters (such as body temperature).
  • the electronic device can periodically obtain monitoring parameters after the current time reaches a preset time.
  • the preset time can be preset for sleep state monitoring.
  • the starting time can be set according to the user's sleeping habits. For example, users generally start to sleep around 20:00, then the preset time can be set to 20:00. If the user sleeps later, it can be set to 22 :00; or the user's working and living habits are to work at night and sleep during the day, then the preset time can be set to 08:00 in the morning.
  • S240 Determine the user's work and rest status according to the monitoring parameters.
  • the monitoring parameters can be used to determine the user's work and rest status, such as sleep status, working status, or the status of watching TV or movies (or called movie viewing status), etc.
  • the environmental parameters of the user's environment and the user's human body physiological parameters will show different patterns. For example, in the sleeping state or the viewing state, the indoor light brightness is low or the lights are turned off. , or the user will set the indoor lighting to "sleep mode" or "viewing mode", etc.
  • human physiological parameters such as heart rate when the user is in a sleeping state and a non-sleeping state, so the monitoring parameters can be Determine the user's work and rest status.
  • S250 Adjust the charging speed of electronic devices according to the user's work and rest status.
  • the electronic device 100 Users have different needs for the electronic device 100 in different work and rest states, and the possible charging time is also different.
  • the charging time is short and there is a demand for use, the electronic device 100 needs to be charged at a faster charging speed.
  • the electronic device 100 should be charged at a faster charging speed (for example, a fast charging mode can be used).
  • the charging speed of the electronic device 100 can be adjusted according to the user's work and rest habits, reducing the charging speed to avoid charging the electronic device 100 to a high power state or After the battery is fully charged, it is placed in a high battery state or a full battery state; or it continues to charge after being fully charged. For example, when the user is sleeping at night, the charging time is long. If the electronic device 100 charges quickly and reaches a fully charged state quickly, the electronic device 100 will remain in a fully charged state during the remaining time of the user's sleep. Leaving it until the user wakes up will not require use, which will affect the battery life of the electronic device 100 .
  • the electronic device 100 needs to be adjusted according to the user's work and rest status.
  • the charging speed is to reduce the loss of the battery of the electronic device 100 due to charging habits.
  • the user's work and rest state includes the sleep state.
  • the electronic device 100 can determine whether the user starts to sleep, falls asleep, or is in deep sleep, etc. based on the monitoring parameters, and then performs the function of the electronic device 100 based on the sleep state.
  • the charging mode is adjusted.
  • the charging control method provided by the embodiment of the present application includes:
  • S240a Determine the user's sleep state according to the monitoring parameters.
  • the sleep state of the user of the electronic device is determined according to the monitoring parameters; wherein the electronic device stores the corresponding relationship between the environmental parameters and/or the human body physiological parameters and the sleep state of the user.
  • the sleep state includes the falling asleep stage and the deep sleep stage
  • the electronic device stores environmental parameters and/or human physiological parameters.
  • the corresponding relationship between the physical parameters and the sleep state of the user of the electronic device can be determined based on the monitoring parameters.
  • the user's blood pressure, heart rate, respiratory rate, blood oxygen saturation, electroencephalogram, electrooculogram, electromyogram and the user's motion data (such as turning over, etc.) detected by the wearable device can be used in advance to determine the user's resting state.
  • Blood pressure, blood pressure, heart rate, respiratory rate, blood oxygen saturation, electroencephalogram, electrooculogram, electromyogram, and the amplitude and frequency of slight movement, less movement, and immobility if the sleep detection start time is reached Later, for example, after 22:00 at night (south), the user is located on the bed in the room, and the user's blood pressure, heart rate, respiratory rate, blood oxygen saturation, acceleration, electroencephalogram, electrooculogram, electromyogram, etc. are lower than those at rest. If the user's movement data shows less movement, it can be determined that the user has entered the sleep stage.
  • the indoor light is weak or no light, and the bedroom door is closed, combined with human physiological parameters such as the user's blood pressure, heart rate, respiratory rate, blood oxygen saturation, electroencephalogram, electrooculogram, and electromyography
  • human physiological parameters such as the user's blood pressure, heart rate, respiratory rate, blood oxygen saturation, electroencephalogram, electrooculogram, and electromyography
  • S250a Adjust the charging speed of electronic devices according to the user's sleep state.
  • the user of the electronic device may wake up and may have a need to use the electronic device. Therefore, when the user's sleep state is in the fall asleep stage, the electronic device needs to be quickly raised. power; and if the user enters the deep sleep stage, the possibility of waking up in a short period of time is small, and the user has less need to use electronic devices. In this case, more efforts should be made to extend the battery life of the electronic device. Adjust the charging speed of electronic devices.
  • S250a when the user charges the electronic device 100 during sleep, the charging speed of the electronic device is adjusted according to the user's work and rest state, that is, the charging speed of the electronic device is adjusted according to the user's sleep state, S250a includes:
  • S252 When it is determined that the user enters the sleep stage according to the monitoring parameters, the electronic device is set to the second charging mode. When the electronic device is charged to the power threshold, charging is stopped. The charging speed of the second charging mode is greater than the normal charging speed.
  • the falling asleep stage is the stage when the user begins to fall asleep. At this stage, the user's body activity decreases, the breathing rate is slightly lower than the daily situation, and the user begins to enter the sleep state. However, users in this sleep stage are very easy to wake up, and some users wake up. Electronic devices such as mobile phones are used when users are sleeping, so during this sleep stage, fast charging mode is used to charge to avoid insufficient power in electronic devices when the user wakes up.
  • the power threshold can be determined based on the performance of the battery or the parameters provided by the battery manufacturer. For example, the manufacturer recommends placing the battery of the electronic device with power A when the electronic device is not used (standby state) for a long time (for example, several hours). The impact on the service life is small. In this case, the above-mentioned power A can be set to the above-mentioned power threshold.
  • the power threshold is preferably a power value that has a smaller battery life of the electronic device when left unused for a long time.
  • the power threshold is 60% to 80%.
  • the battery life of the electronic device is affected by the power state of 60% to 80%. The impact on the life of the electronic device is small. If it is placed in a high power state (such as 90%) or fully charged, it will have a greater impact on the battery life of the electronic device. If it is placed in a lower power state, it will appear when the user needs to use the electronic device. Problems such as insufficient battery.
  • the above power threshold for example, 60% to 80%
  • the electronic device stops charging after charging to the power threshold.
  • the electronic device is placed in the state of the power threshold. However, in this case, the electronic device is not charged to the full power state. Since the electronic device also consumes a certain amount of power in the standby state, in the The power of the electronic device before the user wakes up may be lower than the above power threshold. In order to charge the electronic device to a fully charged state when the user wakes up, charging needs to be restarted before the user wakes up to charge the electronic device before the user wakes up. to fully charged state.
  • the electronic device 100 when the user enters the sleep stage, the electronic device 100 is charged in the second charging mode to the power threshold and then stops charging.
  • the electronic device The power of 100 has reached a high state, for example, higher than the power threshold.
  • the electronic device 100 may be quickly charged to a high power state while the user is sleeping or Fully charged state, so that the electronic device 100 may be placed in a higher power state or a fully charged state during the user's sleep, which will affect the service life of the battery. Therefore, the power state of the electronic device 100 can be judged.
  • S250a adjusts the charging speed of the electronic device according to the sleep state including:
  • S252 When it is determined that the power of the electronic device is less than the power threshold, set the electronic device to the second charging mode until the electronic device is charged to the power threshold, stop charging, wherein the charging speed of the second charging mode is greater than the normal charging speed.
  • the battery power of the electronic device 100 is determined to determine whether it is less than a power threshold. If it is less than the power threshold, since the user may wake up to use the electronic device 100 during the sleep stage, the second charging mode (the second charging mode in this embodiment is a fast charging mode) can be used to charge it to the power threshold; if it is greater than or Equal to the power threshold.
  • this power state is sufficient to meet the user's usage needs. If the user does not wake up during the sleep stage, the electronic device 100 will quickly charge to a high power state or a full power state. , leaving it for a long time while the user is sleeping will affect the service life of the battery. Therefore, when the power of the electronic device 100 is greater than or equal to the power threshold, charging is stopped and discharged until the battery power of the electronic device is equal to the power threshold, so that the electronic device 100 can be used The power state of the user during sleep is maintained around the above-mentioned power threshold, which reduces the time the electronic device 100 is in the charging state and improves the battery life of the electronic device 100 .
  • S250a also includes:
  • the power state of the electronic device 100 is maintained at the power threshold during the user's sleep.
  • the power state of the electronic device 100 during the user's sleep may be will remain slightly below the battery threshold.
  • the charging control method controls the electronic device 100 to restart charging before the user wakes up, for example, perform the above S257.
  • the embodiment of the present application sets a restart charging time.
  • the electronic device is charged in the second charging mode, so that the electronic device 100 can be charged to a higher power state or a fully charged state when the user wakes up.
  • the above-mentioned restart charging time can be set according to the battery power of the electronic device, charging efficiency, user's sleeping habits, etc.
  • the method for determining the restart charging time is introduced below.
  • the steps for determining the restart charging time include:
  • S2561 Determine the wake-up time of the user of the electronic device.
  • S2563 Determine the charging time required to charge to a fully charged state in the second charging mode according to the battery power of the electronic device.
  • S2565 Determine the restart charging time by subtracting the charging time from the waking time.
  • the user's wake-up time is determined.
  • the user's wake-up time can be learned and predicted based on the user's sleeping habits, or the wake-up alarm time of the electronic device can be determined as the wake-up time.
  • the charging time required to charge to a fully charged state in the second charging mode ie, fast charge mode
  • the charging time is subtracted, that is, Charge time for the above restart.
  • S2561 includes:
  • S2561a Determine the wake-up time of the user of the electronic device based on the current date and the pre-trained sleep habit model.
  • a sleep habit model can be used to determine the user's wake-up time.
  • the sleep habit model can be trained based on the user's sleep habit data and learn the user's sleep habits every day in the past period.
  • the sleep habit data includes time and sleep status. For example, the user entered the sleep stage at 22:00 every night in the past period. Enter the deep sleep stage at 22:30 and wake up at 07:30 the next morning.
  • Use the sleep habit data to train the sleep habit model, so that the trained sleep habit model can be used to predict the user's wake-up time, that is, based on the user's wake-up time. Sleep habits predict the user’s wake time.
  • the sleep habit model Before using the sleep habit model to predict the user's waking time, the sleep habit model needs to be trained.
  • the training of the sleep habit model can be completed by an electronic device, In this case, referring to Figure 8, the training of the sleep habit model includes: obtaining the user's sleep habit data, which includes time and sleep status, and training the initial model based on the sleep habit data to obtain a trained sleep habit model. As shown in Table 1, Table 1 is an example of sleep habit data.
  • the sleep habit data may be sleep habit data stored on an electronic device.
  • a wearable device such as a bracelet or watch monitors the user's sleep to generate sleep habit data.
  • the electronic device obtains the sleep habit data generated by the wearable device and then stores it; and
  • the sleep habit data can be obtained by the electronic device from the server.
  • a wearable device such as a bracelet or watch monitors the user's sleep to generate sleep habit data, and the sleep habit data is stored in the server.
  • the electronic device can obtain and store the sleep habit data in the server. Server sleep habits data.
  • the above sleep habit data can also be determined by the electronic device based on human physiological parameters monitored by the wearable device. For example, at time T1, if the user's heart rate decreases and the breathing frequency decreases, it can be determined that the user is Enter the sleep stage at T1 time.
  • an initial model is trained based on the sleep habit data.
  • the initial model can be a reference initial model, or a model obtained based on default model parameters.
  • the initial model can be A model determined based on a transformation neural network (transfomer), or a model determined based on a recurrent neural network (RNN).
  • the initial model can also be a Bayesian model, etc.
  • the training sample data that is, the above-mentioned sleep habit data
  • the resulting converged initial model can be used as a trained sleep habit model.
  • the trained sleep habit model is used to determine the user's wake-up time based on the current date.
  • the sleep habit data includes time and sleep state, where the time includes date and time corresponding to different sleep states.
  • the above sleep habit data is used to train the initial model, and the trained sleep habit model can predict the user's sleep status based on the date.
  • the above time can also be stored in the form of a date, or in the form of a week.
  • the time can be stored according to the current Use the day of the week to predict the user's wake-up time, or predict the user's different sleep stages. For example, Monday to Friday are working days, and the wake-up time is earlier. Saturday and Sunday are rest days, and the wake-up time is later.
  • the sleep habit model provided by the embodiment of the present application is explained by using the electronic device to train the model according to the user's sleep habit data.
  • the above-trained sleep habit model can also be made by Obtained by electronic devices, for example, see Figure 9.
  • the sleep habit data is sent to the server, and the server trains the initial model based on the sleep habit data.
  • the electronic device 100 obtains the sleep habit model trained by the server, and uses the obtained sleep habit model to determine the user's wake-up time.
  • some electronic devices 100 may have multiple users.
  • user identification can also be added to the sleep habit data, different sleep data is recorded for different users, and the initial model learns different user sleep habits.
  • the data is used to form multiple sleep habit models corresponding to different user identifiers. In this way, when the user of the electronic device 100 changes, the sleep habit model corresponding to the user identifier can be used to predict the corresponding user sleep state. .
  • S2561 includes:
  • S2561b Determine the wake-up alarm time stored in the electronic device as the user's wake-up time.
  • the wake-up alarm clock time can be used as the user's wake-up time. For example, if the wake-up alarm clock time stored in the electronic device is 07:30 in the morning, then 07:30 in the morning can be determined as the user's wake-up time. Wake up time.
  • the charging time required to charge to the full power state in the fast charge mode is determined based on the battery power of the electronic device. For example, the battery power difference between the battery power of the electronic device and the full power state is determined, and the power difference is The ratio to the charging efficiency is determined as the charging time. In order to quickly charge the electronic device to a fully charged state, the above charging efficiency should be the charging efficiency of the second charging mode, that is, the fast charging mode. After the charging time is determined, based on the wake-up time Subtracting the above charging time is the restart charging time provided by the embodiment of the present application.
  • the waking time is 07:30 in the morning, and the current battery level of the electronic device is 60%. Based on the current battery level, it is determined that the charging time required to charge to full power in fast charging mode is 30 minutes. Then the difference between the waking time and the charging time can be calculated. That is, 07:00 in the morning is determined as the above-mentioned restart charging time. During the restart charging time, the electronic device is charged in the second charging mode, and the electronic device can be charged to a fully charged state before the user wakes up.
  • the following takes the electronic device as a mobile phone as an example, and illustrates the above embodiment with specific examples.
  • the user uses a mobile phone and connects the charging adapter for charging at 21:30 at night.
  • the first charging mode is used for charging, and the first charging mode may be fast charging or slow charging.
  • the mobile phone is adjusted to the second charging mode (fast charge). mode) to charge.
  • the power threshold for example, 60%
  • the charging of the mobile phone reaches the power threshold (for example, 60%), charging is stopped, and the mobile phone is placed in a 60% power state.
  • the power threshold for example, 60%
  • the mobile phone After the mobile phone is placed until the restart charging time, for example, at 07:00 in the morning, charging is restarted. At this time, charging continues in the second charging mode.
  • the mobile phone When the user wakes up, that is, around 07:30 in the morning, the mobile phone can be charged to a fully charged state.
  • the monitoring parameters are obtained at a preset time (for example, 22:00 at night), it is determined based on the monitoring parameters that the user has entered the sleep stage. At this time, the power of the mobile phone is higher than or equal to the power threshold (for example, 60% ), stop charging, and discharge.
  • a preset time for example, 22:00 at night
  • the power threshold for example, 60%
  • the mobile phone is discharged until the power reaches the power threshold, and the discharge is stopped.
  • the mobile phone is placed at 60% of the power state until the restart charging time is reached, and the phone continues to be charged in the second charging mode.
  • the electronic device 100 when the battery power of the electronic device 100 is lower than the power threshold, the electronic device 100 is charged in the second charging mode (ie, the fast charging mode) to the power threshold, stops charging, and is left until the restart charging time.
  • the second charging mode charges to a fully charged state.
  • the fast charging mode can improve charging efficiency and enhance the user's charging experience.
  • long-term rapid charging of the electronic device 100 has an impact on the battery life of the electronic device. Excessive use of the fast charging mode will shorten the battery life. Battery age.
  • another implementation method provided by the embodiment of the present application is to charge in the second charging mode when the user enters the sleep stage.
  • the second charging mode Before charging to the power threshold, if the user enters the deep After the sleep stage, fast charging is no longer performed, but is converted to slow charging mode for charging. Similarly, charging stops after charging to the power threshold, and charging is restarted until the restart charging time is reached.
  • S250a: adjusting the charging speed of the electronic device according to the sleep state includes:
  • the electronic device 100 When entering the sleep stage and the power of the electronic device 100 is less than the power threshold, the electronic device 100 is charged in the second charging mode. If it is determined according to the monitoring parameters that the user's sleep has entered the deep sleep stage before charging to the power threshold, the electronic device 100 will be charged again.
  • the charging mode of the device 100 is adjusted, for example, also including:
  • the deep sleep stage Since the deep sleep stage lasts a long time, it is not easy for the user to wake up during the deep sleep stage. After entering the deep sleep stage, the deep sleep stage takes a long time and the user does not easily wake up during the deep sleep stage. Therefore, there is no need to charge in fast charging mode. , switching to the third charging mode, where the charging speed of the third charging mode is lower than the normal charging speed, and after charging to the power threshold in the third charging mode, the charging stops.
  • Adjusting to the third charging mode after the user enters the deep sleep stage can reduce the time the electronic device 100 uses the second charging mode and improve its battery life.
  • restart charging time when the restart charging time is reached, charging is performed in the second charging mode until the charge is fully charged.
  • the implementation of restart charging has been described in detail in the previous embodiment and will not be introduced here. Please refer to Relevant content in the aforementioned embodiments.
  • the user uses a mobile phone and connects the charging adapter for charging at 21:30 at night. At this time, the user charges in the first charging mode.
  • monitoring parameters at a preset time (for example, 22:00 at night), and determine that the user has entered the sleep stage based on the monitoring parameters.
  • the power of the mobile phone does not reach the power threshold (for example, 60%), and the mobile phone is adjusted to the second charging mode (fast charging mode). ) to charge.
  • the phone was charged to 50% and did not reach the battery threshold. It was detected that the user had entered the deep sleep stage, and the phone was adjusted to the third charging mode (slow charging mode) for charging.
  • the third charging mode slow charging mode
  • the mobile phone is charged in slow charging mode until it reaches the battery threshold (for example, 60%), charging is stopped, and the mobile phone is left in a 60% battery state.
  • the battery threshold for example, 60%
  • the mobile phone After the mobile phone is placed until the restart charging time, for example, at 07:00 in the morning, charging is restarted. At this time, charging continues in the second charging mode.
  • the mobile phone When the user wakes up, that is, around 07:30 in the morning, the mobile phone can be charged to a fully charged state.
  • the above-mentioned restart charging time is determined based on the user's wake-up time, the battery power of the electronic device, and the charging time required to charge to a fully charged state.
  • the restart charging time can also be preset, such as Use the sleep habit model to determine the last sleep cycle among the multiple sleep cycles of the user in the deep sleep stage, and determine the amount of charging power required to charge the electronic device to a fully charged state based on the battery power of the electronic device and the length of the last sleep cycle. Then charging is performed at a determined charging power, so that the electronic device can be charged to a fully charged state when the user wakes up.
  • the rapid eye movement period and the non-rapid eye movement period alternate as one sleep cycle, and the deep sleep stage includes multiple sleep cycles.
  • the rapid eye movement period and the non-rapid eye movement period alternate, Users will experience obvious changes in physiological parameters, such as changes in the user's heart rate, breathing rate, etc., or may have larger turning movements, etc.
  • the wearable device can record the user's differences in the deep sleep stage based on the above-mentioned human body physiological parameters, etc.
  • the sleep habit model can learn the user's different sleep cycle times, and then the trained sleep habit model can be used to predict the time point of the user's last sleep cycle in the deep sleep stage, and the last sleep cycle The time point is determined as the restart charging time, and then the charging power required to charge to a full power state in the last sleep cycle is determined based on the battery power of the electronic device, and charging is performed with the determined power.
  • the user charges the electronic device while sleeping at night as an example.
  • Different users may have different sleep patterns due to different work and living habits. Habits, for example, some users work mainly at night, so the user may sleep during the day, and the charging mode of the electronic device during the user's sleep is also adjusted according to the monitoring parameters; or the user may also have some short sleep, such as lunch break , nap, etc.
  • This type of sleep time is short and is generally charged in fast charging mode.
  • the sleep time is long and there may be multiple sleep cycles, the user's electronic devices during sleep can also be charged according to the monitoring parameters. mode to adjust.
  • the user charges the electronic device 100 while watching a movie or while working the same can be done
  • the user's work and rest status is determined based on the monitoring parameters, such as movie viewing status or working status. For example, if the indoor lighting where the user is located is adjusted to the movie viewing mode, then the user's work and rest status can be determined to be the movie viewing status. If the user sets to enter "work mode" on the wearable device, it can be determined that the user's work and rest status is the work status. Then, the charging speed of the electronic device 100 is adjusted according to the different stages of the user's viewing state or working state.
  • the duration of a movie or TV series is certain, for example, the TV series lasts about 45 minutes and the movie lasts about 120 minutes, so the charging time in the movie-watching state is shorter and you can Always charge at a faster charging speed (such as the second charging mode).
  • the working status as an example, assuming that the user works between 9:00-12:00 and 13:00-17:00, then it is determined based on the monitoring parameters and/or human physiological parameters that the user of the electronic device 100 is working. After the electronic device 100 is in the state, it can be charged in the second charging mode first, and then stop charging after charging to the power threshold. A period of time before the end of the work, and then determine the time to restart charging according to the battery power status and charging speed of the electronic device 100 to ensure that the user Restart charging before finishing work. Since the time when the user's work ends is known, part of the content of restarting charging can refer to part of the content of restarting charging in sleep state charging, which will not be described again here.
  • the electronic device includes corresponding hardware structures and/or software modules that perform each function.
  • the present application can be implemented in the form of a combination of hardware and computer software. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
  • the embodiment of the present application can also divide the charging control device 400 into functional modules according to the above method examples.
  • each functional module can be divided into corresponding functional modules, or two or more functions can be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • FIG. 14 shows a charging control device 400 for executing the charging control method provided in the aforementioned embodiments of this application.
  • the charging control device 400 includes: a detection unit 401, an acquisition unit 402 and a charging unit 403.
  • the detection unit 401 is used to detect charging of electronic equipment.
  • the detection unit 401 may be used to perform S210.
  • the charging unit 403 is used to set the electronic device to the first charging mode after detecting that the electronic device is connected to the charging adapter.
  • the charging speed in the first charging mode is the normal charging speed.
  • the charging unit 403 may be used to perform S220.
  • the acquisition unit 402 is configured to periodically acquire monitoring parameters of at least one smart device that establishes a communication connection with the electronic device.
  • the smart devices include environmental parameter monitoring equipment and wearable devices.
  • the monitoring parameters include environmental parameters and human physiological parameters.
  • the environmental parameter monitoring equipment can be used to monitor environmental parameters, and the wearable devices can be used to monitor human physiological parameters.
  • the obtaining unit 402 may be used to perform S230.
  • the charging unit 403 is also used to determine the work and rest state of the user of the electronic device according to the monitoring parameters, and the charging unit 403 is also used to adjust the charging speed of the electronic device according to the work and rest state of the user of the electronic device.
  • Monitoring parameters are used to determine the user's sleep status, such as Determine whether the user starts to sleep, falls asleep or is in deep sleep, etc., and adjusts the charging speed of the electronic device according to the monitoring parameters.
  • the electronic device Before adjustment, the electronic device is charged in the first charging mode. When the user enters the sleep stage, it can be charged in the second time. When the user is in deep sleep, the device can be charged in the third charging mode, where the second charging mode is the fast charging mode and the third charging mode is the slow charging mode.
  • the charging unit 403 may be used to perform S240 and S250.
  • the charging unit 403 is used to determine the sleep state of the user of the electronic device based on the monitoring parameters; wherein the electronic device stores environmental parameters and/or human physiological parameters and the user's sleep state.
  • the charging unit 403 is also used to adjust the charging speed of the electronic device according to the sleep state.
  • the charging unit 403 may be used to perform S240a and S250a.
  • the charging unit 403 is used to set the electronic device to the second charging mode when it is determined according to the monitoring parameters that the user enters the sleep stage, and stops charging when the electronic device is charged to the power threshold, wherein charging in the second charging mode The speed is greater than the normal charging speed.
  • the falling asleep stage is the stage when users start to fall asleep. Users in this sleep stage are prone to wake up. Some users will use electronic devices such as mobile phones when they wake up. Therefore, during this sleep stage, fast charging mode is used to charge to prevent users from waking up.
  • the charging unit 403 can be used to perform S252.
  • the charging unit 403 is also used to charge in the second charging mode when it is determined that the restart charging time is reached. Since electronic devices also consume a certain amount of power in standby mode, the power of the electronic device may be lower than the above power threshold before the user wakes up. In order to charge the electronic device to a full power state when the user wakes up, it is necessary to charge the electronic device to a full power state when the user wakes up. Restart charging before arrival to fully charge electronic devices before the user wakes up. For example, in conjunction with Figure 5a, the charging unit 403 can also be used to perform S257.
  • the charging unit 403 is also used to determine that the power of the electronic device is less than the power threshold when it is determined that the user enters the sleep stage according to the monitoring parameters.
  • the charging unit 403 can also be used to perform S251.
  • the charging unit 403 is also used to stop charging when it is determined that the power of the electronic device is greater than or equal to the power threshold, and discharge until the battery power of the electronic device is equal to the power threshold.
  • the charging unit 403 can also be used to perform S253.
  • the charging unit 403 is also used to close unclosed applications on the electronic device when it is determined that the power of the electronic device is greater than or equal to the power threshold.
  • the charging unit 403 can also be used to perform S254.
  • the charging unit 403 is also configured to charge in the second charging mode when it is determined that the restart charging time is reached, and the restart charging time is earlier than the wake-up time of the user of the electronic device.
  • the charging unit 403 may also be used to perform S257.
  • the charging unit 403 before restarting charging, is also used to determine the restarting time.
  • the charging unit 403 is specifically used to determine the wake-up time of the user of the electronic device, and determine according to the battery power of the electronic device to charge in the second charging mode to The charging time required for the fully charged state is determined by subtracting the charging time from the wake-up time as the restart charging time.
  • the charging unit 403 may also be used to perform S2561 to S2565.
  • the charging unit can determine the wake-up time of the user of the electronic device through a pre-trained sleep habit model, where the sleep habit model can learn the user's sleep habit data in the past period of time. , predicting the user’s wake-up time based on the user’s sleeping habits.
  • the charging unit 403 may also be used to perform S2561a.
  • the charging unit may determine the wake-up alarm time stored in the electronic device as the user's wake-up time.
  • the charging unit 403 may also be used to perform S2561b.
  • the charging unit 403 is also used to set the electronic device to the third charging mode until the electronic device is charged to the power threshold when it is determined that the user enters the deep sleep stage according to the monitoring parameters.
  • the charging unit 403 may also be used to perform S255.
  • an embodiment of the present application also provides an electronic device.
  • the electronic device may be the electronic device 100 in the above figure.
  • the electronic device includes one or more processors 501, a transceiver device 502 and a charging management device.
  • Module 503, processor 501, transceiver device 502, and charging management module 503 can be connected through bus 504.
  • the processor 501 is used to detect charging of electronic equipment;
  • the transceiver 502 is used to obtain monitoring parameters of at least one smart device that establishes a communication connection with the electronic device after the processor 501 detects that the electronic device is connected to the charging adapter.
  • At least one smart device includes an environmental parameter monitoring device and a wearable device.
  • the monitoring parameters include environmental parameters and human physiological parameters.
  • the processor 501 is also used to determine the work and rest status of the user of the electronic device based on the monitoring parameters, and then controls the charging management module 503 based on the work and rest status. Adjust the charging speed of the electronic device, for example, determine the sleep state of the user of the electronic device based on the monitoring parameters, and adjust the charging speed of the electronic device based on the user's sleep state.
  • Embodiments of the present application also provide a computer storage medium that includes computer instructions.
  • the electronic device When the computer instructions are run on the above-mentioned electronic device, the electronic device causes the electronic device to perform each function or step in the above-mentioned method embodiment.
  • Each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage device.
  • the medium includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

Provided in the embodiments of the present application are a charging control method and an electronic device, by means of which a charging speed can be adjusted according to a monitoring parameter of a smart device when a user sleeps, thus prolonging the service life of a battery of an electronic device. The charging control method comprises: performing charging detection on an electronic device; after it is detected that the electronic device is connected to a charging adapter, acquiring a monitoring parameter of at least one smart device, which establishes a communication connection with the electronic device, wherein the at least one smart device comprises an environment parameter monitoring device and a wearable device, and the monitoring parameter comprises an environmental parameter of the environment where a user of the electronic device is located, and a physiological parameter of the user of the electronic device; the electronic device determining the work/rest state of the user of the electronic device according to the monitoring parameter; and then adjusting the charging speed of the electronic device according to the work/rest state of the user.

Description

充电控制方法及电子设备Charging control method and electronic device
本申请要求于2022年03月15日提交国家知识产权局、申请号为202210255558.9、申请名称为“充电控制方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 15, 2022, with application number 202210255558.9 and application name "Charging Control Method and Electronic Equipment", the entire content of which is incorporated into this application by reference. .
技术领域Technical field
本申请涉及充电技术领域,尤其涉及一种充电控制方法及电子设备。The present application relates to the field of charging technology, and in particular, to a charging control method and electronic equipment.
背景技术Background technique
手机、平板电脑、可穿戴设备等电子设备的使用越来越广泛,但由于其体积有限,电池容量也有限,因此用户若使用电子设备较多的情况下需要通过对电子设备进行充电,以增强电子设备的续航能力。用户一般会选择在睡眠期间对电子设备充电,这个时间段对电子设备的使用需求较小,且充电时间较长,可以在睡眠结束后将电子设备充电至电量较高或者满电的状态。Electronic devices such as mobile phones, tablets, and wearable devices are increasingly used. However, due to their limited size and limited battery capacity, users who use a lot of electronic devices need to charge the electronic devices to enhance their performance. Battery life of electronic devices. Users generally choose to charge electronic devices during sleep. During this period, the demand for the use of electronic devices is smaller and the charging time is longer. The electronic devices can be charged to a higher or fully charged state after sleeping.
随着充电技术的发展,充电功率的增长使得电子设备充电达到满电状态所需的充电时间缩短,一般情况下睡眠时长约为6~8小时,在用户睡眠期间对电子设备进行充电时,电子设备可能只需要1~2小时即可充电至电量较高的状态或者满电状态,这样会导致在用户睡眠期间,电子设备在满电后持续处于充电状态,会影响电子设备电池的使用寿命;部分电子设备可以在充满电后自行断开与充电适配器的连接,但在用户在睡眠期间对电子设备的使用需求较小,电子设备以满电状态(或者高电量状态)放置同样对电子设备电池的使用寿命有影响。With the development of charging technology, the increase in charging power shortens the charging time required for electronic devices to reach full power. Under normal circumstances, the sleep time is about 6 to 8 hours. When the user charges the electronic device while sleeping, the electronic device The device may only need 1 to 2 hours to charge to a higher power state or to a fully charged state. This will cause the electronic device to continue to be charged after being fully charged while the user is sleeping, which will affect the service life of the battery of the electronic device; Some electronic devices can disconnect from the charging adapter on their own after being fully charged, but users have less demand for using electronic devices during sleep. Placing electronic devices in a fully charged state (or high power state) also has a negative impact on the battery of the electronic device. has an impact on the service life.
发明内容Contents of the invention
本申请实施例提供一种充电控制方法及电子设备,在用户睡眠期间对电子设备进行充电时,可以根据监测参数对电子设备的充电速度进行调整,改善电子设备的电池使用寿命。Embodiments of the present application provide a charging control method and an electronic device. When the user charges the electronic device during sleep, the charging speed of the electronic device can be adjusted according to the monitoring parameters to improve the battery life of the electronic device.
第一方面,本申请实施例提供了一种充电控制方法,包括:对电子设备进行充电检测,检测到电子设备接入充电适配器后,获取与电子设备建立通信连接的至少一个智能设备的监测参数,至少一个智能设备包括环境参数监测设备与穿戴设备,监测参数包括电子设备的用户所在环境的环境参数与电子设备的用户的人体生理参数,其中环境参数监测设备用于监测电子设备的用户所在环境的环境参数,穿戴设备用于监测电子设备的用户的人体生理参数;根据监测参数确定电子设备的作息状态,然后根据用户的作息状态调整电子设备的充电速度,其中用户在不同的作息状态下对电子设备的使用需求不同,例如在一种状态下可能不会使用电子设备,在另一种状态下可能使用电子设备比较频繁,根据用户的作息状态对电子设备的充电速度进行调整,避免电子设备在充电过程中一直以高电量状态或者满电状态放置,改善电子设备电池的使用寿命。In a first aspect, embodiments of the present application provide a charging control method, which includes: performing charging detection on an electronic device, and after detecting that the electronic device is connected to a charging adapter, obtaining monitoring parameters of at least one smart device that establishes a communication connection with the electronic device. , at least one smart device includes an environmental parameter monitoring device and a wearable device. The monitoring parameters include environmental parameters of the environment where the user of the electronic device is located and human physiological parameters of the user of the electronic device, where the environmental parameter monitoring device is used to monitor the environment where the user of the electronic device is located. Environmental parameters, wearable devices are used to monitor human physiological parameters of users of electronic devices; determine the work and rest status of the electronic device based on the monitoring parameters, and then adjust the charging speed of the electronic device according to the user's work and rest status, where the user charges the electronic device under different work and rest status. The usage requirements of electronic devices are different. For example, in one state, electronic devices may not be used, and in another state, electronic devices may be used more frequently. The charging speed of electronic devices should be adjusted according to the user's work and rest status to avoid the use of electronic devices. During the charging process, it is always placed in a high power state or a fully charged state to improve the service life of the electronic device battery.
在一种可能的实现方式中,在获取与电子设备建立通信连接的至少一个智能设备的监测参数之前,方法还包括:检测到电子设备接入充电适配器后,将电子设备设置 为第一充电模式,第一充电模式的充电速度为正常充电速度,接入充电适配器后电子设备以第一充电模式进行充电,周期性获取至少一个智能设备的监测参数,然后再调整电子设备的充电速度。In a possible implementation, before obtaining monitoring parameters of at least one smart device that establishes a communication connection with the electronic device, the method further includes: after detecting that the electronic device is connected to the charging adapter, setting the electronic device to is the first charging mode, and the charging speed of the first charging mode is the normal charging speed. After the charging adapter is connected, the electronic device is charged in the first charging mode, and the monitoring parameters of at least one smart device are periodically obtained, and then the electronic device is adjusted. Charging speed.
在一种可能的实现方式中,上述作息状态可以包括睡眠状态,例如深睡状态、浅睡状态等,根据监测参数确定用户的作息状态包括:In a possible implementation, the above-mentioned work and rest state may include sleep state, such as deep sleep state, light sleep state, etc. Determining the user's work and rest state according to the monitoring parameters includes:
根据监测参数确定电子设备的用户的睡眠状态,其中电子设备存储有环境参数和/或人体生理参数与用户的睡眠状态的对应关系,然后根据用户的睡眠状态调整电子设备的充电速度,这样一方面保障用户使用电子设备的用电需求,另一方面避免充电速度过快导致电子设备在用户睡眠期间一直以高电量状态或满电量状态放置。Determine the sleep state of the user of the electronic device based on the monitoring parameters, where the electronic device stores the corresponding relationship between environmental parameters and/or human physiological parameters and the user's sleep state, and then adjusts the charging speed of the electronic device according to the user's sleep state. In this way, on the one hand It protects the user's power needs for using electronic devices, and on the other hand, prevents the charging speed from being too fast, causing the electronic device to remain in a high or full power state while the user is sleeping.
在一种可能的实现方式中,根据用户的作息状态调整电子设备的充电模式,包括:当根据监测参数确定电子设备的用户进入入睡阶段时,由于在入睡阶段用户容易醒来,用户醒来可能有使用电子设备的需求,因此在用户进入入睡阶段时将电子设备设置为第二充电模式,其中第二充电模式的充电速度大于正常充电速度,以第二充电模式对电子设备充电直至将电子设备充电至电量阈值时,停止充电,第二充电模式可以使电子设备的电量快速提升,以满足用户醒来时的使用需求,若用户在入睡阶段未醒来,那么电子设备充电至电量阈值后停止充电,电子设备以电池电量为电量阈值的状态放置,避免出现以高电量状态放置或者满电量状态放置等情况,改善电子设备的电池使用寿命。In one possible implementation, adjusting the charging mode of the electronic device according to the user's work and rest status includes: when it is determined according to the monitoring parameters that the user of the electronic device enters the sleep stage, since the user is easy to wake up during the sleep stage, the user may wake up. There is a need to use electronic devices, so when the user enters the sleep stage, the electronic device is set to the second charging mode, where the charging speed of the second charging mode is greater than the normal charging speed, and the electronic device is charged in the second charging mode until the electronic device is When charging reaches the power threshold, charging is stopped. The second charging mode can quickly increase the power of the electronic device to meet the user's needs when waking up. If the user does not wake up during the sleep stage, the electronic device will stop charging after charging to the power threshold. , the electronic device is placed in a state where the battery power is the power threshold, avoiding situations such as being placed in a high power state or being placed in a full power state, and improving the battery life of the electronic device.
在一种可能的实现方式中,直至将电子设备充电至电量阈值时之前,方法还包括:当根据监测参数确定电子设备的用户进入深睡阶段时,将电子设备设置为第三充电模式,第三充电模式的充电速度小于正常充电速度,若根据监测参数确定用户进入深睡阶段,在深睡阶段用户不容易醒来,用户使用电子设备的可能性较小,电子设备的充电速度过快会影响电池寿命,为了降低电子设备使用第二充电模式的时长,在用户进入深睡阶段的情况下,将电子设备的充电模式设置为第三充电模式,降低充电速度,改善电池的使用寿命。In a possible implementation, until the electronic device is charged to the power threshold, the method further includes: when it is determined according to the monitoring parameters that the user of the electronic device enters the deep sleep stage, setting the electronic device to the third charging mode. The charging speed of the three charging modes is lower than the normal charging speed. If it is determined according to the monitoring parameters that the user enters the deep sleep stage, the user will not wake up easily during the deep sleep stage, and the user is less likely to use electronic devices. If the electronic device is charged too fast, it will Affecting battery life, in order to reduce the time the electronic device uses the second charging mode, when the user enters the deep sleep stage, the charging mode of the electronic device is set to the third charging mode, which reduces the charging speed and improves the battery life.
在一种可能的实现方式中,在将所述电子设备设置为第二充电模式之前,方法还包括:确定电子设备的电量小于所述电量阈值,在用户睡眠期间,确定电子设备的电量小于电量阈值才进行充电,避免电子设备在用户睡眠期间电量过高,长时间以高电量状态放置影响电池的使用寿命。In a possible implementation, before setting the electronic device to the second charging mode, the method further includes: determining that the power of the electronic device is less than the power threshold, and during the user's sleep period, determining that the power of the electronic device is less than the power threshold. Charging is performed only after the threshold is reached to prevent electronic devices from being overcharged while the user is sleeping and leaving the device in a high power state for a long time, which affects the service life of the battery.
在一种可能的实现方式中,当确定电子设备的电池电量大于或等于第一阈值时,方法还包括:关闭电子设备上未关闭的应用程序。在电子设备的用户睡眠期间,电子设备的电池电量大于或等于第一阈值会停止充电,在电子设备的用户睡眠期间,关闭电子设备上未关闭的应用程序,可以避免电子设备在待机状态功耗过高消耗过多电量。In a possible implementation, when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, the method further includes: closing unclosed applications on the electronic device. During the sleep period of the user of the electronic device, if the battery power of the electronic device is greater than or equal to the first threshold, charging will be stopped. During the sleep period of the user of the electronic device, closing the applications that are not closed on the electronic device can avoid the power consumption of the electronic device in the standby state. Too high consumes too much power.
在一种可能的实现方式中,根据睡眠状态调整电子设备的充电模式还包括:当确定到达重启充电时间时,以第二充电模式充电,重启充电时间早于电子设备的用户的醒来时间。由于电子设备在用户睡眠期间以电池电量为电量阈值的状态放置,在用户醒来前,启动第二充电模式充电,快速提高电子设备的电池电量,以满足用户醒来后的使用需求。In a possible implementation, adjusting the charging mode of the electronic device according to the sleep state further includes: when it is determined that the restart charging time is reached, charging in the second charging mode, and the restart charging time is earlier than the wake-up time of the user of the electronic device. Since the electronic device is placed with the battery power as the power threshold during the user's sleep, before the user wakes up, the second charging mode is activated to quickly increase the battery power of the electronic device to meet the user's usage needs after waking up.
在一种可能的实现方式中,当确定到达重启充电时间时,以第二充电模式充电之 前,还包括:确定电子设备的用户的醒来时间;根据电子设备的电池电量确定以第二充电模式充电至满电状态所需的充电时长;将醒来时间减去充电时长确定为重启充电时间。根据电子设备充电至满电状态所需的时长以及醒来时间确定重启充电时间,这样可以在用户醒来时将电子设备充电至满电状态。In a possible implementation, when it is determined that the restart charging time is reached, charging in the second charging mode Before, it also includes: determining the wake-up time of the user of the electronic device; determining the charging time required to charge to a fully charged state in the second charging mode based on the battery power of the electronic device; determining the restart charging by subtracting the charging time from the waking time time. The restart charging time is determined based on the time it takes for the electronic device to charge to a fully charged state and the time it wakes up, so that the electronic device can be charged to a fully charged state when the user wakes up.
在一种可能的实现方式中,确定电子设备的用户的醒来时间包括:根据当前日期以及预先训练好的睡眠习惯模型确定电子设备的用户的醒来时间。In a possible implementation, determining the wake-up time of the user of the electronic device includes: determining the wake-up time of the user of the electronic device based on the current date and a pre-trained sleep habit model.
在一种可能的实现方式中,当电子设备存储有起床闹钟时间时,确定电子设备的用户的醒来时间包括:将电子设备存储的起床闹钟时间确定为用户的醒来时间。In a possible implementation, when the electronic device stores a wake-up alarm time, determining the wake-up time of the user of the electronic device includes: determining the wake-up alarm time stored in the electronic device as the user's wake-up time.
在一种可能的实现方式中,在根据当前日期以及预先训练好的睡眠习惯模型确定用户的醒来时间之前,方法包括:获取电子设备的用户的睡眠数据,睡眠数据包括时间以及时间对应的睡眠状态;根据睡眠数据对睡眠习惯模型进行训练,以得到训练好的睡眠习惯模型。In a possible implementation, before determining the user's wake-up time based on the current date and a pre-trained sleep habit model, the method includes: obtaining sleep data of the user of the electronic device, where the sleep data includes the time and the sleep corresponding to the time. status; train the sleep habit model based on sleep data to obtain a trained sleep habit model.
在一种可能的实现方式中,在根据当前日期以及预先训练好的睡眠习惯模型确定用户的醒来时间之前,方法包括:获取电子设备的用户的睡眠数据,睡眠数据包括时间以及时间对应的睡眠状态;发送睡眠数据至服务器;获取服务器根据睡眠数据训练好的睡眠习惯模型。In a possible implementation, before determining the user's wake-up time based on the current date and a pre-trained sleep habit model, the method includes: obtaining sleep data of the user of the electronic device, where the sleep data includes the time and the sleep corresponding to the time. status; send sleep data to the server; obtain the sleep habit model trained by the server based on the sleep data.
第二方面,本申请实施例提供了一种充电控制装置,充电控制装置包括检测单元、获取单元与充电单元,检测单元用于对电子设备进行充电检测;获取单元用于检测到电子设备接入充电适配器后,获取与电子设备建立通信连接的至少一个智能设备的监测参数,至少一个智能设备包括环境参数监测设备、穿戴设备,监测参数包括电子设备的用户所在环境的环境参数、电子设备的用户的人体生理参数;充电单元用于根据监测参数确定用户的作息状态,根据用户的作息状态调整电子设备的充电速度。In the second aspect, embodiments of the present application provide a charging control device. The charging control device includes a detection unit, an acquisition unit and a charging unit. The detection unit is used to detect charging of electronic equipment; the acquisition unit is used to detect that the electronic equipment is connected. After charging the adapter, obtain the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device. The at least one smart device includes an environmental parameter monitoring device and a wearable device. The monitoring parameters include environmental parameters of the environment where the user of the electronic device is located, and the user of the electronic device. Human body physiological parameters; the charging unit is used to determine the user's work and rest status based on the monitoring parameters, and adjust the charging speed of the electronic device according to the user's work and rest status.
在一种可能的实现方式中,充电单元用于当检测到电子设备接入充电适配器后,将电子设备设置为第一充电模式,第一充电模式的充电速度为正常充电速度;获取单元用于周期性获取与所述电子设备建立通信连接的至少一个智能设备的监测参数。In a possible implementation, the charging unit is configured to set the electronic device to a first charging mode after detecting that the electronic device is connected to the charging adapter, and the charging speed of the first charging mode is a normal charging speed; the obtaining unit is configured to Monitoring parameters of at least one smart device that establishes a communication connection with the electronic device are periodically acquired.
在一种可能的实现方式中,作息状态包括睡眠状态,充电单元用于根据监测参数确定电子设备的用户的睡眠状态;其中,电子设备存储有环境参数和/或人体生理参数与用户的睡眠状态的对应关系。In a possible implementation, the work and rest state includes a sleep state, and the charging unit is used to determine the sleep state of the user of the electronic device based on the monitoring parameters; wherein the electronic device stores environmental parameters and/or human physiological parameters and the user's sleep state. corresponding relationship.
在一种可能的实现方式中,充电单元用于当根据监测参数确定电子设备的用户进入入睡阶段时,将电子设备设置为第二充电模式,直至将电子设备充电至电量阈值时,停止充电,其中第二充电模式的充电速度大于正常充电速度。In a possible implementation, the charging unit is used to set the electronic device to the second charging mode when it is determined according to the monitoring parameters that the user of the electronic device enters the sleep stage, and stops charging until the electronic device is charged to the power threshold, The charging speed of the second charging mode is greater than the normal charging speed.
在一种可能的实现方式中,在直至将电子设备充电至电量阈值时之前,充电单元还用于当根据监测参数确定电子设备的用户进入深睡阶段时,将电子设备设置为第三充电模式,第三充电模式的充电速度小于正常充电速度。In a possible implementation, until the electronic device is charged to the power threshold, the charging unit is also used to set the electronic device to the third charging mode when it is determined according to the monitoring parameters that the user of the electronic device enters the deep sleep stage. , the charging speed of the third charging mode is slower than the normal charging speed.
在一种可能的实现方式中,在将电子设备设置为第二充电模式之前,充电单元还用于确定电子设备的电量小于电量阈值。In a possible implementation, before setting the electronic device to the second charging mode, the charging unit is also used to determine that the power of the electronic device is less than the power threshold.
在一种可能的实现方式中,当确定电子设备的电池电量大于或等于第一阈值时,充电单元还用于关闭电子设备上未关闭的应用程序。In a possible implementation, when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, the charging unit is also used to close unclosed applications on the electronic device.
在一种可能的实现方式中,当确定电子设备的电池电量大于或等于第一阈值时, 充电单元还用于停止充电,并放电直至电子设备的电池电量等于电量阈值。In a possible implementation, when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, The charging unit is also used to stop charging and discharge until the battery power of the electronic device is equal to the power threshold.
在一种可能的实现方式中,充电单元还用于当确定到达重启充电时间时,以第二充电模式充电,重启充电时间早于用户的醒来时间。In a possible implementation, the charging unit is also used to charge in the second charging mode when it is determined that the restart charging time is reached, and the restart charging time is earlier than the user's wake-up time.
在一种可能的实现方式中,充电单元还用于确定电子设备的用户的醒来时间;根据电子设备的电池电量确定以第二充电模式充电至满电状态所需的充电时长;将醒来时间减去充电时长确定为重启充电时间。In a possible implementation, the charging unit is also used to determine the wake-up time of the user of the electronic device; determine the charging time required to charge to a fully charged state in the second charging mode according to the battery power of the electronic device; and wake up The time minus the charging time is determined as the restart charging time.
在一种可能的实现方式中,充电单元还用于根据当前日期以及预先训练好的睡眠习惯模型确定用户的醒来时间。In a possible implementation, the charging unit is also used to determine the user's wake-up time based on the current date and a pre-trained sleep habit model.
在一种可能的实现方式中,当电子设备存储有起床闹钟时间时,在一种可能的实现方式中,充电单元还用于将电子设备存储的起床闹钟时间确定为电子设备的用户的醒来时间。In a possible implementation, when the electronic device stores a wake-up alarm time, in a possible implementation, the charging unit is also used to determine the wake-up alarm time stored in the electronic device as the wake-up time of the user of the electronic device. time.
在一种可能的实现方式中,充电单元还用于获取电子设备的用户的睡眠数据,睡眠数据包括时间以及时间对应的睡眠状态;根据睡眠数据对睡眠习惯模型进行训练,以得到训练好的睡眠习惯模型。In a possible implementation, the charging unit is also used to obtain sleep data of the user of the electronic device. The sleep data includes time and sleep status corresponding to the time; the sleep habit model is trained based on the sleep data to obtain trained sleep. Habit model.
在一种可能的实现方式中,充电单元还用于:获取电子设备的用户的睡眠数据,睡眠数据包括时间以及时间对应的睡眠状态;发送睡眠数据至服务器;获取服务器根据睡眠数据训练好的睡眠习惯模型。In a possible implementation, the charging unit is also used to: obtain the sleep data of the user of the electronic device, where the sleep data includes time and sleep state corresponding to the time; send the sleep data to the server; and obtain the sleep trained by the server based on the sleep data. Habit model.
第三方面,本申请实施例提供了一种电子设备,包括:处理器、收发装置及充电管理模块,处理器用于对电子设备进行充电检测,收发装置用于在处理器检测到电子设备接入充电适配器后获取与电子设备建立通信连接的至少一个智能设备的监测参数,其中至少一个智能设备包括环境参数监测设备、穿戴设备,监测参数包括电子设备的用户所在环境的环境参数与电子设备的用户的人体生理参数,处理器还用于根据监测参数控制充电管理模块调整电子设备的充电速度。In a third aspect, embodiments of the present application provide an electronic device, including: a processor, a transceiver device, and a charging management module. The processor is used to detect charging of the electronic device, and the transceiver device is used to detect when the processor detects that the electronic device is connected. After charging the adapter, the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device are obtained. The at least one smart device includes an environmental parameter monitoring device and a wearable device. The monitoring parameters include environmental parameters of the environment where the user of the electronic device is located and the user of the electronic device. Human body physiological parameters, the processor is also used to control the charging management module to adjust the charging speed of the electronic device based on the monitoring parameters.
第四方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行本申请实施例第一方面提供的充电控制方法的步骤。In the fourth aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium stores computer instructions. When the computer instructions are run on an electronic device, the electronic device causes the electronic device to execute the instructions provided in the first aspect of the embodiment of the present application. The steps of the charging control method.
其中,第二方面至第四方面中任一种实施方式所带来的技术效果可参见第一方面中不同实施方式所带来的技术效果,此处不再赘述。The technical effects brought by any one of the implementations of the second to fourth aspects can be found in the technical effects brought by different implementations of the first aspect, and will not be described again here.
附图说明Description of the drawings
图1a为本申请实施例提供的一种应用场景示意图;Figure 1a is a schematic diagram of an application scenario provided by an embodiment of the present application;
图1b为本申请实施例提供的另一种应用场景示意图;Figure 1b is a schematic diagram of another application scenario provided by the embodiment of the present application;
图2为本申请实施例提供的一种电子设备的结构示意图;Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的电子设备的软件结构框图;Figure 3 is a software structure block diagram of the electronic device provided by the embodiment of the present application;
图4为本申请实施例提供的充电控制方法的流程示意图;Figure 4 is a schematic flowchart of the charging control method provided by the embodiment of the present application;
图5为本申请实施例提供的另一种充电控制方法的流程示意图;Figure 5 is a schematic flow chart of another charging control method provided by an embodiment of the present application;
图5a为本申请实施例提供的另一种充电控制方法的流程示意图;Figure 5a is a schematic flow chart of another charging control method provided by an embodiment of the present application;
图5b为本申请实施例提供的另一种充电控制方法的流程示意图;Figure 5b is a schematic flow chart of another charging control method provided by an embodiment of the present application;
图6为本申请实施例提供的确定重启充电时间的流程示意图;Figure 6 is a schematic flowchart of determining the restart charging time provided by an embodiment of the present application;
图7为本申请实施例提供的确定醒来时间的流程示意图; Figure 7 is a schematic flowchart of determining the wake-up time provided by an embodiment of the present application;
图8为本申请实施例提供的训练得到睡眠习惯模型的流程示意图;Figure 8 is a schematic flowchart of training to obtain a sleep habit model provided by an embodiment of the present application;
图9为本申请实施例提供的获取睡眠习惯模型的流程示意图;Figure 9 is a schematic flowchart of obtaining a sleep habit model provided by an embodiment of the present application;
图10为本申请另一实施例提供的确定醒来时间的流程示意图;Figure 10 is a schematic flowchart of determining the wake-up time provided by another embodiment of the present application;
图11a为本申请实施例提供的一种用户睡眠期间充电的示意图;Figure 11a is a schematic diagram of charging during a user's sleep according to an embodiment of the present application;
图11b为本申请实施例提供的另一种用户睡眠期间充电的示意图;Figure 11b is a schematic diagram of another user charging during sleep according to an embodiment of the present application;
图12为本申请另一实施例提供的S242的一种子步骤示意图;Figure 12 is a schematic diagram of a sub-step of S242 provided by another embodiment of the present application;
图13为本申请实施例提供的另一种充电控制方法的流程示意图;Figure 13 is a schematic flow chart of another charging control method provided by an embodiment of the present application;
图14为本申请实施例提供的充电控制装置的功能模块示意图;Figure 14 is a schematic diagram of the functional modules of the charging control device provided by the embodiment of the present application;
图15为本申请另一实施例提供的电子设备的示意图。Figure 15 is a schematic diagram of an electronic device provided by another embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
用户在对不同电子设备进行充电时的充电习惯不同,一些电子设备的续航时间较长或者使用频率较低,这样的电子设备充电的频率也会较低,例如,蓝牙耳机、智能手环或手表;另一些电子设备的使用频率较高,例如手机、平板电脑等,这样的设备需要经常充电,不同的用户的充电习惯不同,不同的充电习惯可能会对电子设备电池的使用寿命有影响。Users have different charging habits when charging different electronic devices. Some electronic devices have a longer battery life or are used less frequently. Such electronic devices will also be charged less frequently, such as Bluetooth headsets, smart bracelets or watches. ; Other electronic devices are used more frequently, such as mobile phones, tablets, etc. Such devices need to be charged frequently. Different users have different charging habits. Different charging habits may have an impact on the service life of the batteries of electronic devices.
以手机为例,部分手机用户会选择在睡眠过程中对手机进行充电,这样在用户睡眠结束时手机可以充电至满电状态。Taking mobile phones as an example, some mobile phone users will choose to charge their mobile phones during sleep, so that the mobile phones can be charged to a fully charged state when the user's sleep ends.
一般情况下,人的睡眠状态包括入睡阶段与深睡阶段,其中入睡阶段是睡眠的开始,在这一阶段人的脑波开始变化,频率渐缓,呼吸、心跳等速度相对(深睡阶段)较快,会有较为频繁的翻身动作,人在这一睡眠阶段比较容易醒来。当由入睡阶段进入深睡阶段后,呼吸、心跳等速度会降低,翻身频率也会减小,人在深睡阶段一般不容易醒来。Under normal circumstances, a person's sleep state includes the falling asleep stage and the deep sleep stage. The falling asleep stage is the beginning of sleep. At this stage, the person's brain waves begin to change, the frequency gradually slows down, and the breathing, heartbeat and other speeds are relative (deep sleep stage) It is faster and there will be more frequent turning movements, and it is easier for people to wake up in this sleep stage. When entering the deep sleep stage from the falling asleep stage, the speed of breathing, heartbeat, etc. will decrease, and the frequency of turning over will also decrease. It is generally difficult for people to wake up in the deep sleep stage.
深睡阶段可以分为多个睡眠周期,一般情况下,国际上通用的方法是根据睡眠过程中脑电表现,眼球运动情况和肌肉张力的变化将睡眠分为两种不同的时期,即非快速眼动期和快速眼动期,非快速眼动期和快速眼动期交替各出现一次为一个睡眠周期,一般情况下,人的深睡阶段大约有4~6个睡眠周期,人一般会在深睡阶段的最后一个睡眠周期结束时醒来,其中一个睡眠周期约90~120分钟,因此人的睡眠长度约6~8小时。此外,由于生活、工作习惯等影响,即使入睡时间稍有差异,人的睡眠醒来时间是比较接近的,例如在夜间23:30入睡,或者夜间23:50入睡,可能都会在早晨07:30醒来,在入睡时间有差异的情形下,醒来时间的变化较小,也即是说,在深睡阶段的睡眠周期数量可能会随着入睡时间变化,若入睡时间较早,那么深睡阶段的睡眠周期数量可能会较多,例如4个睡眠周期;若入睡时间较晚,那么深睡阶段的睡眠周期数量可能会减少,例如3个睡眠周期。The deep sleep stage can be divided into multiple sleep cycles. Generally speaking, the internationally accepted method is to divide sleep into two different periods based on changes in brain electrical performance, eye movements and muscle tension during sleep, namely non-rapid sleep. The eye movement period and the rapid eye movement period, the non-rapid eye movement period and the rapid eye movement period each occur alternately once each as a sleep cycle. Generally speaking, there are about 4 to 6 sleep cycles in the deep sleep stage of a person. Wake up at the end of the last sleep cycle of the deep sleep stage. One sleep cycle is about 90 to 120 minutes, so the length of a person's sleep is about 6 to 8 hours. In addition, due to the influence of life and work habits, even if the time to fall asleep is slightly different, people's sleep and wake-up times are relatively close. For example, if you fall asleep at 23:30 at night, or fall asleep at 23:50 at night, you may fall asleep at 07:30 in the morning. When waking up, when the time to fall asleep is different, the change in wake-up time is small. That is to say, the number of sleep cycles in the deep sleep stage may change with the time to fall asleep. If the time to fall asleep is earlier, then the number of sleep cycles in the deep sleep stage may change. The number of sleep cycles in the deep sleep stage may be larger, such as 4 sleep cycles; if the sleep time is later, the number of sleep cycles in the deep sleep stage may be reduced, such as 3 sleep cycles.
由于睡眠时间较长,在用户睡眠期间对手机进行充电时,若电池的电量充满后用 户没有及时将手机与充电适配器断开连接,会导致手机在满电状态持续充电,会影响手机电池的使用寿命。Due to the long sleep time, when the user charges the mobile phone during sleep, if the battery is fully charged before using If the user fails to disconnect the mobile phone from the charging adapter in time, the mobile phone will continue to charge in a fully charged state, which will affect the service life of the mobile phone battery.
部分手机可以在充满电后自行断开与充电适配器的连接,但随着充电技术的发展,快充等充电模式下,充电速度或充电功率的增长使得手机充电达到满电状态所需的充电时间缩短,在用户睡眠期间对手机进行充电时,会使手机长时间以满电状态放置,也会导致手机的电池产生容量降低或者使用寿命缩短等问题。Some mobile phones can disconnect from the charging adapter on their own after being fully charged. However, with the development of charging technology, the increase in charging speed or charging power in charging modes such as fast charging makes the charging time required for the mobile phone to reach full power. Shortening, when the user charges the mobile phone while sleeping, the mobile phone will be left in a fully charged state for a long time, which will also lead to problems such as reduced capacity or shortened service life of the mobile phone battery.
上述示例以用户处于睡眠状态为例进行说明,用户处于睡眠状态的情况下,手机会存在较长时间的使用空挡(即在这期间用户不会使用手机),而在一些其他情况,例如长时间观看电影、电视剧,或者用户专注于工作、学习等情况下,也会存在较长时间的使用空挡,若用户在上述情况下对手机进行充电,同样也会存在手机长时间以满电状态放置,电池产生容量降低或者使用寿命缩短等问题。The above example takes the user in the sleeping state as an example. When the user is in the sleeping state, the mobile phone will be idle for a long time (that is, the user will not use the mobile phone during this period). In some other situations, such as long-term use of the mobile phone, When watching movies, TV series, or when the user is focused on work, study, etc., there will also be a long period of idle time. If the user charges the mobile phone under the above circumstances, the mobile phone will also be left in a fully charged state for a long time. The battery has problems such as reduced capacity or shortened service life.
为了改善因为充电习惯导致的电子设备的电池寿命缩短等问题,本申请实施例提供了一种充电控制方法,电子设备在进行充电时,可以获取与电子设备建立通信连接的至少一个智能设备的监测参数,确定用户的作息状态,根据用户的作息状态对电子设备的充电速度进行调整,例如在睡眠过程中不同睡眠阶调整电子设备的充电速度,在睡眠过程中将电子设备充电至电量阈值停止充电,在醒来前再启动充电将电子设备充电至满电状态,这样一方面避免电子设备以满电状态持续充电或者长时间以高电量状态放置,改善电子设备的电池使用寿命,另一方面能够在用户睡眠期间将电子设备充电至满电状态,不影响使用。In order to improve problems such as shortened battery life of electronic devices due to charging habits, embodiments of the present application provide a charging control method. When the electronic device is charging, the monitoring of at least one smart device that has established a communication connection with the electronic device can be obtained. Parameters determine the user's work and rest status, and adjust the charging speed of the electronic device according to the user's work and rest status. For example, adjust the charging speed of the electronic device at different sleep stages during sleep, and charge the electronic device to the power threshold during sleep to stop charging. , start charging again before waking up to charge the electronic device to a full power state. This will prevent the electronic device from being continuously charged at a full power state or left in a high power state for a long time, thereby improving the battery life of the electronic device. On the other hand, it can Charging electronic devices to full power while the user is sleeping does not affect use.
本申请实施例提供的充电控制方法应用于如图1a或图1b所示应用场景中的电子设备100,如图1a所示,该系统包括电子设备100、环境参数监测设备以及穿戴设备,其中环境参数监测设备可以是任意的具有环境参数监测功能的设备,这些环境参数监测设备可以用于采集或者监测电子设备100的用户所处环境的环境参数,例如其可以是传感器,如亮度传感器、湿度传感器、温度传感器、声音传感器等;其还可以是具备各类传感器的家用电器,例如电视机、空调、音响、电灯、摄像头等;又或者,环境参数监测设备还可以是具备环境参数监测功能的物联网(internet of things,IoT)设备,例如可以用于监测用户移动轨迹的鞋子,或者可以根据用户指令进行打开或关闭的电动窗帘、或者还可以是智能门锁等。基于上述的环境参数监测设备,可以监测地理位置、室内温度、湿度,光照度或者亮度、空调/风扇等的开关状态,温度,是否设置睡眠模式、电影模式、工作模式等等,摄像头捕捉的视频图像信息,门窗等的开关状态,拖鞋的运动轨迹,用户所处位置等环境参数。The charging control method provided by the embodiment of the present application is applied to the electronic device 100 in the application scenario as shown in Figure 1a or Figure 1b. As shown in Figure 1a, the system includes an electronic device 100, an environmental parameter monitoring device and a wearable device, where the environment The parameter monitoring device can be any device with an environmental parameter monitoring function. These environmental parameter monitoring devices can be used to collect or monitor environmental parameters of the environment where the user of the electronic device 100 is located. For example, they can be sensors, such as brightness sensors and humidity sensors. , temperature sensors, sound sensors, etc.; it can also be household appliances equipped with various sensors, such as televisions, air conditioners, stereos, lights, cameras, etc.; or, the environmental parameter monitoring equipment can also be objects with environmental parameter monitoring functions. Internet of things (IoT) devices, such as shoes that can be used to monitor user movement, or electric curtains that can be opened or closed according to user instructions, or smart door locks, etc. Based on the above environmental parameter monitoring equipment, it can monitor the geographical location, indoor temperature, humidity, illumination or brightness, the switch status of air conditioners/fans, temperature, whether to set sleep mode, movie mode, working mode, etc., and video images captured by the camera Information, the opening and closing status of doors and windows, the movement trajectory of slippers, the user's location and other environmental parameters.
穿戴设备可以是手环、手表或其他的穿戴设备,穿戴设备可以用于监测电子设备100的用户的人体生理参数,例如体温、心率、呼吸频率、运动情况(例如轻微运动、不动、较大运动等)、睡眠情况、血压、血氧饱和度、腕动加速度、脑电图、眼电图及肌电图等。The wearable device may be a bracelet, a watch, or other wearable devices, and the wearable device may be used to monitor the human body physiological parameters of the user of the electronic device 100, such as body temperature, heart rate, respiratory rate, and movement conditions (such as slight movement, immobility, large movements, etc.) exercise, etc.), sleep status, blood pressure, blood oxygen saturation, wrist acceleration, electroencephalogram, electrooculogram and electromyogram, etc.
需要说明的是,图1a、图1b仅示出了部分环境参数监测设备与部分穿戴设备的示意图,并非对环境参数监测设备与穿戴设备的限定,本申请实施例提供的环境参数监测设备与穿戴设备并非局限于图1a与图1b中示出的内容。It should be noted that Figure 1a and Figure 1b only show schematic diagrams of part of the environmental parameter monitoring equipment and part of the wearable equipment, and do not limit the environmental parameter monitoring equipment and the wearable equipment. The environmental parameter monitoring equipment and the wearable equipment provided by the embodiments of the present application The device is not limited to what is shown in Figures 1a and 1b.
电子设备100可以是手机、平板电脑等终端设备,电子设备100可以获取与电子 设备建立通信连接的环境参数监测设备监测的电子设备100的用户所在环境的环境参数,或者与电子设备建立通信连接的获取穿戴设备监测的电子设备100的用户的人体生理参数,从而根据环境参数和/或人体生理参数确定用户的作息状态,例如用户处于睡眠状态、或者处于看电影/电视的状态、或者处于工作(专注)状态等,根据用户的作息状态对电子设备100的充电速度进行调整。The electronic device 100 can be a terminal device such as a mobile phone or a tablet computer, and the electronic device 100 can obtain information related to the electronic device. The device establishes a communication connection to monitor the environmental parameters of the environment where the user of the electronic device 100 is monitored by the device, or establishes a communication connection with the electronic device to obtain the human body physiological parameters of the user of the electronic device 100 monitored by the wearable device, thereby according to the environmental parameters and / Or the physiological parameters of the human body determine the user's work and rest state, for example, the user is in a sleeping state, or watching movies/TV, or working (concentrating), etc., and the charging speed of the electronic device 100 is adjusted according to the user's work and rest state.
在一种可能的方式中,如图1a所示,电子设备100可以与上述的环境参数监测设备和穿戴设备互联,从而可以获取环境参数监测设备监测的环境参数,或者获取穿戴设备监测的人体生理参数,或者向上述的环境参数监测设备、穿戴设备发送控制指令控制其调整工作状态或工作模式。In a possible way, as shown in Figure 1a, the electronic device 100 can be interconnected with the above-mentioned environmental parameter monitoring device and wearable device, so as to obtain the environmental parameters monitored by the environmental parameter monitoring device, or obtain the human physiology monitored by the wearable device. parameters, or send control instructions to the above-mentioned environmental parameter monitoring equipment and wearable devices to control their adjustment of working status or working mode.
在另一种可能的实现方式中,如图1b所示,电子设备100可以通过至少一台云服务器与上述的环境参数监测设备和穿戴设备通信连接,从而可以获取环境参数监测设备监测的环境参数,或者获取穿戴设备监测的人体生理参数,或者向上述的环境参数监测设备、穿戴设备发送控制指令控制其调整工作状态或工作模式。In another possible implementation, as shown in Figure 1b, the electronic device 100 can communicate with the above-mentioned environmental parameter monitoring device and wearable device through at least one cloud server, so as to obtain the environmental parameters monitored by the environmental parameter monitoring device. , or obtain the human body physiological parameters monitored by the wearable device, or send control instructions to the above-mentioned environmental parameter monitoring equipment and wearable devices to control their adjustment of working status or working mode.
在一些其他可能的实现方式中,电子设备100可以与上述的至少一个智能设备共享同一个用户账号,这样电子设备100可以根据至少一个智能设备的监测参数确定用户的作息状态,进而调整电子设备100的充电速度。In some other possible implementations, the electronic device 100 can share the same user account with at least one of the above-mentioned smart devices, so that the electronic device 100 can determine the user's work and rest status based on the monitoring parameters of the at least one smart device, and then adjust the electronic device 100 charging speed.
请参考图2,为本申请实施例提供的一种电子设备100的结构示意图。下面以电子设备100为手机为例,说明本申请实施所应用的一种电子设备100的结构示意图。请参阅图2,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。Please refer to FIG. 2 , which is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. Taking the electronic device 100 as a mobile phone as an example, a schematic structural diagram of an electronic device 100 used in the implementation of the present application will be described below. Referring to Figure 2, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
其中,上述传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器和骨传导传感器等传感器。The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and other sensors.
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 . In other embodiments, the electronic device 100 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait. Among them, different processing units can be independent devices or integrated in one or more processors.
控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。 The controller may be the nerve center and command center of the electronic device 100 . The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口、Lighting接口等。USB接口130可以用于连接充电适配器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, a Lighting interface, etc. The USB interface 130 can be used to connect a charging adapter to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices.
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in this embodiment are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电适配器接收充电输入。其中,充电适配器可以是无线充电适配器,也可以是有线充电适配器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电适配器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charging adapter. The charging adapter may be a wireless charging adapter or a wired charging adapter. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charging adapter through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
其中,在充电适配器具备相应功能的情况下,充电管理模块140可以用于调整电子设备100的充电模式或者充电速度,例如,充电管理模块140可以调整电子设备100的充电模式为第一充电模式,第一充电模式的充电速度为正常充电速度;充电管理模块140还可以调整电子设备100的充电模式为第二充电模式,第二充电模式下的电子设备100充电速度大于第一充电模式的充电速度,例如可以是快充模式,充电效率快,可以快速将电子设备100充电至满电状态;或者,充电管理模块140还可以调整电子设备100的充电模式为第三充电模式,第三充电模式下的电子设备100充电速度小于第一充电模式的充电速度,例如可以是慢充模式,充电速度较慢。Wherein, when the charging adapter has corresponding functions, the charging management module 140 can be used to adjust the charging mode or charging speed of the electronic device 100. For example, the charging management module 140 can adjust the charging mode of the electronic device 100 to the first charging mode, The charging speed of the first charging mode is the normal charging speed; the charging management module 140 can also adjust the charging mode of the electronic device 100 to the second charging mode. The charging speed of the electronic device 100 in the second charging mode is greater than the charging speed of the first charging mode. , for example, it can be a fast charging mode, which has fast charging efficiency and can quickly charge the electronic device 100 to a fully charged state; or the charging management module 140 can also adjust the charging mode of the electronic device 100 to the third charging mode. In the third charging mode, The charging speed of the electronic device 100 is lower than the charging speed in the first charging mode. For example, it may be a slow charging mode, in which the charging speed is slower.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。在一些实施例中,电子设备 100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor. In some embodiments, the electronic device The antenna 1 of 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在电子设备100上的包括WLAN(如(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。The wireless communication module 160 can provide applications on the electronic device 100 including WLAN (such as (wireless fidelity, Wi-Fi) network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation ( Frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。该显示屏194包括显示面板。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like. The ISP is used to process the data fed back by the camera 193. Camera 193 is used to capture still images or video. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,内部存储器121可以包括存储程序区和存储数据区。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 . For example, in the embodiment of the present application, the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 can include a program storage area and a data storage area.
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播 放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Among them, the stored program area can store the operating system and at least one application program required for the function (such as sound player). playback function, image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
图3是本申请实施例的电子设备100的软件结构框图。FIG. 3 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 3, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器、机器学习、睡眠识别服务等。As shown in Figure 3, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, machine learning, sleep recognition service, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。 The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
机器学习服务可以对用户的睡眠习惯进行学习,该服务首先学习用户过去一段时间的睡眠,根据用户的每一次睡眠的入睡、深睡、醒来的时间点进行学习,学习用户在深睡阶段的多个睡眠周期,从而可以根据用户的睡眠习惯对用户的醒来时间进行预测。The machine learning service can learn the user's sleeping habits. The service first learns the user's sleep in the past period of time, and learns the user's sleep habits in the deep sleep stage based on the time points of the user's falling asleep, deep sleep, and waking up in each sleep. Multiple sleep cycles so that the user's wake-up time can be predicted based on the user's sleeping habits.
睡眠识别服务可以根据智能设备的监测参数识别用户的睡眠状态,例如根据环境参数监测设备监测的环境参数(例如亮度等)以及穿戴设备监测的人体生理参数(例如心率、呼吸频率、体温、动作等)识别用户的睡眠状态,例如入睡、深睡、醒来等睡眠状态。The sleep recognition service can identify the user's sleep state based on the monitoring parameters of the smart device, such as environmental parameters monitored by the environmental parameter monitoring device (such as brightness, etc.) and human physiological parameters monitored by the wearable device (such as heart rate, respiratory rate, body temperature, movement, etc.) )Identifies the user's sleep state, such as falling asleep, deep sleep, waking up, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
2D图形引擎是2D绘图的绘图引擎。内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,充电驱动。2D Graphics Engine is a drawing engine for 2D drawing. The kernel layer is the layer between hardware and software. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver, and charging driver.
本申请实施例中,充电驱动可以调节电子设备100的充电速度,例如通过调整电子设备100的充电模式在第一充电模式~第三充电模式之间切换,以调整电子设备100的充电速度。In the embodiment of the present application, the charging driver can adjust the charging speed of the electronic device 100, for example, by adjusting the charging mode of the electronic device 100 to switch between the first charging mode and the third charging mode to adjust the charging speed of the electronic device 100.
下面以电子设备具有如图2所示的硬件结构为例,对本申请实施例提供的充电控制方法进行介绍。 Taking the electronic device having the hardware structure as shown in Figure 2 as an example, the charging control method provided by the embodiment of the present application is introduced below.
首先,对电子设备100进行充电检测,检测电子设备100是否接入充电适配器,当检测到电子设备100连接充电适配器后,获取与电子设备100建立通信连接的至少一个智能设备的监测参数,至少一个智能设备包括环境参数监测设备、穿戴设备,其中监测参数包括电子设备的用户所在环境的环境参数和电子设备的用户的人体生理参数,然后根据监测参数确定电子设备的用户的作息状态,根据用户的作息状态调整电子设备100的充电速度,以用户在睡眠期间进行充电为例,在入睡阶段,用户容易醒来,以充电速度较快的第二充电模式进行充电,在深睡阶段,用户不易醒来,充电至电量阈值后停止充电,直至达到重启充电时间后再次以第二充电模式将电子设备充电至满电状态。First, charging detection is performed on the electronic device 100 to detect whether the electronic device 100 is connected to the charging adapter. When it is detected that the electronic device 100 is connected to the charging adapter, the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device 100 are obtained. At least one Intelligent devices include environmental parameter monitoring equipment and wearable devices. The monitoring parameters include environmental parameters of the environment where the user of the electronic device is located and human physiological parameters of the user of the electronic device. Then, the work and rest status of the user of the electronic device is determined based on the monitoring parameters. According to the user's The work and rest state adjusts the charging speed of the electronic device 100. Take the user charging during sleep as an example. During the sleep stage, the user easily wakes up and charges in the second charging mode with a faster charging speed. During the deep sleep stage, the user does not easily wake up. After charging to the battery threshold, charging is stopped until the restart charging time is reached, and then the electronic device is charged to a fully charged state in the second charging mode.
下面结合示例,对本申请实施例提供的充电控制方法进行详细说明,示例性的,请参阅图4,本申请实施例提供的充电控制方法包括:The charging control method provided by the embodiment of the present application will be described in detail below with reference to examples. For example, please refer to Figure 4. The charging control method provided by the embodiment of the present application includes:
S210:对电子设备进行充电检测。S210: Perform charging detection on electronic devices.
S220:检测到电子设备接入充电适配器后,将电子设备设置为第一充电模式。S220: After detecting that the electronic device is connected to the charging adapter, set the electronic device to the first charging mode.
当检测到电子设备100接入充电适配器后以第一充电模式进行充电,其中第一充电模式为正常充电模式,或者为电源适配器与电子设备连接后默认的充电模式,例如,充电适配器与电子设备100的默认充电模式为快充模式,那么第一充电模式则为快充模式;若充电适配器与电子设备100的默认充电模式为慢充模式,则第一充电模式为慢充模式。When it is detected that the electronic device 100 is connected to the charging adapter, it is charged in the first charging mode, where the first charging mode is the normal charging mode, or the default charging mode after the power adapter is connected to the electronic device, for example, the charging adapter and the electronic device If the default charging mode of the electronic device 100 is the fast charging mode, then the first charging mode is the fast charging mode; if the default charging mode of the charging adapter and the electronic device 100 is the slow charging mode, then the first charging mode is the slow charging mode.
S230:周期性获取与电子设备建立通信连接的至少一个智能设备的监测参数。S230: Periodically obtain monitoring parameters of at least one smart device that establishes a communication connection with the electronic device.
周期性获取与电子设备100建立通信连接的至少一个智能设备的监测参数,其中智能设备包括环境参数监测设备、穿戴设备,环境参数监测设备监测电子设备100的用户所在环境的环境参数,电子设备100可以获取环境参数监测设备监测的环境参数,例如电子设备100可以通过无线通信(wifi、蓝牙、红外线)等方式与环境参数监测设备通信连接,进而获取环境参数监测设备的环境监测参数;或者,环境参数监测设备可以与一服务器通信连接,或者环境参数检测设备与电子设备100使用相同的或者相关联的用户账号等;环境参数监测设备可以将环境监测参数发送至服务器,电子设备100可以从服务器获取上述环境监测参数。Periodically obtain monitoring parameters of at least one smart device that establishes a communication connection with the electronic device 100, where the smart device includes an environmental parameter monitoring device and a wearable device. The environmental parameter monitoring device monitors the environmental parameters of the environment where the user of the electronic device 100 is located. The electronic device 100 The environmental parameters monitored by the environmental parameter monitoring equipment can be obtained. For example, the electronic device 100 can communicate with the environmental parameter monitoring equipment through wireless communication (wifi, Bluetooth, infrared), etc., and then obtain the environmental monitoring parameters of the environmental parameter monitoring equipment; or, the environment The parameter monitoring device can be connected to a server through communication, or the environmental parameter monitoring device and the electronic device 100 can use the same or associated user account, etc.; the environmental parameter monitoring device can send the environmental monitoring parameters to the server, and the electronic device 100 can obtain them from the server. The above environmental monitoring parameters.
环境参数监测设备可以是任意的具有环境参数监测功能的设备,例如,环境参数监测设备可以是各类传感器,例如亮度传感器、温度传感器、声音传感器等,其还可以是具有各类传感器的家用电器,例如电灯、电视、电脑、音响等;环境参数监测设备还可以是其他的具备环境参数监测功能的物联网(internet of things,IoT)设备。The environmental parameter monitoring device can be any device with an environmental parameter monitoring function. For example, the environmental parameter monitoring device can be various types of sensors, such as brightness sensors, temperature sensors, sound sensors, etc. It can also be household appliances with various types of sensors. , such as lights, televisions, computers, audio, etc.; the environmental parameter monitoring equipment can also be other Internet of Things (IoT) equipment with environmental parameter monitoring functions.
穿戴设备可以用于监测电子设备的用户的人体生理参数,例如:体温、心率、睡眠、运动轨迹等;穿戴设备可以与电子设备通信连接,从而电子设备100可以获取电子设备监测的人体生理参数;在另一种实现方式中,穿戴设备可以与一服务器通信连接,或者穿戴设备与电子设备100使用相同的或者相关联的用户账号等;穿戴设备可以将监测的人体生理参数发送至服务器,从而电子设备100可以从服务器获取穿戴设备监测的人体生理参数。The wearable device can be used to monitor the human body physiological parameters of the user of the electronic device, such as: body temperature, heart rate, sleep, movement trajectory, etc.; the wearable device can be communicated and connected with the electronic device, so that the electronic device 100 can obtain the human body physiological parameters monitored by the electronic device; In another implementation, the wearable device can communicate with a server, or the wearable device and the electronic device 100 use the same or associated user account, etc.; the wearable device can send the monitored human physiological parameters to the server, so that the electronic device 100 can The device 100 can obtain the human body physiological parameters monitored by the wearable device from the server.
在一些可能的实现方式中,穿戴设备除了可以用于监测人体生理参数之外,还可以用于监测一些环境参数;环境参数监测设备除了用于监测环境参数之外,也可以用 于监测一些人体生理参数(例如体温)。In some possible implementations, in addition to monitoring human physiological parameters, wearable devices can also be used to monitor some environmental parameters; in addition to monitoring environmental parameters, the environmental parameter monitoring equipment can also be used to monitor environmental parameters. Used to monitor some human physiological parameters (such as body temperature).
示例性的,为了降低能耗,电子设备可以在当前时间达到预设时间后再周期性获取监测参数,以用户在睡眠期间进行充电为例,预设时间可以是预先设定的进行睡眠状态监测的起始时间,可以根据用户的睡眠习惯不同进行设定,例如用户一般在20:00左右开始睡觉,那么该预设时间可以设置为20:00,如果用户睡眠时间较晚,可以设置为22:00;或者用户的工作生活习惯为夜间工作,白天睡觉,那么该预设时间可以设置为早上08:00。For example, in order to reduce energy consumption, the electronic device can periodically obtain monitoring parameters after the current time reaches a preset time. Taking the user to charge during sleep as an example, the preset time can be preset for sleep state monitoring. The starting time can be set according to the user's sleeping habits. For example, users generally start to sleep around 20:00, then the preset time can be set to 20:00. If the user sleeps later, it can be set to 22 :00; or the user's working and living habits are to work at night and sleep during the day, then the preset time can be set to 08:00 in the morning.
S240:根据监测参数确定用户的作息状态。S240: Determine the user's work and rest status according to the monitoring parameters.
其中监测参数(包括环境参数、人体生理参数)可以用于确定用户的作息状态,例如睡眠状态、工作状态、或者处于观看电视、电影的状态(或者称为观影状态)等等。The monitoring parameters (including environmental parameters and human physiological parameters) can be used to determine the user's work and rest status, such as sleep status, working status, or the status of watching TV or movies (or called movie viewing status), etc.
在电子设备100的用户处于不同的作息状态下,用户所处的环境的环境参数以及用户的人体生理参数会呈现不同的规律,例如在睡眠状态或者观影状态,室内灯光亮度较低或者关闭灯光,或者用户会将室内灯光设置为“睡眠模式”或者“观影模式”等等,此外,在用户处于睡眠状态与非睡眠状态下,心率等人体生理参数有明显的差异,因此可以根据监测参数确定用户的作息状态。When the user of the electronic device 100 is in different work and rest states, the environmental parameters of the user's environment and the user's human body physiological parameters will show different patterns. For example, in the sleeping state or the viewing state, the indoor light brightness is low or the lights are turned off. , or the user will set the indoor lighting to "sleep mode" or "viewing mode", etc. In addition, there are obvious differences in human physiological parameters such as heart rate when the user is in a sleeping state and a non-sleeping state, so the monitoring parameters can be Determine the user's work and rest status.
S250:根据用户的作息状态调整电子设备的充电速度。S250: Adjust the charging speed of electronic devices according to the user's work and rest status.
用户在不同的作息状态对电子设备100的使用需求不同,可能的充电时长也不同,在充电时长较短,且存在使用需求的情况下,需要以较快的充电速度对电子设备100进行充电,例如在午睡状态、或者工作间的小憩等,在这些情况下,用户可能会存在使用电子设备100的需求,故应以较快的充电速度(例如,可以使用快充模式)进行充电。Users have different needs for the electronic device 100 in different work and rest states, and the possible charging time is also different. When the charging time is short and there is a demand for use, the electronic device 100 needs to be charged at a faster charging speed. For example, when taking a nap or taking a nap at work, the user may need to use the electronic device 100 under these circumstances, so the electronic device 100 should be charged at a faster charging speed (for example, a fast charging mode can be used).
而在另一些情况下,充电时间较长,使用需求较小的情况下,则可以根据用户的作息习惯对电子设备100的充电速度进行调整,降低充电速度,避免电子设备100充电至高电量状态或者满电量状态后,以高电量状态或者满电量状态放置;或者在充满电后仍然持续充电等情况。例如,用户在夜间睡眠期间,充电时间较长,如果电子设备100的充电速度较快,很快充电至满电状态,那么在用户睡眠余下的时间段里,电子设备100会一直以满电状态放置,直至用户醒来后才会存在使用需求,这样会影响电子设备100的电池使用寿命。In other cases, when the charging time is long and the usage demand is small, the charging speed of the electronic device 100 can be adjusted according to the user's work and rest habits, reducing the charging speed to avoid charging the electronic device 100 to a high power state or After the battery is fully charged, it is placed in a high battery state or a full battery state; or it continues to charge after being fully charged. For example, when the user is sleeping at night, the charging time is long. If the electronic device 100 charges quickly and reaches a fully charged state quickly, the electronic device 100 will remain in a fully charged state during the remaining time of the user's sleep. Leaving it until the user wakes up will not require use, which will affect the battery life of the electronic device 100 .
又例如,用户在9:00~17:00期间处于工作模式,在这期间对电子设备100进行充电时,同样会存在与睡眠期间充电同样的问题,因此需要根据用户的作息状态调整电子设备100的充电速度,以减小因为充电习惯对电子设备100的电池的损耗。For another example, if the user is in the working mode from 9:00 to 17:00, when charging the electronic device 100 during this period, the same problem as charging during sleep will occur. Therefore, the electronic device 100 needs to be adjusted according to the user's work and rest status. The charging speed is to reduce the loss of the battery of the electronic device 100 due to charging habits.
示例性的,以睡眠期间进行充电为例,用户的作息状态包括睡眠状态,电子设备100可以根据监测参数确定用户是否开始睡眠,是否入睡或者是否深睡等,然后依据睡眠状态对电子设备100的充电模式进行调整,在这种情况下,参阅图5,本申请实施例提供的充电控制方法包括:For example, taking charging during sleep as an example, the user's work and rest state includes the sleep state. The electronic device 100 can determine whether the user starts to sleep, falls asleep, or is in deep sleep, etc. based on the monitoring parameters, and then performs the function of the electronic device 100 based on the sleep state. The charging mode is adjusted. In this case, referring to Figure 5, the charging control method provided by the embodiment of the present application includes:
S240a:根据监测参数确定用户的睡眠状态。S240a: Determine the user's sleep state according to the monitoring parameters.
根据监测参数确定电子设备的用户的睡眠状态;其中,所述电子设备存储有所述环境参数和/或所述人体生理参数与所述用户的睡眠状态的对应关系。The sleep state of the user of the electronic device is determined according to the monitoring parameters; wherein the electronic device stores the corresponding relationship between the environmental parameters and/or the human body physiological parameters and the sleep state of the user.
例如,睡眠状态包括入睡阶段、深睡阶段,电子设备存储有环境参数和/或人体生 理参数与电子设备的用户的睡眠状态对应关系从而可以根据监测参数确定电子设备的用户的睡眠状态。For example, the sleep state includes the falling asleep stage and the deep sleep stage, and the electronic device stores environmental parameters and/or human physiological parameters. The corresponding relationship between the physical parameters and the sleep state of the user of the electronic device can be determined based on the monitoring parameters.
例如可以预先利用穿戴设备检测的用户血压、心率、呼吸频率、血氧饱和度、脑电图、眼电图、肌电图以及用户的运动数据(例如翻身等),确定出用户静息时的血压,血压,心率,呼吸频率,血氧饱和度,脑电图,眼电图,肌电图,以及轻微运动,较少运动,不动的运动幅度及频率,如果在达到睡眠检测起始时间后,例如夜间22:00(南方)以后,用户所处位置为房间床上,用户的血压,心率,呼吸频率,血氧饱和度,加速度,脑电图,眼电图,肌电图等低于静息时的数据,用户运动数据为较少运动,则可以确定用户进入入睡阶段。For example, the user's blood pressure, heart rate, respiratory rate, blood oxygen saturation, electroencephalogram, electrooculogram, electromyogram and the user's motion data (such as turning over, etc.) detected by the wearable device can be used in advance to determine the user's resting state. Blood pressure, blood pressure, heart rate, respiratory rate, blood oxygen saturation, electroencephalogram, electrooculogram, electromyogram, and the amplitude and frequency of slight movement, less movement, and immobility, if the sleep detection start time is reached Later, for example, after 22:00 at night (south), the user is located on the bed in the room, and the user's blood pressure, heart rate, respiratory rate, blood oxygen saturation, acceleration, electroencephalogram, electrooculogram, electromyogram, etc. are lower than those at rest. If the user's movement data shows less movement, it can be determined that the user has entered the sleep stage.
若用户所处位置为房间床上,室内光照弱或无光照,卧室门关闭,结合人体生理参数例如用户的血压,心率,呼吸频率,血氧饱和度,脑电图,眼电图,肌电图等低于预先确定的给定值,结合用户运动数据由较少运动变为轻微运动或不动,即可确定用户进入深睡阶段。If the user is on the bed in a room, the indoor light is weak or no light, and the bedroom door is closed, combined with human physiological parameters such as the user's blood pressure, heart rate, respiratory rate, blood oxygen saturation, electroencephalogram, electrooculogram, and electromyography When it is lower than the predetermined given value, combined with the user's movement data from less movement to slight movement or no movement, it can be determined that the user has entered the deep sleep stage.
S250a:根据用户的睡眠状态调整电子设备的充电速度。S250a: Adjust the charging speed of electronic devices according to the user's sleep state.
用户的睡眠状态不同,使用电子设备的需求可能不同,在入睡阶段,电子设备的用户可能醒来,可能会存在使用电子设备的需求,因此在用户的睡眠状态为入睡阶段时需要快速提高电子设备的电量;而若用户进入深睡阶段,短时间内醒来的可能性较小,用户使用电子设备的需求较少,在这种情况下,更多的应该从延长电子设备的电池使用寿命着手对电子设备的充电速度进行调整。Users' different sleep states may have different needs for using electronic devices. During the sleep stage, the user of the electronic device may wake up and may have a need to use the electronic device. Therefore, when the user's sleep state is in the fall asleep stage, the electronic device needs to be quickly raised. power; and if the user enters the deep sleep stage, the possibility of waking up in a short period of time is small, and the user has less need to use electronic devices. In this case, more efforts should be made to extend the battery life of the electronic device. Adjust the charging speed of electronic devices.
示例性的,结合图5a,在用户睡眠期间对电子设备100进行充电的情况下,依据用户的作息状态对电子设备的充电速度进行调整,也即根据用户的睡眠状态调整电子设备的充电速度,S250a包括:For example, with reference to Figure 5a, when the user charges the electronic device 100 during sleep, the charging speed of the electronic device is adjusted according to the user's work and rest state, that is, the charging speed of the electronic device is adjusted according to the user's sleep state, S250a includes:
S252:当根据监测参数确定用户进入入睡阶段时,将电子设备设置为第二充电模式,直至将电子设备充电至电量阈值时,停止充电,其中第二充电模式的充电速度大于正常充电速度。S252: When it is determined that the user enters the sleep stage according to the monitoring parameters, the electronic device is set to the second charging mode. When the electronic device is charged to the power threshold, charging is stopped. The charging speed of the second charging mode is greater than the normal charging speed.
入睡阶段是用户开始入眠的阶段,在这个阶段用户身体的活动减少,呼吸频率相比日常情况略有降低,开始进入睡眠状态,但在这一睡眠阶段的用户极易醒来,部分用户醒来时会使用手机等电子设备,因此在这一睡眠阶段,以快充模式进行充电,避免用户醒来时电子设备的电量不足。The falling asleep stage is the stage when the user begins to fall asleep. At this stage, the user's body activity decreases, the breathing rate is slightly lower than the daily situation, and the user begins to enter the sleep state. However, users in this sleep stage are very easy to wake up, and some users wake up. Electronic devices such as mobile phones are used when users are sleeping, so during this sleep stage, fast charging mode is used to charge to avoid insufficient power in electronic devices when the user wakes up.
以第二充电模式充电至电量阈值后停止充电,由于用户在睡眠期间对电子设备的使用需求较少,为了避免电子设备出现满电状态持续充电或者以高电量状态长时间放置等情形,充电至电量阈值后停止充电,电子设备以电池电量为电量阈值的状态放置。Charge to the power threshold in the second charging mode and then stop charging. Since users have less demand for electronic devices during sleep, in order to avoid situations such as continuous charging of electronic devices in a fully charged state or being left in a high power state for a long time, charge to Charging is stopped after the power threshold, and the electronic device is placed in a state where the battery power is the power threshold.
其中电量阈值可以根据电池的性能,或者电池厂商提供的参数进行确定,例如厂商建议在较长时间(例如,几个小时)不使用电子设备(待机状态)时,以电量A放置对电子设备电池的使用寿命影响较小,在这种情况下可以将上述电量A设置为上述的电量阈值。The power threshold can be determined based on the performance of the battery or the parameters provided by the battery manufacturer. For example, the manufacturer recommends placing the battery of the electronic device with power A when the electronic device is not used (standby state) for a long time (for example, several hours). The impact on the service life is small. In this case, the above-mentioned power A can be set to the above-mentioned power threshold.
示例性的,电量阈值优选为在长时间放置不使用的情形下对电子设备的电池使用寿命较小的电量值,例如在一种可能的实现方式中,上述电量阈值为60%~80%,当电子设备的电池电量为60%~80%时,以60%~80%这一电量状态对电子设备的电池使用寿 命影响较小,若以高电量状态(例如90%)或者满电状态放置,对电子设备的电池使用寿命影响较大,若以较低的电量状态放置,在用户需要使用电子设备时会出现电量不足等问题。For example, the power threshold is preferably a power value that has a smaller battery life of the electronic device when left unused for a long time. For example, in a possible implementation, the power threshold is 60% to 80%. When the battery power of the electronic device is 60% to 80%, the battery life of the electronic device is affected by the power state of 60% to 80%. The impact on the life of the electronic device is small. If it is placed in a high power state (such as 90%) or fully charged, it will have a greater impact on the battery life of the electronic device. If it is placed in a lower power state, it will appear when the user needs to use the electronic device. Problems such as insufficient battery.
以第二充电模式将电子设备充电至电量阈值时停止充电,即使在入睡阶段用户醒来,电子设备已经充电至上述电量阈值(例如60%~80%),若用户在入睡阶段未醒来,这样电子设备可以电量为电量阈值的状态放置,可以改善电子设备电池的使用寿命。Stop charging when the electronic device is charged to the power threshold in the second charging mode. Even if the user wakes up during the falling asleep stage, the electronic device has been charged to the above power threshold (for example, 60% to 80%). If the user does not wake up during the falling asleep stage, this will The electronic device can be placed in a state where the power is at the power threshold, which can improve the service life of the battery of the electronic device.
S257:当确定到达重启充电时间时,以第二充电模式充电,以在用户醒来时充电至满电状态。S257: When it is determined that the restart charging time is reached, charge in the second charging mode to charge to a fully charged state when the user wakes up.
电子设备充电至电量阈值后停止充电,电子设备以电量阈值的状态放置,但这种情况下,电子设备并未充电至满电状态,由于待机状态下电子设备也会存在一定的功耗,在用户醒来前电子设备的电量可能低于上述电量阈值,为了能够在用户醒来时将电子设备充电至满电状态,需要在用户醒来前重启充电,以在用户醒来前将电子设备充电至满电状态。The electronic device stops charging after charging to the power threshold. The electronic device is placed in the state of the power threshold. However, in this case, the electronic device is not charged to the full power state. Since the electronic device also consumes a certain amount of power in the standby state, in the The power of the electronic device before the user wakes up may be lower than the above power threshold. In order to charge the electronic device to a fully charged state when the user wakes up, charging needs to be restarted before the user wakes up to charge the electronic device before the user wakes up. to fully charged state.
上述示例中,在用户进入入睡阶段时以第二充电模式将电子设备100充电至电量阈值后停止充电,但在一些可能的场景中,用户在睡前将电子设备100连接充电适配器时,电子设备100的电量已经达到较高的状态,例如高于电量阈值,在这种情况下,如果继续对电子设备100进行充电,那么在用户睡眠过程中可能会很快将电子设备100充电至高电量状态或者满电状态,这样在用户睡眠过程中电子设备100可能会以较高电量状态或者满电状态放置,会影响电池的使用寿命,故可以对电子设备100的电量状态进行判断,在电量较低的情况下(例如低于电量阈值)进行充电使电子设备100的电量达到电量阈值;在电量较高的情况停止充电,并放电至电量阈值,这样可以使电子设备100在用户睡眠期间电池电量保持在电量阈值左右。In the above example, when the user enters the sleep stage, the electronic device 100 is charged in the second charging mode to the power threshold and then stops charging. However, in some possible scenarios, when the user connects the electronic device 100 to the charging adapter before going to bed, the electronic device The power of 100 has reached a high state, for example, higher than the power threshold. In this case, if the electronic device 100 continues to be charged, the electronic device 100 may be quickly charged to a high power state while the user is sleeping or Fully charged state, so that the electronic device 100 may be placed in a higher power state or a fully charged state during the user's sleep, which will affect the service life of the battery. Therefore, the power state of the electronic device 100 can be judged. When the power is low, When the battery level is lower than the battery level threshold, charge the electronic device 100 so that the battery level of the electronic device 100 reaches the battery level threshold; when the battery level is relatively high, the charging is stopped and the battery level is discharged to the battery level threshold. This allows the electronic device 100 to maintain the battery level at the level when the user is sleeping. Around the power threshold.
示例性的,参阅图5b,S250a根据睡眠状态调整电子设备的充电速度包括:For example, referring to Figure 5b, S250a adjusts the charging speed of the electronic device according to the sleep state including:
S251:当根据监测参数确定用户进入入睡阶段时,确定电子设备的电量小于电量阈值。S251: When it is determined that the user enters the sleep stage according to the monitoring parameters, it is determined that the power of the electronic device is less than the power threshold.
S252:当确定电子设备的电量小于电量阈值时,将电子设备设置为第二充电模式,直至将电子设备充电至电量阈值时,停止充电,其中第二充电模式的充电速度大于正常充电速度。S252: When it is determined that the power of the electronic device is less than the power threshold, set the electronic device to the second charging mode until the electronic device is charged to the power threshold, stop charging, wherein the charging speed of the second charging mode is greater than the normal charging speed.
S253:当确定电子设备的电量大于或等于电量阈值时,停止充电,并放电至电子设备的电池电量等于电量阈值。S253: When it is determined that the power of the electronic device is greater than or equal to the power threshold, charging is stopped and the battery is discharged until the battery power of the electronic device is equal to the power threshold.
在用户进入入睡阶段后,虽然有醒来使用电子设备100的可能性,但更多的情况是会进入深睡状态。为了避免电子设备100在用户睡眠期间电量较高或者以满电状态充电,对电子设备100的电池电量进行判断,确定其是否小于电量阈值。若小于电量阈值,由于在入睡阶段用户可能会醒来使用电子设备100,因此可以使用第二充电模式(本实施例中第二充电模式为快充模式)将其充电至电量阈值;若大于或等于电量阈值,一方面,即使用户在入睡阶段醒来,这一电量状态也足以满足用户的使用需求,若用户在入睡阶段未醒来,那么电子设备100会很快充电至高电量状态或满电量状态,在用户睡眠期间长时间放置会影响电池的使用寿命,因此在电子设备100的电量大于或等于电量阈值时,停止充电,并放电至电子设备的电池电量等于电量阈值,使电子设备100在用 户睡眠期间的电量状态保持在上述电量阈值左右,减少电子设备100处于充电状态的时间,改善电子设备100的电池寿命。After the user enters the sleep stage, although there is a possibility of waking up to use the electronic device 100, most of the time the user will enter a deep sleep state. In order to prevent the electronic device 100 from having a high power level or being charged in a fully charged state while the user is sleeping, the battery power of the electronic device 100 is determined to determine whether it is less than a power threshold. If it is less than the power threshold, since the user may wake up to use the electronic device 100 during the sleep stage, the second charging mode (the second charging mode in this embodiment is a fast charging mode) can be used to charge it to the power threshold; if it is greater than or Equal to the power threshold. On the one hand, even if the user wakes up during the sleep stage, this power state is sufficient to meet the user's usage needs. If the user does not wake up during the sleep stage, the electronic device 100 will quickly charge to a high power state or a full power state. , leaving it for a long time while the user is sleeping will affect the service life of the battery. Therefore, when the power of the electronic device 100 is greater than or equal to the power threshold, charging is stopped and discharged until the battery power of the electronic device is equal to the power threshold, so that the electronic device 100 can be used The power state of the user during sleep is maintained around the above-mentioned power threshold, which reduces the time the electronic device 100 is in the charging state and improves the battery life of the electronic device 100 .
此外,停止充电后,若电子设备100上存在用户忘记关闭的应用程序,例如用户在看视频时入睡,导致电子设备100持续播放视频,这样会导致电子设备100的电量消耗过快,为了避免出现这种情况,S250a还包括:In addition, after stopping charging, if there are applications on the electronic device 100 that the user forgets to close, for example, the user falls asleep while watching a video, causing the electronic device 100 to continue playing the video, which will cause the electronic device 100 to consume too much power. In order to avoid In this case, S250a also includes:
S254:当确定电子设备的电量大于或等于电量阈值时,关闭电子设备上未关闭的应用程序。S254: When it is determined that the power of the electronic device is greater than or equal to the power threshold, close the unclosed applications on the electronic device.
通过充电或放电的形式,令电子设备100在用户睡眠期间的电量状态维持在电量阈值,或者,由于电子设备100在待机状态也会产生功耗,因此电子设备100在用户睡眠期间的电量状态可能会维持在略低于电量阈值的情况。Through charging or discharging, the power state of the electronic device 100 is maintained at the power threshold during the user's sleep. Alternatively, since the electronic device 100 also consumes power in the standby state, the power state of the electronic device 100 during the user's sleep may be will remain slightly below the battery threshold.
为了在用户醒来前,电子设备100的电量能够满足用户的使用需求,本申请实施例提供的充电控制方法在用户睡醒前控制电子设备100重启充电,例如,执行上述S257。In order to ensure that the power of the electronic device 100 can meet the user's usage needs before the user wakes up, the charging control method provided by the embodiment of the present application controls the electronic device 100 to restart charging before the user wakes up, for example, perform the above S257.
S257:当确定到达重启充电时间时,以第二充电模式充电,重启充电时间早于用户的醒来时间。S257: When it is determined that the restart charging time is reached, charge in the second charging mode, and the restart charging time is earlier than the user's wake-up time.
本申请实施例设置有重启充电时间,当达到重启充电时间时,电子设备以第二充电模式充电,这样用户醒来时电子设备100可以充电至电量较高的状态或者满电状态。The embodiment of the present application sets a restart charging time. When the restart charging time is reached, the electronic device is charged in the second charging mode, so that the electronic device 100 can be charged to a higher power state or a fully charged state when the user wakes up.
上述重启充电时间可以根据电子设备的电池电量、充电效率、用户的睡眠习惯等进行设定,下面对确定重启充电时间的方法进行介绍。The above-mentioned restart charging time can be set according to the battery power of the electronic device, charging efficiency, user's sleeping habits, etc. The method for determining the restart charging time is introduced below.
在一种可能的实现方式中,在S257之前,参阅图6,确定重启充电时间的步骤包括:In a possible implementation, before S257, referring to Figure 6, the steps for determining the restart charging time include:
S2561:确定电子设备的用户的醒来时间。S2561: Determine the wake-up time of the user of the electronic device.
S2563:根据电子设备的电池电量确定以第二充电模式充电至满电状态所需的充电时长。S2563: Determine the charging time required to charge to a fully charged state in the second charging mode according to the battery power of the electronic device.
S2565:将醒来时间减去充电时长确定为重启充电时间。S2565: Determine the restart charging time by subtracting the charging time from the waking time.
首先确定用户的醒来时间,用户的醒来时间可以根据用户的睡眠习惯进行学习预测,也可以将电子设备的醒来闹钟时间确定为醒来时间。确定醒来时间后,根据电子设备100的电池电量确定以第二充电模式(即快充模式)充电至满电状态所需的充电时长,在醒来时间的基础上,减去充电时长,即为上述重启充电时间。First, the user's wake-up time is determined. The user's wake-up time can be learned and predicted based on the user's sleeping habits, or the wake-up alarm time of the electronic device can be determined as the wake-up time. After the wake-up time is determined, the charging time required to charge to a fully charged state in the second charging mode (ie, fast charge mode) is determined based on the battery power of the electronic device 100. On the basis of the wake-up time, the charging time is subtracted, that is, Charge time for the above restart.
下面分别以上述两种不同方式确定醒来时间进行介绍。示例性的,在一种可能的实现方式中,可以根据用户的睡眠习惯确定用户的醒来时间,参阅图7,S2561包括:Determining the wake-up time in the above two different ways will be introduced below. For example, in a possible implementation, the user's wake-up time can be determined based on the user's sleeping habits. Referring to Figure 7, S2561 includes:
S2561a:根据当前日期以及预先训练好的睡眠习惯模型确定电子设备的用户的醒来时间。S2561a: Determine the wake-up time of the user of the electronic device based on the current date and the pre-trained sleep habit model.
示例性的,可以利用睡眠习惯模型确定用户的醒来时间。For example, a sleep habit model can be used to determine the user's wake-up time.
睡眠习惯模型可以根据用户的睡眠习惯数据进行训练,对用户过去一段时间每一天的睡眠习惯进行学习,睡眠习惯数据包括时间以及睡眠状态,例如过去一段时间每天用户在夜间22:00进入入睡阶段,在22:30进入深睡阶段,在第二天早晨07:30醒来,利用睡眠习惯数据对睡眠习惯模型进行训练,从而可以利用训练好的睡眠习惯模型预测用户的醒来时间,即根据用户的睡眠习惯推测用户的醒来时间。The sleep habit model can be trained based on the user's sleep habit data and learn the user's sleep habits every day in the past period. The sleep habit data includes time and sleep status. For example, the user entered the sleep stage at 22:00 every night in the past period. Enter the deep sleep stage at 22:30 and wake up at 07:30 the next morning. Use the sleep habit data to train the sleep habit model, so that the trained sleep habit model can be used to predict the user's wake-up time, that is, based on the user's wake-up time. Sleep habits predict the user’s wake time.
示例性的,在利用睡眠习惯模型对用户的醒来时间进行预测之前需要对睡眠习惯模型进行训练。在一种可能的实现方式中,睡眠习惯模型的训练可以由电子设备完成, 在这种情况下,参阅图8,睡眠习惯模型的训练包括:获取用户的睡眠习惯数据,睡眠习惯数据包括时间及睡眠状态,根据睡眠习惯数据对初始模型训练以得到训练好的睡眠习惯模型。如表1所示,表1是对睡眠习惯数据的一种示例。For example, before using the sleep habit model to predict the user's waking time, the sleep habit model needs to be trained. In a possible implementation, the training of the sleep habit model can be completed by an electronic device, In this case, referring to Figure 8, the training of the sleep habit model includes: obtaining the user's sleep habit data, which includes time and sleep status, and training the initial model based on the sleep habit data to obtain a trained sleep habit model. As shown in Table 1, Table 1 is an example of sleep habit data.
表1
Table 1
其中睡眠习惯数据可以是存储在电子设备上的睡眠习惯数据,例如由手环、手表等穿戴设备对用户的睡眠进行监测生成睡眠习惯数据,电子设备获取穿戴设备生成的睡眠习惯数据后存储;又或者,睡眠习惯数据可以是电子设备从服务器获取的,例如由手环、手表等穿戴设备对用户的睡眠进行监测生成睡眠习惯数据,并将上述睡眠习惯数据存储在服务器,电子设备可以获取存储在服务器的睡眠习惯数据。The sleep habit data may be sleep habit data stored on an electronic device. For example, a wearable device such as a bracelet or watch monitors the user's sleep to generate sleep habit data. The electronic device obtains the sleep habit data generated by the wearable device and then stores it; and Alternatively, the sleep habit data can be obtained by the electronic device from the server. For example, a wearable device such as a bracelet or watch monitors the user's sleep to generate sleep habit data, and the sleep habit data is stored in the server. The electronic device can obtain and store the sleep habit data in the server. Server sleep habits data.
在另一种可能的实现方式中,上述睡眠习惯数据还可以是由电子设备根据穿戴设备监测的人体生理参数确定的,例如在T1时刻,用户的心跳速度降低,呼吸频率降低,可以确定用户在T1时刻进入入睡阶段。In another possible implementation, the above sleep habit data can also be determined by the electronic device based on human physiological parameters monitored by the wearable device. For example, at time T1, if the user's heart rate decreases and the breathing frequency decreases, it can be determined that the user is Enter the sleep stage at T1 time.
获取睡眠习惯数据后,根据睡眠习惯数据对初始模型进行训练,其中初始模型可以是一个参考的初始模型,或者依据默认模型参数得到的模型,在一种可能的实现方式中,该初始模型可以是基于转换神经网络(transfomer)确定的模型,或者基于循环神经网络(recurrent neural network,RNN)确定的模型,又例如,初始模型还可以是贝叶斯模型等。After obtaining the sleep habit data, an initial model is trained based on the sleep habit data. The initial model can be a reference initial model, or a model obtained based on default model parameters. In a possible implementation, the initial model can be A model determined based on a transformation neural network (transfomer), or a model determined based on a recurrent neural network (RNN). For example, the initial model can also be a Bayesian model, etc.
利用训练样本数据,即上述的睡眠习惯数据对初始模型进行训练,得到的收敛的初始模型即可作为训练好的睡眠习惯模型,根据当前日期利用训练好的睡眠习惯模型确定用户的醒来时间。Use the training sample data, that is, the above-mentioned sleep habit data, to train the initial model. The resulting converged initial model can be used as a trained sleep habit model. The trained sleep habit model is used to determine the user's wake-up time based on the current date.
上述示例中,睡眠习惯数据包括时间与以及睡眠状态,其中时间包括日期以及不同睡眠状态对应的时刻。这样利用上述睡眠习惯数据对初始模型进行训练,得到训练好的睡眠习惯模型可以根据日期对用户的睡眠状态进行预测。In the above example, the sleep habit data includes time and sleep state, where the time includes date and time corresponding to different sleep states. In this way, the above sleep habit data is used to train the initial model, and the trained sleep habit model can predict the user's sleep status based on the date.
示例性的,在另一种可能的实现方式中,上述时间还可以不一日期的形式存储,还可以星期的形式进行存储,对初始模型进行训练得到训练好的睡眠习惯模型后,可以根据当前日期为星期几去预测用户的醒来时间,或者对用户的不同睡眠阶段进行预测,例如星期一至星期五为工作日,醒来时间较早,星期六、星期日为休息日,醒来时间较晚。For example, in another possible implementation, the above time can also be stored in the form of a date, or in the form of a week. After training the initial model to obtain the trained sleep habit model, the time can be stored according to the current Use the day of the week to predict the user's wake-up time, or predict the user's different sleep stages. For example, Monday to Friday are working days, and the wake-up time is earlier. Saturday and Sunday are rest days, and the wake-up time is later.
上述示例中,以在电子设备根据用户睡眠习惯数据对模型进行训练对本申请实施例提供的睡眠习惯模型进行了说明,在一些其他可能的实施方式中,上述训练好的睡眠习惯模型还可以是由电子设备获取的,例如,参阅图9,在一种可能的实现方式中,获取睡眠习惯数据后将睡眠习惯数据发送至服务器,服务器依据睡眠习惯数据对初始模型进行训练得到 训练好的睡眠习惯模型,然后电子设备100获取服务器训练好的睡眠习惯模型,利用获取的睡眠习惯模型确定用户的醒来时间。In the above example, the sleep habit model provided by the embodiment of the present application is explained by using the electronic device to train the model according to the user's sleep habit data. In some other possible implementations, the above-trained sleep habit model can also be made by Obtained by electronic devices, for example, see Figure 9. In one possible implementation, after obtaining the sleep habit data, the sleep habit data is sent to the server, and the server trains the initial model based on the sleep habit data. After training the sleep habit model, the electronic device 100 obtains the sleep habit model trained by the server, and uses the obtained sleep habit model to determine the user's wake-up time.
此外,示例性的,部分电子设备100可能存在多个用户的情况,在这种情况下,睡眠习惯数据还可以添加用户标识,针对不同用户记录不同的睡眠数据,初始模型学习不同的用户睡眠习惯数据,形成对应不同用户标识的多个睡眠习惯模型,这样在电子设备100的用户发生变化的情况下,可以不同的用户标识,采用用户标识对应的睡眠习惯模型,对相应的用户睡眠状态进行预测。In addition, as an example, some electronic devices 100 may have multiple users. In this case, user identification can also be added to the sleep habit data, different sleep data is recorded for different users, and the initial model learns different user sleep habits. The data is used to form multiple sleep habit models corresponding to different user identifiers. In this way, when the user of the electronic device 100 changes, the sleep habit model corresponding to the user identifier can be used to predict the corresponding user sleep state. .
上述示例中以根据用户的睡眠习惯确定醒来时间进行了说明,示例性的,参阅图10,在另一种实现方式中,若电子设备存储有起床闹钟,S2561包括:In the above example, determining the wake-up time according to the user's sleeping habits is explained. For example, referring to Figure 10, in another implementation, if the electronic device stores a wake-up alarm clock, S2561 includes:
S2561b:将电子设备存储的起床闹钟时间确定为用户的醒来时间。S2561b: Determine the wake-up alarm time stored in the electronic device as the user's wake-up time.
示例性的,若电子设备存储有起床闹钟,那么可以将起床闹钟时间作为用户的醒来时间,例如电子设备存储的起床闹钟时间为早晨07:30,则可以将早晨07:30确定为用户的醒来时间。For example, if the electronic device stores a wake-up alarm clock, then the wake-up alarm clock time can be used as the user's wake-up time. For example, if the wake-up alarm clock time stored in the electronic device is 07:30 in the morning, then 07:30 in the morning can be determined as the user's wake-up time. Wake up time.
确定醒来时间后,根据电子设备的电池电量确定以快充模式充电至满电状态所需的充电时长,示例性的,依据电子设备的电池电量确定与满电状态的电量差,将电量差与充电效率的比值确定为充电时长,为了快速将电子设备充电至满电状态,上述充电效率应为第二充电模式即快充模式的充电效率,确定充电时长后,在醒来时间的基础上减去上述充电时长即为本申请实施例提供的重启充电时间。After the wake-up time is determined, the charging time required to charge to the full power state in the fast charge mode is determined based on the battery power of the electronic device. For example, the battery power difference between the battery power of the electronic device and the full power state is determined, and the power difference is The ratio to the charging efficiency is determined as the charging time. In order to quickly charge the electronic device to a fully charged state, the above charging efficiency should be the charging efficiency of the second charging mode, that is, the fast charging mode. After the charging time is determined, based on the wake-up time Subtracting the above charging time is the restart charging time provided by the embodiment of the present application.
例如醒来时间为早晨07:30,电子设备当前电量为60%,依据当前电量确定以快充模式充电至满电状态需要的充电时长为30分钟,那么可以将醒来时间与充电时长之差即早晨07:00确定为上述重启充电时间,在重启充电时间电子设备以第二充电模式进行充电,可以在用户醒来前将电子设备充电至满电状态。For example, the waking time is 07:30 in the morning, and the current battery level of the electronic device is 60%. Based on the current battery level, it is determined that the charging time required to charge to full power in fast charging mode is 30 minutes. Then the difference between the waking time and the charging time can be calculated. That is, 07:00 in the morning is determined as the above-mentioned restart charging time. During the restart charging time, the electronic device is charged in the second charging mode, and the electronic device can be charged to a fully charged state before the user wakes up.
结合图11a,下面以电子设备为手机为例,结合具体的示例对上述实施方式进行举例说明。With reference to FIG. 11 a , the following takes the electronic device as a mobile phone as an example, and illustrates the above embodiment with specific examples.
例如,用户使用手机,在夜间21:30连接充电适配器进行充电,此时以第一充电模式进行充电,其中第一充电模式可能是快充,也可能是慢充。For example, the user uses a mobile phone and connects the charging adapter for charging at 21:30 at night. At this time, the first charging mode is used for charging, and the first charging mode may be fast charging or slow charging.
在预设时间(例如夜间22:00)获取监测参数,依据监测参数确定用户进入入睡阶段,此时手机的电量低于电量阈值(例如60%),将手机调整为第二充电模式(快充模式)进行充电。Obtain monitoring parameters at a preset time (for example, 22:00 at night), and determine that the user has entered the sleep stage based on the monitoring parameters. At this time, the power of the mobile phone is lower than the power threshold (for example, 60%), and the mobile phone is adjusted to the second charging mode (fast charge). mode) to charge.
夜间22:50,手机充电达到电量阈值(例如,60%),停止充电,手机以60%的电量状态放置。At 22:50 at night, the charging of the mobile phone reaches the power threshold (for example, 60%), charging is stopped, and the mobile phone is placed in a 60% power state.
利用睡眠习惯模型或者依据手机存储的起床闹钟时间确定用户的醒来时间为早晨07:30,依据手机当前电量确定以第二充电模式(快充模式)确定充电至满电状态需要30分钟,则将早晨07:00确定为重启充电时间。Use the sleep habit model or the wake-up alarm time stored in the mobile phone to determine the user's wake-up time as 07:30 in the morning. Based on the current power of the mobile phone, determine that it will take 30 minutes to charge to full power in the second charging mode (fast charge mode), then Set 07:00 in the morning as the restart charging time.
手机放置到重启充电时间后,例如早晨07:00,重启充电,此时继续以第二充电模式进行充电,在用户醒来时,即早晨07:30左右可以将手机充电至满电状态。After the mobile phone is placed until the restart charging time, for example, at 07:00 in the morning, charging is restarted. At this time, charging continues in the second charging mode. When the user wakes up, that is, around 07:30 in the morning, the mobile phone can be charged to a fully charged state.
在另一种情况,结合图11b,若在预设时间(例如夜间22:00)获取监测参数,依据监测参数确定用户进入入睡阶段,此时手机的电量高于或等于电量阈值(例如60%),停止充电,并放电。 In another case, combined with Figure 11b, if the monitoring parameters are obtained at a preset time (for example, 22:00 at night), it is determined based on the monitoring parameters that the user has entered the sleep stage. At this time, the power of the mobile phone is higher than or equal to the power threshold (for example, 60% ), stop charging, and discharge.
凌晨01:10,手机放电至电量达到电量阈值,停止放电,手机以60%的电量状态放置,直至到达重启充电时间,继续以第二充电模式进行充电。At 01:10 in the morning, the mobile phone is discharged until the power reaches the power threshold, and the discharge is stopped. The mobile phone is placed at 60% of the power state until the restart charging time is reached, and the phone continues to be charged in the second charging mode.
上述实施方式中,在电子设备100电池电量低于电量阈值的情况下,电子设备100以第二充电模式(即快充模式)充电至电量阈值后停止充电,放置到重启充电时间后再以第二充电模式充电至满电状态,快充模式能够提高充电效率,提升用户充电的体验,但是长期快速的对电子设备100进行充电对电子设备的电池寿命有影响,快充模式使用过多会缩短电池使用年限。In the above embodiment, when the battery power of the electronic device 100 is lower than the power threshold, the electronic device 100 is charged in the second charging mode (ie, the fast charging mode) to the power threshold, stops charging, and is left until the restart charging time. The second charging mode charges to a fully charged state. The fast charging mode can improve charging efficiency and enhance the user's charging experience. However, long-term rapid charging of the electronic device 100 has an impact on the battery life of the electronic device. Excessive use of the fast charging mode will shorten the battery life. Battery age.
为了减少快充对电子设备电池使用寿命的影响,本申请实施例提供的另一种实现方式,在用户进入入睡阶段时以第二充电模式进行充电,在充电至电量阈值之前,若用户进入深睡阶段后不再进行快充,而是转变为慢充模式进行充电,同样的,充电至电量阈值后停止充电,直至达到重启充电时间后再重启充电。In order to reduce the impact of fast charging on the battery life of electronic equipment, another implementation method provided by the embodiment of the present application is to charge in the second charging mode when the user enters the sleep stage. Before charging to the power threshold, if the user enters the deep After the sleep stage, fast charging is no longer performed, but is converted to slow charging mode for charging. Similarly, charging stops after charging to the power threshold, and charging is restarted until the restart charging time is reached.
示例性的,在另一种可能的实现方式中,参阅图12:S250a:根据睡眠状态调整电子设备的充电速度包括:For example, in another possible implementation, see Figure 12: S250a: adjusting the charging speed of the electronic device according to the sleep state includes:
S251:当根据监测参数确定用户进入入睡阶段时,确定电子设备的电量小于电量阈值。S251: When it is determined that the user enters the sleep stage according to the monitoring parameters, it is determined that the power of the electronic device is less than the power threshold.
S252:当确定电子设备的电量小于电量阈值时,将电子设备设置为第二充电模式,其中第二充电模式的充电速度大于正常充电速度。S252: When it is determined that the power of the electronic device is less than the power threshold, the electronic device is set to a second charging mode, where the charging speed of the second charging mode is greater than the normal charging speed.
S253:当确定电子设备的电量大于或等于电量阈值时,停止充电,并放电至电子设备的电池电量等于电量阈值。S253: When it is determined that the power of the electronic device is greater than or equal to the power threshold, charging is stopped and the battery is discharged until the battery power of the electronic device is equal to the power threshold.
S254:当确定电子设备的电量大于或等于电量阈值时,关闭电子设备上未关闭的应用程序。S254: When it is determined that the power of the electronic device is greater than or equal to the power threshold, close the unclosed applications on the electronic device.
上述充电控制流程在前述实施例中已经详细介绍,在此不再进行详细说明。在进入入睡阶段,电子设备100的电量小于电量阈值时,电子设备100以第二充电模式进行充电,若在充电至电量阈值之前,根据监测参数确定用户的睡眠进入深睡阶段时,再次对电子设备100的充电模式进行调整,例如,还包括:The above charging control process has been introduced in detail in the previous embodiments and will not be described in detail here. When entering the sleep stage and the power of the electronic device 100 is less than the power threshold, the electronic device 100 is charged in the second charging mode. If it is determined according to the monitoring parameters that the user's sleep has entered the deep sleep stage before charging to the power threshold, the electronic device 100 will be charged again. The charging mode of the device 100 is adjusted, for example, also including:
S255:当根据监测参数确定用户进入深睡阶段时,将电子设备设置为第三充电模式,直至将电子设备充电至电量阈值,其中第三充电模式的充电速度小于正常充电速度。S255: When it is determined that the user enters the deep sleep stage according to the monitoring parameters, the electronic device is set to the third charging mode until the electronic device is charged to the power threshold, where the charging speed of the third charging mode is lower than the normal charging speed.
由于深睡阶段时间较长,用户在深睡阶段不容易醒来,由于进入深睡阶段后,深睡阶段时间较长,用户在深睡阶段不容易醒来,因此无须以快充模式进行充电,转换为以第三充电模式,其中第三充电模式的充电速度小于正常充电速度,以第三充电模式充电至电量阈值后,停止充电。Since the deep sleep stage lasts a long time, it is not easy for the user to wake up during the deep sleep stage. After entering the deep sleep stage, the deep sleep stage takes a long time and the user does not easily wake up during the deep sleep stage. Therefore, there is no need to charge in fast charging mode. , switching to the third charging mode, where the charging speed of the third charging mode is lower than the normal charging speed, and after charging to the power threshold in the third charging mode, the charging stops.
在用户进入深睡阶段之后调整为第三模式充电,可以减少电子设备100使用第二充电模式的时间,改善其电池的寿命。Adjusting to the third charging mode after the user enters the deep sleep stage can reduce the time the electronic device 100 uses the second charging mode and improve its battery life.
S257:当确定到达重启充电时间时,以第二充电模式充电,重启充电时间早于用户的醒来时间。S257: When it is determined that the restart charging time is reached, charge in the second charging mode, and the restart charging time is earlier than the user's wake-up time.
与前述实施方式相同,在达到重启充电时间时,以第二充电模式进行充电,直至充电至满电状态,重启充电的实现方式在前述实施例中已经详细说明,在此不再介绍,可参阅前述实施例中的相关内容。 Same as the previous embodiment, when the restart charging time is reached, charging is performed in the second charging mode until the charge is fully charged. The implementation of restart charging has been described in detail in the previous embodiment and will not be introduced here. Please refer to Relevant content in the aforementioned embodiments.
结合图13,下面以电子设备为手机为例,结合具体的示例对上述实施方式进行举例说明。With reference to FIG. 13 , taking the electronic device as a mobile phone as an example, the above embodiment will be illustrated with specific examples.
例如,用户使用手机,在夜间21:30连接充电适配器进行充电,此时以第一充电模式进行充电。For example, the user uses a mobile phone and connects the charging adapter for charging at 21:30 at night. At this time, the user charges in the first charging mode.
在预设时间(例如夜间22:00)获取监测参数,依据监测参数确定用户进入入睡阶段,此时手机电量未达到电量阈值(例如60%),将手机调整为第二充电模式(快充模式)进行充电。Obtain monitoring parameters at a preset time (for example, 22:00 at night), and determine that the user has entered the sleep stage based on the monitoring parameters. At this time, the power of the mobile phone does not reach the power threshold (for example, 60%), and the mobile phone is adjusted to the second charging mode (fast charging mode). ) to charge.
夜间22:30,手机充电达到50%,未达到电量阈值,检测到用户进入深睡阶段,将手机调整为第三充电模式(慢充模式)进行充电。At 22:30 at night, the phone was charged to 50% and did not reach the battery threshold. It was detected that the user had entered the deep sleep stage, and the phone was adjusted to the third charging mode (slow charging mode) for charging.
凌晨02:30,手机以慢充模式充电至达到电量阈值(例如60%),停止充电,手机以60%的电量状态放置。At 02:30 in the morning, the mobile phone is charged in slow charging mode until it reaches the battery threshold (for example, 60%), charging is stopped, and the mobile phone is left in a 60% battery state.
利用睡眠习惯模型或者依据手机存储的起床闹钟时间确定用户的醒来时间为早晨07:30,依据手机当前电量确定以第二充电模式(快充模式)确定充电至满电状态需要30分钟,则将早晨07:00确定为重启充电时间。Use the sleep habit model or the wake-up alarm time stored in the mobile phone to determine the user's wake-up time as 07:30 in the morning. Based on the current power of the mobile phone, determine that it will take 30 minutes to charge to full power in the second charging mode (fast charge mode), then Set 07:00 in the morning as the restart charging time.
手机放置到重启充电时间后,例如早晨07:00,重启充电,此时继续以第二充电模式进行充电,在用户醒来时,即早晨07:30左右可以将手机充电至满电状态。After the mobile phone is placed until the restart charging time, for example, at 07:00 in the morning, charging is restarted. At this time, charging continues in the second charging mode. When the user wakes up, that is, around 07:30 in the morning, the mobile phone can be charged to a fully charged state.
上述重启充电时间是根据用户的醒来时间、电子设备的电池电量以及充电至满电状态所需的充电时长确定的,在一些其他可能的实现方式中,还可以预先设定重启充电时间,例如利用睡眠习惯模型确定用户在深睡阶段的多个睡眠周期中的最后一个睡眠周期,根据电子设备电池电量以及最后一个睡眠周期的时长确定将电子设备充电至满电状态所需的充电功率大小,然后以确定的充电功率进行充电,这样也可以将电子设备在用户醒来时充电至满电状态。The above-mentioned restart charging time is determined based on the user's wake-up time, the battery power of the electronic device, and the charging time required to charge to a fully charged state. In some other possible implementations, the restart charging time can also be preset, such as Use the sleep habit model to determine the last sleep cycle among the multiple sleep cycles of the user in the deep sleep stage, and determine the amount of charging power required to charge the electronic device to a fully charged state based on the battery power of the electronic device and the length of the last sleep cycle. Then charging is performed at a determined charging power, so that the electronic device can be charged to a fully charged state when the user wakes up.
例如,如前述实施方式中提及的,快速眼动期与非快速眼动期交替出现为一个睡眠周期,深睡阶段包括多个睡眠周期,在快速眼动期与非快速眼动期交替时用户会出现较为明显的生理参数变化,例如用户的心率、呼吸频率等会发生变化,或者会出现较大幅度的翻身动作等,穿戴设备可以根据上述人体生理参数等记录用户在深睡阶段的不同睡眠周期,进一步的,睡眠习惯模型可以对用户不同的睡眠周期时间进行学习,进而可以利用训练好的睡眠习惯模型对用户深睡阶段的最后一个睡眠周期的时间点进行预测,将最后一个睡眠周期的时间点确定为重启充电时间,然后依据电子设备的电池电量确定在最后一个睡眠周期内充电至满电状态所需的充电功率,以确定的功率进行充电。For example, as mentioned in the foregoing embodiments, the rapid eye movement period and the non-rapid eye movement period alternate as one sleep cycle, and the deep sleep stage includes multiple sleep cycles. When the rapid eye movement period and the non-rapid eye movement period alternate, Users will experience obvious changes in physiological parameters, such as changes in the user's heart rate, breathing rate, etc., or may have larger turning movements, etc. The wearable device can record the user's differences in the deep sleep stage based on the above-mentioned human body physiological parameters, etc. Sleep cycle, further, the sleep habit model can learn the user's different sleep cycle times, and then the trained sleep habit model can be used to predict the time point of the user's last sleep cycle in the deep sleep stage, and the last sleep cycle The time point is determined as the restart charging time, and then the charging power required to charge to a full power state in the last sleep cycle is determined based on the battery power of the electronic device, and charging is performed with the determined power.
此外,上述示例中,均以用户在夜间睡眠时对电子设备进行充电为例进行说明,但并非是对本申请实施例的限制,不同的用户由于工作、生活习惯等不同,可能会存在不同的睡眠习惯,例如一些用户的工作时间主要在夜间,这样用户可能会在白天睡眠,同样根据监测参数对用户睡眠期间电子设备的充电模式进行调整;或者,用户还可能会存在一些短暂的睡眠,例如午休、小憩等等,这一类睡眠时间较短,一般均采用快充模式充电,当然,若睡眠时间较长,可能存在多个睡眠周期的话,也可以根据监测参数对用户睡眠期间的电子设备充电模式进行调整。In addition, in the above examples, the user charges the electronic device while sleeping at night as an example. However, this is not a limitation of the embodiments of the present application. Different users may have different sleep patterns due to different work and living habits. Habits, for example, some users work mainly at night, so the user may sleep during the day, and the charging mode of the electronic device during the user's sleep is also adjusted according to the monitoring parameters; or the user may also have some short sleep, such as lunch break , nap, etc. This type of sleep time is short and is generally charged in fast charging mode. Of course, if the sleep time is long and there may be multiple sleep cycles, the user's electronic devices during sleep can also be charged according to the monitoring parameters. mode to adjust.
此外,若用户在观影期间,或者工作期间对电子设备100进行充电,那么同样可以 根据监测参数确定用户的作息状态,例如观影状态或者工作状态,例如,在用户所处的室内灯光调整为观影模式,那么即可确定用户的作息状态为观影状态。若用户在可穿戴设备上设置了进入“工作模式”,那么即可确定用户的作息状态为工作状态。然后依据用户处于观影状态或者工作状态不同的阶段,调整电子设备100的充电速度。In addition, if the user charges the electronic device 100 while watching a movie or while working, the same can be done The user's work and rest status is determined based on the monitoring parameters, such as movie viewing status or working status. For example, if the indoor lighting where the user is located is adjusted to the movie viewing mode, then the user's work and rest status can be determined to be the movie viewing status. If the user sets to enter "work mode" on the wearable device, it can be determined that the user's work and rest status is the work status. Then, the charging speed of the electronic device 100 is adjusted according to the different stages of the user's viewing state or working state.
例如,以观影状态为例,由于一般情况下,电影或电视剧的时长是一定的,例如电视剧时长约为45分钟,电影时长约为120分钟,因此在观影状态的充电时间较短,可以一直以较快的充电速度(例如第二充电模式)进行充电。For example, taking the movie-watching state as an example, since under normal circumstances, the duration of a movie or TV series is certain, for example, the TV series lasts about 45 minutes and the movie lasts about 120 minutes, so the charging time in the movie-watching state is shorter and you can Always charge at a faster charging speed (such as the second charging mode).
又例如,以工作状态为例,假定用户在9:00~12:00、13:00~17:00为工作时间,那么在根据监测参数和/或人体生理参数确定电子设备100的用户在工作状态后,可以先以第二充电模式进行充电,充电至电量阈值后停止充电,在距离工作结束前一段时间,再根据电子设备100的电池电量状态以及充电速度确定重启充电的时间,以在用户工作结束前重启充电。由于用户工作结束的时间是已知的,那么重启充电的部分内容可以参照睡眠状态充电中重启充电的部分内容,在此不再赘述。For another example, taking the working status as an example, assuming that the user works between 9:00-12:00 and 13:00-17:00, then it is determined based on the monitoring parameters and/or human physiological parameters that the user of the electronic device 100 is working. After the electronic device 100 is in the state, it can be charged in the second charging mode first, and then stop charging after charging to the power threshold. A period of time before the end of the work, and then determine the time to restart charging according to the battery power status and charging speed of the electronic device 100 to ensure that the user Restart charging before finishing work. Since the time when the user's work ends is known, part of the content of restarting charging can refer to part of the content of restarting charging in sleep state charging, which will not be described again here.
上述主要从方法步骤的角度对本申请实施例提供的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本申请能够以硬件和计算机软件的结合形式来实现。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solutions provided by the embodiments of the present application from the perspective of method steps. It can be understood that, in order to implement the above functions, the electronic device includes corresponding hardware structures and/or software modules that perform each function. Persons skilled in the art should easily realize that, in conjunction with the modules and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of a combination of hardware and computer software. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
本申请实施例还可以根据上述方法示例对充电控制装置400进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。在采用对应各个功能划分各个功能模块的情况下,图14示出了一种充电控制装置400,用于执行本申请前述实施方式中提供的充电控制方法。该充电控制装置400包括:检测单元401、获取单元402与充电单元403。The embodiment of the present application can also divide the charging control device 400 into functional modules according to the above method examples. For example, each functional module can be divided into corresponding functional modules, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods. In the case where each functional module is divided corresponding to each function, FIG. 14 shows a charging control device 400 for executing the charging control method provided in the aforementioned embodiments of this application. The charging control device 400 includes: a detection unit 401, an acquisition unit 402 and a charging unit 403.
其中,检测单元401用于对电子设备进行充电检测。例如,结合图4,检测单元401可以用于执行S210。Among them, the detection unit 401 is used to detect charging of electronic equipment. For example, in conjunction with Figure 4, the detection unit 401 may be used to perform S210.
充电单元403用于当检测到电子设备接入充电适配器后,将电子设备设置为第一充电模式。其中第一充电模式的充电速度为正常充电速度,例如,结合图4,充电单元403可以用于执行S220。The charging unit 403 is used to set the electronic device to the first charging mode after detecting that the electronic device is connected to the charging adapter. The charging speed in the first charging mode is the normal charging speed. For example, with reference to FIG. 4 , the charging unit 403 may be used to perform S220.
获取单元402用于周期性获取与电子设备建立通信连接的至少一个智能设备的监测参数。其中智能设备包括环境参数监测设备、穿戴设备,监测参数包括环境参数与人体生理参数,其中环境参数监测设备可以用于监测环境参数,穿戴设备可以用于监测人体生理参数,例如,结合图4,获取单元402可以用于执行S230。The acquisition unit 402 is configured to periodically acquire monitoring parameters of at least one smart device that establishes a communication connection with the electronic device. The smart devices include environmental parameter monitoring equipment and wearable devices. The monitoring parameters include environmental parameters and human physiological parameters. The environmental parameter monitoring equipment can be used to monitor environmental parameters, and the wearable devices can be used to monitor human physiological parameters. For example, with reference to Figure 4, The obtaining unit 402 may be used to perform S230.
充电单元403还用于根据监测参数确定电子设备的用户的作息状态,充电单元403还用于根据电子设备的用户的作息状态调整电子设备的充电速度。The charging unit 403 is also used to determine the work and rest state of the user of the electronic device according to the monitoring parameters, and the charging unit 403 is also used to adjust the charging speed of the electronic device according to the work and rest state of the user of the electronic device.
其中监测参数(包括环境参数、人体生理参数)用于确定用户的睡眠状态,例如 确定用户是否开始睡眠,是否入睡或者是否深睡等,根据监测参数对电子设备的充电速度进行调整,在调整之前,电子设备以第一充电模式进行充电,在用户进入入睡阶段,可以第二充电模式进行充电,在用户深睡阶段,可以第三充电模式进行充电,其中第二充电模式为快充模式,第三充电模式为慢充模式。例如,结合图4,充电单元403可以用于执行S240、S250。Monitoring parameters (including environmental parameters and human physiological parameters) are used to determine the user's sleep status, such as Determine whether the user starts to sleep, falls asleep or is in deep sleep, etc., and adjusts the charging speed of the electronic device according to the monitoring parameters. Before adjustment, the electronic device is charged in the first charging mode. When the user enters the sleep stage, it can be charged in the second time. When the user is in deep sleep, the device can be charged in the third charging mode, where the second charging mode is the fast charging mode and the third charging mode is the slow charging mode. For example, with reference to FIG. 4 , the charging unit 403 may be used to perform S240 and S250.
示例性的,以作息状态包括睡眠状态为例,充电单元403用于根据监测参数确定电子设备的用户的睡眠状态;其中,电子设备存储有环境参数和/或人体生理参数与用户的睡眠状态的对应关系;充电单元403还用于根据睡眠状态调整电子设备的充电速度。例如,结合图5,充电单元403可以用于执行S240a、S250a。For example, taking the work and rest state including the sleep state as an example, the charging unit 403 is used to determine the sleep state of the user of the electronic device based on the monitoring parameters; wherein the electronic device stores environmental parameters and/or human physiological parameters and the user's sleep state. Correspondence: The charging unit 403 is also used to adjust the charging speed of the electronic device according to the sleep state. For example, with reference to FIG. 5 , the charging unit 403 may be used to perform S240a and S250a.
示例性的,充电单元403用于当根据监测参数确定用户进入入睡阶段时,将电子设备设置为第二充电模式,直至将电子设备充电至电量阈值时,停止充电,其中第二充电模式的充电速度大于正常充电速度。入睡阶段是用户开始入眠的阶段,在这一睡眠阶段的用户容易醒来,部分用户醒来时会使用手机等电子设备,因此在这一睡眠阶段,以快充模式进行充电,避免用户醒来时电子设备的电量不足,例如,结合图5a,充电单元403可以用于执行S252。Exemplarily, the charging unit 403 is used to set the electronic device to the second charging mode when it is determined according to the monitoring parameters that the user enters the sleep stage, and stops charging when the electronic device is charged to the power threshold, wherein charging in the second charging mode The speed is greater than the normal charging speed. The falling asleep stage is the stage when users start to fall asleep. Users in this sleep stage are prone to wake up. Some users will use electronic devices such as mobile phones when they wake up. Therefore, during this sleep stage, fast charging mode is used to charge to prevent users from waking up. When the power of the electronic device is insufficient, for example, with reference to Figure 5a, the charging unit 403 can be used to perform S252.
充电单元403还用于当确定到达重启充电时间时,以第二充电模式充电。由于待机状态下电子设备也会存在一定的功耗,在用户醒来前电子设备的电量可能低于上述电量阈值,为了能够在用户醒来时将电子设备充电至满电状态,需要在用户醒来前重启充电,以在用户醒来前将电子设备充电至满电状态。例如,结合图5a,充电单元403还可以用于执行S257。The charging unit 403 is also used to charge in the second charging mode when it is determined that the restart charging time is reached. Since electronic devices also consume a certain amount of power in standby mode, the power of the electronic device may be lower than the above power threshold before the user wakes up. In order to charge the electronic device to a full power state when the user wakes up, it is necessary to charge the electronic device to a full power state when the user wakes up. Restart charging before arrival to fully charge electronic devices before the user wakes up. For example, in conjunction with Figure 5a, the charging unit 403 can also be used to perform S257.
在另一种可能的实现方式中,充电单元403还用于当根据监测参数确定用户进入入睡阶段时,确定电子设备的电量小于电量阈值。例如,结合图5b,充电单元403还可以用于执行S251。In another possible implementation, the charging unit 403 is also used to determine that the power of the electronic device is less than the power threshold when it is determined that the user enters the sleep stage according to the monitoring parameters. For example, in conjunction with Figure 5b, the charging unit 403 can also be used to perform S251.
充电单元403还用于当确定电子设备的电量大于或等于电量阈值时,停止充电,并放电至电子设备的电池电量等于电量阈值,例如,结合图5b,充电单元403还可以用于执行S253。The charging unit 403 is also used to stop charging when it is determined that the power of the electronic device is greater than or equal to the power threshold, and discharge until the battery power of the electronic device is equal to the power threshold. For example, with reference to Figure 5b, the charging unit 403 can also be used to perform S253.
充电单元403还用于当确定电子设备的电量大于或等于电量阈值时,关闭电子设备上未关闭的应用程序。例如,结合图5b,充电单元403还可以用于执行S254。The charging unit 403 is also used to close unclosed applications on the electronic device when it is determined that the power of the electronic device is greater than or equal to the power threshold. For example, in conjunction with Figure 5b, the charging unit 403 can also be used to perform S254.
充电单元403还用于当确定到达重启充电时间时,以第二充电模式充电,重启充电时间早于电子设备的用户的醒来时间。例如,结合图5,充电单元403还可以用于执行S257。The charging unit 403 is also configured to charge in the second charging mode when it is determined that the restart charging time is reached, and the restart charging time is earlier than the wake-up time of the user of the electronic device. For example, in conjunction with FIG. 5 , the charging unit 403 may also be used to perform S257.
示例性的,在重启充电之前,充电单元403还用于确定重启充电时间,充电单元403具体用于确定电子设备的用户的醒来时间,根据电子设备的电池电量确定以第二充电模式充电至满电状态所需的充电时长,将醒来时间减去充电时长确定为重启充电时间。例如,结合图6,充电单元403还可以用于执行S2561~S2565。Exemplarily, before restarting charging, the charging unit 403 is also used to determine the restarting time. The charging unit 403 is specifically used to determine the wake-up time of the user of the electronic device, and determine according to the battery power of the electronic device to charge in the second charging mode to The charging time required for the fully charged state is determined by subtracting the charging time from the wake-up time as the restart charging time. For example, with reference to FIG. 6 , the charging unit 403 may also be used to perform S2561 to S2565.
示例性的,在一种可能的实现方式中,充电单元可以通过预先训练好的睡眠习惯模型确定电子设备的用户的醒来时间,其中睡眠习惯模型可以对用户过去一段时间的睡眠习惯数据进行学习,根据用户的睡眠习惯预测用户的醒来时间。例如,结合图7,充电单元403还可以用于执行S2561a。 For example, in a possible implementation, the charging unit can determine the wake-up time of the user of the electronic device through a pre-trained sleep habit model, where the sleep habit model can learn the user's sleep habit data in the past period of time. , predicting the user’s wake-up time based on the user’s sleeping habits. For example, in conjunction with FIG. 7 , the charging unit 403 may also be used to perform S2561a.
示例性的,在另一种可能的实现方式中,若电子设备存储有起床闹钟,充电单元可以将电子设备存储的起床闹钟时间确定为用户的醒来时间。例如,结合图10,充电单元403还可以用于执行S2561b。For example, in another possible implementation, if the electronic device stores a wake-up alarm clock, the charging unit may determine the wake-up alarm time stored in the electronic device as the user's wake-up time. For example, in conjunction with Figure 10, the charging unit 403 may also be used to perform S2561b.
充电单元403还用于当根据监测参数确定用户进入深睡阶段时,将电子设备设置为第三充电模式,直至将电子设备充电至电量阈值。例如,结合图12,充电单元403还可以用于执行S255。The charging unit 403 is also used to set the electronic device to the third charging mode until the electronic device is charged to the power threshold when it is determined that the user enters the deep sleep stage according to the monitoring parameters. For example, in conjunction with Figure 12, the charging unit 403 may also be used to perform S255.
参阅图15,本申请实施例还提供了一种电子设备,电子设备可以是上述附图中的电子设备100,参阅图15,电子设备包括一个或多个处理器501,收发装置502以及充电管理模块503,处理器501与收发装置502、充电管理模块503可以通过总线504连接。其中处理器501,用于对电子设备进行充电检测;收发装置502,用于在处理器501检测到电子设备接入充电适配器后,获取与电子设备建立通信连接的至少一个智能设备的监测参数,至少一个智能设备包括环境参数监测设备、穿戴设备,监测参数包括环境参数、人体生理参数,处理器501还用于根据监测参数确定电子设备的用户的作息状态,然后依据作息状态控制充电管理模块503调整电子设备的充电速度,例如根据监测参数确定电子设备的用户的睡眠状态,根据用户的睡眠状态对电子设备的充电速度进行调整。Referring to Fig. 15, an embodiment of the present application also provides an electronic device. The electronic device may be the electronic device 100 in the above figure. Referring to Fig. 15, the electronic device includes one or more processors 501, a transceiver device 502 and a charging management device. Module 503, processor 501, transceiver device 502, and charging management module 503 can be connected through bus 504. The processor 501 is used to detect charging of electronic equipment; the transceiver 502 is used to obtain monitoring parameters of at least one smart device that establishes a communication connection with the electronic device after the processor 501 detects that the electronic device is connected to the charging adapter. At least one smart device includes an environmental parameter monitoring device and a wearable device. The monitoring parameters include environmental parameters and human physiological parameters. The processor 501 is also used to determine the work and rest status of the user of the electronic device based on the monitoring parameters, and then controls the charging management module 503 based on the work and rest status. Adjust the charging speed of the electronic device, for example, determine the sleep state of the user of the electronic device based on the monitoring parameters, and adjust the charging speed of the electronic device based on the user's sleep state.
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中各个功能或者步骤。Embodiments of the present application also provide a computer storage medium that includes computer instructions. When the computer instructions are run on the above-mentioned electronic device, the electronic device causes the electronic device to perform each function or step in the above-mentioned method embodiment.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the above description of the embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the systems, devices and units described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be described again here.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage device. The medium includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。 The above are only specific implementation modes of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of the present application shall be covered by this application. within the protection scope of the application embodiment. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims (16)

  1. 一种充电控制方法,其特征在于,所述方法包括:A charging control method, characterized in that the method includes:
    对电子设备进行充电检测;Conduct charging tests on electronic devices;
    检测到所述电子设备接入充电适配器后,获取与所述电子设备建立通信连接的至少一个智能设备的监测参数,所述至少一个智能设备包括环境参数监测设备、穿戴设备,所述监测参数包括所述电子设备的用户所在环境的环境参数、所述电子设备的用户的人体生理参数;After detecting that the electronic device is connected to the charging adapter, the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device are obtained. The at least one smart device includes an environmental parameter monitoring device and a wearable device. The monitoring parameters include Environmental parameters of the environment where the user of the electronic device is located, and human physiological parameters of the user of the electronic device;
    根据所述监测参数确定所述用户的作息状态;Determine the work and rest status of the user according to the monitoring parameters;
    根据所述用户的作息状态调整所述电子设备的充电速度。Adjust the charging speed of the electronic device according to the user's work and rest status.
  2. 根据权利要求1所述的充电控制方法,其特征在于,在获取与所述电子设备建立通信连接的至少一个智能设备的监测参数之前,所述方法还包括:The charging control method according to claim 1, characterized in that, before obtaining the monitoring parameters of at least one smart device that establishes a communication connection with the electronic device, the method further includes:
    检测到电子设备接入充电适配器后,将所述电子设备设置为第一充电模式,其中所述第一充电模式的充电速度为正常充电速度;After detecting that the electronic device is connected to the charging adapter, the electronic device is set to a first charging mode, where the charging speed of the first charging mode is the normal charging speed;
    周期性获取至少一个所述智能设备的监测参数。Periodically obtain monitoring parameters of at least one smart device.
  3. 根据权利要求2所述的充电控制方法,其特征在于,所述作息状态包括睡眠状态,所述根据所述监测参数确定所述用户的作息状态包括:The charging control method according to claim 2, wherein the work and rest state includes a sleep state, and determining the user's work and rest state according to the monitoring parameters includes:
    根据所述监测参数确定所述电子设备的用户的睡眠状态;其中,所述电子设备存储有所述环境参数和/或所述人体生理参数与所述用户的睡眠状态的对应关系。The sleep state of the user of the electronic device is determined according to the monitoring parameters; wherein the electronic device stores a corresponding relationship between the environmental parameters and/or the human body physiological parameters and the sleep state of the user.
  4. 根据权利要求3所述的充电控制方法,其特征在于,所述睡眠状态包括入睡阶段,所述根据所述用户的作息状态调整所述电子设备的充电速度,包括:The charging control method according to claim 3, wherein the sleep state includes a falling asleep stage, and adjusting the charging speed of the electronic device according to the user's work and rest state includes:
    当根据所述监测参数确定所述电子设备的用户进入所述入睡阶段时,将所述电子设备设置为第二充电模式,直至将所述电子设备充电至电量阈值时,停止充电,其中所述第二充电模式的充电速度大于所述正常充电速度。When it is determined according to the monitoring parameters that the user of the electronic device enters the sleep stage, the electronic device is set to the second charging mode until the electronic device is charged to a power threshold, and charging is stopped, wherein the The charging speed of the second charging mode is greater than the normal charging speed.
  5. 根据权利要求4所述的充电控制方法,其特征在于,所述睡眠状态还包括深睡阶段,所述直至将所述电子设备充电至电量阈值时之前,所述方法还包括:The charging control method according to claim 4, wherein the sleep state further includes a deep sleep stage, and until the electronic device is charged to a power threshold, the method further includes:
    当根据所述监测参数确定所述电子设备的用户进入所述深睡阶段时,将所述电子设备设置为第三充电模式,所述第三充电模式的充电速度小于所述正常充电速度。When it is determined according to the monitoring parameters that the user of the electronic device enters the deep sleep stage, the electronic device is set to a third charging mode, and the charging speed of the third charging mode is smaller than the normal charging speed.
  6. 根据权利要求4所述的充电控制方法,其特征在于,在将所述电子设备设置为第二充电模式之前,所述方法还包括:The charging control method according to claim 4, wherein before setting the electronic device to the second charging mode, the method further includes:
    确定所述电子设备的电量小于所述电量阈值。It is determined that the power of the electronic device is less than the power threshold.
  7. 根据权利要求6所述的充电控制方法,其特征在于,当确定所述电子设备的电池电量大于或等于第一阈值时,所述方法还包括:The charging control method according to claim 6, wherein when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, the method further includes:
    关闭所述电子设备上未关闭的应用程序。Close applications that are not closed on said electronic device.
  8. 根据权利要求6所述的充电控制方法,其特征在于,当确定所述电子设备的电池电量大于或等于第一阈值时,所述方法还包括:The charging control method according to claim 6, wherein when it is determined that the battery power of the electronic device is greater than or equal to the first threshold, the method further includes:
    停止充电,并放电直至所述电子设备的电池电量等于所述电量阈值。Stop charging and discharge until the battery power of the electronic device is equal to the power threshold.
  9. 根据权利要求4所述的充电控制方法,其特征在于,所述根据所述睡眠状态调整所述电子设备的充电模式还包括:The charging control method according to claim 4, wherein adjusting the charging mode of the electronic device according to the sleep state further includes:
    当确定到达重启充电时间时,以所述第二充电模式充电,所述重启充电时间早于 所述电子设备的用户的醒来时间。When it is determined that the restart charging time is reached, charging is performed in the second charging mode, and the restart charging time is earlier than The waking time of the user of the electronic device.
  10. 根据权利要求9所述的充电控制方法,其特征在于,所述当确定到达重启充电时间时,以所述第二充电模式充电之前,还包括:The charging control method according to claim 9, wherein when it is determined that the restart charging time is reached and before charging in the second charging mode, the method further includes:
    确定所述电子设备的用户的所述醒来时间;determining the wake-up time of the user of the electronic device;
    根据所述电子设备的电池电量确定以所述第二充电模式充电至满电状态所需的充电时长;Determine the charging time required to charge to a fully charged state in the second charging mode according to the battery power of the electronic device;
    将所述醒来时间减去所述充电时长确定为所述重启充电时间。The restarting charging time is determined by subtracting the charging time from the waking time.
  11. 根据权利要求10所述的充电控制方法,其特征在于,所述确定所述电子设备的用户的醒来时间包括:The charging control method according to claim 10, wherein determining the wake-up time of the user of the electronic device includes:
    根据当前日期以及预先训练好的睡眠习惯模型确定所述电子设备的用户的所述醒来时间。The wake-up time of the user of the electronic device is determined based on the current date and a pre-trained sleep habit model.
  12. 根据权利要求10所述的充电控制方法,其特征在于,当所述电子设备存储有起床闹钟时间时,所述确定所述电子设备的用户的醒来时间包括:The charging control method according to claim 10, wherein when the electronic device stores a wake-up alarm time, determining the wake-up time of the user of the electronic device includes:
    将所述电子设备存储的起床闹钟时间确定为用户的所述醒来时间。The wake-up alarm time stored in the electronic device is determined as the user's wake-up time.
  13. 根据权利要求11所述的充电控制方法,其特征在于,在根据当前日期以及预先训练好的睡眠习惯模型确定用户的所述醒来时间之前,所述方法包括:The charging control method according to claim 11, characterized in that before determining the user's wake-up time based on the current date and a pre-trained sleep habit model, the method includes:
    获取所述电子设备的用户的睡眠数据,所述睡眠数据包括时间以及所述时间对应的睡眠状态;Obtain sleep data of the user of the electronic device, where the sleep data includes time and sleep state corresponding to the time;
    根据所述睡眠数据对睡眠习惯模型进行训练,以得到训练好的所述睡眠习惯模型。A sleep habit model is trained according to the sleep data to obtain the trained sleep habit model.
  14. 根据权利要求11所述的充电控制方法,其特征在于,在根据当前日期以及预先训练好的睡眠习惯模型确定用户的所述醒来时间之前,所述方法包括:The charging control method according to claim 11, characterized in that before determining the user's wake-up time based on the current date and a pre-trained sleep habit model, the method includes:
    获取所述电子设备的用户的睡眠数据,所述睡眠数据包括时间以及所述时间对应的睡眠状态;Obtain sleep data of the user of the electronic device, where the sleep data includes time and sleep state corresponding to the time;
    发送所述睡眠数据至服务器;Send the sleep data to the server;
    获取所述服务器根据所述睡眠数据训练好的所述睡眠习惯模型。Obtain the sleep habit model trained by the server based on the sleep data.
  15. 一种电子设备,其特征在于,包括:处理器、收发装置及充电管理模块;An electronic device, characterized by including: a processor, a transceiver device and a charging management module;
    所述处理器,用于对所述电子设备进行充电检测;The processor is used to perform charging detection on the electronic device;
    所述收发装置,用于在所述处理器检测到所述电子设备接入充电适配器后,获取与所述电子设备建立通信连接的至少一个智能设备的监测参数,所述至少一个智能设备包括环境参数监测设备、穿戴设备,所述监测参数包括所述电子设备的用户所在环境的环境参数、所述电子设备的用户的人体生理参数;The transceiver device is configured to obtain monitoring parameters of at least one smart device that establishes a communication connection with the electronic device after the processor detects that the electronic device is connected to a charging adapter. The at least one smart device includes an environmental Parameter monitoring equipment and wearable equipment, the monitoring parameters include environmental parameters of the environment where the user of the electronic device is located, and human physiological parameters of the user of the electronic device;
    所述处理器,还用于根据所述监测参数确定所述用户的作息状态;The processor is also configured to determine the work and rest status of the user according to the monitoring parameters;
    所述处理器还用于根据所述用户的作息状态控制所述充电管理模块调整所述电子设备的充电速度。The processor is also configured to control the charging management module to adjust the charging speed of the electronic device according to the user's work and rest status.
  16. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1~14任一项所述的充电控制方法。 A computer-readable storage medium, characterized by including computer instructions, which when the computer instructions are run on an electronic device, cause the electronic device to execute the charging control method according to any one of claims 1 to 14.
PCT/CN2023/080341 2022-03-15 2023-03-08 Charging control method and electronic device WO2023174129A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210255558.9 2022-03-15
CN202210255558.9A CN116799884A (en) 2022-03-15 2022-03-15 Charging control method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023174129A1 true WO2023174129A1 (en) 2023-09-21

Family

ID=88022198

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/080341 WO2023174129A1 (en) 2022-03-15 2023-03-08 Charging control method and electronic device

Country Status (2)

Country Link
CN (1) CN116799884A (en)
WO (1) WO2023174129A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113131565A (en) * 2016-06-01 2021-07-16 华为技术有限公司 Charging method and terminal
CN113131544A (en) * 2019-12-31 2021-07-16 Oppo广东移动通信有限公司 Charging control method and device, electronic device and computer storage medium
CN113809808A (en) * 2021-10-21 2021-12-17 维沃移动通信有限公司 Charging control method and device for electronic equipment, electronic equipment and wearable equipment
CN113839427A (en) * 2020-06-05 2021-12-24 华为技术有限公司 Charging management method, electronic device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113131565A (en) * 2016-06-01 2021-07-16 华为技术有限公司 Charging method and terminal
CN113131544A (en) * 2019-12-31 2021-07-16 Oppo广东移动通信有限公司 Charging control method and device, electronic device and computer storage medium
CN113839427A (en) * 2020-06-05 2021-12-24 华为技术有限公司 Charging management method, electronic device and system
CN113809808A (en) * 2021-10-21 2021-12-17 维沃移动通信有限公司 Charging control method and device for electronic equipment, electronic equipment and wearable equipment

Also Published As

Publication number Publication date
CN116799884A (en) 2023-09-22

Similar Documents

Publication Publication Date Title
WO2021052263A1 (en) Voice assistant display method and device
WO2020211701A1 (en) Model training method, emotion recognition method, related apparatus and device
WO2020073288A1 (en) Method for triggering electronic device to execute function and electronic device
WO2021213151A1 (en) Display control method and wearable device
CN110543289A (en) Method for controlling volume and electronic equipment
WO2021052139A1 (en) Gesture input method and electronic device
CN113691271B (en) Data transmission method and wearable device
WO2021052070A1 (en) Frame rate identification method and electronic device
WO2021238460A1 (en) Risk pre-warning method, risk behavior information acquisition method, and electronic device
WO2022017474A1 (en) Task processing method and related apparatus
WO2021082815A1 (en) Display element display method and electronic device
WO2021238387A1 (en) Application execution method and apparatus
CN111522425A (en) Power consumption control method of electronic equipment and electronic equipment
KR20160084778A (en) Information sharing method depends on a situation and electronic device supporting the same
CN115525372B (en) Method and device for displaying interface
CN110658717B (en) Alarm clock control method, device, equipment and storage medium
CN114543313A (en) Air conditioner control method, server, air conditioner and user terminal
WO2022037555A1 (en) Physiological data acquisition method and apparatus, and wearable device
WO2022052897A1 (en) Method and device for adjusting memory configuration parameter
CN113440102A (en) Sleep apnea monitoring method and medium for electronic device
WO2023207667A1 (en) Display method, vehicle, and electronic device
WO2023174129A1 (en) Charging control method and electronic device
CN113838550A (en) Health data display method and electronic equipment
CN113986369B (en) Internet of things equipment control method and system, electronic equipment and storage medium
CN115083400A (en) Voice assistant awakening method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23769635

Country of ref document: EP

Kind code of ref document: A1