Embodiment
Embodiment one:
It is very convenient to use the described method of present embodiment to download the method for any file from network.The user at first installs the software of making according to the described method of present embodiment own on as the PC of the network terminal.The software that the described method of present embodiment is made can use on the software operation platform of any PC, comprises Windows, Linux, Unix, Mac, OS2 or the like.When the user needs only the file that discovery needs oneself on any one webpage, choose this file, click " downloading to mobile phone " button, if at this moment mobile phone well has been connected on this PC, the file that the user selects will enter mobile phone by ten minutes smoothly.The user needn't do many operations, also need not be concerned about the various parameters and the ins and outs thereof of mobile phone, if the mobile phone that connects is more common mobile phone, user even all needn't to worry about be the mobile phone of what model or plate just can obtain the effect of being satisfied with.Institute's downloaded files can be that various forms comprises: video file, audio file, literal, animation, the tinkle of bells, contents such as mobile phone application software.On the other hand, by clicking " personal information is synchronous " button with the address list on the mobile phone, schedule, the various formatted files on note and the mobile phone are stored on the network, have the place of network can obtain these information any.Can also mobile phone with click this button when network is connected these personal information data on mobile phone or the network carried out synchronously, be about to up-to-date change transfer of data to an end of change not, the renewal that keeps these personal information data.This just is very easy to user's transmit information data between network and mobile phone, the automation that it is realized fully.Present embodiment can obtain to undergo by login " Ou Le " website: www.olebar.net.
How does present embodiment finish these work? Fig. 1 is the theory diagram of present embodiment, and the employed hardware of present embodiment comprises the mobile phone that can be connected with PC, can be the mobile phone of any brand or model.Operating system in the mobile phone can be Palm, Symbian, Window Mobile and Linux etc. or the privately owned operating system of manufacturer.Mobile phone and PC ways of connecting can be: other modes of the special setting of RS232 interface cable mode, USB interface cable mode, IEEE1394 interface cable mode, bluetooth approach, infrared mode, Wi-Fi mode, WinMax mode and some manufacturer.Certainly also need at least one the PC as internet terminal with Internet connection, the operating system in the PC can be various forms of: Windows, Linux, Unix, Mac, OS2.The software that makes up according to the described method of present embodiment has been installed on the platform of these systems.After this software has been installed, " downloading to mobile phone " and " personal information is synchronous " button can appear on browser, or " downloading to mobile phone " and " personal information is synchronous " button can appear in the shortcut of drop-down menu, right mouse button, and " downloading to mobile phone " and " personal information is synchronous " button is perhaps arranged in the webpage.The what is more important PC will be connected on the internet.Described network is the Internet that comprises local area network (LAN), regional network and various network services is provided, and also should comprise " Ou Le " website certainly.The key step of present embodiment comprises:
1) step of Qi Donging.The process that starts the transmission data has several different methods.In the present embodiment, this process of the pushbutton enable on the webpage clicking of use.Button in the present embodiment has two, one is: " downloading to mobile phone ", being specifically designed to information data in the download network in mobile phone, another is: " personal information is synchronous ", be specifically designed to stored personal information data in synchronous mobile phone and the network, that is to say the method for two kinds of startups.
When the user wants to download certain file, can choose this file, use the shortcut of " downloading to mobile phone " in the click tools hurdle or " downloading to mobile phone " button in the drop-down menu or the right mouse button button that " downloads to mobile phone " then, perhaps " downloading to mobile phone " button in the webpage requires to download this order to mobile phone to send.The process of selecting is a definite file or perhaps data attribute process, and this process is extremely important to process afterwards.Because the attribute of data has determined the path of transfer of data, has only the transmission path of the attribute ability specified data of specified data.
The user wants the personal information data in the mobile phone, for example: phone directory, schedule, task list, notes etc. are transferred on the network and store, or with on these personal information data and the network stored personal information be input into row synchronously, will click " personal information is synchronous " button earlier, can eject a dialog box after this, enumerate all items of personal information in the dialog box, for example: phone directory, schedule, task list, note or the like, this step is very important, because this is at the attribute of determining the transmission data, with the aforementioned file in download of choosing identical purpose is arranged.The user chooses the personal information data that will transmit afterwards, has also determined the attribute of information data simultaneously.
2) whether the step that mobile phone is connected on the PC and type of cell phone is judged is arranged.This process is complicated, has many kinds of methods to finish.Can judge formerly whether mobile phone is connected on the PC, what judge connection again is any mobile phone.Perhaps provide mobile phone model, what connected mode obtains this type mobile phone by mobile phone model should be connected with PC with, judges that by checking this kind connected mode hand does not have mobile phone to be connected on the PC.Also can judge whether also to judge the model that is connected the mobile phone on the PC when mobile phone is connected on the PC, two things are carried out simultaneously.This be because, the connected mode of various mobile phones is all different, the mobile phone that for example has uses RS232 interface cable mode, and the mobile phone that has uses USB interface cable mode, perhaps IEEE1394 interface cable mode, bluetooth approach, infrared mode, Wi-Fi mode, WinMax mode or the like.Because the connected mode difference of using, employed driver are also different.If the user has imported the model of mobile phone by mobile phone linkage interface (this interface is to carry in the constructed software of the described method of present embodiment), present embodiment just can directly dock.If do not know the model of mobile phone, present embodiment also can connect, and promptly by various corresponding interface are tested, for example uses modes such as other class of code level or other dll of binary level, and whether the user's of interpretation simultaneously mobile phone has connected computer.Present embodiment can use the internal interface of corresponding different driving to attempt respectively connecting.For the mobile phone that USB dish mode connects, the constructed software of the described method of present embodiment carries the feature catalogue of various possibility mobile phone types, and reads the feature catalogue of these various possibility types and it is carried out interpretation by trial.In this way, can find the mobile phone that is connected on the PC more accurately, and a series of attributes of model of this mobile phone, driver, connected mode or the like, just can realize the functions such as document copying of accurate position by enough correct internal interfaces afterwards.
3) seek the step of data transfer path according to mobile phone model and data attribute.This step is very important.
When the network download data are in the mobile phone, the file of various different attributes must be kept in the different files in mobile phone, the operating system of mobile phone could or be play these files according to the attribute display of file like this, if the file that misplaces, then mobile phone is beyond recognition the attribute of file, also just can't show and play these files.The problem that also has needs to solve is how the online file of mobile phone-downloaded enters mobile phone.A kind of be the document copying that will download on the network in internal memory, from internal memory, copy files in the mobile phone again.Another kind method be the document copying that will download on the network in the hard disk of PC, from hard disk, copy files in the mobile phone again.
For synchronous personal information data, often need ad hoc approach just to read and back up, this step is at different type of machines, take suitable method, the api function that reads the personal information data that comprises in the driving that provides such as manufacturer is perhaps analyzed type personal information data and the fetch interface realizing having by oneself, the personal information data are read by the clauses and subclauses type, and on PC, and show in the webpage on the PC, choose when making things convenient for the user synchronous.
4) step of transmission data.Path between network so far and the mobile phone is unimpeded, online file, no matter be any form: video, audio frequency, note, film, animation, document, photo, ringing sound of cell phone, mobile phone application software or the like can be downloaded smoothly, deposit in the mobile phone in the corresponding file directory, according to the requirement of the attribute of file and mobile phone so that the operating system of mobile phone is extracted and used.On the other hand in the network that the personal information data in the mobile phone also can be transmitted, perhaps with network in the stored personal information data carry out synchronously.Carrying out the synchronous transmission operation with server is the synchronous path of selecting according to the user, as upload, download, the different method of synchronization such as synchronous is passed through Internet protocol with the personal information data, as http, ftp etc. transmit, the data of acquisition, go into mobile phone in that PC is enterprising, then enter the memory location at the interconnected network segment and store.
Embodiment two:
Present embodiment is the preferred version of the step of startup among the embodiment one, is the method from network download information data, and its process comprises two sub-steps as shown in Figure 2:
1) user chooses the substep that needs file in download or data on the webpage that shows on the PC.This substep is the individual attribute of user's scope of telling PC and wanting file in download or data, form, size, various or the like data, and these attributes will have influence on the transmission path of following data, and will be very important.
2) click the substep that downloads to the mobile phone button.The user tells PC to choose to finish and can move.
Embodiment three:
Present embodiment is the preferred version of the step of startup among the embodiment one, is the start-up course that mobile phone and network carry out the personal information transfer of data, and as shown in Figure 3, process comprises:
1) clicks mobile phone and the synchronous substep of network data.The purpose of this substep is that the user tells PC to start the process of mobile phone and transmitted data on network.
2) list the substep that needs the data in synchronization attribute.PC can eject a dialog box, lists all data and attribute thereof in the mobile phone, and inquiry is storage or synchrodata, where stores or the like problem into.
3) user chooses the substep that needs the data in synchronization attribute.Whether synchronously or the position of storing or the like problem the user gets the respective option at the dialog box mid point, determine the data that will transmit and attribute thereof and.
Embodiment four:
Present embodiment be among the embodiment one whether have mobile phone to be connected on the PC and step that type of cell phone is judged in substep.Be a kind of preferable methods of this committed step, process as shown in Figure 4.This is a kind ofly not know under the situation of mobile phone model, seeks the method for mobile phone model:
1) calls the substep of the common interface function S earchPhone () of encapsulation.
2) search the substep of mobile phone connecting interface information.This substep be that interface routine with the mobile phone brand of all various well-known manufacturers takes turns to differentiate, to determine the type of interface routine and mobile phone, the interface mode and the driver that are actually various cell phone manufacturers carry out big classification, segment in big class afterwards, the benefit of doing like this is to find interface and the driving that will seek as soon as possible again.
3) use each interface of the UDI test local computing that each cell phone manufacturer provides whether to be connected with the substep of mobile phone.This substep is tested each corresponding PC interface with various drivings.If all interfaces all do not have reaction, two kinds of possibilities are just arranged, the one, mobile phone also is not connected on the PC, and the 2nd, the mobile phone that is connected on the PC is a kind of more special model, does not have its driving in the software kit of encapsulation.
4) substep of the connection type interface of affirmation mobile phone model and mobile phone and PC.After finding mobile phone model and respective drive this kind driving will be installed, set up the contact of determining.
Embodiment five:
Present embodiment be among the embodiment one whether have mobile phone to be connected on the PC and step that type of cell phone is judged in substep, be another preferred scheme of this committed step.The principle of present embodiment is seen shown in Figure 5, is a kind of method by user oneself selection type of cell phone, and its process is:
1) the prompting user selects to connect the substep of the type of mobile phone.This is the prompting interface that a software carries, the user can input handset in this interface model, brand.
2) call the substep of the common interface function S etConnectType () of encapsulation.
3) substep of the connection type interface of setting mobile phone and PC.
4) call the substep of the common interface function C onnect2Phone () of encapsulation.
5) mobile phone connects the substep of the interface of PC.
Embodiment six:
Present embodiment is the substep according to the step of mobile phone model and data attribute searching data transfer path.Be a kind of by the preferred version of network download data in the mobile phone, the principle of present embodiment is seen shown in Figure 6.Present embodiment be when PC with after mobile phone is connected, can't directly carry out file transfer, need install driver.Install driver at first is to locate the operating platform of mobile phone.Because the model difference of mobile phone, its operating system also is not quite similar, and method of operating is also different certainly.The mobile phone that has can directly obtain file from the internal memory of PC, and the mobile phone person who has can obtain file by the hard disk from PC.This just requires present embodiment to provide diverse ways.When the file on the Internet need download on the mobile phone, import url into to the constructed software of this method from internet web page, the parameter by calling [for example CopyFile2Phone (URL ...) in the url parameter] direct file in download.Require when copied files arrives mobile phone from the local file copy if mobile phone connects the driver of PC, described software will download the file into collapse directories on the PC, copy mobile phone then to, and the file that copies on the PC that finishes will be deleted immediately.If the driver support that mobile phone connects PC from the direct copied files of internal memory to mobile phone; described software will directly be placed on downloaded contents in the internal memory zone of PC; copy is gone into mobile phone then; the described method of present embodiment can reduce the leakage of file, the effectively copyright of protected file to greatest extent.
Mobile phone is normally set up the subdirectory of different attribute when various services are provided.For example: video file is placed in the special video subdirectory, and audio file is placed in the audio frequency subdirectory or the like.Need only extraction document and the corresponding operating file operation of use in the subdirectory of different attribute during use.If file has misplaced subdirectory, then may can not find operating file during use, so that can't use.Therefore, the memory location at mobile phone after the file in download is very important, and present embodiment can address this problem.
1) determines the substep of the operating platform of mobile phone according to mobile phone model.Just can determine the operating platform of mobile phone according to the model of mobile phone, these operating platforms comprise: the privately owned operating systems of system or cell phone manufacturer such as Palm, Symbian, Window Mobile and Linux.
2) select the substep that whether creaties directory at PC.This substep is not support from the memory copying file problem in order to solve some mobile phone.If the mobile phone support from the memory copying file could skip substep 3); If mobile phone is not supported from the memory copying file, will set up a temp directory on the PC, in order to the file of interim storage transmission in copied files.
3) substep that on PC, creaties directory.If mobile phone is supported memory copying then is skipped this substep.
4) whether selection creates the substep of associative directory on mobile phone.The purpose of this substep is the problem that does not have the corresponding document folder that solves in the mobile phone.As previously mentioned, the file of certain attribute of operation will be stored in the file of respective attributes in mobile phone, and the operating file of this kind of operation attribute file is arranged in this document folder.For example video file is placed in the video file folder, and the player of operation video file is arranged in this video file folder, and in the time of playing the video file of certain, this video file just can find player in the video file folder.If a video file has been placed in the note file, may can't work with regard to can not find video player.This substep at first will be judged the attribute of file, according to attribute file is being placed in the file of respective attributes, if find not have the file of respective attributes, will enter the next son step and remove to set up such file.
5) substep of establishment associative directory.If the file of corresponding document attribute arranged then skip this substep.
Embodiment seven:
Present embodiment is the word step according to the step of mobile phone model and data attribute searching data transfer path.Be the user for can backup to the personal information data on the mobile phone on the Internet or make mobile phone and network on the method for personal information data sync, process is as shown in Figure 7.Need with the personal information in the mobile phone backup on the network or with network on the stored personal information data sync, need earlier to read personal information data on the mobile phone from mobile phone, these data may be phone directories, schedule, task list etc.Its process is:
1) whether the inquiry mobile phone supports the substep of personal information data sync.The personal information data often can not be handled as ordinary file, some type is not followed the SyncML agreement yet, perhaps the interface function and the mode of their information that reads have nothing in common with each other, this step is determined to take the sort of mode that the personal information on the mobile phone is read by the attribute of the information data that obtains in setting up procedure.
2) substep that reads individual information data on mobile phone and the network and on PC, show.This substep will read information on PC, or show in mode intuitively on the PC webpage, and the user can select easily.
3) consumer positioning is prepared the substep of the personal information data of transmission.The inside personal information data message of different type of machines may adopt different forms, for safety and unified storage, need change and handle.
4) select the substep of suitable data encapsulation mode.According to the obstructed encapsulation of each type to the personal information data, this substep provides the corresponding interface function that proprietary format is converted to a kind of unification sound of laughing formula, and carries out suitable protection.
Present embodiment is the user with the data on the mobile phone by connecting the PC of network, directly and network pass mutually.Read file directory on the mobile phone and filename tabulation by calling the listed files function, and be presented on the PC, perhaps be shown on the webpage of PC, the user is after having selected the file that need upload, by directly calling http, the ftp agreement, perhaps use the webpage upload function, upload onto the server.When uploading by the webpage execution, the file on the mobile phone can at first read the collapse directories of certain agreement on the PC, uploads to network from PC then, uploads the temporary file on the back deletion PC that finishes.If directly by http, agreements such as ftp are uploaded, also can recursive call read the interface of mobile phone file content, read a part of content, just according to http, the ftp agreement sends a part of content, read up to file and to finish, this mode will can not stay any temporary file on PC.