Device Flags
Device flag techniques are described. In one or more implementations, responsive to detection by a computing device that a device has been communicatively coupled to bus of the computing device, a database is queried by the computing device to determine whether one or more flags have been set for the device. Responsive to a determination made as a result of the querying that the one or more flags have been set for the device identifier, information associated with the one or more flags is communicated to software that is associated with the device to configure the software.
This application claims priority under 35 U.S.C. Section 120 as a continuation application of U.S. patent application Ser. No. 13/052,757 entitled “Device Flags” filed Mar. 21, 2011, the content of which is incorporated by reference herein in its entirety.
BACKGROUNDComputing devices may include a variety of different hardware devices to expand the functionality available to the computing device. For example, the hardware devices may include internal devices that may be configured within a housing of the computing devices as well as external devices, such as printers, cameras, and so on. Drivers are typically employed to enable communication between an operating system of the computing device and the devices.
The continuing development of software executed on the computing device, however, may cause changes in how the software interacts with the drivers. Consequently, a driver that is compatible with a previous version of an operating system, for example, may not be compatible with later versions of the operating system. Traditional techniques that were used to combat this incompatibility included writing a newer version of the driver. Although this may restore functionality of the device, the writing of the driver may involve a wait until the driver is available for dissemination, involve a user locating the newer version of the driver, and so on that could lead to user frustration and lost productivity.
SUMMARYDevice flag techniques are described. In one or more implementations, responsive to detection by a computing device that a device has been communicatively coupled to bus of the computing device, a database is queried by the computing device to determine whether one or more flags have been set for the device. Responsive to a determination made as a result of the querying that the one or more flags have been set for the device identifier, information associated with the one or more flags is communicated to software that is associated with the device to configure the software.
In one or more implementations, a computing device detects that a device has been communicatively connected to a bus of the computing device and a device identifier of the device is obtained by a bus driver that is executed on the computing device and manages the bus. The device identifier of the device is communicated by the bus driver to an engine that is executable on the computing device. A database is queried by the engine to determine whether one or more flags have been set for the device identifier and responsive to a determination that the one or more flags have been set for the device identifier, information is communicated that relates to the one or more flags to the bus driver and the information is applied by the bus driver.
In one or more implementations, usage telemetry data is received via a network at one or more computing devices of a network service, the usage telemetry data identifying firmware of devices, corresponding drivers via which the devices communicate, and configuration of the drivers. The usage telemetry data is processed at one or more computing devices to determine which of the devices described in the usage telemetry data include firmware that involves an update to enable operation of functionality of the device in conjunction with a respective computing device that otherwise would not be enabled.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in different instances in the description and the figures may indicate similar or identical items.
Computing devices may include (e.g., be communicatively coupled to) a wide variety of different devices such that functionality of the device may be utilized by the computing device. For example, a computing device may be communicatively coupled to a printer, optical disc reader/writer, thumb drive, or other peripheral device that may be internal (e.g., within a housing) or external to the computing device. A driver may be utilized to enable communication between the computing device and the device, such as to translate commands and data from an operating system of the computing device into a form that is understandable by the device and vice versa. However, changes to the operating system may cause incompatibilities with the driver and consequently with the device.
Device flag techniques are described which may be leveraged to maintain compatibility, such as between software of the computing device (e.g., an operating system) and a device and driver of the device. This compatibility may be provided in a variety of ways. For example, a flag engine (e.g., which may be implemented as part of a shim engine) may maintain a database of hardware IDs and corresponding flags. Therefore, when a device is detected as being connected to the computing device (e.g., by a bus driver), the flag engine may be queried to determine if there are any flags set for the device ID. Information relating to this flag may then be communicated to the driver to configure the driver accordingly, such as for code path selection, enable device specific capabilities, and so on, further discussion of which may be found in relation to the following sections.
In the following discussion, an example environment is first described that may be leveraged according to driver shimming techniques. Example procedures are then described which may also be employed in the example environment as well as other environments. Accordingly, performance of the example procedures is not limited to the example environment and the example environment is not limited to performing the example procedures.
Example EnvironmentThe computing device 102 may also include an entity (e.g., software) that causes hardware of the computing device 102 to perform operations, e.g., processors, functional blocks, and so on. For example, the computing device 102 may include a computer-readable medium that may be configured to maintain instructions that cause the computing device, and more particularly hardware of the computing device 102 to perform operations. Thus, the instructions function to configure the hardware to perform the operations and in this way result in transformation of the hardware to perform functions. The instructions may be provided by the computer-readable medium to the computing device 102 through a variety of different configurations.
One such configuration of a computer-readable medium is signal bearing medium and thus is configured to transmit the instructions (e.g., as a carrier wave) to the hardware of the computing device, such as via a network. The computer-readable medium may also be configured as a computer-readable storage medium and thus is not a signal bearing medium. Examples of a computer-readable storage medium include a random-access memory (RAM), read-only memory (ROM), an optical disc, flash memory, hard disk memory, and other memory devices that may use magnetic, optical, and other techniques to store instructions and other data.
The computing device 102 is also illustrated as including a processor 104 and memory 106. Processors are not limited by the materials from which they are formed or the processing mechanisms employed therein. For example, processors may be comprised of semiconductor(s) and/or transistors (e.g., electronic integrated circuits (ICs)). In such a context, processor-executable instructions may be electronically-executable instructions. Alternatively, the mechanisms of or for processors, and thus of or for a computing device, may include, but are not limited to, quantum computing, optical computing, mechanical computing (e.g., using nanotechnology), and so forth. Additionally, although a single processor 104 and memory 106 are shown, a wide variety of types and combinations of memory and/or processors may be employed.
The computing device 102 is illustrated as also includes an operating system 108 having a kernel 110 and one or more drivers 112 that are configured to support communication between the kernel 110 of the operating system 108 and one or more devices 114. The kernel 110 represents a component of the operating system 108 that is typically employed to abstract functionality of underlying devices such as the processor 108, memory 106, and other devices 112 to applications and other software that are executed by the computing device 102. Although the operating system 108 and kernel 110 are illustrated as being executed on the processor 104, these modules are also storable in memory 106.
The devices 112 may be representative of a variety of different devices that may be employed by the computing device 102. For example, the devices 112 may include peripheral devices, such as printers, scanners, hard drives, and so on. The devices 112 may also represent functionality of other computing devices that may be leveraged by the computing device 102, such as to use a mobile phone as a storage device, access photos on the mobile phone, and so on. Thus, the computing device 102 may leverage a variety of different devices 112 to add to the functionality of the computing device 102.
In order for the devices 112 to communicate with the computing device 102, and more particularly the operating system 108 and kernel 110 of the computing device, one or more drivers 114 may be employed. Drivers 114 are typically employed to abstract functionality of a corresponding device 112. For example, the driver 114 may be configured as a series of layers to translate commands from the kernel 110 of the operating system 108 into device specific commands that are “understandable” by a respective device.
A variety of different drivers 114 may be employed by the computing device 102. For example, the driver 114 may be configured as a class driver that is configured to interact with a number of different types of a device 112. For example, a class driver may be configured for use with optical reader/writer, storage devices, networking, and so on. Another example involves a bus driver, such as a driver employed by a USB, PCI, or similar bus such that devices that share a common protocol (e.g., the USB protocol) may leverage the same driver to be compatible with the computing device 102. Other different types of drivers from a device stack (e.g., bus driver, class driver, filter driver, device driver) may employ these techniques. Further, a variety of other software may also leverage these techniques, such as application to make contextual based code path selection based on flags and corresponding retrieval of data based on a device identifier.
As previously described, however, there may be some instances in which the driver 114 is not longer compatible with software of the computing devices, such as the kernel 110 of the operating system 108. For example, the operating system 108 may be updated to a newer version, have a service pack applied, and so on that may change how the operating system 108 is configured to communicate with the driver 114.
Accordingly, the computing device 102 may employ a flag engine 116 that is representative of functionality to employ one or more flags 118 to support compatibility of the drivers 114 with the operating system 108. For instance, the flag engine 116 may receive a hardware ID 120 of a device 112 when the device is communicatively coupled to the computing device 102, e.g., to a bus. The hardware ID 120 may then be used by the flag engine 116 to determine whether one or more flags 118 correspond to the hardware ID 120. Information relating to the flag 118 may then be leveraged by the driver 114 to support communication with the device 112. In this way, behavior of particular devices may be flagged and used as a basis to determine a “fix” to communicate with the device 114. This may be used to support a wide variety of functionality, an example of which is that the computing device 102 may employ a generic driver 114 that may be specifically configured for particular devices 112, further discussion of which may be found in relation to
Generally, any of the functions described herein can be implemented using software, firmware, hardware (e.g., fixed logic circuitry), manual processing, or a combination of these implementations. The terms “module,” “engine,” and “functionality” as used herein generally represent hardware, software, firmware, or a combination thereof. In the case of a software implementation, the module, functionality, or logic represents instructions and hardware that performs operations specified by the hardware, e.g., one or more processors and/or functional blocks.
The flag engine 116 may then receive this device ID 120 and determine whether one or more behaviors of the device 112 have been flagged by examining a database 208. The flag engine 116, for instance, may determine whether a flag 118 corresponds to the device ID 120. In the illustrated example the database 208 is illustrated as being local to the computing device 102 but other instances are also contemplated, such as available at a network service 210 accessible via a network 212.
If the device ID 120 has a corresponding flag 118 in the database 208, the flag engine 116 may provide corresponding information 214 back to the bus driver 204. For example, the information 214 may describe the flag itself, such as that “bit 5 is set” meaning that a particular power command is not to be given to the device 112 by the bus driver 204. In another example, the flag 118 may be associated with a payload 216 that contains more detailed information that may be used to configure the bus driver 204.
The device 112, for instance, may be configured in accordance with a standard and therefore include standardized behaviors 218, i.e., behaviors that are consistent with the standard. The device 112 may also include extended behaviors 220 that are not included in the standard, such as additional features that may be added to future standards and/or help the device 112 to differentiate itself in the marketplace. By using the techniques described herein, however, these extended behaviors 220 may be supported by the bus driver 204 through use of the flags 118 and/or payloads 216 to configure the bus driver 204 for the extended behaviors 220. This configuration may be supported in a variety of ways, such as to use the flag 118 for code path selection by the bus driver 204, such the payload 216 for device specific capabilities, and so on.
The flag engine 116 may also provide telemetry data to the network service 210, which may be leveraged for a variety of different features. As illustrated in
The telemetry data, for instance, may include details such as the device ID 120 and a context for events that occur in relation to the bus driver 204 and device 112. This usage data may then be used to address these events, such as to determine compatibility test requirements for introducing an update, identify particular devices in a market that are to involve an update, determine whether devices have adapted to a later version and thus a flag is no longer relevant (e.g., firmware of the device 112 has been updated to address an updated version of an operating system 108), and so on. Further discussion of these and other techniques may be found in relation to the following procedures.
Example ProceduresThe following discussion describes shared resource access verification techniques that may be implemented utilizing the previously described systems and devices. Aspects of each of the procedures may be implemented in hardware, firmware, or software, or a combination thereof. The procedures are shown as a set of blocks that specify operations performed by one or more devices and are not necessarily limited to the orders shown for performing the operations by the respective blocks. In portions of the following discussion, reference will be made to the environment 100 of
A device identifier of the device is obtained by the bus driver (block 304). The device identifier 120, for instance, may describe hardware and/or firmware employed by the device, specific functions supported by the device, be configured as a unique identifier for a particular device (e.g., a serial number), and so on. The device ID is then obtained by a flag engine that is executed by the computing device (block 306) and a check is performed to determine whether a flag correspond to the device ID (block 308), further discussion of which may be found in relation to the following figure.
Responsive to a determination made as a result of the querying that the one or more flags have been set for the device identifier, communicate information associated with the one or more flags to software that is associated with the device to configure the software (block 404). As stated before, the information 214 may be configured in a variety of ways. For example, the information 214 may describes flags 118 that may be used for code path selection by the driver 114, may include a payload 216 associated with the flag that may be used as a basis for configuring device specific behaviors such as extended behaviors 220 that go beyond a standard, and so on.
The telemetry data is processed at one or more computing device to determine which of the devices described in the telemetry data include firmware that involves an update to enable operation of functionality of the device in conjunction with a respective computing device that otherwise would not be enabled (block 504). Continuing with the previous example, a telemetry module 222 may be employed by the network service 210 to process the telemetry data, which may be used for a variety of purposes. For example, the telemetry data for the device 112 may provide details on which devices 112 (e.g., and corresponding firmware) continue to involve use of flags 118 to provide compatibility, which devices 112 utilize flags 118 to enable device specific capabilities (e.g., extended behaviors 220), which devices have upgraded firmware that no longer requires the use of flags 118, and so on. Developers may then use this information to determine compatibility test requirements when introducing updates to software (e.g., to a new version of an operating system or service pack update) to ensure device compatibility does not regress for devices that depend on the flags 118 to enable device specific capabilities. A variety of other examples are also contemplated without departing from the spirit and scope thereof.
CONCLUSIONAlthough the invention has been described in language specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claimed invention.
Claims
1. (canceled)
2. A computing device comprising:
- a bus configured to communicatively couple devices to the computing device; and
- a database configured to maintain flags for one or more of the devices, the flags set to flag behaviors of the one or more devices that affect compatibility with the computing device, the set flags identifying information that enables software of the one or more devices to be configured to support the compatibility with the computing device.
3. A computing device as described in claim 1, wherein the information is configured for use in code path selection of the software.
4. A computing device as described in claim 1, wherein the information is to configure the software for device-specific capabilities of the one or more devices.
5. A computing device as described in claim 1, wherein the software is an application.
6. A computing device as described in claim 1, wherein the software is a bus driver, class driver, or filter driver.
7. A computing device as described in claim 1, wherein the software is configured to handle capabilities of the one or more devices in accordance with standardized behaviors and the information is to configure the software for capabilities of the device that do not involve the standardized behaviors.
8. A computing device as described in claim 1, wherein the software is configured to handle capabilities of the one or more devices in accordance with a particular version of an operating system and the information is to configure the software for a previous version of the operating system.
9. A computing device as described in claim 1, wherein usage of the information by the software results in generation of telemetry data by the computing device that describes the usage, the telemetry data generated for communication via a network to a network service.
10. A computing device as described in claim 9, wherein the telemetry data is usable to determine compatibility test requirements for introducing an update.
11. A computing device as described in claim 9, wherein the telemetry data is usable to identify particular said devices in a market that are to involve a firmware update to enable functionality of the device that otherwise would not be enabled.
12. A computing device as described in claim 9, wherein the telemetry data is usable to identify particular said devices in a market that have updated firmware and thus no longer involve usage of the one or more flags.
13. A computing device comprising:
- a bus driver configured to enable communication between a device that is coupled to a bus of the computing device and an operating system of the computing device, the bus driver further configured to provide a device identifier to a flag engine of the computing device in response to detecting a communicative coupling of the device to the bus; and
- the flag engine configured to: receive the device identifier and use the device identifier to query a database to determine whether one or more flags, maintained in the database, have been set for the device; and responsive to a determination that the one or more flags have been set for the device, communicating information associated with the one or more flags to the bus driver to support the communication between the device and the operating system.
14. A computing device as described in claim 13, wherein the database is local to the computing device.
15. A computing device as described in claim 13, wherein the database is remote from the computing device.
16. A computing device as described in claim 13, wherein the bus driver is configured for USB or PCI.
17. A computing device as described in claim 13, wherein the information is to configure the bus driver for device-specific capabilities of the device.
18. A computing device as described in claim 13, wherein the bus driver is configured to handle capabilities of the device in accordance with a standard and the information is to configure the bus driver for capabilities of the device that do not involve the standard.
19. A system comprising:
- one or more processors; and
- a memory having stored thereon computer-readable instructions that are executable by the one or more processors to implement a network service to perform operations comprising: receiving telemetry data via a network; identifying firmware configurations employed by devices described in the telemetry data; and determining which of the devices described in the telemetry data include firmware that involves an update to enable functionality of the devices in conjunction with a respective computing device that otherwise would not be enabled.
20. A system as described in claim 19, wherein the telemetry data is transmitted by respective computing devices responsive to configuration of corresponding drivers via which the devices communicate, the drivers configured using information that corresponds to one or more flags located through execution of an engine by the respective computing devices, the one or more flags usable for code path selection of the driver or to enable device-specific capabilities.
21. A system as described in claim 19, wherein the operations further comprise processing the telemetry data to determine compatibility tests to be applied for a subsequent version of an operating system that is to be executed by the respective computing devices.
Type: Application
Filed: Mar 16, 2015
Publication Date: Oct 1, 2015
Inventors: Corneliu I. Lupu (Sammamish, WA), Silviu C. Calinoiu (Redmond, WA), Cristian G. Petruta (Redmond, WA), Batsaihan Jargalsaihan (Bellevue, WA), Chris Ernest Matichuk (Issaquah, WA)
Application Number: 14/658,770