1. Field
The disclosure relates generally to USB hosts and peripheral devices, and more particularly, to apparatus and method for manipulating the support provided for USB by an operating system that is executed by a processor of a host to enable varying degrees of functionality in interactions between the host and a peripheral device attached to the host via USB interconnect.
2. Background Information
A number of years, ago, a group of computer and computer peripheral manufacturers formed an industry association to create a new digital interface for interconnecting various electronic devices. This new digital interface became and is widely known as USB (Universal Serial Bus). USB is a point-to-point interface in which there is a distinct master device (commonly referred to as a “host”) and a distinct slave device (commonly referred to as a “peripheral device”). USB is most commonly used to connect one or more peripheral devices (e.g., scanners, cameras, printers and removable media drives) to a single host device (usually, a computer system such as a personal computer).
USB permits electronic devices to be attached to each other, automatically configured upon detection of their attachment, and detached from each other while still in operation. In other words, USB provides “hot-plugging” support that includes automatic configuration. To facilitate this, specifications were drafted for minimum requirements for a protocol for the automatic configuration and for support to be provided by an operating system executed by a processor of the host for “on-the-fly” changes of peripheral devices, in addition to specifications for the hardware interface.
Upon attachment of a peripheral device to a host, the host requests and the peripheral device provides identification data, including a vendor identity code and one or more device class codes. Vendors of peripheral devices for USB are assigned identity codes to allow their products to be distinguished from those of other vendors. A number of device class codes are defined for USB with each device class code specifying a function that a peripheral device may be capable of performing, such as the human interface device class (e.g., keyboards, mice and joysticks), the printing device class (e.g., dot matrix printers, ink jet printers and color printers), the scanning device class (e.g., flatbed scanners), and the mass storage device class (e.g., hard disk drives, removable media drives and flash memory devices). A peripheral device may be capable of performing multiple functions, and therefore, would provide multiple device class codes in the identification information sent to the host.
The identification data is used by an operating system executed by a processor of the host to select one or more pieces of support software from whatever pieces of support software are loaded onto the host to support interactions between the host and the peripheral device to allow the host to make use of the functions specified by the peripheral device in its identification data. To aid the selection of pieces of support software, each piece of support software carries data that at least partially mirrors the types of information provided by identification data from a peripheral device. A piece of vendor-specific support software supports only the peripheral devices of a specific vendor and provides the operating system with a vendor identity code specifying that vendor, whereas generic support software is not limited to supporting only the peripheral devices of a specific vendor. Both vendor-specific and generic support software further provide the operating system with device class codes specifying what peripheral device functions are supported by the support software. It should be noted that it is possible for a piece of support software, whether vendor-specific or generic, to supports only a single peripheral device function or to support multiple functions. It is also possible that a piece of support software supports only a subset of the functions specified by device class codes of the identification data of a given peripheral device such that multiple pieces of support software must be selected to support all of the functions of that peripheral device.
In selecting support software to support interactions with each peripheral device attached to the host, the operating system endeavors to achieve the best fit between each peripheral device and whatever support software is loaded on the host. It is generally accepted that the best possible fit is achieved by matching a given peripheral device with vendor-specific support software that is of the same vendor and that supports all of the functions specified by the device class codes in the identification data supplied by that peripheral device (whether this is with a single piece of vendor-specific support software, or multiple pieces). This is based on the presumption that the vendor of a given peripheral device will be in the best position to provide software that best supports it. However, where either there is no vendor-specific support software specifying that vendor, or there is insufficient vendor-specific support software to support all of the functions of the given peripheral device, then the operating system may choose generic support software to support some or all of the functions of that peripheral device. However, if there proves not to be either vendor-specific or generic support software present to support all of the functions specified by a given peripheral device by the device class codes of its identification data, then the operating system presents the user with a request to load the missing support software onto the host.
Since the introduction of USB circa 1995, various trends have arisen in how computers or other electronic devices functioning as hosts to one or more attached peripheral devices are employed by their users, such as which vendors' peripheral devices and/or which peripheral device functions are more widely desired. Since it is generally not practical for a vendor of an electronic device functioning as a host to provide all known pieces of support software for all peripheral devices already loaded on those electronic devices, such vendors often attempt to anticipate which peripheral devices or peripheral device functions (i.e., which classes of peripheral device) are most likely to be desired by users, and to load onto their products a subset of support software sufficient to support those users. The result has been that some functions that a peripheral device may provide may be very widely supported with the necessary support software already being loaded onto the vast majority of hosts by their vendors such that few users are ever presented with a request to load software for such functions. However, this leaves other functions that a peripheral device may provide with less certainty in the availability of software support. Most users of computer systems or other electronic devices functioning as hosts to one or more attached devices will find themselves asked to load support software at some point.
Although many users of computer systems or other electronic devices functioning as hosts to one or more attached peripheral devices will understand the meaning of a request presented to them to load supporting software, many other users will not. Furthermore, actually satisfying such a request often entails a search for the requested software, either by searching for a storage medium (such as a CD) that accompanied the peripheral device when purchased or by searching for a website from which the requested software may be downloaded. Although operating systems making requests for support software to be loaded by a user is arguably the logic result of the necessary support software not already being loaded on a host, and is in fact the current conventional result, due to the inconvenience caused to both savvy and not-so-savvy users, this result is not seen as being entirely satisfactory.
A full understanding of the disclosed and claimed concept can be gained from the following Description when read in conjunction with the accompanying drawings in which:
Similar numerals refer to similar parts throughout the specification.
Focusing more on
The electronic device 300 incorporates a processor 310 connected to a storage 320 and an interface 330. As discussed earlier, the electronic device 300 may also incorporate one or more of the keyboard 350, the display 355, the wireless link 360, the print engine 370, the scanner head 375 and the modem 380. The processor 310 accesses the storage 320 to retrieve and execute sequences of instructions comprising pieces of software, such as interface software 323. The interface 330 provides a USB-compliant hardware interface, including clock and data signaling, by which the electronic device 300 may be attached to another electronic device, such as the electronic device 100 via the USB interconnect 200. The interface software 323 provides a sequence of instructions, that when executed by the processor 310, causes the processor 310 to perform operations in support of interactions between the electronic devices 100 and 300 through the interface 330 and the USB interconnect 200. As will be discussed, among those operations is providing identification data to the electronic device 300, and controlling the interface 330 to simulate the acts of attaching and detaching the electronic device 300 to and from the electronic device 100.
As those skilled in the art will readily recognize, the processors 110 and 310 may be of any of a wide variety of processing devices, including and without limitation, microcontrollers, microprocessors, sequencers, digital signal processors or state machines implemented in hardware logic. In some embodiments, the processor 110 may be one of a number of commercially available processors executing at least a portion of the widely known and used “X86” instruction set. Also, although depicted as part of the operating system 122, the interface software 123 may be a separately provided piece of software that augments the operating system 122 with the capability to control the interface 130. The operating system 122 may be any of a wide variety of operating systems, including and without limitation, a version of UNIX, a version of the Windows operating system provided by Microsoft Corporation, or a version of LINUX. Furthermore, the storages 120 and 320 may be of any of a wide variety of types of storage devices, including and without limitation, disk drives (e.g. and without limitation, hard drives, floppy drives, magneto-optical drives, magnetic tape drives or CD-ROM drives), solid state memory (e.g. and without limitation, static RAM, dynamic RAM, ROM, EEPROM or FLASH) and memory card readers.
Although the USB interconnect 200 is depicted and discussed herein as being a cable coupling together the electronic devices 100 and 300 by the interfaces 130 and 330, respectively, and although currently commonplace implementations of USB cabling provide an electrical connection, those skilled in the art and those familiar with proposed future developments in USB will readily recognize that other implementations of USB interconnect 200 are possible. These other possible implementations include, without limitation, fiber optic cabling and various forms of wireless interconnect employing infrared or radio frequency transmissions. Where the USB interconnect 200 is implemented as either a cable conducting electrical signals between the electronic devices 100 and 300 or a fiber optic cable conducting light signals between the electronic devices 100 and 300, at least one or both ends of the USB interconnect 200 is connected to the corresponding one or both of interfaces 130 and 330 via detachable connectors.
The electronic devices 100 and 300 implement various aspects of USB, including the distinct roles of host and peripheral device in controlling activity across the USB interconnect 200, and permitting hot-plugging. Electronic device 100, with the processor 110 executing a sequence of instructions within the interface software 123, functions as the host, and the electronic device 300, with the processor 310 executing a sequence of instructions within the interface software 323, functions as the peripheral device.
When the electronic devices 100 and 300 are attached to each other through the USB interconnect 200, the interface 130 receives an indication that a peripheral device has been attached. In embodiments where the USB interconnect 200 is implemented as an electrical cable, this indication of a peripheral device being attached is received by the interface 130 as a change in an electrical property of a clock and/or data signal of the USB interface provided by the interface 130. In embodiments where the USB interconnect 200 is implemented as a fiber optic cable or other form of interconnect, the interface 130 may receive this indication in any of a number of other possible ways, including and without limitation, by detecting clock and/or data signal activity, by detecting a beam of light, or by receiving a modulated signal of a specific frequency.
Regardless of how the attachment is detected, the processor 110 is signaled by the interface 130 that an indication of the attachment of a peripheral device has been received. In response, the processor 110 retrieves from the storage 120 and executes a sequence of instructions of the host interface software 123, causing the processor 110 to operate the interface 130 to signal the electronic device 100 across the USB interconnect 200 to provide identification data in accordance with USB protocols. Alternatively, the interface 130 may be capable of requesting the identification data in response to detecting the attachment of the peripheral device without the interface software 123 having to cause the processor 110 to operate the interface 130 to do so. Regardless of how the request is generated within the electronic device 100, the processor 310 of the electronic device 300 is signaled by the interface 330 that a request for identification data has been received. In response to this request, the processor 310 retrieves from the storage 320 and executes a sequence of instructions of the interface software 323 that cause the processor 310 to send identification data to the electronic device 100 to enable the interface software 123 executed by the processor 100 to select appropriate support software to enable interaction between the electronic devices 100 and 300, and thereby, enable the electronic device 100 to utilize one or more functions that the electronic device 300 is capable of performing.
However, as previously discussed in the earlier “Background” section, it is entirely possible that insufficient support software for supporting all of the functions of the electronic device 300 has been loaded into the electronic device 100 at the time that the electronic devices 100 and 300 are attached such that there isn't sufficient vendor-specific and/or generic support software available in the storage 120 to be selected to support all of those functions. To induce the interface software 123 in such a situation to not engage in the conventional behavior of requesting that the user of the electronic device 100 load additional software, the identification data provided by the electronic device 300 is a first identification data that correctly specifies its vendor, but provides at least one device class code that either incorrectly or incompletely specifies the functions that the electronic device 300 is capable of performing. In other words, a device class code is provided in the first identification software that takes advantage of the earlier discussed trends in the provision of support software by specifying a function that has a high likelihood of being supported by at least a generic support software already loaded onto the electronic system 100. The function specified by this device class code may be a subset of a fuller range of functions performable by the electronic device 300 or may be a function entirely outside the range of functions actually performable by the electronic device 300. To put it yet another way, the electronic device 300 initially describes itself in the first identification data as being a peripheral device that performs a very widely supported function for which there is a high likelihood of a piece of support software being loaded on the electronic device 100, regardless of whether the electronic device 300 actually performs that function, or not.
After the transmission of the first identification data, the processor 110 is signaled by the interface 130 of the receipt of the first identification data from the electronic device 300, and in executing further instructions of the host interface software 123, the processor 110 is caused to use the received identification data to select an appropriate piece of support software. Which piece of support software is selected depends, in part, on what pieces of support software have already been loaded onto the electronic device 100. For the sake of clarity in continuing this discussion, we will presume that the support software 126 depicted in
If the support software 126 is loaded onto the electronic device 100, but the support software 127 is not, such that the support software 126 is stored in the storage 120, but not the support software 127, then the interface software 123 will select the support software 126 to enable interaction between the electronic devices 100 and 300 in which the function specified by the device class code provided in the first identification data is supported. As previously discussed, it is seen as preferable to select a vendor-specific piece of support software to support a peripheral device of that vendor, but with the support software 127 not being loaded onto the electronic device 100 (and presuming there is not other vendor-specific support software for that same vendor loaded onto the electronic device 100), the support software 126 becomes the best available choice of support software. In embodiments where the electronic device 300 actually performs the function specified by the device class code provided in the first identification data along with other functions, this enabled interaction, though not utilizing the other functions available on the electronic device 300, does at least provide some benefit from attaching the electronic devices 100 and 300 through the USB interconnect 200 without additional software. In other embodiments where the electronic device 300 does not actually perform the function specified by the device class code provided in the first identification data, this enabled interaction, at the very least, provides the benefit of not burdening the user with a request to install software at that time, such that software installation can be deferred to a later time.
Alternatively, if the support software 127 is loaded onto the electronic system 100, then the interface software 123 will select the support software 127, regardless of whether or not the support software 126 is also loaded onto the electronic system 100, because as explained earlier, a vendor-specific support software that supports the functions specified by the device class codes from a peripheral device of that same vendor is preferred over generic support software. The interface software 123 will have made this selection to enable interaction between the electronic devices 100 and 300 in which the function specified by the device class code provided in the first identification data is supported. However, although the electronic device 300 may have provided a device class code specifying a function that it claims to perform, and although the support software 127 may have specified that it supports that same function, the primary reason for arranging for both the electronic device 300 and the support software 127 to specify the same vendor and same function is to ensure that the interface software 123 is induced to select the support software 127 over any generic support software that may also be loaded onto the electronic device 100. Regardless of whether the electronic device 300 actually performs that function and regardless of whether the support software 127 actually supports that function, the primary goal is to cause the support software 127 to be selected and then executed by the processor 110.
Upon being executed by the processor 110, at least one sequence of instructions of the support software 127 causes the processor 110 to query the electronic device 300 to determine the true nature of the functions performable by the electronic device 300. In other words, the electronic device 300 is queried to determine whether or not the function specified by the device class code provided in the first identification data is really a function that the electronic device 300 performs, and to determine whether or not there are other functions that the electronic device 300 is able to perform. This query could be in the form of a request sent to the electronic device 100 to transmit further data containing one or more bit or byte values indicating the true range of functionality of the electronic device 100. Alternatively, where the function specified by the device class code provided in the first identification data is that of a mass storage device, this query could be in the form of a test for the presence of a particular file having a particular file name or other particular characteristic.
In some embodiments, the mere act of querying the electronic device 300 is treated as a signal to the electronic device 300 that sufficient support software to support greater functionality in interactions between the electronic devices 100 and 300 has been loaded onto the electronic device 100. The assumption is made that if such support software were not loaded onto the electronic device 100, then this query would not have been made. This query, therefore, is used as the trigger for the interface software 323 to take further action to enable more or different functionality than was specified by the device class code provided in the first identification data. In response to this query, the interface software 323 causes the processor to operate the interface 330 to simulate a detachment of the electronic device 300 from the electronic device 100 and then to simulate an attachment. In response to detecting through the interface 130 the apparent (although simulated) attachment of the electronic device 300 to the electronic device 100, again, the interface software 123 causes the processor 110 to again request identification data from the electronic device 300. This time, in response to this request after the simulated attachment, the software 123 causes a second identification data to be sent to the electronic device 100, and this second identification data correctly identifies both the vendor of the electronic device 300 and one or more device class codes that correctly specify the functions that the electronic device 300 is capable of performing. Upon receiving the second identification data, the interface software 123 once again selects the support software 127 to support interactions between the electronic devices 100 and 300 as a result of matching the vendors and functions specified by both the second identification data and the support software 127. With the support software 127 selected, interactions between the electronic devices 100 and 300 are enabled on the basis of the electronic device 300 being treated as being capable of all of the functions specified by the device class codes provided in the second identification data.
In other embodiments, the act of querying the electronic device 300 is expected to be responded to with an indication from the electronic device 300 that it is capable of more or different functionality than was indicated by the device class code provided in the first identification data. In response to receiving this indication, the electronic device 100 sends an additional signal to the electronic device 300 that sufficient support software to support greater functionality in interactions between the electronic devices 100 and 300 has been loaded onto the electronic device 100. This additional signal is used as the trigger for the interface software 323 to cause the simulated detachment and attachment, as well as the sending of a second identification data. This additional signal may be, and without limitation, an explicit command to perform a software detachment and attachment, a specific sequence of bus activity on the USB interconnect 200, or an access made to a data location within the electronic device 300. As a result of the simulated detach and attach, and the sending of the second identification data more correctly specifying the actual range of functionality of the electronic device 300, the support software 127 is selected and interaction between the electronic devices 100 and 300 is enabled with the electronic device 300 treated as being capable of all of those specified functions.
Regardless of what triggers the simulated detachment and attachment behaviors and the sending of a second identification data by the electronic device 300, in some embodiments, which device class codes are actually provided in the second identification data is controllable through the support software 127. In these embodiments, an opportunity is provided for either a person installing the support software 127 or for a person using the electronic devices 100 and/or 300 to select what functions of the electronic device 300 will be enabled in interactions between the electronic devices 100 and 300. There may be security reasons, corporate policy reasons or other reasons why either a user of the electronic devices 100 and/or 300, or another person, may desire to limit the kinds of functionality that will be supported in interactions between the electronic devices 100 and 300. In this case, configuration data is maintained in some form (e.g., and without limitation, in a file stored on the electronic device 100) that includes the selections of which of the functions that the electronic device 300 is capable of performing will actually be enabled in the interactions between the electronic devices 100 and 300 following the previously described simulated detachment and attachment, and sending of the second identification data. Either with a query serving as a trigger or with the sending of the additional signal, the selection of which functions are to be enabled is also sent to the electronic device 300, and in response, when the second identification data is sent to the electronic device 100, only device class codes consistent with the functions of the electronic device 300 that were selected to be enabled are provided in the second identification data.
Controlling which device class codes are provided in the second identification data in this way prevents the interface software 123 from ever searching for support software that supports the undesired functions. This may prove advantageous by allowing the provision of more limited variations of the support software 127, with some of those variations supporting only the desired functions, and making it possible for one of these more limited variations to be loaded onto the electronic device 100 in place of a fuller function version of the support software 127. Since the interface software 123 will only seek to match the functions specified by the device class codes provided in the second identification data with support software needed to support those functions, a more limited variation of the support software 127 will still be selected by the interface software 123 over whatever pieces of generic support software may be loaded on the electronic device 100, regardless of how much more functionality those pieces of generic support software may support.
To further illustrate this enabling of various functions of the electronic device 300 in interactions between the electronic devices 100 and 300, examples where the electronic device 100 is a typical computer system and where the electronic device 300 is either a PDA or a multifunction printer will now be presented. Where the electronic device 300 is a PDA, the electronic device 300 may be capable of storing various pieces of information including, but not limited to, an address book, calendar, spreadsheets, documents and pictures. Furthermore, as a PDA, the electronic device 300 may also be capable of playing music, engaging in wireless communications with the internet or other nearby electronic devices, tuning in radio or TV stations, or receiving GPS signals to provide a user with information concerning current location. When attached to another electronic device, such as the electronic device 100, the electronic device 300 may be capable of synchronizing addresses and scheduling data with the electronic device 100, and may be capable of uploading and/or downloading maps with GPS coordinates and/or music files for entertainment. Where the electronic device 300 is a multifunction printer, the electronic device 300 may be capable of scanning pages to a computer or network-attached storage device, sending and receiving faxes (perhaps including network faxing), making copies and printing documents received from a computer. Furthermore, as a multifunction printer, the electronic device 300 may also be capable of faxing documents transmitted to it from a computer, converting documents between electronic file formats, exchanging email addresses and/or phone numbers by which electronic documents are exchanged, or uploading or downloading fonts or color correction algorithms.
Upon attachment of the electronic device 300 to the electronic device 100, the electronic device 100 requests identification data from the electronic device 300. As previously discussed, software support for all the functions of either the PDA or multifunction printer variations of the electronic device 300 may not have been loaded onto the electronic device 100. Therefore, to enable at least some form of interaction between the electronic devices 100 and 300, the PDA and multifunction printer variants may send identification data that correctly specifies their vendors, but which may provide only the device class code of a mass storage device. It may be that only one or the other or neither of the PDA or multifunction printer variants of the electronic device 300 actually perform the mass storage device function when attached to the electronic device 100, but the primary reason for specifying the mass storage device function is that as a result of earlier-discussed trends, the mass storage device function is widely supported with support software tending to already be loaded onto typical computer systems. It should be noted that there are other widely supported functions, such as human interface devices or printing devices, for which a device class code could be provided in the first identification data in lieu of the device class code for mass storage devices. The use of a device class code for mass storage devices is meant only to facilitate discussion in this example, and should not be taken as limiting.
If the electronic device 100 has the generic support software 126 loaded thereon that supports the mass storage device function without regard to vendor, but not the vendor-specific support software 127 from the vendors of either the PDA or multifunction printer variants of the electronic device 300 loaded onto the electronic device 100, then the interface software 123 will cause the processor 110 to choose the support software 126 to provide support for interactions between the electronic devices 100 and 300. As a result, a user of the electronic device 100 will be able to treat each of the PDA and multifunction printer variants of the electronic device 300 as a storage device onto which they may store and retrieve data from the electronic device 100, provided that each of the PDA and multifunction printer variants actually supports the mass storage, device function. It is possible that this level of functionality may be sufficient for the needs of a user, at least at that time, inasmuch as the user may simply have been seeking to load some music onto the PDA variant of the electronic device 300 or to update the fonts used by the multifunction printer variant of the electronic device 300. However, to make use of the PDA variant as an FM tuner to receive music to be played on speakers attached to the electronic device 100, or to make use of the multifunction printer variant as a scanner to scan pictures into the electronic device 100, additional support software beyond the support software 126 may well be needed. Without loading vendor-specific support software intended to support either of these variants of the electronic devices 300, no additional functionality in interactions between the electronic devices 100 and 300 will be enabled.
If the electronic device 100 has vendor specific support software 127 loaded thereon that is specific to the vendors of the PDA and multifunction printer variants of the electronic device 300, then the receipt of the first identification data specifying the vendor of the electronic device 300 and providing a device class code for a function that the support software 127 has also specified will induce the interface software 123 to select the support software 127. As previously stated, it may be that neither of the PDA or multifunction printer variants of the electronic device 300 actually support whatever function is specified by the device class code provided in the first identification data, but this is unimportant. The primary reason for causing the interface software 123 to select the support software 127 is because the support software 127 has a sequence of instructions that when executed by the processor 110, causes the processor 110 to carry out further operations that will further enable interactions between the electronic devices 100 and 300 in which a greater range of the functionality of the electronic device 300 can be utilized. Upon being selected and then executed, the support software 127 makes an inquiry of the electronic device 300 to determine if the electronic device 300 is capable of more or different functionality than originally indicated in the first identification data.
As previously discussed, the very act of making this inquiry may be the necessary indication to the electronic device 300 that the support software 127 is loaded onto the electronic device 100 to trigger the electronic device 300 to take further actions to make use of more of the true capabilities of the electronic device 300, or may simply result in the electronic device 300 responding with an indication of what its true capabilities are. If the latter is the case, then the electronic device 100 is caused by the support software 127 to send an additional signal to the electronic device 300 to trigger those further actions. Regardless of how the electronic device 300 is triggered to take further actions, the electronic device responds to being triggered by simulating a detachment from and then an attachment to the electronic device 100. In response to the apparent attachment, the electronic device 100 request identification data from the electronic device 300, again. This time, however, the electronic device 300 sends a second identification data in which the vendor of the electronic device is again correctly specified, but which now also provides device class codes specifying a more correct picture of the range of capabilities of the electronic device 300. Upon receipt of this second identification data, the interface software 123 again selects the support software 127, but the primary purpose in causing the support software 127 to be selected this time is to actually support the larger range of functionality specified in the second identification data in interactions between the electronic devices 100 and 300.
However, as previously discussed, there may be reasons for not enabling all of the possible functionality that either the PDA or multifunction printer variants could support when attached to the electronic device 100 with the support software 127 loaded thereon. It may be that the electronic device 100 is provided to its user by the user's employer and the employer does not want to have such functions as music being played on the electronic device 100 from radio stations received by a tuner built into the PDA variant. Or, it may be that the owner of the multifunction printer variant does not want it to have another member of his family using the multifunction printer variant to electronic documents residing on the electronic device 100 as faxes through a fax modem built into the multifunction printer variant. In each of these cases, the support software 127 may provide the facility to configure exactly what functions of the electronic device 300 will be supported when attached to the electronic device 100. The selections made whatever person employing the configuration facility are then transmitted by the support software 127 to the electronic device 300 either when the query of the capabilities of the electronic device 300 is made or when an additional signal is sent to the electronic device 300. Then, when the electronic device 300 sends the second identification data, only device class codes specifying functions that were selected through the configuration facility will be provided in the second identification data.
At 620, if vendor-specific support software specifying a vendor that matches the vendor specified in the first identification data has not been loaded onto the host, then a generic support software that supports peripheral devices of the device class that the peripheral device has claimed to be is selected and executed at 630. With such a generic support software loaded, the host interacts with the peripheral device in a manner consistent with the first identification data wherein the peripheral device is treated as being capable of performing only the function specified by the device class code provided in the first identification data.
However, at 620, if such matching vendor-specific support software has been loaded, then the vendor-specific support software is selected and executed at 640. In being executed, the vendor-specific support software specific causes a query to be made of the peripheral device to determine the full range of functionality of the peripheral device at 644. Upon determining that the full range of capabilities of the peripheral device is other than what was specified in the first identification data, the vendor-specific support software sends an indication to the peripheral device that such software has been loaded on the host at 648, thereby being available to be selected. In some embodiments, the query sent to the peripheral device at 644 may also serve as the indication sent to the peripheral device at 648, based on the assumption that no such query would be made if such vendor-specific support software were not loaded onto the host.
In response to the indication sent at 648 that the vendor-specific support software is loaded on the host, the peripheral device simulates a detachment from the host and then an attachment to the host. At 650, the host detects a simulated detachment and a simulated attachment of the peripheral device. At 652, in response to the simulated attachment of the peripheral device, the host again requests identification data from the peripheral device, and at 654, the host receives a second identification data from the peripheral device in which the peripheral device provides device class codes that more completely specify the full range of the capabilities of the peripheral device. In response to the receipt of the second identification data, the host uses the vendor identification code and/or the device class codes within the second identification data to select and execute an appropriate piece of support software at 656, and the selection made is the vendor-specific support software, since the vendor and device class codes match. At 658, the host interacts with the peripheral device in a manner consistent with the range of functionality specified by the device class codes provided in the second identification data.
However, if the host does have such vendor-specific support software loaded thereon, then the peripheral device will receive an indication from the host to that effect at 720, and in response, the peripheral device will simulate a detachment and an attachment to the host at 742. At 744, following the simulated detachment and attachment, and in response to the receipt of a new request for identification data from the host, the peripheral device sends a second identification data in which the peripheral device provides device class codes that more correctly specify the functions that the peripheral device is capable of performing, and at 744, the peripheral device now interacts with the host in a manner consistent with the second identification data.
While specific embodiments of the disclosed and claimed concept have been described in detail, it will be appreciated by those skilled in the art that various modifications and alternatives to those details could be developed in light of the overall teachings of the disclosure. Accordingly, the particular arrangements disclosed are meant to be illustrative only and not limiting as to the scope of the disclosed and claimed concept which is to be given the full breadth of the claims appended and any and all equivalents thereof.
Number | Name | Date | Kind |
---|---|---|---|
5974486 | Siddappa | Oct 1999 | A |
6813650 | Cato et al. | Nov 2004 | B1 |
6813669 | Cato et al. | Nov 2004 | B1 |
20030013434 | Rosenberg et al. | Jan 2003 | A1 |
20060053244 | Fruhauf et al. | Mar 2006 | A1 |
20060143319 | Hsu et al. | Jun 2006 | A1 |
Number | Date | Country |
---|---|---|
1 672 492 | Jun 2006 | EP |
9901820 | Jan 1999 | WO |
WO 9901820 | Jan 1999 | WO |
03012577 | Feb 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20080126573 A1 | May 2008 | US |