A controller is a hardware component of a computing device and enables the computing device to communicate with peripheral devices, which can be externally or internally coupled to the computing device. Multiple controllers may be included in the host computing device for various types of buses, such as USB, IEEE 1394, SDIO, and the like. Typically, each controller is statically connected to certain ports provided by the computing device. Peripheral devices may connect to the host computing device through these ports. In this configuration, the port to which a peripheral device is connected determines the controller with which the peripheral device is associated.
The following presents a simplified summary of the disclosure in order to provide a basic understanding to the reader. This summary is not an extensive overview of the disclosure and it does not identify key/critical elements of the invention or delineate the scope of the invention. Its sole purpose is to present some concepts disclosed herein in a simplified form as a prelude to the more detailed description that is presented later.
The present example provides device connection routing for controllers. A computing device is configured with multiple controllers that provide connections for peripheral devices. The controllers enable the peripheral devices to interact with the computing device through a bus. Each device connection is routed to one of the multiple controllers based on one or more pre-determined factors. These factors may include load-balancing, power saving, quality of service, data flow requirements, and the like. Device connection routing may be dynamically managed to respond to changing states of the peripheral devices and the controllers. The device connection routing may be performed for controllers associated with any type of wired or wireless buses, such as Universal Serial Bus (USB), IEEE 1394, Secure Digital Input/Output (SDIO), and the like.
Many of the attendant features will be more readily appreciated as the same becomes better understood by reference to the following detailed description considered in connection with the accompanying drawings.
The present description will be better understood from the following detailed description read in light of the accompanying drawings, wherein:
Like reference numerals are used to designate like parts in the accompanying drawings.
The detailed description provided below in connection with the appended drawings is intended as a description of the present examples and is not intended to represent the only forms in which the present example may be constructed or utilized. The description sets forth the functions of the example and the sequence of steps for constructing and operating the example. However, the same or equivalent functions and sequences may be accomplished by different examples.
Although the present examples are described and illustrated herein as being implemented in a system for routing device connections for controllers, the system described is provided as an example and not a limitation. As those skilled in the art will appreciate, the present examples are suitable for application in a variety of different types of systems for routing communication links within a computing device.
In this example, system 100 is configured such that each of the controllers 131-133 is capable of being coupled to any of the devices 102-107. This example configuration enables controllers 131-133 to selectively provide connections to any of the devices 102-107 that are coupled to the computing device. For wired devices, the coupling can be performed by any physical electrically coupling mechanisms. For wireless devices, any type of wireless coupling mechanisms may be used. For example, a protocol may be used to cause a wireless device to establish a connection with a certain radio. Alternatively, a radio may be configured to operate on multiple simultaneous channels. Connection routing manager 154 is configured to monitor controllers 131-133 and devices 102-107. Connection routing manger 154 may gather various kinds of data to determine the states of the controllers 131-133 and devices 102-107. The states of the gathered data may include bandwidth requirement, availability and utilization, power usage, device type, operational states, and the like.
Connection routing manager 154 may use the gathered data to determine a device connection routing arrangement that distributes the device connections among controllers 131-133 based on one or more pre-determined factors. These factors may include bandwidth load-balancing of controllers 131-133, power saving, quality of service (QOS), data flow requirements, and the like. Also, connection routing may be performed to increase robustness, such as compensating for a failed controller, to load-balance for a new controller, or to reduce interference between devices. Connection routing manager 154 is typically controlled by a software component in the computing device. The software component may enable the user to select the factors to apply to the device connection routing.
Based on the determined routing arrangement, connection routing manager 154 sends control signals to controllers 131-133 to cause each controller to provide connections to one or more of the devices 102-107. Thus, the connections for devices 102-107 are distributed and routed among controllers 131-133 based on the pre-determined factors.
Connection routing manager 154 may be configured to dynamically determine the device connection routing arrangement, such as in response to changes in the states of devices 102-107 and controllers 131-133 or in a periodic basis. In this manner, connection routing manager 154 may optimize the device connections by taking changes in system 100 into consideration. Connection routing manager 154 may also be configured to enable a user to provide preferences for routing, such as providing the pre-determined factors, a priority associated with the factors, and the like.
Controllers 131-133 may be coupled to devices 102-107 with any wired or wireless mechanism. For example, controllers 131-133 and devices 102-107 may be coupled via wired connections, such as USB, IEEE 1394, SIDO and the like. Wired connections may be provided by the computing device with connection ports. Devices 102-107 may be coupled to controllers 131-133 by being plugged into these ports. Devices 102-107 may also be coupled via wireless connections. For example, a wireless adapter may provide connections between devices 102-107 and controllers 131-133.
Typically, controllers 131-133 are configured to maintain and control device connection states. For example, controllers 131-133 may be configured to detect devices 102-107 when they are coupled to the computing device. Controllers 131-133 may also be configured to maintain hardware schedule, such as data flow control and maintenance, and QOS. Controllers 131-133 may further be configured to maintain power states of devices 102-107. For example, controllers 131-133 may signal the device to suspend or resume activities, along with control instructions from software or hardware components in the computing device.
Example system 100 is shown in
In example system 200, connection routing manager 154 is configured to monitor controllers 131-133 and devices 102-107 and to determine a device connection routing arrangement based on pre-determined factors. Connection manager 154 is also configured to send control signals to routing module 219 to implement the routing arrangement. Thus, routing module 219 in example system 200 shown in
For example system 300, USB controllers 335-337 are configured to selectively provide connections for ports 311-314 and wireless device adapter 315 in response to control signals provided by USB routing manager 342. USB routing manager may determine a device connection routing arrangement based on factors, such as power saving, bandwidth optimization, quality of service, device requirements, and the like.
Various types of devices 301-305 may be connected by example system 300. These devices may include isochronous device 301, full speed device 302, low speed device 303, idling device 304, and wireless devices 305. Isochronous device 301 is a device that communicates time-dependent data. The time-dependent data typically includes media streams that require an isochronous transport mechanism to ensure that data is delivered in a time-dependent manner. For example, a video stream may be required to be delivered so that the stream may be available as fast as it is displayed and that the audio is synchronized with the video. Isochronous device 301 may include any type of device that processes time-dependent data, such as multimedia streaming device, video camera or recorder, audio playback device, headphone, microphone, and the like. High speed device 302 may be a device that connects with a high speed USB connection while full speed device 303 may be connecting with a full or low speed USB connection. Idling device 304 may be a device that is in a suspended state. Idling device 304 may only have limited bandwidth usage requirement but may have power requirement, such as for charging.
In operation, USB routing manager 342 monitors the states of USB controllers 335-337 and devices 301-305. Based on the information gathered from the monitoring, USB routing manager 342 determines which device should be routed to which USB controller. For example, USB routing manager 342 may load-balance the USB controllers 335-337 to ensure that the bandwidth requirements of devices 301-305 are met or are optimized. If additional bandwidth is required, USB routing manager 342 may route an isochronous device to a USB controller with no other load or with very light load. If there are more devices than USB controllers, USB routing manager 342 may at least try to keep isochronous devices to their own controller. If there are still too many devices, USB routing manager 342 may bundle an isochronous device with another device that consumes the least amount of bandwidth. A similar process may be used for bulk devices, such as storage devices.
USB routing manager 342 may also determine whether a HWA is connected. If so, USB routing manager 342 may assign the HWA to a USB controller and prevent other devices from connect to that same controller. If other USB controllers have maximized their bandwidth utilization and the USB controller for the HWA has available bandwidth, USB routing manager 342 may allow other devices to connect to that USB controller.
At block 406, the device connections are routed to the controllers based on the determined states and one or more pre-determined factors. The routing may be performed by the controllers or by a routing module. An example routing scheme will be discussed in conjunction with
At block 408, the states of the peripheral devices and the controllers are monitored. Monitoring the states enable the device connections to be dynamically routed in response to changes. At decision block 410, a determination is made whether there are changes to the states of the peripheral devices and the controllers. If so, process 400 returns to block 402, which restarts the process of identifying the coupled devices and determines the state of those devices. If there is no change, process 400 continues to monitor the peripheral devices and the controllers at block 408.
Returning to decision block 506, if power saving is not a factor, process 500 moves to block 508 where a routing arrangement to load-balance the controllers are determined. Load-balancing can be performed based on one or more pre-determined factors. In another implementation, the load-balancing may also be performed on controllers that are not powered down in block 510. An example load-balancing scheme will be discussed in conjunction with
At block 514, the states of the peripheral devices and the controllers are monitored. Monitoring the states enable the device connections to be dynamically routed in response to changes in bandwidth requirements. At decision block 516, a determination is made whether there are changes to the states of the peripheral devices and the controllers. If so, process 500 returns to block 502, which restarts the process of identifying the bandwidth requirement of each coupled device. If there is no change, process 500 continues to monitor the peripheral devices and the controllers at block 514.
Returning to decision block 604, if the aggregated bandwidth is not met, process 600 continues at block 606 where a decision is made whether a wireless device adapter, such as a HWA, is included. A wireless device adapter may require significant bandwidth because the adapter can support multiple high speed wireless devices. If a wireless adapter is not included in the coupled peripheral devices, process 600 moves to decision block 608. If a wireless adapter is included, the process goes to block 618 where the wireless device adapter is assigned to a controller that provides the required bandwidth. It is advantageous to assign a wireless device adapter to its own separate controller since the actual bandwidth usage by the adapter may increase significantly when more wireless devices are being handled by the adapter. The process then moves to decision block 608.
At decision block 608, a determination is made whether isochronous devices are included. Isochronous devices typically require bandwidth that is readily available and does not vary over time. Thus, the isochronous devices are assigned to controllers that have the required bandwidth. At block 610, the remaining devices are assigned to the controllers for the remaining bandwidth. Typically, remaining devices are first assigned to controllers that do not handle the connections for the wireless device adapter and the isochronous devices. At block 616, a routing arrangement for the devices is determined.
Depending on the exact configuration and type of computing device, memory 710 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. Additionally, computing device 700 may also have additional features/functionality. For example, computing device 700 may include multiple CPU's. The described methods may be executed in any manner by any processing unit in computing device 700. For example, the described process may be executed by both multiple CPU's in parallel.
Computing device 700 may also include additional storage (removable and/or non-removable) including, but not limited to, magnetic or optical disks or tape. Such additional storage is illustrated in
Computing device 700 may also contain communications device(s) 740 that allow the device to communicate with other devices. Communications device(s) 740 is an example of communication media. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. The term computer-readable media as used herein includes both computer storage media and communication media. The described methods may be encoded in any computer-readable media in any form, such as data, computer-executable instructions, and the like.
Computing device 700 may also have input device(s) 735 such as keyboard, mouse, pen, voice input device, touch input device, etc. Output device(s) 730 such as a display, speakers, printer, etc. may also be included. All these devices are well know in the art and need not be discussed at length.
Those skilled in the art will realize that storage devices utilized to store program instructions can be distributed across a network. For example a remote computer may store an example of the process described as software. A local or terminal computer may access the remote computer and download a part or all of the software to run the program. Alternatively the local computer may download pieces of the software as needed, or distributively process by executing some software instructions at the local terminal and some at the remote computer (or computer network). Those skilled in the art will also realize that by utilizing conventional techniques known to those skilled in the art that all, or a portion of the software instructions may be carried out by a dedicated circuit, such as a DSP, programmable logic array, or the like.
This application claims priority to and is a continuation of co-pending U.S. patent application Ser. No. 11/276,443 entitled “Device Connection Routing for Controller” and filed Feb. 28, 2006, which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 11276443 | Feb 2006 | US |
Child | 13150379 | US |