Method for preparing an energy-saving state, device for a universal serial bus, and main computer for a universal serial bus
By allowing USB devices to manage bus traffic and enter suspended states independently, the method addresses the inefficiency of existing USB power management, reducing energy consumption in both devices.
Patent Information
- Application Number
- DE102010037249
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2009-09-24
- Filing Date
- 2010-08-31
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2030-08-31
AI Technical Summary
Existing USB technologies fail to implement power saving states effectively in mobile devices connected to USB hosts, leading to increased energy consumption in both devices due to continuous bus traffic, especially in scenarios where the host computer cannot predict when the connection is no longer required.
The USB device is given the capability to request the host computer to stop bus traffic, enter a suspended state, and manage data transfer through a buffer memory, allowing it to wake up the host when necessary.
This approach reduces energy consumption in both the USB device and the host computer by enabling power-saving modes without disrupting data transfer operations.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] Embodiments of the invention generally relate to methods for preparing a power saving state, a universal serial bus (USB) device and a USB host.
[0002] US 6 622 178 B1 discloses a method and apparatus for activating a computer system in response to a stimulus from a Universal Serial Bus (USB) peripheral, provides a mechanism to To boot up a computer system or to restore it from a suspended operating mode.
[0003] US 2007 / 0 238 437 A1 discloses a method or apparatus for saving energy in a node, point, terminal or device in a wireless local area network (WLAN) or other suitable network with one or several steps to delay the forwarding of one or more data packets from a WLAN chipset to a Host processor based on information received from the WLAN chipset about whether the host processor is in is in a sleep state.
[0004] US 2008 / 0 046 608 A1 discloses that an EUSB host (Extended Universal Serial Bus) can be put into a suspend mode occurs instead of querying an EUSB device that is busy performing a memory or other operation to execute.
[0005] US 2007 / 0 005 824 A1 describes devices, systems and methods for performing suspend and Universal Serial Bus (USB) resume operations based on active communication between USB devices.
[0006] The invention is defined by the features of the independent claims. Preferred advantageous embodiments are defined by the sub-characteristics of the dependent claims.
[0007] In one embodiment, a method for preparing a power saving state is provided. The method may include sending a request from a universal serial bus (USB) device to a USB host, wherein the USB host is connected to the USB device via a USB and the Request that the USB host stop all bus traffic on the USB.
[0008] In one embodiment, the method may further comprise receiving a message from the USB host at the USB device after sending a request, where the message requests that the USB device Stop sending data on the USB.
[0009] In another embodiment, the method may further comprise sending a confirmation to the USB Main computer after receiving a message, the confirmation confirming that the USB device has completed sending of data on the USB stops.
[0010] In another embodiment, the method may further comprise receiving a configuration message from USB host at the USB device after sending a request, where the configuration message contains the USB Device configured to wake the USB host from a suspended state.
[0011] In another embodiment, the method may further comprise waking up the USB host from a Paused state after receiving a configuration message.
[0012] In another embodiment, the method may further comprise entering the USB device into a Suspended state; a collection of data, where the data is transferred from the USB device to the USB host via the USB to be transferred in a buffer memory while the USB device is in the suspended state; and waking the USB device from the suspended state when a predetermined fill level of the buffer storage is reached.
[0013] In another embodiment, a method for preparing a power saving state is provided. The method may include receiving a request from a USB device at a host computer for universal serial bus (USB), wherein the USB device is connected to the host computer, and wherein the request requests that the host computer stop all bus traffic on the USB.
[0014] In one embodiment, the method may further comprise sending a message to the USB device after receiving a request, the message requesting that the USB device stop sending data on the USB should stop.
[0015] In another embodiment, the method may further comprise receiving an acknowledgment from the USB Device at the USB host after sending a message, the confirmation confirming that the USB Device stops sending data on the USB.
[0016] In another embodiment, the method may further comprise sending a configuration message to the USB Device after receiving a request, wherein the configuration message configures the USB device to that it can wake the USB host from a suspended state.
[0017] In another embodiment, the method may further comprise stopping any bus traffic on the USB after receiving a request.
[0018] In another embodiment, a universal serial bus (USB) device is provided. Device may have
[0019] In another embodiment, the method may further comprise a USB device interface for connecting the USB device with a USB host computer via a USB; and a device transmitting unit for transmitting a Request to the USB host, where the request requests that the USB host block any bus traffic on the USB should stop.
[0020] In one embodiment, the device may further comprise a device receiving unit for receiving a message from the USB host, requesting that the USB device stop sending data to the USB should stop.
[0021] In another embodiment, the device transmitting unit may further be configured to transmit a Confirmation to the USB host, where the confirmation confirms that the USB device is sending data to the USB stops.
[0022] In another embodiment, the device may further comprise a buffer memory for collecting data, while the USB device is in a suspended state, with the data from the USB device to the USB main computer should be transferred via USB.
[0023] In another embodiment, the device receiving unit may further be configured to receive a Configuration message from the USB host, where the configuration message configures the USB device so that it can wake up the USB host from a suspended state.
[0024] In another embodiment, a universal serial bus (USB) host computer is provided. The USB Main computer may comprise a USB main computer interface for connecting the USB main computer to a USB device via a USB; and a host receiving unit for receiving a request from the USB Device, the request requesting that the USB host stop all bus traffic on the USB.
[0025] In one embodiment, the USB host may further comprise a host transmitting unit for transmitting a message to the USB device, where the message requests that the USB device stop sending data on the USB should stop.
[0026] In another embodiment, the main computer receiving unit may further be configured to receive a Acknowledgement from the USB device, where the acknowledgment confirms that the USB device is sending data to the USB stops.
[0027] In another embodiment, the main computer transmitting unit may further be configured to transmit a Configuration message to the USB device, where the configuration message configures the USB device to can wake up the USB host from a suspended state.
[0028] Embodiments of the invention are illustrated in the figures and are explained in more detail below.
[0029] Show Fig. 1 a method for preparing an energy saving state and another method for preparing an energy saving state according to embodiments of the invention in a combined flow chart; Fig. 2 shows a USB device and a USB host according to embodiments of the invention in a combined diagram; Fig. 3 (Fig. 3A, Fig. 3B) is a flowchart according to embodiments of the invention.
[0030] In the drawings, like reference numerals generally refer to the same parts. The drawings are not necessarily to scale, with emphasis instead on Generally, the emphasis is on illustrating the principles of the invention.
[0031] The following detailed description explains exemplary embodiments of the present invention. Where appropriate, it is assumed that the description of a method embodiment also describes the function of a corresponding device embodiment and vice versa. The description is not intended to be be understood in a limiting sense but is made solely for the purpose of illustrating the general principles of the invention. However, the scope of the invention is defined only by the claims and should not be limited by the following described exemplary embodiments.
[0032] In Fig. 1, a method for preparing an energy saving state and another method for Preparing a power saving state according to embodiments of the invention in a combined flowchart 100 shown.
[0033] At 110, a method for preparing a power saving state includes sending a request from a Universal Serial Bus (USB) device to a USB host, the USB host being connected to the USB Device is connected via a USB and requests that the USB host block any bus traffic on the USB.
[0034] At 120, another method for preparing a power saving state includes receiving a request from a USB device to a universal serial bus (USB) host computer, the USB device being connected to connected to the USB host via a USB and requests that the USB host remove any Bus traffic on the USB should stop.
[0035] In Fig. 2, a USB device 200 and a USB host 210 according to embodiments of the invention are shown in shown in a combined diagram.
[0036] According to one embodiment of the invention, the USB device 200 comprises a USB device interface 220 which is configured to connect the USB device 200 to the USB host computer 210 via a USB 230, and has a device sending unit 240 for sending a request to the USB host 210, wherein the Request that the USB host 210 stop all bus traffic on the USB 230.
[0037] In one embodiment, the USB device 200 further comprises a device receiving unit 250 that is configured to receive a message from the USB host 210, the message requesting that the USB Device 200 should stop sending data on the USB 230.
[0038] In one embodiment, the device transmitting unit 240 is further configured to send an acknowledgment to the USB Main computer 210, the confirmation confirming that the USB device 200 is sending data to the USB 230 stops.
[0039] In one embodiment, the USB device 200 further comprises a buffer memory 260 configured to Collect data while the USB device 200 is in a suspended state, wherein the data from the USB device 200 to the USB host computer 210 via the USB 230.
[0040] In one embodiment, the device receiving unit 250 is further configured to send a configuration message from the USB host 210, wherein the configuration message configures the USB device 200 so that it can wake up the USB host 210 from a suspended state.
[0041] According to one embodiment of the invention, the USB host 210 comprises a USB host interface 270 for connecting the USB host computer 210 to the USB device 200 via the USB 230, and has a Main computer receiving unit 280 for receiving a request from the USB device 200, wherein the Request that the USB host 210 stop all bus traffic on the USB 230.
[0042] In one embodiment, the USB host 210 further comprises a host transmitting unit 290 for transmitting a message to the USB device 200, the message requesting that the USB device 200 stop sending Stop data on the USB 230.
[0043] In one embodiment, the host receiving unit 280 is further configured to receive a confirmation from the USB device 200, wherein the confirmation confirms that the USB device 200 is sending data on the USB 230 stops.
[0044] In one embodiment, the host transmitting unit 290 is further configured to send a configuration message for USB device 200, wherein the configuration message configures the USB device 200 to receive the USB host 210 can wake up from a suspended state.
[0045] Figure 3 shows a flowchart 300 according to embodiments of the invention. Figure 3 relates to both on Fig. 3A and Fig. 3B. For convenience, the view of the flowchart 300 is horizontally an upper part (shown in Fig. 3A) and a lower part (shown in Fig. 3B). The flowchart 300 shows Events, messages and commands to Preparing for an energy saving state, entering an energy saving state and leaving an Power saving state of a USB device connected to a USB host computer via a USB connection, to represent.
[0046] When a USB device is connected to a USB host, the USB connection is active and draws power, as the USB core cannot be switched off during an active connection - this is only possible while it is in the suspended state. The USB standard provides the possibility to to stop when not in use to reduce energy consumption. However, it is always the decision of the host computer whether and when the device should be stopped. Therefore, the USB selective stop feature usually used for devices that are completely controlled by the main computer, such as scanners or printers (printing and scanning are always started from the main computer), but it is for mobile devices (phones, Modems, data cards) that continuously receive new data and forward it to the main computer In this case, the main computer cannot predict when the USB connection is no longer required, and therefore he cannot stop the device.
[0047] Until now, the selective USB suspend for modems was not used and the USB connection was always switched on. There was no way to enter a power saving mode on a mobile device, while it was connected to a main computer via USB. This leads to increased energy consumption of the mobile device (which is important because not all devices are designed to charge from USB, so the device battery is drained) and to increased energy consumption of the main computer (which is particularly relevant if the main computer is a laptop computer that also runs on batteries).
[0048] According to the USB standard specification [http: / / www.usb.org / developers / docs / usb_20_040908.zip, see [1]], a Device enters the stop state (also referred to as halted state) when the device is The main computer is the master - so it can monitor all bus traffic controls, ie it triggers a transition to the stop state by stopping the bus traffic.
[0049] According to one embodiment of the invention, the USB device is given the opportunity to decide of the USB mainframe to achieve a transition to the halt state by stopping the bus traffic to trigger.
[0050] According to one embodiment of the invention, the USB device may request the host computer to Stop bus traffic to enter selective USB stopping.
[0051] In the example shown in Fig. 3, the USB device is a mobile phone (for example, a mobile phone, for example, a cellular mobile phone) and the USB host is a personal computer (PC). Both are a USB cable. In the flowchart 300, the mobile phone is represented by its components 'EA- Services´´ (in other words input / output services) (at Infineon Technologies AG also called ´´SIO´´) 305, ´´Power Control´´ 310, ´´USB_POW´´ (USB power control component) 315 and ´´USB´´ (USB component) 320 The PC is represented by its component 'USB PC Driver' (PC) 325.
[0052] The selective stopping is triggered by the mobile device, since it determines the time to enter the Energy saving mode. While in idle mode, the mobile platform (mobile phone) can enter enter sleep mode - it only needs to be activated once for the call during the DRX cycle (cycle with discontinuous reception).
[0053] It is assumed that the mobile device (mobile phone) is ready to enter deep sleep mode. USB stack has registered a callback function, whereby the USB_POW driver is informed about the request of the ´´Power Control´´ driver to enter sleep mode. If problems occur or with drivers of a different class are expected that can prevent entry into the STOP state, it might be useful to use the feature of selective stopping only in the CDC (communication device class) ACM (abstract control model) configuration to apply.
[0054] At 330, the USB component 320 is triggered by the “power control” component 310 to enable the selective Request a stop from the PC 325.
[0055] At 335, the USB component 320 requests a selective stop from the PC 325. This is an example of sending a request from a universal serial bus (USB) device to a USB host, the USB Main computer is connected to the USB device via a USB and requests that the USB Main computer should stop any bus traffic on the USB.
[0056] At 335, the PC 325 further receives the request for selective suspend from the USB component 320. This is a Example of receiving a request from a USB device to a host computer for universal serial Bus (USB), where the USB device is connected to the USB host via a USB and the request requests that the USB host stop all bus traffic on the USB.
[0057] At 340, the PC USB multi-interface driver (PC 325), after being requested by the mobile device triggered, instructs the CDC-ACM driver (USB component 320) to stop sending data.
[0058] There are two possible scenarios: (1) If the TX buffer (transmit buffer) of the CDC-ACM driver needs to be cleared, the USB component 320 returns the stop request (request to stop sending data) at 345. At 350, one or more OFF requests are sent to the mobile device. Sending the trigger to the Entering the STOP state at 335 must be repeated. (2) If the CDC-ACM driver has no data to send, the USB component 320 confirms at 355 the STOP request (request to stop sending data) and stops sending SOFs (Framestarts) to allow the mobile device's USB HW to enter the STOP condition occurs.
[0059] At 360, the PC 325 stops the mobile device by stopping the bus traffic. At 365, the USB Stack the driver wrapper to enable sleep mode.
[0060] The entry into the STOP state at the mobile device is indicated at 370 by the power controller 310 signaled to enable power saving functionality, ie turning off USB-related Voltage domains and clocks.
[0061] Since the USB suspend / resume cycle time is quite long compared to the DRX cycle time, the USB component 320 has not been woken up for several DRX cycles. Low priority data (such as software Trace) can be buffered within the SIO 305. This continues until the buffer reaches a watermark (a predetermined fill level) is reached. At 375, SIO 305 forces a write operation, which wakes up the USB 320. This is an example of data collection where the data is transferred from the USB device to the USB host via the USB to be transferred in a buffer memory while the USB device is in the suspended state; and for waking the USB device from the suspended state when a predetermined fill level of the buffer storage is reached.
[0062] Before the PC 325 can send data again (ie resume bus traffic), it must Wake up (USB 320). This is achieved by controlling the RESUME signal from the PC (as described in the USB standard specification).
[0063] The same applies in reverse to the mobile phone (USB 320). It can wake the host computer from the STOP state using REMOTE WAKEUP (specified in its configuration descriptor). For this purpose, or the PC 325 activates the REMOTE WAKE-UP feature in the USB component 320 at 380. This is an example for sending a configuration message to the USB device after receiving a request, where the Configuration message configures the USB device to wake the USB host from a suspended state At 385, the mobile phone performs the remote wake-up of the PC 325. This is an example of the Wake up the USB host from a suspended state after receiving a configuration message.
[0064] The resume signaling is initiated by the host computer (PC 325) or a device (USB component 320) used to bring a stopped bus segment back into the active state.
[0065] After the USB connection is reconfigured (or ´´active´´), any data with low Priority (e.g. trace data) buffered in SIO 305 is sent to PC 325 at 390. After that, the USB 320 ready to go back into sleep mode when requested by the USB_POW 315.
[0066] The device-triggered USB selective suspend as described in this application performs a additional manufacturer-specific interface between the USB device and the USB driver on the main computer This interface is used by the USB device to inform the host computer when it can start the selective USB suspend procedure.
[0067] Examples of use include the following: (1) A modem (mobile phone) connected via USB: If during a packet-switched connection (active PDCP context) of the data traffic is low, UTRAN (terrestrial radio access network of a universal mobile telecommunications system) decide to use the UE (User Equipment) state (URRC state, User Equipment Radio Resource Control State) to Cell_PCH or URA_PCH. In this state, The UE will periodically enter sleep mode and wake up only for measurements and paging opportunities. However, complete power saving can only be achieved if the USB connection is also stopped. With the new interface, the USB device can now trigger the main computer to selectively suspend when changing Cell_PCH / URA_PCH, which in turn reduces power consumption. (2) A USB device is configured to continuously send voluntary AT responses, therefore the USB host does not stop the connection. With the new interface, the USB device could Inform the mainframe when such responses are not expected, and selective stopping could be activated. (3) Software development: If a software execution is tracked via the USB, a mobile Device (mobile phone, modem) without the new interface will never enter the power saving state if the USB is connected. Therefore, testing and tracking of energy saving related Software problems are not possible. With the new interface, the telephone part of the device can be periodically stopped and woken up only for DRX cycles while the USB connection is still stopped A DRX cycle is typically shorter than the time required for a USB suspend / resume cycle. cycle is quite short. Traces generated during this state can buffered in the device. If the trace buffer becomes full, the selective USB Pause mode can be exited and the collected traces can be sent to the main computer become.
[0068] According to an embodiment of the invention, any embodiment defined by any of the claims with any one or more other embodiments defined by a respective one or more of the other Claims are defined, combined.
[0069] Documents cited in this document: [1] USB specification [http: / / www.usb.org / developers / docs / usb_20_040908.zip]
Claims
1. A method for preparing an energy saving state, comprising: Sending (110) a request from a universal serial bus (USB) device (200) to a USB Main computer (210), wherein the USB main computer (210) is connected to the USB device (200) via a USB (230) and the request requests that the USB host (210) stop any bus traffic on the USB (230); entering the USB device (200) into a suspended state; Collecting data, wherein the data is transferred from the USB device (200) to the USB host computer (210) via the USB (230) are to be transferred in a buffer memory (260), while the USB device (200) is in the stopped state is located; and Waking up the USB device (200) from the suspended state when a predetermined buffer memory fill level (260) is reached.
2. The method according to claim 1, further comprising: Receiving (120) a message from the USB host (210) at the USB device (200) after sending a Request, wherein the message requests that the USB device (200) send data on the USB (230) should stop.
3. The method according to claim 2, further comprising: Sending an acknowledgment to the USB host (210) after receiving a message, the acknowledgment confirms that the USB device (200) stops sending data on the USB (230).
4. A method according to any one of claims 1 to 3, further comprising: Receiving a configuration message from the USB host (210) at the USB device (200) after sending a request, wherein the configuration message configures the USB device (200) to receive the USB Main computer (210) can wake up from a suspended state.
5. The method according to claim 4, further comprising: Waking up the USB host (210) from a suspended state after receiving a Configuration message.
6. A method for preparing an energy saving state, comprising: Receiving a request from a USB device (200) at a host computer (210) for uni serial bus (USB), wherein the USB device (200) is connected to the USB host computer (210) via a USB (230) and wherein the request requests that the USB host (210) stop any bus traffic on the USB (230) should stop; Collecting data, wherein the data is transferred from the USB device (200) to the USB host computer (210) via the USB (230) are to be transferred in a buffer memory (260), while the USB device (200) is in the stopped state wherein the USB device (200) is in a stopped state; and Waking up the USB device (200) from the suspended state when a predetermined buffer memory fill level (260) is reached.
7. The method according to claim 6, further comprising: Sending a message to the USB device (200) after receiving a request, the message requesting that the USB device (200) should stop sending data on the USB (230).
8. The method according to claim 7, further comprising: Receiving an acknowledgment from the USB device (200) at the USB host computer (210) after sending a Message, the acknowledgment confirming that the USB device (200) stops sending data on the USB (230).
9. A method according to any one of claims 6 to 8, further comprising: Sending a configuration message to the USB device (200) after receiving a request, wherein the Configuration message, the USB device (200) is configured to connect the USB host (210) from a can wake up from suspended state.
10. The method according to any one of claims 6 to 9, further comprising: Stop any bus traffic on the USB (230) after receiving a request.
11. Universal Serial Bus (USB) device (200) comprising: a USB device interface (220) for connecting the USB device (200) to a USB host computer (210) via a USB (230); and a device sending unit (240) for sending a request to the USB host computer (210), the request requests that the USB host (210) stop any bus traffic on the USB (230); wherein the USB device (200) is configured to enter a suspended state; and wherein the USB device (200) is configured to be woken up from the suspended state when a a predetermined filling level of a buffer storage (260) is reached; and wherein the buffer memory (260) is arranged to collect data, wherein the data is received from the USB device (200) to the USB main computer (210) via the USB (230) into the buffer memory (260), while the USB device (200) is in the stopped state.
12. The USB device (200) of claim 11, further comprising: a device receiving unit (250) for receiving a message from the USB host computer (210), the message requests that the USB device (200) stop sending data on the USB (230).
13. USB device (200) according to claim 11 or 12, wherein the device transmission unit (240) is further configured for sending an acknowledgment to the USB host (210), the acknowledgment confirming that the USB device (200) stops sending data on the USB (230).
14. USB device (200) according to one of claims 12 or 13, wherein the device receiving unit (250) further is arranged to receive a configuration message from the USB host computer (210), wherein the Configuration message, the USB device (200) is configured to connect the USB host (210) from a can wake up from suspended state.
15. Universal Serial Bus (USB) host computer (210), the USB host computer (210) comprising: a USB host interface (270) for connecting the USB host (210) to a USB device (200) via a USB (230); and a host receiving unit (280) for receiving a request from the USB device (200), wherein the Request that the USB host (210) stop any bus traffic on the USB (230); wherein the USB device (200) collects data, wherein the data is transmitted from the USB device (200) to the USB host (210) are to be transferred via the USB (230) into a buffer memory (260), while the USB device (200) is in a suspended state, wherein the USB device (200) is in a suspended state; and Waking up the USB device (200) from the suspended state when a predetermined buffer memory fill level (260) is reached.
16. USB host computer (210) according to claim 15, further comprising: a host sending unit (290) for sending a message to the USB device (200), the message requesting that the USB device (200) should stop sending data on the USB (200).
17. USB host computer (210) according to claim 15 or 16, wherein the host computer receiving unit (280) is further configured is for receiving an acknowledgment from the USB device (200), the acknowledgment confirming that the USB Device (200) stops sending data on the USB (230).
18. USB host computer (210) according to claim 16 or 17, wherein the host computer transmitting unit (290) is further configured for sending a configuration message to the USB device (200), wherein the configuration message the USB device (200) is configured to wake up the USB host (210) from a suspended state.
Citation Information
Patent Citations
Method and apparatus for activating a computer system in response to a stimulus from a universal serial bus peripheral
US6622178B1
Enhancements to Universal Serial Bus (USB) suspend and resume operations
US20070005824A1
Delayed host wakeup for wireless communications device
US20070238437A1
Low-Power Extended USB Flash Device Without Polling
US20080046608A1
