CN103020068B - A kind of synchronous method and synchronous device - Google Patents

A kind of synchronous method and synchronous device Download PDF

Info

Publication number
CN103020068B
CN103020068B CN201110282853.5A CN201110282853A CN103020068B CN 103020068 B CN103020068 B CN 103020068B CN 201110282853 A CN201110282853 A CN 201110282853A CN 103020068 B CN103020068 B CN 103020068B
Authority
CN
China
Prior art keywords
electronic equipment
configuration file
configuration information
synchronous
predetermined function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110282853.5A
Other languages
Chinese (zh)
Other versions
CN103020068A (en
Inventor
刘清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110282853.5A priority Critical patent/CN103020068B/en
Publication of CN103020068A publication Critical patent/CN103020068A/en
Application granted granted Critical
Publication of CN103020068B publication Critical patent/CN103020068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of synchronous method and synchronous device.Wherein said synchronous method comprises: judge whether described first electronic equipment meets predetermined synchronous trigger condition; When meeting described synchronous trigger condition, obtain the configuration information realized needed for predetermined function, described configuration information is resolved and is obtained from the first configuration file, and described first configuration file is used for realizing described predetermined function for the second electronic equipment; According to described configuration information, generate the second configuration file, described second configuration file is used for realizing described predetermined function for described first electronic equipment.The present invention can realize the synchronous of configuration file between two electronic equipments, improves the experience of electronic equipment.

Description

A kind of synchronous method and synchronous device
Technical field
The present invention relates to data synchronization technology field, be specifically related to a kind of synchronous method and synchronous device.
Background technology
Along with the fast development of mobile terminal technology, current mobile terminal can install independently operating system, becomes intelligent mobile terminal.Intelligent mobile terminal, except possessing common mobile communication function, can also possess the various functions of computing machine.
At present, user may have multiple terminal equipment, such as intelligent mobile terminal (as smart mobile phone), tablet terminal (as various PAD) and computer equipment.Therefore, there is following application scenarios: user is current may use certain terminal device, but may use another terminal device at subsequent time, but user may can use certain identical function when using these terminal devices.
The concrete situation of one of above-mentioned application scenarios may be: user may use the WIFI function of surfing the Net of certain tablet terminal (or intelligent mobile terminal) to be connected to certain access point (AP) to carry out network access, and this tablet terminal runs android operating system; After this tablet terminal to be plugged on and to run and have the computer equipment of windows operating system by user, this tablet terminal may work under the control of computer equipment, now user no longer carries out network access by tablet terminal, but carry out network access by the WIFI function of surfing the Net of this computer equipment, if user wishes that this computer equipment still uses above-mentioned AP to access, then need computer equipment to re-start network sweep, then select above-mentioned AP by user and the process of carrying out network insertion checking to reconnect to above-mentioned AP.Obviously, the above-mentioned process need reconnected expends certain rescaning and be connected turn-on time, thus has influence on the experience of user.
Summary of the invention
Embodiment of the present invention technical matters to be solved is to provide a kind of synchronous method and synchronous device, realizes the synchronous of the configuration file between two electronic equipments, improves the experience of electronic equipment.
For solving the problems of the technologies described above, the embodiment of the present invention provides scheme as follows:
A kind of synchronous method, is applied to the first electronic equipment, comprises:
Judge whether described first electronic equipment meets predetermined synchronous trigger condition;
When meeting described synchronous trigger condition, obtain the configuration information realized needed for predetermined function, described configuration information is resolved and is obtained from the first configuration file, and described first configuration file is used for realizing described predetermined function for the second electronic equipment;
According to described configuration information, generate the second configuration file, described second configuration file is used for realizing described predetermined function for described first electronic equipment.
Preferably, in said method, also comprise:
Described first electronic equipment, based on described second configuration file, performs described predetermined function.
Preferably, in said method,
The configuration information that described acquisition realizes needed for predetermined function comprises:
Obtain in described second electronic equipment described first configuration file preserved;
Resolve described first configuration file, from described first configuration file, obtain described configuration information.
Preferably, in said method,
The configuration information that described acquisition realizes needed for predetermined function comprises:
Obtain described configuration information from described second electronic equipment, described configuration information be described second electronic equipment self is preserved described first configuration file resolve after obtain.
Preferably, in said method,
Describedly judge whether described first electronic equipment meets predetermined synchronous trigger condition and comprise:
Judge whether described first electronic equipment receives and perform synchronous order.
Preferably, in said method,
Describedly judge whether described first electronic equipment meets predetermined synchronous trigger condition and comprise:
Judge whether the state of the data cube computation between described first electronic equipment and described second electronic equipment changes.
Present invention also offers a kind of synchronous device, be applied to the first electronic equipment, comprise:
First judging unit, for judging whether described first electronic equipment meets predetermined synchronous trigger condition;
First obtains unit, for when meeting described synchronous trigger condition, obtain the configuration information realized needed for predetermined function, described configuration information is resolved and is obtained from the first configuration file, and described first configuration file is used for realizing described predetermined function for the second electronic equipment;
Generation unit, for according to described configuration information, generates the second configuration file, and described second configuration file is used for realizing described predetermined function for described first electronic equipment.
Preferably, in said apparatus, also comprise:
Performance element, for based on described second configuration file, performs described predetermined function.
Preferably, in said apparatus, described first obtains unit comprises:
Second obtains unit, for obtaining in described second electronic equipment described first configuration file preserved;
Resolution unit, for resolving described first configuration file, obtains described configuration information from described first configuration file.
Preferably, in said apparatus, described first obtains unit comprises:
3rd obtain unit, for obtaining described configuration information from described second electronic equipment, described configuration information be described second electronic equipment self is preserved described first configuration file parsing after obtain.
Preferably, in said apparatus, described first judging unit comprises:
Second judging unit, performs synchronous order for judging whether described first electronic equipment receives.
Preferably, in said apparatus, described first judging unit comprises:
3rd judging unit, for judging whether the state of the data cube computation between described first electronic equipment and described second electronic equipment changes.
As can be seen from the above, the synchronous method that the embodiment of the present invention provides and synchronous device, the first configuration file according to the second electronic equipment resolves the configuration information obtained, generate the second configuration file for the first electronic equipment, the first function that this second configuration file realizes in the first electronic equipment is identical with the second function that the first configuration file realizes in the second electronic equipment.Like this, the embodiment of the present invention can be as required, between two electronic equipments, realize the synchronous of configuration file by above-mentioned steps, make an electronic equipment can realize identical function based on the configuration file of another electronic equipment, thus improve the experience of electronic equipment.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the synchronous method described in the embodiment of the present invention;
Fig. 2 is the structural representation of the synchronous device described in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of synchronous method and synchronous device, according to the configuration file of one of them electronic equipment, generate the configuration file with identical function obtaining another electronic equipment, thus the configuration file achieved between two electronic equipments is synchronous, improves the experience of electronic equipment.Below with reference to accompanying drawing, be further described by specific embodiment.
First the applied environment of the embodiment of the present invention is described, the embodiment of the present invention can be applied to the first electronic equipment, and this first electronic equipment can form mixed architecture (hybrid) system with the second electronic equipment.Wherein, mixed architecture system can be two independently electronic apparatus combination form, also can comprise a mancarried electronic aid of the first electronic equipment and the second electronic equipment.Such as mixed architecture system can be made up of the notebook of a platform independent triangular web and a smart mobile phone, also can be the notebook with mixed architecture system.
Wherein, the first electronic equipment can comprise the first hardware system, such as based on X86-based or ARM architecture processor from system; Second electronic equipment can comprise the second hardware system, such as based on the main system of X86-based or ARM architecture processor.Namely the first electronic equipment and the second electronic equipment can based on identical hardware structures, also can according to different hardware structures.In addition, main system and from system can be the differentiation two systems carried out according to importance or priority or processing power or power consumption (such as, the corresponding importance of main system is high, priority is high, processing power is strong or power consumption is large, and contrary to the above from system), also the differentiation named can be only used to, and the importance of non-limiting system or priority or processing power or power consumption.
Further, second electronic equipment can comprise second hardware system with the second operating system, desk device operating system (such as Windows is such as installed, Linux or MacOS) or the second hardware system of portable device system (such as Android, Symbian or iOS) is installed; First electronic equipment can comprise first hardware system with the first operating system, desk device operating system (such as Windows is such as installed, Linux or MacOS) or the first hardware system of portable device system (such as Android, Symbian or iOS) is installed.Namely the first operating system and the second operating system can be the same or different, as long as may operate in corresponding hardware system.
Wherein, the first electronic equipment has first interface (communication unit), and the second electronic equipment has the second corresponding interface, and the first electronic equipment and the second electronic equipment to be connected with the second Interface realization by the first interface of correspondence or to be separated.First interface and the second interface can be wireline interfaces also can be wave point, do not limit herein, as long as the connection that the first interface of the first electronic equipment and the second interface of the second electronic equipment can realize two electronic equipments be separated, and can communicating data, especially operative scenario data.
When first interface and the second interface are wireline interfaces, first interface can be specially data bus interface, such as USB interface, or UART interface, or self defined interface comes connection between satisfied two equipment or separation.Second interface also can be corresponding USB interface, or UART interface, or self defined interface comes connection between satisfied two systems or separation.When first interface and the second interface are wave points, both sides can be the blue tooth interfaces of coupling, or infrared interface, or WIFI interface.
For the notebook of hybrid system configuration, the first electronic equipment and the second electronic equipment are two relative independent system, and can independently work or link together work.Second electronic equipment is arranged at the host computer side relative to single system notebook, possesses processing unit, input block, storage unit, but does not possess display unit; First electronic equipment is arranged at the display screen side relative to single system notebook, possesses processing unit, input block, storage unit, display unit.The first electronic equipment to be connected with the second electronic equipment and in conjunction with work time, two electronic equipments can shared portion hardware cell, such as display unit.Due to display unit and the first electronic equipment integrated, therefore when the first electronic equipment with second electronic equipment disconnect or wired be separated time, only for the first electronic equipment; When the first electronic equipment is connected with the second electronic equipment, the first electronic equipment is can be used for use, also can be used for the second electronic equipment to use, namely in the first electronic equipment and/or the second electronic equipment, the operation result/output content of application (containing operating system) can be shown by display unit.
In the mancarried electronic aid of i.e. above-mentioned composition hybrid system configuration, have first electronic equipment that can be equivalent to from the equipment of the similar panel computer (PAD) of system the embodiment of the present invention, the main process equipment with main system can be equivalent to the second electronic equipment in the embodiment of the present invention.
Concrete, be comprise the panel computer equipment (PAD) from operating system with the first electronic equipment, second equipment is the main process equipment (base) with master operating system is example, when the first electronic equipment is connected with the second electronic equipment, the display unit of the first electronic equipment may be used for the output of display second electronic apparatus application, when user needs to leave from current working environment, need the first electronic equipment to be separated with the second electronic equipment is wired, then the display unit of the first electronic equipment may be used for the comb of display first electronic apparatus application.
Synchronous method described in the embodiment of the present invention, namely can be applied in the first electronic equipment, also can be applied in the second electronic equipment, and " first ", " second " is here only for distinguishing two equipment, and and non-limiting.
First please refer to Fig. 1, the synchronous method described in the embodiment of the present invention, be applied to the first electronic equipment, comprise the following steps:
Step 11, judges whether described first electronic equipment meets predetermined synchronous trigger condition.
Step 12, when meeting described synchronous trigger condition, obtain the configuration information realized needed for predetermined function, described configuration information is resolved and is obtained from the first configuration file, and described first configuration file is used for realizing described predetermined function for the second electronic equipment.
Step 13, according to described configuration information, generates the second configuration file, and described second configuration file is used for realizing described predetermined function for described first electronic equipment.
The embodiment of the present invention resolves according to the first configuration file of the second electronic equipment the configuration information obtained, generate the second configuration file for the first electronic equipment, the first function that this second configuration file realizes in the first electronic equipment is identical with the second function that the first configuration file realizes in the second electronic equipment.Like this, the present embodiment can be as required, between two electronic equipments, realize the synchronous of configuration file by above-mentioned steps, make an electronic equipment can realize identical function based on the configuration file of another electronic equipment, thus improve the experience of electronic equipment.
After above-mentioned steps 13, synchronous method described in the present embodiment, can also comprise the following steps:
Described first electronic equipment, based on described second configuration file, performs described predetermined function.
Thus the first electronic equipment based on the second configuration file, can realize the identical function that the first configuration file is corresponding.
In the present embodiment, described predetermined function is the function that described first electronic equipment and the second electronic equipment are all supported self, and below citing is described:
Such as, when described first electronic equipment and the second electronic equipment all support that WIFI surfs the Net, described predetermined function can comprise WIFI function of surfing the Net, described first configuration file is the WIFI configuration file of the first electronic equipment, described second configuration file is the WIFI configuration file of the second electronic equipment, and described configuration information then comprises SSID, the information such as password and cipher mode of access point;
When described first electronic equipment all supports that 3G communicates with the second electronic equipment, described predetermined function can comprise 3G communication function, described first configuration file is the configuration file that the first electronic equipment 3G communicates, described second configuration file is the configuration file that the second electronic equipment 3G communicates, described configuration information then comprises set 3G data network information, roaming configuration parameter, the information such as operator's access point;
When described first electronic equipment and the second electronic equipment all support that audio frequency and video show, described predetermined function can comprise audio frequency and video Presentation Function, described first configuration file is the audio frequency and video configuration file of the first electronic equipment, described second configuration file is the audio frequency and video configuration file of the second electronic equipment, and described configuration information then comprises the brightness of display screen, luminance patterns, the information such as sound class and volume;
When described first electronic equipment and the second electronic equipment all support that audio frequency and video show, described predetermined function can comprise audio frequency and video Presentation Function, described first configuration file is the audio frequency and video configuration file of the first electronic equipment, described second configuration file is the audio frequency and video configuration file of the second electronic equipment, and described configuration information then comprises the brightness of display screen, luminance patterns, the information such as sound class and volume;
Described predetermined function can also comprise the configuration feature of input method and area information, now described first configuration file is the input method of the first electronic equipment and the configuration file of area information, described second configuration file is the input method of the second electronic equipment and the configuration file of area information, and described configuration information then comprises the information such as presently used input method and current region;
Described predetermined function can also comprise the configuration feature of time and date information, now described first configuration file is the configuration file of the time and date information of the first electronic equipment, described second configuration file is the configuration file of the time and date information of the second electronic equipment, and described configuration information then comprises the information such as current time, date and time zone;
Described predetermined function can also comprise the memory function of call and associated person information, now described first configuration file is the call of the first electronic equipment and the configuration file of associated person information, described second configuration file is the call of the second electronic equipment and the configuration file of associated person information, and described configuration information then comprises the information such as message registration and contact person.
When certain power management policy all supported by described first electronic equipment and the second electronic equipment, described predetermined function can comprise power management function, now described first configuration file is the power management configuration file of the first electronic equipment, described second configuration file is the power management configuration file of the second electronic equipment, and described configuration information then comprises the information such as the power management under powder source management mode and each pattern.
In the present embodiment, user according to the needs of application scenarios, can pre-set the synchronous trigger condition described in above-mentioned steps 11.
Concrete, synchronous trigger condition can comprise: the first electronic equipment receives the synchronous order of execution of user's input, such as, user performs synchronous order by inputs such as the physical button/virtual key/menus on the first electronic equipment, and the synchronous order of described execution is used to indicate the configuration file that the first electronic equipment and the second electronic equipment synchronously realize predetermined function; After first electronic equipment judges whether to receive the synchronous order of above-mentioned execution, when receiving the synchronous order of described execution, judge to meet described predetermined synchronous trigger condition; Otherwise, judge not meet described predetermined synchronous trigger condition.
Synchronous trigger condition can also comprise: whether the state of the data cube computation between described first electronic equipment and described second electronic equipment changes.Such as, the state of the data cube computation between described first electronic equipment and described second electronic equipment changes over off-state from connection status, or change over connection status from off-state, now can judge to meet described predetermined synchronous trigger condition, to enter described step 12.Here, described data cube computation can be the wired connection of physics, as the connection realized by physical interface or conductivity pathway; Described data cube computation also can be the data cube computation of wireless mode, such as, by the connection of the wave point realizations such as bluetooth.
In above-mentioned steps 12, obtain the configuration information realized needed for predetermined function, can be accomplished in several ways, below be specifically described.
Implementation one:
In which, described second configuration file preserved self by described second electronic equipment is resolved, and obtains described configuration information; Then, the first electronic equipment can obtain described configuration information from described second electronic equipment.Concrete, second electronic equipment can be kept at the shared storage area being arranged on self by described configuration information, this shared storage area can be accessed by described first electronic equipment, thus described first electronic equipment by this shared storage area of access, can obtain described configuration information.Certainly, also by described second electronic equipment, described configuration information can be sent to described first electronic equipment, described first electronic equipment, by receiving, obtains the described configuration information that the second electronic equipment sends.Also by described second electronic equipment, described configuration information can be sent to described first electronic equipment, concrete send mode can be sent by the wired or wireless connection between the second electronic equipment and the first electronic equipment.
Implementation two:
First first electronic equipment can obtain in described second electronic equipment described first configuration file preserved, and then, described first electronic equipment is resolved described first configuration file, from described first configuration file, obtain described configuration information.
Here, described first configuration file can be kept at the shared storage area being arranged on self by described second electronic equipment, this shared storage area can be accessed by described first electronic equipment, thus described first electronic equipment by this shared storage area of access, can obtain described first configuration file.Certainly, also by described second electronic equipment, described first configuration file can be sent to described first electronic equipment, described first electronic equipment, by receiving, obtains described first configuration file that the second electronic equipment sends.Concrete send mode can be sent by the wired or wireless connection between the second electronic equipment and the first electronic equipment.
Implementation three:
Here, can set up the first corresponding relation between function that the configuration file in the title of the configuration file in the second electronic equipment and the second electronic equipment realizes in advance in the first electronic equipment, thus above-mentioned steps 12 specifically comprises: the first electronic equipment obtains the first configuration file of the second electronic equipment; First electronic equipment is according to the first file name of described first corresponding relation and described first configuration file, determine the predetermined function that described first configuration file realizes, and then according to described predetermined function, resolve described first configuration file, extract the configuration information needed for accomplished described predetermined function.
Can find out, the manner is after the configuration file in acquisition second electronic equipment, then determines the function achieved by this configuration file, as above-mentioned predetermined function.
Implementation four:
Here, the first corresponding relation can be set up in advance in the first electronic equipment equally, the corresponding relation between the function that the configuration file in the file name that described first corresponding relation is the configuration file in the second electronic equipment and the second electronic equipment realizes.But different from above-mentioned implementation three, be the function needing realization according to the first electronic equipment here, ground obtains the corresponding configuration file in the second electronic equipment targetedly.Now above-mentioned steps 12 specifically comprises:
According to described first corresponding relation, determine the first file name of required the first configuration file corresponding to described predetermined function realized, and then obtain described first configuration file preserved in described second electronic equipment according to this first file name.Such as, from the second configuration file, extract the configuration file that described first file name is corresponding, thus obtain described first configuration file.
In above-mentioned implementation two to four, be all from the first configuration file, obtain above-mentioned configuration information by the first electronic equipment.Concrete, the first electronic equipment according to function corresponding to described first configuration file, can be resolved described first configuration file and extracts the configuration information needed for the function realizing described correspondence.The form of configuration file is can further include in described first corresponding relation, described first electronic equipment can according to described first corresponding relation, determine the first form of described first configuration file, and then according to the first form, described first configuration file is resolved.
In above-mentioned steps 13, according to described configuration information, generate the second configuration file in the first electronic equipment, described second configuration file is used for realizing described predetermined function for described first electronic equipment.Concrete, the second corresponding relation can be set up in advance in first electronic equipment, corresponding relation between the function that configuration file in the predetermined file attribute that described second corresponding relation is the configuration file in the first electronic equipment and the first electronic equipment realizes, described predetermined file attribute can comprise file name, file layout and file and preserve position.
Like this, as a kind of preferred implementation, above-mentioned steps 13, specifically comprises:
The described predetermined function realized according to described first configuration file and described second corresponding relation set up in advance, determine the first predetermined file attribute of the second configuration file that described predetermined function is corresponding;
Preserve position according to the file in described first predetermined file attribute, find described second configuration file, and according to described configuration information, upgrade described second configuration file.
Above-mentioned renewal process is also a kind of mode of generation second configuration file.
As another kind of preferred implementation, above-mentioned steps 13, specifically comprises:
The described predetermined function realized according to described first configuration file and described second corresponding relation set up in advance, determine the second predetermined file attribute of the configuration file that described predetermined function is corresponding;
According to described second predetermined file attribute, create second configuration file, the file attribute (comprise file layout, file name and preserve position) of this second configuration file, identical with described second predetermined file attribute;
Described configuration information is added in described second configuration file.Concrete, according to the file layout in the second predetermined file attribute, can determine for filling the field of described configuration information in described second configuration file, and then fill described configuration information in these these section, as filled the design parameter/numerical value etc. of each field.
Like this, after generating described second configuration file according to aforesaid way, first electronic equipment can preserve address according to the file in the predetermined file attribute of self configuration file, described second configuration file detected and realizes automatically loading, thus realizing corresponding function.
The application of the present embodiment is described with a kind of more specifically application scenarios below.
In this application scene, described first electronic equipment comprises two kinds of mode of operations, wherein the first mode of operation be described first electronic equipment do not set up between described second electronic equipment data cube computation (can be physical connection) time, as an autonomous device, work is carried out under the first operating system of self controls, second mode of operation is after data cube computation set up by described first electronic equipment and described second electronic equipment, can as an expansion equipment of described second electronic equipment, work is carried out under the second operating system of described second electronic equipment controls.
Concrete, the first electronic equipment can be the desk-top computer running windows operating system, and the second electronic equipment can be the flat computer running android operating system.Wherein, flat computer includes the first display screen, and when flat computer is separated with desk-top computer, flat computer can work under android operating system; After flat computer grafting on the desktop, flat computer can as of a desk-top computer expansion equipment, and wherein the first display screen can use as of a desk-top computer display screen.
When the second electronic equipment is not plugged on the first electronic equipment, second electronic equipment can as an independently equipment use, now user can access certain AP by the WIFI function of surfing the Net of the second electronic equipment, now the second electronic equipment normally preserves WIFI configuration file in this locality, and this WIFI configuration file comprises the configuration informations such as service set (SSID), password and the encryption type accessing AP.
When the second electronic device docking is to the first electronic equipment, the display screen of the second electronic equipment uses as a display screen of desk-top computer, second electronic equipment becomes an expansion equipment of the first electronic equipment, by the control of the operating system of the first electronic equipment.Synchronous method described in the present embodiment, when applying above-mentioned application scenarios, specifically comprises the following steps:
Steps A, when the second electronic device docking is to the first electronic equipment, the first electronic equipment judges that the state of the data cube computation of self and the second electronic equipment changes, and namely switches to connection status by off-state, now can judge to meet predetermined synchronous trigger condition, enter step B.
Step B, the first electronic equipment obtains the WIFI configuration file that described second electronic equipment is preserved, and described WIFI configuration file preserves the configuration information of the AP that second electronic equipment the last time connected.A backup of described WIFI configuration file can be kept at shared storage area by the second electronic equipment, described shared storage area is a storage area of described second electronic equipment, and this storage area can be accessed by described first electronic equipment, thus the first electronic equipment is by this shared storage area of access, can obtain a described WIFI configuration file.
Step C, the first electronic equipment is resolved the WIFI configuration file obtained, and obtains the configuration information of the AP that second electronic equipment the last time connected.Described configuration information specifically comprises SSID, the information such as password and encryption type of AP.
Step D, the first electronic equipment, according to the configuration information obtained, generates the 2nd WIFI configuration file for the first electronic equipment operating system.
After this, first electronic equipment can based on described 2nd WIFI configuration file, determine the AP needing access, and according to information such as the password in the 2nd WIFI configuration file and encryption types, automatically this AP is connected to, save network rescan and connect required time, achieve network insertion process rapidly, improve user's experience of electronic equipment.
As another alternative, the first electronic equipment also directly can obtain the configuration information of described AP from the second electronic equipment, and therefore, synchronous method described in the present embodiment, when applying above-mentioned application scenarios, can also be comprise the steps:
Steps A ', when the second electronic device docking is to the first electronic equipment, the first electronic equipment judges that the state of the data cube computation of self and the second electronic equipment changes, and namely switches to connection status by off-state, now can judge to meet predetermined synchronous trigger condition, enter step B.
Step B ', the first electronic equipment obtains the configuration information of the AP that described second electronic equipment is preserved, and a described AP is the AP connected second electronic equipment the last time.Described second electronic equipment, when being connected to an AP, can generate corresponding WIFI configuration file in this locality, comprising the configuration information of the AP connected to some extent automatically.Simultaneously, in the present embodiment, second electronic equipment can also resolve described WIFI configuration file further, obtain and preserve the configuration information of AP wherein, specifically can be kept in the shared storage area in the second electronic equipment, thus the first electronic equipment is by the shared storage area in access second electronic equipment, can obtain the configuration information of described AP.
Step C ', the first electronic equipment, according to the configuration information of the AP obtained, generates the 2nd WIFI configuration file for the first electronic equipment operating system.
After this, first electronic equipment can based on described 2nd WIFI configuration file, determine the AP needing access, and according to information such as the password in the 2nd WIFI configuration file and encryption types, automatically this AP is connected to, realize network insertion process rapidly, improve user's experience of electronic equipment.
In different application scene, the role of described first electronic equipment and the second electronic equipment may exchange.Still for above application scenarios, when data connection state between two electronic equipments switches to off-state from connection status, described first electronic equipment can be the described flat computer running android operating system, and described second electronic equipment can be the described desk-top computer running windows operating system.Now, the idiographic flow of the synchronous method described in the present embodiment can comprise:
Step a, when the first electronic equipment is extracted from the second electronic equipment, the first electronic equipment judges that the state of the data cube computation of self and the second electronic equipment changes, and namely switches to off-state by connection status, now can judge to meet predetermined synchronous trigger condition, enter step b.
Step b, the first electronic equipment obtains the WIFI configuration file that described second electronic equipment is preserved, and described WIFI configuration file preserves the configuration information of the AP that second electronic equipment the last time connected.
Here, a backup of described WIFI configuration file can be kept at by the second electronic equipment the shared storage area in the second electronic equipment, this shared storage area is a storage area of described second electronic equipment, and this storage area can be accessed by described first electronic equipment, thus the first electronic equipment is by this shared storage area of access, can obtain a described WIFI configuration file.Similar, in the first electronic equipment, also similar shared storage area can be set, for the second electronic equipment access.
Due to, the state of the data cube computation of the first electronic equipment and the second electronic equipment is off state, and now the first electronic equipment by setting up the wireless connections between two equipment further, can obtain a described WIFI configuration file.Certainly, also can before above-mentioned steps one, when the state of the data cube computation of the first electronic equipment and the second electronic equipment is connection status, first electronic equipment, by the shared storage area of access second electronic equipment, obtains described second electronic equipment and is kept at a WIFI configuration file wherein; Or, before above-mentioned steps one, when the state of the data cube computation of the first electronic equipment and the second electronic equipment is connection status, after generating a described WIFI configuration file by the second electronic equipment, directly a backup of described first configuration file will be kept in the shared storage area of described first electronic equipment.
Step c, the first electronic equipment is resolved the WIFI configuration file obtained, and obtains the configuration information of the AP that second electronic equipment the last time connected.Described configuration information specifically comprises SSID, the information such as password and encryption type of AP.
Steps d, the first electronic equipment, according to the configuration information obtained, generates the 2nd WIFI configuration file for the first electronic equipment operating system.
After this, first electronic equipment can based on described 2nd WIFI configuration file, determine the AP needing access, and according to information such as the password in the 2nd WIFI configuration file and encryption types, automatically this AP is connected to, realize network insertion process rapidly, improve user's experience of electronic equipment.
Similar, as another alternative, the first electronic equipment also can obtain the configuration information of the described AP that the second electronic equipment generates, and therefore, synchronous method described in the present embodiment, when applying above-mentioned application scenarios, can also be comprise the steps:
Step a ', when the first electronic equipment is extracted from the second electronic equipment, first electronic equipment judges that the state of the data cube computation of self and the second electronic equipment changes, namely off-state is switched to by connection status, now can judge to meet predetermined synchronous trigger condition, enter step b '.
Step b ', the first electronic equipment obtains the configuration information of the AP that described second electronic equipment is preserved, and a described AP is the AP connected second electronic equipment the last time.Described second electronic equipment, when being connected to an AP, can generate corresponding WIFI configuration file in this locality, comprising the configuration information of the AP connected to some extent automatically.Simultaneously, in the present embodiment, second electronic equipment can also resolve described WIFI configuration file further, obtain and preserve the configuration information of AP wherein, specifically can be kept in the shared storage area in the second electronic equipment, thus the first electronic equipment is by this shared storage area of access, can obtain the configuration information of described AP.Or, before above-mentioned steps one, when the state of the data cube computation of the first electronic equipment and the second electronic equipment is connection status, by the second electronic equipment by after the configuration information of the described AP of acquisition, directly the configuration information of described AP is kept in the shared storage area of described first electronic equipment, self shared storage area directly accessed by such first electronic equipment, can obtain the configuration information of described AP.
Step c ', the first electronic equipment, according to the configuration information of the AP obtained, generates the 2nd WIFI configuration file for the first electronic equipment operating system.
After this, first electronic equipment can based on described 2nd WIFI configuration file, determine the AP needing access, and according to information such as the password in the 2nd WIFI configuration file and encryption types, automatically this AP is connected to, realize network insertion process rapidly, improve user's experience of electronic equipment.
Based on above-described synchronous method, the embodiment of the present invention additionally provides a kind of synchronous device, is applied to the first electronic equipment, and as shown in Figure 2, this device comprises:
First judging unit, for judging whether described first electronic equipment meets predetermined synchronous trigger condition;
First obtains unit, for when meeting described synchronous trigger condition, obtain the configuration information realized needed for predetermined function, described configuration information is resolved and is obtained from the first configuration file, and described first configuration file is used for realizing described predetermined function for the second electronic equipment;
Generation unit, for according to described configuration information, generates the second configuration file, and described second configuration file is used for realizing described predetermined function for described first electronic equipment.
This device can also perform described second configuration file, and in order to realize described predetermined function on the first electronic equipment, now this device can also comprise: performance element, for based on described second configuration file, performs described predetermined function.
This device can obtain described configuration information by different modes:
Optionally, described first obtains unit can comprise: the second acquisition unit, for obtaining in described second electronic equipment described first configuration file preserved; Resolution unit, for resolving described first configuration file, obtains described configuration information from described first configuration file.
Optionally, described first obtain unit comprises: the 3rd obtain unit, for obtaining described configuration information from described second electronic equipment, described configuration information be described second electronic equipment self is preserved described first configuration file parsing after obtain.
This device can judge whether to meet predetermined synchronous trigger condition by different modes:
Optionally, described first judging unit comprises: the second judging unit, performs synchronous order for judging whether described first electronic equipment receives.
Optionally, described first judging unit comprises: the 3rd judging unit, for judging whether the state of the data cube computation between described first electronic equipment and described second electronic equipment changes.
Many functional parts described in this instructions are all called as module, specifically to emphasize the independence of its implementation.
In the embodiment of the present invention, module can use software simulating, to be performed by various types of processor.For example, the executable code module of a mark can comprise one or more physics or the logical block of computer instruction, and for example, it can be built as object, process or function.However, the executable code of institute's identification module is does not have to be physically positioned at together, but can comprise the different instruction be stored in not coordination, when these command logics combine, and its composition module and realize the regulation object of this module.
In fact, executable code module can be individual instructions or many bar instructions, and even can be distributed on multiple different code segment, is distributed in the middle of distinct program, and crosses over the distribution of multiple memory devices.Similarly, service data can be identified in module, and can realize according to any suitable form and be organized in the data structure of any suitable type.Described service data can be collected as individual data collection, or can be distributed on diverse location and (be included in different storage device), and can only be present on system or network as electronic signal at least in part.
When module can utilize software simulating, consider the level of existing hardware technique, so can with the module of software simulating, when not considering cost, those skilled in the art can build corresponding hardware circuit and realize corresponding function, and described hardware circuit comprises existing semiconductor or other discrete element of conventional ultra-large integrated (VLSI) circuit or gate array and such as logic chip, transistor and so on.Module can also use programmable hardware device, the realizations such as such as field programmable gate array, programmable logic array, programmable logic device.
The above is only embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (12)

1. a synchronous method, is applied to the first electronic equipment, it is characterized in that, comprising:
Judge whether described first electronic equipment meets predetermined synchronous trigger condition;
When meeting described synchronous trigger condition, obtain the configuration information realized needed for predetermined function, described configuration information is resolved and is obtained from the first configuration file, described first configuration file is used for realizing described predetermined function for the second electronic equipment, wherein, described first electronic equipment and described second electronic equipment have different systems;
According to described configuration information, generate the second configuration file, described second configuration file is used for realizing described predetermined function for described first electronic equipment.
2. the method for claim 1, is characterized in that, also comprises:
Described first electronic equipment, based on described second configuration file, performs described predetermined function.
3. the method for claim 1, is characterized in that,
The configuration information that described acquisition realizes needed for predetermined function comprises:
Obtain in described second electronic equipment described first configuration file preserved;
Resolve described first configuration file, from described first configuration file, obtain described configuration information.
4. the method for claim 1, is characterized in that,
The configuration information that described acquisition realizes needed for predetermined function comprises:
Obtain described configuration information from described second electronic equipment, described configuration information be described second electronic equipment self is preserved described first configuration file resolve after obtain.
5. the method for claim 1, is characterized in that,
Describedly judge whether described first electronic equipment meets predetermined synchronous trigger condition and comprise:
Judge whether described first electronic equipment receives and perform synchronous order.
6. the method for claim 1, is characterized in that,
Describedly judge whether described first electronic equipment meets predetermined synchronous trigger condition and comprise:
Judge whether the state of the data cube computation between described first electronic equipment and described second electronic equipment changes.
7. a synchronous device, is applied to the first electronic equipment, it is characterized in that, comprising:
First judging unit, for judging whether described first electronic equipment meets predetermined synchronous trigger condition;
First obtains unit, for when meeting described synchronous trigger condition, obtain the configuration information realized needed for predetermined function, described configuration information is resolved and is obtained from the first configuration file, described first configuration file is used for realizing described predetermined function for the second electronic equipment, wherein, described first electronic equipment and described second electronic equipment have different systems;
Generation unit, for according to described configuration information, generates the second configuration file, and described second configuration file is used for realizing described predetermined function for described first electronic equipment.
8. device as claimed in claim 7, is characterized in that, also comprise:
Performance element, for based on described second configuration file, performs described predetermined function.
9. device as claimed in claim 7, is characterized in that, described first obtains unit comprises:
Second obtains unit, for obtaining in described second electronic equipment described first configuration file preserved;
Resolution unit, for resolving described first configuration file, obtains described configuration information from described first configuration file.
10. device as claimed in claim 7, is characterized in that, described first obtains unit comprises:
3rd obtain unit, for obtaining described configuration information from described second electronic equipment, described configuration information be described second electronic equipment self is preserved described first configuration file parsing after obtain.
11. devices as claimed in claim 7, it is characterized in that, described first judging unit comprises:
Second judging unit, performs synchronous order for judging whether described first electronic equipment receives.
12. devices as claimed in claim 7, it is characterized in that, described first judging unit comprises:
3rd judging unit, for judging whether the state of the data cube computation between described first electronic equipment and described second electronic equipment changes.
CN201110282853.5A 2011-09-21 2011-09-21 A kind of synchronous method and synchronous device Active CN103020068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110282853.5A CN103020068B (en) 2011-09-21 2011-09-21 A kind of synchronous method and synchronous device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110282853.5A CN103020068B (en) 2011-09-21 2011-09-21 A kind of synchronous method and synchronous device

Publications (2)

Publication Number Publication Date
CN103020068A CN103020068A (en) 2013-04-03
CN103020068B true CN103020068B (en) 2016-03-30

Family

ID=47968684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110282853.5A Active CN103020068B (en) 2011-09-21 2011-09-21 A kind of synchronous method and synchronous device

Country Status (1)

Country Link
CN (1) CN103020068B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995833B (en) * 2014-04-21 2017-11-14 深圳天珑无线科技有限公司 A kind of method and device of configuration sharing information
CN105101155A (en) * 2014-05-19 2015-11-25 中兴通讯股份有限公司 Configuration information sending method, function configuring and synchronizing method, and mobile terminal and system
CN106131637B (en) * 2016-07-08 2019-04-30 Oppo广东移动通信有限公司 Control method for playing back and device in a kind of multimedia play system
WO2018205061A1 (en) * 2017-05-08 2018-11-15 深圳市卓希科技有限公司 Network connection control method and system
CN111404790A (en) * 2020-03-23 2020-07-10 北京如影智能科技有限公司 Service transfer method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640611A (en) * 2009-08-26 2010-02-03 烽火通信科技股份有限公司 Method for synchronous and real-time reversion for VOIP voice service primary and standby modules
CN101888407A (en) * 2010-06-11 2010-11-17 广东宝莱特医用科技股份有限公司 Method for configuration interactive synchronization between independently used module and module integrating device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640611A (en) * 2009-08-26 2010-02-03 烽火通信科技股份有限公司 Method for synchronous and real-time reversion for VOIP voice service primary and standby modules
CN101888407A (en) * 2010-06-11 2010-11-17 广东宝莱特医用科技股份有限公司 Method for configuration interactive synchronization between independently used module and module integrating device

Also Published As

Publication number Publication date
CN103020068A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
KR101941618B1 (en) Operating system hot-switching method and apparatus and mobile terminal
CN103020068B (en) A kind of synchronous method and synchronous device
CN103677989B (en) A kind of utilization linux kernel realizes the device and method of multisystem
US8396992B2 (en) System and method for virtualizing the peripherals in a terminal device to enable remote management via removable portable media with processing capability
CN103906068A (en) Virtual base station establishment method and device
CN105045548A (en) Wireless screen transmission method, extension device and wireless screen transmission system
CN108476060A (en) Method and bimodulus bluetooth equipment for establishing classical bluetooth connection between bimodulus bluetooth equipment
CN103559055A (en) Activity starting method and device applied to Android platform
CN103019836A (en) State switching method and electronic equipment
CN104349304A (en) Information processing method and electronic equipment
KR20190065101A (en) An electronic device for transmitting and receiving data in a wireless communication system and a method thereof
CN104333911A (en) Network connection setting method for multimedia player and related computer system
CN104991806A (en) Remote firmware upgrading system and method for single-chip microcomputer program
CN110704350A (en) Resource management method and device, electronic equipment and storage medium
CN103019120A (en) Method controlling household multimedia devices through mobile terminal remote boot and mobile terminal
CN104579889A (en) Method and device for calling NF (network function)
US20170185361A1 (en) Electronic apparatus and method
CN114967952A (en) Cursor control method and device, storage medium and video processing equipment
CN114201184A (en) Method, device, storage medium, equipment and system for burning information
CN103167627A (en) System and method based on wireless fidelity (WIFI) to achieve sharing mobile phone files
KR20090083103A (en) Dual mode terminal and method for processing data service thereof
CN104915168A (en) Information processing method and electronic device
US9961621B2 (en) Wireless customer premise equipment and access method therefor
CN102713795B (en) Terminal, I/O expanding unit, method and system
CN104462905A (en) Data processing method and device of operating systems and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant