1. Field of the Invention
The present invention relates generally to methods and systems for synchronous execution of commands across a communication link. More particularly, the invention relates to methods and systems for synchronously executing commands across a Mobile Display Digital Interface (MDDI) link.
2. Background of the Invention
In the field of interconnect technologies, demand for ever increasing data rates, especially as related to video presentations, continues to grow.
The Mobile Display Digital Interface (MDDI) is a cost-effective, low power consumption, transfer mechanism that enables very-high-speed data transfer over a short-range communication link between a host and a client. MDDI requires a minimum of just four wires plus power for bi-directional data transfer that delivers a maximum bandwidth of up to 3.2 Gbits per second.
In one application, MDDI increases reliability and decreases power consumption in clamshell phones by significantly reducing the number of wires that run across a handset's hinge to interconnect the digital baseband controller with an LCD display and/or a camera. This reduction of wires also allows handset manufacturers to lower development costs by simplifying clamshell or sliding handset designs.
Typical MDDI interconnections include MDDI controllers connected through an MDDI link, with one controller being the MDDI link host and the other controller being the MDDI link client. In linking a baseband processor to a device, such as a camera module, an interface is also generally used to relay commands from the processor to the device. Pathfinder, for example, is a device interface developed by Qualcomm Incorporated having an integrated MDDI host core that can be used to interface a baseband processor (with an MDDI client core) and a device, such as a camera, through MDDI.
Commands sent by a baseband processor through MDDI generally require no synchronization. However, in controlling a camera, for example, certain commands by the baseband processor require precise synchronous execution at the camera. For example, flash synchronization is required for the firing of the flash to exactly coincide with the opening of the camera shutter. Typically however, messages sent by the baseband processor through the MDDI link incur delays that depend on the usage of the link, and which cannot be accurately estimated. Accordingly, synchronizing the commands at the processor while attempting to compensate for the delays through the link is not a dependable solution for achieving synchronization at the camera.
What is needed therefore are methods and systems to synchronize the execution of commands transmitted by a baseband processor to a device, such as a camera, through MDDI.
The present invention relates generally to methods and systems for synchronous execution of commands across a communication link. More particularly, the invention relates to methods and systems for synchronously executing commands across a Mobile Display Digital Interface (MDDI) link.
In one aspect, a method for synchronously executing a plurality of commands generated by a first module and executed at a second module, wherein the first and second modules communicate through a communication link, is provided. The method includes generating the commands at the first module, transmitting the commands through the link to the second module, and associating the execution time of the commands with an independent event at the second module. When the independent event is detected, the commands are executed synchronously at the second module.
In another aspect, the method described above can be specifically applied to the case of a baseband processor controlling a camera through a camera module interface, wherein the baseband processor and the camera module interface are connected through an MDDI link. An example of a baseband Mobile Station Modem (MSM) processor controlling a camera through a Pathfinder camera module interface is described. Specific built-in mechanisms within the camera module interface that enable flexible implementation of the above described method are also provided.
Further embodiments, features, and advantages of the present invention, as well as the structure and operation of the various embodiments of the present invention, are described in detail below with reference to the accompanying drawings.
The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate the present invention and, together with the description, further serve to explain the principles of the invention and to enable a person skilled in the pertinent art to make and use the invention.
The present invention will be described with reference to the accompanying drawings. The drawing in which an element first appears is typically indicated by the leftmost digit(s) in the corresponding reference number.
This specification discloses one or more embodiments that incorporate the features of this invention. The disclosed embodiment(s) merely exemplify the invention. The scope of the invention is not limited to the disclosed embodiment(s). The invention is defined by the claims appended hereto.
The embodiment(s) described, and references in the specification to “one embodiment”, “an embodiment”, “an example embodiment”, etc., indicate that the embodiment(s) described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
Embodiments of the invention may be implemented in hardware, firmware, software, or any combination thereof. Embodiments of the invention may also be implemented as instructions stored on a machine-readable medium, which may be read and executed by one or more processors. A machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computing device). For example, a machine-readable medium may include read only memory (ROM); random access memory (RAM); magnetic disk storage media; optical storage media; flash memory devices; electrical, optical, acoustical or other forms of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.), and others. Further, firmware, software, routines, instructions may be described herein as performing certain actions. However, it should be appreciated that such descriptions are merely for convenience and that such actions in fact result from computing devices, processors, controllers, or other devices executing the firmware, software, routines, instructions, etc.
Mobile Display Digital Interface (MDDI)
The Mobile Display Digital Interface (MDDI) is a cost-effective, low power consumption, transfer mechanism that enables very-high-speed serial data transfer over a short-range communication link between a host and a client.
In the following, examples of MDDI will be presented with respect to a camera module contained in an upper clamshell of a mobile phone. However, it would be apparent to persons skilled in the relevant art(s) that any module having functionally equivalent features to the camera module could be readily substituted and used in embodiments of this invention.
Further, according to embodiments of the invention, an MDDI host may comprise one of several types of devices that can benefit from using the present invention. For example, the host could be a portable computer in the form of a handheld, laptop, or similar mobile computing device. It could also be a Personal Data Assistant (PDA), a paging device, or one of many wireless telephones or modems. Alternatively, the host could be a portable entertainment or presentation device such as a portable DVD or CD player, or a game playing device. Furthermore, the host can reside as a host device or control element in a variety of other widely used or planned commercial products for which a high speed communication link is desired with a client. For example, a host could be used to transfer data at high rates from a video recording device to a storage based client for improved response, or to a high resolution larger screen for presentations. An appliance such as a refrigerator that incorporates an onboard inventory or computing system and/or Bluetooth connections to other household devices, can have improved display capabilities when operating in an internet or Bluetooth connected mode, or have reduced wiring needs for in-the-door displays (a client) and keypads or scanners (client) while the electronic computer or control systems (host) reside elsewhere in the cabinet. In general, those skilled in the art will appreciate the wide variety of modem electronic devices and appliances that may benefit from the use of this interface, as well as the ability to retrofit older devices with higher data rate transport of information utilizing limited numbers of conductors available in either newly added or existing connectors or cables. At the same time, an MDDI client may comprise a variety of devices useful for presenting information to an end user, or presenting information from a user to the host. For example, a micro-display incorporated in goggles or glasses, a projection device built into a hat or helmet, a small screen or even holographic element built into a vehicle, such as in a window or windshield, or various speaker, headphone, or sound systems for presenting high quality sound or music. Other presentation devices include projectors or projection devices used to present information for meetings, or for movies and television images. Another example would be the use of touch pads or sensitive devices, voice recognition input devices, security scanners, and so forth that may be called upon to transfer a significant amount of information from a device or system user with little actual “input” other than touch or sound from the user. In addition, docking stations for computers and car kits or desk-top kits and holders for wireless telephones may act as interface devices to end users or to other devices and equipment, and employ either clients (output or input devices such as mice) or hosts to assist in the transfer of data, especially where high speed networks are involved. However, those skilled in the art will readily recognize that the present invention is not limited to these devices, there being many other devices on the market, and proposed for use, that are intended to provide end users with high quality images and sound, either in terms of storage and transport or in terms of presentation at playback. The present invention is useful in increasing the data throughput between various elements or devices to accommodate the high data rates needed for realizing the desired user experience.
Peripheral device 180 can include, but is not limited to, a camera, a bar code reader, an image scanner, an audio device, and a sensor. In general peripheral 180 can include any type of audio, video or image capture and display device in which digital presentation data is exchanged between a peripheral and a processing unit. Peripheral 180 includes control blocks 190. When peripheral 180 is a camera, for example, control blocks 190 can include, but are not limited to lens control, flash or white LED control and shutter control. Digital presentation data can include digital data representing audio, image and multimedia data.
Digital data interface device 100 transfers digital presentation data at a high rate over a communication link 105. In one example, an MDDI communication link can be used which supports bi-directional data transfer with a maximum bandwidth of 3.2 Gbits per second. Other high rates of data transfer that are higher or lower than this example rate can be supported depending on the communications link. Digital data interface device 100 includes a message interpreter module 110, a content module 120, a control module 130 and a link controller 140.
Link controller 140, which is located within digital data interface 100, and link controller 170, which is located within digital device 150 establish communication link 105. Link controller 140 and link controller 170 may be MDDI link controllers.
The Video Electronics Standards Association (“VESA”) MDDI Standard, which is incorporated herein by reference in its entirety, describes the requirements of a high-speed digital packet interface that lets portable devices transport digital images from small portable devices to larger external displays. MDDI applies a miniature connector system and thin flexible cable ideal for linking portable computing, communications and entertainment devices to emerging products such as wearable micro displays. It also includes information on how to simplify connections between host processors and a display device, in order to reduce the cost and increase the reliability of these connections. Link controllers 140 and 170 establish communication path 105 based on the VESA MDDI Standard.
U.S. Pat. No. 6,760,772, entitled Generating and Implementing a Communication Protocol and Interface for High Data Rate Signal Transfer, issued to Zou et al. on Jul. 6, 2004 ('772 Patent”) describes a data interface for transferring digital data between a host and a client over a communication path using packet structures linked together to form a communication protocol for presentation data. Embodiments of the invention taught in the '772 Patent are directed to an MDDI interface. The signal protocol is used by link controllers, such as link controllers 140 and 170, configured to generate, transmit, and receive packets forming the communications protocol, and to form digital data into one or more types of data packets, with at least one residing in the host device and being coupled to the client through a communications path, such as communications path 105.
The interface provides a cost-effective, low power, bi-directional, high-speed data transfer mechanism over a short-range “serial” type data link, which lends itself to implementation with miniature connectors and thin flexible cables. An embodiment of link controllers 140 and 170 establishes communication path 105 based on the teachings of the '772 Patent. The '772 Patent is herein incorporated by reference in its entirety.
In other embodiments, link controllers 140 and 170 can both be a USB link controller or they both can include a combination of controllers, such as for example, an MDDI link controller and another type of link controller, such as, for example, a USB link controller. Alternatively, link controllers 140 and 170 can include a combination of controllers, such as an MDDI link controller and a single link for exchanging acknowledgement messages between digital data interface device 100 and digital device 150. Link controllers 140 and 170 additionally can support other types of interfaces, such as an Ethernet or RS-232 serial port interface. Additional interfaces can be supported as will be known by individuals skilled in the relevant arts based on the teachings herein.
Within digital data interface device 100, message interpreter module 110 receives commands from and generates response messages through communication link 105 to system controller 160, interprets the command messages, and routes the information content of the commands to an appropriate module within digital data interface device 100.
Content module 120 receives data from peripheral device 180, stores the data and transfers the data to system controller 160 through communication link 105.
Control module 130 receives information from message interpreter 130, and routes information to control blocks 190 of peripheral device 180. Control module 130 can also receive information from control blocks 190 and routes the information to the message interpreter module 110.
Still referring to
An MDDI link 112 connects LCD module 116 to MSM 104. In the example of
MSM to Camera Module Interface Communication
A camera module 208 is connected through one or more interfaces to camera module interface 118. Camera module interface 118, thus, provides an interface between the baseband MSM processor and the camera module. For example, camera module interface 118 may be a Pathfinder camera interface developed by Qualcomm Incorporated.
Camera module interface 118 includes, in addition to MDDI host core 122, a camera message interpreter 202, a camera control block 204, and a video front end block 206. Several interfaces and data buses connect the various blocks of the camera module interface as shown in
Camera message interpreter (CMI) 202 receives data and control signals embedded into reverse Register Access Packets from the MSM through a Register Access Message Interface 210. CMI 202 decodes the received signals from the MSM, and executes the corresponding commands (register write or register read) using configuration interfaces 212 and 214 to MDDI host 122 or camera control block 204. Further, CMI 202 returns acknowledgments (for register write commands) or register values (for register read commands) through the Register Access Message Interface 210 to MDDI host core 122, which relays them to the MSM.
Camera control block (CCB) 204 provides access to camera registers to execute commands received at CMI 202. CCB 204 contains several submodules (not shown in
Video front end (VFE) block 206 receives frames from the camera 208 through a parallel interface 216, stores the frames, and then transfers the frames to the MDDI host core 122 through a frame interface 218.
As described above, communication between the MSM processor and the camera module interface 118 is done through MDDI link 110. Commands from the MSM to the camera module interface are typically encapsulated in MDDI packets at MDDI client 106, and de-encapsulated at MDDI host 122. Commands from the MSM to the camera module interface include, for example, MDDI host configuration commands, camera register access commands, and camera control commands. CMI 202 decodes commands received from the MSM based on a command ID field in the command header. The command ID also represents the value of the register base address for the register block associated with the command. Table 1 below shows some of the MSM command types received by the camera module interface:
Typically, an MSM command is 12 bytes long, and may include up to 7 bytes of register values to be written starting at a register address specified in the command. Tables 2 and 3 below show the content of shutter and flash control commands. As shown in Table 2, the shutter control command includes, for example, bytes for opening/closing the shutter, controlling the speed of the shutter, or controlling the timing of shutter operations. Similarly, the flash control command, shown in Table 3, includes, for example, bytes for controlling the intensity of the flash, the duration of the flash, or the number of pulses in a flash.
Generally, commands sent by the MSM processor require no synchronization. Certain commands, however, require precise synchronous execution at the camera as will be further discussed below.
As described above, the camera module interface serves as an interface between the MSM processor and the camera module. The CMI 202 component of camera module interface interprets commands received from the MSM, and executes these commands by writing or reading specific control registers in the camera module interface.
Lens control block 302 serves to control the zoom, focus, and shutter control mechanisms of the camera. Lens control block 302 provides a set of enable signals to an external motor driver to move the lens and open/close the shutter, for example. Alternatively, a separate shutter control block may be implemented together with a separate shutter control driver. Lens and shutter control blocks respond to values of corresponding control registers of the CCB 204. Table 4 below illustrates lens control registers associated with controlling the shutter of the camera. Typically, a mechanical shutter driver responds to values of the registers. For example, as shown in Table 4, an 8 bit register at location 0×90 controls the specific time when a shutter open command is executed. An 8 bit register at location 0×93 controls whether the shutter should be opened or closed.
Flash control block 304 serves to control a white LED/Flash of the camera. As shown in
set of enable signals to driver 306 to control the flash operations. Similar to the shutter control block, the flash control block responds to the settings of corresponding flash control registers. Table 5 below illustrates registers associated with controlling the flash of the camera. Flash control registers include, for example, registers for specifying the flash current intensity, the flash duration, or the pulse interval between pulses in a red eye reduction flash mode.
Master control port block 310 provides access to registers of the camera 208. Master control port block 310 converts control data intended for the camera into the I2C protocol (used by most CMOS and CCD camera modules) or the three-wire serial interface protocol used by some CCD sensors. Typically, master control port block 310 reads values to be sent to the camera from corresponding I2C or three-wire control registers.
Note that
Synchronous Execution of Commands Across MDDI
As described above, certain MSM commands require precise synchronous execution at the camera module interface. However, since delays through the MDDI link cannot be accurately estimated or predicted, scheduling commands at the MSM in such a way as to have them execute synchronously at the camera module cannot be depended on for precise synchronization. Accordingly, command synchronization needs to be done at the camera module. Control mechanisms are, therefore, needed at the camera module to provide for synchronous execution of two or more camera commands.
Methods and systems for synchronous execution of commands across a communication link will now be provided. It is noted that in many aspects, while some of these methods and systems will be presented using specific MDDI and/or Pathfinder examples, these methods and systems can be extended to more general contexts as can be understood by persons skilled in the art(s) based on the teachings herein. Accordingly, methods and systems of the present invention are not limited to synchronizing commands across an MDDI link nor are they limited to the context of a baseband processor controlling a camera through a camera module interface.
Step 420 includes transmitting the plurality of commands from the first module to a second module through a communication link. For example, referring to
Step 430 includes receiving the commands at the second module, and writing to registers associated with the commands. For example, referring to
Step 440 includes scheduling the execution of the commands at the second module by associating the execution thereof with an independent event at the second module. For example, referring to
Step 450 includes executing the commands when the independent event is detected at the second module. For example, the independent event may be detected through an interrupt that is triggered at the occurrence of the independent event. Note that the plurality of commands execute synchronously since their execution times have been associated with the same event. Accordingly, precise synchronous execution of a plurality of commands can be achieved across the communication link.
It is noted that the method described in
The camera module interface includes built-in mechanisms and signals that allow for the method of
One available mechanism includes EPOCH (relative to an epoch reference time of the system) interrupts that can be enabled using the camera interface block of the camera module interface. EPOCH interrupts can be scheduled to trigger the execution of commands received by the camera message interpreter block of camera module interface. Accordingly, EPOCH interrupts can be associated with multiple MSM commands to trigger the execution of these commands simultaneously.
Further, EPOCH interrupts can be programmed to trigger the execution of MSM commands based on specific signals within the camera module interface. For example, EPOCH interrupts can trigger the execution of MSM commands when specific values are received on the SYNC signals received from the camera. SYNC signals, shown in
MSM commands, further, include built-in properties that allow for very flexible execution scheduling. For example, certain MSM commands include programmable fields of desired execution time, which may be programmed to occur at specific periods of time following the occurrence of certain events within the camera module interface. For example, the shutter control command, shown in Table 2, includes a programmable field (Byte 4) to specify the number of VSYNC pulses that need to elapse between the time the command is received at the camera module interface and the time that it is executed. Similar programmable fields are also found in other MSM command to allow for very flexible scheduling of these commands.
Accordingly, using the built-in mechanisms and signals of camera module interface, multiple MSM commands can be scheduled to execute synchronously at the camera.
Process flowchart 500 begins in step 510, which includes transmitting a shutter control command through a communication link from a processor to a camera controller. Referring to
Step 520 includes transmitting a flash control command through the communication link from the processor to the camera controller. Referring to
Step 530 includes associating the shutter and flash control commands with first and second interrupts, wherein the first and second interrupts are synchronized to a common timing signal. For example, referring to
Step 540 includes triggering the first and second interrupts when the common timing signal is detected, thereby causing the shutter and flash control commands to execute synchronously. For example, EPOCH interrupts associated with the shutter and flash control commands may be triggered when a start of frame (VSYNC) signal is received at the camera module interface causing the shutter and flash commands to execute simultaneously.
In a broader context, the method of
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be apparent to persons skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention. Thus, the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
The present application claims priority to Provisional Application No. 60/630,853 entitled “MDDI Host Core Design” filed Nov. 24, 2004, Provisional Application No. 60/631,549 entitled “Mobile Display Digital Interface Host Camera Interface Device” filed Nov. 30, 2004, Provisional Application No. 60/632,825 entitled “Camera MDDI Host Device” filed Dec. 2, 2004, Provisional Application No. 60/633,071 entitled “MDDI Overview” filed Dec. 2, 2004, Provisional Application No. 60/633,084 entitled “MDDI Host Core Pad Design” filed Dec. 2, 2004, and Provisional Application No. 60/632,852 entitled “Implementation of the MDDI Host Controller” filed Dec. 2, 2004, and assigned to the assignee hereof and hereby expressly incorporated by reference herein in their entirety. The present application is also related to commonly assigned U.S. Pat. No. 6,760,772 B2, titled “Generating and Implementing a Communication Protocol and Interface for High Speed Data Transfer”, issued Jul. 6, 2004, the disclosure of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
60630853 | Nov 2004 | US | |
60631549 | Nov 2004 | US | |
60632825 | Dec 2004 | US | |
60633071 | Dec 2004 | US | |
60633084 | Dec 2004 | US | |
60632852 | Dec 2004 | US |