Noise reduction method and device, electronic equipment and wireless charging system
By identifying the target scene, reducing the fan speed, and eliminating microphone noise, the problem of audio data being affected by fan noise during wireless charging is solved, achieving good noise reduction effect on audio data and improving user experience.
Patent Information
- Application Number
- CN202411192692.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-10-03
AI Technical Summary
During wireless charging, the audio data collected by the microphone at the bottom of the phone is easily affected by fan noise, resulting in poor audio data quality and affecting the user experience.
The first electronic device identifies the target scene and interacts with the second electronic device, reduces the fan speed, and uses an algorithm to eliminate microphone noise to obtain noise-reduced audio data.
During the wireless charging process, the noise reduction effect of audio data is improved, which enhances the user experience.
Smart Images

Figure CN120748355A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a noise reduction method, device, electronic device, and wireless charging system. Background Art
[0002] Wireless charging technology allows power to be transferred between a transmitting and receiving device without requiring a physical connection. The transmitting device can be, for example, a charging dock, and the receiving device can be, for example, a mobile phone. The phone needs to be placed on the surface of the charging dock, which then supplies power to the phone. When the charging dock supplies high-power power to the phone, it generates heat. To dissipate this heat, the charging dock is typically equipped with a fan. The higher the power, the faster the fan spins, generating more noise.
[0003] During wireless charging, users may be in conversations or recording audio. In these situations, the phone's microphone typically captures audio, such as human voices or other sounds. Because the phone rests on the surface of the charging dock, the microphone on the bottom of the phone is in close proximity to the fan. This noise can affect the audio data it captures, resulting in poor audio quality and a negative user experience. Summary of the Invention
[0004] Embodiments of the present application provide a noise reduction method, apparatus, electronic device, and wireless charging system. This application addresses the issue of a first electronic device being wirelessly charged and needing to capture target audio, where the target audio data obtained is affected by fan noise in a second electronic device. This application achieves noise reduction of the target audio data, improving the user experience.
[0005] In a first aspect, an embodiment of the present application provides a noise reduction method, comprising: a first electronic device determines that it is in a target scene, the target scene includes a scene in which the first electronic device calls its built-in microphone to collect target audio and obtain target audio data during wireless charging, wherein the microphone includes a first microphone, the first microphone is adjacent to a fan in a second electronic device, the second electronic device is used to power the first electronic device during wireless charging, and the fan is used to dissipate heat; when the first electronic device is in the target scene, the first electronic device reduces the speed of the fan based on interaction with the second electronic device, and / or, based on a first algorithm, eliminates the noise of the first microphone to obtain the target audio data after noise reduction.
[0006] The noise reduction method provided in the embodiment of the present application is that during the process of wireless charging of the first electronic device, if the first electronic device is simultaneously in at least one of a hands-free call scene, a video call scene, a hands-free voice scene, a recording scene, and a video recording scene, the first electronic device can perform scene recognition on the current scene. Furthermore, after determining that the first electronic device is in the target scene, it can control the fan speed of the second electronic device to reduce the noise of the collected target audio data, and the first electronic device can also reduce the noise of the target audio data through an algorithm to obtain the target audio data after noise reduction. In this way, the present application can make the target audio data collected in the target scene have a good noise reduction effect, thereby improving the user experience.
[0007] In one implementation, when the first electronic device is in a target scenario, the first electronic device reduces the fan speed based on interaction with the second electronic device and / or eliminates noise from the first microphone based on a first algorithm to obtain target audio data after noise reduction. The method further includes: the first electronic device determines to exit the target scenario; if the first electronic device exits the target scenario, the first electronic device restores the fan speed based on interaction with the second electronic device, and deactivates the first algorithm. With this implementation, the first electronic device can restore the fan speed after exiting the target scenario, ensuring heat dissipation performance during wireless charging.
[0008] In one implementation, the first electronic device determines that it is in a target scene, including: the first electronic device detects a wireless charging event and determines whether it is in an audio scene, where the audio scene is a scene in which the first electronic device calls a microphone to collect target audio, wherein the audio scene includes at least one of a hands-free call scene, a video call scene, a hands-free voice scene, an audio recording scene, and a video recording scene; when the first electronic device detects the wireless charging event and determines that it is in an audio scene, the first electronic device determines that it is in the target scene. Using this implementation, this application illustrates a specific method for the first electronic device to determine that it is in the target scene, ensuring the accuracy of the identified target scene.
[0009] In one implementation, a first electronic device detects a wireless charging event, including: a power management unit (Charger) at the hardware layer detects the wireless charging event; a power management driver at the kernel layer obtains the wireless charging event from the Charger; the power management driver reports the wireless charging event to a power management module at the hardware abstraction layer (HAL); and the power management module reports the wireless charging event to a power management service at the Java layer. Using this implementation, this application illustrates a specific method for the first electronic device to detect a wireless charging event. In this way, the first electronic device can obtain the current wireless charging status and accurately identify the target scenario.
[0010] In one implementation, determining whether an audio scene is present includes: in response to at least one audio application enabling its audio function, the audio application sending a first message to an audio service in the Java layer, the first message including a first configuration function for configuring at least one of an audio stream and an audio device corresponding to the audio function; the audio service sending the first message to an audio server in the native layer; the audio server sending the first message to an audio module in the HAL; and the audio module determining that an audio scene is present based on the first configuration function in the first message. This implementation demonstrates a specific method for identifying audio scenes, facilitating accurate identification of target scenes.
[0011] In one implementation, the audio module determines the audio scene based on the first configuration function in the first message, including: the audio module parses the first configuration function to detect a first audio stream, and then determines the audio scene, where the first audio stream includes at least one of STREAM_VOICE_CALL and STREAM_VOIP_TX. This implementation illustrates a specific method for identifying audio scenes, facilitating accurate identification of target scenes.
[0012] In one implementation, when a first electronic device detects a wireless charging event and determines it is in an audio scene, the first electronic device determines it is in a target scene. This includes: a power management service broadcasting the wireless charging event to the first electronic device's system; an audio service, upon receiving the broadcast, sending the wireless charging event to an audio server; the audio server sending the wireless charging event to an audio module; and the audio module, upon storing the wireless charging event and determining it is in an audio scene, determining it is in the target scene. This implementation illustrates a specific method for the first electronic device to determine it is in a target scene, ensuring the accuracy of the identified target scene.
[0013] In one implementation, a first electronic device reduces the speed of a fan based on interaction with a second electronic device, including: after the audio module determines that it is in a target scene, it sends a second message to the power management driver, the second message is used to notify the power management driver to control the speed of the fan; the power management driver responds to the second message and sends a first instruction to the power management unit, the first instruction is used to instruct the fan to reduce the speed to a first preset speed; the power management unit sends the first instruction to the second electronic device, so that the second electronic device responds to the first instruction and reduces the speed of the fan. This implementation shows a specific way for the first electronic device to interact with the second electronic device, so that the first electronic device can reduce the speed of the fan in the second electronic device based on the current interaction to reduce the noise of the fan, thereby reducing the noise of the fan in the collected target audio data.
[0014] In one implementation, based on a first algorithm, noise from a first microphone is eliminated to obtain target audio data after noise reduction. This includes: after the audio module determines that it is in a target scenario, it sends a third message to the audio processing unit of the hardware layer, the third message being used to enable the algorithm module, which is used to store the first algorithm; in response to the third message, the audio processing unit enables the algorithm module to execute the first algorithm, thereby eliminating the noise from the first microphone to obtain target audio data after noise reduction. With this implementation, the algorithm module is added to the first electronic device and enabled in the target scenario. In this way, the first electronic device can use the first algorithm in the algorithm module to reduce noise on the target audio data.
[0015] In one implementation, the microphone further includes a second microphone, which is located at the opposite end of the first microphone in the first electronic device. Based on the first algorithm, the noise of the first microphone is eliminated to obtain the target audio data after noise reduction, including: the first electronic device obtains the first audio data and the second audio data, wherein the first audio data is obtained by the second microphone collecting the target audio and is used as the first audio data, and the second audio data is obtained by the first microphone collecting the target audio; the first electronic device replaces the second audio data with the first audio data, and the replaced first audio data is used as the second audio data; the first electronic device integrates the first audio data and the second audio data to obtain the target audio data after noise reduction. Using this implementation, the first implementation of the first algorithm is shown. Since the first audio data collected by the second microphone does not have much audio background noise, the second audio data is replaced with the first audio data based on the first algorithm, and the first audio data on the two paths are integrated, so that the target audio data obtained has a better noise reduction effect.
[0016] In one implementation, based on a first algorithm, the noise of the first microphone is eliminated to obtain target audio data after noise reduction, including: when the algorithm module is enabled, the first electronic device inputs the first audio data and the second audio data into the algorithm module; the algorithm module executes the first algorithm on the first audio data and the second audio data; when it is determined that the first audio data is collected by the second microphone, the first algorithm uses the first audio data as the output first-channel audio data; when it is determined that the second audio data is collected by the first microphone, the first algorithm replaces the second audio data with the first audio data and uses the first audio data as the output second-channel audio data; the algorithm module integrates the first audio data and the second audio data to obtain the target audio data after noise reduction. This implementation method shows the specific implementation method of the first algorithm. Since the algorithm module is added to the first electronic device and the algorithm module can be enabled in the target scenario, the first electronic device can use the first algorithm in the algorithm module to reduce the noise of the target audio data, and the obtained target audio data has a good noise reduction effect.
[0017] In one implementation, the microphone also includes a second microphone, which is located at the opposite end of the first microphone in the first electronic device. Based on the first algorithm, the noise of the first microphone is eliminated to obtain the target audio data after noise reduction, including: based on the first algorithm, the first electronic device deactivates the first microphone and obtains the first audio data, so that the first audio data is used as the target audio data after noise reduction, wherein the first audio data is obtained by collecting the target audio by the second microphone. Using this implementation, a second implementation of the first algorithm is shown. Since the audio data collected by the second microphone does not have much audio background noise, deactivating the first microphone based on the first algorithm and using the first audio data as the target audio data can make the target audio data have a better noise reduction effect.
[0018] In one implementation, based on a first algorithm, the noise of a first microphone is eliminated to obtain target audio data after noise reduction, including: when the algorithm module is activated, the first electronic device modifies the channel quantity configuration item and the channel type configuration item in the algorithm module based on the first algorithm to output the first audio data, so that the first audio data serves as the target audio data after noise reduction; wherein the channel quantity configuration item is used to configure the number of channels to 1, so that the algorithm module outputs one channel of audio data based on the channel, and the channel type configuration item is used to configure the channel type that matches the first audio data, so that the output one channel of audio data is the first audio data. This implementation shows the specific configuration method of the algorithm module. Based on this method, the first algorithm can be implemented to achieve a good noise reduction effect on the target audio data.
[0019] In one implementation, the first electronic device exits the target scene, including: the first electronic device does not detect a wireless charging event, or determines that it is not in an audio scene, and then the first electronic device determines to exit the target scene. Using this implementation, this application shows a specific method for the first electronic device to determine to exit the target scene, so that the fan can resume its speed without significantly affecting the fan's heat dissipation effect.
[0020] In one implementation, the first electronic device fails to detect a wireless charging event, including: the Charger fails to detect the wireless charging event and stops reporting the wireless charging event to the power management driver, so that the audio module does not receive the wireless charging event; the audio module removes the historically stored wireless charging events and does not receive the currently broadcasted wireless charging event, so as to determine that the wireless charging event has not been detected. Using this implementation, the present application illustrates a specific method for the first electronic device to determine that the wireless charging event has not been detected. In this way, the first electronic device can determine to exit the target scenario, allowing the fan to resume its rotation speed without significantly affecting the fan's heat dissipation effect.
[0021] In one implementation, determining that the device is not in an audio scene includes: in response to at least one audio application shutting down its audio function, the audio application sending a fourth message to the audio service, the fourth message being used to notify that the audio function has been shut down; the audio service sending the fourth message to the audio server; the audio server sending the fourth message to the audio module; and the audio module determining that the device is not in an audio scene based on the fourth message. Using this implementation, this application illustrates a specific method for a first electronic device to determine that the device is not in an audio scene. In this way, the first electronic device can determine to exit the target scene, allowing the fan to resume its rotation speed without significantly affecting the fan's heat dissipation effect.
[0022] In one implementation, when a first electronic device exits a target scene, the first electronic device restores the fan speed based on interaction with a second electronic device, including: after the audio module determines that it is not in the audio scene, it sends a fifth message to the power management driver, the fifth message is used to notify the power management driver to stop controlling the fan speed; the power management driver responds to the fifth message and sends a second instruction to the power management unit, the second instruction is used to instruct the fan to restore the speed to the initial speed; the power management unit sends a second instruction to the second electronic device, so that the second electronic device responds to the second instruction and restores the fan speed. Using this implementation, the first electronic device can restore the fan speed based on interaction with the second electronic device, without significantly affecting the fan's heat dissipation effect.
[0023] In one implementation, deactivating the first algorithm includes: after the audio module determines that the target scenario has been exited, sending a sixth message to the audio processing unit, the sixth message being used to deactivate the algorithm module; and in response to the sixth message, the audio processing unit deactivating the algorithm module to deactivate the first algorithm. This implementation illustrates a specific method for deactivating the first algorithm by the first electronic device. Thus, in non-target scenarios, audio data collected by the microphone of the first electronic device is not interfered with by the algorithm module.
[0024] In a second aspect, an embodiment of the present application provides a noise reduction device, which is applied to a first electronic device, including: a determination module, the determination module is used to determine that it is in a target scene, the target scene includes a scene in which the first electronic device calls its built-in microphone to collect target audio and obtain target audio data during wireless charging, wherein the microphone includes a first microphone, the first microphone is adjacent to a fan in a second electronic device, and the second electronic device is used to power the first electronic device during wireless charging; an interaction module, the interaction module is used to interact with the second electronic device when the first electronic device is in the target scene to reduce the speed of the fan; an algorithm module, the algorithm module is used to eliminate the noise of the first microphone based on a first algorithm to obtain the target audio data after noise reduction.
[0025] The noise reduction device provided in the embodiment of the present application can perform scene recognition on the current scene if the first electronic device is in at least one of a hands-free call scene, a video call scene, a hands-free voice scene, a recording scene, and a video recording scene during the process of wireless charging of the first electronic device. Furthermore, after determining that the first electronic device is in the target scene, it can control the fan speed of the second electronic device, thereby reducing the noise of the collected target audio data, and the first electronic device can also reduce the noise of the target audio data through an algorithm to obtain the target audio data after noise reduction. In this way, the present application can make the target audio data collected in the target scene have a good noise reduction effect, thereby improving the user experience.
[0026] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory, a microphone, and a processor; the memory, the microphone, and the processor are coupled; wherein the memory stores computer program code, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device performs the noise reduction method as described in the first aspect above and any implementation thereof.
[0027] In a fourth aspect, embodiments of the present application provide a wireless charging system, comprising a first electronic device and a second electronic device, wherein the first electronic device may be the electronic device described in the third aspect. The second electronic device is configured to supply power to the first electronic device, and the second electronic device is configured with a fan for heat dissipation, and the first electronic device is configured to control the speed of the fan in the second electronic device.
[0028] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the noise reduction method as in the first aspect and any implementation thereof.
[0029] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the noise reduction method in the first aspect and any possible implementation thereof.
[0030] It can be understood that the beneficial effects that can be achieved by the technical solutions provided in the second to sixth aspects mentioned above can be referred to the beneficial effects in the first aspect and any possible implementation thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0032] Figure 1 This is a schematic diagram of a scenario in which an electronic device is wirelessly charged;
[0033] Figure 2 It is a schematic diagram of a scenario in which an electronic device collects audio;
[0034] Figure 3 Schematic diagram of the hardware structure of the first electronic device provided in an embodiment of the present application;
[0035] Figure 4 is a schematic diagram of the software structure of the first electronic device provided in an embodiment of the present application;
[0036] Figure 5 is a schematic structural diagram of a second electronic device provided in an embodiment of the present application;
[0037] Figure 6 This is a schematic diagram of a scenario in which a first electronic device and a second electronic device establish a communication connection, provided by an embodiment of the present application;
[0038] Figure 7This is the first flow chart of the noise reduction method provided in the embodiment of the present application;
[0039] Figure 8 is a schematic diagram of a microphone provided in an embodiment of the present application;
[0040] Figure 9 This is a second flow chart of the noise reduction method provided in an embodiment of the present application;
[0041] Figure 10 This is the first interactive diagram of the noise reduction method provided in the embodiment of the present application;
[0042] Figure 11 This is a schematic diagram of an audio scene provided by an embodiment of the present application;
[0043] Figure 12 This is the third flow chart of the noise reduction method provided in the embodiment of the present application;
[0044] Figure 13 This is the fourth flow chart of the noise reduction method provided in the embodiment of the present application;
[0045] Figure 14 This is a schematic diagram of the first usage scenario of the algorithm module provided in the embodiment of the present application;
[0046] Figure 15 This is a schematic diagram of a second usage scenario of the algorithm module provided in an embodiment of the present application;
[0047] Figure 16 This is the second interactive diagram of the noise reduction method provided in the embodiment of the present application;
[0048] Figure 17 This is a schematic diagram of the third usage scenario of the algorithm module provided in the embodiment of the present application;
[0049] Figure 18 Schematic diagram of a noise reduction device provided in an embodiment of the present application;
[0050] Figure 19 This is a schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The following will clearly describe the technical solutions of the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, other embodiments obtained by ordinary technicians in this field without making any creative work are all within the scope of protection of this application.
[0052] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "a plurality" means two or more. Words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not limit them to be necessarily different.
[0053] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed 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.
[0054] The following first describes the application scenarios of the embodiments of the present application.
[0055] Wireless charging technology is a technology that can transmit electrical energy to electronic devices without physical connection. This technology can be implemented based on various principles such as electromagnetic induction, electromagnetic resonance or radio frequency transmission.
[0056] The following embodiments of this application are merely exemplary illustrations of wireless charging technology based on the principle of electromagnetic induction. In fact, the embodiments of this application can be applied to various types of wireless charging technologies, and this application is not limited thereto.
[0057] Figure 1 This is a schematic diagram of a scenario in which an electronic device is wirelessly charged.
[0058] like Figure 1 As shown, wireless charging technology is usually implemented between two components: a charging base 10 and an electronic device 20. The charging base 10 can be used as a transmitting device, and the electronic device 20 can be used as a receiving device.
[0059] When wireless charging technology is based on the principle of electromagnetic induction, the charging base 10 generates an alternating electromagnetic field through its built-in coil. The coil built into the electronic device 20 generates electromagnetic induction with this alternating electromagnetic field, thereby generating an electric current. This electric current can be converted into direct current by the circuit in the electronic device 20 to power the battery in the electronic device 20.
[0060] Since the strength of the electromagnetic field decreases rapidly with increasing distance, during the wireless charging process, the electronic device 20 needs to maintain a relatively close distance to the charging base 10 , and the electronic device 20 usually needs to be placed on the surface of the charging base 10 .
[0061] The charging base 10 generally includes different types such as a lying base and a standing base. Figure 1 The charging base 10 shown is a vertical base, which may include a support base 11 and an inclined plate 12. The inclined plate 12 is arranged on the support base 11 at a certain tilt angle. The coil built into the charging base 10 can be arranged in the inclined plate 12. The inclined plate 12 may also include a support frame 121 arranged perpendicular to the surface of the inclined plate. The bottom of the electronic device 20 can be placed on the support frame 121, and its rear shell can be attached to the inclined plate 12. In this way, the coil built into the electronic device 20 can generate electromagnetic induction with the coil in the inclined plate 12, so that the electronic device 20 can obtain power.
[0062] During this wireless charging process, as the charging base 10 outputs electrical energy, some of this energy is lost as heat, causing the charging base 10 to heat up. To dissipate heat, the charging base 10 is typically equipped with a fan 13. Fan 13 improves the heat dissipation efficiency of the charging base 10, ensuring that the charging base 10 operates within a safe temperature range and preventing device damage. The higher the output power corresponding to the electrical energy output by the charging base 10, the faster the fan 13 rotates, and the louder the noise generated by the fan 13.
[0063] In such Figure 1 In the vertical charging base 10 shown, the fan 13 can be arranged in the inclined plate 12. In this way, when the bottom of the electronic device 20 is placed on the support frame 121, it is at a relatively close distance to the fan 13.
[0064] It should be noted that the charging base 10 can also have other structures (not shown in the drawings), for example, a structure in which the support surface of the support base 11 forms an obtuse angle with the charging surface of the inclined plate 12. In this way, the bottom of the electronic device 20 can be placed on the support base 11, its rear cover can be aligned with the inclined plate 12, and the fan 13 can be set inside the support base 11. When charging in a charging base 10 with this structure, the electronic device 20 is also in close proximity to the fan 13.
[0065] The embodiment of the present application does not limit the specific structure of the charging base 10.
[0066] Figure 2 The diagram is a schematic diagram of a scenario in which an electronic device collects audio.
[0067] like Figure 2As shown, a microphone 21 (Microphone, Mic) is usually provided at the bottom of the electronic device 20. The microphone 21 can collect audio in some audio scenarios. The audio scenario can be at least one of a hands-free call scenario, a video call scenario, a hands-free voice scenario, a recording scenario, and a video recording scenario. Figure 2 The figure shows a scenario in which the electronic device 20 collects audio based on the microphone 21 at the bottom when the user is making a hands-free call. In this scenario, since the bottom of the electronic device 20 is in contact with the fan 13 (see FIG. Figure 1 ) is too close, the microphone 21 is likely to collect more fan noise when collecting audio, resulting in poor quality of the collected audio data.
[0068] It should be noted here that the above embodiment is only exemplified by the way that the electronic device 20 is placed vertically on the charging base 10. In fact, the electronic device 20 can also be placed horizontally on the charging base 10, or placed flat in other types of charging bases 10 (such as a flat charging base). Depending on the way the electronic device 20 is placed on the charging base 10, the microphone 21 of the electronic device 20 is affected by the fan noise to different degrees. This application does not limit the placement of the electronic device 20. The electronic device 20 may collect more fan noise when using the microphone 21 to collect audio when different placement methods are used.
[0069] That is to say, when the electronic device 20 is in the wireless charging process and needs to collect audio, the obtained audio data may be affected by the fan noise, affecting the user experience.
[0070] The noise reduction method provided in the embodiments of the present application can be applied to a wireless charging system. The wireless charging system can include a first electronic device and a second electronic device, where the first electronic device can be a receiving device and the second electronic device can be a transmitting device.
[0071] The first electronic device includes, but is not limited to, mobile phones, tablet computers, personal computers, workstations, large-screen devices (e.g., smart screens, smart TVs, etc.), wearable devices (e.g., smart bracelets, smart watches), handheld game consoles, home game consoles, virtual reality devices, augmented reality devices, mixed reality devices, in-vehicle smart terminals, etc. The embodiments of this application do not limit the specific technology and specific device form used by the first electronic device.
[0072] Figure 3 This is a hardware structure diagram of the first electronic device provided in an embodiment of the present application.
[0073] like Figure 3As shown, the first electronic device 100 may include a processor 110, a memory 120, 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, a camera 192, a display 193, and a Subscriber Identification Module (SIM) card interface 194. The sensor module 180 may include a touch sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a geomagnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, and the like. Among them, the gyroscope sensor 180B, the air pressure sensor 180C, the geomagnetic sensor 180D, the acceleration sensor 180E, etc. can all be used to detect the motion state of the first electronic device, and therefore, can also be called motion sensors.
[0074] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0075] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0076] In the embodiment of the present application, the processor 110 may include a microcontroller unit (MCU), which may execute software instructions corresponding to the proprietary protocol stored in the memory 120 to control the interaction between the first electronic device 100 and the second electronic device. In the embodiment of the present application, the DSP may be an audio digital signal processor (ADSP). The ADSP is a processor specifically designed for audio processing, with efficient computing power, capable of real-time decoding, processing, and optimization of audio signals to improve sound quality and listening experience.
[0077] The memory 120 can be used to store computer executable program codes, and the executable program codes include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (Universal Flash Storage, UFS), etc. The processor 110 executes various functional applications and data processing of the first electronic device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.
[0078] In the embodiment of the present application, the memory 120 can be used to store software instructions corresponding to the private protocol, so that the first electronic device and the second electronic device can interact based on the software instructions.
[0079] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the first electronic device 100, or to transfer data between the first electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect to other first electronic devices, such as AR devices.
[0080] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative description and does not constitute a structural limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
[0081] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the first electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the first electronic device via the power management module 141.
[0082] In the embodiment of the present application, the charging management module 140 is configured to receive charging input from a second electronic device (eg, a wireless charger).
[0083] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the memory 120, the display 193, the camera 192, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0084] In the embodiment of the present application, the power management module 141 can be used to detect wireless charging events and further report the wireless charging events.
[0085] The wireless communication function of the first electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0086] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in first electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0087] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0088] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 193. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0089] The wireless communication module 160 can provide wireless communication solutions including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), etc., applied on the first electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0090] In some embodiments, the antenna 1 of the first electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the first electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology.
[0091] The first electronic device 100 implements display functions through a GPU, display screen 193, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0092] The display screen 193 is used to display images, videos, etc. The display screen 193 includes a display panel. In some embodiments, the first electronic device 100 may include one or N display screens 193, where N is a positive integer greater than one.
[0093] The first electronic device 100 can implement a shooting function through an ISP, a camera 192 , a video codec, a GPU, a display screen 193 , and an application processor.
[0094] The ISP processes data fed back by camera 192. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization for image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 192.
[0095] Camera 192 is used to capture still images or videos. The lens generates an optical image of an object and projects it onto a photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format such as RGB, RYYB, or YUV. In some embodiments, the first electronic device 100 may include one or N cameras 192, where N is a positive integer greater than one.
[0096] The first electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0097] In an embodiment of the present application, the microphone 170C may include a first microphone arranged at the bottom of the first electronic device 100, and a second microphone arranged at the top of the first electronic device 100. The first microphone and the second microphone can jointly collect audio to realize audio functions such as calls and recordings.
[0098] Touch sensor 180A, also known as a "touch device," can be disposed on display screen 193. The touch sensor 180A and display screen 193 form a touch screen, also known as a "touch screen." Touch sensor 180A is configured to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via display screen 193. In other embodiments, touch sensor 180A can also be disposed on the surface of first electronic device 100, at a location different from that of display screen 193.
[0099] In the embodiment of the present application, the touch sensor 180A can transmit the detected touch operation to the application processor, so that the application processor can determine whether there is a click operation on the audio application and then determine whether to start the audio application.
[0100] The gyro sensor 180B may be used to determine the motion posture of the first electronic device 100. In some embodiments, the angular velocity of the first electronic device 100 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B.
[0101] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the first electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0102] The geomagnetic sensor 180D includes a Hall sensor, and the first electronic device 100 can use the geomagnetic sensor 180D to detect the opening and closing of the flip leather case.
[0103] In the embodiment of the present application, the first electronic device 100 can use a Hall sensor to detect the magnetic field strength and then detect the current value. In this way, the first electronic device 100 can dynamically adjust the fan speed based on the current current value.
[0104] The accelerometer 180E can detect the magnitude of the acceleration of the first electronic device 100 in all directions (generally three axes). When the first electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the first electronic device, for applications such as switching between landscape and portrait modes and pedometers.
[0105] The distance sensor 180F is used to measure distance.
[0106] The proximity light sensor 180G may include, for example, a light emitting diode and a light detector such as a photodiode.
[0107] The fingerprint sensor 180H is used to collect fingerprints.
[0108] The temperature sensor 180J is used to detect temperature. In some embodiments, the first electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the first electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the first electronic device 100 heats the battery 142 to prevent the first electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the first electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature. The buttons 190 include a power button, a volume button, etc. The buttons 190 can be mechanical buttons. They can also be touch buttons. The first electronic device 100 can receive key inputs and generate key signal inputs related to user settings and function controls of the first electronic device 100.
[0109] Motor 191 can generate vibration prompts.
[0110] The SIM card interface 194 is used to connect a SIM card. The SIM card can be connected to or removed from the first electronic device 100 by inserting it into or removing it from the SIM card interface 194. The first electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 194 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 194 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 194 can also be compatible with different types of SIM cards. The SIM card interface 194 can also be compatible with external memory cards. The first electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the first electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100.
[0111] In the implementation of this application, the first electronic device 100 can detect relevant scenarios of SIM card calls based on the SIM card interface 194.
[0112] The software system of the first electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the first electronic device 100.
[0113] Figure 4 This is a schematic diagram of the software structure of the first electronic device provided in an embodiment of the present application.
[0114] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into five layers: application layer, application framework layer, system library and Android runtime layer, hardware abstraction layer (HAL), and kernel layer. The system library and Android runtime layer can be further divided into the Java layer and the native service layer.
[0115] The application layer can include a series of application packages.
[0116] like Figure 4 As shown, the application package may include battery management, camera, gallery, calendar, call, map, navigation, music, video, short message and other applications.
[0117] In the embodiment of the present application, there are multiple audio applications, which usually call the built-in microphone of the first electronic device to collect audio. Audio applications include, for example, a chat application, a recording application, and a camera application.
[0118] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0119] like Figure 4 As shown, the application framework layer may include a window manager, an input manager, a sensor manager, a phone manager, a resource manager, a notification manager, and the like.
[0120] The input manager can be used to monitor user input events, such as click events and slide events performed by the user's finger on the display screen 193 of the first electronic device 100. By monitoring input events, the first electronic device 100 can determine whether the first electronic device is being used.
[0121] The sensor manager is used to monitor the data returned by various sensors in the first electronic device, such as motion sensor data, proximity sensor data, temperature sensor data, etc. Using the data returned by each sensor, the first electronic device can determine whether it is shaking or whether the display screen 193 is blocked.
[0122] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0123] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0124] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0125] The system library can include multiple functional modules, such as the surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0126] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0127] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0128] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0129] A 2D graphics engine is a drawing engine for 2D drawings.
[0130] In an embodiment of the present application, when the system library and the Android runtime layer are further divided into a Java layer and a Native layer, the Java layer may be provided with an audio service (Audio Service) and a power management service (Charger Service).
[0131] The audio service is a component in the operating system that provides audio functions, such as audio playback, recording, and processing.
[0132] The power management service is a component in the operating system used to control and optimize power usage. It can provide energy-saving modes for power, monitor power status, and control power usage of applications.
[0133] In the embodiment of the present application, both the power management service and the audio service are used for the transmission of wireless charging events.
[0134] The Native layer can be equipped with an audio server, which can serve as the central node for audio processing and is responsible for the management and distribution of audio data.
[0135] The HAL is an interface layer designed to abstract hardware. It hides the platform-specific hardware interface details, presenting the operating system with a virtual hardware platform, making it hardware-independent and portable across multiple platforms. The HAL provides a standard interface, exposing the device's hardware capabilities to the upper Java layer. The HAL consists of multiple library modules, each of which implements an interface for a specific type of hardware component. For example, the HAL includes an audio module (Audio HAL) and a power management module (Charger HAL).
[0136] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, and power management driver (Charger Kernel).
[0137] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0138] Figure 5 It is a structural diagram of the second electronic device provided in an embodiment of the present application.
[0139] Figure 6 This is a schematic diagram of a scenario in which a first electronic device and a second electronic device establish a communication connection provided by an embodiment of the present application.
[0140] like Figure 5 and Figure 6 As shown, the second electronic device 200 is used as a charging base for exemplary description. The second electronic device 200 may include a wireless charging control chip 201 , a DC converter 202 , an inverter bridge 203 and a wireless transmitting coil 204 .
[0141] It is understood that the structure of the embodiment of the present application does not constitute a specific limitation on the second electronic device 200. In other embodiments of the present application, the second electronic device 200 may include more or fewer components than shown in the figure, and the embodiment of the present application is not limited to this.
[0142] The second electronic device 200 has a matching power adapter 210. The output port of the power adapter 210 can be plugged into the input port of the second electronic device 200 to provide power to the second electronic device 200.
[0143] After the second electronic device 200 is powered on, the startup phase can be configured through the wireless charging control chip 201. Specifically, during the startup phase, the wireless charging control chip 201 controls the DC converter 202 to adjust the voltage transmitted from the power adapter 210 to the second electronic device 200 to power the inverter bridge 203. During this process, the wireless charging control chip 201 needs to control the DC converter 202 to maintain a low output voltage for use by the inverter bridge 203, so that the inverter bridge 203 converts DC power into high-frequency AC power at this output voltage. Furthermore, the AC power can generate an alternating magnetic field through the wireless transmitting coil 204.
[0144] In this way, the second electronic device 200 can supply power to the first electronic device 100. During this power supply process, the electrical energy of the second electronic device 200 is converted into thermal energy, that is, the second electronic device 200 generates heat.
[0145] To dissipate heat, the second electronic device 200 is provided with a fan 220 . The wireless charging control chip 201 can be electrically connected to the fan 220 to control the rotation speed of the fan 220 .
[0146] Among them, the wireless charging control chip 201 can adjust the speed of the fan 220 according to factors such as the current temperature, power output, and foreign object detection. (The control method of the fan speed is described in detail in the subsequent embodiments of this application). During the startup phase, the fan 220 usually has a preset initial speed. For example, it is 1000 revolutions per minute (RPM). It should be noted that the value of the initial speed in the embodiments of this application is only for illustrative purposes, and this application does not limit the specific value of the initial speed.
[0147] After the second electronic device 200 completes the configuration of the startup phase, the first electronic device 100 and the second electronic device 200 may establish a communication connection.
[0148] Specifically, the user needs to place the first electronic device 100 on the charging area of the second electronic device 200. In this way, the second electronic device 200 can detect the metal in the first electronic device 100 based on its integrated metal detection technology, and after detecting the metal, it transmits a detection (ping) signal to the first electronic device 100.
[0149] The first electronic device 100 may power on and initialize communication in response to the Ping signal to establish a handshake connection with the second electronic device 200 .
[0150] It should be noted that the wireless charging control chip 201 may also be integrated with a protocol control chip, and the second electronic device may be connected to the handshake based on the protocol control chip. In fact, the protocol control chip may also be a discrete device, and this embodiment of the application is not limited to this. The wireless charging control chip 201 may also be integrated with a fan driver chip, and the wireless charging control chip 201 may adjust the speed of the fan 220 based on the fan driver chip. In fact, the fan driver chip may also be a discrete device, and this embodiment of the application is not limited to this.
[0151] Specifically, the first electronic device 100 may be equipped with a wireless receiving coil corresponding to the wireless transmitting coil 204. The wireless receiving coil may sense the alternating magnetic field generated by the second electronic device 200 to generate an induced electromotive force according to Faraday's law of electromagnetic induction. Furthermore, the conversion circuit built into the first electronic device 100 may convert the induced electromotive force into direct current (DC) for powering the device.
[0152] A handshake connection is an initial connection for establishing communication and data transmission between the first electronic device 100 and the second electronic device 200. The first electronic device 100 and the second electronic device 200 can identify each other through specific signals or data packets. For example, in response to a Ping signal transmitted by the second electronic device 200, the first electronic device 100 sends a first Acknowledgement (ACK) signal to the second electronic device 200. In this way, the first electronic device 100 and the second electronic device 200 complete preliminary identification.
[0153] After establishing a handshake connection with the second electronic device 200 , the first electronic device 100 performs protocol interaction with the second electronic device 200 to determine a target protocol used between the first electronic device 100 and the second electronic device 200 .
[0154] Among them, the first electronic device 100 generally includes private protocols and public protocols. Private protocols are communication protocols developed and used by specific manufacturers, such as the Fast Charge Protocol (FCP) and the Super Charge Protocol (SCP). Public protocols are communication protocols developed by standardization organizations and are widely accepted and used. For example, the Power Delivery (PD) protocol and the Quick Charge (QC) protocol. The embodiments of the present application do not limit the specific types of private protocols and public protocols.
[0155] During the protocol interaction between the first electronic device 100 and the second electronic device 200, the first electronic device 100 and the second electronic device 200 can confirm whether the target protocol used between the two is a public protocol or a private protocol by exchanging specific data packets, specific identifiers or specific commands.
[0156] The following is an exemplary description of the process of protocol interaction between the first electronic device 100 and the second electronic device 200.
[0157] Specifically, the first electronic device 100 and the second electronic device 200 can first exchange keys. After exchanging keys, the second electronic device 200 can sign its identity information based on the private key in the key, and send the signature and identity information to the first electronic device 100. The first electronic device 100 uses the public key in the key to verify the validity of the signature. If the verification is successful, the first electronic device 100 confirms that the second electronic device 200 is a trusted device to complete the identity authentication. After completing the identity authentication, the first electronic device 100 and the second electronic device 200 can use the exchanged keys to encrypt the communication channel. In this way, in the encrypted communication channel, the first electronic device 100 and the second electronic device 200 can negotiate the target protocol.
[0158] It should be noted here that the specific process of the above-mentioned protocol interaction is only used for exemplary description, and the embodiments of the present application do not limit the specific process of the protocol interaction.
[0159] Among them, the private protocol can provide higher charging efficiency and faster charging speed. For example, the target protocol used between the first electronic device 100 and the second electronic device 200 is a private protocol.
[0160] Thus, based on the proprietary protocol, the first electronic device 100 and the second electronic device 200 can negotiate an initial power. The second electronic device 200 can output first power to the first electronic device 100 based on the initial power, and correspondingly, the first electronic device 100 receives the first power.
[0161] Electric energy refers to the energy possessed by electric charges in an electric field due to the action of electric field forces. It is a basic form of energy in physics and can be generated, converted and used in a variety of ways.
[0162] Furthermore, based on the private protocol, the first electronic device 100 and the second electronic device 200 can further negotiate the rotation speed of the fan 220 so that the initial rotation speed of the fan 220 can be adaptively adjusted according to different charging conditions and temperatures.
[0163] For example, when the first electronic device 100 detects that its own temperature is too high based on the temperature sensor, the first electronic device 100 can negotiate with the second electronic device 200 so that the second electronic device 200 increases the rotation speed of the fan 220 to improve the heat dissipation capacity of the fan 220. When the first electronic device 100 detects that its own temperature has dropped, the first electronic device 100 can negotiate again with the second electronic device 200 so that the second electronic device 200 reduces the rotation speed of the fan 220.
[0164] Based on this, the first electronic device 100 and the second electronic device 200 enter the wireless charging process. During this process, since the first electronic device 100 may be affected by the noise of the fan 220 in the second electronic device 200, the first electronic device 100 can adopt the noise reduction method provided in the embodiment of the present application.
[0165] The noise reduction method provided in the embodiment of the present application is further described below.
[0166] Figure 7 This is the first flow chart of the noise reduction method provided in the embodiment of the present application.
[0167] like Figure 7 As shown, in one implementation, the method includes steps S11-S14.
[0168] Step S11: The first electronic device determines that it is in a target scene.
[0169] The target scenario includes a scenario in which the first electronic device, during wireless charging, calls its built-in microphone to collect target audio and obtain target audio data.
[0170] Figure 8 Schematic diagram of a microphone provided in an embodiment of the present application.
[0171] like Figure 8 As shown, the first electronic device 100 may be equipped with multiple microphones. A microphone is a device that converts sound signals into electrical signals. It can capture the changes in air pressure generated by sound waves and convert these changes into corresponding voltage changes, thereby recording or transmitting sound. Microphones can be used in scenarios such as telephone communication, voice recognition, audio recording, and video recording.
[0172] The microphones may include at least one first microphone 110 disposed at the bottom of the first electronic device 100 and at least one second microphone 120 disposed at the top of the first electronic device 100 .
[0173] The first microphone 110, as a bottom-mounted microphone, can assist in identifying the direction of sound sources to facilitate voice recognition or augmented reality functions of the first electronic device 100. The first microphone 110 can also capture ambient sound during a call, allowing the first electronic device 100 to adjust the call volume as needed to protect user privacy. The first microphone 110 can also capture ambient sound in speakerphone mode, allowing the first electronic device 100 to hear the sounds in the call environment.
[0174] The second microphone 120 , as the top microphone, may have a noise suppression function. Based on this function, the second microphone 120 may identify and filter out background noise, so that the call recipient may hear the user's voice more clearly.
[0175] The first microphone 110 can cooperate with the second microphone 120 to achieve stereo recording, which can capture richer sound details and provide a more realistic audio experience.
[0176] In the embodiment of the present application, the process of the first electronic device 100 calling the built-in microphone to collect the target audio and obtain the target audio data can specifically be the process of calling the first microphone 110 and the second microphone 120 to collect the user's voice and obtain the user's voice data. The embodiment of the present application does not limit the audio type of the target audio, and the target audio can be human voice, animal sound, natural sound, etc.
[0177] If the first electronic device 100 is in the wireless charging process, based on its placement on the second electronic device 200, the first microphone 110 will be adjacent to the fan 220. Therefore, the first electronic device 100 needs to identify the current target scene for subsequent processing.
[0178] In one implementation, step S11 includes steps S111 - S112 .
[0179] In step S111 , the first electronic device detects a wireless charging event and determines whether it is in an audio scene.
[0180] The following describes in detail the process of the first electronic device detecting a wireless charging event.
[0181] Figure 9 This is the second flow chart of the noise reduction method provided in the embodiment of the present application.
[0182] Figure 10 This is the first interactive diagram of the noise reduction method provided in the embodiment of the present application.
[0183] like Figure 9 and Figure 10As shown, in one implementation, step S111 includes steps S1111-S1114.
[0184] Step S1111: The power management unit Charger of the hardware layer detects a wireless charging event.
[0185] A power management unit (Charger), also known as a power management chip, is an integrated circuit used to manage and control the power supply in electronic devices, ensuring that each component in the electronic device can obtain appropriate voltage and current.
[0186] For example, the Charger in the embodiment of the present application may include a wireless charging receiving module, which may include the wireless charging receiving coil and conversion circuit shown in the aforementioned embodiment, so that the Charger can convert alternating current into direct current.
[0187] During this process, the Charger can detect the wireless charging event by detecting at least one of a change in magnetic field, a change in voltage, a change in current, and a change in power. The embodiment of the present application does not limit the specific manner in which the Charger detects the wireless charging event.
[0188] In an embodiment of the present application, the Charger can be integrated into the ADSP chip. In this way, since the present application also involves the recognition of audio scenes, the Charger can work better with the audio processing unit co-located on the ADSP chip. In addition, the integration of the Charger into the ADSP chip also reduces the Charger's dependence on an external charging management chip, simplifies the system design, and reduces the system size.
[0189] It should be noted that, in the embodiment of the present application, the Charger may also be a discrete device, and the embodiment of the present application does not limit the specific configuration of the Charger. Step S1112: The power management driver of the core layer obtains the wireless charging event from the Charger.
[0190] A power management driver is a kernel-level software component used to manage and optimize power efficiency in electronic devices. It interacts with hardware through a series of interfaces to monitor and control various power-related hardware states. For example, it can obtain wireless charging events based on interactions with the charger.
[0191] In step S1113 , the power management driver reports the wireless charging event to the power management module of the HAL.
[0192] In step S1114 , the power management module reports the wireless charging event to the power management service of the Java layer.
[0193] At this point, the first electronic device completes the process of reporting the wireless charging event.
[0194] Furthermore, the first electronic device also needs to determine whether it is in an audio scene.
[0195] The audio scene is a scene in which the first electronic device calls the microphone to collect the target audio, wherein the audio scene includes at least one of a hands-free call scene, a video call scene, a hands-free voice scene, a recording scene, and a video recording scene. The audio scene in the embodiment of the present application may also include other scenes in which the microphone is called to collect the target audio, such as various scenes involved in Internet voice communication (Voice Over Internet Protocol, VOIP), and various scenes involved in SIM card calls. The embodiment of the present application does not limit the scene type of the audio scene.
[0196] Figure 11 This is a schematic diagram of an audio scene provided in an embodiment of the present application.
[0197] like Figure 11 As shown, the first electronic device 100 includes a main interface 101, which may include a first icon 102 corresponding to a chat application, a second icon 103 corresponding to a recording application, a third icon 104 corresponding to a camera application, and the like.
[0198] A video call scenario is used as an example.
[0199] In response to a user clicking on first icon 102, first electronic device 100 launches a chat application and displays first interface 105. First interface 105 may include a contact list, which may include at least one contact control 106. In response to a click on contact control 106, first electronic device 100 displays contact chat interface 107. Contact chat interface 107 may include a multi-function control 108. In response to a click on multi-function control 108, first electronic device 100 displays a multi-function interface and displays a video call control 109 within the multi-function interface. In response to a click on video call control 109, first electronic device 100 may implement a video call function, i.e., enter a video call scenario.
[0200] In a video call scenario, the first electronic device 100 may call the first microphone 110 and the second microphone 120 to collect target audio.
[0201] The following describes in detail the process of the first electronic device determining that it is in an audio scene.
[0202] Further Figure 9 and Figure 10As shown, in one implementation, step S111 also includes steps S1115-S1118.
[0203] Step S1115: In response to at least one audio application enabling its audio function, the audio application sends a first message to the audio service of the Java layer. The first message includes a first configuration function, which is used to configure at least one of the audio stream and audio device corresponding to the audio function.
[0204] Among them, the audio application in the embodiment of the present application refers to an application that calls a microphone to collect audio. The audio application can be, for example, the chat application, recording application, and camera application in the aforementioned embodiment. The embodiment of the present application does not limit the specific type of audio application.
[0205] An audio function refers to a function that uses a microphone to collect audio. Examples of audio functions include hands-free calling, video calling, hands-free voice, recording, and video recording. The present embodiment of the application does not limit the specific type of audio function. In this implementation, the audio function may include hands-free calling, video calling, hands-free voice, and other functions.
[0206] In one implementation, the first configuration function may be a Setparam function, which is used to pass audio-related parameters or configurations to the underlying audio hardware or software module. In the Setparam function, relevant configurations of the audio stream, such as sampling rate, number of channels, bit depth, etc., may be stored. Relevant configurations of the audio device, such as the speakers, microphones, headphones, or other audio devices used, may also be stored. Relevant configurations of audio routing, such as the path of a specific audio data stream, may also be stored. Relevant configurations of audio effects, such as specific sound effect processing configurations and equalizer configurations, may also be stored. Relevant configurations of audio session management, etc. may also be stored. In fact, the first configuration function may also be set to other functions based on different programming languages, such as the Setproperty function. The embodiment of the present application does not limit the specific type of the first configuration function.
[0207] In an embodiment of the present application, when the first configuration function is a Setparam function, the Setparam function can store the configuration related to the audio stream and the configuration related to the audio device. The configuration related to the audio stream can be, for example, the first audio stream, which includes at least one of STREAM_VOICE_CALL and STREAM_VOIP_TX.
[0208] Among them, STREAM_VOICE_CALL can correspond to the audio stream during a call, and STREAM_VOIP_TX can correspond to the audio stream during the voice process of a chat application.
[0209] The Setparam function may also store relevant configurations of audio devices, for example, including a first audio device SPEAKER. The first audio device may refer to a microphone.
[0210] The Setparam function may also include other configurations. The embodiment of the present application does not limit the specific configurations included in the Setparam function.
[0211] Step S1116: The audio service sends a first message to the audio server in the Native layer.
[0212] Step S1117: The audio server sends a first message to the audio module of the HAL.
[0213] Step S1118: The audio module determines that it is in an audio scene based on the first configuration function in the first message.
[0214] In one implementation, the audio module parses the first configuration function to detect the first audio stream and / or the first audio device, and further determines that the audio scene is in place.
[0215] The above-mentioned audio scenario may include at least one of a hands-free call scenario, a video call scenario, and a hands-free voice scenario.
[0216] Figure 12 This is the third flow chart of the noise reduction method provided in the embodiment of the present application. Figure 12 As shown, in one implementation, step S111 also includes steps S1119-S1120.
[0217] Step S1119: In response to at least one audio application enabling its audio function, the audio application sends a first notification to the audio service, where the first notification is used to notify the audio service that the audio application has enabled the recording function.
[0218] Step S1120: The audio service determines the current audio scene based on the first notification.
[0219] The above audio scene may include at least one of a recording scene and a video recording scene.
[0220] Among them, steps S1115-S1118 and steps S1119-S1120 can be implemented in different audio scenarios, and steps S1111-S1114 can be executed together with steps S1115-S1118 and steps S1119-S1120.
[0221] It should be noted that the process of the first electronic device detecting a wireless charging event and determining whether it is in an audio scene can be performed simultaneously or sequentially. The embodiment of the present application does not limit the order of steps S1111-S1114 and steps S1115-S1118. Accordingly, the embodiment of the present application does not limit the order of steps S1111-S1114 and steps S1119-S1120.
[0222] Step S112: When the first electronic device detects a wireless charging event and determines that it is in an audio scene, the first electronic device determines that it is in a target scene.
[0223] If the first electronic device needs to determine both that a wireless charging event is detected and that it is in an audio scene, the first electronic device needs to achieve this goal through interaction between a power management service and an audio service at its Java layer.
[0224] Further Figure 9 and Figure 12 As shown, in one implementation, step S112 includes steps S1121 - S1124 .
[0225] S1121: The power management service broadcasts the wireless charging event to the system of the first electronic device.
[0226] S1122: After receiving the broadcast, the audio service sends the wireless charging event to the audio server.
[0227] Among them, the audio service may have pre-registered the system broadcast component, such as The Broadcast Receiver component in the power management service is used to monitor wireless charging events. In this way, when the power management service sends a broadcast, the audio service can receive the broadcast and obtain the wireless charging event.
[0228] S1123: The audio server sends the wireless charging event to the audio module.
[0229] S1124: The audio module determines that it is in a target scene after storing the wireless charging event and determining that it is in an audio scene.
[0230] It should be noted here that after the aforementioned step S1120, the audio service may send a second notification to the audio module to notify the audio module that the first electronic device is currently in an audio scene.
[0231] In one implementation, when the audio module obtains a wireless charging event and determines that it is in an audio scene, it can match it with its pre-stored state table to determine that it is in a target scene.
[0232] Specifically, the audio module may pre-store a state table (State Table), which may be as shown in Table 1 below.
[0233] Table 1:
[0234]
[0235]
[0236] The state table can define parameters in different ways. "Yes" or "No" in the state table can represent parameters in the form of Boolean values, namely "True" or "False." Thus, in the state table, the state corresponding to obtaining a wireless charging event can be defined as "True," and the state corresponding to not obtaining a wireless charging event can be defined as "False." The state corresponding to being in an audio scene can be defined as "True," and the state corresponding to not being in an audio scene can be defined as "False."
[0237] That is to say, when the audio module obtains a wireless charging event and determines that it is in an audio scene, the corresponding status is "True", "True", which matches the status of the wireless charging event being "True" and the audio scene being "True" in the status table. The audio module can determine that it is in the target scene, so that the first electronic device can further perform subsequent noise reduction operations, that is, step S12.
[0238] It is noted here that different programming languages have different ways of defining parameters. In C language, parameters can also be represented in the form of integers, i.e. "1" or "0". The embodiment of the present application does not limit the specific representation of the state table.
[0239] In other implementations, when the audio module receives a wireless charging event and determines that it is in an audio scene, it can also match it with other types of data tables such as a pre-stored look-up table (LUT) and a parameter table to determine that it is in a target scene. The audio module can also determine that it is in a target scene based on a software algorithm. The specific method by which the audio module determines the target scene is not limited in the embodiments of the present application.
[0240] In one implementation, a scene recognition state machine may be provided in the audio module to determine whether the audio module is in the target scene based on the scene recognition state machine.
[0241] A scene recognition state machine is a mechanism used in automated systems and intelligent applications to automatically identify and switch to different states based on changing scenarios. A scene refers to the state of a system at a specific moment. A state machine is a computational model that describes how a system transitions between different states. A state machine includes states, conditions that trigger state transitions, and state transition rules. Scene recognition refers to the system's ability to identify and respond to different environments, automatically adjusting to the appropriate scenario.
[0242] In the embodiment of the present application, the scene recognition state machine can recognize the wireless charging event and the audio scene, and then determine whether to execute the subsequent step S12.
[0243] It should be noted here that, in the present application, the audio module can also determine whether it is in the target scene based on other methods, and the embodiments of the present application do not limit the specific method for the audio module to determine whether it is in the target scene.
[0244] In step S12, when the first electronic device is in the target scene, the first electronic device reduces the speed of the fan based on the interaction with the second electronic device, and / or eliminates the noise of the first microphone based on the first algorithm to obtain the target audio data after noise reduction.
[0245] Further Figure 9 and Figure 12 As shown, in one implementation, step S12 includes steps S121 - S123 .
[0246] In step S121, after the audio module determines that it is in the target scene, it sends a second message to the power management driver, where the second message is used to notify the power management driver to control the fan speed.
[0247] Step S122 : The power management driver sends a first instruction to the Charger in response to the second message. The first instruction is used to instruct the fan to reduce its rotation speed to a first preset rotation speed.
[0248] In one implementation, the first preset speed is 50% of the initial speed. It should be noted that the embodiment of the present application does not limit the specific value of the first preset speed.
[0249] In step S123 , the Charger sends a first instruction to the second electronic device, so that the second electronic device reduces the rotation speed of the fan in response to the first instruction.
[0250] In one implementation, the first instruction may be sent to the second electronic device in the form of a Control Error Packet (CEP). A CEP generally refers to a data packet that exchanges information between the first and second electronic devices during wireless charging. This information may include charging status, power level, error code, etc., to ensure that the charging process can proceed normally.
[0251] In the embodiment of the present application, the first instruction may be formed by storing a fan speed setting command in a CEP package.
[0252] For example, the data structure in a CEP may include a header structure, a parameter structure, a timestamp, a checksum, and a trailer structure. The header structure can be used to identify the type and version of the data packet. The parameter structure can be used to store values for relevant parameters such as voltage, current, power, efficiency, error count, and fan speed. The timestamp can record the send and receive time of the data packet. The checksum can be used to check the integrity of the data in the data packet. The trailer structure can contain an end marker or a sequence number.
[0253] It should be noted here that the embodiment of the present application only provides an illustrative description of the data structure of CEP. CEP may also have other forms of data structures, which are not limited by the embodiment of the present application.
[0254] Thus, in a CEP packet having the data structure in the example, its parameter structure may include a fan speed parameter. In a non-target scenario, the fan speed parameter can be dynamically adjusted based on changes in factors such as transmission power, voltage, and temperature between the first electronic device and the second electronic device. In a target scenario, the first electronic device can modify the fan speed parameter to a first preset speed. In this way, the first electronic device can send a first instruction with the first preset speed to the second electronic device, so that the second electronic device responds to the first instruction and reduces the fan speed.
[0255] In one implementation, based on the structure of the second electronic device in the aforementioned embodiment, the second electronic device can respond to the first instruction based on its built-in wireless charging chip. In this way, the wireless charging chip can control the speed of the fan to reduce the speed of the fan.
[0256] It should be noted here that the first instruction can also use other types of data structures, which is not limited in this embodiment of the present application.
[0257] Furthermore, after receiving the first instruction, the second electronic device may send a second ACK signal to the first electronic device to notify the first electronic device that it can currently respond to the first instruction.
[0258] After the second electronic device responds to the first instruction and reduces the fan speed, the fan noise can be significantly reduced. However, since the bottom of the first electronic device is close to the fan, even if the fan noise is reduced, the target audio data collected by the microphone of the first electronic device still has a large fan noise.
[0259] To this end, the first electronic device needs to further perform noise reduction on the target audio data based on an algorithm.
[0260] In one implementation, step S12 further includes steps S124 - S125 .
[0261] Step S124: After the audio module determines that it is in the target scene, it sends a third message to the audio processing unit of the hardware layer. The third message is used to enable the algorithm module, and the algorithm module is used to store the first algorithm.
[0262] In an embodiment of the present application, the audio processing unit can be integrated into an ADSP chip. The audio processing unit can be a hardware module, which can be equipped with audio processing-related devices such as filters and mixers. These devices can efficiently perform mathematical operations related to audio processing.
[0263] In an embodiment of the present application, an algorithm module is added to the audio processing unit. The algorithm module can be enabled after the audio module recognizes the target scene. In this way, the first electronic device can reduce noise on the target audio data based on the first algorithm in the algorithm module.
[0264] In one implementation, taking the target scene as a recording scene as an example, the third message sent by the audio module to the audio processing unit may include the following data structure. Based on the data structure, the audio module may notify the audio processing unit to create a recording stream.
[0265] The data structure is:
[0266] Handset_Mic+Instance_1+DEVICEPP_TX_HONOR_RECORD+PCM_Record.
[0267] Among them, Handset_Mic can be used to indicate the selected microphone.
[0268] Instance_1 can be used to indicate the number of output channels.
[0269] DEVICEPP_TX_HONOR_RECORD may be used to indicate the first algorithm to be executed.
[0270] PCM_Record can be used to indicate the output audio format.
[0271] Among them, Pulse Code Modulation (PCM) is an uncompressed audio format that can be used for high-quality audio recording.
[0272] The specific method of creating a recording stream based on this data structure and performing noise reduction on the recording stream will be described in subsequent embodiments of this application.
[0273] Step S125 : In response to the third message, the audio processing unit activates the algorithm module to execute the first algorithm, thereby eliminating the noise of the first microphone to obtain target audio data after noise reduction.
[0274] It should be noted here that the process of reducing the speed of the fan by the first electronic device based on the interaction with the second electronic device and the process of eliminating the noise of the first microphone by the first electronic device based on the first algorithm can be carried out simultaneously or successively. The embodiment of the present application does not limit the order of steps S121-S123 and steps S124-S125.
[0275] Figure 13 This is the fourth flow chart of the noise reduction method provided in the embodiment of the present application.
[0276] Figure 14 This is a schematic diagram of the first usage scenario of the algorithm module provided in the embodiment of the present application.
[0277] like Figure 13 and Figure 14 As shown, in one implementation, step S125 includes steps S1251 - S1253 .
[0278] In step S1251, the first electronic device obtains first audio data and second audio data, wherein the first audio data is obtained by the second microphone collecting target audio and is used as the first channel of audio data, and the second audio data is obtained by the first microphone collecting target audio.
[0279] Specifically, in the target scene, the first electronic device can call the first microphone at the bottom and the second microphone at the top through the audio processing unit to simultaneously collect the target audio, thereby forming two channels of audio data.
[0280] In this way, the two microphones can capture the sound of the left and right channels respectively, thus achieving a stereo effect and providing a realistic audio experience. In addition, the audio processing unit can apply specific algorithms to the two channels of audio data obtained by the two microphones to identify and suppress noise, improving voice clarity.
[0281] In one implementation, the audio processing unit can access two channels of audio data based on a token key value (Tkv). Tkv can be a data structure used to manage and process data in a software system. In the audio processing unit, Tkv may involve the identification and access of different control parameters. This structure allows the audio processing unit to efficiently read and write audio control parameters, thereby achieving precise microphone control.
[0282] However, the second audio data collected by the first microphone will be greatly affected by the fan noise.
[0283] Step S1252: Based on the first algorithm, the first electronic device replaces the second audio data with the first audio data, and the replaced first audio data is used as the second audio data.
[0284] Specifically, when the algorithm module is enabled, the audio processing unit inputs the acquired first audio data and second audio data into the algorithm module, so that the algorithm module executes the first algorithm on the first audio data and the second audio data. When it is determined that the first audio data is collected by the second microphone, the first algorithm uses the first audio data as the output first-channel audio data. When it is determined that the second audio data is collected by the first microphone, the first algorithm replaces the second audio data with the first audio data, so that the first audio data is output as the second-channel audio data.
[0285] That is to say, since the second audio data is greatly affected by the fan noise, after the first electronic device collects the second audio data, in the process of processing the first audio data and the second audio data, the first algorithm first identifies the first audio data and the second audio data to filter out the second audio data with greater noise. Secondly, the first algorithm copies the first audio data and replaces the second audio data with the copied first audio data. Finally, both audio data are output as the first audio data.
[0286] In this way, there is no loud fan noise in both audio channels.
[0287] In step S1253 , the first electronic device integrates the first channel of audio data and the second channel of audio data to obtain target audio data after noise reduction.
[0288] Specifically, the algorithm module integrates the first channel of audio data and the second channel of audio data to obtain target audio data after noise reduction.
[0289] Since the data contents of the first channel of audio data and the second channel of audio data are the same, the algorithm module can integrate the first channel of audio data and the second channel of audio data into a single audio stream.
[0290] In the embodiment of the present application, the integration may include a mixing operation. The embodiment of the present application does not limit the specific form of the integration. In this way, the first channel audio data and the second channel audio data can be mixed together in a certain ratio to form a mono signal, i.e., the target audio data after noise reduction. In this way, the target audio data has better sound clarity, which can enhance the user experience.
[0291] The algorithm module may also be provided with a noise reduction algorithm, which may be, for example, an active noise cancellation (ANC) algorithm, a real-time noise reduction algorithm based on a statistical model, a subspace algorithm, a microphone array directional enhancement algorithm, a noise reduction algorithm based on machine learning, and the like. The embodiment of the present application does not limit the algorithm type of the noise reduction algorithm.
[0292] In one implementation, the algorithm module integrates the first channel of audio data and the second channel of audio data, and then further processes the integrated audio data using a noise reduction algorithm to obtain target audio data after noise reduction.
[0293] In this way, the target audio data processed based on the noise reduction algorithm has a better noise reduction effect.
[0294] It should be noted here that the first algorithm in the embodiment of the present application has other implementation forms. The embodiment of the present application does not limit the specific implementation method of the first algorithm. The following embodiments specifically describe other implementation methods of the first algorithm.
[0295] Figure 15 This is a schematic diagram of the second usage scenario of the algorithm module provided in an embodiment of the present application.
[0296] like Figure 15 As shown, in one implementation, step S125 includes step S1254.
[0297] In step S1254 , based on the first algorithm, the first electronic device deactivates the first microphone and obtains first audio data, so that the first audio data serves as target audio data after noise reduction, wherein the first audio data is obtained by collecting the target audio with the second microphone.
[0298] It should be noted that steps S1251-S1253 and step S1254 may be two implementations of step S125, and step S125 may execute one of steps S1251-S1253 and step S1254. The embodiment of the present application does not limit the specific implementation of step S125.
[0299] Specifically, when the algorithm module is started, the first electronic device modifies the channel quantity configuration item and the channel type configuration item in the algorithm module based on the first algorithm to output the first audio data, so that the first audio data serves as the target audio data after noise reduction.
[0300] Among them, the channel number configuration item is used to configure the number of channels to 1, so that the algorithm module outputs one channel of audio data based on the channel, and the channel type configuration item is used to configure the channel type that matches the first audio data, so that the output audio data is the first audio data.
[0301] Please refer to the data structure of the third message shown in the aforementioned embodiment.
[0302] Based on the first algorithm DEVICEPP_TX_HONOR_RECORD, the first electronic device configures the channel quantity configuration item to hexadecimal 0x0001 (equivalent to decimal 1) through Instance_1, and configures the channel type configuration item to PCM_CHANNEL_L based on PCM_Record.
[0303] Among them, PCM_CHANNEL_L indicates that the output channel is the left channel, that is, the channel corresponding to the second microphone, and correspondingly, the channel corresponding to the first audio data.
[0304] In this way, the first electronic device will output a channel of audio data, where the audio data is target audio data determined based on the first audio data, and the target audio data does not contain fan background noise.
[0305] If the first electronic device exits the audio scene, or stops wireless charging, the first electronic device needs to further perform the following steps.
[0306] Step S13: The first electronic device determines to exit the target scene.
[0307] In one implementation, step S13 includes step S131.
[0308] In step S131, the first electronic device does not detect a wireless charging event, or determines that it is not in an audio scene, and thus determines to exit a target scene.
[0309] Figure 16 This is the second interactive diagram of the noise reduction method provided in the embodiment of the present application.
[0310] like Figure 16 As shown, in one implementation, step S131 includes steps S1311 - S1316 .
[0311] In step S1311 , the Charger does not detect a wireless charging event and stops reporting the wireless charging event to the power management driver, so that the audio module does not receive the wireless charging event.
[0312] If the user moves the first electronic device away from the second electronic device, the second electronic device stops supplying power to the first electronic device. Accordingly, Charger will not detect at least one of the changes in magnetic field, voltage, current, and power. Therefore, Charger cannot detect the wireless charging event.
[0313] In step S1312 , the audio module removes the historically stored wireless charging events and does not receive the currently broadcasted wireless charging event, thereby determining that no wireless charging event is detected.
[0314] Among them, after obtaining the wireless charging event, the audio module does not store the wireless charging event for a long time, but only temporarily stores the wireless charging event and removes it in a short time. In this way, if the audio module does not receive a new wireless charging event within a certain period of time, it can be determined that no wireless charging event is detected.
[0315] Step S1313: In response to at least one audio application shutting down its audio function, the audio application sends a fourth message to the audio service, where the fourth message indicates that the audio function has been shut down.
[0316] For example, the fourth message may include an audio function off event. Based on the audio function off event, the fourth message may notify layer by layer that the audio function has been turned off.
[0317] Step S1314: The audio service sends a fourth message to the audio server.
[0318] Step S1315: The audio server sends a fourth message to the audio module.
[0319] Step S1316: The audio module determines that the audio scene is not in progress based on the fourth message.
[0320] In one implementation, when the audio module determines that no wireless charging event is detected or that the audio module is not in the audio scene, the audio module may match the pre-stored state table to determine to exit the target scene.
[0321] That is to say, when the audio module determines that no wireless charging event is detected, or determines that it is not in the audio scene, the corresponding status may include "False", "True", "True", "False", "False", "False", which matches the status in the status table. The audio module can determine that it is not in the target scene, so that the first electronic device can further perform subsequent operations, namely step S14.
[0322] Step S14: When the first electronic device exits the target scene, the first electronic device restores the fan speed based on the interaction with the second electronic device, and deactivates the first algorithm.
[0323] In one implementation, step S14 includes steps S141 - S143 .
[0324] Step S141: After determining that the audio module is not in the audio scene, the audio module sends a fifth message to the power management driver. The fifth message is used to notify the power management driver to stop controlling the fan speed.
[0325] Step S142 : The power management driver sends a second instruction to the power management unit in response to the fifth message. The second instruction is used to instruct the fan to restore the rotation speed to the initial rotation speed.
[0326] In step S143 , the power management unit sends a second instruction to the second electronic device, so that the second electronic device responds to the second instruction and restores the rotation speed of the fan.
[0327] In this way, in a non-target scenario, the second electronic device can restore the speed of the fan and accordingly restore the heat dissipation capacity, without significantly affecting the heat dissipation effect of the second electronic device.
[0328] In one implementation, step S14 further includes steps S144 - S145 .
[0329] Step S144: After the audio module determines to exit the target scene, it sends a sixth message to the audio processing unit. The sixth message is used to close the algorithm module.
[0330] Step S145 : In response to the sixth message, the audio processing unit turns off the algorithm module to disable the first algorithm.
[0331] Figure 17 This is a schematic diagram of the third usage scenario of the algorithm module provided in the embodiment of the present application.
[0332] like Figure 17 As shown, when the algorithm module is turned off, after the audio processing unit obtains the first audio data and the second audio data, it will output the first audio data as first-channel audio data and the second audio data as second-channel audio data according to the initial settings within the audio processing unit to form stereo sound. In this way, the audio data collected by the microphone of the first electronic device in non-target scenarios will not be interfered with by the algorithm module.
[0333] That is to say, after the first electronic device exits the target scene, since it is no longer affected by the fan noise, the microphones at both ends can be re-called to jointly collect audio to ensure audio quality.
[0334] The noise reduction method provided in the embodiment of the present application is that during the process of wireless charging of the first electronic device, if the first electronic device is simultaneously in at least one of a hands-free call scene, a video call scene, a hands-free voice scene, a recording scene, and a video recording scene, the first electronic device can perform scene recognition on the current scene. Furthermore, after determining that the first electronic device is in the target scene, it can control the fan speed of the second electronic device to reduce the noise of the collected target audio data, and the first electronic device can also reduce the noise of the target audio data through an algorithm to obtain the target audio data after noise reduction. In this way, the present application can make the target audio data collected in the target scene have a good noise reduction effect, thereby improving the user experience.
[0335] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of an electronic device. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the steps of a noise reduction method of each example described in the embodiment disclosed in this application, 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 electronic device software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0336] In the embodiment of the present application, the functional modules or functional units of the electronic device can be divided according to the above method examples. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0337] Figure 18 It is a structural schematic diagram of a noise reduction device provided in an embodiment of the present application.
[0338] like Figure 18 As shown, the embodiment of the present application further provides a noise reduction device 300. The noise reduction device 300 can be applied to the first electronic device in the above embodiment. The noise reduction device 300 may include:
[0339] Determination module 301, determination module 301 is used to determine that it is in a target scene, where the target scene includes a scene in which the first electronic device calls its built-in microphone to collect target audio and obtain target audio data during the wireless charging process, wherein the microphone includes a first microphone, and the first microphone is adjacent to a fan in the second electronic device. The second electronic device is used to power the first electronic device during the wireless charging process, and the fan is used to dissipate heat.
[0340] The interaction module 302 is used to interact with the second electronic device to reduce the rotation speed of the fan when the first electronic device is in the target scene.
[0341] The algorithm module 303 is used to eliminate the noise of the first microphone based on the first algorithm to obtain the target audio data after noise reduction.
[0342] An embodiment of the present application also provides a first electronic device, which includes a display screen, a memory, a processor and a communication module. The above-mentioned devices can be connected via one or more communication buses. The processor may include one or more processing units, for example: the processor may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units can be independent devices or integrated into one or more processors. The memory is coupled to the processor for storing various software programs and / or computer instructions, and the memory may include volatile memory and / or non-volatile memory. When the processor executes the computer instructions, it can execute the various functions or steps performed by the first electronic device in the above-mentioned method embodiment.
[0343] An embodiment of the present application also provides a second electronic device, which may be, for example, a charging base and may have the structure shown in the aforementioned embodiment, such as a wireless charging control chip, which may execute the various functions or steps executed by the second electronic device in the aforementioned method embodiment.
[0344] The present application also provides a wireless charging system including a first electronic device and a second electronic device, wherein the first electronic device can perform the functions or steps performed by the first electronic device in the above method embodiment, and the second electronic device can perform the functions or steps performed by the second electronic device in the above method embodiment.
[0345] Figure 19 This is a schematic structural diagram of a chip system provided in an embodiment of the present application.
[0346] like Figure 19As shown, the chip system 400 provided in an embodiment of the present application, for example, SoC, includes at least one processor 401 and at least one interface circuit 402. The processor 401 and the interface circuit 402 can be interconnected by lines. For example, the interface circuit 402 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 402 can be used to send signals to other devices (such as a processor 401 or a touch screen of an electronic device). Exemplarily, the interface circuit 402 can read instructions stored in the memory and send the instructions to the processor 401. When the instructions are executed by the processor 401, the electronic device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, and the embodiments of the present application are not specifically limited to this.
[0347] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step in the above-mentioned method embodiment.
[0348] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the various functions or steps in the above method embodiment.
[0349] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0350] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0351] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0352] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0353] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (Processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0354] It is easy to understand that those skilled in the art can combine, split, reorganize, etc. the embodiments of the present application based on the several embodiments provided in the present application to obtain other embodiments, and these embodiments do not exceed the scope of protection of the present application.
[0355] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of this application in detail. It should be understood that the above are only specific implementation methods of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of this application should be included in the scope of protection of this application.
Claims
1. A noise reduction method, characterized in that: include: The first electronic device is determined to be in a target scenario, where the target scenario includes a scenario in which the first electronic device uses a built-in microphone to collect target audio and obtain target audio data during wireless charging, wherein the microphone includes a first microphone, the first microphone is adjacent to a fan in a second electronic device, the second electronic device is used to power the first electronic device during the wireless charging process, and the fan is used to dissipate heat; When the first electronic device is in the target scene, the first electronic device reduces the speed of the fan based on interaction with the second electronic device, and / or eliminates the noise of the first microphone based on a first algorithm to obtain the target audio data after noise reduction.
2. The noise reduction method according to claim 1, wherein: After the first electronic device reduces the rotation speed of the fan based on interaction with the second electronic device when the first electronic device is in the target scene, and / or eliminates noise from the first microphone based on a first algorithm to obtain the target audio data after noise reduction, the method further includes: The first electronic device determines to exit the target scene; When the first electronic device exits the target scene, the first electronic device restores the rotation speed of the fan based on interaction with the second electronic device, and deactivates the first algorithm.
3. The noise reduction method according to claim 2, wherein: The first electronic device determining that it is in a target scene includes: The first electronic device detects a wireless charging event and determines whether it is in an audio scenario, where the first electronic device calls the microphone to collect the target audio, wherein the audio scenario includes at least one of a hands-free call scenario, a video call scenario, a hands-free voice scenario, an audio recording scenario, and a video recording scenario; When the first electronic device detects the wireless charging event and determines that it is in the audio scene, the first electronic device determines that it is in the target scene.
4. The noise reduction method according to claim 3, wherein: The first electronic device detecting a wireless charging event includes: The power management unit Charger of the hardware layer detects the wireless charging event; The power management driver of the kernel layer obtains the wireless charging event from the Charger; The power management driver reports the wireless charging event to the power management module of the hardware abstraction layer HAL; The power management module reports the wireless charging event to the power management service of the Java layer.
5. The noise reduction method according to claim 4, characterized in that: The determining whether the audio scene is in progress includes: In response to at least one audio application enabling its audio function, the audio application sends a first message to the audio service of the Java layer, where the first message includes a first configuration function, and the first configuration function is used to configure at least one of an audio stream and an audio device corresponding to the audio function; The audio service sends the first message to the audio server in the local service Native layer; The audio server sends the first message to the audio module of the HAL; The audio module determines that it is in the audio scene based on the first configuration function in the first message.
6. The noise reduction method according to claim 5, characterized in that: The audio module determining, based on the first configuration function in the first message, that the audio module is in the audio scene, including: The audio module parses the first configuration function to detect a first audio stream, and further determines that the audio scene is in the audio scene, where the first audio stream includes at least one of STREAM_VOICE_CALL and STREAM_VOIP_TX.
7. The noise reduction method according to claim 5, characterized in that: When the first electronic device detects the wireless charging event and determines that the first electronic device is in the audio scene, the first electronic device determines that the first electronic device is in the target scene, including: The power management service broadcasts the wireless charging event to a system of the first electronic device; After receiving the broadcast, the audio service sends the wireless charging event to the audio server; The audio server sends the wireless charging event to the audio module; The audio module determines that the audio module is in the target scene after storing the wireless charging event and determining that the audio module is in the audio scene.
8. The noise reduction method according to claim 7, wherein: The first electronic device reduces the rotation speed of the fan based on interaction with the second electronic device, including: After the audio module determines that the target scene is in progress, the audio module sends a second message to the power management driver, where the second message is used to notify the power management driver to control the speed of the fan; The power management driver sends a first instruction to the power management unit in response to the second message, wherein the first instruction is used to instruct the fan to reduce the rotation speed to a first preset rotation speed; The power management unit sends the first instruction to the second electronic device, so that the second electronic device reduces the rotation speed of the fan in response to the first instruction.
9. The noise reduction method according to claim 8, characterized in that: Eliminating the noise of the first microphone based on the first algorithm to obtain the target audio data after noise reduction includes: After the audio module determines that it is in the target scene, it sends a third message to the audio processing unit of the hardware layer, where the third message is used to enable the algorithm module, where the algorithm module is used to store the first algorithm; In response to the third message, the audio processing unit enables the algorithm module to execute the first algorithm, thereby eliminating the noise of the first microphone to obtain the target audio data after noise reduction.
10. The noise reduction method according to claim 9, characterized in that: The microphone further includes a second microphone, which is located at an opposite end of the first microphone in the first electronic device. Eliminating noise from the first microphone based on the first algorithm to obtain the target audio data after noise reduction includes: The first electronic device acquires first audio data and second audio data, wherein the first audio data is obtained by the second microphone collecting the target audio and is used as the first channel of audio data, and the second audio data is obtained by the first microphone collecting the target audio; Based on the first algorithm, the first electronic device replaces the second audio data with the first audio data, and the replaced first audio data is used as the second channel of audio data; The first electronic device integrates the first channel of audio data and the second channel of audio data to obtain the target audio data after noise reduction.
11. The noise reduction method according to claim 10, characterized in that: Eliminating the noise of the first microphone based on the first algorithm to obtain the target audio data after noise reduction includes: When the algorithm module is enabled, the first electronic device inputs the first audio data and the second audio data into the algorithm module; The algorithm module executes the first algorithm on the first audio data and the second audio data; When it is determined that the first audio data is collected by the second microphone, the first algorithm uses the first audio data as output first-channel audio data; When it is determined that the second audio data is collected by the first microphone, the first algorithm replaces the second audio data with the first audio data, and outputs the first audio data as the second channel of audio data; The algorithm module integrates the first channel of audio data and the second channel of audio data to obtain the target audio data after noise reduction.
12. The noise reduction method according to claim 9, characterized in that: The microphone further includes a second microphone, which is located at an opposite end of the first microphone in the first electronic device. Eliminating noise from the first microphone based on the first algorithm to obtain the target audio data after noise reduction includes: Based on the first algorithm, the first electronic device deactivates the first microphone and obtains first audio data, so that the first audio data serves as the target audio data after noise reduction, wherein the first audio data is obtained by the second microphone collecting the target audio.
13. The noise reduction method according to claim 12, wherein: Eliminating the noise of the first microphone based on the first algorithm to obtain the target audio data after noise reduction includes: When the algorithm module is started, the first electronic device modifies a channel quantity configuration item and a channel type configuration item in the algorithm module based on the first algorithm to output the first audio data, so that the first audio data serves as the target audio data after noise reduction; Among them, the channel number configuration item is used to configure the number of channels to 1, so that the algorithm module outputs one channel of audio data based on the channel, and the channel type configuration item is used to configure the channel type that matches the first audio data, so that the output audio data is the first audio data.
14. The noise reduction method according to claim 9, characterized in that: The first electronic device exiting the target scene includes: When the first electronic device does not detect the wireless charging event, or determines that it is not in the audio scene, the first electronic device determines to exit the target scene.
15. The noise reduction method according to claim 14, characterized in that: The first electronic device fails to detect a wireless charging event, including: The Charger does not detect the wireless charging event and stops reporting the wireless charging event to the power management driver, so that the audio module does not receive the wireless charging event; The audio module removes the wireless charging event stored in history and does not receive the wireless charging event currently broadcast, so as to determine that the wireless charging event is not detected.
16. The noise reduction method according to claim 15, characterized in that: The determining that the audio scene is not in the audio scene includes: In response to at least one audio application shutting down its audio function, the audio application sending a fourth message to the audio service, where the fourth message is used to notify that the audio function has been shut down; The audio service sends the fourth message to the audio server; The audio server sends the fourth message to the audio module; The audio module determines, based on the fourth message, that the audio module is not in the audio scene.
17. The noise reduction method according to claim 16, wherein: When the first electronic device exits the target scene, the first electronic device restores the rotation speed of the fan based on interaction with the second electronic device, including: After determining that the audio module is not in the audio scene, the audio module sends a fifth message to the power management driver, wherein the fifth message is used to notify the power management driver to stop controlling the speed of the fan; In response to the fifth message, the power management driver sends a second instruction to the power management unit, where the second instruction is used to instruct the fan to restore the rotation speed to the initial rotation speed; The power management unit sends the second instruction to the second electronic device, so that the second electronic device responds to the second instruction and restores the rotation speed of the fan.
18. The noise reduction method according to claim 17, wherein: The deactivating the first algorithm comprises: After the audio module determines to exit the target scene, it sends a sixth message to the audio processing unit, where the sixth message is used to shut down the algorithm module; In response to the sixth message, the audio processing unit turns off the algorithm module to deactivate the first algorithm.
19. A noise reduction device, characterized in that: Applicable to a first electronic device, comprising: a determination module, the determination module being configured to determine that the target scenario is being determined, the target scenario comprising a scenario in which the first electronic device, during a wireless charging process, calls its built-in microphone to collect target audio and obtain target audio data, wherein the microphone comprises a first microphone, the first microphone being adjacent to a fan in a second electronic device, and the second electronic device being configured to power the first electronic device during the wireless charging process; an interaction module, configured to interact with the second electronic device to reduce the rotation speed of the fan when the first electronic device is in the target scene; An algorithm module is used to eliminate the noise of the first microphone based on a first algorithm to obtain the target audio data after noise reduction.
20. An electronic device, characterized in that: include: A memory, a microphone, and a processor; the memory and the microphone are coupled to the processor; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, causes the electronic device to perform the noise reduction method according to any one of claims 1 to 18.
21. A wireless charging system, characterized in that: The wireless charging system includes a first electronic device and a second electronic device, wherein the first electronic device is the electronic device according to claim 20; The second electronic device is used to supply power to the first electronic device, and the second electronic device is equipped with a fan for heat dissipation. The first electronic device is used to control the rotation speed of the fan in the second electronic device.
Citation Information
Patent Citations
Audio signal processing method and device, electronic equipment and storage medium
CN111696513A
Electronic equipment assembly, wireless charging base and wireless charging method
CN113394843A
Earphone noise processing method and device and earphone
CN113873378A
Noise reduction method and related product
CN116110363A
Headset Noise Processing Method, Apparatus, and Headset
US20230134787A1