The present invention relates to electronic circuitry, and more particularly, is related to electronic sensors.
Sensors are becoming the dominant source of power dissipation in environment monitoring, wearable, and health tracking systems. Embedded sensor platforms may dissipate most of their energy in accessing sensor integrated circuits such as gyroscopes. Therefore, there is a need to address power dissipation in sensor systems.
Embodiments of the present invention provide a method and apparatus for reducing sensor power dissipation. Briefly described, the present invention is directed to a sensor producing sensor data for a sensor data consumer. A device receives a profile of the sensor indicating a relationship between a sensor parameter operating range and a deviation of the sensor data as a result of scaling one or more sensor parameters. The deive receives a tolerance profile of the sensor data consumer indicating a tolerable degree of deviation of the sensor data and scales a parameter of the sensor according to the tolerance profile. The scaling reduces a power dissipation level of the sensor.
Other systems, methods and features of the present invention will be or become apparent to one having ordinary skill in the art upon examining the following drawings and detailed description. It is intended that all such additional systems, methods, and features be included in this description, be within the scope of the present invention and protected by the accompanying claims.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The components in the drawings are not necessarily to scale, emphasis instead being placed upon clearly illustrating the principles of the present invention. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
The following definitions are useful for interpreting terms applied to features of the embodiments disclosed herein, and are meant only to define elements within the disclosure.
As used within this disclosure “bare metal” refers to an implementation of embedded components without an operating system or with a minimal and/or stripped down operating system.
As used within this disclosure, “Lax” refers to one or more systems, devices, facilities, and/or methods for leveraging tolerances to deviations in data produced by one or more sensors.
Reference will now be made in detail to embodiments of the present invention for systems, devices, and/or methods for leveraging tolerances to deviations in sensor data, referred to hereinafter as “Lax”, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Consumers of data from sensors may often tolerate some amount of deviation (errors) in the retrieved sensor values. Because sensor-equipped devices may be accessed through interfaces provided by system software, exploiting the tolerable error in exchange for improvements in energy efficiency may be achieved for exemplary embodiments of Lax by appropriate system software and hardware support.
Several characteristics make sensors especially amenable to energy savings through approximation. First, sensors are typically stateless so that errors in one sample do not propagate to affect the next sample. Digital computation, in contrast, is typically state based, so that errors in control logic may accumulate over time. Second, sensor interaction is typically transactional, with the obtained values having limited temporal influence. Third, because sensors are primarily analog circuits, they are better able to tolerate approximate computing mechanisms that can lead to catastrophic failures when applied to digital microprocessors. For example, values in the analog signal domain are continuous rather than discrete, and the noise in these values within analog circuit components typically smoothly increases as they are operated at successively lower operating voltages. In digital circuits, by contrast, operation at successively lower operating voltages leads to large discrete errors and abrupt failures. In addition to the challenges of application to digital circuit components, previous sensor approximation techniques have not been adequately controllable, and have lacked an appropriate interface to algorithms to provide approximate sensor access and control.
Exemplary embodiments of Lax presented here provide a device driver abstraction and associated hardware support that exploits opportunities to trade sensor accuracy and reliability for significant energy savings. The exemplary embodiments leverage the insight that in certain phases of their lifetime, the consumers of sensor data, may be able to tolerate some amount of error in retrieved sensor values. Examples of consumers of sensor data may include, for example, algorithms which process sensor data, and humans who consume the overall output of embedded sensor systems.
The exemplary embodiments provide a system that enables sensor data consumers to specify how much error they can tolerate from a sensor. Armed with this specification of acceptable error levels, the exemplary embodiments may then control an electrical interface of the sensor to minimize sensor energy consumption while still delivering acceptable sensor accuracy and reliability. This may be accomplished without changes to the sensor and/or sensor integrated circuits, for example, via a combination of software and external printed circuit board components.
The exemplary embodiments may combine software and hardware support to trade efficiency for accuracy and reliability. The exemplary embodiments provide a system, explained in detail below, that enables sensor device accessors to specify a tolerable degree of imprecision, inaccuracy, and unreliability. For sensors with limited support for modes which trade resolution for access power, the embodiments exploit the extant hardware facilities. Even when sensors do not have existing hardware support for trading precision, accuracy, or reliability for power consumption, many sensors may be operated outside their specified supply voltages, for example by adjusting a voltage regulator controlling a voltage level used to provide power to the sensor. For example, reducing the voltage supplied to a humidity or accelerometer sensor by half may reduce power dissipation by a factor of approximately 4 while only increasing noise output of the sensor by a factor of approximately 1.5. These savings may be significantly larger than the hypothetical savings supposed for future approximate processors and may be achieved without resorting to the complex micro-architectural changes required by, for example, proposed mixed-accuracy processors. Leveraging this provides usable tradeoffs between the reliability of data acquisition, fidelity of data provided, and power dissipation, as described below in detail.
The outputs of the component analysis blocks 121, 122, 123 are received by an activity detection block 130, which receives samples from the accelerometer sensor 110 indicating the x-, y-, and z-components of acceleration that may be first low-pass filtered, then processed by an activity detection algorithm. If a motion signature produced by the activity detection indicates walking, these acceleration components are fed into a model for predicting steps from acceleration signatures.
The activity detection block 130 feeds a multi-axis aggregation block 140, and optionally, other modules 150. Examples of other modules 150 include a gait analysis block to analyze aspects of the gait of a person that might be indicative of a disease or injury, or a gesture recognition block for controlling other functionality in a system. The multi-axis aggregation block 140 provides an aggregated output to a step model 160. In general, the prior art sensing system 100 cannot specify how much precision, accuracy, or reliability is required from the accelerometer sensor 110.
A sensor driver 620 is configured to communicate with the sensor 610, for example, as a controller that configures operating parameters of the sensor 610. The sensor driver 620 may also receive and/or accumulate data from the sensor 610. The sensor driver 620 may be integral to the sensor 610, or may be external to the sensor 610, implemented in hardware, for example, as a stand-alone driver, or in software or firmware, for example as a module operating on an external device. The sensor driver 620 may function as an intermediary between the sensor 610 and a sensor data consumer 630, as shown in
A sensor power supply 640 may provide power to the sensor 610. The sensor power supply 640 may be integral to the sensor 610, or may be external to the sensor 610. The operation of the sensor power supply 640 may be controlled by the Lax facilities 650 to regulate one or more aspects of power provided to the sensor 610, for example, a voltage level and/or a current level. However, other power parameters may also be controlled, for example, a level of power conditioning and/or filtering that may be used to regulate the consistency of the voltage and/or current provided to the sensor 610. While, in general, the Lax facilities 650 are described herein as modifying operating parameters of the sensor 610 and/or the sensor power supply 640, in alternative embodiments the Lax facilities 650 may instead and/or in addition modify operating parameters of the sensor driver 620 and/or the sensor data consumer 630, such that power savings may be gained from modifications to operation of the sensor driver 620, as well as just the sensor 610 itself. The relationship between sensor parameter modifications and deviations in sensor data may be stored in a sensor profile 660, as described in detail below.
The Lax facilities 650 may be in communication with the sensor data consumer 630, for example, to interact with the sensor data consumer 630 regarding a tolerance profile 670 of the sensor data consumer 630, as described below.
The Lax facilities 650 provides system software interfaces for approximate device access, enabling the specification of one or more types of tolerance to deviations in the sensor data from correct behavior, including, for example, but not limited to latency tolerances, loss or throughput tolerances, and/or value deviation tolerances. The Lax facilities 650 may include both hardware and software components, for example, a processor executing software modules for processing data received from the sensor 610, and the software modules for executing the functionality of the Lax facilities 650.
The block diagram of
As used within this document, “latency tolerances” refer to the capacity of an application servicing a sensor to operate correctly if the time between values recovered from a sensor is varied. For example, different applications may tolerate differing latencies in retrieving values from a sensor. This may be exploited by the Lax facilities 650 to reduce the energy required per sensor sample acquisition.
As used herein, “deviation” refers to a difference between output readings of a sensor with and without scaling one or more sensor parameters.
As used herein, “loss tolerances,” or “throughput tolerances” refer to the capacity of an application servicing a sensor to operate correctly if one or more collections of data from a sensor is either missed or is inaccurate. When the sensor data consumer 630, for example, algorithms consuming sensor data, can tolerate occasional wholly incorrect or missing samples, knowledge of this tolerance of unreliability may be used to reduce sample acquisition energy.
As used herein, “value deviation tolerances” refer to the capacity of an application servicing a sensor to operate correctly if a value reported by a sensor deviates in terms of accuracy and/or precision from the actual value being measured by the sensor. When the algorithms consuming sensor values can tolerate small deviations from accuracy or precision in sensor readings, this may be exploited to reduce sample acquisition energy.
Other parameters involving trading sensor precision/accuracy for power consumption may include the bit granularity of digital data reported by a sensor, for example, changing a serial bus output of the sensor 610 from 12 bits to 8 bits, and/or smoothing/averaging parameters. For example, the sensor 610 and/or the sensor driver 620 and/or the sensor data consumer 630 may accumulate several sensor readings (samples) over time and calculate an average of the samples before reporting the average as the sensor output. Reducing the number of samples used to calculate the average, or eliminating the averaging function altogether may reduce the power consumption of the sensor system 600, while increasing the noise and/or reducing the accuracy of the sensor data.
The first exemplary embodiment 600 enables driver writers to specify tolerances to one or more of these types of behavioral aberrations. These specifications may then be exploited in existing system architectures, as illustrated in
As shown in
Tolerances may generally be specified in the context of a given sensor type and may preferably be statically checked because it is possible to specify meaningless, unattainable, or mutually contradictory tolerance specifications. Lax may use a utility for defining tolerances, for example, a small domain-specific language, Slax. Slax captures the latency, loss, and value-deviation tolerances of sensor data acquisition and is thus complementary to interface definition languages which are intended to ease the construction of complete device drivers.
An exemplary set of grammar definitions for Slax is shown in Table 1:
and example specifications for an accelerometer are given in Table 2 and Table 3:
A Slax specification may include one or more sensor and/or tolerance blocks. The sensor blocks describe the error properties of sensors at various operating points, while the tolerance blocks denote groups of error tolerance settings that are required together at various points in an application.
In practice, a driver may use a Lax-default or driver specified tolerance specification in accessing a given sensor, as illustrated in block 340 of
The Lax runtime may use the provided tolerance indicator to determine the best device operating point. When integrated into contemporary operating systems, it would then set the properties of the device using, e.g., ioctl( ) or equivalent system calls. The sensor blocks on the other hand are preferably based on hardware characterizations. They would preferably be provided by a hardware platform designer or vendor, but may be overridden by a sensor block of the driver writer.
As shown in Table 4, The energy savings for the exemplary embodiments of Lax may be verified, for example, by performing data integrity measurements at different degrees of power savings for two exemplary sensors:
The sensors listed in Table 4, were both targeted at mobile and wearable computing systems and each dissipate more power when active than the processor shown in
A sensor profile 660 indicates deviations such as inaccuracies, imprecisions, latencies, losses, or all of the above, introduced to data produced by a sensor 610 as a result of adjusting one or more operating parameter of the sensor 610. For example, the sensor profile 660 may include deviations produced by operating the sensor 610 at voltages below the specified operating range of the sensor 610. The sensor profile 660 of the sensor 610 indicating a relationship between a sensor parameter operating range and a resulting deviation of the sensor data is accessed, as shown by block 410.
A tolerance profile of a sensor data consumer 630 is accessed indicating a tolerable degree of imprecision, inaccuracy, and/or unreliability of sensor data accessible to the sensor data consumer 630, as shown by block 420. The tolerance profile 670 is provided to a Lax facility 650 in communication with a sensor driver 620 configured to control the sensor, as shown by block 430. A parameter of the sensor 610 is scaled, for example, by the Lax facility 650, according to the tolerance profile to reduce a power dissipation level of the sensor, as shown by block 440.
The sensor profile 660 may be created independently of the first embodiment system 600, and may be provided to the first system embodiment 600 for operation. Alternatively, the Lax facilities 650 may be used to produce the sensor profile 660, for example, by using the sensor 600 and a reference sensor (not shown) operated in close proximity to one another, where the Lax facilities 650 are used to control one or more operating parameters of the sensor 600, while the reference sensor is not adjusted. The Lax facilities 650 may then compare data collected from the sensor 600 with data collected from the reference sensor to determine if and how adjustment of the operating parameter(s) of the sensor 600 results in deviations in data collected from the sensor 600 with respect to data collected from the reference sensor. The sensor profile 660 may be filled in by repeating this process over a range of values for one or more parameters of the sensor 610.
In addition to deviations in data precision, when the sensor 610 is operated outside of specified operating parameters, deviations in the data produced by the sensor 610 may include an offset value. The offset value may scale according to changes in one or more operating parameters of the sensor 610, or the offset value may represent a non-linear deviation. The Lax facilities 650 may be configured to address offsets in different ways described below.
Regarding precision, the sensor 610, for example, a temperature sensor operated within specified operating parameter ranges, may report a temperature accurate to two decimal places with an error range of +/−0.1%, while operating the same temperature outside of specified operating parameter ranges.
Regarding offset, the sensor 610 operated below specified operating parameter ranges may result in reporting data with an error offset. For example, a temperature sensor operated at a voltage level below the specified minimum voltage level may report a temperature level with a known error offset. For instance, at a voltage level 20% below the specified minimum voltage level the sensor may report a temperature level that has an error offset of −12 degrees, so that 12 degrees must be added to the temperature value reported by the sensor to determine the correct temperature. Including such offset information in the sensor profile may allow the Lax facilities 650 to correct the sensor reading by configuring the sensor driver 620 to add the known offset to the received sensor reading. Alternatively, the Lax facilities 650 may alert the sensor data consumer 630 of the offset, so the sensor data consumer 630 may adjust the received sensor data to correct for the offset.
The present system for executing the functionality described in detail above may include a computer, an example of which is shown in the schematic diagram of
The processor 502 is a hardware device for executing software, particularly that stored in the memory 506. The processor 502 can be any custom made or commercially available single core or multi-core processor, a central processing unit (CPU), an auxiliary processor among several processors associated with the present system 500, a semiconductor based microprocessor (in the form of a microchip or chip set), a macroprocessor, or generally any device for executing software instructions.
The memory 506 can include any one or combination of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, etc.)) and nonvolatile memory elements (e.g., ROM, hard drive, tape, CDROM, etc.). Moreover, the memory 506 may incorporate electronic, magnetic, optical, and/or other types of storage media. Note that the memory 506 can have a distributed architecture, where various components are situated remotely from one another, but can be accessed by the processor 502.
The software 508 defines functionality performed by the system 500, in accordance with the present invention. The software 508 in the memory 506 may include one or more separate programs, each of which contains an ordered listing of executable instructions for implementing logical functions of the system 500, as described below. The memory 506 may contain an operating system (O/S) 520. The operating system essentially controls the execution of programs within the system 500 and provides scheduling, input-output control, file and data management, memory management, and communication control and related services.
The I/O devices 510 may include input devices, for example but not limited to, a keyboard, mouse, scanner, microphone, etc. Furthermore, the I/O devices 510 may also include output devices, for example but not limited to, a printer, display, etc. Finally, the I/O devices 510 may further include devices that communicate via both inputs and outputs, for instance but not limited to, a modulator/demodulator (modem; for accessing another device, system, or network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, or other device.
When the system 500 is in operation, the processor 502 is configured to execute the software 508 stored within the memory 506, to communicate data to and from the memory 506, and to generally control operations of the system 500 pursuant to the software 508, as explained above.
When the functionality of the system 500 is in operation, the processor 502 is configured to execute the software 508 stored within the memory 506, to communicate data to and from the memory 506, and to generally control operations of the system 500 pursuant to the software 508. The operating system 520 is read by the processor 502, perhaps buffered within the processor 502, and then executed.
When the system 500 is implemented in software 508, it should be noted that instructions for implementing the system 500 can be stored on any computer-readable medium for use by or in connection with any computer-related device, system, or method. Such a computer-readable medium may, in some embodiments, correspond to either or both the memory 506 or the storage device 504. In the context of this document, a computer-readable medium is an electronic, magnetic, optical, or other physical device or means that can contain or store a computer program for use by or in connection with a computer-related device, system, or method. Instructions for implementing the system can be embodied in any computer-readable medium for use by or in connection with the processor or other such instruction execution system, apparatus, or device. Although the processor 502 has been mentioned by way of example, such instruction execution system, apparatus, or device may, in some embodiments, be any computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. In the context of this document, a “computer-readable medium” can be any means that can store, communicate, propagate, or transport the program for use by or in connection with the processor or other such instruction execution system, apparatus, or device.
Such a computer-readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a nonexhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic), a random access memory (RAM) (electronic), a read-only memory (ROM) (electronic), an erasable programmable read-only memory (EPROM, EEPROM, or Flash memory) (electronic), an optical fiber (optical), and a portable compact disc read-only memory (CDROM) (optical). Note that the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
In an alternative embodiment, where the system 500 is implemented in hardware, the system 500 can be implemented with any or a combination of the following technologies, which are each well known in the art: a discrete logic circuit(s) having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array(s) (PGA), a field programmable gate array (FPGA), etc.
Other implementations are also possible.
In summary, the energy efficiency of many embedded sensor applications may be improved by driving the electrical interfaces of sensors in a manner that makes them use significantly less power, but at the cost of unreliable data acquisition. Lax lets systems programmers exploit this insight in a controlled manner.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
This application is a continuation of U.S. patent application Ser. No. 15/596,568, filed May 16, 2017, which claims the benefit of U.S. Provisional Patent Application Ser. No. 62/337,849, filed May 17, 2016, entitled “Lax: Driver Interfaces for Appropriate Sensor Device Access,” both of which are incorporated by reference herein in their entirety.
This invention was made with Government support under Contract No. FA8650-15-C-7564 awarded by the U.S. Air Force. The Government has certain rights in the invention.
Number | Date | Country | |
---|---|---|---|
62337849 | May 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15596568 | May 2017 | US |
Child | 16710221 | US |