Wireless charging method and electronic device
By identifying the voice input scene category and matching the noise reduction command to adjust the charging power, the problem of fan noise interference during wireless charging is solved, and the voice acquisition quality and charging efficiency are improved.
Patent Information
- Application Number
- CN202410340364.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2044-03-21
AI Technical Summary
During wireless charging, the noise generated by the fan interferes with the voice input of the electronic device and affects the user experience.
By identifying the voice input scene category, matching different noise reduction commands, adjusting charging power and reducing fan noise interference.
In voice input scenarios, flexibly control the charging power to reduce fan noise, improve voice acquisition quality, and avoid too slow charging speed.
Smart Images

Figure CN119275958B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless charging technology, 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 placing an electrical device (such as a mobile phone or tablet) on a wireless charging device (also known as a wireless charger), the wireless charging device can convert electrical energy into electromagnetic waves and transmit energy to the device. The higher the charging power of the wireless charging device, the faster the device can be charged; however, the higher the charging power of the wireless charging device, the more heat it generates. To ensure timely heat dissipation, the wireless charging device is equipped with a fan.
[0003] However, when the powered 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 device's collection of audio data, causing interference to the user's use of the powered 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 herein, an electronic device identifies the scene category to which a voice input scenario belongs, matches different noise reduction instructions for different voice input scenarios, and determines the charging power of a wireless charging device for the electronic device based on the noise reduction instructions. Because noise has different effects on different voice input scenarios, matching different noise reduction instructions for different voice input scenarios allows the electronic device to flexibly control the charging power of the charging device, reducing fan noise when noise reduction is needed and ensuring the charging power of the wireless charging device when noise reduction is not needed, thereby avoiding increasing the charging time of the electronic device and meeting the user's needs for different usage scenarios of the electronic device during the wireless charging process.
[0006] In a first aspect, the present application provides a wireless charging method, which is applied to an electronic device, where 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, where the scene category includes: a real-time voice input scene or a non-real-time voice input scene; obtaining a target noise reduction instruction that matches the scene category, where 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 the voice input scene; determining the 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 also collect the noise generated by the fan in the wireless charging device during the process of collecting voice, affecting the voice quality collected by the electronic device. In this example, the scene category of the voice input scenario of the electronic device 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 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] For example, the electronic device may be a mobile phone, a tablet computer, or the like.
[0009] For example, 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] For example, coils are provided in both the electronic device and the wireless charging device. When the electronic device is placed within the charging area of the wireless charging device, the wireless charging device is powered on. Once powered on, a communication connection is established between the coil of the wireless charging device and the coil of the electronic device. The electronic device can exchange information with the wireless charging device via the coil.
[0011] Exemplarily, the wireless charging device charges the electronic device using a first preset power, where 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 a first aspect, an electronic device includes a wireless charging module, an audio module, and a sensing module; determining the target charging power of the wireless charging device based on a 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 position information of the electronic device from the sensing module; the wireless charging module determines the target charging power based on the position information and the target noise reduction instruction. In this way, the closer the distance between the microphone of the electronic device and the fan, the greater the interference the electronic device encounters during voice collection; in this example, the position information of the electronic device is added as a condition for determining the target charging power, enriching the conditions for determining the target charging power and making the determined target charging power more accurate.
[0013] Exemplarily, the wireless charging device is provided with a bracket and a card slot, which secure the electronic device. Optionally, the electronic device, such as a mobile phone, can be placed horizontally or vertically on the card slot; when the mobile phone is placed horizontally, the card slot secures the plane formed by the long side and height (i.e., thickness) of the mobile phone; when the mobile phone is placed vertically, the card slot secures the plane formed by 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 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 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.
[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 position, the distance between the microphone and the fan is close, which means that the fan causes significant interference to the microphone. Using the charging power indicated by the target noise reduction instruction as the target charging power can quickly reduce the fan speed and reduce the noise generated by the fan. When the electronic device is in the second position, 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 position. Since the fan causes less interference to the microphone, the charging power is increased by one level based on the charging power indicated by the target noise reduction instruction, thereby maximizing the charging speed while keeping the noise under control.
[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, the 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 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 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, different noise reduction instructions will be provided 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 a first aspect, obtaining a target noise reduction instruction that matches a scenario category includes: in response to the electronic device being in a first real-time voice input scenario, the audio module determining the target noise reduction instruction as a first instruction; in response to the electronic device being in a second real-time voice input scenario, the audio module determining the target noise reduction instruction as a second instruction; and in response to the electronic device being in a non-real-time voice input scenario, the audio module determining the target noise reduction instruction as the first instruction. Thus, when the electronic device is in a real-time voice input scenario and the microphone is in a muted state, the microphone does not pick up fan noise. When the microphone switches from a muted state to an active state, due to a potential delay in voice input scenario detection, the audio module may not promptly determine the first instruction corresponding to the microphone being in active state, resulting in high fan noise. To avoid this, when the microphone is in a muted state, the target noise reduction instruction is determined to be a second instruction. The second instruction corresponds to a second preset power that is less than the first preset power and greater than a third preset power. This can reduce fan speed and noise, and charging the electronic device using the second preset power can also ensure that the charging speed is not the lowest speed. When the microphone is in active state, indicating that the microphone is significantly affected by the fan, using the third preset power can significantly reduce the fan speed, minimizing the fan's impact 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 its charging power range and the fan is in place, there's a high probability that the fan will affect voice input. By detecting whether the first condition is met, scenarios where noise reduction is not necessary can be quickly eliminated. The first information indicates whether the wireless charging device meets the first condition. Based on this first information, the audio module can promptly enable the voice input scene detection function, allowing the power of the wireless charging device to be reduced when noise reduction is needed. Because the voice input scene detection function consumes a lot of energy, the audio module can also promptly disable 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 scenario 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 disables the voice scene detection function. In this way, when the wireless charging device does not meet the first condition, the audio module can promptly disable the voice scene detection function to reduce unnecessary power consumption.
[0030] According to a first aspect, the wireless charging module generates first information based on a first detection result, including: when the first detection result indicates that the wireless charging device meets a first condition, the wireless charging module updates the state of a first flag bit to an enabled state, where the enabled state of the first flag bit indicates 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 wireless charging module updates the state of the first flag bit to an initial state, where the initial state of the first flag bit indicates that the wireless charging device does not meet the first condition; and 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 via the first flag bit, which is a simple storage method that 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 uses the second flag to store in real time whether the wireless charging device meets the first condition. After receiving the first information, the audio module reads the status information of the second flag at a second preset interval, thereby enabling or disabling the voice input scene detection function in a timely manner. 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 the in-place 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-place state, 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 know 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, before obtaining the scene category corresponding to the voice input scene in response to the electronic device being in the voice input scene, the method further includes: when the microphone is in an occupied state, the audio module determining 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 based on whether the microphone is occupied, and this determination 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 instruction, that is, instructs the wireless charging device to charge the electronic device according to the first preset power, so as to ensure that the electronic device is charged with high power in other non-voice input scenarios, thereby increasing the charging speed.
[0038] According to a first aspect, an electronic device includes a wireless charging module and an audio module; determining a target charging power for the wireless charging device based on a target noise reduction instruction includes: 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 for 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 certain position within the charging area, the audio module of the electronic device uses the charging power corresponding to the target noise reduction instruction as the target charging power for 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 be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and 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 following briefly introduces the drawings required for use in the description of the embodiments of the present application. 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 any creative work.
[0044] Figure 1 is a schematic diagram exemplarily showing a mobile phone making a voice call with another device in a high-power wireless charging state;
[0045] Figure 2 is a schematic structural diagram of an electronic device;
[0046] Figure 3 is a software structure block diagram of an electronic device shown as an example;
[0047] Figure 4 is a flow chart illustrating an exemplary method of wireless charging;
[0048] Figure 5 This is a flowchart illustrating an exemplary method for determining whether a charging device meets the preconditions of a noise reduction strategy;
[0049] Figure 6 This is a flowchart illustrating an example of enabling or disabling a voice scene detection function of an audio module;
[0050] Figure 7 is a flowchart exemplarily illustrating an audio module detecting whether it is currently in a voice input scenario;
[0051] Figure 8 is a flowchart illustrating an example of an audio module analyzing a real-time speech scene;
[0052] Figure 9 is an exemplary diagram illustrating the interaction between a mobile phone and a charging device;
[0053] Figure 10 exemplarily shows a posture of a mobile phone placed on a wireless charging device;
[0054] Figure 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 this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts 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 between 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] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.
[0058] In the embodiments of this 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 this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0059] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.
[0060] Before explaining the embodiment of the present application in detail, the application scenario of the embodiment of the present application is first described with reference to the accompanying drawings. The power-consuming device can be a mobile phone, tablet computer, bracelet, watch, etc. For the sake of convenience, the power-consuming device in the embodiment of the present application is described with a mobile phone as an example. Figure 1 As shown in the figure, the wireless charging device with a bracket is used as an example. Figure 1 The shape of the wireless charging device is shown as an example only, which is 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] The following combination Figure 1 This section describes the process of a mobile phone making a voice call 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 through the wireless charging protocol. After the mobile phone 100 and the wireless charging device 101 complete the wireless charging protocol, it instructs the wireless charging device 101 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] The wireless charging device is equipped with a fan to dissipate heat generated during wireless charging. Optionally, the wireless charging device can activate the fan when wireless charging is initiated. 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 with a charging power of 50W. When the wireless charging device uses high power to charge the mobile phone, the fan runs at high speed. Figure 1 As shown, the phone is in high-speed wireless charging mode. When a user uses the phone to make a real-time call with another user, the phone's microphone begins to pick up both the user's voice and the noise generated by the high-speed fan. Because the phone's microphone picks up both the fan noise and the user's voice, the call quality is affected.
[0065] In view of this, embodiments of the present application provide a wireless charging method. This method can be performed by an electronic device with wireless charging functionality. The electronic device with wireless charging functionality can be a mobile phone or tablet computer. Alternatively, the electronic device with wireless charging functionality can also be a wearable device, such as a smartwatch or wristband.
[0066] The electronic device can obtain device information of the charging device and the scene category of the voice input scene currently in which the electronic device is located; determine a target charging power for the charging device based on the device information and the scene category of the voice input scene in which the electronic device is located; and instruct 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; and scenarios such as recording audio and recording video. The scenario categories of the voice input scenario include real-time voice input scenarios and non-real-time voice input scenarios. For example, a call scenario made using a cellular network or Wi-Fi network is a real-time voice input scenario, while a scenario of recording audio and recording video is a non-real-time voice input scenario.
[0069] For example, wireless charging protocols may include: Qi-BPP, Qi-EPP, and proprietary wireless charging protocols. Proprietary wireless charging protocols are developed by various wireless charging device manufacturers. Typically, proprietary protocols support charging powers greater than 15W, with the specific supported charging powers 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 used as an example of an electronic device with a charging function. Figure 2 Describe the structure of a 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 illustrated electronic device 100 is merely 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 194, and a subscriber identification module (SIM) card interface 195. 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 This is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application. A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into three layers: the application layer, the application framework layer, and the kernel layer, from top to bottom.
[0075] The application layer can include a series of application packages. Figure 3 As shown, the application package may include audio modules, camera, gallery, calendar, video, and other applications.
[0076] The application framework layer provides an application programming interface (API) and 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 display screen size, determine whether there is a status bar, lock the screen, take screenshots, etc. The content provider is used to store and obtain data and make this data accessible to applications. The data can 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 images, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, the display interface including the SMS notification icon can include a view for displaying text and a view for displaying images. The phone manager is used to provide communication functions for the electronic device 100. For example, call status management (including call connection, hang up, etc.) The resource manager provides various resources to applications, such as localized strings, icons, images, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can automatically disappear after a short period of time 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 system's top status bar in the form of an icon or scrolling text bar, such as a notification from 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 may be displayed in the status bar, a notification sound may be emitted, an electronic device may vibrate, an indicator light may flash, etc.
[0079] The kernel layer is the layer between hardware and software. The kernel layer may 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 described 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. The audio module sends a noise reduction instruction to the wireless charging module based on the voice usage scenario of the electronic device. Based on the noise reduction instruction, the wireless charging module instructs the charging device to adjust the charging power.
[0081] Figure 4 This is a flow chart of a wireless charging method provided by this 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 audio detection function is enabled.
[0084] Step 403: The audio module sends a target noise reduction instruction to the wireless charging module based on 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 ease of understanding and is not necessary for implementing this solution.
[0087] In this embodiment, the electronic device implementing the wireless charging method is a mobile phone as an example. Figure 1 Take the wireless charging device 101 shown as an example, which is provided with a bracket and a slot for fixing the device to be charged. The mobile phone can be placed vertically on the bracket and fixed by the slot. In this position, the plane formed by the short side and height of the mobile phone (i.e., the thickness of the mobile phone) contacts the slot. The mobile phone can also be placed horizontally on the bracket and fixed by the slot. In this position, the plane formed by the short side and height of the mobile phone contacts the 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 of the noise reduction strategy (i.e., the first condition) 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] For example, the preconditions for 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) can be a charging power greater than 15W, for example, 30W, 40W, 50W, 60W, etc.
[0091] The following combination 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 the 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 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 has been 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, both the wireless charging device and the mobile phone have built-in coils. After the wireless charging device is powered on, it can continuously send ping signals to the electronic device through the coil in the wireless charging device. This ping signal is used to request communication with the mobile phone.
[0097] For example, 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 seconds, or the like.
[0098] In response to the ping signal, the phone sends an acknowledgment signal (i.e., an ACK signal) to the wireless charging device via the coil. The wireless charging device responds to the ACK signal returned by the phone and operates at normal power, thereby activating the wireless charging module in the phone. While operating at normal power, the charging device performs an initialization operation. After the phone's wireless charging module is activated, it performs an initialization operation.
[0099] After the wireless charging module is initialized, the phone establishes communication with the wireless charging device through the coils (i.e., the coil in the phone and the coil in the charging device). Once communication is successfully established, the phone and the wireless charging device can interact with the wireless charging protocol.
[0100] In this example, an electronic device placed on a 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] For example, when the electronic device placed on the charging device does not have a coil, 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 ended. 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 for receiving 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 (i.e., 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 status of the fan in place.
[0104] For example, 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 for charging the charging object.
[0105] For example, the Qi-EPP protocol specifies a charging power range of 5W to 15W, while the Qi-BPP protocol specifies a charging power less than 5W. Suppose that proprietary protocol A specifies a charging power of 50W. If the mobile phone detects that the charging device supports Qi-EPP, Qi-BPP, and proprietary protocol A, it can determine that the charging power ranges are: 0-5W, 5W-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, step 505 is executed; if not, step 507 is executed.
[0107] Specifically, the mobile phone's wireless charging module obtains the charging power range of the charging device and the fan's status, and determines whether the charging device supports high-power wireless charging and the fan is in place. The fan's status includes: in place and out of place. When the mobile phone's wireless charging module detects that the charging device does not support high power or detects that the fan is in an out-of-place state, it determines that the charging device does not meet the preconditions of the noise reduction strategy. When the mobile phone's wireless charging module detects that the charging device supports high power and the fan is in place, it determines 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, the mobile phone's wireless charging module stores a first flag that indicates whether the charging device currently supports high-power wireless charging and whether the fan in the charging device is in place. The first flag includes two states: an initial state and an enabled state. The initial state indicates that the charging device currently does not support high-power wireless charging or that the fan in the charging device is not in place. 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 prerequisites 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 (ie, the preconditions of the noise reduction strategy are not met), 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 flag 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 preconditions 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. 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 can turn on or off the voice scene detection function based on the precondition judgment result.
[0117] Regarding 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 Specifically describes the process of turning on or off the voice scene detection function of the mobile phone's audio module.
[0118] Step 601: The wireless charging module of the mobile phone sends status information of the first flag to the audio module.
[0119] Specifically, after the wireless charging module of the mobile phone updates the state of the first flag, it can send first information to the audio module of the mobile phone. The first information is information indicating whether the charging device supports the precondition of meeting the noise reduction strategy.
[0120] Exemplarily, the first information may be current status information of the first flag bit. In this example, the first information takes the status information of the first flag bit 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 that indicates whether the charging device currently supports high-power wireless charging and whether the fan in the charging device is in place. The second flag includes an initial state and an enabled state. The initial state indicates that the charging device currently does not support high-power wireless charging or that the fan in the charging device is not in place. The enabled state indicates that the charging device currently supports high-power wireless charging and that the fan in the charging device is in place.
[0124] When the audio module receives the status information of the first flag, it can update the status of the second flag according to the status information of the first flag. For example, when the status information of the first flag indicates that the charging device meets the preconditions of the noise reduction policy, the audio module updates the status of the second flag to the enabled state; when the status information of the first flag indicates that the charging device does not meet the preconditions of the noise reduction policy, the audio module updates the status of the second flag to the 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, and 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, it can trigger the audio module 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 seconds, 0.1 seconds, etc. After the audio module obtains the state of the second flag bit, it 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, it determines whether the current mobile phone is connected to the external voice input device, that is, executes step 604. When the audio module determines that the state of the second flag bit is the 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 of the electronic device 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 will promptly turn 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. If the audio module determines that the mobile phone is connected to the external voice input device, step 605 is executed; if 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 the mobile phone is not currently connected to the external voice input device, step 605 is executed; when the audio module detects that the mobile phone is connected to the 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 the current voice input scene is in a voice input scene and, if 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 between the mobile phone and other terminals.
[0135] The following combination Figure 7 Specifically describe the process of determining target noise reduction instructions based on different voice input scenarios.
[0136] Figure 7 The flowchart is shown as an example of an audio module detecting whether it is currently in a voice input scenario.
[0137] Step 701: The audio module determines whether the electronic device is in a voice input scenario. If the audio module determines that the electronic device is in a voice input scenario, step 702 is executed; if 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 begins to detect whether the phone is in a voice input scene. The audio module can obtain the status of the microphone (also known as the microphone). When it detects that the microphone is occupied, the audio module determines that the phone is currently in a voice input scene; when it detects that the microphone is not occupied, the audio module determines that the 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 executed 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 phone is not in a voice input scenario, it can generate an instruction to disable the noise reduction function, which can be transmitted to the phone's wireless charging module. The phone's wireless charging module instructs the charging device not to charge the 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 occupying 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] For example, 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. Suppose user A opens the chat application on the 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 phone is in a non-real-time voice input scenario.
[0148] Assume that user B is using the phone application to talk to 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 mute state, ie, executes step 802 .
[0150] Exemplarily, when the audio module determines that the mobile phone is not in a real-time voice input scenario, it may determine a target noise reduction instruction corresponding to a non-real-time voice input scenario, ie, 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 microphone status information. Optionally, the microphone status includes: a muted state and an active state. When the audio module detects that the microphone is in the muted state, it determines that the target noise reduction instruction is a pre-noise reduction instruction (i.e., the second instruction); when the audio module detects that the microphone is in the active state, it determines that the target noise reduction instruction is a direct noise reduction instruction (i.e., the first instruction).
[0153] Exemplarily, the direct noise reduction instruction is used to indicate that the charging power corresponding to the current scenario of the electronic device is a first preset power, where 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 scenario of the electronic device is a second preset power, where 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 on 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, which 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 sensing module in the mobile phone obtains the device's posture; the mobile phone's wireless charging module reads the mobile phone's current posture information from the sensing module. The mobile phone's posture information includes horizontal posture, vertical posture, and horizontal posture. In particular, when the charging device is provided with a bracket and a 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. Figure 10 For example, 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 posture of the mobile phone 1002 when placed horizontally on the bracket of the charging device 1001 is shown in FIG. Figure 10 For example, the position of the mobile phone 1002 when placed vertically on the bracket of the charging device 1001 is shown in FIG. Figure 10 10b in.
[0165] In this example, the fan is located in the base of the charging device. When the phone is in the vertical position (the first position), the microphone is close to the base of the charging device and close to the fan. When the phone is in the horizontal position (the second position), the microphone is far away from the fan of the charging device.
[0166] For example, after the mobile phone obtains the posture information of the mobile phone, the target charging power can be determined according to the posture information of the mobile phone, the target noise reduction instruction and the first corresponding relationship. The first corresponding relationship is the corresponding relationship between the posture 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 the 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 the 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 the off noise reduction instruction, the corresponding target charging power is the first preset power.
[0170] When the phone is placed vertically and the target noise reduction instruction is the pre-noise reduction instruction, the corresponding target charging power is the second preset power. When the phone is placed vertically and the target noise reduction instruction is the direct noise reduction instruction, the corresponding target charging power is the third preset power (i.e., the power corresponding to the low-speed slow charging in Table 1). When the phone is placed vertically and the target noise reduction instruction is the off noise reduction instruction, the corresponding target charging power is the first preset power.
[0171] Exemplarily, the first preset power is 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 Figure 11 The charging area of the charging device is circular, and there is no card holder. It only supports the mobile phone to be placed horizontally in the charging area. When the mobile phone's wireless charging module detects that the posture of the mobile phone is horizontal, the mobile phone's wireless charging module 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] Figure 9 This is an example diagram of the interaction between a mobile phone and a charging device. Figure 9 Specifically describes the process of noise reduction for charging devices in a voice call scenario.
[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 Figure 10 For example, the charging device in the mobile phone Figure 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] In response to the ping signal, the phone's wireless charging module returns an acknowledgment signal (i.e., an ACK signal) to the charging device. Upon receiving the ACK signal, the charging device operates at normal power, activating the phone's wireless charging module. Both the charging device and the phone's wireless charging module undergo initialization.
[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] For example, 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] For example, 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. Detailed description can be referred to step 503 and will not be repeated here.
[0187] It should be noted that after the mobile phone's wireless charging module 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 mobile phone's wireless charging module 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 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 based on the device information of the charging device. The specific judgment process can refer to the relevant description in step 504 and 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 the external voice input device. If the audio module determines that the mobile phone is not connected to the external voice input device, step 910 is executed; if the audio module determines that the mobile phone is connected to the 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, it triggers the audio module to read the status of the second flag at a second preset interval, which can be 1 second, 0.5 seconds, 0.1 seconds, 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 state of the second flag is enabled, step 910 is executed. When the audio module detects that the state of the second flag is not enabled, the voice scene detection function is disabled.
[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] For example, the audio module obtains the detection result of the voice scene detection, which includes: the current voice input scene of the mobile phone. For the specific process, please refer to Figure 7 and Figure 8 The process of determining the target noise reduction instruction 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 a 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] For example, after receiving the target charging power, the charging device may 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 implement the above functions, the electronic device includes hardware and / or software modules that perform the corresponding functions. 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 this 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 via lines. For example, the interface circuit can be used to receive signals from other devices (such as the memory of an electronic device). For another example, the interface circuit can be used to send signals to other devices (such as a processor). 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 storing computer instructions. 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 of the above embodiment. The storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0214] This embodiment further provides a computer program product. When the computer program product is run on a computer, it enables the computer 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 this 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 this 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this 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 electronic device includes a wireless charging module, an audio module, and a sensing module. 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 that matches the scenario category, where the charging power corresponding to the target noise reduction instruction is less than a first preset power, where the first preset power is the charging power of the wireless charging device when the electronic device is not in a voice input scenario; 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; Determining a target charging power of the wireless charging device; the target charging power is determined by the wireless charging module based on the posture information and the target noise reduction instruction, or the target charging power is the charging power corresponding 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 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 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.
3. The method according to claim 2, 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.
4. The method according to claim 3, 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.
5. The method according to claim 4, 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.
6. The method according to any one of claims 1 to 5, 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 and obtains a first detection result, where 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, where 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.
7. The method according to claim 6, characterized in that The audio module turns on or off a 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 enables the voice scene detection function.
8. The method according to claim 7, 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 disables the voice scene detection function.
9. The method according to claim 6, 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, where 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 status information of the first flag as the first information.
10. The method according to claim 9, characterized in that The step of storing, by the audio module, the first detection result in response to the first information includes: When the first information indicates that the state of the first flag bit is enabled, the audio module updates the state of the second flag bit to enabled, 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, where the initial state of the second flag bit is used to indicate that the wireless charging device does not meet the first condition.
11. The method according to claim 6, 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 obtains device information of the wireless charging device, where the device information includes: a wireless charging protocol supported by the wireless charging device and information about the fan's in-place status; The wireless charging module determines a charging power range of the wireless charging device according to a 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 in-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.
12. The method according to claim 5, characterized in that In response to the electronic device being in a voice input scene, before obtaining 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.
13. The method according to claim 5, 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.
14. 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 according to any one of claims 1 to 13.
15. 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 13.
16. 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 13.
Citation Information
Patent Citations
Charging control method of electronic equipment and electronic equipment
CN115706430A