A mobile device comprises a cpu operating a display and other user interface circuitry. Further, it comprises a gas sensor as well as a sensor hub connecting the gas sensor and other sensors to the cpu. In order to save power, the device can be brought into a low-power operating mode, where the cpu is idling or switched-off and the gas sensor itself has a low-power and a high-power operating mode. However, even in this low-power operating mode, the sensor hub still monitors for changes of the signal from the gas sensor and wakes the device up if such a change is detected.
|
1. A portable electronic device, in particular a mobile phone or tablet computer, wherein said portable sensor device comprises
a cpu,
a user interface operated by said cpu,
a gas sensor for taking measurements of gas surrounding the sensor and generating signals therefrom, and
a sensor hub, in addition to said cpu, said sensor hub being adapted and structured to operate said gas sensor,
wherein said device has a low-power and a high-power operating mode,
wherein in said low-power operating mode said cpu has lower power consumption, lower processing power and lower processing rate than in said high-power operating mode,
wherein said sensor hub operates separately from said cpu in both said low-power and high-power operating modes, has lower processing power than said cpu, and is adapted and structured to switch said device from said low-power to said high-power operating mode in response to a change of signal from said gas sensor,
wherein said gas sensor has a low-power and a high-power operating mode, wherein said gas sensor consumes more power and generates more accurate measurements in said high-power operating mode than in said low-power operating mode, and wherein said gas sensor is in said low-power operating mode while said device is in said low-power operating mode, but said gas sensor is set into said high-power operating mode after switching said device from said low-power to said high-power operating mode, and
wherein, once said device is switched from said low-power mode to said high-power operating mode as aforesaid, said cpu retrieves a current sensor signal through said sensor hub and processes it by executing further measurements.
3. The device of
4. The device of
a memory location for storing a low-pass filtered value of a signal (mi-1) from said gas sensor and
a comparator adapted to compare said low-pass filtered value (mi-1) to a current signal (si) from said gas sensor.
5. The device of
6. The device of
7. The device of
9. The device of
11. A method for operating the device of
12. The method of
|
The invention relates to a portable electronic device, in particular to a mobile phone or a tablet computer, having a gas sensor. The invention also relates to a method for operating such a device.
It has been known to incorporate gas sensors into portable sensor devices, such as mobile phones or tablet computers. For example, humidity sensors have been incorporated into some smartphone devices.
To reduce power consumption, devices of this type typically have a low-power and a high-power operating mode. In the low-power operating mode, the gas sensor is inoperative.
The problem to be solved by the present invention is to provide a device of the type mentioned above that exhibits better sensor performance.
This problem is solved by the subject matter of the independent claims.
Accordingly, the invention relates to a portable electronic device that has a CPU (i.e. a microcontroller or microprocessor) and a user interface (such as a graphical display) operated by the CPU. The device further comprises a gas sensor and, in addition to the CPU, a sensor hub. The sensor hub is adapted and structured to operate the gas sensor, e.g. by sending the gas sensor a command to execute a measurement and/or to read out the signal value generated by the gas sensor.
The device has a low-power and a high-power operating mode, wherein in said low-power operating mode the CPU has lower power consumption than in said high-power operating mode. In the low-power operating mode, the CPU is typically switched off or in a non-operating idle state. In the high-power mode, the CPU is operative.
Not only the device (and in particular the CPU) has a high- and a low-power operating mode, but also the gas sensor has a low-power and a high-power operating mode. In both operating modes, gas sensor is able to carry out measurements. However, it consumes typically more power and generates more accurate measurements in high-power operating mode than in low-power operating mode. The high- and low-power operating modes e.g. differ in the number of measurements taken by time unit, and/or in the duration of the heating pulses.
The sensor hub is adapted and structured to switch the device from low-power to high-power operating mode in response to a change of the signal from the gas sensor.
In other words, the sensor hub is able to wake the device up when the signal from the gas sensor changes in a certain manner.
Typically, the sensor hub comprises a microcontroller, i.e. a programmable processing unit adapted to sequentially process program code stored in a memory device.
Further, the sensor hub may comprise a memory location for storing a low-pass filtered value of a signal from the gas sensor and a comparator adapted to compare the low-pass filtered value to a current signal from said gas sensor. This allows to detect a sudden change in the signal from the gas sensor while allowing to ignore the slow signal drift that is typical for many types of gas sensors. The low-pass filtered value can e.g. be a moving average (rolling average) of the signal from the gas sensor.
The gas sensor can be integrated on the semiconductor substrate of a gas sensing device, together with processing circuitry. The microcontroller of the sensor hub is adapted to read the current signal from the processing circuitry. In such a design, the processing circuitry may take over part or all of the processing of the raw signal, thereby taking computative load from the microcontroller.
The method for operating the device according to the present invention comprises the step of switching the device from its low-power to its high-power operating mode in response to a change of signal from the gas sensor.
When the device is switched from its low-power to its high-power operating mode, the CPU can process the signal from the gas sensor. Since the CPU is typically more powerful than the sensor hub, such processing can provide more detailed information about the cause of the change in the signal.
It must be noted that the present invention can be viewed as method or a device. In particular, any of its features can be claimed as a method or a device, and it is apparent that any features formulated in the claims under one of these two categories can also be formulated in the claims under the other category.
Other advantageous embodiments are listed in the dependent claims as well as in the description below.
The invention will be better understood and objects other than those set forth above will become apparent from the following detailed description thereof. Such description makes reference to the annexed drawings, wherein:
Device Hardware:
The sensor device of
CPU 20 is adapted to execute software stored in memory 21 and to operate the user interface of the device, such as the display 11, e.g. by displaying information on display 11.
Further, the device comprises a network interface 23, which is capable to establish wireless data communication with an external network 24, such as the internet. This network is connected to further devices. At least one server device 25 of these further devices can be adapted to communicate with device 1 through network interface 23.
Device 1 further comprises a sensor hub 26 through which CPU 20 is able to communicate with a series of sensors S1, S2, S3 . . . . These sensors can e.g. comprise an accelerometer, one or more temperature sensors, and more. In particular, one of the sensors is a gas sensor 30. In an advantageous embodiment, a further sensor is a humidity sensor 31, such as described in U.S. Pat. No. 6,690,569.
Gas Sensor:
In the embodiment of
As mentioned, the sensing layers are advantageously metal-oxide (MOX) layers, such as layers of SnO. The MOX can also e.g. be tungsten oxide, gallium oxide, indium oxide, or zinc oxide, or a mixture of any of these materials, including SnO.
The sensing layers of the sensor of
As known to the skilled person, the conductance of the sensing layer 35a, 35b, 35c, 35d depends on the composition of the gas that surrounds it. Hence, interdigital electrodes 38b are provided for measuring the resistivity of the sensing layer 35a, 35b, 35c, 35d.
As shown in
Sensor Hub:
Core 50 is adapted to run program code 54 stored in memory 51.
Instead of being formed by a single microcontroller, sensor hub 26 may also be formed by discrete components, such as a microcontroller with external memory and interface circuitry.
The microcontroller of sensor hub 26 is adapted to run separately from CPU 20, i.e. it can operate even when CPU 20 is switched off. Typically, it has much lower processing power than CPU 20, but it is optimized for low-power operation and can be run much more frequently or even continuously without giving rise to an excessive power drain.
Device Software:
The microcontroller of sensor hub 26 runs its own kernel software 41, which is typically loaded into memory 51. The sensor hub kernel software interacts with a hub driver 42 of the main kernel 40. The driver 43 for driving the gas sensor 30 is implemented in the hub kernel software 41. It must be noted, though, that driver 43 could also be implemented, at least in part, in the main kernel 40.
A library level 44 sits on top of kernel 40. It comprises a number of libraries, with each library providing functionality that is, at least to a certain degree, typically machine independent (in contrast to the kernel software which is typically adapted to the hardware of the device where it is running). As known to the skilled person, the operating system's runtime is typically implemented in at least one of these libraries.
Each library comprises typically one or more code files comprising code that can be dynamically or statically linked to other libraries or to applications. Typically, libraries are implemented as dynamically linked libraries (DLLs).
One library in library level 44 is the gas sensor control and processing library (GSCP) 45. Its purpose is to control the operation of gas sensor 30 and to process its signals.
On top of library level 44 sits the application framework 46, which is typically also implemented as a set of libraries. In contrast to most of the libraries in library level 44, the libraries of the application framework 46 provide a public interface 47 (the Application Programming Interface, API) available to the topmost software level, the applications 48.
Part of the application framework is a sensor manager 49, which defines the part of the API that relates to the sensors of device 1 and which interacts with the sensor-related libraries and drivers in libraries level 44 or in kernel 40.
The applications 48 are typically provided by third parties (i.e. neither by the hardware manufacturer nor by the provider of the operating system). They link against the libraries laid open in the API on order to execute specific tasks.
For example, one such application may be an application that is supposed to detect a certain gas or to analyse the composition of the gases in contact with gas sensor 30. Such an application would use the sensor manager's 49 API in order to interact with gas sensor 30.
Power Management:
Device 1 has a low-power and a high-power mode. In low-power mode, CPU 20 is switched off or is in an idling mode where its power consumption is zero or at least reduced as compared to the normal high-power operating mode. In this mode, CPU 20 is typically unable to process any data, or, at best, it processes data at a much slower rate than in normal operation. In high-power mode, CPU 20 is running normally, processes data and runs programs, typically continuously, and operates display 11, e.g. in accordance to command issued by the application programs that are currently operative.
Sensor hub 26 is running in low-power as well as high-power mode of device 1. The steps executed by the microcontroller of sensor hub 26 in low-power and high-power mode may differ, or they may be the same.
As can be seen, the microcontroller operates a loop 59 repetitively. In the following, it is assumed that index i designates the index of the current iteration of loop 59.
In a first step 60 when executing the loop, the microcontroller obtains the current signal value si from gas sensor 30. This current signal value can e.g. be directly derived from the conductance measured for one of the sensor layers 35a, 35b, 35c, 35d, or an average of the conductance of these layers.
In step 61, the change of the measured signal is calculated by computing the absolute value of the difference between the currently measured value si and the previous moving average mi-1 of this value (definition see below) and by comparing this difference to a threshold t, i.e. the following Boolean expression is evaluated:
|si−mi-1|>t (1)
Such a comparison is carried out by a comparator, such as implemented by the hardware of core 50.
If it is found in step 61 that the change exceeds threshold t, step 62 is executed to wake up CPU 20 if the device is in its low-power mode.
In a next step 63, a new value for the moving average mi is calculated, e.g. from
mi=mi-1*(N−1)/N+si/N (2)
with mi being the moving average calculated in iteration mi-1 is the moving average of the previous iteration and N is an integer that is much larger than 1, e.g. at least 10. Eq. (2) describes the cumulative moving average. Other methods for calculating a moving average or for low-pass filtering the measured signals in other manner, such as the simple moving average or a weighted moving average, can be used as well. A typical averaging time should be larger than the response time of the gas sensor, but it should be much smaller than the time during which a gradual drift of the gas sensor occurs. Typically, the averaging time, i.e. the time span that contributes to at least 90% of the moving average, should be at least 1 minute but it should be smaller than 12 hours, in particular between 1 and 10 hours. This takes into account that the concentration of noxious gases typically takes some time to build up in a room, and a good averaging can e.g. be carried out when the device is in rest e.g. during one night.
The moving average mi is stored in a suitable memory location 55 of memory 51 or of core 50.
Loop 59 ends in step 64, where it is interrupted for a certain time interval, e.g. for one or a few seconds, in order to decrease the power consumption of sensor hub 36.
Notes:
In the above embodiment, the change of the sensor signal, e.g. expressed by Eqs. (1) and (2), is calculated by the microcontroller of sensor hub 36. Alternatively, such a moving average can e.g. be calculated by processing circuitry 39 of sensing device 30, in which case sensor hub 36 can have a simpler design.
Once that CPU 20 is woken up after a change of the sensor signal of gas sensor 30, it retrieves the current sensor signal through sensor hub 36 and processes it more thoroughly, optionally by executing further measurements, in order to gain a better understanding of the reason why the signal has changed.
Advantageously, not only device 1 (and in particular CPU 20) has a high- and a low-power operating mode, but also gas sensor 30 has a low-power and a high-power operating mode. In both operating modes, gas sensor 30 is able to carry out measurements. However, it consumes more power and generates more accurate measurements in high-power operating mode than in low-power operating mode. The high- and low-power operating modes e.g. differ in the number of measurements taken by time unit, and/or in the duration of the heating pulses. While device 1 is in low-power mode, gas sensor 30 is also in low power operating mode. Once that CPU 20 is woken up, it sets gas sensor 30 into high-power operating mode, at least during an initial analysis stage, to obtain more accurate results.
Depending on the result of this processing, CPU 20 may e.g. issue an alert, in particular an audible or visible alert and/or a message through network interface 23. This is especially useful if it was found that the change is due to a rise of the concentration of some noxious substance, such as CO or flue gas.
In summary, in one embodiment, the mobile device comprises a CPU 20 operating a display 11 and other user interface circuitry. Further, it comprises a gas sensor 30 as well as a sensor hub 26 connecting the gas sensor 30 and other sensors to CPU 20. In order to save power, the device can be brought into a low-power operating mode, where CPU 20 is idling or switched-off. However, even in this low-power operating mode, sensor hub 26 still monitors for changes of the signal from gas sensor 30 and wakes the device up if such a change is detected.
While there are shown and described presently preferred embodiments of the invention, it is to be distinctly understood that the invention is not limited thereto but may be otherwise variously embodied and practised within the scope of the following claims.
Graf, Markus, Schmidlin, Roger
Patent | Priority | Assignee | Title |
10126288, | Jul 11 2016 | QUIPIP, LLC | Sensor device, and systems and methods for obtaining measurements of selected characteristics of a concrete mixture |
10386350, | Feb 19 2016 | Fraunhofer-Gesellschaft zur Foerderung der Angewandten Forschung E V | Mobile device for determining a component in ambient air |
11393321, | Oct 31 2019 | mPower Electronics, Inc.; MPOWER ELECTRONICS, INC | Photoelectrically-charging gas detector |
11815504, | Jul 11 2016 | QUIPIP, LLC | Sensor device, and systems and methods for obtaining measurements of selected characteristics of a concrete mixture |
Patent | Priority | Assignee | Title |
6382198, | Feb 04 2000 | DELPHI TECHNOLOGIES IP LIMITED | Individual cylinder air/fuel ratio control based on a single exhaust gas sensor |
6428684, | Aug 02 2000 | Industrial Scientific Corporation | Method and apparatus for diagnosing the condition of a gas sensor |
6690569, | Dec 08 1999 | Sensirion Holding AG | Capacitive sensor |
6792794, | Sep 27 2002 | Honeywell International Inc | Low power gas leak detector |
8373568, | Jul 17 2007 | DRÄGER SAFETY AG & CO KGAA | Detector system and method to detect or determine a specific gas within a gas mixture |
20030206325, | |||
20040016228, | |||
20040112117, | |||
20040192412, | |||
20050200475, | |||
20060011476, | |||
20090044612, | |||
20090152130, | |||
20100074157, | |||
20100089122, | |||
20110100090, | |||
20110125414, | |||
20110144515, | |||
20110279129, | |||
20120270611, | |||
20130135782, | |||
20130218524, | |||
20140179298, | |||
20140257127, | |||
20150120336, | |||
WO2008020223, | |||
WO9519563, | |||
WO2010150969, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jan 22 2014 | Sensirion AG | (assignment on the face of the patent) | / | |||
Mar 12 2014 | GRAF, MARKUS | Sensirion AG | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 032775 | /0633 | |
Apr 03 2014 | SCHMIDLIN, ROGER | Sensirion AG | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 032775 | /0633 |
Date | Maintenance Fee Events |
Feb 17 2021 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Date | Maintenance Schedule |
Aug 22 2020 | 4 years fee payment window open |
Feb 22 2021 | 6 months grace period start (w surcharge) |
Aug 22 2021 | patent expiry (for year 4) |
Aug 22 2023 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 22 2024 | 8 years fee payment window open |
Feb 22 2025 | 6 months grace period start (w surcharge) |
Aug 22 2025 | patent expiry (for year 8) |
Aug 22 2027 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 22 2028 | 12 years fee payment window open |
Feb 22 2029 | 6 months grace period start (w surcharge) |
Aug 22 2029 | patent expiry (for year 12) |
Aug 22 2031 | 2 years to revive unintentionally abandoned end. (for year 12) |