Summary of the invention
Main purpose of the present invention is at the prior art defective, provides a kind of portable terminal synchronous method to set up, with what simplify portable terminal flow process is set synchronously.
The method that is provided with synchronously between portable terminal of the present invention is used for the synchronous setting between destination mobile terminal and the source portable terminal, and this method may further comprise the steps:
The source portable terminal obtains the value of each concrete clauses and subclauses according to the concrete clauses and subclauses of desiring to be provided with synchronously, and according to this value foundation file is set synchronously;
The source portable terminal sends and file is set synchronously to destination mobile terminal;
Destination mobile terminal carries out simultaneous operation according to synchronously file being set.
Preferably, described source portable terminal is set up in the step that file is set synchronously and is comprised:
The synchronous concrete clauses and subclauses of desire are set;
According to preset keyword in the synchronous concrete clauses and subclauses of desire, call the interface that the corresponding with service layer provides in the portable terminal of source item by item, from the source portable terminal read out keyword corresponding each concrete clauses and subclauses value and preserve.
Preferably, described destination mobile terminal is further comprising the steps of according to being provided with synchronously in the step that file carries out simultaneous operation:
Resolve file is set synchronously, obtain the keyword of concrete clauses and subclauses;
According to the keyword of concrete clauses and subclauses, read the value of concrete clauses and subclauses, and call corresponding service layer's interface item by item according to this value and revise the setting of this machine.
Preferably, described source portable terminal sends and file is set synchronously may further comprise the steps to the step of destination mobile terminal:
Set the sign that file is set synchronously,, and carry out the corresponding synchronous operation for the described file that is provided with synchronously of described destination mobile terminal identification.
Preferably, carrying out describedly, reading the value of concrete clauses and subclauses, and calling corresponding service layer's interface item by item according to this value and revise before the step of this machine setting further comprising the steps of at the keyword of carrying out according to concrete clauses and subclauses:
To file be set synchronously and be saved in temp directory;
Whether inquiry is applied as the value of each concrete clauses and subclauses this machine setting of destination mobile terminal.
The present invention also provides a kind of portable terminal, comprises the wireless transmission unit, is used for sending and receives file is set synchronously; Wherein, this portable terminal also comprises:
Data processing unit according to the concrete clauses and subclauses of desiring to be provided with synchronously, obtains the value of each concrete clauses and subclauses;
File is provided with the unit, and the value of desiring synchronous each the concrete clauses and subclauses that is provided with is handled, and forms file is set synchronously, sends for the wireless transmission unit.
Preferably, described data processing unit comprises:
Data read module according to wanting synchronous concrete clauses and subclauses call the interface that the corresponding with service layer provides in the portable terminal of source item by item, reads out the value and the preservation of corresponding each the concrete clauses and subclauses of keyword institute in the mobile terminal chip of source.
Preferably, described wireless transmission unit comprises:
The target selection module is selected the object of desiring to be provided with synchronously.
The present invention also provides a kind of portable terminal, comprises radio receiving unit, wherein also comprises:
The document analysis unit, resolve receive file is set synchronously, obtain the keyword of desiring the concrete clauses and subclauses that are provided with synchronously;
Control unit according to the keyword of concrete clauses and subclauses, reads the value of concrete clauses and subclauses, and calls corresponding service layer's interface item by item according to this value and revise the setting of this machine.
Preferably, described control unit comprises:
File is preserved module, will file be set synchronously and be saved in temp directory;
The machine setting that whether value of each concrete clauses and subclauses based on practicality of Application Hints module, inquiry;
The synchrodata application module is according to the value and the machine setting that bases on practicality of the concrete clauses and subclauses of keyword extraction of concrete clauses and subclauses.
The present invention also provides a kind of portable terminal, comprises the wireless transmission unit that is used to receive and send data, wherein, comprises that also above-mentioned data processing unit, file are provided with unit, document analysis unit and above-mentioned control unit.
As from the foregoing, utilize the synchronous method to set up of portable terminal, system and portable terminal among the present invention, the user can utilize the source portable terminal that the data composition will be set synchronously and file is set synchronously and send to destination mobile terminal by the wireless transmission unit, resolve for destination mobile terminal the go forward side by side simultaneous operation of line correlation of file is set synchronously, reduced greatly that the user is provided with the synchronous workload of portable terminal in the prior art, improved user's convenience that portable terminal is synchronous.
Embodiment
Among the present invention, portable terminal can be mobile phone, PDA etc., will be example with the mobile phone below, and technical scheme of the present invention is elaborated.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 shows the method flow that is provided with synchronously between mobile phone of the present invention.As shown in Figure 1, this method may further comprise the steps:
Step S10, source mobile phone obtain the value of each concrete clauses and subclauses according to the concrete clauses and subclauses of desiring to be provided with synchronously, and according to this value foundation file are set synchronously;
Step S20, the source mobile phone sends and file is set synchronously to target mobile phones;
Step S30, target mobile phones is carried out simultaneous operation according to synchronously file being set.
In one embodiment, the source mobile phone can form the data of the personal settings of this machine and file is set synchronously and need synchronous target mobile phones by sending to, calling this for target mobile phones is provided with file synchronously and by the former setting of change, thereby reach with the source mobile phone purpose is set synchronously.For example, personal settings such as stand-by period before the startup password of source mobile phone, the automatic blocking can be sent to target mobile phones by the blue-teeth data transmission unit, so that target mobile phones and source mobile phone are synchronous.
The present invention is provided with file cocurrent synchronously by the foundation of source mobile phone and delivers to target mobile phones, target mobile phones receives and file is set synchronously and carries out simultaneous operation according to synchronously file being set then, simplified the step that mobile phone is provided with synchronously in the prior art, improved the user and carried out the convenience that mobile phone is provided with synchronously.
With reference to Fig. 2, also can may further comprise the steps among the above-mentioned steps S10:
Step S11 is provided with the synchronous concrete clauses and subclauses of desire;
Step S12 according to preset keyword in the synchronous concrete clauses and subclauses of desire, calls the interface that the corresponding with service layer provides in the mobile phone of source item by item, read out in the chip for cell phone of source keyword corresponding each concrete clauses and subclauses value and preserve.
In one embodiment, the source mobile phone is set up a data library file at the data (value of the keyword of concrete clauses and subclauses, concrete clauses and subclauses etc.) of each the concrete clauses and subclauses in this machine personal settings (for example the start PIN code of SIM card, preceding stand-by period of automatic blocking, code-locked etc. in the mobile phone), can comprise in this database file name and be expressed as head and the tail keyword that file is set synchronously and suffix name etc., for example, this suffix that file is set synchronously .st by name can be set, and this document upgrades in time along with the change that is provided with.Before the transmission, with the storage of packing of this database file, so that disposable sending.
In one embodiment, above-mentionedly being provided with of file is set synchronously can comprises:
[Setting]
.
.
[BackLight]
Value=xxxx;
[/BackLight]
[showtime]
Value=xxx;
[/showtime]
.
.
[/Setting]
Fig. 3 shows the concrete grammar flow process that file is set synchronously is set in the foregoing description, and this method flow specifically may further comprise the steps:
Step S100, the synchronous setup menu of selection source mobile phone;
Step S101, the interface that calls application service layer item by item and provide according to the concrete clauses and subclauses of synchronous setting option read the data in the chip and it are organized into file;
Step S102 is provided with the sign of synchronous documents, for target mobile phones identification and carry out the corresponding synchronous operation;
Step S103 is saved in temp directory with file;
Step S104 judges whether preservation is successful; If, execution in step S105 then; If not, feeding back unsuccessful information then;
Step S105, the open wireless transmitting element;
Step S106 utilizes the wireless transmission unit need to select the target mobile phones of setting synchronously;
Step S107 will be provided with file synchronously and send target mobile phones to;
Step S108 judges whether file transfer is successful; If, execution in step S109 then; If not, feeding back unsuccessful information then;
Step S109 closes the wireless transmission unit, and deletion is provided with file under the temp directory synchronously.
In one embodiment, above-mentioned wireless transmission unit can be a Bluetooth transmission unit, can send file is set synchronously.
As shown in Figure 4, can comprise among the above-mentioned steps S30:
Step S31 resolves file is set synchronously, obtains the keyword of concrete clauses and subclauses;
Step S32 according to the keyword of concrete clauses and subclauses, judges the item that current needs are provided with synchronously, reads the value of corresponding clauses and subclauses, and calls corresponding service layer's interface item by item according to this value and revise the setting of this machine.
In the foregoing description, radio receiving unit by target mobile phones receives the data that send from the source mobile phone, then (for example according to the keyword of database file and filename, the suffix that the name=mobile phone name of file+.st) is set synchronously judges whether to file is set synchronously, if then this is provided with synchronously file and preserves.
Then, if the user selects this is provided with the Set For Current that data are applied as target mobile phones, then target mobile phones is resolved this database file, the concrete item of synchronous as required each that is provided with is search key in database one by one, if have, then each concrete existing value is the value that each concrete keyword correspondence in the file is set synchronously in the modifying target mobile phone; If no, then use the value of acquiescence.Finally, the data that are provided with of source mobile phone are directed in the target mobile phones, and it is synchronous to have realized that source mobile phone and target mobile phones data are provided with.
By this method, in the time of need be with the data sync of source mobile phone and target mobile phones, need not again one by one that each value of concrete manually is provided with target mobile phones in the reference source mobile phone, can be by clicking the menu that data are set synchronously, activate function corresponding, by the disposable complicated operations in the past of finishing of data function is set synchronously.
As shown in Figure 5, target mobile phones can comprise according to the idiographic flow that file carries out simultaneous operation is set synchronously among the above-mentioned steps S30:
Step S300, target mobile phones receives the file from the source mobile phone;
Step S301 judges whether to file is set synchronously according to synchronous mark; If execution in step S302 then if not, then is saved in other position in the target mobile phones according to default path with file;
Step S302 is saved in temp directory with file;
Step S303 judges whether and will this machine that be applied to be set synchronously; If execution in step S304 then if not, then is saved in other position in the target mobile phones according to default path with file;
Step S304 resolves item by item file is set synchronously, reads concrete clauses and subclauses and corresponding value, calls the interface that application service layer provides, with the machine setting that bases on practicality of the respective value of each concrete clauses and subclauses;
Whether step S305 is provided with successful; If, execution in step S306 then; If not, then file is saved in other position in the target mobile phones according to default path;
Step S306, deletion is provided with file under the temp directory synchronously.
Fig. 6 shows the structure of source mobile phone 10 among the embodiment of the above-mentioned execution mode of the present invention.This source mobile phone 10 can send and file is set synchronously to target mobile phones 20, and this source mobile phone 10 comprises:
Wireless transmission unit 11 is used for transmission file is set synchronously;
Data processing unit 12 according to the concrete clauses and subclauses of desiring to be provided with synchronously, obtains the value of each concrete clauses and subclauses;
File is provided with unit 13, and the value composition of each concrete clauses and subclauses of setting is provided with file synchronously with desiring synchronously, sends for wireless transmission unit 11.
In one embodiment, wireless transmission unit 11 can be the blue-teeth data transmission unit in the mobile phone, can send and receive file is set synchronously; Target selection module 111 wherein can be tabulated for bluetooth, can select to desire the synchronous target mobile phones 20 that is provided with by this bluetooth tabulation; Data processing unit 12 can extract processing such as corresponding data are compressed, packing in the chip according to the Xiang Congyuan mobile phone of desiring in the target mobile phones 20 to be provided with synchronously 10, forms one file is set synchronously, so that send to target mobile phones 20.
Above-mentioned data processing unit 12 can comprise data read module 121, call the interface that the corresponding with service layer provides in the source mobile phone 10 item by item according to the concrete clauses and subclauses that desire is synchronous, read out in the chip of source mobile phone 10 keyword the value and the packing of corresponding each concrete clauses and subclauses preserve.For example, when desire is applied to target mobile phones 20 with the PIN code of SIM card, can in the chip of source mobile phone 10, read PIN code by data read module 121, form one and file is set synchronously and its type, filename etc. are set, be sent to target mobile phones 20 by wireless transmission unit 11.
Fig. 7 shows the structure of target mobile phones 20 in the foregoing description.This target mobile phones 20 comprises:
Radio receiving unit 21 is used for reception file is set synchronously;
Document analysis unit 22, resolve receive file is set synchronously, obtain the keyword of desiring the concrete clauses and subclauses that are provided with synchronously;
Control unit 23 according to the keyword of concrete clauses and subclauses, reads the value of concrete clauses and subclauses, and calls corresponding service layer's interface item by item according to this value and revise the setting of this machine.
In one embodiment, radio receiving unit 21 can be the blue-teeth data transmission unit, can receive file is set synchronously.Document analysis unit 22 can with above-mentioned compression, packing the file decompress(ion) is set synchronously, the keyword that obtains desiring the concrete clauses and subclauses that are provided with is synchronously handled for control unit 23.
As shown in Figure 8, above-mentioned document analysis unit 22 can comprise:
Decompression module 221 is carried out decompression processing to file is set synchronously;
Keyword acquisition module 222 obtains and desires the keyword of the concrete clauses and subclauses of setting synchronously.
Above-mentioned control unit 23 can comprise:
File is preserved module 231, will file be set synchronously and be saved in temp directory;
The machine setting that whether value of each concrete clauses and subclauses based on practicality of Application Hints module 232, inquiry; In one embodiment, before being provided with synchronously, Application Hints module 232 can be pointed out target mobile phones, whether confirms to carry out simultaneous operation.
Synchrodata application module 233 is according to the value and the machine setting that bases on practicality of the concrete clauses and subclauses of keyword extraction of concrete clauses and subclauses.For example, in the foregoing description, synchrodata application module 233 can extract stand-by period before the start PIN code, automatic blocking of SIM card in the above-mentioned for example mobile phone, code-locked etc., and it is applied as this machine setting of target mobile phones.
Should be noted that among the present invention that above-mentioned source mobile phone 10 and target mobile phones 20 can be exchanged, can be same mobile phone.In one embodiment, this mobile phone can comprise:
Wireless transmission unit 30 is used for receiving and transmission is provided with file synchronously; This wireless transmission unit 30 can be the blue-teeth data transmission unit.
Data processing unit 12 according to the concrete clauses and subclauses of desiring to be provided with synchronously, obtains the value of each concrete clauses and subclauses;
File is provided with unit 13, and the value of desiring synchronous each the concrete clauses and subclauses that is provided with is handled, and forms file is set synchronously, sends for wireless transmission unit 30;
Document analysis unit 22, that resolves that other portable terminal receive sends is provided with file synchronously, obtains the keyword of the concrete clauses and subclauses that will be provided with synchronously;
Control unit 23 according to the keyword of concrete clauses and subclauses, reads the value of concrete clauses and subclauses, and calls corresponding service layer's interface item by item according to this value and revise the setting of this machine.
To sum up, the concrete grammar flow process that is provided with synchronously between above-mentioned mobile phone can comprise:
Step S01, source mobile phone 10 are set up file are set synchronously.It is specifically as follows: source mobile phone 10 according to the synchronous concrete clauses and subclauses that are provided with of need (for example, the start PIN code of SIM card, preceding stand-by period of automatic blocking, code-locked etc. in the mobile phone), call the interface that service layer provides item by item, read out the value that data are set of corresponding clauses and subclauses in the chip for cell phone, become the file of instance document type to be kept at the temporary file underedge a series of packing data, be ready for sending to target mobile phones.
Step S02, the wireless transmission unit of opening the source mobile phone, and in the optional tabulation of the bluetooth of source mobile phone, select to be provided with synchronous target mobile phones, by wireless transmission unit file transfer will be set synchronously and give target mobile phones.
Step S03, target mobile phones are being provided with after file finishes receiving synchronously, its corresponding wireless transmission unit according to the suffix of the filename of the file that receives and end to end keyword identify and judge that whether this document is for being provided with file synchronously, if then this is provided with synchronously under the temp directory that file is saved in target mobile phones.Inquire that then whether the user is provided with this this machine setting that data in file are applied as target mobile phones synchronously; Words are if not then carried out the flow process of general blue-teeth data transmission, with the path of transfer of data to user's appointment.
Step S04, if select simultaneous operation, to this machine setting that data in the file are applied as target mobile phones be set synchronously, then target mobile phones is according to each concrete clauses and subclauses search key one by one in database file, and read the value of corresponding clauses and subclauses the inside according to keyword, call corresponding service layer's interface then item by item and revise the value that this machine is provided with the data chip the inside, if select not carry out simultaneous operation, then Set For Current still uses original value.
If step S05 all setting returns success then at the synchronous mobile phone of target mobile phones end prompting user the data success is set, otherwise then prompting failure.
Step S06, select whether to delete to be provided with the file of file in target mobile phones is set synchronously target mobile phones end prompting user.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.