Gamers hate to wait, especially when facing their imminent virtual demise. When gamers press a button they want an action to occur as soon as possible, with no noticeable delays. Any perceived delays in the actions of the user's avatar are considered unacceptable. Any noticeable delay may be despised, and may be cause for selecting a different gaming system. Gamers also dislike changing the batteries in their handheld controllers. Few experiences are worse for the gamer than being on the cusp of a major victory only to have their controller battery die. Both latency and battery life can be functions of the amount of time and power involved in handling contention and collisions on a communications link between a console and a game controller.
In a conventional wired gaming system, a console may communicate with an accessory (e.g., handheld controller) using a carrier sense media access protocol that includes collision detection (CSMA/CD). The console may be able to exercise some central authority over the accessories to reduce or minimize collisions and thus to reduce or minimize latency between a button press and a corresponding action in a game. However, in a conventional wireless gaming system, the console may communicate with the accessory using a CSMA protocol with collision avoidance (CSMA/CA) instead of CSMA/CD. Communications may require contending for the opportunity to communicate. The contending may increase latency and may produce collisions. The contending may also increase the number of transmissions performed by an accessory, which may negatively affect battery life.
The amount of time and power spent contending for a communication medium may be directly related to the number of devices contending for the medium, or the number, type, or size of messages involved in contending for the medium. Latency and battery life may also be a function of what happens (e.g., handshaking, message passing) after an accessory has won a contention. The number, type, or size of messages involved in communications between the console and the accessory will affect the amount of time that elapses between a user action (e.g., button press, controller re-orientation) and a corresponding game action. The number, type, or size of messages involved in communications between the console and the accessory will also affect how much battery power is used per communication.
This Summary is provided to introduce, in a simplified form, a selection of concepts 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 to limit the scope of the claimed subject matter.
In a wireless gaming system, the amount of latency experienced and the amount of power consumed may be both functions of contention and collisions. Latency concerns the amount of time an accessory (e.g., controller, client) waits for a response from a controller (e.g., console, access point). Power consumed concerns battery usage in an accessory. Contention and collisions may both be functions of the number of communicating devices, the protocol used for communications, and the number, type, or length of messages used to communicate. Contention and collisions may impact responsiveness, yet responsiveness and reliability may define the gaming experience for a user. Example apparatus and methods therefore concern reducing latency by addressing contention and collisions in a wireless gaming system.
Contention and collisions, and thus latency, may be directly related to network utilization. Example methods and apparatus may, therefore, acquire and distribute network utilization information. The network utilization information can be used to control, for example, network selection, channel selection, and other actions. The network utilization information may be used to facilitate having independent gaming systems peacefully co-exist in close proximity to each other without causing degraded performance. The network utilization information may also be used by a console. For example, the console may use the network utilization information to determine whether or how to prioritize accessories.
Example methods and apparatus concern establishing, maintaining, managing, or terminating a wireless connection between a radio in a gaming console and a radio in a gaming accessory. The accessory may be, for example, a handheld controller. The radio in the gaming console may communicate with radios in various accessories. The radio in the accessory may communicate with the radio in the console. Example methods and apparatus may establish, maintain, manage, or terminate the connection between the radios in accordance with a protocol. The protocol may define specific messages used in the protocol, including packet structures, packet definitions, or packet field definitions. The protocol may also define the sequences by which messages are exchanged.
The accompanying drawings illustrate various example apparatus, methods, and other embodiments described herein. It will be appreciated that the illustrated element boundaries (e.g., boxes, groups of boxes, or other shapes) in the figures represent one example of the boundaries. In some examples, one element may be designed as multiple elements or multiple elements may be designed as one element. In some examples, an element shown as an internal component of another element may be implemented as an external component and vice versa. Furthermore, elements may not be drawn to scale.
In a wireless gaming system, the amount of latency experienced and the amount of power consumed may be both functions of contention and collisions. Latency concerns the amount of time an accessory (e.g., controller, client) waits for a response from a controller (e.g., console, AP). Power consumed concerns battery usage in an accessory. Contention and collisions may both be functions of the number of communicating devices, the protocol used for communications, and the number, type, or length of messages used to communicate. Collisions may be a function of the number, type, or length of messages used to communicate. In computer networking, and herein, an access point (AP), or a wireless access point (WAP), is a device that allows wireless devices to communicate in a wireless network using, for example Wi-Fi. An AP may in turn connect, for example, to a router and provide access to wired networks, to the Internet, or to other networks. In computer networking, and herein, a client is a device that communicates in the wireless network using the AP.
In one embodiment, accessory 120 has one radio that is configured to communicate with the console 110. In one embodiment, the console 110 may have two radios: one configured to communicate with the accessory 110 or other accessories, and one configured to communicate with other networks. The radio in accessory 120 may be configured to quickly find a specific console with which it wants to connect. The radios may be configured to selectively operate on different frequency bands at different modulation rates with different encryption using dynamic frequency selection.
In different embodiments, the accessory 120 may be, for example, a simple game controller used just for gameplay, a controller with a chat functionality, a controller with a stereo functionality, a controller with a display, a chat only device, a stereo only device, speakers, a remote control, or other device.
In one embodiment, contention can be reduced by reducing the likelihood that two or more devices will try to use the communication medium at the same time. The likelihood may be reduced through de-synchronization produced through distributed time division media access (TDMA). In one embodiment, the TDMA may include controlling clients to determine when they should sleep and when they should wake up so that clients that might contend for the same medium may wake up and sleep at different times and thereby become desynchronized. This approach may rely on the fact that in a CSMA/CA approach, there may only be a single frame in the network at a time. Clients are configured to sense when the media is being used and to avoid collisions. The carrier sensing, contention winning, and single frame approach facilitate de-synchronizing accessories through distributed TDMA. In one example, TDMA may be centralized and controlled by an AP. In another example, the TDMA may be distributed or decentralized with the clients being responsible for determining their time slots.
In one embodiment, after a client has won a contention, and after the client has recognized a successful completion of its communication with the console, the client may schedule its own sleep time and subsequent wakeup time. The successful completion may be associated with, for example, receiving an acknowledgement (ACK) message from the AP. Since only one client will win a contention at a time, and thus since only that client will see its successful ACK, that client may schedule a unique time to wake up, which may in turn reduce the likelihood that another client will be seeking to acquire the medium at the same time that the client wakes up. After a period of operation, clients may become desynchronized to the point where contention is reduced. De-synchronization may be enhanced by selectively controlling clients to have different properties (e.g., sleep times, back-off times, back-off interval progression). For example, a client may initially be configured to sleep at a time T for a duration of delta Δ. The Δ may be, for example, a multiple of 4 ms. Over time, to enhance de-synchronization, a client may have its Δ changed to, for example, multiples of 8 ms. The distributed TDMA includes the clients scheduling their own sleep/wakeup times rather than having sleep/wakeup controlled by the AP or other central controlling agent. Rather than adhering to centrally determined and inflexible slots, the clients determine their own slots. The client determined slots may, over time, desynchronize to the point where there is less overlap between slots. Reducing overlap reduces the likelihood that accessories will contend for the medium and thus reduces latency and power consumption.
In one embodiment, collisions can be reduced by reducing the number of messages passed between the AP and a client. Rather than passing separate pieces of information in individual communications (e.g., frames, packets, messages), each of which requires winning a contention and performing a handshake, example methods and apparatus may pass multiple pieces of information in a set of contiguous or uninterrupted communications, where the entire set may be passed after a single contention and handshake. For example, when a client wins a contention, the AP may send multiple packets to the client rather than sending just a single packet. In one embodiment, the AP may send all the packets that are pending for a client that are scheduled for delivery within a defined time period. In one embodiment, the AP may even send all packets that are pending for a client to the client during the single communication period after the client wins the contention. Additionally, the client may send multiple packets to the AP rather than sending just a single packet. In one embodiment, the client may even send all packets that are pending for the AP to the AP during the single communication period after the client wins the contention. Draining the AP or client by sending multiple packets may reduce the number of times the client needs to contend for the medium thereby reducing contention.
In one embodiment, collisions can be reduced and power consumption can be reduced by reducing the number of handshaking messages passed between the AP and a client after a contention has been won. A conventional approach may involve a four message “two way” handshake. Example methods and apparatus may engage in a three message “one-and-a-half-way” handshake where, for example, data can serve as both data and as a handshaking acknowledgement. In one embodiment, data may serve as an ACK. In another embodiment, data may be coupled to an ACK and sent after the ACK without a conventional contention delay or additional round of message exchanges, or with a smaller contention delay.
Once a client has won a contention, the client may be allocated a reserved period of time for communicating with the AP. This may allow the AP enough time to access information for the client, to prepare the information for communication to the client, and then to send the information to the client during the reserved period of time rather than forcing the AP to engage in and win another contention. This time consumed by the AP may be referred to as “turnaround delay”. In one embodiment, the reserved period of time may be controlled using the network allocation vector (NAV) function of a wireless protocol (e.g., 802.11). The NAV function facilitates a client reserving a shared medium for a period of time that exceeds the console turnaround time. By reserving a period of time, only the trigger packet may be forced to contend for the medium, subsequent packets or frames in the exchange may not need to contend.
Recall that carrier sense includes two separate functions. NAV is virtual carrier sense that is used to reserve the medium. Clear channel assessment (CCA) is a physical carrier sense that listens to energy received on the radio interface. CCA indicates a busy medium. NAV reserves the medium as busy.
In one embodiment, contention and collisions may also be reduced by more wisely selecting the network or communication channel over which a client and AP will communicate. For example, two communication channels may be available for a communication. A first communication channel may be experiencing a first (e.g., higher) level of traffic while a second communication channel may be experiencing a second (e.g., lower) level of traffic. Rather than blindly connecting to the first available channel, example methods and apparatus may analyze network or channel information to determine an appropriate channel to use for communication. In one embodiment, methods and apparatus may monitor channel utilization and provide channel utilization information in, for example, a beacon message associated with a wireless protocol. By way of illustration, a wireless protocol may involve an AP periodically sending a broadcast message (e.g., beacon). In one embodiment, channel utilization information may be provided in the broadcast message and clients may select a communication channel based, at least in part, on the channel utilization information.
Utilization concerns how busy a network is. Utilization may be measured, for example, based on the amount of air time being consumed by traffic. Air time consumption can be measured, for example, by the AP, or by individual clients. In one embodiment, the AP may track air time usage and report that air time usage in the beacon message. In another embodiment, the individual clients may monitor air time usage and provide this usage information to the AP. The AP may then aggregate client information and provide the aggregate information or information derived from the aggregate information in the beacon message.
In one embodiment, a radio in an accessory may measure the average time from the beginning of a trigger packet of a burst from a connected device to the end of the last ACK packet at the end of the burst. The average time may be computed from a plurality of burst transaction measurements. The average may be normalized by the burst duty cycle time. In one embodiment, the utilization may be measured independently for connected accessories. In one embodiment, the average utilization from different accessories may be combined to produce the overall channel utilization metric.
The capacity or utilization information may be provided in a beacon packet. In one embodiment, the beacon packet may be transmitted periodically (e.g., once every 100 ms). In one embodiment, a console radio may issue a message (e.g., probe request) to query another console to provide its capacity or utilization data. The capacity or utilization data may be returned, for example, in a probe response.
In a shared wireless gaming environment, there may be multiple APs (e.g., consoles) and multiple clients (e.g., game controllers, accessories). Consider a college dormitory where a hundred students may have their own gaming consoles and may be participating in a massively online game. Players may come and go throughout a period of time. Example methods and apparatus may selectively connect clients to different channels or networks based, at least in part, on the air time usage reported in the beacon messages. While air time usage is described, the beacon message or other broadcast message may contain information or statistics derived from air time usage or other network utilization measurements.
In one embodiment, battery life may be extended by selectively controlling how frequently a client communicates with an AP. Recall that clients may initiate communications with the AP. The client may interrogate the AP to determine whether the AP has any messages to send to the client. Conventionally, the clients may have initiated communications at a fixed interval, even if the client had nothing to communicate and even if the client had intelligence that it was likely that the AP would have nothing to send to the client. In one embodiment, methods and apparatus may control a client to selectively reduce how frequently the client initiates communications with the AP. For example, when a client doesn't have any data for the AP, or when a client doesn't have any data and is unlikely to have any data for the AP, then the client may reduce how often it initiates communications with the AP. Similarly, when a client knows that it is unlikely that the AP will have any data for the client, then the client may reduce how often it interrogates the AP for data. For example, a client may switch from sending an initiation message once every 40 ms to once every 80 ms then once every 160 ms and for even longer periods of time. Different intervals and different changes in intervals may be employed.
Some portions of the detailed descriptions that follow are presented in terms of algorithms and symbolic representations of operations on data bits within a memory. These algorithmic descriptions and representations are used by those skilled in the art to convey the substance of their work to others. An algorithm is considered to be a sequence of operations that produce a result. The operations may include creating and manipulating physical quantities that may take the form of electronic values. Creating or manipulating a physical quantity in the form of an electronic value produces a concrete, tangible, useful, real-world result.
It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, and other terms. It should be borne in mind, however, that these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, it is appreciated that throughout the description, terms including processing, computing, and determining, refer to actions and processes of a computer system, logic, processor, system-on-a-chip (SoC), or similar electronic device that manipulates and transforms data represented as physical quantities (e.g., electronic values).
Example methods may be better appreciated with reference to flow diagrams. For simplicity, the illustrated methodologies are shown and described as a series of blocks. However, the methodologies may not be limited by the order of the blocks because, in some embodiments, the blocks may occur in different orders than shown and described. Moreover, fewer than all the illustrated blocks may be required to implement an example methodology. Blocks may be combined or separated into multiple components. Furthermore, additional or alternative methodologies can employ additional, not illustrated blocks.
Method 200 includes, at 210 collecting network utilization data associated with a wireless network employed in the wireless gaming environment. In the wireless network a gaming console may function as an AP and a gaming accessory (e.g., controller, paddle) may function as a client. Once the network utilization data has been collected, method 200 may selectively control various actions as a function of the network utilization data. For example, method 200 may control a communication priority for the client, a network selection by the client, a channel selection by the client, a sleep time for the client, or a wakeup time for the client. Additional or alternative actions may be controlled as a function of the network utilization data.
In different embodiments, the network utilization data may be collected at the AP or may be collected at the client(s) and provided by the client(s) to the AP. Once the network utilization data has been collected, method 200 may include computing network utilization information from the network utilization data. In one embodiment, the network utilization information may be computed as a function of the amount of air time used by the AP or the amount of air time used by the client.
In one embodiment, method 200 may include controlling the AP to provide the network utilization data to other nodes or entities in the wireless network. For example, the AP may transmit a beacon message that provides the network utilization data or the network utilization information.
Method 200 also includes, at 220, controlling how communications are initiated between the client and the AP. In one embodiment, communications between the client and the AP may only be initiated by the client. In one embodiment, the client may initiate a communication with the AP by sending a trigger packet. The trigger packet may be, for example, a single trigger or a trigger associated with a burst. Conditions may change over time, therefore, in one embodiment method 200 may include selectively controlling the client to modify how often the client will send trigger packets to the AP. For example, the client may send trigger packets more frequently when more busy and less frequently when less busy.
Method 200 also includes, at 230, controlling the client to determine a slot time according to a distributed time division media access (TDMA) approach. A slot time refers to a period of time during which a client will be awake and may attempt to acquire the medium in the wireless network. In one embodiment, method 200 relies on a distributed TDMA approach where the client determines a next slot time for the client as a function of the completion time of a successful transmission from the client to the AP. In another embodiment, method 200 relies on a distributed TDMA approach where the client determines a next slot time for the client as a function of an access identifier associated with the client. Slot times may be computed in different ways at different times. For example, method 200 may have clients compute slot times using a first approach at a first time and then using a second approach at a second time. Conventionally, media access control associated with slot times may have eliminated the need for contention. However, in a dynamic wireless gaming environment, where accessories may be added and removed, and where slot times are being computed at the accessories, a combination of slot times and trigger packet contention may be employed.
Method 200 also includes, at 240, controlling exchanges between the client and the AP to employ packet aggregation. Packet aggregation may involve sending more than a single message or frame at a time from the client to the AP or from the AP to the client. In one embodiment, aggregation may result in the AP providing two or more downstream packets that are ready to send to the client in response to a single trigger packet from the client. The downstream packets will be sent as part of a single exchange between the AP and the client after a contention win by the client. Only the trigger packet may have to contend for the channel. In one embodiment, aggregation may result in the client providing two or more upstream packets that are ready to send to the AP in response to receiving a downstream packet from the AP. Once again, the upstream packets will be sent as part of a single exchange between the AP and the client after the contention win by the client.
In one embodiment, either an AP or a client may have multiple frame queues available for queuing frames to be transmitted. Thus, in one embodiment, the two or more downstream packets are provided from one of a plurality of frame queues in the AP. When multiple frame queues are available, example apparatus and methods may pick the packet(s) having the earliest deadline across the queues. Members of the plurality of frame queues may have different communication timing parameters. Having different communication parameters may facilitate providing the downstream packets as quickly as possible given the current operating conditions on the wireless network.
Aggregation may also involve controlling the AP to provide a data frame as an acknowledgement to a trigger packet. This facilitates reducing the number of messages exchanged. Aggregation may also involve controlling the AP to provide a data frame within a threshold time of providing an acknowledgement to a trigger packet. The threshold time may be selected to prevent a second client from winning a contention in the wireless network.
While discussing aggregation, different types of packets have been introduced. For example, trigger packets, ACK, and data packets have been introduced. In one embodiment, a wireless gaming protocol may support different types of data that are characterized by, for example, bandwidth requirements, latency requirements, reliability requirements, and other parameters. For example, a wireless gaming protocol may define controller data, command data, audio data, media data, or other types of data. Controller data may be used, for example, to send state information from the client to the AP and to send game information from the AP to the client. Command data may be used to send control and management information to or from the client. Audio data may be bi-directional and media data may be upstream or downstream data.
Method 200 also includes, at 250, controlling the client to manipulate media access control for the wireless network using a network allocation vector (NAV). In one embodiment, the NAV may be configured as a function of a turnaround delay associated with the AP. In one embodiment, the client may manipulate media access control by setting the NAV to a value that exceeds the AP turnaround delay. Since the longer NAV may produce a condition where a recently awaked client may have missed the NAV, method 200 may also include controlling the client, upon waking up, to sense the medium employed in the wireless network for a period of time exceeding the turnaround delay before beginning a contention.
Method 300 also includes, at 320, computing a first slot time for the client according to a distributed time division media access (TDMA) protocol. With the first slot time computed, the client is now ready to contend for the medium associated with the selected channel when the first slot time arrives. Upon determining that the first slot time is active, method 300 includes, at 330, having the client engage in a contention to acquire the channel. A trigger packet may then contend for the channel. In one embodiment, if the trigger packet is contending for the channel and does not gain access within, for example, one-half of the frame time (e.g., 4 ms), the trigger packet will be abandoned.
Upon determining that the contention has been completed successfully, the client may then be ready to reserve the channel and to communicate. Therefore, method 300 proceeds, at 340, to manipulate a network allocation vector (NAV) to reserve the channel for a period of time sufficient to support an uninterrupted bi-directional exchange between the client and the AP. With the channel reserved, method 300 then proceeds, at 350, to initiate the bi-directional exchange from the client to the AP. The exchange may be initiated by providing a trigger packet from the client to the AP. The bi-directional exchange may include receiving zero or more downstream packets into the client from the AP and providing zero or more upstream packets from the client to the AP.
Once the bi-directional exchange has been successfully completed, and once the client has determined that the bi-directional exchange has been successful, the client may then, at 360, compute a next slot time for the client. In one embodiment, the start of the next slot time may be based, at least in part, on when the packet is first successful at gaining the media to transmit. The client may then go to sleep until the next slot period.
Conditions in the wireless network or in the wireless networking environment may change over time. Therefore method 300 may include, at 370, selectively reconfiguring a TDMA parameter based, at least in part, on the channel utilization data. The TDMA parameter may be associated with, for example, timing, message sequencing, or other protocol related matters.
While
In one example, a method may be implemented as computer executable instructions. Thus, in one example, a computer-readable storage medium may store computer executable instructions that if executed by a machine (e.g., computer) cause the machine to perform methods described or claimed herein including methods 200 or 300. While executable instructions associated with the above methods are described as being stored on a computer-readable storage medium, it is to be appreciated that executable instructions associated with other example methods described or claimed herein may also be stored on a computer-readable storage medium. In different embodiments, the example methods described herein may be triggered in different ways. In one embodiment, a method may be triggered manually by a user. In another example, a method may be triggered automatically.
“Computer-readable storage medium”, as used herein, refers to a medium that stores instructions or data. “Computer-readable storage medium” does not refer to propagated signals, per se. A computer-readable storage medium may take forms, including, but not limited to, non-volatile media, and volatile media. Non-volatile media may include, for example, optical disks, magnetic disks, tapes, flash memory, ROM, and other media. Volatile media may include, for example, semiconductor memories, dynamic memory (e.g., dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), etc.), and other media. Common forms of a computer-readable storage medium may include, but are not limited to, a floppy disk, a flexible disk, a hard disk, a magnetic tape, other magnetic medium, an application specific integrated circuit (ASIC), a compact disk (CD), other optical medium, a random access memory (RAM), a read only memory (ROM), a memory chip or card, a memory stick, and other media from which a computer, a processor or other electronic device can read.
In one embodiment, the apparatus 500 may be a general purpose computer that has been transformed into a special purpose computer through the inclusion of the set 530 of logics. Apparatus 500 may interact with other apparatus, processes, and services through, for example, a wireless network. Apparatus 500 may interact with the other apparatus in a shared, wireless gaming environment.
The set 530 of logics may include a first logic 532 that is configured to control timing for the wireless gaming protocol. In one embodiment, the first logic 532 may be configured to control timing by provisioning a network allocation vector (NAV) to reserve an access medium associated with the wireless network for a period of time sufficient to allow a bi-directional message exchange between the AP and the client over the medium. The bi-directional message exchange may include two or more aggregated upstream frames from the client to the AP or two or more aggregated downstream frames from the AP to the client. The bi-directional message exchange may be performed after a single contention win by the client.
In one embodiment, the first logic 532 may also be configured to control timing by controlling the client to schedule a next slot time for the client. The next slot time may be selected based, at least in part, on detecting a successful completion of a current message exchange during a current slot time employed by the client.
The set 530 of logics may also include a second logic 534 that is configured to control message exchange for the wireless gaming protocol. The second logic 534 may operate by restricting message exchange initiation to the client. This means that the clients can initiate exchanges with the console and that the console will not initiate exchanges with accessories. In one embodiment, the second logic 534 may be configured to control message exchange by controlling trigger messages and the responses to trigger messages. In one embodiment, the second logic 534 may control the client to generate, periodically, a client initiated trigger message. The AP may accept the client initiated trigger message and provide a downstream message available in the AP to the client in response to the client initiated trigger message. The second logic 534 may then control the client to provide an upstream message available in the client to the AP in response to receiving the downstream message.
In one embodiment, the second logic 534 may be configured to control message exchange by controlling how the AP acknowledges a trigger or data from the client. In one embodiment, the AP may provide a data frame configured to perform an acknowledgement function. In another embodiment, the AP may provide a data frame within a threshold amount of time of providing an acknowledgement frame. In either embodiment, the message exchange will remove one step from a conventional message exchange.
In different embodiments, some processing may be performed on the apparatus 500 and some processing may be performed by an external service or apparatus. Thus, in one embodiment, apparatus 500 may also include a communication circuit that is configured to communicate with an external source to facilitate controlling timing and message exchange. In one embodiment, the first logic 532 or the second logic 534 may interact with a presentation service 560 to facilitate displaying data using different presentations for different devices.
Air time data and network utilization data may provide information about traffic on a network. Decisions may then be made based on the degree to which the network is busy. Therefore, third logic 636 may also be configured to manipulate a timing parameter in the wireless gaming protocol or a message exchange parameter in the wireless gaming protocol based, at least in part, on the medium utilization data.
It is possible that different users at different locations using different devices may access the wireless gaming protocol service 760 through different networks or interfaces. In one example, the wireless gaming protocol service 760 may be accessed by a mobile device 750. In another example, portions of wireless gaming protocol service 760 may reside on a mobile device 750. Mobile device 750 may be used, for example, as a game console or as a game accessory. As a game console, mobile device 750 may be an AP in a wireless network. As a game accessory (e.g., handheld controller), mobile device 750 may be a client in a wireless network.
Mobile device 800 can include a controller or processor 810 (e.g., signal processor, microprocessor, application specific integrated circuit (ASIC), or other control and processing logic circuitry) for performing tasks including signal coding, data processing, input/output processing, power control, or other functions. An operating system 812 can control the allocation and usage of the components 802 and support application programs 814. The application programs 814 can include mobile computing applications (e.g., email applications, calendars, contact managers, web browsers, messaging applications, games), or other computing applications.
Mobile device 800 can include memory 820. Memory 820 can include non-removable memory 822 or removable memory 824. The non-removable memory 822 can include random access memory (RAM), read only memory (ROM), flash memory, a hard disk, or other memory storage technologies. The removable memory 824 can include flash memory or a Subscriber Identity Module (SIM) card, which is well known in GSM communication systems, or other memory storage technologies, such as “smart cards.” The memory 820 can be used for storing data or code for running the operating system 812 and the applications 814. Example data can include web pages, text, images, sound files, video data, or other data sets to be sent to or received from one or more network servers or other devices via one or more wired or wireless networks. The memory 820 can be used to store a subscriber identifier, such as an International Mobile Subscriber Identity (IMSI), and an equipment identifier, such as an International Mobile Equipment Identifier (IMEI). The identifiers can be transmitted to a network server to identify users or equipment.
The mobile device 800 can support one or more input devices 830 including, but not limited to, a touchscreen 832, a microphone 834, a camera 836, a physical keyboard 838, or trackball 840. The mobile device 800 may also support output devices 850 including, but not limited to, a speaker 852 and a display 854. Other possible output devices (not shown) can include piezoelectric or other haptic output devices. Some devices can serve more than one input/output function. For example, touchscreen 832 and display 854 can be combined in a single input/output device. The input devices 830 can include a Natural User Interface (NUI). A NUI is an interface technology that enables a user to interact with a device in a “natural” manner, free from artificial constraints imposed by input devices such as mice, keyboards, remote controls, and others. Examples of NUI methods include those relying on speech recognition, touch and stylus recognition, gesture recognition (both on screen and adjacent to the screen), air gestures, head and eye tracking, voice and speech, vision, touch, gestures, and machine intelligence. Other examples of a NUI include motion gesture detection using accelerometers/gyroscopes, facial recognition, three dimensional (3D) displays, head, eye, and gaze tracking, immersive augmented reality and virtual reality systems, all of which provide a more natural interface, as well as technologies for sensing brain activity using electric field sensing electrodes (EEG and related methods). Thus, in one specific example, the operating system 812 or applications 814 can comprise speech-recognition software as part of a voice user interface that allows a user to operate the device 800 via voice commands. Further, the device 800 can include input devices and software that allow for user interaction via a user's spatial gestures, such as detecting and interpreting gestures to provide input to a gaming application.
A wireless modem 860 can be coupled to an antenna 891. In some examples, radio frequency (RF) filters are used and the processor 810 need not select an antenna configuration for a selected frequency band. The wireless modem 860 can support two-way communications between the processor 810 and external devices. The modem 860 is shown generically and can include a cellular modem for communicating with the mobile communication network 804 and/or other radio-based modems (e.g., Bluetooth 864 or Wi-Fi 862). The wireless modem 860 may be configured for communication with one or more cellular networks, such as a Global system for mobile communications (GSM) network for data and voice communications within a single cellular network, between cellular networks, or between the mobile device and a public switched telephone network (PSTN). NFC 892 facilitates having near field communications.
The mobile device 800 may include at least one input/output port 880, a power supply 882, a satellite navigation system receiver 884, such as a Global Positioning System (GPS) receiver, an accelerometer 886, or a physical connector 890, which can be a Universal Serial Bus (USB) port, IEEE 1394 (FireWire) port, RS-232 port, or other port. The illustrated components 802 are not required or all-inclusive, as other components can be deleted or added.
Mobile device 800 may include a wireless gaming protocol logic 899 that is configured to provide a functionality for the mobile device 800. For example, wireless gaming protocol logic 899 may provide a client for interacting with a service (e.g., service 760,
Example methods and apparatus concern establishing, maintaining, managing, or terminating a wireless connection between a radio in a gaming console and a radio in a gaming accessory. The accessory may be, for example, a handheld controller. The radio in the gaming console may operate as an AP in a wireless network. The radio in the accessory may operate as a client in the wireless network. Example methods and apparatus may establish, maintain, manage, or terminate the connection in accordance with a protocol. The protocol may define specific messages used in the protocol, including packet structures, packet definitions, or packet field definitions. The protocol may also define the sequences by which messages are exchanged.
A TDMA scheme involves clients having different slot times that reduce or even minimize overlap. Example methods and apparatus employ a distributed TDMA that allows clients to determine their own slots without AP co-ordination. Having clients determine their own slot times may involve having clients independently determine their slot start times. In one embodiment, clients use the time of successful transmission of their last frame plus a deadline time as the start time for their next slot time. In one embodiment, clients may also compute the start time for their next slot time as a function of their association identifier. Using the association identifier may facilitate producing different starting times for different clients. Distributed TDMA that leads to client-generated start times and non-overlapping slot times may allow clients to sleep more since the clients may not need to stay awake to receive frames from the AP. Sleeping more may reduce power consumption.
In a non-multi-user multi-input multi-output (MU-MIMO) system, distributed TDMA leverages the laws of physics that dictate that only one transmission in a shared, wireless gaming environment can be active at a time. Given this fact, only one client in contention range may successfully transmit at a given instant. The client that transmitted successfully can, therefore, determine a hopefully unique start time for a subsequent, hopefully non-overlapping slot time as a function of the successful transmission time. Since slots may overlap, trigger packets may still contend. When clients that are collaborating in the distributed TDMA compute their next start times based on their own successful transmission times, de-synchronization can occur, which may reduce contention by producing unique start times and less overlapping slot times. When a new accessory or client joins the network, another period of de-synchronization may occur. During this period clients may once again contend with each other, but over time the de-synchronization may be re-established and contention may be reduced.
In another embodiment, slot times may be determined as a function of the association identifier (AID) for a client in the network. For example, the start time for a client could be computed using:
Start time=AID/(max(AID for all clients)*slot time)
If the AP does not immediately garbage collect AIDs, then there may be stale AIDs that lead to dead air time. Therefore, in one embodiment, clients may monitor the medium to identify which clients are active and to identify the AIDs associated with the active clients. Monitoring the medium may include, for example, monitoring beacon frames for information that identifies clients that have packets buffered at the AP. Given the information in the beacon, a client may determine an active AID and use that as a rank order among active AIDs. The slot time may then be computed using:
Start time=ACTIVE AID/(max(active AID)*slot time).
Some acronyms used herein include:
ACK: acknowledgement frame
DCF: distributed co-ordination function, a fundamental MAC technique of 802.11
DIFS: Distributed interframe space=SIFS+(2*slot time)
MAC: media access control
NAV: network allocation vector
PCF: point co-ordination function
PIFS: Priority interframe space=SIFS+slot time
SIFS: short interframe space, the time between a data frame and an ACK
TDMA: time division media access
In one embodiment, clients may adapt their sleep behavior as a function of a traffic profile in the network. Adapting the sleep behavior may facilitate reducing contention between clients. With their sleep behavior adapted, clients may engage in atomic bursts of traffic to reduce contention and collisions. In one embodiment, a downlink burst may be separated from an uplink burst by an amount of time equal to SIFS+ACK. This amount of time seeks to ensure that other clients, even clients from outside the network, will not disrupt the downlink and uplink sequence of packets for a client.
Recall that clients determine when to send packets to the AP. The first packet from a client may be treated as a trigger for the AP to start de-queuing frames to the client. Unlike conventional systems, the AP will not initiate transmissions to the clients but will wait for trigger frames. The AP may still broadcast beacon messages. Clients can use different types of trigger frames. In one embodiment, a client may use a single packet trigger where the client sends one frame, which is then followed by a downlink burst from the AP and then followed by an uplink burst from the client. The burst may include multiple frames. In another embodiment, a client may use a burst trigger where the client sends an uplink burst before the AP sends a downlink burst.
Contention may negatively impact the performance of wireless networks. Thus, contention may also negatively impact shared, wireless gaming systems. Contention may lead to collisions and may lead to increased latency. Latency is generally unacceptable in real-time gaming scenarios that have deadline driven traffic. Example methods and apparatus may reduce contention through packet aggregation across a link. For example, a receiver may send a data packet immediately after sending an ACK, which may allow the receiver turned transmitter to gain access to the medium before another contender. In one embodiment, contention may be reduced by reducing the number of steps in a handshake by, for example, using data as an ACK. In one embodiment, contention may be reduced by sending a data packet after waiting a period of time equal to, for example, ACK+SIFS. Sending the data packet within an SIFS interval may allow the data packet to be treated as an ACK, which may reduce contention. In another embodiment, the data packet may be sent within the PIFS of the ACK.
In one shared, wireless gaming environment where a console acts as an AP and communicates with a number of accessories (e.g., controllers) that act as clients, contention can be undesirable. Uplink frames travelling from the accessories to the console may delay the transmission of downlink frames from the console to the accessories. Using data as an ACK (DACK) may reduce contention and thus reduce this delay.
In one embodiment, a first station may receive a data frame from a second station. The first station may then check its outgoing data frame buffer to see whether it has a data frame(s) to send back to the second station. If there is a data frame waiting or ready to be sent, the first station may send out the outgoing data frame in a manner that allows the data frame to be treated as an ACK by the second station. Using DACK facilitates reducing a conventional “two-way” handshake in, for example, 802.11, into a “one-and-a-half way” handshake. In 802.11, for the AP and client to send a downlink and uplink data frame respectively, four transmissions are required: a downlink data, an uplink ACK, an uplink data, and a downlink ACK. By using an uplink DACK, the four transmissions can be reduced to three: a downlink ACK, an uplink DACK, and a downlink ACK.
A client sends a trigger 2130. The AP acknowledges the trigger 2130 with ACK 2132. After the AP turnaround delay, the AP sends DataB 2134. The client acknowledges the DataB 2134 with ACK 2136. The AP does not then have to experience the entire AP turnaround delay because multiple frames may have been acquired during the AP turnaround delay. Therefore, after just the SIFS, the AP may send DataC 2138 which is acknowledged by ACK 2140. Since the client and the AP may engage in a bi-directional exchange, after a client turnaround delay, the client may send DataD 2142, which the AP acknowledges with ACK 2144. The client may then, after just the SIFS delay, send DataE 2146 which is acknowledged by ACK 2148. Since data can be sent after waiting just the SIFS, the data can serve as an ACK.
For example, a client may send data 2210 that is acknowledged by ACK 2212. Before the AP can send data 2214, there may be a gap 2230. Conventionally, other clients or devices may attempt to transmit during the gap 2230 produced by the turnaround delay since, from their point of view, which includes carrier sensing, the medium is not being used during the turnaround delay. If a competing client is able to acquire the medium during the gap 2230 produced by the turnaround delay, then the bidirectional semantics may be broken, leading to compromised game play. Example apparatus and methods may prevent gap jumping by reconfiguring the NAV or by having clients sense the medium for a longer time when they wake up. By preventing gap jumping, the AP may send data 2214, which is acknowledged by ACK 2216 and then the client may send data 2218 which is acknowledged by ACK 2220. A bi-directional exchange can be performed in service period 2240 because other clients did not try to jump in during gap 2230.
Example methods and apparatus may manipulate the Network Allocation Vector (NAV) in, for example, the Duration ID of the received frame. The NAV may be set to a value that may prevent other clients in the network from sending packets during the turnaround delay. For example, the NAV may over-provision the duration ID of the frame to account for the turnaround time at the receiving node.
Over-provisioning the duration ID may resolve one issue, but may introduce a second issue. For example, another node that is not part of the message exchange may be asleep and miss the NAV. This other node may wake up and try to contend and acquire the medium. To prevent this scenario, nodes may be configured to sense the medium for a longer period of time or to contend for a longer period of time. The longer period of time may be selected as a function of the turnaround delay and may be configured to prevent the other node from trying to acquire the medium during a period of time associated with the turnaround delay. Additionally, example methods and apparatus may handle missed NAV packets by having clients sleep for longer periods of time.
In one embodiment, devices (e.g., console, accessory) may have multiple frame queues configured with different contention parameters. The multiple frame queues and different contention parameters may allow devices to handle packets in the beginning or ending of a burst. This facilitates reducing turnaround time at a device by allowing a receiving device to de-queue an outgoing packet in a fastest-available approach. Additionally, example methods and apparatus may be configured to have a receiving device start de-queuing an outgoing packet as soon as possible. For example, a receiving device may be configured to start de-queuing an outgoing packet as soon as the MAC header is decoded in an incoming packet, or when the first frame is decoded in an aggregated packet, or at other times.
To reduce upstream controller packet latency, trigger packets may be treated differently by the client. When upstream packets are received from an application, if the trigger time is more than a pre-defined interval (e.g., 4 ms) from the packet arrival time, the accessory radio may transmit the packet at the next pre-defined interval time point. The accessory radio may then reset the frame time to this new reference point. By sending at a time other than the pre-defined interval, packet latency may be removed.
In one example, a longer frame time (e.g., 8 ms) is pre-empted by a shorter (e.g., 4 ms) frame time under certain conditions. In the example illustrated in
An accessory can decide when it wants to change the frequency of trigger packets. The accessory can decide to increase or reduce the frequency.
The radio in an accessory initiates communications with the console. Communication is initiated by sending an upstream trigger packet. The upstream trigger packet may or may not contain application data. The console radio receives the packet and sends downstream the packets that are buffered for that accessory. The accessory then sends further packets upstream to the console. This exchange may be referred to as a “burst.” The bursts repeat periodically. The burst interval may be changed in response to application needs, network traffic, or as a function of other criteria. For example, when a controller is not being used for gaming, but is being used for some other activity (e.g., navigation, controlling video player playback), longer response time may be acceptable.
The following includes definitions of selected terms employed herein. The definitions include various examples or forms of components that fall within the scope of a term and that may be used for implementation. The examples are not intended to be limiting. Both singular and plural forms of terms may be within the definitions.
References to “one embodiment”, “an embodiment”, “one example”, and “an example” indicate that the embodiment(s) or example(s) so described may include a particular feature, structure, characteristic, property, element, or limitation, but that not every embodiment or example necessarily includes that particular feature, structure, characteristic, property, element or limitation. Furthermore, repeated use of the phrase “in one embodiment” does not necessarily refer to the same embodiment, though it may.
“Data store”, as used herein, refers to a physical or logical entity that can store data. A data store may be, for example, a database, a table, a file, a list, a queue, a heap, a memory, a register, and other physical repository. In different examples, a data store may reside in one logical or physical entity or may be distributed between two or more logical or physical entities.
“Logic”, as used herein, includes but is not limited to hardware, firmware, software in execution on a machine, or combinations of each to perform a function(s) or an action(s), or to cause a function or action from another logic, method, or system. Logic may include a software controlled microprocessor, a discrete logic (e.g., ASIC), an analog circuit, a digital circuit, a programmed logic device, a memory device containing instructions, and other physical devices. Logic may include one or more gates, combinations of gates, or other circuit components. Where multiple logical logics are described, it may be possible to incorporate the multiple logical logics into one physical logic. Similarly, where a single logical logic is described, it may be possible to distribute that single logical logic between multiple physical logics.
To the extent that the term “includes” or “including” is employed in the detailed description or the claims, it is intended to be inclusive in a manner similar to the term “comprising” as that term is interpreted when employed as a transitional word in a claim.
To the extent that the term “or” is employed in the detailed description or claims (e.g., A or B) it is intended to mean “A or B or both”. When the Applicant intends to indicate “only A or B but not both” then the term “only A or B but not both” will be employed. Thus, use of the term “or” herein is the inclusive, and not the exclusive use. See, Bryan A. Garner, A Dictionary of Modern Legal Usage 624 (2d. Ed. 1995).
To the extent that the phrase “one of, A, B, and C” is employed herein, (e.g., a data store configured to store one of, A, B, and C) it is intended to convey the set of possibilities A, B, and C, (e.g., the data store may store only A, only B, or only C). It is not intended to require one of A, one of B, and one of C. When the applicants intend to indicate “at least one of A, at least one of B, and at least one of C”, then the phrasing “at least one of A, at least one of B, and at least one of C” will be employed.
To the extent that the phrase “one or more of, A, B, and C” is employed herein, (e.g., a data store configured to store one or more of, A, B, and C) it is intended to convey the set of possibilities A, B, C, AB, AC, BC, ABC, AA . . . A, BB . . . B, CC . . . C, AA . . . ABB . . . B, AA . . . ACC . . . C, BB . . . BCC . . . C, or AA . . . ABB . . . BCC . . . C (e.g., the data store may store only A, only B, only C, A&B, A&C, B&C, A&B&C, or other combinations thereof including multiple instances of A, B, or C). It is not intended to require one of A, one of B, and one of C. When the applicants intend to indicate “at least one of A, at least one of B, and at least one of C”, then the phrasing “at least one of A, at least one of B, and at least one of C” will be employed.
Although the subject matter has been described in language specific to structural features or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Number | Date | Country | |
---|---|---|---|
Parent | 13900487 | May 2013 | US |
Child | 15263092 | US |