A processing method and electronic device

By setting a sensor with a sensing area larger than the path diameter in the airflow transmission path, and combining it with a motion sensor and an airflow drive device, the problem of insufficient sensor detection accuracy in confined spaces is solved, and accurate measurement of material content in portable devices is achieved.

CN115407020BActive Publication Date: 2026-02-27LENOVO (BEIJING) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210916699.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-01
Publication Date
2026-02-27
Estimated Expiration
2042-08-01

AI Technical Summary

Technical Problem

In existing technologies, sensor units struggle to achieve accurate environmental detection in confined spaces. In particular, the placement of VOC sensors in portable electronic devices affects the device's structure and appearance, and the detection accuracy is insufficient.

Method used

The target sensor is placed in the airflow transmission path connecting the air inlet and the air outlet, with its sensing area larger than the diameter of the airflow transmission path. The airflow speed is determined with the help of motion sensors and airflow driving devices. The processor obtains the correlation set for parameter processing to determine the content index of substances in the environment.

Benefits of technology

It reduces the impact of sensor setup on equipment structure and appearance, improves the accuracy of sensing parameters and the accuracy of material content index, and enables precise measurement by sensors in confined spaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115407020B_ABST
    Figure CN115407020B_ABST
Patent Text Reader

Abstract

The application discloses a processing method and an electronic device. The method comprises the following steps: enabling a target sensor; wherein the target sensor is arranged in an airflow transmission path connecting an air inlet to an air outlet; the sensing area of the target sensor is greater than the diameter of the airflow transmission path; obtaining a sensing parameter; wherein the sensing parameter comprises a parameter obtained by the target sensor sensing airflow passing through the airflow transmission path; processing the sensing parameter to determine the content index of at least one substance in the environment in which the electronic device is located.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and in particular, to a processing method and an electronic device. BACKGROUND

[0002] In actual applications, when detecting an environment, a sensor unit is usually arranged in an open environment to obtain a relatively accurate detection result. However, for a sensor unit arranged in a narrow space, there is a lack of a scheme for detecting an environment by using such a sensor in the related art. SUMMARY

[0003] Embodiments of the present application provide a processing method, which comprises:

[0004] enabling a target sensor; wherein the target sensor is arranged in an airflow transmission path connecting an air inlet to an air outlet; and an inductive area of the target sensor is greater than a diameter of the airflow transmission path;

[0005] obtaining an inductive parameter; wherein the inductive parameter comprises a parameter obtained by the target sensor inducting airflow passing through the airflow transmission path;

[0006] processing the inductive parameter to determine a content index of at least one substance in an environment in which the electronic device is located.

[0007] In some embodiments, the obtaining the inductive parameter comprises:

[0008] if a first condition is met, obtaining the inductive parameter, wherein the first condition comprises detecting an airflow velocity of airflow passing through the airflow transmission path.

[0009] In some embodiments, the method further comprises:

[0010] enabling a motion sensor; wherein the motion sensor comprises a gyroscope and an acceleration sensor;

[0011] if at least two parameters are collected by the motion sensor, determining the airflow velocity based on the at least two parameters.

[0012] In some embodiments, the if the first condition is met, the inductive parameter is obtained, comprising:

[0013] if the first condition and a second condition are met, the inductive parameter is obtained; wherein the second condition comprises that an acceleration obtained by the acceleration sensor is less than or equal to an acceleration threshold.

[0014] In some embodiments, the method further comprises:

[0015] The air flow driving device is enabled; wherein the air flow driving device comprises a device arranged in the air flow transmission path and used for driving the air flow in the air flow transmission path;

[0016] The air flow speed is determined based on an operating state of the air flow driving device.

[0017] In some embodiments, the sensing parameter is obtained if a first condition is met, and the first condition comprises detecting the air flow speed of the air flow passing through the air duct.

[0018] The sensing parameter is obtained if the first condition and a third condition are met; wherein the third condition comprises that the air flow speed is greater than or equal to a speed threshold.

[0019] In some embodiments, the sensing parameter is processed to determine the content index of at least one substance in the environment of the electronic device, and the processing of the sensing parameter comprises:

[0020] An association relationship set is obtained; wherein the association relationship set comprises a corresponding relationship between a measurement index and an actual index associated with the air flow speed;

[0021] At least one actual index is obtained from the association information set based on the air flow speed and the matching relationship between the sensing parameter and the measurement index in the association relationship set.

[0022] The at least one actual index is processed to determine the content index.

[0023] Embodiments of the present application also provide an electronic device, which comprises:

[0024] An air duct, which comprises an air flow transmission path connecting an air inlet to an air outlet;

[0025] A target sensor arranged in the air flow transmission path and used for sensing the air flow passing through the air duct to obtain a sensing parameter; the sensing area of the target sensor is greater than the diameter of the air duct.

[0026] A processor used for obtaining the sensing parameter and processing the sensing parameter to determine a content index of at least one substance in the environment of the electronic device.

[0027] In some embodiments, the processor is used for obtaining the sensing parameter if a first condition is met; wherein the first condition comprises detecting the air flow speed of the air flow passing through the air duct.

[0028] In some embodiments, the processor is used for obtaining an association relationship set; wherein the association relationship set comprises a corresponding relationship between a measurement index and an actual index associated with the air flow speed.

[0029] The processor is further configured to obtain at least one actual index from the association information set based on the airflow velocity, the sensing parameters, and the matching relationship between the airflow velocity and the measurement index in the association set; and to process the at least one actual index to determine the content index. Attached Figure Description

[0030] Figure 1 A flowchart illustrating the processing method provided in an embodiment of this application;

[0031] Figure 2 A schematic diagram of the process for determining airflow velocity provided in an embodiment of this application;

[0032] Figure 3 This is another schematic diagram of the process for determining airflow velocity provided in an embodiment of this application;

[0033] Figure 4 A schematic diagram of the process for determining the content index provided in an embodiment of this application;

[0034] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0035] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0036] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0037] In practical applications, gas sensors, such as volatile organic compound (VOC) sensors, can be used to measure the content of substances in the air, such as formaldehyde, methanol, and benzene. The detection principle involves the reaction between the chemical materials contained in the VOC sensor and the components of the air, converting the reaction result into an electrical signal, and then sampling and quantifying the electrical signal to obtain the content information of the aforementioned substances.

[0038] However, in practical applications, VOC sensors need to be placed in an open space to fully react with gas molecules in the air. For portable electronic devices, in order to add a VOC sensor to realize the gas measurement function anytime and anywhere, a large housing space or area needs to be set up for the VOC sensor. However, such an operation will lead to significant changes to the structure and appearance of the electronic device, thus affecting the shape and aesthetics of the electronic device, and is also likely to generate high modification costs.

[0039] Based on the above problems, the embodiment of the present application provides a processing method and an electronic device. In the processing method provided by the embodiment of the present application, the target sensor is arranged in the airflow transmission path connecting the air inlet to the air outlet, and the sensing area of the target sensor is greater than the diameter of the airflow transmission path. After the target sensor is enabled, the sensing parameter obtained by the target sensor sensing the airflow in the airflow transmission path is processed, and the content index of at least one substance in the environment in which the electronic device is located can be determined.

[0040] Therefore, since the diameter of the airflow transmission path is less than the sensing area of the target sensor, the degree of change and influence of the structure and appearance of the electronic device caused by arranging the target sensor can be reduced. Moreover, since the target sensor is arranged in the airflow transmission path connecting the air inlet to the air outlet, the target sensor can be in sufficient contact with the airflow passing through the airflow transmission path, the consistency between the sensing parameter and the content index of at least one substance in the environment in which the electronic device is located is improved, and the accuracy of the sensing parameter and the content index of at least one substance determined based on the sensing parameter is improved.

[0041] It should be noted that the processing method provided by the embodiment of the present application can be implemented by a processor of an electronic device. The processor can be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor.

[0042] Figure 1 A flowchart of the processing method provided by the embodiment of the present application is shown. As shown in FIG. 1, the flowchart can include steps 101 to 103. Figure 1

[0043] Step 101, enabling the target sensor.

[0044] In the embodiment of the present application, the target sensor is arranged in the airflow transmission path connecting the air inlet to the air outlet, and the sensing area of the target sensor is greater than the diameter of the airflow transmission path.

[0045] ​In an embodiment, the target sensor can include a sensor capable of detecting at least one component and / or content of a substance in the air; for example, the target sensor can be a VOC sensor; for example, a plurality of target sensors can be arranged in the airflow transmission path, and each target sensor can detect a different type of substance; for example, different target sensors can be arranged at different positions of the airflow transmission path.

[0046] In an embodiment, the airflow transmission path can have a regular geometric shape, for example, the airflow transmission path can include a cylinder with an open bottom surface and top surface; for example, the communication portion of the airflow transmission path can be curved or non-curved; for example, the area and / or size of the air inlet and the air outlet can be the same or different, and the present application does not limit the same.

[0047] In an embodiment, the target sensor can be arranged on the inner wall of the airflow transmission path and can be arranged closely to the inner wall, thereby reducing the obstruction to the airflow in the airflow transmission path; for example, the sensing surface of the target sensor can be higher than the inner wall of the airflow transmission path, thereby enabling the target sensor to fully contact the airflow passing through the airflow transmission path.

[0048] In an embodiment, the target sensor can be communicatively connected to the device driver module of the electronic device through a communication bus and a standard communication interface, thereby enabling the target sensor to receive an enabling instruction from the processor transmitted by the device driver module through the standard communication interface and switch to the sensing state; for example, the instruction for enabling the target sensor can be triggered by the electronic device itself, such as automatically triggered when the occasion is switched, or triggered by the user of the electronic device.

[0049] Step 102, obtaining a sensing parameter.

[0050] The sensing parameter includes a parameter obtained by the target sensor sensing the airflow passing through the airflow transmission path.

[0051] In an embodiment, the sensing surface of the target sensor can be provided with at least one chemical substance, which can react with at least one substance in the airflow passing through the airflow transmission path to obtain a reaction result, and the processor of the electronic device can obtain the reaction result and process the reaction result, thereby obtaining the sensing parameter.

[0052] In an embodiment, the sensing parameter can include a parameter measured instantaneously on the airflow passing through the airflow transmission path, or a set of a plurality of parameters obtained by continuously measuring the airflow passing through the airflow transmission path; for example, when the number of sensing parameters is multiple, the sensing parameters can be discrete.

[0053] Step 103, processing the sensing parameter to determine the content index of at least one substance in the environment where the electronic device is located.

[0054] In an embodiment, the electronic device can include a device specially used for air measurement, such as an air humidity measurement device, a harmful substance measurement device, etc. For example, the electronic device can be a portable device, such as a notebook computer. For example, the electronic device can include a mobile electronic device, such as a smart phone, etc.

[0055] In an embodiment, the content index can include an index indicating whether the air in the environment where the electronic device is located contains a specified substance. For example, the content index can include a percentage of the content of at least one substance in the air in the environment where the electronic device is located, and can also include a change state of the content of at least one substance in the air in the environment where the electronic device is located over time.

[0056] For example, the content index of at least one substance can be determined by the following methods:

[0057] Statistically averaging the sensing parameters obtained by multiple measurements, and determining the statistically averaged result as the content index of at least one substance.

[0058] Statistically averaging the parameters with less fluctuations in the sensing parameters obtained by multiple measurements, and determining the statistically averaged result as the content index of at least one substance.

[0059] Determining an index calculation algorithm, processing the sensing parameter by the index calculation algorithm, and determining the processing result as the content index of at least one substance.

[0060] As can be seen from the above, in the processing method provided by the embodiments of the present application, the target sensor is arranged in the airflow transmission path from the air inlet to the air outlet, and the sensing area of the target sensor is greater than the diameter of the airflow transmission path. After enabling the target sensor and obtaining the sensing parameter obtained by the target sensor sensing the airflow in the airflow transmission path, the sensing parameter can be processed to determine the content index of at least one substance in the environment where the electronic device is located.

[0061] Therefore, the processing method provided in the embodiments of the present application can reduce the changes and influence degree of the structure and appearance of the electronic device caused by the target sensor, because the diameter of the airflow transmission path is smaller than the sensing area of the target sensor. In addition, the target sensor is arranged in the airflow transmission path connecting the air inlet to the air outlet, so that the target sensor can be in sufficient contact with the airflow passing through the airflow transmission path, thereby improving the consistency between the sensing parameter and the content index, and improving the accuracy of the sensing parameter and the content index of the at least one substance determined based on the sensing parameter. Therefore, the processing method provided in the embodiments of the present application can realize the arrangement of the target sensor in the narrow space of the electronic device, and the accurate measurement of the at least one substance by the target sensor.

[0062] Based on the foregoing embodiments, in the processing method provided in the embodiments of the present application, the sensing parameter can be obtained in the following manner:

[0063] If the first condition is met, the sensing parameter is obtained.

[0064] The first condition includes detecting the airflow speed of the airflow passing through the airflow transmission path.

[0065] For example, if the first condition is not met, the operation of obtaining the sensing parameter can not be performed.

[0066] In an embodiment, the airflow speed can be determined by detecting the air at the air inlet or the air outlet; for example, the airflow speed can be determined by detecting the air flow state in the airflow transmission path, for example, by using an airflow speed measuring device arranged in the airflow transmission path; for example, the airflow speed can be any speed; for example, the airflow speed can be 0.

[0067] For example, if the airflow speed is detected, the airflow speed and the sensing parameter can have a correlation under the condition that the detection accuracy of the target sensor is higher than the accuracy threshold, for example, the closer the airflow speed is to the airflow threshold, the closer the sensing parameter can be to the actual content index of the substance in the environment of the electronic device.

[0068] As can be seen from the above, in the processing method provided in the embodiments of the present application, if the airflow speed of the airflow passing through the airflow transmission path is detected, the sensing parameter is obtained.

[0069] Therefore, the processing method provided by the embodiments of the present application can obtain the sensing parameter when the air flow speed of the air flow passing through the air flow transmission path is detected, thereby reducing the limitation on the target sensor for obtaining the sensing parameter, and according to the role of the air flow speed in the sensing process in the air sensing principle of the target sensor, the sensing parameter is obtained when the air flow speed is detected, thereby improving the sensing accuracy of the target sensor.

[0070] Based on the foregoing embodiments, the processing method provided by the embodiments of the present application can further include Figure 2 as shown in the flow, Figure 2 The flow diagram for determining the air flow speed provided by the embodiments of the present application is shown in FIG. 2. Figure 2 As shown in the flow, the flow can include steps 201 to 202:

[0071] Step 201, enabling the motion sensor.

[0072] The motion sensor includes a gyroscope and an acceleration sensor.

[0073] In an embodiment, the gyroscope and the acceleration sensor can be separately arranged from the target sensor; for example, a plurality of gyroscopes and acceleration sensors can be arranged in the electronic device; for example, the motion sensor can be enabled in the same manner as the target sensor, which will not be described herein; for example, the motion sensor can further include other sensors, which are not limited by the embodiments of the present application.

[0074] For example, the gyroscope can be used to measure the attitude information of the electronic device, and the attitude information can include the horizontal, vertical, pitch, and angle change state of each direction of the electronic device; for example, the acceleration sensor can be used to measure the acceleration and acceleration change state of the electronic device in any direction.

[0075] Step 202, if at least two parameters are collected by the motion sensor, the air flow speed is determined based on the at least two parameters.

[0076] For example, if one parameter or no parameter is collected by the motion sensor, the operation of determining the air flow speed can not be performed.

[0077] In an embodiment, the at least two parameters can include posture change information and acceleration information of the electronic device in a time period, so that the displacement state information of the electronic device in the time period can be obtained based on the at least two parameters, and the air flow speed can be determined based on the displacement state information; for example, in the time period, the electronic device can move stably along a first direction with an acceleration of 0, or move in multiple directions with an acceleration not equal to 0; for example, the at least two parameters can include instantaneous posture and instantaneous acceleration of the electronic device at a certain moment.

[0078] In an embodiment, the air flow speed can include an instantaneous speed of the air flow obtained by processing the instantaneous acceleration and the instantaneous posture; for example, the air flow speed can include a set of multiple instantaneous speeds of the air flow obtained by processing the posture change information and the acceleration information measured in a time period; for example, the air flow speed can include an average speed of the air flow obtained by processing the posture change information and the acceleration information measured in a time period.

[0079] In an embodiment, the air flow speed can be a component of the movement speed of the electronic device in a certain direction; for example, when the movement speed of the electronic device is consistent with the extension direction of the air flow transmission path, and the air flow transmission path is in a non-bending state, the movement speed of the electronic device is the air flow speed.

[0080] For example, the air flow speed can be determined in any of the following ways:

[0081] The first parameter based on the detection of the gyroscope is used to determine the direction information of the movement of the electronic device, the second parameter based on the detection of the acceleration sensor is used to determine the acceleration information and the speed information of the electronic device, then the acceleration information and the speed information are decomposed based on the angle difference between the direction information and the direction information of the air flow transmission path, to obtain the first acceleration and the first speed of the setting direction of the air flow transmission path, and the air flow speed is determined based on the first speed and the first acceleration.

[0082] The second parameter based on the detection of the acceleration sensor is used to determine the stable state of the movement of the electronic device, if the electronic device is in a stable movement state, the acceleration information and the speed information are decomposed based on the angle difference between the direction information and the direction information of the air flow transmission path, to obtain the second acceleration and the second speed of the setting direction of the air flow transmission path, and the air flow speed is determined based on the second speed and the second acceleration; for example, if the electronic device is in an unstable movement state, a prompt information can be output to prompt the master device or the user of the electronic device to adjust the movement state of the electronic device to a stable movement state.

[0083] From the above, the processing method provided in the embodiments of the present application can determine the air flow speed based on the at least two parameters if the at least two parameters are collected by the motion sensor after the motion sensor including the gyroscope and the acceleration sensor is enabled.

[0084] Therefore, the processing method provided in the embodiments of the present application can comprehensively and accurately reflect the motion state of the electronic device and the change state of the motion state due to the at least two parameters collected by the gyroscope and the acceleration sensor. Then, the air flow speed determined based on the at least two parameters can be consistent with the actual motion state of the electronic device, thereby improving the accuracy of the air flow speed.

[0085] Based on the foregoing embodiments, in the processing method provided in the embodiments of the present application, if the first condition is met, the sensing parameter can be obtained in the following manner:

[0086] If the first condition and the second condition are met, the sensing parameter is obtained.

[0087] The second condition includes that the acceleration obtained by the acceleration sensor is less than or equal to an acceleration threshold.

[0088] For example, if the first condition or the second condition is not met, the operation of obtaining the sensing parameter can not be performed.

[0089] For example, the acceleration threshold can represent a peak value of the change speed of the motion speed of the electronic device. For example, the acceleration threshold can be a value greater than 0, which is used to represent the speed of the acceleration of the motion speed of the electronic device within a unit of time.

[0090] For example, the acceleration less than or equal to the acceleration threshold can include that the change degree of the running state of the electronic device within a unit of time is less than or equal to an influence degree threshold of the detection accuracy of the target sensor. For example, the acceleration less than or equal to the acceleration threshold can include that the running state of the electronic device makes the sensing operation of the target sensor within a normal sensing state range.

[0091] For example, the acceleration threshold can be determined according to a sensing performance parameter of the target sensor. For example, the sensing performance parameter can include a sensing time of the target sensor, where the sensing time can include a time length between the start of the sensing and the obtaining of the sensing parameter. For example, in order to improve the sensing accuracy, the product of the air flow speed calculated by the acceleration and the time length should be less than or equal to the size of the sensing surface, so that the chemical substances in the target sensor can fully react with the substance components in the air. Then, by controlling the change speed of the air flow, that is, the acceleration threshold, the sensing time of the target sensor can be guaranteed, thereby improving the accuracy of the sensing parameter.

[0092] As can be seen from the above, in the processing method provided by the embodiments of the present application, the sensing parameter is obtained when the first condition and the second condition are met.

[0093] Therefore, in the processing method provided by the embodiments of the present application, the airflow speed of the airflow in the airflow transmission path is obtained, and the acceleration obtained by the acceleration sensor is less than or equal to the acceleration threshold value, which can represent that the motion state of the electronic device is within the range in which the target sensor is in a normal sensing state, that is, the first condition and the second condition can meet the sensing requirements of the target sensor, so that the accuracy of the sensing parameter obtained when the first condition and the second condition are met is improved.

[0094] Based on the foregoing embodiments, the processing method provided by the embodiments of the present application can further include Figure 3 the flow shown in the figure, Figure 3 another flow schematic diagram for determining the airflow speed provided by the embodiments of the present application, as Figure 3 shown, the flow can include steps 301 to 302:

[0095] Step 301, enabling the airflow driving device.

[0096] The airflow driving device includes a device arranged in the airflow transmission path for driving the flow of gas in the airflow transmission device.

[0097] In an embodiment, the airflow driving device can include a device that drives the airflow in a specified direction; for example, the airflow driving device can include a small fan; for example, the specified direction can include the communication direction of the airflow transmission path; for example, the airflow driving device can be arranged at the air inlet or air outlet of the airflow transmission path; for example, the cross section of the airflow output module of the airflow driving device can be less than or equal to the cross section of the airflow transmission path.

[0098] Step 302, determining the airflow speed based on the working state of the airflow driving device.

[0099] In an embodiment, the working state of the airflow driving device can include whether the airflow driving device is in an airflow driving state, and can also include the output power of the airflow driving device; for example, based on the output power of the airflow driving device, the airflow driving speed of the airflow driving device can be determined; for example, based on the component of the airflow driven by the airflow driving device into the airflow transmission path and the output power of the airflow driving device, the airflow speed can be determined.

[0100] From the above, in the processing method provided by the embodiment of the application, after enabling the airflow driving device arranged in the airflow transmission path and used to drive the airflow in the airflow transmission path, the airflow speed can be determined based on the working state of the airflow driving device.

[0101] Therefore, in the processing method provided by the embodiment of the application, the airflow speed can be determined based on the working state of the airflow driving device by enabling the airflow driving device, thereby providing various ways and methods for determining the airflow speed, so that the determination mode of the airflow speed is more flexible; and by adjusting the output power of the airflow driving device, the sensing parameter of the target sensor under different airflow speeds can be obtained, thereby realizing diversified sensing and detection of the air in the environment of the electronic device by the target sensor.

[0102] Based on the foregoing embodiment, in the processing method provided by the embodiment of the application, if the first condition is met, the sensing parameter can also be obtained by the following way:

[0103] If the first condition and the third condition are met, the sensing parameter is obtained.

[0104] The third condition includes that the airflow speed is greater than or equal to a speed threshold.

[0105] For example, if the first condition or the third condition is not met, the operation of obtaining the sensing parameter is not performed.

[0106] For example, the electronic device can be swung at a speed greater than the speed threshold, so that the airflow speed obtained by processing at least two parameters collected by the gyroscope and the acceleration sensor is greater than or equal to the speed threshold; for example, the working state such as the output power of the airflow driving device can be controlled, so that the airflow speed is greater than or equal to the speed threshold.

[0107] For example, when the airflow speed is less than the speed threshold, the chemical substance in the target sensor can fully contact at least one substance, but due to the small diameter of the airflow transmission path, the sensing parameter of the target sensor can not be consistent with the actual content or composition of at least one substance in the environment of the electronic device; and if the airflow speed is too large, the sensing time of the target sensor to the airflow passing through the airflow transmission path will be shortened, thereby causing the sensing parameter to be less than the actual value of the actual content or composition of at least one substance; for example, the airflow speed can be controlled in a speed range greater than or equal to the speed threshold by any way in the foregoing embodiments, thereby improving the accuracy of the sensing parameter.

[0108] For example, the speed threshold can also be adjusted according to the sensing performance parameter of the target sensor and / or the airflow speed in the environment of the electronic device.

[0109] From the above, in the processing method provided by the embodiments of the present application, if the airflow speed of the airflow passing through the airflow transmission path can be detected and the airflow speed is greater than or equal to the speed threshold, the sensing parameter is obtained.

[0110] Therefore, in the processing method provided by the embodiments of the present application, by detecting the airflow speed and comparing the airflow speed with the speed threshold, the operation of obtaining the sensing parameter can be strictly controlled; and when at least one of the detection scene, the detection requirement and the target sensor changes, the operation of obtaining the sensing parameter can be flexibly controlled by adjusting the speed threshold; at the same time, the sensing parameter obtained when the airflow speed is greater than or equal to the speed threshold can weaken the negative influence of the small diameter of the airflow transmission path on the sensing process of the target sensor, thereby improving the accuracy of the sensing parameter.

[0111] Based on the foregoing embodiments, in the processing method provided by the embodiments of the present application, the sensing parameter is processed to determine the content index of at least one substance in the environment of the electronic device, which can be implemented by Figure 4 the flow shown in FIG. 4. Figure 4 The flow diagram for determining the content index provided by the embodiments of the present application is shown in FIG. 4. Figure 4 The flow can include steps 401 to 403.

[0112] Step 401, obtaining a set of association relationships.

[0113] The set of association relationships includes a corresponding relationship between a measurement index associated with the airflow speed and an actual index.

[0114] In an implementation manner, the measurement index can include an index measured by a sensor with a measurement accuracy higher than an accuracy threshold on at least one substance contained in the environment; the actual index can include an index of at least one substance actually contained in the environment; and the type and function of the sensor can be consistent with the type and function of the target sensor.

[0115] In an implementation manner, the airflow speed in the set of association relationships can include an instantaneous speed or an average speed of the airflow; and the set of association relationships can include at least one corresponding relationship between a measurement index associated with the airflow speed and an actual index; and in the case that the number of corresponding relationships contained in the set of association relationships is multiple, the corresponding relationship between the measurement index and the actual index corresponding to different airflow speeds can be different, for example, the measurement index and the actual index can present a first association relationship at a first airflow speed, and the measurement index and the actual index can present a second association relationship at a second airflow speed.

[0116] In an embodiment, the correspondence between the measurement index and the actual index in the set of association relationships can be embodied by a functional relationship, in which the measurement index and the actual index can be in a one-to-one correspondence. Exemplarily, the functional relationship between the measurement index and the actual index can be a linear relationship or a nonlinear relationship such as an exponential relationship. Exemplarily, the correspondence between the measurement index and the actual index can be different in different interval ranges. For example, in a first interval range, the measurement index and the actual index can be in a linear relationship, and in a second interval range, the measurement index and the actual index can be in a nonlinear relationship.

[0117] In an embodiment, the different correspondences in the set of association relationships can be determined by measuring the correspondence between the measurement parameter sensed by the target sensor and the actual index at different airflow velocities under the test condition in the manner provided in the foregoing embodiments.

[0118] Step 402: Based on the airflow velocity and the matching relationship between the sensing parameter and the airflow velocity and the measurement index in the set of association relationships, at least one actual index is obtained from the set of association information.

[0119] Exemplarily, the target correspondence can be first obtained from the set of association relationships based on the matching relationship between the airflow velocity and the airflow velocity in the set of association relationships, and then the actual index corresponding to the sensing parameter is obtained from the target correspondence based on the matching relationship between the sensing parameter and the measurement index in the target correspondence. Exemplarily, when the airflow velocity is the first velocity and the number of sensing parameters is multiple, the number of actual indexes obtained from the target correspondence can be the same as the number of sensing parameters.

[0120] Exemplarily, when the number of airflow velocities is at least two, such as the airflow velocities include the first velocity and the second velocity, the first correspondence corresponding to the first velocity and the second correspondence corresponding to the second velocity can be obtained from the set of association relationships based on the first velocity and the second velocity, respectively, and then at least one actual index is obtained from the first correspondence based on at least one sensing parameter corresponding to the first velocity, and at least one actual index is obtained from the second correspondence based on at least one sensing parameter corresponding to the second velocity.

[0121] Step 403: Processing the at least one actual index to determine the content index.

[0122] Exemplarily, in a case where the number of airflow velocities is one, the at least one actual value can be statistically averaged, and a result of the statistical averaging is determined as the content index; exemplarily, in the statistical averaging process, in a case where the number of actual values is multiple, the maximum value and the minimum value in the actual values can be removed, and the other values in the actual values except the maximum value and the minimum value are statistically averaged.

[0123] Exemplarily, in a case where the number of airflow velocities is at least two, the at least one actual value corresponding to each airflow velocity can be statistically averaged respectively, and a result of the statistical averaging of each airflow velocity is determined as the content index.

[0124] As can be seen from the above, the processing method provided by the embodiments of the present application can obtain at least one actual index from the association relationship set based on the airflow velocity, the sensing parameter, and the matching relationship between the airflow velocity and the measurement index in the association relationship set, and process the at least one actual index to determine the content index after obtaining the association relationship set of the corresponding relationship between the measurement index and the actual index associated with the airflow velocity.

[0125] Therefore, in the processing method provided by the embodiments of the present application, the corresponding relationship in the association relationship set is associated with the airflow velocity, so that the association relationship set can comprehensively and finely reflect the influence degree of the airflow velocity on the actual sensing or measurement of the target sensor. Then, the at least one actual index obtained from the association relationship set based on the airflow velocity and the sensing parameter can not only reflect the influence of the airflow velocity factor in the actual sensing or measurement process of the target sensor, but also improve the accuracy of the at least one actual index. Then, the content index determined by processing the at least one actual index can be more consistent with the actual content of at least one substance in the space where the electronic device is located, thereby improving the accuracy of the content index.

[0126] Based on the foregoing embodiments, the embodiments of the present application further provide an electronic device, Figure 5 For the structure schematic diagram of the electronic device 5 provided by the embodiments of the present application, as Figure 5 shown, the electronic device 5 can include an air duct 501, a target sensor 502, and a processor 503; wherein:

[0127] The air duct 501 includes an airflow transmission path connecting an air inlet to an air outlet;

[0128] The target sensor 502 is arranged in the airflow transmission path and is configured to sense the airflow passing through the air duct 501 to obtain a sensing parameter; the sensing area of the target sensor 502 is greater than the diameter of the air duct 501.

[0129] The processor 503 is configured to obtain the sensing parameter, process the sensing parameter, and determine the content index of at least one substance in the environment of the electronic device 5.

[0130] In some embodiments, the processor 503 is configured to obtain the sensing parameter if a first condition is met, and the first condition comprises detecting a flow speed of the airflow passing through the air duct.

[0131] In some embodiments, the electronic device 5 can further comprise a motion sensor, and the processor 503 is configured to enable the motion sensor, and the motion sensor comprises a gyroscope and an acceleration sensor.

[0132] The processor 503 is configured to determine the flow speed based on at least two parameters collected by the motion sensor if the at least two parameters are collected by the motion sensor.

[0133] In some embodiments, the processor 503 is configured to obtain the sensing parameter if a first condition and a second condition are met, and the second condition comprises that an acceleration obtained by the acceleration sensor is less than or equal to an acceleration threshold.

[0134] In some embodiments, the electronic device 5 can further comprise an airflow driving device, and the processor 503 is configured to enable the airflow driving device, and the airflow driving device comprises a device arranged in the airflow transmission path and configured to drive the airflow in the airflow transmission path.

[0135] The processor 503 is configured to determine the flow speed based on a working state of the airflow driving device.

[0136] In some embodiments, the processor 503 is configured to obtain the sensing parameter if a first condition and a third condition are met, and the third condition comprises that the flow speed is greater than or equal to a speed threshold.

[0137] In some embodiments, the processor 503 is configured to obtain a set of association relationships, and the set of association relationships comprises a corresponding relationship between a measurement index and an actual index associated with the flow speed.

[0138] The processor 503 is further configured to obtain at least one actual index from the set of association information based on the flow speed, the sensing parameter, and a matching relationship between the flow speed and the measurement index in the set of association relationships, and process the at least one actual index to determine the content index.

[0139] The processor 503 can be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.

[0140] Therefore, the electronic device 5 provided by the embodiments of the present application can reduce the degree of structural and appearance changes of the electronic device caused by the target sensor, because the diameter of the airflow transmission path is smaller than the sensing area of the target sensor; and the target sensor can be in full contact with the airflow, because the target sensor is arranged in the airflow transmission path connecting the air inlet to the air outlet, thereby improving the consistency between the sensing parameter and the content index of the at least one substance in the environment of the electronic device, and further improving the accuracy of the sensing parameter and the content index of the at least one substance determined based on the sensing parameter.

[0141] Based on the foregoing embodiments, the embodiments of the present application further provide a computer readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor of an electronic device to implement the processing method according to any one of the foregoing embodiments.

[0142] The above description of the various embodiments tends to emphasize the differences between the various embodiments, and the same or similar parts can be referred to each other, and will not be described herein for the sake of brevity.

[0143] The methods disclosed in the various method embodiments of the present application can be combined arbitrarily without conflict to obtain new method embodiments.

[0144] The features disclosed in the various product embodiments of the present application can be combined arbitrarily without conflict to obtain new product embodiments.

[0145] The features disclosed in the various method or device embodiments of the present application can be combined arbitrarily without conflict to obtain new method or device embodiments.

[0146] It should be noted that the computer readable storage medium above can be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Ferromagnetic Random Access Memory (FRAM), a Flash Memory, a magnetic surface memory, an optical disc, or a Compact Disc Read-Only Memory (CD-ROM) memory, etc. It can also be various electronic devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.

[0147] It should be noted that in this paper, the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0148] The above sequence numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0149] Through the above description of the embodiments, those skilled in the art can clearly understand that the above embodiment method can be realized by software plus necessary general hardware nodes, of course, it can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can essentially be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disc, optical disc), and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present application.

[0150] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0151] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0152] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0153] The above merely provides the preferred embodiment of the present application, and is not intended to limit the patent scope of the present application, and any equivalent structure or equivalent flow transformation made by using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A processing method, comprising: enabling a target sensor to obtain a sensing parameter; wherein the target sensor is arranged in a gas flow transmission path connecting an air inlet to an air outlet; enabling a motion sensor to obtain a first parameter and a second parameter; wherein the motion sensor comprises a gyroscope to obtain the first parameter representing posture information of an electronic device and an acceleration sensor to obtain the second parameter representing acceleration of the electronic device in any direction; determining a gas flow speed consistent with the gas flow transmission path based on the first parameter detected by the gyroscope and the second parameter detected by the acceleration sensor; processing the sensing parameter based on the gas flow speed to determine a content index of at least one substance in an environment in which the electronic device is located.

2. The method of claim 1, wherein, The determination of the gas flow speed consistent with the gas flow transmission path based on the first parameter detected by the gyroscope and the second parameter detected by the acceleration sensor comprises: determining direction information of the electronic device based on the first parameter detected by the gyroscope, and determining acceleration information and speed information of the electronic device based on the second parameter detected by the acceleration sensor; decomposing the acceleration information and the speed information based on an angle difference between the direction information and direction information of the gas flow transmission path to obtain first acceleration and first speed of the gas flow transmission path in a setting direction; and determining the gas flow speed based on the first speed and the first acceleration.

3. The method of claim 1 or 2, wherein, The determination of the gas flow speed consistent with the gas flow transmission path based on the first parameter detected by the gyroscope and the second parameter detected by the acceleration sensor comprises: determining a stable motion state of the electronic device based on the second parameter detected by the acceleration sensor; if the electronic device is in a stable motion state, decomposing the acceleration information and the speed information based on an angle difference between the direction information and direction information of the gas flow transmission path to obtain second acceleration and second speed of the gas flow transmission path in a setting direction; and determining the gas flow speed based on the second speed and the second acceleration.

4. The method of claim 3, wherein, The determination of the gas flow speed consistent with the gas flow transmission path based on the first parameter detected by the gyroscope and the second parameter detected by the acceleration sensor further comprises: if the electronic device is in an unstable motion state, outputting prompt information to prompt a master device or a user of the electronic device to adjust the motion state of the electronic device to a stable motion state.

5. The method of claim 2, wherein, The method further comprises: enabling a gas flow driving device; wherein the gas flow driving device comprises a device arranged in the gas flow transmission path for driving gas flow in the gas flow transmission path; and determining the gas flow speed based on a working state of the gas flow driving device.

6. The method of claim 1, wherein, The enabling of the target sensor to obtain the sensing parameter comprises: if a first condition and a third condition are satisfied, obtaining the sensing parameter; wherein the first condition comprises detecting a gas flow speed of a gas flow passing through the gas flow transmission path, and the third condition comprises that the gas flow speed is greater than or equal to a speed threshold.

7. The method of claim 2, wherein, The processing of the sensing parameter based on the airflow velocity determines a content index of at least one substance in an environment where the electronic device is located, including: obtaining a set of correlation relationships, wherein the set of correlation relationships includes a corresponding relationship between a measurement index and an actual index associated with the airflow velocity; based on the airflow velocity and the sensing parameter, and a matching relationship between the airflow velocity and the measurement index in the set of correlation relationships, obtaining at least one actual index from the set of correlation information; processing the at least one actual index to determine the content index.

8. An electronic device, comprising: an air duct including an airflow transmission path connecting an air inlet to an air outlet; a target sensor disposed in the airflow transmission path for sensing airflow passing through the air duct to obtain a sensing parameter; a motion sensor including a gyroscope for obtaining a first parameter representing posture information of the electronic device and an acceleration sensor for obtaining a second parameter representing acceleration of the electronic device in any direction; a processor for enabling the target sensor and the motion sensor, obtaining the first parameter based on the detection of the gyroscope and the second parameter based on the detection of the acceleration sensor, determining an airflow velocity consistent with the airflow transmission path based on the first parameter and the second parameter, and processing the sensing parameter based on the airflow velocity to determine a content index of at least one substance in an environment where the electronic device is located.

9. The device of claim 8, wherein: the processor is configured to obtain a set of correlation relationships, wherein the set of correlation relationships includes a corresponding relationship between a measurement index and an actual index associated with the airflow velocity; the processor is further configured to obtain at least one actual index from the set of correlation information based on the airflow velocity and the sensing parameter, and a matching relationship between the airflow velocity and the measurement index in the set of correlation relationships, and process the at least one actual index to determine the content index.

Citation Information

Patent Citations

  • Indoor air environment monitoring equipment

    CN105823515A