Embodiments are related to devices and methods for solving unstable Universal Asynchronous Receive Transmit (UART) communications between a power manager device a Universal Serial Bus (USB) bridge device.
In one embodiment, the first clock 110 may be or may comprise a ring oscillator, which is a device composed of an odd number of logical NOT gates whose output oscillates between two voltage levels, representing true and false. The NOT gates, or inverters, are attached in a chain and the output of the last inverter is fed back into the first. In one embodiment, the second clock 112 may be or comprise a phase-locked loop (PLL) oscillator. A PLL is a control system that generates an output signal whose phase is related to the phase of an input signal. A PLL comprises a variable frequency oscillator and a phase detector. The oscillator generates a periodic signal. The phase detector compares the phase of that signal with the phase of the input periodic signal and adjusts the oscillator to keep the phases matched. The output signal is brought back toward the input signal for comparison in a feedback loop and the phase difference between the input and the output is used to adjust the frequency of the variable frequency oscillator.
In one implementation, the bridge device 106 may comprise a JMS562 USB3.0 & eSATA GEN III to Dual SATA GEN III Ports Bridge chip, manufactured by JMicron Technology Corp. The device 100 may, according to one embodiment, facilitate communications between, for example, a computing device coupled to one of the USB ports 116 or eSATA ports 118 and direct access storage devices (DASDs) 122 coupled to SATA or SPI ports 118, 120.
To save power, bridge device 106 may transition to a low power mode when the device is in suspended or sleep mode or when, for example, no interface cables are plugged in to the communication ports 116, 118, 118 and/or 120. In that case, the UART 108 may be configured to run on the first clock 110, which may include the aforementioned ring oscillator. However, the ring oscillator may have an unacceptably high UART error data rate. When the UART 108 is clocked by the first clock, therefore, it may fail to communicate with the power manager in the low power mode. Therefore, the device 100 may fail to operate (e.g., boot up) reliably. The same device 100, however, may well operate with wholly acceptable error data rates when the UART 108 is clocked by a more precise clock such as second clock 112 configured as a PLL oscillator. Bridge device firmware 114 may be stored in non-volatile or non-transient memory in the form of instructions that, when executed, cause the device 100 to cause the bridge device 106 to selectively configure the UART 108 for communication using either the first clock 110 or the second clock 112.
According to one embodiment, the power manager device 104 may be configured such that, when a command is to be issued to the data storage device 102 when the bridge device firmware 114 has configured the UART 108 for communication using the first clock 110, a signal is asserted that causes the bridge device firmware 114 of the bridge device 106 to stop configuring the UART 108 for communication using the first clock 110 and to configure the UART 108 for communication using the second clock 112. In this manner, the power manager 104 may cause the bridge device to switch its UART from being clocked by a less precise first clock (e.g., a ring oscillator) to being clocked by a comparatively more precise second clock (e.g., a PLL oscillator), to ensure a substantially decreased error data rate. This substantially decreased error data rate may be ensured even when the device 100 is in a low power mode in which the UART is configured to use less power-consuming but also less precise UART clocks.
The bridge device 106 may comprise a plurality of General Purpose Input Output (GPIO) ports. According to one embodiment, the signal asserted by the power manager 104 and received by the bride device and acted upon by the bridge firmware 114 may be asserted on a selected one of the GPIO ports of the bridge device 106. In the exemplary implementation in which the bridge device comprises a JMS562 Application Specific Integrated circuit (ASIC), the power manger 104 may be configured to use the LINK_STATUS_562 GPIO line to signal the JMS562 to exit suspend or sleep mode when the power manager has a command to send to the JMS562. Upon sensing the assertion of the LINK_STATUS_562 GPIO line, the JMS562 may, according to one embodiment, stop configuring the UART 108 from being clocked by the first clock 110 and will configure the UART 108 for communication using the second clock 112, in effect, switching the UART 108 from being clocked by its internal ring oscillator to being clocked by a PLL oscillator, which is a mode of operation that provides a reliable clock for the UART communication with the power manager 104.
When the bridge device 106 is in suspend or sleep mode, it may configure the UART 108 to use the first clock 110. To cause to the bridge device to, in effect, wake up from its suspend of sleep mode and cause the UART to use the second clock 112 for communication with the power manager 104, the power manager 104 may be configured to set a selected GPIO line of the bridge device (e.g., the LINK_STATUS_562) to a logical high to signal the bridge device 106 to JMS562 to exit the suspend or sleep mode. Firmware of the power manager 104 may be configured to assert the bridge device's GPIO line upon detection of a predetermined event. According to one embodiment, such predetermined event may comprise, for example, a button press, USB cable plug or unplug event, a Thunderbolt cable plug or unplug event, DASDs turned OFF, among other possibilities. In one implementation, once the bridge device 106 has exited suspend or sleep mode and has successfully switched from using the first clock 110 to using the second clock 112 for UART clocking, the power manager 104 may send, and the bridge device 106 may receive, a first command (the “N” command, for example) and the bridge device 106 may receive all the events one at a time and perform the actions associated therewith. When there are no more events, the power manager 105 may send, and the bridge device 106 may receive, a second command (the “EON” (End of Notification) command, for example), whereupon the power manager 104 may reset the previously set GPIO line (e.g., the LINK_STATUS_562) of the bridge device to a logical low. In this state, the bridge device may continue to clock its UART using the second clock 112 for a period of time or may stop using the second clock 112 and resume clocking its UART 108 with the first clock 110 and resume its suspend or sleep mode, to conserve power or for any other purpose.
Significantly, causing the bridge device 106 to switch its UART clocking from the first clock 110 to its second clock 112 enables the power manager to reliably communicate with the bridge device 106 when the bridge device is in suspend or sleep mode, without requiring the power manager 104 to initiate iterative and time consuming training sequences in which an acceptable BAUD rate is negotiated at which the bridge device and power manager may communicate without unacceptable data error rates.
At B23, it may be determined whether a communication request (e.g., from the power manager 104) has been received. This may be determined, according to one embodiment, by monitoring the high/low status of a selected GPIO line on the bridge device 106. For example, as long as no communication request is detected (NO branch of B23), no further action need be taken. In this state, the bridge controller may continue to clock the UART 108 using the first clock 110 as it would otherwise do when in suspend or sleep mode. Alternatively, the bridge device 108 may continue to clock its UART 108 using the second clock 112 if it was previously in a normal mode (i.e., non-suspend or sleep mode) or may continue to clock its UART 108 using the second clock 112 for a period of time and switch back to clocking the UART 108 using the first clock 110 after some period of time, to conserve power.
If the power manager 104 requests communications with the bridge device 108 (YES branch of B23), it may be determined whether communication with the UART is desired, as shown at B24. If no (NO branch of B24), the method may revert back to B23. If communication with the UART is indeed desired (YES branch of B24), it may then be determined whether the UART 108 of the bridge device 106 is currently configured for communication using the first clock, as called for by B25. If not (NO branch of B25), communication through the UART may be configured using the second clock 112, as shown at B28. If, however, the UART 108 of the bridge device 106 is, in fact, configured for communication using the first clock 110 (YES branch of B25), then a signal may be asserted to (among other possible uses), disable communication with the UART using the first clock 110, as shown at B26. Communication with the UART 108 of the bridge device 106 may then be enabled using the second clock 112, as shown at B27. After having been so enabled, communications may proceed through the UART 108 that has been configured for communication using the second clock 112 (that includes a PLL oscillator, for example), as shown at B28.
According to one embodiment, the bridge device 106 referred to in
In B26, a signal may be asserted, which signal may be configured to disable communications with the UART 108 using the first clock. In one embodiment, asserting this signal may be carried out upon occurrence of a selected event. Although by no means a complete list, exemplary ones of such a selected event may include, for example, an issued command, a data storage device-related event, a cable plug or unplug-related event and/or a button press-related event. Indeed, the firmware of the power manager 104 may be configured to assert the bridge device's GPIO line upon detection of any one of these events or upon detection of another selected event.
In B27 or B28, after the UART 108 has been configured for communication using the second clock 112, a notification signal, one or more commands, and/or an end of notification signal may be sent. Thereafter, when there are no more events, the power manager 105 may send, and the bridge device 106 may receive, another end of notification command. The power manager 104 may then reset the previously set GPIO line (e.g., the LINK_STATUS_562) of the bridge device to a logical low. In this state, the bridge device may continue to clock its UART using the second clock 112 for a period of time or may stop using the second clock 112 and resume clocking its UART 108 with the first clock 110 and resume its suspend or sleep mode, to conserve power or for any other purpose.
While certain embodiments of the disclosure have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the disclosure. Indeed, the novel methods, devices and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the disclosure. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the disclosure. For example, those skilled in the art will appreciate that in various embodiments, the actual physical and logical structures may differ from those shown in the figures. Depending on the embodiment, certain steps described in the example above may be removed, others may be added. Also, the features and attributes of the specific embodiments disclosed above may be combined in different ways to form additional embodiments, all of which fall within the scope of the present disclosure. Although the present disclosure provides certain preferred embodiments and applications, other embodiments that are apparent to those of ordinary skill in the art, including embodiments which do not provide all of the features and advantages set forth herein, are also within the scope of this disclosure. Accordingly, the scope of the present disclosure is intended to be defined only by reference to the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5434996 | Bell | Jul 1995 | A |
5991844 | Khosrowpour | Nov 1999 | A |
6499054 | Hesselink et al. | Dec 2002 | B1 |
6732158 | Hesselink et al. | May 2004 | B1 |
6754839 | Wegner | Jun 2004 | B1 |
7093153 | Witek | Aug 2006 | B1 |
7120692 | Hesselink et al. | Oct 2006 | B2 |
7454443 | Ram et al. | Nov 2008 | B2 |
7467187 | Hesselink et al. | Dec 2008 | B2 |
7546353 | Hesselink et al. | Jun 2009 | B2 |
7555585 | Gupta et al. | Jun 2009 | B2 |
7587467 | Hesselink et al. | Sep 2009 | B2 |
7600036 | Hesselink et al. | Oct 2009 | B2 |
7788404 | Hesselink et al. | Aug 2010 | B2 |
7917628 | Hesselink et al. | Mar 2011 | B2 |
7934251 | Hesselink et al. | Apr 2011 | B2 |
7949564 | Hughes et al. | May 2011 | B1 |
8004791 | Szeremeta et al. | Aug 2011 | B2 |
8255661 | Karr et al. | Aug 2012 | B2 |
8285965 | Karr et al. | Oct 2012 | B2 |
8341117 | Ram et al. | Dec 2012 | B2 |
8341275 | Hesselink et al. | Dec 2012 | B1 |
8352567 | Hesselink et al. | Jan 2013 | B2 |
8526798 | Hesselink | Sep 2013 | B2 |
8631284 | Stevens | Jan 2014 | B2 |
8646054 | Karr et al. | Feb 2014 | B1 |
8661507 | Hesselink et al. | Feb 2014 | B1 |
8688797 | Hesselink et al. | Apr 2014 | B2 |
8713265 | Rutledge | Apr 2014 | B1 |
8762682 | Stevens | Jun 2014 | B1 |
8780004 | Chin | Jul 2014 | B1 |
8793374 | Hesselink et al. | Jul 2014 | B2 |
8819443 | Lin | Aug 2014 | B2 |
9342054 | White | May 2016 | B2 |
20030093702 | Luo et al. | May 2003 | A1 |
20050144195 | Hesselink et al. | Jun 2005 | A1 |
20050144200 | Hesselink et al. | Jun 2005 | A1 |
20070063776 | Okuda | Mar 2007 | A1 |
20080077818 | Rauschmayer et al. | Mar 2008 | A1 |
20080104434 | May | May 2008 | A1 |
20120036041 | Hesselink | Feb 2012 | A1 |
20130212401 | Lin | Aug 2013 | A1 |
20130266137 | Blankenbeckler et al. | Oct 2013 | A1 |
20130268749 | Blankenbeckler et al. | Oct 2013 | A1 |
20130268759 | Blankenbeckler et al. | Oct 2013 | A1 |
20130268771 | Blankenbeckler et al. | Oct 2013 | A1 |
20140095439 | Ram | Apr 2014 | A1 |
20140169921 | Carey | Jun 2014 | A1 |
20140173215 | Lin et al. | Jun 2014 | A1 |
20140281635 | Reddy | Sep 2014 | A1 |
Number | Date | Country |
---|---|---|
1134667 | Mar 2004 | EP |
Entry |
---|
Korean Intellectual Property Office, PCT International Search Report and the Written Opinion of the International Searching Authority for International Application No. PCT/US2016/068703, Apr. 21, 2017, 10 pages. |
Number | Date | Country | |
---|---|---|---|
20170185100 A1 | Jun 2017 | US |