Electronic equipment
By integrating a gas sensor into the speaker module and using the speaker's sound cavity and through-hole to form a gas collection channel, the problem of insufficient gas sensor integration and collection in existing electronic devices is solved, achieving more efficient gas detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2026-03-10
AI Technical Summary
Gas sensors in existing electronic devices cannot be effectively integrated or cannot acquire sufficient gas, resulting in inaccurate gas detection.
A gas sensor is installed inside the speaker module, and a gas collection channel is formed by the speaker module's sound outlet cavity and through holes. The gas sensor and the speaker share a circuit board for power supply, thereby achieving gas sensor integration and space optimization.
This improves the space utilization and gas collection volume of the gas sensor, thereby enhancing the effectiveness and accuracy of gas detection.
Smart Images

Figure CN223987111U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electronic devices, and in particular to an electronic device. BACKGROUND
[0002] At present, electronic devices such as mobile phones and tablet computers enrich people's lives and provide various services to users. With the rapid development of electronic device technology, electronic devices are constantly upgraded and iterated, and users' functional requirements are increasingly diversified. From communication and entertainment to environmental monitoring, electronic devices have become an indispensable tool in people's lives. In this context, users have put forward new requirements for the gas detection function of electronic devices, that is, to set a gas sensor inside the electronic device to meet the gas detection requirements of the electronic device in different scenarios. CONTENT OF THE UTILITY MODEL
[0003] The embodiments of the present application provide an electronic device to set a gas sensor inside the electronic device to meet the gas detection requirements of the electronic device.
[0004] The present application provides an electronic device, comprising: a frame, the frame comprising at least one through hole, the through hole communicating the inside and outside of the electronic device; a speaker core, the speaker core having an acoustic cavity with the frame; a gas sensor, the gas sensor having an airway, the airway, the acoustic cavity and the at least one through hole being sequentially communicated to form a gas collection channel of the gas sensor.
[0005] Among them, the acoustic cavity is a hollow cavity. The gas can enter the acoustic cavity from the outside of the electronic device through the through hole, and then enter the airway through the acoustic cavity, so that it can be collected by the gas sensor and detected by the gas sensor.
[0006] Based on the above scheme, the gas sensor and the speaker core can share the acoustic cavity, thereby reducing the occupied space of the gas sensor and realizing the integration of the gas sensor in the electronic device. Moreover, since the space of the acoustic cavity is relatively large and the aperture of the through hole (such as the sound hole) corresponding to the speaker is also large enough, the gas sensor can collect sufficient gas to improve the effectiveness and accuracy of the gas detection of the gas sensor.
[0007] In an optional implementation, the speaker module further comprises a circuit board, and the circuit board is electrically connected with the speaker core and the gas sensor respectively.
[0008] Among them, the circuit board can supply power to the gas sensor, and the gas sensor can transmit the detection signal obtained by detecting the gas to the circuit board.
[0009] In an optional implementation, the through hole penetrates the frame along a first direction, and the first direction is a width direction or a length direction.
[0010] The through hole can be an acoustic hole. When the first direction is a width direction, the through hole is arranged on a side frame of the electronic device; or when the first direction is a length direction, the through hole is arranged on a top frame or a bottom frame of the electronic device.
[0011] In an optional implementation, the air channel extends along a second direction, and the second direction is perpendicular to the first direction.
[0012] The second direction can be a width direction or a length direction.
[0013] In an optional implementation, the air channel extends along a second direction, and an opening of the air channel along the second direction faces one of the at least one through hole.
[0014] The second direction can be at a first angle relative to the first direction.
[0015] In an optional implementation, the loudspeaker module further includes a dustproof screen, the dustproof screen is arranged on a side of the frame facing the inside of the electronic device, and the dustproof screen is configured to cover the through hole.
[0016] The dustproof screen can be a waterproof and breathable film.
[0017] In an optional implementation, the at least one through hole includes a plurality of through holes, the plurality of through holes are arranged in sequence along a second direction, and the second direction is perpendicular to the first direction.
[0018] The second direction can be a width direction or a length direction.
[0019] In an optional implementation, the number of gas sensors includes a plurality of gas sensors, and the plurality of gas sensors form a gas sensor array.
[0020] Each gas sensor can have an air channel, and each gas sensor collects gas through the corresponding air channel.
[0021] In an optional implementation, in the gas sensor array, the plurality of gas sensors are arranged along a first direction.
[0022] The first direction is an extension direction of the through hole, and the first direction is a width direction or a length direction.
[0023] In an optional implementation, the loudspeaker core and the gas sensor are arranged in a loudspeaker module of the electronic device.
[0024] The gas sensor is arranged in a housing of the loudspeaker module, so that no additional space is occupied in the inside of the electronic device. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 A rear side of a mobile phone 10 is shown according to an embodiment of the present application;
[0026] Figure 2 According to an embodiment of the present application, a schematic diagram of part of the internal structure of a first mobile phone 10 is shown;
[0027] Figure 3 According to an embodiment of the present application, a schematic diagram of part of the internal structure of a second mobile phone 10 is shown;
[0028] Figure 4 According to an embodiment of the present application, a schematic diagram of part of the internal structure of a third mobile phone 10 is shown;
[0029] Figure 5 According to an embodiment of the present application, a schematic diagram of part of the internal structure of a fourth mobile phone 10 is shown;
[0030] Figure 6 According to an embodiment of the present application, a schematic diagram of the flow of a first gas detection method is shown;
[0031] Figure 7 According to an embodiment of the present application, a schematic diagram of the flow of a second gas detection method is shown;
[0032] Figure 8 According to an embodiment of the present application, a schematic diagram of the flow of a third gas detection method is shown;
[0033] Figure 9 According to an embodiment of the present application, a schematic diagram of the flow of a fourth gas detection method is shown. DETAILED DESCRIPTION
[0034] Illustrative embodiments of the present application include, but are not limited to, an electronic device.
[0035] As mentioned above, users have demands for the gas detection function of electronic devices, i.e. to set a gas sensor inside the electronic device. However, the gas sensor cannot be integrated in the current electronic devices, or the set gas sensor cannot obtain sufficient gas, so as to fail to achieve accurate detection of the gas. For example, in some embodiments, the gas sensor and the microphone share the microphone channel, but the microphone channel is often narrow, i.e. has the characteristics of small channel diameter and long channel length, resulting in small air intake, which is insufficient to achieve accurate detection of the gas.
[0036] Based on this, embodiments of this application provide an electronic device in which a gas sensor is disposed inside a speaker module. It is understood that the electronic device provided in this application may include, but is not limited to, any of the following electronic devices with microphones: mobile phones, tablets, laptops, cameras, ultra-mobile personal computers (UMPCs), handheld computers, touch-screen TVs, walkie-talkies, netbooks, POS machines, personal digital assistants (PDAs), wearable devices, virtual reality devices, smart vehicles, smart robots, industrial equipment, etc., and this application does not impose any limitations on this. For ease of description, a mobile phone will be used as an example for the following explanation.
[0037] Figure 1 This is a schematic diagram of the rear side of a mobile phone 10 provided in an embodiment of this application. Figure 2 This is a partial structural diagram of the internal structure of a mobile phone 10 provided in an embodiment of this application. To facilitate subsequent description, the directions indicated in the figures of this application will be explained before introducing the mobile phone 10. In the figures of this application, the X-axis direction represents the width direction of the mobile phone 10, the Y-axis direction represents the length direction of the mobile phone 10, and the Z-axis direction represents the thickness direction of the mobile phone 10. The X-axis, Y-axis, and Z-axis directions are perpendicular to each other.
[0038] It is understandable that the side of the phone 10 that is set opposite to each other along the Z-axis is... Figure 1 The back cover is shown, with the screen on the other side. The mid-frame of the phone 10 (not shown) connects the back cover and the screen along the Z-axis. In some embodiments, the mid-frame may include at least one of two side frames arranged opposite each other along the X-axis and two side frames arranged opposite each other along the Y-axis. In this application embodiment, the two side frames arranged opposite each other along the Y-axis are referred to as the top frame and the bottom frame, respectively, and the two side frames arranged opposite each other along the X-axis are referred to as the first side frame and the second side frame, respectively, wherein the direction of the top frame relative to the bottom frame 11 is the positive direction of the Y-axis. According to some embodiments, the above-mentioned frames constitute the shape of the phone 10.
[0039] like Figure 1 As shown, a speaker module 20 is provided inside the mobile phone 10. The speaker module 20 can be located near any of the aforementioned frame edges (e.g., top frame, bottom frame, first side frame, or second side frame). The following example uses the speaker module 20 located in the direction extending along the positive Y-axis of the bottom frame 11 as an example. A through-hole 30 is provided on the bottom frame 11 of the mobile phone 10, and the through-hole 30 communicates with the speaker module 20, allowing the sound signal from the speaker module 20 to be transmitted to the outside of the mobile phone 10 through the through-hole 30.
[0040] like Figure 2As shown, the speaker module 20 includes a speaker core 23 and a sound cavity 24, wherein the sound cavity 24 is in communication with the through hole 30, so that the sound signal emitted by the speaker core 23 is transmitted to the outside of the mobile phone 10 via the sound cavity 24 through the through hole 30.
[0041] With reference to the drawings still, Figure 2 , the inside of the mobile phone 10 further includes a gas sensor 21, according to some embodiments, the gas sensor 21 can be arranged inside the speaker module 20. The gas sensor 21 has a gas channel 22, the gas channel 22 and the sound cavity 24 are communicated, and extend in the X-axis direction. Thus, the gas channel 22, the sound cavity 24 and the through hole 30 can jointly constitute a detection channel of the gas sensor 21. Specifically, the gas outside the mobile phone 10 can enter the through hole 30, pass through the dust screen 25 into the sound cavity 24, and then enter the gas channel 22, so that the gas sensor 21 can detect the gas.
[0042] It can be understood that the gas sensor 21 can be arranged close to the through hole 30, for example, the gas sensor 21 is closer to the dust screen 25 in the Y-axis direction than the speaker core 23, so that the gas sensor 21 can collect enough gas through the gas channel 22.
[0043] Some embodiments, as Figure 2 shown, the through hole 30 extends along the X-axis direction and penetrates the bottom frame 11 along the Y-axis direction. It can be understood that in other embodiments, when the through hole 30 is arranged in the first side frame or the second side frame, the through hole 30 can penetrate the first side frame or the second side frame along the Y-axis direction.
[0044] According to some embodiments, the dust screen 25 is connected with the sound cavity 24, the dust screen 25 covers the through hole 30, and can isolate the dust outside the sound cavity 24. The dust screen 25 can be a waterproof and breathable film, which can be used to isolate moisture to prevent moisture outside the mobile phone 10 from entering the sound cavity 24. According to some embodiments, the dust screen 25 can be attached to the bottom frame 11.
[0045] According to some embodiments, the gas sensor 21 can be a MEMS (micro-electromechanical system gas sensor), which has a small volume and occupies a small volume of the speaker module 20.
[0046] In this embodiment, the gas sensor's air passage is connected to the sound outlet cavity inside the speaker module, and the gas sensor is located inside the speaker module near a through-hole. This through-hole is at least one opening on the electronic device housing, which can be used to output the sound signal from the speaker module. Gas can enter the sound outlet cavity through the through-hole and then further enter the air passage connected to the sound outlet cavity, enabling the gas sensor to collect and detect the gas. Because the sound outlet cavity inside the speaker module has a large volume, and the distance between the gas sensor's air passage and the through-hole is close, the gas sensor can collect a sufficient amount of gas through the air passage, thereby improving the accuracy of gas detection.
[0047] According to some embodiments, the speaker module also includes a circuit board electrically connected to the speaker core and the gas sensor respectively to supply power to the speaker core and the gas sensor.
[0048] Please see Figure 3 Compared to Figure 2 As shown in the diagram, the speaker module 20 may further include a circuit board 26, which is connected to the speaker core 23 and the gas sensor 21 via a transmission channel 27. A portion of the transmission channel 27 can pass through the speaker core 23, and the transmission channel 27 can be used to transmit electrical energy and electrical signals (such as the detection signal output by the gas sensor 21 after detecting gas) between the circuit board 26 and the speaker core 23 or the gas sensor 21. The circuit board 26 may be, for example, an FPC (flexible printed circuit). Since the gas sensor 21 and the speaker core 23 share the circuit board 26, an additional power supply circuit is avoided, thus saving space.
[0049] According to some embodiments, the gas passage inside the gas sensor can also be oriented toward the through hole to facilitate gas entry into the gas passage.
[0050] Please see Figure 4 Compared to Figure 3 In this structure, the gas passage 22 within the gas sensor 21 is positioned facing the through hole 30, and the extending direction of the gas passage 22 can form a first angle relative to the X-axis direction. Correspondingly, the gas sensor 21 can be installed obliquely, and its setting direction can form a first angle relative to the X-axis direction.
[0051] It should be noted that, Figure 2- Figure 4 The number of through holes 30 is for illustrative purposes only. In this embodiment, the number of through holes 30 can be one or more. For example, multiple through holes 30 can be arranged sequentially along the X-axis on the bottom frame 11. This embodiment does not limit the arrangement of these through holes.
[0052] In this embodiment, since the gas sensor is located inside the speaker module and shares the same sound outlet cavity with the speaker module, the gas sensor not only has more space for placement but can also collect sufficient gas, thus enabling it to detect various types of gases. According to some embodiments, the number of gas sensors can be multiple, and these multiple gas sensors can be arranged in the form of a sensor array, wherein each gas sensor in the sensor array has a gas channel inside.
[0053] Please see Figure 5 Compared to Figure 3 The structure includes two gas sensors 21, and correspondingly, two air passages 22. The two gas sensors 21 are arranged sequentially along the Y-axis, and each gas sensor 21 has one air passage 22.
[0054] For example, in a gas sensor array, different gas sensors can have different gas detection functions, forming different detection channels to achieve the detection of multiple gases or multiple gas parameters.
[0055] It should be noted that, Figure 5 The number of gas sensors shown is for illustrative purposes only, and this application does not limit the number of gas sensors in the gas sensor array.
[0056] Understandable, based on Figure 2 ~ Figure 5 The gas sensor 21 shown can realize the gas collection and detection method flow. The following is combined with... Figure 6 The procedure for a gas sampling and detection method is described. For example... Figure 6 As shown, the exemplary process includes the following steps.
[0057] S601: Collect gas according to the first time interval and output a detection signal.
[0058] According to some embodiments, a gas sensor may include multiple detection channels capable of detecting one or more gas components and atmospheric pressure. Each detection channel may be used to detect one gas or atmospheric pressure. For example, a single gas sensor may detect multiple gases or atmospheric pressures. Alternatively, each of multiple gas sensors may detect a single gas or atmospheric pressure.
[0059] S602: When the signal quantity of the detected signal exceeds the first threshold, the preset parameters are collected.
[0060] According to some embodiments, the preset parameters may include one or more of the following parameters: microphone (MIC) signal characteristics, microphone proximity distance, screen proximity distance, gas sensor signal intensity of each channel, and device temperature. The microphone signal characteristics, microphone proximity distance, and screen proximity distance reflect the interaction state between the user and the electronic device. For example, depending on the screen proximity distance, the screen proximity sensor may be in an active or inactive state. The microphone signal characteristics are the feature parameters extracted by the microphone based on the collected voice signal, such as energy, amplitude, and frequency. The microphone proximity distance is the distance between the microphone near the bottom frame 11 and the user. The screen proximity distance is the distance between the screen and the user. The gas sensor signal intensity of each channel is the signal intensity of the detection signal corresponding to each detection channel in all detection channels. The device temperature is the temperature of the electronic device itself.
[0061] It is understandable that preset parameters can be used to determine the detection scenario, which may include one or more of the following: passive breath detection scenario, active blowing scenario, environmental anomaly scenario, and battery leakage anomaly scenario. Different detection scenarios detect different types of gases, and correspondingly, the alarm thresholds for different gas types also differ.
[0062] S603: Determine the detection scenario based on preset parameters.
[0063] For example, if voice activity is determined based on the characteristics of the voice microphone signal, and the user is determined to be close to the microphone based on the proximity distance of the microphone, then the detection scenario can be determined to be a passive tone scenario.
[0064] For example, if the user actively blows air based on the signal quantities of the gas sensors in each channel, then the detection scenario can be determined as an active blowing scenario.
[0065] For example, if an abnormal change in gas concentration is determined based on the signal quantities of gas sensors in each channel, then the detection scenario can be identified as an abnormal environmental scenario.
[0066] For example, if the gas concentration changes abnormally based on the signal from each channel's gas sensor, and the body temperature is determined to be outside the normal range, then the detection scenario can be identified as an electrical leakage abnormality scenario.
[0067] S604: Based on the detection scenario, determine whether an alarm should be triggered, and if an alarm is triggered, generate an alarm prompt corresponding to the detection scenario.
[0068] According to some embodiments, when a specific detection scenario is determined, a preset signal threshold and a detection signal under that detection scenario can be compared to determine whether an alarm should be triggered.
[0069] According to some embodiments, if an alarm is detected, the alarm prompt level can be determined based on one or more parameters such as the duration of the abnormal detection signal, historical data of the detection signal, and signal strength of the detection signal, so as to generate an alarm prompt of the corresponding prompt level.
[0070] In both passive and active breathing scenarios, gas sensors can be used to detect breath, such as when a user is speaking or actively exhaling, to collect gas and detect breath parameters.
[0071] The following combination Figure 7 An exemplary process is described for a method of detecting breath using a gas sensor. For example... Figure 7 As shown, it includes the following steps.
[0072] S701: Collect gas according to the first time interval and output a detection signal.
[0073] It is understandable that the details of S701 can be found in the above description of S601, and will not be repeated here.
[0074] S702: When the signal quantity of the detected signal exceeds the first threshold, the preset parameters are collected.
[0075] According to some embodiments, the first threshold can be obtained when the user first turns on the device and the electronic device actively guides the user to collect data in a specific environment, such as when the user blows air or speaks near the lips for a period of time after washing up after a meal.
[0076] It is understandable that other details of S702 can be found in the explanation of S602 above, and will not be repeated here.
[0077] S703: Determine if the user is close to the microphone and electronic device and holding the electronic device; if yes, proceed to S704; if no, end the process.
[0078] For example, if the distance to the microphone is less than the first distance threshold, it can be determined that the user is close to the microphone.
[0079] For example, if the screen proximity sensor is inactive (OFF), it can be determined that a user is near the electronic device.
[0080] For example, if the inertial parameters collected by the inertial measurement unit (IMU) meet the inertial conditions, it can be determined that the user is holding the device.
[0081] Understandably, if yes, it means that there is bad breath in the detection scenario, which may be a passive bad breath scenario or an active blowing scenario, and proceed to S704 for further scenario judgment; if no, there is no bad breath in the detection scenario, and the process ends.
[0082] S704: Determine if the user is engaging in close-lip conversation; if yes, proceed to S705; otherwise, proceed to S706.
[0083] According to some embodiments, it is possible to determine whether a user is speaking close to their lips based on the characteristics of the voice microphone signal.
[0084] It is understandable that if it is determined that the user is speaking close to their lips, then the detection scenario corresponds to a passive tone scenario. If the user is on a call, the process proceeds to S705 to continue execution. If it is determined that the user is not speaking close to their lips, then the situation where the user is speaking is excluded, and the process proceeds to S706 for further scenario judgment.
[0085] S705: The detection scenario is determined to be a passive breath detection scenario. Silent breath detection is enabled.
[0086] It is understandable that, for passive tone detection scenarios, silent tone detection can be enabled, which means that the detection can be performed in the background without affecting the operation of electronic devices.
[0087] S706: Determine whether the air pressure intensity exceeds the first air pressure threshold based on the detection signal; if yes, proceed to S707; if no, end the process.
[0088] Understandably, if the air pressure exceeds the first air pressure threshold, it indicates that the user is blowing air into the orifice, and the process can proceed to step S707 to continue execution. If not, it means the detection scenario does not belong to either of the two breath detection scenarios mentioned above, i.e., it does not belong to the active blowing scenario, and the process ends.
[0089] S707: The detection scenario is determined to be an active breath-blowing scenario, and active breath detection is enabled.
[0090] It is understandable that, in the context of active breath-blowing scenarios, the active breath detection module can be activated, and the subsequent S708 step can be performed to perform the detection.
[0091] S708: Collect gas according to the second time interval and output a detection signal.
[0092] According to some embodiments, gas can be collected multiple times consecutively at a second time interval, and after each gas collection, the ambient gas is detected and a corresponding detection signal is output for subsequent analysis.
[0093] S709: Determine and save the detection result based on the detection signal.
[0094] According to some embodiments, the detection signal can be fitted and noise-removing data can be performed to obtain the detection result. For example, the detection result may indicate the concentration of at least one gas and / or the gas pressure.
[0095] S710: Determine whether the detection result at the first moment exceeds the threshold of the first breath; if yes, proceed to S711; if no, proceed to S712.
[0096] It is understandable that the detection results at the first moment can correspond to the environmental gas collected for the first time during the execution of S708.
[0097] According to some embodiments, the threshold for the first breath can be different for passive breathing scenarios and active blowing scenarios, and this application does not limit this.
[0098] According to some embodiments, the threshold for the first breath can be set according to a certain proportion of the aforementioned first threshold.
[0099] S711: Output the first alarm prompt.
[0100] S712: Determine whether the detection result of the first time period exceeds the threshold of the second breath; if yes, proceed to S713; if no, end the process.
[0101] It is understandable that the detection results in the first time period can correspond to the environmental gases collected multiple times during the execution of S708.
[0102] According to some embodiments, the second breath threshold can be different for passive breathing scenarios and active blowing scenarios, and this application does not limit it.
[0103] According to some embodiments, the second breath threshold can be set according to a certain proportion of the first threshold.
[0104] S713: Outputs a second alarm message.
[0105] It is understandable that the second alarm prompt can be different from the first alarm prompt, and the level of the second alarm prompt can be lower than that of the first alarm prompt.
[0106] In this application embodiment, the first alarm prompt or the second alarm prompt includes, but is not limited to, displaying specific information on the screen, emitting vibrations at a specific frequency, or playing specific sounds through a speaker.
[0107] In abnormal environmental scenarios, gas sensors can be used to detect hazardous gases in the environment (such as formaldehyde, ammonia, etc.), for example, by collecting gas at a preset frequency and detecting the concentration of hazardous gases.
[0108] The following combination Figure 8 This document describes an exemplary process for using a gas sensor to detect ambient gases. For example... Figure 8 As shown, it includes the following steps.
[0109] S801: Collect gas according to the first time interval and output a detection signal.
[0110] It is understandable that the details of S801 can be found in the explanation of S601 above, and will not be repeated here.
[0111] S802: When the signal quantity of the detected signal exceeds the first threshold, the preset parameters are collected.
[0112] According to some embodiments, the first threshold can be the environmental gas baseline that the electronic device actively guides the user to record in a specific environment (such as an open outdoor area) when the user first powers on the device.
[0113] It is understandable that the details of S802 can be found in the explanation of S602 above, and will not be repeated here.
[0114] S803: Determine if the user is interacting with the smart assistant using the MIC; if not, proceed to S804; if yes, end the process.
[0115] It's understandable that the system can determine whether the user is interacting with the smart assistant using the microphone based on the characteristics of the voice microphone signal. If so, it means that the detected gas is not only ambient gas but may also include breath, which does not fall under the category of abnormal environmental scenarios, and the process ends. If not, it proceeds to S804 to continue execution.
[0116] S804: Determine if the distance between the device and the user is greater than the first distance threshold. If yes, proceed to S805; otherwise, end the process.
[0117] According to some embodiments, sensors in electronic devices, such as screen proximity sensors, can be used to determine whether the distance between the device and the user exceeds a first distance threshold. If not, it indicates that the user is close to the electronic device and the detected gas is not just ambient gas, thus not belonging to an abnormal environmental scenario, and the process ends. If yes, it proceeds to S805 to continue execution.
[0118] S805: Collect gas according to the second time interval and output a detection signal.
[0119] According to some embodiments, gas can be collected multiple times consecutively at a second time interval, and after each gas collection, the ambient gas is detected and a corresponding detection signal is output for subsequent analysis.
[0120] S806: Determine the detection result based on the detection signal and save the current environmental information.
[0121] According to some embodiments, the detection signal can be fitted and noise-removing data can be performed to obtain the detection result. For example, the detection result may indicate the concentration of at least one gas and / or the gas pressure.
[0122] According to some embodiments, the current environment information may include the environmental location, i.e. the spatial location of the electronic device, such as the living room, kitchen, library, etc.
[0123] S807: Determine whether the detection result exceeds the first environmental threshold; if yes, proceed to S808; if no, end the process.
[0124] According to some embodiments, the first environmental threshold can be set according to a certain proportion of the first threshold mentioned above.
[0125] S808: Triggers the first environmental anomaly alarm.
[0126] According to some embodiments, the alarm intensity of the first environmental anomaly alarm can be upgraded based on the trigger time of the first environmental anomaly alarm and / or the degree to which it exceeds the first environmental threshold.
[0127] S809: Determine whether the number of consecutive abnormal detection results of electronic devices in the same area exceeds the quantity threshold; if yes, proceed to S810; if no, end the process.
[0128] It is understandable that if the number of consecutive abnormal detection results exceeds the quantity threshold, that is, if the detection results corresponding to n consecutive environmental gas samples all exceed the first environmental threshold, and n exceeds the quantity threshold, then the process can switch to S810 to trigger a second environmental anomaly alarm with a higher intensity than the first environmental anomaly alarm.
[0129] S810: Triggers a second environmental anomaly alarm.
[0130] According to some embodiments, after triggering a second environmental anomaly alarm, the electronic device can also provide the user with travel suggestions, such as advising the user to leave the current area.
[0131] According to some embodiments, the alarm intensity of the second environmental anomaly alarm can be upgraded based on the trigger time of the second environmental anomaly alarm and / or the degree to which it exceeds the first environmental threshold.
[0132] In battery leakage scenarios, gas sensors can be used to detect battery leaks. In this embodiment, the gas sensor can be a gas sensor array composed of multiple gas sensors (e.g., Figure 5 (The array of gas sensors 21 shown). For example, the gas sensor array pre-collects signal characteristics of a battery leakage scenario and stores these signal characteristics as a battery leakage template. The gas sensor array collects gas at a preset frequency, detects the gas to obtain a detection signal, and then determines whether the battery is leaking based on the similarity between the detection signal and the battery leakage template.
[0133] The following combination Figure 9 This document describes an exemplary process for using a gas sensor to detect battery leaks. For example...Figure 9 As shown, it includes the following steps.
[0134] S901: Collect gas according to the first time interval and output a detection signal.
[0135] It is understandable that the details of S901 can be found in the explanation of S601 above, and will not be repeated here.
[0136] S902: When the signal quantity of the detected signal exceeds the first threshold, the preset parameters are collected.
[0137] According to some embodiments, the first threshold can be the environmental gas baseline that the electronic device actively guides the user to record in a specific environment (such as an open outdoor area) when the user first powers on the device.
[0138] It is understandable that the details of S902 can be found in the explanation of S602 above, and will not be repeated here.
[0139] S903: Acquire multi-channel detection signals and calculate the similarity between the detection signals and the offline leak template.
[0140] According to some embodiments, signal characteristics under battery leakage scenarios can be collected in advance by a gas sensor array, and these signal characteristics under battery leakage scenarios can be saved in advance as an offline leakage template.
[0141] According to some embodiments, the detection signal can be fitted and noise-removing data can be performed to obtain a preprocessed detection signal, which can then be compared with an offline leak template to determine the similarity between the two.
[0142] S904: Determine if the similarity is less than the first battery anomaly threshold and the electronic device is stationary. If yes, proceed to S905; otherwise, end the process.
[0143] Understandably, if so, it indicates a battery leak scenario, suggesting a potential leak or battery malfunction, and the process proceeds to step S905. If not, it indicates the scenario is not a battery leak scenario, and the process ends.
[0144] According to some implementations, it is possible to determine whether a mobile phone is idle based on the characteristics of the voice microphone signal.
[0145] S905: Records abnormal detection signals and saves the current interaction / device / environment state.
[0146] According to some embodiments, the abnormal detection signal, namely the detection signal in S904 that is determined to have a similarity to the offline leak template that is less than the first battery abnormal threshold, can be recorded.
[0147] According to some embodiments, the current interaction / device / environment state may include at least one of the following data: the interaction state between the user and the electronic device, the environmental location of the electronic device, the detection time corresponding to the abnormal detection signal, accelerometer data, gyroscope data, and charging data.
[0148] S906: Determine whether the number of abnormal signal detections exceeds the quantity threshold within a certain period. If yes, proceed to S907 and S909; otherwise, end the process.
[0149] It is understandable that if the number of abnormal detection signals exceeds the quantity threshold, that is, the similarity between n detection results and the offline leak template is less than the first battery abnormality threshold, and n exceeds the quantity threshold, then the process can proceed to S907 to further record the leak event.
[0150] S907: Records battery leak events.
[0151] It is understandable that recording battery leakage events means determining if the battery is leaking and recording the leakage event in the system.
[0152] S908: Analyze the type of leak based on abnormal detection signals.
[0153] It is understandable that the abnormal detection signal is recorded in the S905.
[0154] According to some embodiments, the types of leakage may include charging abnormality, aging, drop, etc.
[0155] S909: Emergency alarm notification triggered.
[0156] It is understandable that an emergency alarm can be triggered after a battery leak is detected, sending a notification message to the user to alert them to the safety risks associated with the leak.
[0157] Through the embodiments of this application, the gas sensor in the electronic device can realize gas detection in a variety of scenarios, covering breath gas detection, ambient gas detection, battery leak detection, etc., thereby realizing a more comprehensive gas detection function in the electronic device.
[0158] It should be noted that in the examples and description of this application, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0159] Although this application has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made thereto without departing from the scope of this application.
Claims
1. An electronic device, comprising: The electronic device comprises: a frame comprising at least one through hole, the through hole being in communication with the inside and outside of the electronic device; a speaker core, the speaker core having an acoustic cavity with the frame; a gas sensor, the gas sensor having an air passage, the air passage, the acoustic cavity and the at least one through hole being in communication in sequence, forming a gas collection channel of the gas sensor.
2. The electronic device of claim 1, wherein, The electronic device further comprises a circuit board, the circuit board being electrically connected with the speaker core and the gas sensor respectively.
3. The electronic device of claim 1, wherein, The through hole penetrates the frame along a first direction, the first direction being a width direction or a length direction.
4. The electronic device of claim 3, wherein, The air passage extends along a second direction, the second direction being perpendicular to the first direction.
5. The electronic device of claim 3, wherein, The air passage extends along the second direction, and an opening of the air passage along the second direction faces one of the at least one through hole.
6. The electronic device of claim 3, wherein, The electronic device further comprises a dustproof screen, the dustproof screen being arranged on a side of the frame facing the inside of the electronic device, the dustproof screen being used for covering the through hole.
7. The electronic device of claim 6, wherein, The at least one through hole comprises a plurality of through holes, the plurality of through holes being arranged in sequence along the second direction, the second direction being perpendicular to the first direction.
8. The electronic device of claim 6, wherein, The number of the gas sensors comprises a plurality of gas sensors, the plurality of gas sensors forming a gas sensor array.
9. The electronic device of claim 8, wherein, In the gas sensor array, the plurality of gas sensors are arranged along the first direction.
10. The electronic device of any of claims 1-9, wherein, The speaker core and the gas sensor are arranged in a speaker module of the electronic device.