Wireless charging method and electronic equipment
By identifying the voice input scene and matching the noise reduction command, dynamically adjusting the charging power of the wireless charging device, the problem of fan noise interference during high-power charging is solved, and a faster and quieter charging process is achieved.
Patent Information
- Application Number
- CN202410340364.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-03-21
AI Technical Summary
In high-power wireless charging state, the noise generated by the fan interferes with the audio data acquisition of electrical equipment and affects the user experience.
By identifying the scene category to which the voice input scene belongs, matching different noise reduction commands, dynamically adjusting the charging power of the wireless charging device to reduce fan noise and ensure charging speed.
It effectively reduces fan noise interference, avoids the problem of too slow charging speed, and meets the needs of different usage scenarios.
Smart Images

Figure CN119275958A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wireless charging, and in particular to a wireless charging method and electronic device. Background Art
[0002] With the continuous development of wireless charging technology, more and more devices support wireless charging. After the power-consuming device (such as mobile phones, tablets, etc.) is placed on the wireless charging device (or wireless charger), the wireless charging device can convert electrical energy into electromagnetic waves to transmit energy to the power-consuming device. The higher the charging power of the wireless charging device, the faster the charging speed of the power-consuming device; and the higher the charging power of the wireless charging device, the higher the heat generated. In order to dissipate heat in time, a fan is installed on the wireless charging device.
[0003] However, when the power-consuming device is in a high-power wireless charging state, the noise generated by the fan in the wireless charging device during operation may affect the power-consuming device in collecting audio data, thereby interfering with the user's use of the power-consuming device. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a wireless charging method and an electronic device.
[0005] In some embodiments provided in the present application, the electronic device identifies the scene category to which the voice input scene belongs, matches different noise reduction instructions for different voice input scenes, and determines the charging power of the wireless charging device for the electronic device based on the noise reduction instructions. Since noise has different effects on different voice input scenes, different noise reduction instructions are matched for different voice input scenes, so that the electronic device can flexibly control the charging power of the charging device, reduce the fan noise when noise reduction is required, and ensure the charging power of the wireless charging device when noise reduction is not required, so as to avoid increasing the charging time of the electronic device, and meet the user's needs for different usage scenarios of the electronic device during the wireless charging process of the electronic device.
[0006] In a first aspect, the present application provides a wireless charging method, which is applied to an electronic device, wherein the electronic device is connected to a wireless charging device, and the wireless charging device includes a fan. The method includes: in response to the electronic device being in a voice input scene, obtaining a scene category corresponding to the voice input scene, the scene category including: a real-time voice input scene or a non-real-time voice input scene; obtaining a target noise reduction instruction matching the scene category, the charging power corresponding to the target noise reduction instruction being less than a first preset power, and the first preset power being the charging power of the wireless charging device when the electronic device is not in the voice input scene; determining a target charging power of the wireless charging device according to the target noise reduction instruction; and sending the target charging power to the wireless charging device so that the wireless charging device wirelessly charges the electronic device according to the target charging power.
[0007] In this way, when the electronic device is in a voice input scenario, the microphone of the electronic device will collect the noise generated by the fan in the wireless charging device during the process of collecting voice, which affects the voice quality collected by the electronic device. In this example, the scene category to which the voice input scenario of the electronic device belongs is identified, and different noise reduction instructions are determined for different voice input scenarios. The charging power corresponding to different noise reduction instructions is different, and the charging power corresponding to the noise reduction instruction (i.e., the target noise reduction instruction) is less than the first preset power. The first preset power is the power during normal charging. When the charging power of the wireless charging device is reduced, the fan speed therein is reduced or stopped accordingly, thereby reducing the noise of the wireless charging device during charging. In addition, since the charging power of the wireless charging device is not directly reduced when the voice input scenario is detected, but different noise reduction instructions are provided for different voice input scenarios, the flexibility of reducing the noise during voice input is increased, and the problem of slow charging speed in the voice input scenario is avoided as much as possible.
[0008] Exemplarily, the electronic device may be a mobile phone, a tablet computer, or the like.
[0009] Exemplarily, real-time voice input scenarios include voice calls between a mobile phone and other terminals; non-real-time voice input scenarios include recording audio, recording voice messages, etc.
[0010] Exemplarily, coils are provided in the electronic device and the wireless charging device, and when the electronic device is placed in the charging area of the wireless charging device, the wireless charging device is powered on. After the wireless charging device is powered on, a communication connection is established between the coil of the wireless charging device and the coil in the electronic device. The electronic device can exchange information with the wireless charging device through the coil.
[0011] Exemplarily, the wireless charging device uses a first preset power to charge the electronic device. The first preset power may be a power greater than 15W, such as 35W, 50W, etc. The first preset power may also be referred to as high power.
[0012] According to the first aspect, the electronic device includes a wireless charging module, an audio module and a perception module; according to the target noise reduction instruction, the target charging power of the wireless charging device is determined, including: in response to the target noise reduction instruction sent by the audio module, the wireless charging module obtains the current posture information of the electronic device from the perception module; the wireless charging module determines the target charging power according to the posture information and the target noise reduction instruction. In this way, the closer the microphone of the electronic device is to the fan, the greater the interference to the electronic device during voice collection; in this example, the posture information of the electronic device is added as a condition for determining the target charging power, which enriches the conditions for determining the target charging power and makes the determined target charging power more accurate.
[0013] Exemplarily, a wireless charging device is provided with a bracket and a card slot, and the electronic device is fixed by the bracket and the card slot. Optionally, the electronic device such as a mobile phone can be placed horizontally or vertically on the card slot; wherein, when the mobile phone is placed horizontally, the card slot fixes the plane composed of the long side and height (i.e., thickness) of the mobile phone; when the mobile phone is placed vertically, the card slot fixes the plane composed of the short side and height of the mobile phone.
[0014] Exemplarily, the charging area of the wireless charging device is circular, square, etc., and the mobile phone is placed horizontally in the charging area. When the mobile phone is placed horizontally, the plane formed by the long side and the short side of the mobile phone is parallel to the charging area.
[0015] According to the first aspect, the target noise reduction instruction includes a first instruction or a second instruction, the charging power corresponding to the first instruction is a third preset power, the charging power corresponding to the second instruction is a second preset power, the second preset power is less than the first preset power, and the third preset power is less than the second preset power; the wireless charging module determines the target charging power according to the posture information and the target noise reduction instruction, including: when the posture information indicates that the electronic device is in the first posture, the wireless charging module uses the charging power corresponding to the target noise reduction instruction as the target charging power of the wireless charging device; when the posture information indicates that the electronic device is in the second posture and the target noise reduction instruction is the first instruction, the wireless charging module determines the target charging power to be the second preset power; when the posture information indicates that the electronic device is in the second posture and the target noise reduction instruction is the second instruction, the wireless charging module determines the target charging power to be the first preset power; wherein, when the electronic device is in the first posture, the distance between the microphone and the fan in the electronic device is greater than the distance between the microphone and the fan when the electronic device is in the second posture.
[0016] In this way, the first instruction corresponds to the third preset power, and the second instruction corresponds to the second preset power; when the electronic device is in the first posture, the distance between the microphone and the fan is close, that is, the interference caused by the fan to the microphone is large, and the charging power indicated by the target noise reduction instruction is used as the target charging power, which can quickly reduce the speed of the fan and reduce the noise generated by the fan. When the electronic device is in the second posture, the distance between the microphone and the fan is greater than the distance between the microphone and the fan when the electronic device is in the first posture; the interference caused by the fan to the microphone is small, and the charging power is increased by one level based on the charging power indicated by the target noise reduction instruction, so that the charging speed can be increased as much as possible while the noise is controllable.
[0017] Exemplarily, the first posture is a posture in which the mobile phone is placed vertically on the wireless charging device, and the second posture is a posture in which the mobile phone is placed horizontally on the wireless charging device.
[0018] Exemplarily, the second preset power may be a standard charging power, and the range of the second preset power may be 5 to 15W; the third preset power is a low power, and the range of the third preset power is less than 5W.
[0019] According to the first aspect, in response to the electronic device being in a voice input scenario, a scene category corresponding to the voice input scenario is obtained, including: when the microphone is occupied by a preset call application, the audio module determines that the scene category corresponding to the voice input scenario is a real-time voice input scenario; when the microphone is not occupied by the preset call application, the audio module determines that the scene category corresponding to the voice input scenario is a non-real-time voice input scenario.
[0020] In this way, the electronic device can determine whether the current electronic device is in a real-time voice input scenario by judging whether the microphone is occupied by a preset call application. This judgment method is simple and fast.
[0021] For example, the preset call application is a phone application based on a SIM card call, a chat application (such as ), conference applications, etc.
[0022] According to the first aspect, when the audio module determines that the scene category corresponding to the voice input scene is a real-time voice input scene; the method also includes: in response to the microphone being in use, the audio module determines that the scene category corresponding to the voice input scene is a first real-time voice input scene; in response to the microphone being in a muted state, the audio module determines that the scene category corresponding to the voice input scene is a second real-time voice input scene; wherein the real-time voice input scene includes the first real-time voice input scene or the second real-time voice input scene. In this way, when the microphone is occupied by a preset call application, it is determined that the electronic device is in a real-time voice input scene; by subdividing the real-time voice input scene by the different states of the microphone, different real-time voice input scenes can be quickly distinguished;
[0023] Subsequently, there will be different noise reduction instructions for different real-time voice input scenarios, which can further improve the flexibility of noise reduction and increase the applicable scenarios of noise reduction.
[0024] According to the first aspect, obtaining a target noise reduction instruction that matches the scene category includes: in response to the electronic device being in the first real-time voice input scene, the audio module determines that the target noise reduction instruction is the first instruction; in response to the electronic device being in the second real-time voice input scene, the audio module determines that the target noise reduction instruction is the second instruction; in response to the electronic device being in the non-real-time voice input scene, the audio module determines that the target noise reduction instruction is the first instruction. In this way, when the electronic device is in the real-time voice input scene and the microphone is in a silent state, the microphone will not collect the noise of the fan. When the state of the microphone is switched from the silent state to the use state, due to the possible delay in the voice input scene detection, the audio module cannot promptly determine the first instruction corresponding to the microphone being in the use state, which will cause the fan to generate a large noise. In order to avoid this situation, when the microphone is in a silent state, the target noise reduction instruction is determined to be the second instruction, and the second preset power corresponding to the second instruction is less than the first preset power and greater than the third preset power, which can reduce the speed of the fan and reduce the noise of the fan. The electronic device is charged with the second preset power, and the charging speed can also be ensured to be not the lowest speed. When the microphone is in use, it indicates that the microphone is greatly affected by the fan at this time. By using the third preset power, the speed of the fan can be greatly reduced, reducing the influence of the fan on the microphone.
[0025] According to a first aspect, an electronic device includes a wireless charging module and an audio module, and the method further includes: the wireless charging module detects whether the wireless charging device meets a first condition and obtains a first detection result, the first condition being that the wireless charging device supports operation at a first preset power and the fan is in place; the wireless charging module generates first information based on the first detection result, and the first information includes the first detection result; the wireless charging module transmits the first information to the audio module; in response to the first information sent by the wireless charging module, turning on or off a voice scene detection function, the voice scene detection function including: detecting whether the electronic device is in a voice input scene and obtaining the scene category of the voice input scene when the electronic device is in the voice input scene.
[0026] In this way, when the wireless charging device is within the charging power range and the fan is in place, there is a high probability that the fan will affect the voice input. By detecting whether the first condition is met, the scene where noise reduction is not required can be quickly excluded. The first information is used to indicate whether the wireless charging device meets the first condition. Based on the first information, the audio module can promptly turn on the voice input scene detection function so that the power of the wireless charging device can be reduced in time when noise reduction is required. Due to the high energy consumption of the voice input scene detection function, the audio module can also promptly turn off the voice input scene detection function based on the first information to reduce the power consumption of the electronic device.
[0027] According to the first aspect, the audio module turns on or off the voice scene detection function according to the first information, including: in response to the first information, the audio module stores a first detection result; when the first detection result indicates that the wireless charging device meets the first condition, the audio module detects whether the electronic device is connected to an external voice input device; when the electronic device is connected to the external voice input device, the audio module turns off the voice scene detection function; when the electronic device is not connected to the external voice input device, the audio module turns on the voice scene detection function.
[0028] In this way, when the audio module detects that the wireless charging device meets the first condition, it detects whether there is an external voice input device, and can promptly determine whether the current voice input scene requires noise reduction processing.
[0029] According to the first aspect, the method further includes: when the first detection result indicates that the wireless charging device does not meet the first condition, the audio module turns off the voice scene detection function. In this way, when the wireless charging device does not meet the first condition, the audio module can turn off the voice scene detection function in time to reduce unnecessary power consumption.
[0030] According to the first aspect, the wireless charging module generates first information according to the first detection result, including: when the first detection result indicates that the wireless charging device meets the first condition, the wireless charging module updates the state of the first flag bit to an enabled state, and the enabled state of the first flag bit is used to indicate that the wireless charging device meets the first condition; when the first detection result indicates that the wireless charging device does not meet the first condition, the state of the first flag bit is updated to an initial state, and the initial state of the first flag bit is used to indicate that the wireless charging device does not meet the first condition; the wireless charging module uses the state information of the first flag bit as the first information. In this way, the wireless charging module stores the first detection result through the first flag bit, and the storage method is simple and takes up little space.
[0031] According to the first aspect, in response to the first information, the audio module stores the first detection result, including: when the first information indicates that the state of the first flag bit is an enabled state, the audio module updates the state of the second flag bit to an enabled state, and the enabled state of the second flag bit is used to indicate that the wireless charging device meets the first condition; when the first information indicates that the state of the first flag bit is an initial state, the audio module updates the state of the second flag bit to an initial state, and the initial state of the second flag bit is used to indicate that the wireless charging device does not meet the first condition.
[0032] In this way, the audio module stores the result of whether the wireless charging device meets the first condition in real time through the second flag bit. After receiving the first information, the audio module reads the status information of the second flag bit according to the second preset interval, so that the voice input scene detection function can be turned on or off in time. Optionally, the second preset interval can be 1 second, 0.5 seconds, etc.
[0033] According to the first aspect, the wireless charging module detects whether the wireless charging device meets the first condition and obtains a first detection result, including: the wireless charging module obtains device information of the wireless charging device, the device information including: the wireless charging protocol supported by the wireless charging device and the in-place status information of the fan; the wireless charging module determines the charging power range of the wireless charging device according to the wireless charging protocol supported by the wireless charging device; when the charging power range of the wireless charging device includes a first preset power and the fan is detected to be in-place, the wireless charging module determines that the wireless charging device meets the first condition; when the charging power range of the wireless charging device does not include the first preset power or the fan is not in-place, the wireless charging module determines that the wireless charging device does not meet the first condition.
[0034] In this way, the electronic device can obtain the device information of the wireless charging device, which includes the wireless charging protocol supported by the wireless charging device. Based on the wireless charging protocol, the electronic device can learn the charging power range of the wireless charging device and then determine whether the wireless charging device supports high-power charging. The method for determining whether the first condition is met is simple.
[0035] According to the first aspect, in response to the electronic device being in a voice input scene, before obtaining the scene category corresponding to the voice input scene, the method further includes: when the microphone is in an occupied state, the audio module determines that the electronic device is in the voice input scene. In this way, the audio module determines whether the electronic device is in the voice input scene by whether the microphone is occupied, and the judgment method is simple and accurate.
[0036] According to the first aspect, after the audio module turns on the voice input scene detection function, the method also includes: when the microphone is in an unoccupied state, the audio module determines that the electronic device is not in a voice input scene; in response to the electronic device not being in a voice input scene, the audio module generates a shutdown instruction, and the shutdown instruction corresponds to a first preset power; the audio module transmits the shutdown instruction to the wireless charging module; the wireless charging module determines that the target charging power of the wireless charging device is the first preset power according to the shutdown instruction; the wireless charging device sends the first preset power to the wireless charging device, so that the wireless charging device wirelessly charges the electronic device according to the first preset power.
[0037] In this way, when the audio module detects that the electronic device is not in a voice input scenario, it executes a shutdown command, that is, instructs the wireless charging device to charge the electronic device according to the first preset power, so as to ensure that in other non-voice input scenarios, the electronic device is charged with high power to increase the charging speed.
[0038] According to the first aspect, the electronic device includes a wireless charging module and an audio module; according to the target noise reduction instruction, the target charging power of the wireless charging device is determined, including: in response to the target noise reduction instruction sent by the audio module, the wireless charging module obtains the charging power corresponding to the target noise reduction instruction as the target charging power of the wireless charging device. In this way, when the wireless charging device is not provided with a card slot, that is, when the electronic device is in a charging area in a certain posture, the audio module of the electronic device uses the charging power corresponding to the target noise reduction instruction as the target charging power of the wireless charging device.
[0039] In a second aspect, the present application provides a chip system, including a processor, for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the above-mentioned wireless charging method.
[0040] In a third aspect, the present application provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the wireless charging method corresponding to the first aspect and any one of the implementation methods of the first aspect.
[0041] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.
[0042] In a fourth aspect, the present application provides a computer-readable medium for storing a computer program. When the computer program is run on an electronic device, the electronic device executes the wireless charging method corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 is a schematic diagram showing an exemplary mobile phone making a voice call with another device in a high-power wireless charging state;
[0045] Figure 2 is a schematic diagram showing the structure of an electronic device;
[0046] Figure 3 is a software structure block diagram of an electronic device exemplarily shown;
[0047] Figure 4 is a flow chart showing an exemplary method of wireless charging;
[0048] Figure 5 is a flowchart exemplarily showing a method of determining whether a charging device meets the preconditions of a noise reduction strategy;
[0049] Figure 6 is a flowchart exemplarily showing an audio module turning on or off a voice scene detection function;
[0050] Figure 7 is a flowchart exemplarily showing an audio module detecting whether it is currently in a voice input scenario;
[0051] Figure 8 is a flowchart showing an exemplary audio module analyzing a real-time voice scene;
[0052] Fig. 9 is an exemplary diagram showing the interaction between a mobile phone and a charging device;
[0053] Fig.10 exemplarily shows a posture of a mobile phone being placed on a wireless charging device;
[0054] Fig.11 FIG. 1 is another exemplary posture of a mobile phone being placed on a wireless charging device. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0057] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.
[0058] 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 embodiments of 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.
[0059] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
[0060] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first described in conjunction with the accompanying drawings. The power-consuming device can be a mobile phone, a tablet computer, a bracelet, a watch, etc. For the sake of ease of description, the power-consuming device in the embodiments of the present application is described using a mobile phone as an example. The wireless charging device is Figure 1 The wireless charging device with a bracket shown in the figure is taken as an example. It can be understood that Figure 1 What is shown is only a shape of a wireless charging device, which is an example listed for a better understanding of the technical solution of this embodiment and is not the only limitation to this embodiment. In actual application scenarios, the wireless charging device may also not contain a bracket, such as a disc-shaped wireless charging device.
[0061] Combine the following Figure 1 Describes the process of a mobile phone making voice calls with other devices while in high-power wireless charging state.
[0062] See also Figure 1 Exemplarily, the user places the mobile phone 100 on the bracket of the wireless charging device 101 and fixes it by the card slot. After the wireless charging device 101 detects that there is a device to be charged, it triggers power-on. After the wireless charging device 101 is powered on, it interacts with the mobile phone 100 for the wireless charging protocol. After the mobile phone 100 and the wireless charging device 101 complete the wireless charging protocol, the wireless charging device 101 is instructed to wirelessly charge the mobile phone 100 at high power. In this example, the high power can be a charging power greater than 15W, for example, a charging power of 50W. The high power supported by wireless charging devices from different manufacturers may be different. For example, the wireless charging device of manufacturer A supports a charging power of 50W, and the wireless charging device of manufacturer B supports a charging power of 60W.
[0063] A fan is installed in the wireless charging device so that the wireless charging device can dissipate the heat generated during the wireless charging process in a timely manner. Optionally, the wireless charging device can start the fan when starting the wireless charging. Optionally, the speed of the fan in the wireless charging device is proportional to the charging power, that is, the higher the charging power of the wireless charging device, the higher the speed of the fan in the wireless charging device.
[0064] In this example, the wireless charging device charges the mobile phone wirelessly at a charging power of 50W. When the wireless charging device charges the mobile phone at a high power, the fan runs at a high speed. Figure 1 As shown in the figure, the mobile phone is in a high-speed wireless charging state. When the user uses the mobile phone to make a real-time call with other terminal users, the microphone of the mobile phone starts to collect the user's voice and the noise generated by the high-speed rotation of the fan. Since the mobile phone microphone collects the noise generated by the fan and the user's voice at the same time, the user's call quality is affected.
[0065] In view of this, an embodiment of the present application provides a method for wireless charging. The method can be performed by an electronic device with a wireless charging function. The electronic device with a wireless charging function can be a mobile phone or a tablet computer. Optionally, the electronic device with a wireless charging function can also be a wearable device, such as a smart watch, a bracelet, etc.
[0066] The electronic device can obtain device information of the charging device and the scene category of the voice input scene in which the electronic device is currently located, and determine the target charging power of the charging device according to the device information and the scene category of the voice input scene in which the electronic device is currently located. The electronic device instructs the charging device to charge the electronic device according to the target charging power.
[0067] Exemplarily, when the electronic device detects that the device information and the voice input scenario in which the electronic device is located meet the conditions of the first charging power, the charging device is instructed to charge the electronic device according to the second preset power; when the electronic device detects that the electronic device is not in the voice input scenario, the charging device is instructed to charge the electronic device according to the first preset power, and the first preset power is different from the second preset power and the first preset power is greater than the second preset power.
[0068] Exemplarily, the device information of the charging device may include the wireless charging protocol supported by the charging device and the status of the fan in the charging device. The voice input scenarios of the electronic device may include: call scenarios based on SIM cards; call scenarios based on network data, for example, calls made using cellular networks or Wi-Fi networks; recorded audio, recorded video and other scenarios. The scenario categories of the voice input scenario include real-time voice input scenarios and non-real-time voice input scenarios. For example: call scenarios made using cellular networks or Wi-Fi networks are real-time voice input scenarios, and scenes of recorded audio and recorded video are non-real-time voice input scenarios.
[0069] Exemplarily, wireless charging protocols may include: Qi-BPP protocol, Qi-EPP protocol and private wireless charging protocol. Private wireless charging protocols are wireless charging protocols set by various wireless charging device manufacturers. Usually, the charging power supported by private protocols is greater than 15W, and the specific supported charging power is defined by each manufacturer.
[0070] In the present application, when the electronic device is in a voice input scenario, the impact of the fan on the electronic device in the voice input scenario can be reduced by reducing the charging power and thereby reducing the fan speed.
[0071] In order to better describe the wireless charging method provided in the embodiment of the present application, a mobile phone is taken as an example of an electronic device with a charging function. Figure 2 Describe the structure of the mobile phone.
[0072] Figure 2 This is a schematic diagram of the structure of an electronic device 100 shown in an embodiment of the present application. It should be understood that: Figure 2 The electronic device 100 shown is only one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the drawings, may combine two or more components, or may have a different configuration of components. Figure 2 The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits. In this example, the electronic device 100 is taken as an example of a mobile phone.
[0073] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, 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, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0074] Figure 3 1 is a software structure diagram of the electronic device 100 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 three layers, from top to bottom, namely, the application layer, the application framework layer, and the kernel layer.
[0075] The application layer can include a series of application packages. Figure 3 As shown, the application package may include audio module, camera, gallery, calendar, video, and other applications.
[0076] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0077] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0078] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions for the electronic device 100. For example, the management of call status (including connected, hung up, etc.). The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of an icon or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0079] The kernel layer is the layer between hardware and software. The kernel layer can include wireless charging module, Wi-Fi driver, Bluetooth driver, audio driver and sensor driver, etc.
[0080] In this application, the wireless charging module can determine whether the charging device supports the wireless charging strategy in this application based on the device information of the charging device. When the wireless charging module determines that the charging device supports the wireless charging strategy, it notifies the audio module, and the audio module sends a noise reduction instruction to the wireless charging module based on the voice usage scenario of the electronic device. The wireless charging module instructs the charging device to adjust the charging power based on the noise reduction instruction.
[0081] Figure 4 It is a flow chart of a wireless charging method provided by the present application.
[0082] Step 401: The wireless charging module of the electronic device determines whether the charging device meets the preconditions of the noise reduction strategy based on the base information. If it is determined to be satisfied, step 402 is executed; if it is determined not to be satisfied, the process ends.
[0083] Step 402: When the audio module of the electronic device detects that no external voice input device is connected, the voice detection function is enabled.
[0084] Step 403: The audio module sends a target noise reduction instruction to the wireless charging module according to the voice detection result.
[0085] Step 404: The wireless charging module determines a target noise reduction strategy according to the target noise reduction instruction.
[0086] The implementation details of the wireless charging of this embodiment are described in detail below. The following content is only provided for the convenience of understanding and is not necessary for implementing this solution.
[0087] In this embodiment, the electronic device implementing the wireless charging method takes a mobile phone as an example. Figure 1 Take the wireless charging device 101 shown as an example, that is, the wireless charging device is provided with a bracket and a card slot for fixing the device to be charged. The mobile phone can be placed vertically on the bracket and fixed by the card slot. In this position, the plane formed by the short side and height (i.e., the thickness direction of the mobile phone) of the mobile phone contacts the card slot. The mobile phone can also be placed horizontally on the bracket and fixed by the card slot. In this position, the plane formed by the short side and height of the mobile phone contacts the card slot.
[0088] In step 401, before the wireless charging device wirelessly charges the mobile phone, a communication connection is established between the wireless charging device and the mobile phone through their respective coils. After the communication connection is established between the charging device and the mobile phone, the mobile phone can send a first request to the wireless charging device, and the first request is used to request to obtain the base information (i.e., device information) of the wireless charging device. In response to the first request, the wireless charging device returns the base information to the mobile phone. The base information includes: the wireless charging protocol supported by the wireless charging device and the status of the fan in place. The mobile phone determines whether the wireless charging device meets the preconditions (i.e., the first condition) of the noise reduction strategy based on the wireless charging protocol supported by the wireless charging device and the status of the fan in place.
[0089] When the mobile phone determines that the wireless charging device meets the preconditions of the noise reduction strategy, step 402 is executed; when the mobile phone determines that the wireless charging device does not meet the preconditions of the noise reduction strategy, the entire process ends.
[0090] Exemplarily, the preconditions of the noise reduction strategy may include: the wireless charging device supports high-power wireless charging of electronic devices and the fan in the wireless charging device is in place. The high power (i.e., the first preset power) may be a charging power greater than 15W, for example, 30W, 40W, 50W, 60W, etc.
[0091] Combine the following Figure 5 The process of determining whether the wireless charging device meets the preconditions of the noise reduction strategy in step 401 is described.
[0092] Step 501: The electronic device is placed on the wireless charging device, triggering the wireless charging device to power on.
[0093] Specifically, the user places the mobile phone on the wireless charging device, and when the wireless charging device detects that an object is placed in the charging area, it triggers power on. For example, the wireless charging device may have a built-in infrared sensor that can emit infrared signals and receive returned infrared signals. When an object is placed in the charging area (such as Figure 1 When the wireless charging device is within the range of the card holder in the wireless charging area, the infrared signal emitted by the infrared sensor will be blocked, causing the returned infrared signal to change. When the wireless charging device detects the change in the returned infrared signal, it determines that an object is placed in the charging area of the wireless charging device.
[0094] Exemplarily, the wireless charging device may operate at a first low power, where the first low power is lower than the power at which the wireless charging device operates normally.
[0095] Step 502: The electronic device establishes communication with the wireless charging device.
[0096] Specifically, the wireless charging device and the mobile phone each have a built-in coil. After the wireless charging device is powered on, the coil in the wireless charging device can continuously send a Ping signal to the electronic device. The Ping signal is used to request to establish communication with the mobile phone.
[0097] Exemplarily, the wireless charging device may send a Ping signal to the mobile phone at a first preset interval, where the first preset interval may be 1 second, 0.5 second, or the like.
[0098] In response to the Ping signal, the mobile phone sends a confirmation signal (i.e., ACK signal) to the wireless charging device through the coil. In response to the ACK signal returned by the mobile phone, the wireless charging device operates at normal power, thereby activating the wireless charging module in the mobile phone. When the charging device operates at normal power, it performs an initialization operation. After the wireless charging module of the mobile phone is activated, it performs an initialization operation.
[0099] After the wireless charging module of the mobile phone is initialized, the mobile phone establishes communication with the wireless charging device through the coil (i.e. the coil in the mobile phone and the coil in the charging device). When the mobile phone and the wireless charging device successfully establish communication, the mobile phone and the wireless charging device can interact with the wireless charging protocol.
[0100] In this example, the electronic device placed on the wireless charging device and capable of returning an ACK signal is referred to as a charging target, and the wireless charging device is referred to as a charging device.
[0101] Exemplarily, when there is no coil in the electronic device placed on the charging device, the electronic device placed on the charging device cannot receive the Ping signal, and cannot respond to the Ping signal (such as returning a confirmation signal). The charging device does not receive a confirmation signal (such as an ACK signal) within the first preset time length, and determines that the electronic device placed on the charging device is not a charging object, and the entire process can be terminated. Optionally, the first preset time length can be 100ms or 200ms. The first preset time length can be determined based on the time length for the charging object (i.e., the device placed on the charging device to be charged) to return the ACK signal. For example, the charging device can obtain the average of the time lengths of receiving the ACK signals returned by N charging objects as the first preset time length, and N can be 100, 1000, etc.
[0102] Step 503: The electronic device interacts with the charging device using a wireless charging protocol.
[0103] Specifically, after the wireless charging module of the mobile phone establishes communication with the charging device, it can send a first request to the charging device. The charging device can use the Qi-EPP protocol, the Qi-BPP protocol, and the private protocol set by the charging device manufacturer. The charging power supported by the Qi-EPP protocol and the Qi-BPP protocol is less than the high power (ie, the first preset power) in this example, and the charging speed is slow. In response to the first request, the charging device feeds back the base information of the charging device to the mobile phone. The base information includes the wireless charging protocol supported by the charging device and the in-place status of the fan.
[0104] Exemplarily, the wireless charging module of the mobile phone can obtain the power supply capability of the charging device according to the wireless charging protocol supported by the charging device. Optionally, the power supply capability includes the range of charging power of the charging device to charge the charging object.
[0105] For example, the Qi-EPP protocol specifies that the charging power range is 5W to 15W, and the Qi-BPP protocol specifies that the charging power is less than 5W; suppose private protocol A specifies that the charging power is 50W. The mobile phone obtains that the charging device supports the Qi-EPP protocol, Qi-BPP protocol, and private protocol A, and can determine that the charging power of the charging device includes: 0 to 5W, 5W to 15W, and 50W.
[0106] Step 504 : The electronic device determines whether the charging device supports high-power wireless charging and whether the fan is in place. If so, execute step 505 ; if not, execute step 507 .
[0107] Specifically, the wireless charging module of the mobile phone obtains the charging power range of the charging device and the status of the fan in place, and determines whether the charging device supports high-power wireless charging and the fan is in place. The fan's in place status includes: in place and out of place. When the wireless charging module of the mobile phone detects that the charging device does not support high power or detects that the fan is in an out of place state, it is determined that the charging device does not meet the preconditions of the noise reduction strategy. When the wireless charging module of the mobile phone detects that the charging device supports high power and the fan is in place, it is determined that the charging device meets the preconditions of the noise reduction strategy.
[0108] Step 505: The electronic device determines that the charging device supports the noise reduction strategy.
[0109] Step 506: The electronic device changes the state of the first flag bit to an enabled state.
[0110] Specifically, a first flag is stored in the wireless charging module of the mobile phone, and the first flag is used to indicate whether the charging device currently supports high-power wireless charging and the fan in the charging device is in place. The states of the first flag include: an initial state and an enabled state, wherein the initial state indicates that the charging device currently does not support high-power wireless charging or the fan in the charging device is not in place; and the enabled state indicates that the charging device currently supports high-power wireless charging and the fan in the charging device is in place.
[0111] When the wireless charging module of the mobile phone determines that the charging device supports the noise reduction strategy (i.e., meets the preconditions of the noise reduction strategy), the state of the first flag bit is changed to the enabled state, for example, tag1=0 indicates that the first flag bit is in the initial state, and tag1=1 indicates that the first flag bit is in the enabled state. It is understandable that the form of the first flag bit is not limited to the form in this example.
[0112] Step 507: The electronic device determines that the charging device does not support the noise reduction strategy.
[0113] Specifically, when the wireless charging module of the mobile phone determines that the charging device does not support the noise reduction strategy (that is, does not meet the prerequisites of the noise reduction strategy), the wireless charging method in the present application can be terminated.
[0114] It is understandable that when the wireless charging module of the mobile phone determines that the charging device does not support the noise reduction strategy, it can update the state of the first mark to the initial state, which is used to indicate that the charging device does not support the noise reduction strategy, that is, does not meet the prerequisite of the noise reduction strategy.
[0115] The above steps 501 to 507 are the process of the wireless charging module of the mobile phone determining whether the charging device meets the preconditions of the noise reduction strategy, and then the wireless charging module obtains the result of determining whether the charging device meets the preconditions of the noise reduction strategy, which is hereinafter referred to as the precondition determination result.
[0116] In this example, after obtaining the precondition judgment result, the wireless charging module of the mobile phone can notify the audio module of the mobile phone, so that the audio module turns on or off the voice scene detection function based on the precondition judgment result.
[0117] With respect to step 402, when the audio module receives a notification from the wireless charging module, the voice scene detection function can be turned on or off based on the notification. Figure 6 The process of turning on or off the voice scene detection function of the audio module of the mobile phone is specifically described.
[0118] Step 601: The wireless charging module of the mobile phone sends status information of a first flag to the audio module.
[0119] Specifically, after the wireless charging module of the mobile phone updates the state of the first flag bit, it can send first information to the audio module of the mobile phone, where the first information is information indicating whether the charging device supports the precondition of satisfying the noise reduction strategy.
[0120] Exemplarily, the first information may be current status information of the first flag. In this example, the first information takes the status information of the first flag as an example.
[0121] It is understandable that the wireless charging module of the mobile phone is located in the kernel layer. The wireless charging module transmits the first information to the audio module, and then passes the first information from the kernel layer to the upper-layer audio module, so that the audio module can promptly obtain information on whether the charging device meets the prerequisites of the noise reduction strategy.
[0122] Step 602: The audio module of the mobile phone updates the status of the second flag according to the status information of the first flag.
[0123] Specifically, the audio module stores a second flag bit, which is used to indicate whether the charging device currently supports high-power wireless charging and whether the fan in the charging device is in place. The states of the second flag bit include: an initial state and an enabled state, wherein the initial state is used to indicate that the charging device currently does not support high-power wireless charging or the fan in the charging device is not in place; and the enabled state is used to indicate that the charging device currently supports high-power wireless charging and the fan in the charging device is in place.
[0124] When the audio module receives the status information of the first flag, the status of the second flag can be updated according to the status information of the first flag. Exemplarily, when the status information of the first flag indicates that the charging device meets the preconditions of the noise reduction strategy, the audio module updates the status of the second flag to an enabled state; when the status information of the first flag indicates that the charging device does not meet the preconditions of the noise reduction strategy, the audio module updates the status of the second flag to an initial state.
[0125] For example, assuming that tag1=0 indicates that the first flag is in the initial state, tag1=1 indicates that the first flag is in the enabled state; tag2=0 indicates that the second flag is in the initial state, tag2=1 indicates that the second flag is in the enabled state. When the first information is "tag1=0", the audio module updates the state of the second flag (such as tag2) to the initial state, that is, tag2=0; when the first information is "tag1=1", the audio module updates the state of the second flag to the enabled state, that is, tag2=1.
[0126] Step 603: The audio module of the mobile phone determines whether the state of the second flag bit is enabled. When the audio module determines that the state of the second flag bit is enabled, step 604 is executed; when the audio module determines that the state of the second flag bit is not enabled, step 606 is executed.
[0127] Specifically, when the audio module of the mobile phone receives the first information, the audio module can be triggered to read the state of the second flag bit according to the second preset interval, and the second preset interval can be 1 second, 0.5 second, 0.1 second, etc. After the audio module obtains the state of the second flag bit, it determines whether the state of the second flag bit is an enabled state. When the audio module determines that the state of the second flag bit is an enabled state, it determines whether the current mobile phone is connected to an external voice input device, that is, executes step 604. When the audio module determines that the state of the second flag bit is an initial state, the voice scene detection function is turned off.
[0128] Exemplarily, the voice scene detection function of the mobile phone is used to detect in real time whether the current mobile phone is in a voice input scene, and whether the voice input scene in which the electronic device is located is a real-time voice input scene.
[0129] It is understandable that voice scene detection consumes high power. In order to prevent the mobile phone from being in a high power consumption state for a long time, the audio module promptly turns off the voice scene detection function when detecting that the state of the second flag bit is the initial state, thereby reducing the power consumption of the electronic device.
[0130] Step 604: The audio module of the mobile phone determines whether it is connected to the external voice input device. When the audio module determines that the mobile phone is connected to the external voice input device, step 605 is executed; when the audio module determines that the mobile phone is not connected to the external voice input device, step 606 is executed.
[0131] Specifically, the audio module detects whether the mobile phone is currently connected to an external voice input device. External voice input devices include: Bluetooth headsets, wired headsets, Bluetooth speakers, wireless screen projection devices, etc. When the audio module detects that a mobile phone is not currently connected to an external voice input device, step 605 is executed; when the audio module detects that the mobile phone is connected to an external voice input device, step 606 is executed.
[0132] Step 605: The audio module of the mobile phone starts the voice scene detection function.
[0133] Step 606: The audio module of the mobile phone turns off the voice scene detection function.
[0134] In step 403, after the audio module turns on the voice scene detection function, the audio module detects whether it is currently in a voice input scene and, when it is determined that the mobile phone is in a voice input scene, detects whether the voice input scene is a real-time voice input scene. Optionally, the real-time voice scene is a scene of real-time voice service performed by the mobile phone and other terminals.
[0135] Combine the following Figure 7 The process of determining target noise reduction instructions according to different voice input scenarios is specifically described.
[0136] Figure 7 The flowchart is a flowchart of an audio module detecting whether it is currently in a voice input scene, which is shown as an example.
[0137] Step 701: The audio module determines whether the electronic device is in a voice input scenario. When the audio module determines that the electronic device is in a voice input scenario, step 702 is executed; when the audio module determines that the electronic device is not in a voice input scenario, step 704 is executed.
[0138] Specifically, after the voice scene detection function is turned on, the audio module starts to detect whether the mobile phone is in a voice input scene. The audio module can obtain the state of the microphone (also called microphone). When it is detected that the microphone is in an occupied state, the audio module determines that the mobile phone is currently in a voice input scene; when it is detected that the microphone is in an unoccupied state, the audio module determines that the mobile phone is not in a voice input scene.
[0139] Exemplarily, when the audio module determines that the mobile phone is in a voice input scene, step 702 is further performed to analyze the voice input scene. In this example, the audio module analyzing the voice input scene may be to determine whether the voice input scene is a real-time voice input scene.
[0140] When the audio module determines that the mobile phone is not in a voice input scenario, it can generate an instruction to instruct to turn off the noise reduction function, which can be transmitted to the wireless charging module of the mobile phone. The wireless charging module of the mobile phone instructs the charging device not to charge the mobile phone according to the noise reduction strategy.
[0141] Step 702: The audio module analyzes the real-time voice input scene and generates an instruction for instructing to turn on the noise reduction function.
[0142] The process of the audio module analyzing the voice input scene can be referred to Figure 8 , the process includes:
[0143] Step 801: The audio module determines whether the electronic device is in a real-time voice input scenario. When the audio module determines that the electronic device is in a real-time voice input scenario, step 802 is executed; when the audio module determines that the electronic device is not in a real-time voice input scenario, step 804 is executed.
[0144] Specifically, the audio module can obtain information about the occupied object that occupies the microphone and detect whether the occupied object is a preset application; when the audio module detects that the occupied object is not a preset call application, it determines that the mobile phone is in a non-real-time voice input scenario; when the audio module detects that the occupied object is a preset call application, it determines that the mobile phone is in a real-time voice input scenario.
[0145] Exemplarily, the preset call applications include: telephone applications, chat applications (such as ), conference applications, etc.
[0146] Exemplarily, the information of the occupied object includes: the package name of the occupied object.
[0147] For example, the preset call applications include telephone applications and chat applications. Assume that user A opens the chat application in the mobile phone. When the user clicks the control for recording a voice message in the chat application, the virtual keyboard opens and occupies the microphone to collect the user's voice. The audio module obtains the package name of the occupied object (that is, the package name of the virtual keyboard), detects that the package name is not the package name of the preset call application, and determines that the current mobile phone is in a non-real-time voice input scenario.
[0148] Assume that user B is using the phone application to talk with user C. At this time, the audio module obtains the package name of the occupied object (that is, the package name of the phone application). The audio module detects that the package name is the package name of the preset call application and determines that the current mobile phone is in a real-time voice input scenario.
[0149] Exemplarily, when the audio module determines that the mobile phone is in a real-time voice input scenario, it further detects whether the microphone is in a muted state, that is, executes step 802 .
[0150] Exemplarily, when the audio module determines that the mobile phone is not in a real-time voice input scenario, it can determine a target noise reduction instruction corresponding to a non-real-time voice input scenario, that is, execute step 805.
[0151] Step 802: the audio module determines whether the microphone is in a muted state; when the audio module determines that the microphone is in a muted state, step 803 is executed; when the audio module determines that the microphone is not in a muted state, step 805 is executed.
[0152] Specifically, the audio module obtains the status information of the microphone. Optionally, the status of the microphone includes: a mute state and a use state. When the audio module detects that the microphone is in a mute state, the target noise reduction instruction is determined to be a pre-noise reduction instruction (i.e., a second instruction); when the audio module detects that the microphone is in use, the target noise reduction instruction is determined to be a direct noise reduction instruction (i.e., a first instruction).
[0153] Exemplarily, the direct noise reduction instruction is used to indicate that the charging power corresponding to the current scene of the electronic device is a first preset power, and the first preset power is a high power supported by the charging device. The pre-noise reduction instruction is used to indicate that the charging power corresponding to the current scene of the electronic device is a second preset power; the second preset power is less than the first preset power and greater than the third preset power.
[0154] Step 803: The audio module determines that the target noise reduction instruction is a pre-noise reduction instruction.
[0155] Step 804: The audio module determines that the scene is a non-real-time voice input.
[0156] Exemplarily, non-real-time voice input scenarios include: a scenario of sending a voice message, a scenario of recording audio, and a scenario of recording video.
[0157] Step 805: The audio module determines that the target noise reduction instruction is a direct noise reduction instruction.
[0158] The above steps 801 to 805 are the analysis process of the audio module for the voice input scene. When the audio module determines the target noise reduction instruction of the scene category of each voice input scene, step 704 can be executed, that is, the audio module transmits the target noise reduction instruction to the wireless charging module.
[0159] Step 703: The audio module generates an instruction for instructing to turn off the noise reduction function.
[0160] Exemplarily, the audio module determines that the target noise reduction instruction is an off instruction, and the off instruction is used to instruct the charging device to turn off the noise reduction function, that is, to instruct the charging device to charge the mobile phone according to the negotiated charging power.
[0161] Step 704: The audio module sends the updated instruction to the wireless charging module of the mobile phone.
[0162] Exemplarily, the target noise reduction instruction is an updated instruction, and the target noise reduction instruction may be: a pre-noise reduction instruction, a direct noise reduction instruction, or a closing instruction.
[0163] In step 404, after the wireless charging module of the mobile phone obtains the target noise reduction instruction, it can determine the target charging power of the charging device based on the posture of the charging device and the target noise reduction instruction.
[0164] In one example, the perception module in the mobile phone obtains the posture of the device; the wireless charging module of the mobile phone reads the current posture information of the mobile phone from the perception module. The posture information of the mobile phone includes horizontal posture, vertical posture and horizontal posture. Among them, when the charging device is provided with a bracket and the fan is provided on the base, the distance between the microphone and the fan of the charging device when the mobile phone is in the horizontal posture is greater than the distance between the microphone and the fan of the charging device when the mobile phone is in the vertical posture. Fig.10 , exemplarily, the charging device 1001 is provided with a bracket (such as 1001-1) and a card slot (such as 1001-2), and the bracket and the card slot are used to hold the mobile phone. The position of the mobile phone 1002 when placed horizontally on the bracket of the charging device 1001 is shown in FIG. Fig.10 10a in FIG. 10b. For example, the position of the mobile phone 1002 when placed vertically on the bracket of the charging device 1001 is shown in FIG. Fig.10 10b in.
[0165] The fan in this example is located in the base of the charging device. When the phone is in a vertical position (the first position), the microphone is close to the base of the charging device and is close to the fan. When the phone is in a horizontal position (the second position), the microphone is far away from the fan of the charging device.
[0166] Exemplarily, after the mobile phone obtains the position information of the mobile phone, the target charging power can be determined according to the position information of the mobile phone, the target noise reduction instruction and the first corresponding relationship. Among them, the first corresponding relationship is the corresponding relationship between the position information of the mobile phone, the target noise reduction instruction and the target charging power. The first corresponding relationship can be shown in Table 1:
[0167] Table 1
[0168]
[0169] Referring to Table 1, when the mobile phone is placed horizontally and the target noise reduction instruction is a pre-noise reduction instruction, the corresponding target charging power is the first preset power (i.e., the power corresponding to the high-speed fast charge in Table 1). When the mobile phone is placed horizontally and the target noise reduction instruction is a direct noise reduction instruction, the corresponding target charging power is the second preset power (i.e., the power corresponding to the standard fast charge in Table 1). When the mobile phone is placed horizontally and the target noise reduction instruction is a noise reduction off instruction, the corresponding target charging power is the first preset power.
[0170] When the mobile phone is placed vertically and the target noise reduction instruction is a pre-noise reduction instruction, the corresponding target charging power is the second preset power. When the mobile phone is placed vertically and the target noise reduction instruction is a direct noise reduction instruction, the corresponding target charging power is the third preset power (i.e., the power corresponding to the slow charging in Table 1). When the mobile phone is placed vertically and the target noise reduction instruction is a noise reduction off instruction, the corresponding target charging power is the first preset power.
[0171] Exemplarily, the first preset power is a power greater than 15W; the second preset power range is 5W to 15W; and the third preset power range is less than 5W.
[0172] In another example, when the charging area of the charging device only supports one placement posture of the electronic device, the wireless charging module of the mobile phone can directly use the charging power indicated by the target noise reduction instruction as the target charging power.
[0173] For example, refer to Fig.11 The charging area of the charging device is circular, and no card holder is set. It only supports the mobile phone to be placed horizontally in the charging area. When the mobile phone wireless charging module detects that the posture of the mobile phone is a horizontal posture, the wireless charging module of the mobile phone obtains the charging power indicated by the target noise reduction instruction as the target charging power. Assuming that the target noise reduction instruction is a direct noise reduction instruction, the wireless charging module determines that the target charging power is the first preset power. When the target noise reduction instruction is a pre-noise reduction instruction, the wireless charging module determines that the target charging power is the second preset power; when the target noise reduction instruction is a noise reduction off instruction, the wireless charging module determines that the target charging power is the third preset power.
[0174] Fig. 9 The following is an exemplary diagram of the interaction between a mobile phone and a charging device. Fig. 9 The process of performing noise reduction processing on a charging device in a voice call scenario is specifically described.
[0175] Step 901: The charging device sends a Ping signal to the wireless charging module of the mobile phone.
[0176] In this example, the electronic device is a mobile phone, and the charging device is Fig.10 Take the charging device in the example. Fig.10 The vertical position of 10b is placed on the charging device 1001.
[0177] When the charging device detects that an object is placed in the charging area, the charging device is powered on and sends a Ping signal to the wireless charging module of the mobile phone at a first preset interval.
[0178] Step 902: The wireless charging module of the mobile phone returns a confirmation signal to the charging device.
[0179] The wireless charging module of the mobile phone responds to the Ping signal and returns a confirmation signal (i.e., ACK signal) to the charging device. After receiving the ACK signal, the charging device operates at normal power, thereby activating the wireless charging module in the mobile phone. Both the charging device and the wireless charging module of the mobile phone perform initialization operations.
[0180] After initialization, the charging device and the wireless charging module of the mobile phone establish communication.
[0181] Step 903: The wireless charging module of the mobile phone requests the charging device to obtain device information of the charging device.
[0182] Exemplarily, the wireless charging module of the mobile phone sends a first request to the charging device, where the first request is used to request to obtain device information of the charging device.
[0183] Step 904: The charging device sends device information of the charging device.
[0184] Exemplarily, the charging device obtains its own device information, such as the wireless charging protocol supported by the charging device and the status of the fan, and sends the device information to the wireless charging module of the mobile phone.
[0185] Step 905: The wireless charging module of the mobile phone negotiates charging power with the charging device.
[0186] Exemplarily, after the wireless charging module of the mobile phone obtains the wireless charging protocol supported by the charging device, it can determine the charging power range of the charging device according to the provisions of the wireless charging protocol. A detailed description can be referred to step 503, which will not be repeated here.
[0187] It should be noted that after the wireless charging module of the mobile phone establishes communication with the charging device, it can perform a wireless charging protocol handshake with the charging device to negotiate the charging power for charging the mobile phone. The wireless charging module of the mobile phone sends the negotiated charging power to the charging device.
[0188] Step 906: The charging device returns a confirmation signal to the wireless charging module of the mobile phone.
[0189] Exemplarily, after receiving the negotiated charging power, the charging device returns a confirmation signal to the wireless charging module of the mobile phone.
[0190] It is understandable that after the charging device returns the confirmation signal, it can charge the mobile phone according to the negotiated charging power.
[0191] Step 907: The wireless charging module of the mobile phone changes the state of the first flag bit to an enabled state when confirming that the charging device supports the noise reduction strategy.
[0192] Specifically, the wireless charging module of the mobile phone can determine whether the current charging device supports the noise reduction strategy according to the device information of the charging device. The specific judgment process can refer to the relevant description in step 504, which will not be repeated here.
[0193] When the wireless charging module of the mobile phone confirms that the charging device supports the noise reduction strategy, the state of the first flag bit in the wireless charging module is changed to an enabled state.
[0194] Step 908: The wireless charging module of the mobile phone notifies the audio module of the mobile phone that the state of the first flag bit is enabled.
[0195] Specifically, the wireless charging module of the mobile phone can send the status information of the first mark to the audio module.
[0196] Step 909: The audio module determines whether the mobile phone is connected to an external voice input device. When the audio module determines that the mobile phone is not connected to an external voice input device, step 910 is executed; when the audio module determines that the mobile phone is connected to an external voice input device, the process ends.
[0197] Specifically, after receiving the status information of the first flag bit, the audio module changes the status of the second flag bit in the audio module to an enabled state according to the status information of the first flag bit.
[0198] Exemplarily, when the audio module receives the status information of the first flag, the audio module is triggered to read the status of the second flag according to the second preset interval, and the second preset interval can be 1 second, 0.5 second, 0.1 second, etc. After the audio module obtains the status of the second flag, it determines whether the second flag is in an enabled state. When the audio module detects that the status of the second flag is in an enabled state, step 910 is executed. When the audio module detects that the status of the second flag is not in an enabled state, the voice scene detection function is turned off.
[0199] Step 910: The audio module starts the voice scene detection function.
[0200] Exemplarily, after the voice scene detection function is turned on, the audio module will detect in real time whether the mobile phone is currently in a voice input scene, and determine whether it is in a real-time voice input scene when the mobile phone is in a voice input scene.
[0201] The process of audio module performing voice scene detection can be referred to Figure 7 Related description in .
[0202] Step 911: The audio module determines a target noise reduction instruction based on the detection result.
[0203] Exemplarily, the audio module obtains the detection result of the voice scene detection, and the detection result includes: the voice input scene of the current mobile phone. For the specific process, please refer to Figure 7 and Figure 8 The process of determining the target noise reduction instruction in will not be described in detail here.
[0204] Step 912: The audio module sends a target noise reduction instruction to the wireless charging module.
[0205] Step 913: The wireless charging module determines the target charging power according to the target noise reduction instruction.
[0206] For this step, please refer to the relevant description in step 404, which will not be repeated here.
[0207] Step 914: The wireless charging module negotiates the target charging power with the charging device.
[0208] Specifically, the wireless charging module of the mobile phone sends the determined target charging power to the charging device.
[0209] Step 915: The charging device returns a confirmation signal to the wireless charging module.
[0210] Exemplarily, after receiving the target charging power, the charging device can return a confirmation signal to the wireless charging module of the mobile phone and wirelessly charge the mobile phone according to the target charging power.
[0211] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments 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. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
[0212] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected by lines. For example, the interface circuit can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit can be used to send signals to other devices (such as processors). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor 2001. When the instructions are executed by the processor, the electronic device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.
[0213] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the wireless charging method in the above-mentioned embodiment. The storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0214] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the wireless charging method in the above-mentioned embodiment.
[0215] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding wireless charging method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0216] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.
[0217] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A wireless charging method, characterized in that: Applied to an electronic device, the electronic device is connected to a wireless charging device, the wireless charging device includes a fan, and the method includes: In response to the electronic device being in a voice input scene, acquiring a scene category corresponding to the voice input scene, the scene category including: a real-time voice input scene or a non-real-time voice input scene; Acquire a target noise reduction instruction matching the scene category, wherein the charging power corresponding to the target noise reduction instruction is less than a first preset power, and the first preset power is the charging power of the wireless charging device when the electronic device is not in a voice input scene; Determining a target charging power of the wireless charging device according to the target noise reduction instruction; The target charging power is sent to the wireless charging device, so that the wireless charging device wirelessly charges the electronic device according to the target charging power.
2. The method according to claim 1, characterized in that The electronic device comprises a wireless charging module, an audio module and a sensing module; Determining a target charging power of the wireless charging device according to the target noise reduction instruction includes: In response to the target noise reduction instruction sent by the audio module, the wireless charging module obtains the current posture information of the electronic device from the perception module; The wireless charging module determines the target charging power according to the posture information and the target noise reduction instruction.
3. The method according to claim 2, characterized in that The target noise reduction instruction includes a first instruction or a second instruction, the charging power corresponding to the first instruction is a third preset power, the charging power corresponding to the second instruction is a second preset power, the second preset power is less than the first preset power, and the third preset power is less than the second preset power; The wireless charging module determines the target charging power according to the posture information and the target noise reduction instruction, including: When the posture information indicates that the electronic device is in the first posture, the wireless charging module uses the charging power corresponding to the target noise reduction instruction as the target charging power of the wireless charging device; When the posture information indicates that the electronic device is in a second posture and the target noise reduction instruction is a first instruction, the wireless charging module determines that the target charging power is a second preset power; When the posture information indicates that the electronic device is in a second posture and the target noise reduction instruction is a second instruction, the wireless charging module determines that the target charging power is the first preset power; Wherein, when the electronic device is in the first posture, the distance between the microphone in the electronic device and the fan is greater than the distance between the microphone and the fan when the electronic device is in the second posture.
4. The method according to claim 3, characterized in that In response to the electronic device being in a voice input scene, obtaining a scene category corresponding to the voice input scene includes: When the microphone is occupied by a preset call application, the audio module determines that the scene category corresponding to the voice input scene is a real-time voice input scene; When the microphone is not occupied by a preset call application, the audio module determines that the scene category corresponding to the voice input scene is a non-real-time voice input scene.
5. The method according to claim 4, characterized in that In the case where the audio module determines that the scene category corresponding to the voice input scene is a real-time voice input scene; the method further includes: In response to the microphone being in use, the audio module determines that the scene category corresponding to the voice input scene is a first real-time voice input scene; In response to the microphone being in a mute state, the audio module determines that the scene category corresponding to the voice input scene is a second real-time voice input scene; The real-time voice input scenario includes a first real-time voice input scenario or a second real-time voice input scenario.
6. The method according to claim 5, characterized in that The acquiring of a target noise reduction instruction matching the scene category includes: In response to the electronic device being in a first real-time voice input scenario, the audio module determines that the target noise reduction instruction is the first instruction; In response to the electronic device being in a second real-time voice input scenario, the audio module determines that the target noise reduction instruction is a second instruction; In response to the electronic device being in a non-real-time voice input scenario, the audio module determines that the target noise reduction instruction is the first instruction.
7. The method according to any one of claims 1 to 6, characterized in that The electronic device includes a wireless charging module and an audio module, and the method further includes: The wireless charging module detects whether the wireless charging device meets a first condition to obtain a first detection result, wherein the first condition is that the wireless charging device supports operation at the first preset power and the fan is in an in-position state; The wireless charging module generates first information according to the first detection result, where the first information includes the first detection result; The wireless charging module transmits the first information to the audio module; In response to the first information sent by the wireless charging module, a voice scene detection function is turned on or off, and the voice scene detection function includes: detecting whether the electronic device is in a voice input scene and obtaining a scene category of the voice input scene when the electronic device is in the voice input scene.
8. The method according to claim 7, characterized in that The audio module turns on or off the voice scene detection function according to the first information, including: In response to the first information, the audio module stores the first detection result; When the first detection result indicates that the wireless charging device meets the first condition, the audio module detects whether the electronic device is connected to an external voice input device; When the electronic device is connected to an external voice input device, the audio module turns off the voice scene detection function; When the electronic device is not connected to an external voice input device, the audio module turns on the voice scene detection function.
9. The method according to claim 8, characterized in that The method further comprises: When the first detection result indicates that the wireless charging device does not meet the first condition, the audio module turns off the voice scene detection function.
10. The method according to claim 7, characterized in that The wireless charging module generates first information according to the first detection result, including: When the first detection result indicates that the wireless charging device meets the first condition, the wireless charging module updates the state of the first flag bit to an enabled state, and the enabled state of the first flag bit is used to indicate that the wireless charging device meets the first condition; When the first detection result indicates that the wireless charging device does not meet the first condition, updating the state of the first flag bit to an initial state, where the initial state of the first flag bit is used to indicate that the wireless charging device does not meet the first condition; The wireless charging module uses the state information of the first flag as the first information.
11. The method according to claim 10, characterized in that In response to the first information, the audio module stores the first detection result, including: When the first information indicates that the state of the first flag bit is an enabled state, the audio module updates the state of the second flag bit to an enabled state, and the enabled state of the second flag bit is used to indicate that the wireless charging device meets the first condition; When the first information indicates that the state of the first flag bit is an initial state, the audio module updates the state of the second flag bit to an initial state, and the initial state of the second flag bit is used to indicate that the wireless charging device does not meet the first condition.
12. The method according to claim 7, characterized in that The wireless charging module detects whether the wireless charging device meets a first condition and obtains a first detection result, including: The wireless charging module acquires device information of the wireless charging device, where the device information includes: a wireless charging protocol supported by the wireless charging device and information on the status of the fan; The wireless charging module determines the charging power range of the wireless charging device according to the wireless charging protocol supported by the wireless charging device; When the charging power range of the wireless charging device includes the first preset power and it is detected that the fan is in the on-position state, the wireless charging module determines that the wireless charging device meets the first condition; When the charging power range of the wireless charging device does not include the first preset power or the fan is not in the in-position state, the wireless charging module determines that the wireless charging device does not meet the first condition.
13. The method according to claim 6, characterized in that In response to the electronic device being in a voice input scene, before acquiring a scene category corresponding to the voice input scene, the method further includes: When the microphone is in an occupied state, the audio module determines that the electronic device is in a voice input scenario.
14. The method according to claim 6, characterized in that After the audio module turns on the voice input scene detection function, the method further includes: When the microphone is in an unoccupied state, the audio module determines that the electronic device is not in a voice input scenario; In response to the electronic device not being in a voice input scenario, the audio module generates a shutdown instruction, where the shutdown instruction corresponds to the first preset power; The audio module transmits the shutdown instruction to the wireless charging module; The wireless charging module determines, according to the shutdown instruction, that the target charging power of the wireless charging device is a first preset power; The wireless charging device sends the first preset power to the wireless charging device, so that the wireless charging device wirelessly charges the electronic device according to the first preset power.
15. The method according to claim 1, characterized in that The electronic device comprises a wireless charging module and an audio module; The step of determining the target charging power of the wireless charging device according to the target noise reduction instruction includes: In response to the target noise reduction instruction sent by the audio module, the wireless charging module acquires the charging power corresponding to the target noise reduction instruction as the target charging power of the wireless charging device.
16. A chip system, characterized in that: It includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the wireless charging method described in any one of claims 1 to 15.
17. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the wireless charging method according to any one of claims 1 to 15.
18. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed on an electronic device, the electronic device is enabled to execute the wireless charging method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Charging device and control method and device of charging equipment
CN111987761A
Voice control method and electronic equipment
CN113488042A
Charging seat heat dissipation control method and device, terminal equipment, charging seat and medium
CN115133595A
Charging control method of electronic equipment and electronic equipment
CN115706430A