Charging control method and related device
By judging the placement status of the electronic device in the wireless charging device and adjusting the charging strategy, the problem that wireless charging devices cannot charge quickly is solved, achieving faster charging speed and better user experience.
Patent Information
- Application Number
- CN202311281853.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-04-04
AI Technical Summary
In some scenarios, wireless charging devices cannot enter fast charging mode, resulting in slower charging speed of electronic devices and reduced user experience.
By judging the placement state of the electronic device on the charging base, if it is in the horizontal position, a charging strategy different from the vertical position is adopted so that the charging base can easily enter the fast charging mode. The specific implementation method includes storing different parameters, such as quality factor Qr value and resonant frequency fr value in the electronic device and the wireless charging device, in order to adjust the charging efficiency in the horizontally released state.
It realizes greater charging freedom in the horizontal position of electronic devices, making it easier for the charging base to enter fast charging mode, quickly charge electronic devices, thereby improving user experience.
Smart Images

Figure CN119765673A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a charging control method and related devices. Background Art
[0002] Some electronic devices can support wireless charging, and users can place the electronic devices on the wireless charging device for charging. During the charging process, the wireless charging device can enter the normal charging mode or the fast charging mode.
[0003] However, in some scenarios, wireless charging devices cannot enter fast charging mode and cannot quickly charge electronic devices. Summary of the invention
[0004] The charging control method and related device provided in the embodiment of the present application can determine whether the electronic device is in a horizontal or vertical state on the charging base when the electronic device is wirelessly charged. When the electronic device is placed horizontally on the charging base, the electronic device can use a different charging strategy than when it is placed vertically. In this way, the electronic device can have greater freedom when placed horizontally, and the charging base can more easily enter the fast charging mode to quickly charge the electronic device, thereby improving the user experience.
[0005] In a first aspect, the charging control method provided by the embodiment of the present application includes:
[0006] At a first moment, the electronic device is placed on the wireless charging device, the electronic device includes a first wireless charging coil, the wireless charging device includes a second wireless charging coil, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a first distance, the electronic device determines that the electronic device is in a portrait state, and the electronic device or the wireless charging device uses a first parameter to determine that the fast charging mode is used for charging; at a second moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a second distance, the electronic device determines that the electronic device is in a landscape state, the electronic device or the wireless charging device uses a second parameter to determine that the fast charging mode is used for charging, and the second distance is less than or equal to the first distance; wherein the second parameter is different from the first parameter, and both the first parameter and the second parameter are used to reflect the first parameter. The charging efficiency of the first wireless charging coil and the second wireless charging coil is that the second moment is later than the first moment; at the third moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is the third distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, the third distance is greater than the first distance, and the third moment is later than the second moment; at the fourth moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is the fourth distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device uses the second parameter to determine that the slow charging mode is used for charging, the fourth distance is greater than the third distance, and the fourth moment is later than the third moment. In this way, the electronic device can have greater freedom in the horizontal state, and the charging base can more easily enter the fast charging mode.
[0007] In a possible implementation, the electronic device stores a first parameter and a second parameter, wherein the first parameter includes a first quality factor Qr value and / or a first resonant frequency fr value, and the second parameter includes a second quality factor Qr value and / or a second resonant frequency fr value, wherein the first quality factor Qr value is greater than the second quality factor Qr value, and the first resonant frequency fr value is less than the second resonant frequency fr value. In this way, the electronic device can have greater freedom in each placement state and achieve fast charging.
[0008] In a possible implementation, before the wireless charging device uses the second parameter to determine whether to use the fast charging mode for charging, it also includes: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device transmits the second parameter to the wireless charging device; the wireless charging device uses the second parameter to determine whether to use the fast charging mode for charging, including: the wireless charging device uses the second parameter to obtain a fast charging ratio, wherein the fast charging ratio is inversely proportional to the second quality factor Qr value, and the fast charging ratio is proportional to the second resonant frequency fr value; when the wireless charging device determines that the fast charging ratio is greater than or equal to the fast charging threshold, the wireless charging device determines to use the fast charging mode for charging. In this way, the wireless charging device can determine whether to enter the fast charging mode without adding a new judgment logic in the electronic device, reduce the execution logic of the electronic device, and save the computing power of the electronic device.
[0009] In a possible implementation, the electronic device uses a second parameter to determine whether to charge in fast charging mode, including: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device uses the second parameter to obtain a fast charging ratio, wherein the fast charging ratio is inversely proportional to the second quality factor Qr value, and the fast charging ratio is proportional to the second resonant frequency fr value; when the electronic device determines that the fast charging ratio is greater than or equal to the fast charging threshold, the electronic device transmits a message to the wireless charging device for instructing the wireless charging device to charge in fast charging mode; the wireless charging device determines to charge in fast charging mode based on the message for instructing the wireless charging device to charge in fast charging mode. In this way, the process of determining whether to enter fast charging mode in the mobile phone can be better compatible with the use of various charging base devices, and it is more convenient to improve the product experience from the user's perspective.
[0010] In one possible implementation, a first parameter and a second parameter are stored in the electronic device, the first parameter includes a first fast charge threshold, and the second parameter includes a second fast charge threshold, wherein the first fast charge threshold is greater than the second fast charge threshold. In this way, the first fast charge threshold and / or the second fast charge threshold can be flexibly adjusted in the electronic device, and different fast charge thresholds can be used in different placement states of the electronic device.
[0011] In a possible implementation, before the wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, it also includes: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device transmits a message to the wireless charging device indicating that the fast charging threshold is the second fast charging threshold; the wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, including: the wireless charging device obtains a fast charging ratio based on the quality factor Qr value and the resonant frequency fr value, wherein the fast charging ratio is inversely proportional to the quality factor Qr value, and the fast charging ratio is proportional to the resonant frequency fr value; when the wireless charging device determines that the fast charging ratio is greater than or equal to the second fast charging threshold, the wireless charging device determines to use the fast charging mode for charging. In this way, the fast charging threshold can be flexibly adjusted for various placement states of the mobile phone, so that the charging base can more easily enter the fast charging mode and charge the mobile phone quickly.
[0012] In a possible implementation, the electronic device uses a second parameter to determine whether to charge in fast charging mode, including: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device determines that the fast charging threshold is the second fast charging threshold; the electronic device obtains a fast charging ratio based on the quality factor Qr value and the resonant frequency fr value, wherein the fast charging ratio is inversely proportional to the quality factor Qr value, and the fast charging ratio is proportional to the resonant frequency fr value; when the electronic device determines that the fast charging ratio is greater than or equal to the second fast charging threshold, the electronic device transmits a message to the wireless charging device for instructing the wireless charging device to charge in fast charging mode; the wireless charging device determines to charge in fast charging mode based on the message for instructing the wireless charging device to charge in fast charging mode. In this way, the process of determining whether to enter the fast charging mode in the mobile phone can be better compatible with the use of various charging base devices, and it is more convenient to improve the product experience from the user's perspective.
[0013] In a possible implementation, the method further includes: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device reports to the cloud server information that the placement mode of the electronic device is in a horizontal screen state; when the electronic device determines that the electronic device is in a vertical screen state, the electronic device reports to the cloud server information that the placement mode of the electronic device is in a vertical screen state. In this way, the cloud server can perform big data statistics and analysis based on the information such as the placement mode of the mobile phone reported by the mobile phone, so as to facilitate subsequent improvements to related issues such as wireless charging when the mobile phone is in various placement modes, thereby improving the user experience.
[0014] In the second aspect, an embodiment of the present application provides a device for charging control, which may be an electronic device, or a chip or chip system in an electronic device. The device may include a processing unit. The processing unit is used to implement any method related to processing performed by the electronic device in the first aspect or any possible implementation of the first aspect. When the device is an electronic device, the processing unit may be a processor. The device may also include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit so that the electronic device implements the method described in the first aspect or any possible implementation of the first aspect. When the device is a chip or chip system in an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit so that the electronic device implements the method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or a storage unit in the electronic device located outside the chip (for example, a read-only memory, a random access memory, etc.).
[0015] Exemplarily, the processing unit is used to determine whether the electronic device is in a portrait mode, and is also used to determine whether the electronic device is in a landscape mode, and is specifically used to determine whether to charge in a fast charging mode, and is also used to determine whether to charge in a slow charging mode.
[0016] In a possible implementation, a first parameter and a second parameter are stored in the electronic device, the first parameter includes a first quality factor Qr value and / or a first resonant frequency fr value, and the second parameter includes a second quality factor Qr value and / or a second resonant frequency fr value, wherein the first quality factor Qr value is greater than the second quality factor Qr value, and the first resonant frequency fr value is less than the second resonant frequency fr value.
[0017] In a possible implementation manner, the processing unit is configured to transmit a second parameter to the wireless charging device.
[0018] In one possible implementation, the processing unit is used to obtain a fast charging ratio using a second parameter, and is also used to transmit a message to the wireless charging device to instruct the wireless charging device to charge using a fast charging mode when it is determined that the fast charging ratio is greater than or equal to a fast charging threshold.
[0019] In a possible implementation, a first parameter and a second parameter are stored in the electronic device, the first parameter includes a first fast charging threshold, and the second parameter includes a second fast charging threshold, wherein the first fast charging threshold is greater than the second fast charging threshold.
[0020] In a possible implementation, the processing unit is configured to transmit a message indicating that the fast charging threshold is a second fast charging threshold to the wireless charging device.
[0021] In one possible implementation, the processing unit is used to determine that the fast charging threshold is the second fast charging threshold, and is also used to obtain a fast charging ratio based on the quality factor Qr value and the resonant frequency fr value. Specifically, when the fast charging ratio is greater than or equal to the second fast charging threshold, the electronic device transmits a message to the wireless charging device to instruct the wireless charging device to charge using the fast charging mode.
[0022] In a possible implementation, the processing unit is used to report to the cloud server information that the placement mode of the electronic device is in the horizontal screen state, and is also used to report to the cloud server information that the placement mode of the electronic device is in the vertical screen state.
[0023] In a third aspect, an embodiment of the present application provides a terminal device, including a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.
[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instructions are stored. When the computer program or instructions are run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.
[0025] In a fifth aspect, an embodiment of the present application provides a computer program product including a computer program. When the computer program runs on a computer, the computer executes the method described in the first aspect or any possible implementation manner of the first aspect.
[0026] In a sixth aspect, the present application provides a chip or a chip system, the chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, a pin or a circuit, etc.
[0027] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
[0028] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0030] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of a scenario of wireless charging of a mobile phone provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of a charging control method provided in an embodiment of the present application;
[0033] Figure 5 A schematic diagram of a charging control method provided in an embodiment of the present application;
[0034] Figure 6 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0036] 1. Degree of freedom: The degree of freedom can be understood as the deviation range of the electronic device relative to the center position of the wireless charging device when the electronic device is wirelessly charged. The degree of freedom can include high-power circle degree of freedom and ordinary degree of freedom. Among them, the high-power circle degree of freedom can be understood as the deviation range of the electronic device relative to the center position of the wireless charging device when the electronic device is in the fast charging mode, and the ordinary degree of freedom can be understood as the deviation range of the electronic device relative to the center position of the wireless charging device when the electronic device is in the ordinary charging mode. The fast charging mode can also be called high-power mode, fast charging mode, super fast charging mode, etc., and the ordinary charging mode can also be called slow charging mode or slow charging mode.
[0037] Taking the high power circle degree of freedom as an example, the high power circle degree of freedom may include the degrees of freedom in the x-axis, y-axis, and z-axis directions. For example, the degree of freedom in the x-axis direction may be ±12 millimeters (mm), the degree of freedom in the y-axis direction may be ±10 mm, and the degree of freedom in the z-axis direction may be 7 mm, which is not limited in the embodiments of the present application.
[0038] 2. Terminology
[0039] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0040] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0041] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.
[0042] 3. Electronic equipment
[0043] The electronic device of the embodiment of the present application may also be a terminal device in any form. For example, the electronic device may include: a mobile phone, a tablet computer, a PDA, a laptop computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, an electronic device in a 5G network or a public land mobile communication network (public land mobile communication network) to be evolved in the future. Mobile network, PLMN) and the like, the embodiments of the present application are not limited to this.
[0044] As an example but not limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0045] In addition, in the embodiments of the present application, the electronic device may also be an electronic device in an Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network that interconnects people and machines and things.
[0046] The electronic devices in the embodiments of the present application may also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
[0047] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0048] For example, Figure 1 A schematic structural diagram of an electronic device is shown.
[0049] The electronic device 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, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0050] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented by hardware, software, or a combination of software and hardware.
[0051] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0052] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0053] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface, etc.
[0054] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0055] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, at least one application required for a function, etc. The data storage area may store data created during the use of the electronic device, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0056] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 140 is charging the battery 142, it can also power the electronic device through the power management module 141. For example, in an embodiment of the present application, the charging management module 140 can receive charging input from a wireless charging device to charge the electronic device.
[0057] The sensor module 180 may include a distance sensor, a temperature sensor, or an ambient light sensor, etc. For example, in the embodiment of the present application, the sensor module 180 may also include a gravity sensor, a gyroscope sensor, a direction sensor, a geomagnetic sensor, a rotation vector sensor, etc., wherein the gravity sensor may also be referred to as an acceleration sensor. The electronic device may obtain data in the x-axis, y-axis, and z-axis directions from the sensor module 180, and then calculate whether the electronic device is placed horizontally or vertically on the wireless charging device.
[0058] Figure 2 It is a software structure block diagram of the electronic device of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, the hardware abstraction layer (hardware adaptation layer, HAL), and the kernel layer.
[0059] The application layer can also be called the application layer, which can include a series of application packages. Figure 2 As shown, the application package may include applications such as phone, music, calendar, camera, game, memo, video, etc. Applications may include system applications and third-party applications.
[0060] The application framework layer can also be called the Framework layer. The Framework layer can provide an application programming interface (API) and a programming framework for the application layer's applications. The Framework layer can include some predefined functions.
[0061] like Figure 2 As shown, the Framework layer may include a window manager, a resource manager, a notification manager, a content provider, a view system, and the like.
[0062] Android runtime includes core libraries and virtual machines. Android runtime is responsible for the control and management of the Android system.
[0063] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0064] The application layer and the framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. For example, in the embodiment of the present application, the virtual machine can be used to obtain sensor data, determine the horizontal and vertical positions of electronic devices, and execute wireless charging strategies.
[0065] The system library can also be called the Native layer, which can include multiple functional modules, such as the media library, function library, and graphics processing library.
[0066] The hardware abstraction layer is an abstract structure between the kernel layer and the Android runtime. The hardware abstraction layer can be a package of hardware drivers, providing a unified interface for upper-layer applications to call.
[0067] The kernel layer is the layer between hardware and software. The kernel layer can include sensor drivers, camera drivers, audio drivers, etc.
[0068] It should be noted that the embodiments of the present application are only illustrated using the Android system as an example. In other operating systems (such as Windows system, IOS system, etc.), as long as the functions implemented by each functional module are similar to those in the embodiments of the present application, the solutions of the present application can also be implemented.
[0069] Some electronic devices can support wireless charging, and users can place the electronic device on a wireless charging device for charging. For ease of description, the following description will take the electronic device as a mobile phone as an example.
[0070] like Figure 3 As shown, when the mobile phone 301 is wirelessly charged, the mobile phone 301 can be placed vertically on the wireless charging device 302, such as Figure 3 As shown in a, at this time, the mobile phone 301 can be in a vertical screen state; the mobile phone 301 can also be placed horizontally on the wireless charging device 302, such as Figure 3 As shown in b, at this time, the mobile phone 301 can be in a horizontal screen state. Among them, the wireless charging device 302 can also be called a wireless charging base, a charging base or a base. The mobile phone 301 and the wireless charging device 302 can constitute a wireless charging system. During the wireless charging process, the wireless charging device 302 can enter a normal charging mode and a fast charging mode.
[0071] It can be understood that when the wireless charging device 302 enters the normal charging mode, the charging power provided by the wireless charging device 302 to the mobile phone 301 is relatively small, for example, the charging power may include 30 watts (W) or 5W, etc., and the charging speed of the mobile phone 301 is relatively slow; when the wireless charging device 302 enters the fast charging mode, the charging power provided by the wireless charging device 302 to the mobile phone 301 is relatively large, for example, the charging power may include 50W, etc., and the charging speed of the mobile phone 301 is relatively fast.
[0072] However, in some scenarios, when the mobile phone is placed vertically on the charging base, the charging base can enter the fast charging mode to charge the mobile phone quickly; when the mobile phone is placed horizontally on the charging base, the charging base does not enter the fast charging mode and cannot charge the mobile phone quickly.
[0073] This is because in some implementations, developers consider whether to enter fast charging mode based on the scenario where the phone is placed vertically on the charging base. In a possible implementation, taking the example of a mobile phone including a wireless charging coil, the wireless charging coil can also be called a charging coil or coil. When the mobile phone is placed vertically on the charging base for charging, if the coil in the mobile phone and the coil in the charging base are on the same vertical line, or the coil in the mobile phone and the coil in the charging base are in a preset offset range in the vertical direction, the charging base can enter fast charging mode to quickly charge the mobile phone. Among them, the coil in the mobile phone and the coil in the charging base are on the same vertical line, which can also be called that the coil in the mobile phone and the coil in the charging base are in a facing position.
[0074] In some scenarios, users may place their phones horizontally on the charging base. Since the coil inside the phone may not be in the middle of the phone, for example, the coil inside the phone is located at the bottom of the phone, when the phone is placed horizontally on the charging base, the coil inside the phone may not be directly opposite to the coil inside the charging base and may exceed the offset range. At this time, the charging base cannot enter the fast charging mode and cannot charge the phone quickly, resulting in a slower charging speed for the phone and a reduced user experience.
[0075] It is understandable that in the scenario where the mobile phone is placed vertically on the charging base, the mobile phone and / or the charging base may be set with parameters and charging strategies related to the vertical placement scenario, so that the charging base can enter the fast charging mode and charge the mobile phone quickly. When the mobile phone is placed horizontally on the charging base, if the wireless charging system uses the parameters and charging strategies related to the vertical placement scenario, the charging base may not be able to enter the fast charging mode because the coil in the mobile phone and the coil in the charging base are not in a facing position, making it impossible for the charging base to charge the mobile phone quickly. In other words, for the same charging strategy parameters, it is more difficult for the mobile phone to enter the fast charging mode when it is placed horizontally on the charging base than when it is placed vertically on the charging base.
[0076] In view of this, the charging control method provided in the embodiment of the present application can determine whether the electronic device is in a horizontal or vertical state on the charging base when the electronic device is wirelessly charged. When the electronic device is placed horizontally on the charging base, the electronic device can use a different charging strategy than when it is placed vertically. In this way, the electronic device can have greater freedom when placed horizontally, and the charging base can more easily enter the fast charging mode to quickly charge the electronic device, thereby improving the user experience.
[0077] In one possible implementation, the conditions for the charging base to enter the fast charging mode may include: (1) the charging base obtains the quality factor Q value, (2) the charging base obtains relevant parameters in the mobile phone, and (3) the charging base determines whether to enter the fast charging mode.
[0078] (1) The charging base obtains the quality factor Q value.
[0079] When a mobile phone is placed on the charging base, the charging base can send pulses to the mobile phone and receive the reflected pulses. Since the reflected pulses will be attenuated relative to the sent pulses, the charging base can obtain the quality factor Q value through the attenuation degree of the pulses. In other words, the quality factor Q value can reflect the attenuation degree of the pulses, and the Q value can be understood as the attenuation value of the pulses actually calculated by the charging base.
[0080] (2) The charging base obtains relevant parameters from the mobile phone.
[0081] When the mobile phone is placed on the charging base, the mobile phone can send some parameter values to the charging base. For example, the parameter values may include the quality factor Qr value, the resonant frequency fr value, and some other parameter values.
[0082] Among them, the Qr value can be understood as the quality factor Q value measured on both sides of the coil of the standard charging base when the mobile phone is placed on the standard charging base. The standard charging base can be understood as a charging base that follows the standard protocol. The Qr value can be a preset value in the mobile phone, and the Qr value can be understood as a value obtained through testing during the research and development stage. It is understandable that for the user's mobile phone, the Qr value can be understood as a fixed value. When the mobile phone is upgraded, the developer can modify the Qr value through the cloud server.
[0083] The resonant frequency fr value may be a preset value in the mobile phone, and the resonant frequency fr value may be understood as a value obtained through testing during the research and development stage. It is understandable that, for a user's mobile phone, the resonant frequency fr value may be understood as a fixed value.
[0084] It should be noted that the value of the resonant frequency fr needs to be adjusted according to the actual resonant frequency of the wireless charging system. For example, the value of the resonant frequency fr can be less than the actual resonant frequency of the wireless charging system. The actual resonant frequency is related to the relative position of the mobile phone and the charging base. The position of the mobile phone on the charging base is different, and the value of the actual resonant frequency may also be different.
[0085] When the charging base obtains the relevant parameters of the mobile phone, the charging base can calculate the Qp value based on these parameter values. Among them, the Qp value can be understood as the theoretical calculated value of the quality factor Q value mentioned above, or it can be understood as the attenuation value of the pulse when the mobile phone is placed on the charging base obtained by theoretical calculation. It can be understood that for a certain wireless charging system, the Qp value is not fixed, and the Qp is different if the mobile phone is placed in a different position relative to the charging base. If the charging bases in the wireless charging system are the same and the mobile phones are different, the Qp value can be different.
[0086] It should be noted that the Qp value may be proportional to the Qr value, and the Qp value may be inversely proportional to the resonant frequency fr value.
[0087] For example, the Qp value can satisfy the following formula:
[0088] Q p =Q m +k(f1′-f r ).
[0089] Wherein, k is the slope value preset in the charging base, and the specific value of the slope k is not limited in the embodiment of the present application. f1′ can be understood as the resonant frequency of the mobile phone placed on the actual charging base. The Qm value can be understood as the theoretical quality factor calculated by the charging base based on the resonant frequency fr when the mobile phone is placed on the actual charging base, and the Qm value can be proportional to the Qr value.
[0090] For example, the Qm value may satisfy the following formula:
[0091]
[0092] Among them, the Q1 value can be understood as the quality factor Q value when the standard charging base is empty, and the Q2 value can be understood as the quality factor Q value when the actual charging base is empty.
[0093] Based on the above formula, the Qp value can be obtained to satisfy the following formula:
[0094]
[0095] It can be known from the above formula that the Qp value may be proportional to the Qr value, and the Qp value may be inversely proportional to the resonant frequency fr value.
[0096] (3) The charging base determines whether to enter fast charging mode.
[0097] The charging base can obtain a fast charging ratio A based on the ratio of the Q value to the Qp value, and the fast charging ratio A can be used to determine whether to enter the fast charging mode.
[0098] Exemplarily, when the fast charge ratio A is greater than or equal to the fast charge threshold, the charging base can enter the fast charge mode, and the charging base can fast charge the mobile phone; when the fast charge ratio A is less than the fast charge threshold, the charging base can enter the normal charge mode, and the charging base cannot fast charge the mobile phone. The fast charge threshold may also be referred to as the fast charge threshold value, which may be pre-set by the mobile phone or the charging base. For example, the fast charge threshold may be 80%. The specific value of the fast charge threshold is not limited in the embodiments of the present application.
[0099] It can be understood that the fast charging ratio A can be proportional to the Q value, and the fast charging ratio A can be inversely proportional to the Qp value.
[0100] For example, the fast charge ratio A may satisfy the following formula: A=Q / Qp.
[0101] Exemplarily, when the mobile phone is in a vertical position on the charging base, taking the Q value as 80 and the fast charging threshold as 80%, when the Qp value is less than or equal to 100, the charging base can enter the fast charging mode.
[0102] When the mobile phone is placed on the charging base from a vertical position to a horizontal position, the Q value and the Qp value will change because the coil in the mobile phone and the coil in the charging base may not be in a directly opposite position.
[0103] The following is an example of both the Q value and the Qp value increasing. Among them, in the test, when the mobile phone is placed on the charging base A, when the mobile phone is moved from the middle of the charging base A to both sides, it can be obtained that the increase in the Qp value is greater than the increase in the Q value. Similarly, when the mobile phone is tested on multiple charging bases, it can be obtained that the increase in the Qp value is greater than the increase in the Q value. Based on the above test experience, it can be known that the increase in the Qp value is greater than the increase in the Q value. For example, when the Q value increases from 80 to 90, the Q value may increase from 100 to 120. As a result, the fast charge ratio A is less than the fast charge threshold of 80%, resulting in the inability to enter the fast charge mode when the mobile phone is in a horizontal state.
[0104] At this time, if you want the charging base to enter fast charging mode, you can reduce the value of Qp.
[0105] Since the Qp value is proportional to the Qr value, and the Qp value is inversely proportional to the resonant frequency fr value, based on the above formula of the fast charge ratio A, it can be known that the fast charge ratio A can be inversely proportional to the Qr value, and the fast charge ratio A can be proportional to the resonant frequency fr value. Therefore. In order to make the fast charge ratio A greater than or equal to the fast charge threshold, the Qr value can be reduced, and / or the resonant frequency fr value can be increased.
[0106] That is to say, when the mobile phone is placed horizontally on the charging base, different parameters can be set from those in the vertical placement scenario, and the charging strategy for the horizontal placement scenario can be adopted. In this way, the mobile phone can have greater freedom in the horizontal placement state, and the charging base can more easily enter the fast charging mode to quickly charge the mobile phone, thereby improving the user experience.
[0107] It is understandable that the fast charge ratio A may also be any variation of the above formula. For example, the fast charge ratio A may be a ratio of the Q value and / or Qp value after certain processing, such as the processing may include amplifying or reducing the Q value and / or Qp value by a certain multiple, increasing or decreasing a certain value, etc., which is not limited in the embodiments of the present application.
[0108] In another possible implementation, the charging base can set different fast charging thresholds for the scenario where the mobile phone is placed horizontally on the charging base. Exemplarily, when the mobile phone is placed horizontally on the charging base, the mobile phone can send information to the charging base to indicate that the mobile phone is in a horizontal state, and the charging base can set the fast charging threshold when the mobile phone is placed horizontally on the charging base to be lower than the fast charging threshold when the mobile phone is placed vertically on the charging base. For example, if the fast charging threshold when the mobile phone is placed vertically on the charging base is 80%, then the fast charging threshold when the mobile phone is placed horizontally on the charging base can be less than 80%. The specific value of the fast charging threshold is not limited in the embodiments of the present application. In this way, when the mobile phone is placed horizontally on the charging base, the charging base can more easily enter the fast charging mode and charge the mobile phone quickly.
[0109] In another possible implementation, the process of determining whether to enter the fast charging mode can be implemented in a mobile phone.
[0110] Exemplarily, the mobile phone can obtain a fast charge ratio A based on the ratio of the Q value to the Qp value, and can determine whether to enter the fast charge mode through the fast charge ratio A. The specific judgment process can refer to the relevant description of (3) judging whether to enter the fast charge mode in the above embodiment, and will not be repeated here. When the mobile phone determines that it can enter the fast charge mode, the mobile phone can send information to the charging base to indicate entering the fast charge mode, so that the charging base can quickly charge the mobile phone.
[0111] Alternatively, when the mobile phone is placed horizontally on the charging base, the mobile phone can set the fast charging threshold when the mobile phone is placed horizontally on the charging base to be lower than the fast charging threshold when the mobile phone is placed vertically on the charging base. The specific process of setting the fast charging threshold can refer to the relevant description in the above embodiment and will not be repeated here. In this way, the charging base can be made easier to enter the charging mode. When the mobile phone determines that it can enter the fast charging mode, the mobile phone can send information to the charging base to indicate entering the fast charging mode, so that the charging base can charge the mobile phone quickly.
[0112] It is understandable that since the mobile phone can more conveniently adjust the above-mentioned parameters such as the quality factor Qr value and the resonant frequency fr value through version upgrades, therefore, implementing the process of determining whether to enter the fast charging mode in the mobile phone can be better compatible with the use of various charging base devices, and more conveniently improve the product experience from the user's perspective.
[0113] Figure 4 A flow chart of a charging control method according to an embodiment of the present application is shown.
[0114] S401. Place the mobile phone on the charging base to start wireless charging.
[0115] In a possible implementation, the charging base may have a corresponding charging chip. When the mobile phone is placed on the charging base, the charging chip in the charging base may start running, and the charging chip may also report a message to the CPU of the mobile phone to indicate the start of charging. After the CPU obtains the message, it may execute step S402 to obtain sensor data.
[0116] S402: The CPU obtains the three-axis data reported by the sensor.
[0117] When the angle or position of the mobile phone changes, the sensor driver of the kernel layer can obtain the data of the mobile phone in the x-axis, y-axis and z-axis directions from the hardware sensor and pass the data to the CPU. The data in the x-axis, y-axis and z-axis directions can also be called three-axis data.
[0118] It is understandable that the mobile phone can obtain three-axis data from different hardware sensors. For example, the hardware sensors may include acceleration sensors, gyroscope sensors, direction sensors, geomagnetic sensors, rotation vector sensors, etc. The embodiments of the present application do not limit the specific hardware sensors used by the mobile phone.
[0119] S403: The CPU determines whether the device is in horizontal position.
[0120] The CPU can use the acceleration sensor to obtain three-axis data, and then determine whether the mobile phone is placed horizontally or vertically on the charging base. The specific method of determining whether the mobile phone is placed horizontally or vertically based on the three-axis data is not limited in the embodiment of the application.
[0121] When the CPU determines that the mobile phone is placed horizontally, step S404 may be executed; when the CPU determines that the mobile phone is placed vertically, step S406 may be executed.
[0122] S404, the CPU reports the dot information when the mobile phone is placed horizontally.
[0123] When the CPU determines that the mobile phone is in a horizontal state, it can report the mobile phone placement mode mode and related information when it is placed horizontally to the cloud server, and the related information can also be called dotting information or dotting data. Among them, the mobile phone placement mode mode can include vertical placement of the mobile phone, horizontal placement of the mobile phone, and horizontal placement of the mobile phone. For example, when the mobile phone is placed vertically, the mode can be 0, when the mobile phone is placed horizontally, the mode can be 1, and when the mobile phone is placed horizontally, the mode can be 2. It can be understood that the data type and specific value of the mobile phone placement mode mode are not limited in the embodiment of the present application.
[0124] The cloud server can perform big data statistics and analysis based on the phone placement mode and horizontal placement information reported by the phone, so as to facilitate subsequent improvements to related issues such as wireless charging when the phone is in the horizontal state, thereby improving the user experience.
[0125] S405: The CPU executes a corresponding horizontal wireless charging strategy.
[0126] The CPU can refer to the relevant description in the above embodiments for executing the corresponding horizontal wireless charging strategy. Exemplarily, in order to make it easier for the charging base to enter the fast charging mode when the electronic device is in the horizontal state, the CPU can set parameters that are different from those in the vertical scene. For example, in order to make the fast charging ratio A greater than or equal to the fast charging threshold, the CPU can reduce the value of Qr, and / or increase the value of the resonant frequency f. In this way, the charging base can more easily enter the fast charging mode and quickly charge the electronic device, thereby increasing the charging freedom of the electronic device and improving the user experience.
[0127] Optionally, the execution of step S404 and step S405 may not distinguish between the order of precedence, for example, step S404 and step S405 may be executed in parallel, or step S404 may be executed before step S405, or step S404 may be executed later than step S405, which is not limited in the embodiments of the present application.
[0128] S406. The CPU reports the dot information when the mobile phone is placed vertically.
[0129] When the CPU determines that the mobile phone is in a vertical position, it can report the mobile phone placement mode and related information when it is horizontal to the cloud server. For details, please refer to the description in the above step S404, which will not be repeated here. The cloud server can perform big data statistics and analysis based on the mobile phone placement mode and vertical placement information reported by the mobile phone, so as to facilitate subsequent improvements to related issues such as wireless charging when the mobile phone is in a vertical position, thereby improving the user experience.
[0130] S407: The CPU executes a corresponding vertical wireless charging strategy.
[0131] For the vertical placement wireless charging strategy, the wireless charging system can be set with corresponding parameters, so that when the mobile phone is placed vertically on the charging base for charging, if the coil in the mobile phone and the coil in the charging base are on the same vertical line, or the coil in the mobile phone and the coil in the charging base are in a vertically facing position, the charging base can enter the fast charging mode to quickly charge the mobile phone.
[0132] Optionally, the execution of step S406 and step S407 may not distinguish between the order of precedence, for example, step S406 and step S407 may be executed in parallel, or step S406 may be executed before step S407, or step S406 may be executed later than step S407, which is not limited in the embodiment of the present application.
[0133] The charging control method of the embodiment of the present application can, on the one hand, report the mobile phone placement mode and related information when placed horizontally or vertically to the cloud server. In this way, the cloud server can count the user's usage habits when placing the mobile phone based on the mobile phone placement mode, so as to optimize the wireless charging system; the cloud server can perform big data statistics and analysis based on the dot information when placed horizontally or vertically, so as to facilitate subsequent improvements to wireless charging and other related issues, thereby improving the user experience.
[0134] On the other hand, the charging control method of the embodiment of the present application can optimize the scenario where the mobile phone is placed horizontally on the charging base. For example, the CPU can set parameters different from the vertical placement scenario, so that when the electronic device is placed horizontally, the charging base can more easily enter the fast charging mode and quickly charge the electronic device, thereby increasing the charging freedom of the electronic device in the horizontal state and improving the user experience.
[0135] On the other hand, the charging control method of the embodiment of the present application can also be used in the case where there are multiple coils in the mobile phone or the charging base, and / or the coils in the mobile phone or the charging base are movable, and the embodiment of the present application is not limited thereto.
[0136] In addition, the charging control method of the embodiment of the present application can also be used in the case where the mobile phone is placed flat on the charging base, or other scenarios where the mobile phone is placed on the charging base, which is not limited by the embodiment of the present application. For example, when the mobile phone is placed flat on the charging base, the CPU can set parameters that match the flat-laying scene, so that when the electronic device is placed flat, the charging base can more easily enter the fast charging mode, quickly charge the electronic device, and improve the user experience.
[0137] The following specific embodiments are used to describe the method of the present application in detail. The following embodiments may be combined with each other or implemented independently, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0138] Figure 5 The charging control method of the embodiment of the present application is shown. The method includes:
[0139] S501. At a first moment, an electronic device is placed on a wireless charging device, the electronic device includes a first wireless charging coil, the wireless charging device includes a second wireless charging coil, a distance between a center position of the first wireless charging coil and a center position of the second wireless charging coil is a first distance, the electronic device determines that the electronic device is in a portrait state, and the electronic device or the wireless charging device uses a first parameter to determine that fast charging mode is used for charging.
[0140] In the embodiment of the present application, the electronic device may include the above Figure 3 In the corresponding embodiment of the mobile phone 301, the wireless charging device may include the above Figure 3 The first distance may include a distance at which the wireless charging device can be charged in a fast charging mode when the electronic device is in a vertical screen state.
[0141] It can be understood that, for some wireless charging coils with regular and symmetrical shapes, the center position of the wireless charging coil can be understood as the absolute center of the wireless charging coil; for some wireless charging coils with irregular or asymmetric shapes, the center position of the wireless charging coil may not be the absolute center of the wireless charging coil, for example, it may be a position that can reflect the charging efficiency, etc., which is not limited in the embodiments of the present application.
[0142] S502, at a second moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a second distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device uses a second parameter to determine that charging is to be performed in a fast charging mode, and the second distance is less than or equal to the first distance; wherein the second parameter is different from the first parameter, and both the first parameter and the second parameter are used to reflect the charging efficiency of the first wireless charging coil and the second wireless charging coil, and the second moment is later than the first moment.
[0143] In an embodiment of the present application, in a possible implementation, the first parameter and the second parameter can be understood as parameter values used to participate in the calculation of the fast charge ratio. Among them, the first parameter and the second parameter can both include a quality factor Qr value and / or a resonant frequency fr value, and the fast charge ratio can be understood as the fast charge ratio A in the above embodiment. The specific calculation method of the fast charge ratio A can refer to the relevant description in the above embodiment, and will not be repeated here.
[0144] It can be understood that when the first parameter and the second parameter are both quality factor Qr values, the first parameter may be greater than the second parameter; when the first parameter and the second parameter are both resonant frequency fr values, the first parameter may be less than the second parameter.
[0145] In another possible implementation, the first parameter and the second parameter can be understood as the fast charging threshold in the above embodiment, and the first parameter is greater than the second parameter. For example, if the first parameter is 80%, the second parameter may be less than 80%. The specific values of the first parameter and the second parameter are not limited in the embodiment of the present application.
[0146] The first parameter and the second parameter may also be other values for reflecting the charging efficiency of the first wireless charging coil and the second wireless charging coil, which is not limited in the embodiment of the present application.
[0147] S503, at a third moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a third distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device uses the second parameter to determine to use the fast charging mode for charging, the third distance is greater than the first distance, and the third moment is later than the second moment.
[0148] In the embodiment of the present application, the third distance may include a distance at which the wireless charging device can be charged in a fast charging mode when the electronic device is in a landscape state. It is understandable that if the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is the third distance, and the electronic device is in a portrait state, the wireless charging device may be charged in a fast charging mode or in a slow charging mode.
[0149] S504, at a fourth moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a fourth distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device uses the second parameter to determine that the slow charging mode is used for charging, the fourth distance is greater than the third distance, and the fourth moment is later than the third moment.
[0150] In the embodiment of the present application, the third distance may include the distance at which the wireless charging device uses a slow charging mode to charge when the electronic device is in a horizontal screen state. The slow charging mode can also be understood as the normal charging mode in the above embodiment.
[0151] When the electronic device is wirelessly charged, it can be determined whether the electronic device is in a horizontal or vertical state. When the electronic device is in a horizontal state, the electronic device can use a charging strategy different from that in a vertical state. In this way, the electronic device can have greater freedom in the horizontal state, and the wireless charging base can more easily enter the fast charging mode to quickly charge the electronic device, thereby improving the user experience.
[0152] Optional, in Figure 5 On the basis of the corresponding embodiment, the electronic device stores a first parameter and a second parameter, the first parameter includes a first quality factor Qr value and / or a first resonant frequency fr value, the second parameter includes a second quality factor Qr value and / or a second resonant frequency fr value, wherein the first quality factor Qr value is greater than the second quality factor Qr value, and the first resonant frequency fr value is less than the second resonant frequency fr value.
[0153] In the embodiment of the present application, the electronic device stores the first parameter and the second parameter, so that the value of the first parameter and / or the second parameter can be adjusted flexibly in the electronic device, and the electronic device can use different parameters in different placement states. In this way, the electronic device can have greater freedom in each placement state and achieve fast charging.
[0154] Optional, in Figure 5 On the basis of the corresponding embodiment, before the wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, it may also include: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device transmits the second parameter to the wireless charging device; the wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, which may include: the wireless charging device uses the second parameter to obtain a fast charging ratio, wherein the fast charging ratio is inversely proportional to the second quality factor Qr value, and the fast charging ratio is directly proportional to the second resonant frequency fr value; when the wireless charging device determines that the fast charging ratio is greater than or equal to the fast charging threshold, the wireless charging device determines to use the fast charging mode for charging.
[0155] In the embodiment of the present application, the process of the electronic device transmitting the second parameter to the wireless charging device can refer to the relevant description of (2) the charging base obtaining the relevant parameters in the mobile phone in the above embodiment, and will not be repeated here.
[0156] The wireless charging device uses the second parameter to obtain the fast charging ratio, and the process of the wireless charging device determining whether to use the fast charging mode for charging can refer to the relevant description of (3) in the above embodiment to determine whether to enter the fast charging mode, which will not be repeated here.
[0157] The wireless charging device uses the second parameter to determine whether to use the fast charging mode for charging, which can make it easier to enter the fast charging mode and quickly charge the electronic device. In addition, the wireless charging device can determine whether to enter the fast charging mode without adding judgment logic in the electronic device, thereby reducing the execution logic of the electronic device and saving the computing power of the electronic device.
[0158] Optional, in Figure 5 On the basis of the corresponding embodiment, the electronic device uses the second parameter to determine whether to use the fast charging mode for charging, which may include: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device uses the second parameter to obtain a fast charging ratio, wherein the fast charging ratio is inversely proportional to the second quality factor Qr value, and the fast charging ratio is directly proportional to the second resonant frequency fr value; when the electronic device determines that the fast charging ratio is greater than or equal to the fast charging threshold, the electronic device transmits a message to the wireless charging device for instructing the wireless charging device to use the fast charging mode for charging; the wireless charging device determines to use the fast charging mode for charging based on the message for instructing the wireless charging device to use the fast charging mode for charging.
[0159] In the embodiment of the present application, the mobile phone uses the second parameter to determine whether to enter the fast charging mode, and the second quality factor Qr value and the second resonant frequency fr value can be adjusted more conveniently through version upgrades. In this way, the process of determining whether to enter the fast charging mode in the mobile phone can be better compatible with the use of various charging base devices, and it is more convenient to improve the product experience from the user's perspective.
[0160] Optional, in Figure 5 On the basis of the corresponding embodiment, a first parameter and a second parameter are stored in the electronic device, the first parameter includes a first fast charging threshold, and the second parameter includes a second fast charging threshold, wherein the first fast charging threshold is greater than the second fast charging threshold.
[0161] In the embodiment of the present application, the electronic device stores the first parameter and the second parameter, so that the first fast charge threshold and / or the second fast charge threshold can be flexibly adjusted in the electronic device, and the electronic device can use different fast charge thresholds in different placement states. The first fast charge threshold is greater than the second fast charge threshold, which can give the electronic device greater freedom in the horizontal screen state, realize the fast charging function, and improve the user experience.
[0162] Optional, in Figure 5On the basis of the corresponding embodiment, before the wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, it may also include: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device transmits a message to the wireless charging device to indicate that the fast charging threshold is the second fast charging threshold; the wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, which may include: the wireless charging device obtains a fast charging ratio based on the quality factor Qr value and the resonant frequency fr value, wherein the fast charging ratio is inversely proportional to the quality factor Qr value, and the fast charging ratio is directly proportional to the resonant frequency fr value; when the wireless charging device determines that the fast charging ratio is greater than or equal to the second fast charging threshold, the wireless charging device determines to use the fast charging mode for charging.
[0163] In the embodiment of the present application, the wireless charging device uses the second fast charging threshold to determine whether to use the fast charging mode for charging. Please refer to the relevant description in another possible implementation in the above embodiment, and no further details will be given.
[0164] The charging base can use a different fast charging threshold when the phone is in landscape mode than in portrait mode. In this way, the fast charging threshold can be flexibly adjusted for various placement states of the phone, making it easier for the charging base to enter fast charging mode and quickly charge the phone.
[0165] Optional, in Figure 5 On the basis of the corresponding embodiment, the electronic device uses the second parameter to determine whether to use the fast charging mode for charging, which may include: when the electronic device determines that the electronic device is in a horizontal screen state, the electronic device determines that the fast charging threshold is a second fast charging threshold; the electronic device obtains a fast charging ratio based on the quality factor Qr value and the resonant frequency fr value, wherein the fast charging ratio is inversely proportional to the quality factor Qr value, and the fast charging ratio is directly proportional to the resonant frequency fr value; when the electronic device determines that the fast charging ratio is greater than or equal to the second fast charging threshold, the electronic device transmits a message to the wireless charging device for instructing the wireless charging device to use the fast charging mode for charging; the wireless charging device determines to use the fast charging mode for charging based on the message for instructing the wireless charging device to use the fast charging mode for charging.
[0166] In the embodiment of the present application, the mobile phone uses the second parameter to determine whether to enter the fast charging mode, and the second fast charging threshold can be adjusted more conveniently through version upgrades. In this way, the process of determining whether to enter the fast charging mode in the mobile phone can be better compatible with the use of various charging base devices, and it is more convenient to improve the product experience from the user's perspective.
[0167] Optional, in Figure 5 On the basis of the corresponding embodiments, the method may further include: when the electronic device determines that the electronic device is in a landscape state, the electronic device reports to the cloud server information that the placement mode of the electronic device is in a landscape state; when the electronic device determines that the electronic device is in a portrait state, the electronic device reports to the cloud server information that the placement mode of the electronic device is in a portrait state.
[0168] In the embodiment of the present application, the electronic device reports the placement mode of the electronic device to the cloud server, which can refer to the above Figure 4 The relevant descriptions of step S404 and step S406 in the corresponding embodiment are not repeated here.
[0169] The cloud server can perform big data statistics and analysis based on the mobile phone placement mode and other information reported by the mobile phone, so as to facilitate subsequent improvements to related issues such as wireless charging when the mobile phone is in various placement modes, thereby improving the user experience.
[0170] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0171] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the method steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0172] The embodiment of the present application can divide the functional modules of the device implementing the method according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware or in the form of software functional 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. There may be other division methods in actual implementation.
[0173] like Figure 6 FIG. 6 is a schematic diagram of a chip structure provided by an embodiment of the present application. The chip 600 includes one or more (including two) processors 601 , a communication line 602 , a communication interface 603 and a memory 604 .
[0174] In some implementations, the memory 604 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
[0175] The method described in the above embodiment of the present application can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 601. The above processor 601 can be a general processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 601 can implement or execute the methods, steps and logic block diagrams related to each processing disclosed in the embodiment of the present application.
[0176] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 604, and the processor 601 reads the information in the memory 604 and completes the steps of the above method in combination with its hardware.
[0177] The processor 601 , the memory 604 , and the communication interface 603 may communicate with each other via the communication line 602 .
[0178] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.
[0179] The embodiment of the present application also provides a computer program product including one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium may include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0180] The present application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0181] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.
[0182] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
Claims
1. A charging control method, characterized in that: The method comprises: At a first moment, an electronic device is placed on a wireless charging device, the electronic device includes a first wireless charging coil, the wireless charging device includes a second wireless charging coil, a distance between a center position of the first wireless charging coil and a center position of the second wireless charging coil is a first distance, the electronic device determines that the electronic device is in a portrait state, and the electronic device or the wireless charging device uses a first parameter to determine that a fast charging mode is used for charging; At a second moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a second distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device uses a second parameter to determine that the fast charging mode is used for charging, and the second distance is less than or equal to the first distance; wherein the second parameter is different from the first parameter, and the first parameter and the second parameter are both used to reflect the charging efficiency of the first wireless charging coil and the second wireless charging coil, and the second moment is later than the first moment; At a third moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a third distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device determines to use a fast charging mode for charging using the second parameter, the third distance is greater than the first distance, and the third moment is later than the second moment; At a fourth moment, the electronic device is placed on the wireless charging device, the distance between the center position of the first wireless charging coil and the center position of the second wireless charging coil is a fourth distance, the electronic device determines that the electronic device is in a horizontal screen state, the electronic device or the wireless charging device uses the second parameter to determine to use a slow charging mode for charging, the fourth distance is greater than the third distance, and the fourth moment is later than the third moment.
2. The method according to claim 1, characterized in that The electronic device stores the first parameter and the second parameter, wherein the first parameter includes a first quality factor Qr value and / or a first resonant frequency fr value, and the second parameter includes a second quality factor Qr value and / or a second resonant frequency fr value, wherein the first quality factor Qr value is greater than the second quality factor Qr value, and the first resonant frequency fr value is less than the second resonant frequency fr value.
3. The method according to claim 2, characterized in that Before the wireless charging device uses the second parameter to determine to use the fast charging mode for charging, the wireless charging device also includes: When the electronic device determines that the electronic device is in a horizontal screen state, the electronic device transmits the second parameter to the wireless charging device; The wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, including: The wireless charging device uses the second parameter to obtain a fast charging ratio, wherein the fast charging ratio is inversely proportional to the second quality factor Qr value, and the fast charging ratio is proportional to the second resonant frequency fr value; When the wireless charging device determines that the fast charging ratio is greater than or equal to the fast charging threshold, the wireless charging device determines to use the fast charging mode for charging.
4. The method according to claim 2, characterized in that: The electronic device uses the second parameter to determine that the fast charging mode is used for charging, including: When the electronic device determines that the electronic device is in a horizontal screen state, the electronic device uses the second parameter to obtain a fast charge ratio, wherein the fast charge ratio is inversely proportional to the second quality factor Qr value, and the fast charge ratio is proportional to the second resonant frequency fr value; When the electronic device determines that the fast charging ratio is greater than or equal to the fast charging threshold, the electronic device transmits a message to the wireless charging device for instructing the wireless charging device to charge in a fast charging mode; The wireless charging device determines to use the fast charging mode for charging based on the message for instructing the wireless charging device to use the fast charging mode for charging.
5. The method according to claim 1, characterized in that The first parameter and the second parameter are stored in the electronic device, the first parameter includes a first fast charging threshold, and the second parameter includes a second fast charging threshold, wherein the first fast charging threshold is greater than the second fast charging threshold.
6. The method according to claim 5, characterized in that Before the wireless charging device uses the second parameter to determine to use the fast charging mode for charging, the wireless charging device also includes: When the electronic device determines that the electronic device is in a horizontal screen state, the electronic device transmits a message indicating that the fast charging threshold is the second fast charging threshold to the wireless charging device; The wireless charging device uses the second parameter to determine that the fast charging mode is used for charging, including: The wireless charging device obtains a fast charging ratio based on the quality factor Qr value and the resonant frequency fr value, wherein the fast charging ratio is inversely proportional to the quality factor Qr value, and the fast charging ratio is proportional to the resonant frequency fr value; When the wireless charging device determines that the fast charging ratio is greater than or equal to the second fast charging threshold, the wireless charging device determines to use the fast charging mode for charging.
7. The method according to claim 5, characterized in that The electronic device uses the second parameter to determine that the fast charging mode is used for charging, including: When the electronic device determines that the electronic device is in a horizontal screen state, the electronic device determines that the fast charging threshold is the second fast charging threshold; The electronic device obtains a fast charge ratio based on the quality factor Qr value and the resonance frequency fr value, wherein the fast charge ratio is inversely proportional to the quality factor Qr value, and the fast charge ratio is proportional to the resonance frequency fr value; When the electronic device determines that the fast charging ratio is greater than or equal to the second fast charging threshold, the electronic device transmits a message to the wireless charging device for instructing the wireless charging device to charge in a fast charging mode; The wireless charging device determines to use the fast charging mode for charging based on the message for instructing the wireless charging device to use the fast charging mode for charging.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the electronic device determines that the electronic device is in the horizontal screen state, the electronic device reports to the cloud server information that the placement mode of the electronic device is the horizontal screen state; When the electronic device determines that the electronic device is in the portrait state, the electronic device reports information that the placement mode of the electronic device is the portrait state to the cloud server.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to perform the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the method according to any one of claims 1 to 8.
11. A computer program product, characterized in that The invention comprises a computer program, which, when being executed, enables an electronic device to execute the method according to any one of claims 1 to 8.