METHOD AND APPARATUS FOR PARALLEL EXECUTION OF CONDUITS DURING SIMULTANEOUS SYNCHRONIZATION OF DATABASES
Sharing information between a host computer system and a peripheral computer system. Conduit programs running simultaneously on the host computer system synchronize information between the two computer systems. The conduits initiate multiple time multiplexed transfers across a single communication link between the two computer systems. In general, one or more conduits can perform a non-transfer task while another conduit can simultaneously perform a transfer over the host-peripheral communication link. The conduits may be used to load software onto the peripheral computer or to exchange e-mail between the two computer systems. While one active conduit is performing a task that does not involve use of the communication link, the other simultaneously executing conduits can use the communication link to transfer records between the host and the peripheral computer system.
Latest PalmSource, Inc. Patents:
- METHOD AND SYSTEM FOR SINGLE-STEP ENABLEMENT OF TELEPHONY FUNCTIONALITY FOR A PORTABLE COMPUTER SYSTEM
- SECURITY TECHNIQUE FOR CONTROLLING ACCESS TO A NETWORK BY A WIRELESS DEVICE
- CONTENT ACCESS FROM A COMMUNICATIONS NETWORK USING A HANDHELD COMPUTER SYSTEM AND METHOD
- Efficient service registration for legacy applications in a bluetooth environment
- Method and apparatus for displaying information in a display screen region identified by permanent printing
This application is a continuation application of application Ser. No. 11/269,202, entitled “Method and Apparatus for Parallel Execution of Conduits During Simultaneous Synchronization of Databases,” filed Nov. 8, 2005, which is a continuation application of application Ser. No. 10/648,553, entitled “Method and Apparatus for Parallel Execution of Conduits During Simultaneous Synchronization of Databases,” filed Aug. 25, 2003, now U.S. Pat. No. 6,963,883, which is a continuation of application Ser. No. 09/577,208, entitled “Method and Apparatus for Parallel Execution of Conduits During Synchronization of Databases,” filed May 23, 2000, now U.S. Pat. No. 6,671,700, all assigned to the assignee of the present application. The subject matter in the above-identified co-pending and commonly owned applications is incorporated herein by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to the field of data processing systems. Specifically, the present invention relates to a method and apparatus for efficiently synchronizing information between a portable computer system and a host computer system.
2. Related Art
As the components required to build a computer system have reduced in size, new categories of computer systems have emerged. One of the new categories of computer systems is the “palmtop” computer system. A palmtop computer system is a computer that is small enough to be held in the hand of a user and can be “palm-sized.” Most palmtop computer systems are used to implement various Personal information Management (PIM) applications such as an address book, a daily organizer and electronic notepads, to name a few.
Since palmtop computer systems are very small, full-sized keyboards are generally not efficient input devices. Palmtop computers using keyboards have keyboard devices that are so small that a user cannot touch-type. Furthermore, to use a keyboard device, a user must either place the palmtop computer system down onto a flat surface, so the user can type with both hands, or the user holds the palmtop computer system with two hands and types with thumbs only.
Instead of a keyboard device, some palmtop computers utilize a touch screen and display an image of a small keyboard thereon. When a particular button is pressed or tapped, a small keyboard image is displayed on the display screen. Instead of using a keyboard device or a displayed keyboard, many palmtop computers employ a pen and a digitizer pad as an input system. The pen and digitizer pad combination works well for palmtop computers because the arrangement allows a user to hold the palmtop computer system in one hand while writing with the pen onto the digitizer pad with the other hand. Most of these pen-based palmtop computer systems provide some type of handwriting recognition system whereby the user can write words and letters on the digitizer pad with a stylus.
In addition to using keyboards, virtual keyboards and the digitizer, it has also proven convenient to exchange data between a computer system and a palmtop computer using a communication interface, such as a serial or parallel input port. Alternatively, infrared (IR) or wireless radio frequency communication may be used for the interface. A number of programs today transfer data between palmtops and personal computer systems (PCs), but they are currently limited in functionality. For instance, some programs transfer all the information from the palmtop to the PC without regard for the prior content on the PC. These programs assume that changes to that particular data are only made on the palmtop, and that the changes made on the palmtop take precedence over any changes made on the PC. As a result, any independent updates made directly on the PC will be lost.
Other programs make inefficient use of the communication link between the two computer systems. Frequently, the user may wish to synchronize several applications, such as an appointment book, an address book, and an electronic notepad application. The same program is used to synchronize all applications, but the applications are synchronized serially.
As a consequence of the inefficient use of the communication link, the synchronization process can be expensive. For example, if the communication link is via a cellular link, the user is paying a high access fee even during the time the communication link is idle. Clearly it is undesirable to have an idle communication link whenever the user pays for connection time, whether the link is cellular or otherwise.
If the user has a palmtop connected to a host computer via a serial cable, connection fees are not a severe issue; however, the lengthy synchronization time is a problem. Palmtops have many application programs which need to be synchronized and will only find more applications in the future. Programs which synchronize one application at a time force the user to wait a substantial period of time for the synchronization of all of the application programs to complete. Inconvenient synchronization can lead to users not performing synchronization as much as they should, which is a very undesirable result.
Other systems, such as those described in U.S. Pat. No. 5,727,202, U.S. Pat. No. 5,832,489, U.S. Pat. No. 5,884,323 and U.S. Pat. No. 6,000,000 allow data synchronization between a portable computer system and a desktop computer system for the exchange and updating of data. However, like the above described systems, these synchronization systems are serial and they can be time consuming and can make inefficient use of the communication link.
SUMMARY OF THE INVENTIONAccordingly, what is needed is an effective mechanism and method of synchronizing information between a palmtop computer system and a host computer system, while making efficient use of the communication link between the two computer systems. What is also needed is a cost effective system and method for synchronizing information, in particular a system with low data transmission costs. What is further needed is a method and mechanism for rapidly synchronizing all application programs between two computer systems. The present invention provides these advantages and others not specifically mentioned above but described in the sections to follow.
A method and system of sharing information between a host computer system and a peripheral computer system is disclosed. A plurality of conduit programs running simultaneously on the host computer system synchronize information between the two computer systems. The conduits initiate multiple interleaved requests to transfer information across a single communication link between the two computer systems. Thus, the conduits initiate time multiplex transfers across the single communication link. In general, one or more conduits I can perform a non-transfer task while another conduit can simultaneously perform a transfer over the host-peripheral communication link. In one embodiment, if more than one conduit initiates a request to transfer information at one time, arbitration is used to order access to the communication link. In another embodiment, the conduits synchronize records between corresponding databases on each computer system. In other embodiments, the conduits are used to load software onto the peripheral computer or to exchange e-mail between the two computer systems. While one active conduit is performing a task that does not involve use of the communication link, the other simultaneously executing conduit can be using the communication link to transfer records between the host and the palmtop.
More specifically, an embodiment of the present invention includes a method of sharing information between a host computer system and an electronic device comprising the steps of: a) establishing a communication link between the host computer system and the electronic device; b) creating a conduit program database on the host computer system, the conduit program database for storing a list of conduit programs to be executed; c) simultaneously executing a plurality of conduit programs on the host computer system, the conduit programs selected from the conduit program database; and d) the conduit programs simultaneously synchronizing information on the host computer system with associated information on the electronic device, wherein the conduit programs time multiplex information transfers over the communication link while they execute simultaneously.
In another embodiment, while a first conduit initiates transfers across the communication link, a second conduit simultaneously performs a non-transfer function. Next, the second conduit initiates a transfer while the first conduit simultaneously performs a non-transfer function. Thus, idle time on the communication link is minimized.
In the following detailed description of the present invention, a method and system of synchronizing information between two computer systems using parallel executing conduits that time multiplex information transfers over a single communication link, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be recognized by one skilled in the art that the present invention may be practiced without these specific details or with equivalents thereof. In other instances, well known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the present invention.
Notation and NomenclatureSome portions of the detailed descriptions which follow are presented in terms of procedures, steps, logic blocks, processing, and other symbolic representations of operations on data bits that can be performed on computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. A procedure, computer executed step, logic block, process, etc., is here, and generally, conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system. 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, or the like.
It should be borne in mind, however, that all of 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 as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as “processing” or “computing” or “translating” or “calculating” or “determining” or “scrolling” or “displaying” or “recognizing” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
Exemplary Palmtop Computer System PlatformImportantly, bus 54 is also coupled to a cradle 60 for receiving and initiating communication with a peripheral computer system, e.g., a palm top (“palm-sized”) portable computer system 100. Cradle 60 provides an electrical and mechanical communication interface between bus 54 (and anything coupled to bus 54) and the computer system 100 for two way communications. Computer system 100 also contains a wireless infrared communication mechanism 64 for sending and receiving information from other devices.
A radio receiver/transmitter device 240 is also shown between the mid-frame and the rear cover 245 of
Also included in computer system 100 of
Signal communication device 108, also coupled to bus 99, can be a serial port for communicating with the cradle 60. Device 108 can also include an infrared communication port.
The host (PC) computer 56 in
The synchronization software of the present invention comprises Hotsync® resident program 460, sync registry 430, and sync manager 410. In one embodiment, the sync manager has ordering program 412 for establishing the order of conduit access to the communication link 55. For example, the ordering program 412 may be an arbitrator. However, the present invention is not limited to using arbitration, as those skilled in the art will recognize that other methods exist for ordering access to the communication link 55. The host computer 56 also has communication link code 451 for external communication. The communication link 55 can be established: i) over serial communication bus 54 (
The present invention allows two or more of the conduits A-E to be active simultaneously on the computer architecture. In this way, one conduit can be performing tasks that do not require the communication link 55 while at the same time another conduit can be transferring records over the link 55. In this fashion, the link 55 can be efficiently used and synchronization can be done faster. Because multiple conduits are operable simultaneously, ordering program 412 or another ordering method may be used to order the requests for the communication link 55.
In step 1010, the sync manager 410 activates a number of conduit programs such that the programs run in parallel. In one embodiment, each conduit program synchronizes information related to one application; however, a conduit could be related to several applications in other implementations. Furthermore, the conduit programs time multiplex information transfers over the communication link 55, as is described in the following steps.
Steps 1015-1040 show a generalized version of the steps conduit B takes when synchronizing information. In steps 1045, 1050, and 1055 conduit A 421, conduit C 423, and conduit D 425 run in parallel with conduit B 422. For clarity, the similar steps taken by all conduits are not shown.
In step 1015, conduit B 422 determines whether it needs to access the communication link 55. If it does not, in step 1020, conduit B 422 performs a non-transfer operation. (E.g., an operation that does not immediately use the communication link 55, such as updating host database B 442 or comparing records that were transferred from the palmtop 100 with records on host database B 442.) These examples are for illustration, as the non-transfer function will depend on the conduit's function. For example, conduit D 425 may be for downloading software or exchanging e-mail and thus have different non-transfer functions.
If conduit B 422 does need to perform an information transfer, then, at step 1025, it calls the sync manager 410 which contains ordering program 412. It is possible that several conduits will be queued up waiting for access to the communication link 55. While a conduit is waiting for link 55 access, it can be performing non-transfer related functions. This action results in the communication link 55 being used a high percentage of the time. Ordering program 412 orders conduit access to the communication link 55. For embodiments in which the ordering program 412 uses arbitration, the present invention is well-suited to using any type of arbitration, such as round-robin, FIFO, semaphores, or lock and key, etc. Furthermore, other embodiments need not use arbitration to order access to the communication link 55. For example, each conduit may represent its request to transfer data as a bit of data. A queue of requests is maintained, which get handled one at a time.
In step 1030, conduit B has won access to the communication link 55 via arbitration or otherwise and initiates an information transfer. For example, this may be a request that the palmtop to transfer records from palmtop database B 492 which have changed since the last synchronization. It also may be a transfer of records to palmtop database 8 492 which conduit B 422 has synchronized.
In step 1035 of
In step 1205, a conduit program database is created on the host computer system 56. This list contains all of the conduit programs that will be simultaneously executed. In step 1210, a single communication link 55 is established for all conduits to use.
In step 1215, conduit B 422 is activated by the sync manager 410 and added to a list of conduits now executing. In step 1220, conduit B 422 opens host database B 442. For example, if conduit B 422 is for synchronizing a calendar application, this database contains data associated with that application on the host computer 56.
In step 1225, Conduit B 422 needs to access the communication link 55 to read proprietary information from palmtop database B 492. Because other conduits are also running at this time, conduit B 422 calls the ordering program 412 to request access to the link 55. In step 1230, conduit B 422 creates a local copy file to copy the data which is transferred from the palmtop system 100.
In step 1235, conduit 8 again calls the ordering program 412 to gain access to the communication link 55 to request the palmtop 100 to send back all new or modified records from palmtop database B 492. When these records are transferred, conduit B 422 copies them to its local copy file. Because all conduits are running in parallel, other conduits may access the communication link 55 at any time conduit B 422 is not using it. Thus, the present invention is not limited to any particular order of conduit access. For example, in step 1235, it may be advantageous to allow other conduits to have access to the link 55 while the palmtop 100 is determining which records in palmtop database B 492 need to be sent back. Thus, conduit B 422 does not necessarily receive the records from the palmtop in one consecutive stream.
In step 1240 of
In step 1250, conduit B 422 updates the host database B 442. In step 1255, conduit B 422 calls the ordering program 412 for access to the link 55 in order to settle and close palmtop database B 492. Conduit B 422 also settles and closes host database B 442.
In step 1260 conduit B's session is terminated. The complete synchronization process continues until all conduits are finished. Because they run simultaneously, the entire process generally could be done in the time it would take the slowest conduit to synchronize solo. However, in practice the complete process may take longer.
In step 1310, while conduit A 421 compares the transferred records with corresponding records on the host computer 100, records from palmtop database B 492 are transferred across the communication link 55 after ordering program 412 (e.g., an arbitrator or queue) has granted conduit B 422 access to the communication link 55.
In step 1315, after ordering program 412 has granted conduit A 421 access to the communication link 55, conduit A 421 updates records in palmtop database a 491 while conduit B 422 compares the records transferred from palmtop database B 491 with corresponding records on the host computer 56.
In step 1320, after ordering program 412 has granted conduit B 422 access to the communication link 55, conduit B 422 updates records on palmtop database B 492. This is only a simplified version of the process, and is shown to illustrate the process of interleaved transfers across the communication link 55. The present invention is well-suited to operating with any number of conduit program running simultaneously. In fact, the present invention may lead to greater gains in efficiency when there are more conduits running, as this could increase the percentage of time the communication link 55 is used.
The preferred embodiment of the present invention, a method and system of synchronizing information between two computer systems using parallel execution of conduits, is thus described. While the present invention has been described in particular embodiments, it should be appreciated that the present invention should not be construed as limited by such embodiments, but rather construed according to the below claims.
Claims
1. A system for optimizing information transfer between a first computer system and a second computer system comprising:
- a first computer system comprising a first processor coupled to a first memory, the first memory storing a plurality of conduit programs, wherein one or more of the plurality of conduit programs are each stored as a distinct collection of information and instructions executable by the first processor;
- a second computer system comprising a second processor coupled to a second memory;
- a communication link coupling the first computer system to the second computer system;
- wherein the first processor executes, in parallel, at least two conduit programs to perform non-transfer operations and information transfers over the communication link to the second computer system; and
- wherein the first processor time multiplexes the information transfers over the communication link.
Type: Application
Filed: Jul 19, 2010
Publication Date: Nov 11, 2010
Applicant: PalmSource, Inc. (Sunnyvale, CA)
Inventors: David Creemer (Palo Alto, CA), Chris Raff (San Francisco, CA)
Application Number: 12/839,370
International Classification: G06F 17/30 (20060101);