CN103678006B - The method and synchronous control system of data synchronization - Google Patents

The method and synchronous control system of data synchronization Download PDF

Info

Publication number
CN103678006B
CN103678006B CN201210348119.9A CN201210348119A CN103678006B CN 103678006 B CN103678006 B CN 103678006B CN 201210348119 A CN201210348119 A CN 201210348119A CN 103678006 B CN103678006 B CN 103678006B
Authority
CN
China
Prior art keywords
electronic equipment
state
synchronic command
radio
cell
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
CN201210348119.9A
Other languages
Chinese (zh)
Other versions
CN103678006A (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 CN201210348119.9A priority Critical patent/CN103678006B/en
Publication of CN103678006A publication Critical patent/CN103678006A/en
Application granted granted Critical
Publication of CN103678006B publication Critical patent/CN103678006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses the methods and synchronous control system of a kind of synchronization of data, when first electronic equipment is connected by communication with second electronic equipment and is in first state, detect whether to receive the first synchronic command from second electronic equipment;When not receiving the first synchronic command from second electronic equipment, the second synchronic command is sent to second electronic equipment by first radio-cell, so that second electronic equipment is synchronous with the first electronic equipment holding;When receiving the first synchronic command from second electronic equipment, first synchronic command is analyzed, obtains the second state corresponding with first synchronic command;In second state and the first state difference, the current state of first electronic equipment is adjusted to second state from the first state.

Description

The method and synchronous control system of data synchronization
Technical field
The present invention relates to field of computer technology more particularly to the methods and synchronous control system of a kind of synchronization of data.
Background technology
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the species of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can be set by various types of electronics It is standby, enjoy the comfortable life brought with development in science and technology.For example, the electronic equipments such as laptop, tablet computer are convenient with it The features such as carrying, beautiful fashion, increasingly important role is played in daily life.
With the continuous development of electronic technology, the performance of electronic equipment is also stronger and stronger, for example, tablet computer is independent When use, people can enjoy the convenient performance of tablet computer, and tablet computer is in the display as another system host Shield that when use, configuration more advanced in system host at this moment can be used cooperatively, people can enjoy tradition again The excellent properties of laptop.
But present inventor during inventive technique scheme, has found above-mentioned technology extremely in the embodiment of the present application is realized It has the following technical problems less:
Due in tablet computer and during system host wireless connection, after tablet computer unlatching, it is also necessary to will be individually System host is opened, and tablet computer could operate system host, similarly, it is necessary to when shutting down, it is also desirable to respectively to flat Plate computer and system host carry out power-off operation;And after tablet computer and system host are separately turned on, tablet computer and The state of system host also can be asynchronous, in this way, cause the state of two main bodys of tablet computer and system host asynchronous, example Such as, it is in tablet computer in standby or sleep state, system host still maintains start working condition and system host Have been enter into standby or sleep state, tablet computer still maintains unlatching, can not sleep or close, it is thus desirable to user into Row repetitive operation so that user is inconvenient to use, and user experience is poor
The content of the invention
The embodiment of the present application is by providing a kind of method and electronic equipment of data synchronization, to solve in the prior art two The problem of nonsynchronous technical problem of state of a main body and the user thus brought are inconvenient to use, poor user experience.
The embodiment of the present application provides a kind of method of data synchronization, applied to the first electronic equipment, first electronics Equipment includes display unit and the first radio-cell, and first electronic equipment is connected by network link and the second electronic equipment It connects, the described method includes:
It is connected in first electronic equipment by communication with second electronic equipment and in the first shape During state, detect whether to receive the first synchronic command from second electronic equipment;
When not receiving the first synchronic command from second electronic equipment, by first radio-cell to Second electronic equipment sends the second synchronic command, so that second electronic equipment keeps same with first electronic equipment Step;
When receiving the first synchronic command from second electronic equipment, first synchronic command is analyzed, is obtained Obtain the second state corresponding with first synchronic command;
In second state and during the first state difference, by the current state of first electronic equipment from described First state is adjusted to second state.
Optionally, it is connected and is in second electronic equipment by communication in first electronic equipment Before first state, the method further includes:Obtain first between first electronic equipment and second electronic equipment Communication mode;When the first communication party formula is characterized as communication, the first shape of first electronic equipment is obtained State.
Optionally, the second electronic equipment, including processing unit, the processing unit passes through nothing in second electronic equipment Line communication mode is connected with first electronic equipment and is characterized as when being in five states in the first communication party formula wired During communication mode, the first state data from second electronic equipment are received by wire link;Based on first shape State data obtain the third state corresponding with the first state data, generate one first control instruction;Perform first control System instruction, the third state is adjusted to by the current state of first electronic equipment.
Optionally, the second electronic equipment, including processing unit, the processing unit passes through nothing in second electronic equipment Line communication mode is connected with first electronic equipment and is characterized as when being in five states in the first communication party formula wired During communication mode, the second control instruction is generated;Second control instruction is performed, by the current state of first radio-cell It is adjusted to off-position.
Optionally, it is described when not receiving the first synchronic command from second electronic equipment, pass through described One radio-cell sends the second synchronic command to second electronic equipment, specifically includes:It is not receiving from described second During the first synchronic command of electronic equipment, based on the first state, the second synchronic command is generated, wherein, described second is synchronous Instruction includes the 4th state corresponding with the first state of second electronic equipment;Pass through first radio-cell The second synchronic command is sent to second electronic equipment, so that the current state of second electronic equipment is adjusted to described the Four states.
Optionally, it is described by first radio-cell to second electronic equipment send the second synchronic command it Afterwards, the method further includes:By first radio-cell, the second status number from second electronic equipment is obtained According to;Judge whether second status data includes the 4th state;Do not include in the first state data described During four states, second synchronic command is sent by first radio-cell again to second electronic equipment, with The current state of second electronic equipment is made to be adjusted to the 4th state.
One embodiment of the invention provides a kind of method of data synchronization, applied to the second electronic equipment, second electricity Sub- equipment is connected by network link with the first electronic equipment, and second electronic equipment is provided with the second radio-cell, described Method includes:
It is connected in second electronic equipment by communication with first electronic equipment and in the 5th shape During state, detect whether to receive the 3rd synchronic command from first electronic equipment;
When not receiving three synchronic command from first electronic equipment, by second radio-cell to First electronic equipment sends the 4th synchronic command, so that first electronic equipment keeps same with second electronic equipment Step;
When receiving three synchronic command from first electronic equipment, the 3rd synchronic command is analyzed, is obtained Obtain the 6th state corresponding with the 3rd synchronic command;
In the 6th state and during the 5th state difference, by the current state of second electronic equipment from described 5th state is adjusted to the 6th state.
Optionally, it is connected and is in first electronic equipment by communication in second electronic equipment Before 5th state, the method further includes:Obtain second between second electronic equipment and first electronic equipment Communication mode;When the second communication method is characterized as communication, the 5th shape of second electronic equipment is obtained State.
Optionally, the second communication method between the acquisition second electronic equipment and first electronic equipment Afterwards, the method further includes:When the second communication method is characterized as wired communication mode, obtains second electronics and set The 7th standby state;Based on the 7th state, the 5th synchronic command is generated;By wire link to first electronic equipment The 5th synchronic command is sent, so that the current state of first electronic equipment is adjusted to corresponding with the 7th state Eight-shaped state.
Optionally, the second communication method between the acquisition second electronic equipment and first electronic equipment Afterwards, the method further includes:When the second communication method is characterized as wired communication mode, the 3rd control instruction is generated; The 3rd control instruction is performed, the current state of second radio-cell is adjusted to off-position.
Optionally, it is described when not receiving three synchronic command from first electronic equipment, pass through described Two radio-cells send the 4th synchronic command to first electronic equipment, specifically include:It is not receiving from described first During three synchronic command of electronic equipment, based on the 5th state, the 4th synchronic command is generated, wherein, the described 4th is synchronous Instruction includes the 9th state corresponding with the 5th state of first electronic equipment;Pass through second radio-cell The 4th synchronic command is sent to second electronic equipment, so that the current state of first electronic equipment is adjusted to institute State the 9th state.
Optionally, it is described by second radio-cell to first electronic equipment send the 4th synchronic command it Afterwards, the method further includes:By second radio-cell, the third state number from first electronic equipment is obtained According to;Judge whether the third state data include the 9th state;Do not include in the third state data described During nine states, the 4th synchronic command is sent by second radio-cell again to first electronic equipment, with The current state of the electronic equipment is made to be adjusted to the 9th state.
One embodiment of the invention additionally provides a kind of synchronous control system, is set including the first electronic equipment and the second electronics It is standby, first electronic equipment include display unit and the first radio-cell, second electronic equipment include processing unit and Second radio-cell, first electronic equipment are connected by network link with second electronic equipment, the system comprises:
First electronic equipment is being connected with second electronic equipment by communication and is being in first state When, for detecting whether receiving the first synchronic command from second electronic equipment, do not receiving from described During the first synchronic command of two electronic equipments, second is sent to second electronic equipment for passing through first radio-cell Synchronic command so that second electronic equipment is synchronous with the first electronic equipment holding, is being received from described second During the first synchronic command of electronic equipment, for analyzing first synchronic command, and obtain and first synchronic command pair The second state answered;In second state and during the first state difference, for by the current of first electronic equipment State is adjusted to second state from the first state;
Second electronic equipment is being connected with first electronic equipment by communication and is being in the 5th state When, for detecting whether receiving the 3rd synchronic command from first electronic equipment, do not receiving from described During three synchronic command of one electronic equipment, the 4th is sent to first electronic equipment for passing through second radio-cell Synchronic command so that first electronic equipment is synchronous with the second electronic equipment holding, is being received from described first During three synchronic command of electronic equipment, for analyzing the 3rd synchronic command, and obtain and the 3rd synchronic command pair The 6th state answered;In the 6th state and during the 5th state difference, for by the current of second electronic equipment State is adjusted to the 6th state from the 5th state.
The one or more technical solutions provided in the embodiment of the present application, have at least the following technical effects or advantages:
One, due to the embodiment of the present application be first electronic equipment pass through communication with described second electricity When sub- equipment connects and is in first state, detect whether to receive the first synchronic command from second electronic equipment, When not receiving first synchronic command, second is sent to second electronic equipment together by first radio-cell Step instruction, so that second electronic equipment is synchronous with the first electronic equipment holding;Synchronously refer to receiving described first When making, the current state of first electronic equipment is adjusted to second state from the first state, so that described One electronic equipment is synchronous with the second electronic equipment holding.By this method, first electronic equipment and described is promoted Second electronic equipment keeps synchronous, for example after tablet computer unlatching, does not receive the signal of system host, then by wireless Communication mode sends open command to system host, system host to be promoted to open, so user is without individually go open system Host so that user is more convenient to use, and the experience of user is more preferable.
Secondly, since the embodiment of the present application detecting first electronic equipment with second electronic equipment is to pass through When wired mode connects, by performing the control instruction, the current state of first radio-cell is adjusted to power-off shape State and the current state of second radio-cell is adjusted to off-position, i.e. to first radio-cell and described Second radio-cell is stopped power supply.It so, it is possible to reduce the power consumption of first electronic equipment and second electronic equipment, carry The cruising ability of high first electronic equipment and second electronic equipment further provides to the user conveniently, promotes user Experience it is more preferable.
Description of the drawings
Fig. 1 is the flow chart of the method for data synchronization in the application first embodiment;
Fig. 2 is the flow chart of the method for data synchronization in the application second embodiment;
Fig. 3 is the structure diagram of electronic equipment in the application first embodiment.
Specific embodiment
The embodiment of the present application is by providing a kind of method and electronic equipment of data synchronization, to solve in the prior art two The problem of nonsynchronous technical problem of state of a main body and the user thus brought are inconvenient to use, poor user experience.
For the technical solution of the embodiment of the present application to solve the problems, such as that above-mentioned inconvenient user uses, general thought is as follows:
It is connected in first electronic equipment by communication with second electronic equipment and in the first shape During state, detect whether to receive the first synchronic command from second electronic equipment, it is synchronous not receiving described first During instruction, the second synchronic command is sent to second electronic equipment by first radio-cell, so that second electricity Sub- equipment is synchronous with the first electronic equipment holding;When receiving first synchronic command, first electronics is set Standby current state is adjusted to second state from the first state, so that first electronic equipment and the described second electricity Sub- equipment keeps synchronous.By this method, promote first electronic equipment synchronous with the second electronic equipment holding, than Such as after tablet computer unlatching, do not receive the signal of system host, then by communication send open command to System host, system host to be promoted to open, so user is without individually removing open system host so that and user's use is more square Just, the experience of user is more preferable.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
One embodiment of the application provides a kind of method of data synchronization, applied to the first electronic equipment, first electricity Sub- equipment includes display unit and the first radio-cell, and first electronic equipment is connected by network link and the second electronic equipment It connects.
Wherein, first electronic equipment is, for example, the electronic equipments such as mobile phone, tablet computer, can also be and is equipped with wirelessly The display screen of module, the display unit are, for example, the electronic equipments such as liquid crystal display, touch-screen, the first radio-cell example The electronic equipments such as wireless network card, wireless communication module in this way, the network link are, for example, wire link connection, Radio Link company It connects.
It please refers to Fig.1, the described method includes:
Step 101:It is connected and locates with second electronic equipment by communication in first electronic equipment When first state, detect whether to receive the first synchronic command from second electronic equipment;
Step 102:When not receiving the first synchronic command from second electronic equipment, pass through first nothing Line unit sends the second synchronic command to second electronic equipment, so that second electronic equipment and first electronics are set It is standby to keep synchronous;
Step 103:When receiving the first synchronic command from second electronic equipment, analysis described first is synchronous Instruction obtains the second state corresponding with first synchronic command;
Step 104:In second state and the first state difference, by the current shape of first electronic equipment State is adjusted to second state from the first state.
Wherein, when performing step 101, communication and second electronics are passed through in first electronic equipment Equipment connects and before the first state, the method in the embodiment of the present application, it is also necessary to obtain first electronic equipment with First communication party formula between second electronic equipment, and judge whether the first communication party formula is communication, A judging result is obtained, decides whether to perform step 101 according to judging result, if the first communication party formula is characterized as wirelessly During communication mode, then step 101 is performed, i.e.,:It detects whether to receive the first synchronic command from second electronic equipment.
In specific implementation process, the connection between first electronic equipment and second electronic equipment is detected first Whether mode is communication, for example, after tablet computer unlatching, detect between tablet computer and system host whether Data cable is connected with, when there is data cable, then can determine that tablet computer with system host is connected by wired communication mode 's;If without data cable, it can determine that tablet computer with system host is connected by communication.
When tablet computer is connected with system host by communication, the current state for obtaining the tablet computer is First state, when tablet computer is in first state, since the first radio-cell of the tablet computer can be with system host It carries out wireless communication, therefore, from second electronic equipment whether can be received by first radio-cell One synchronic command, first synchronic command refer to the data for the current state for including system host.Wherein, first shape State is, for example, start shooting working condition, holding state, rebooting status, dormant state or off-mode etc., and the system host includes The electronic equipments such as laptop, desktop computer.
Wherein, when it is wired connection to detect between first electronic equipment and second electronic equipment, then lead to It crosses wire link and receives the first state data from second electronic equipment, then, based on the first state data, obtain The third state corresponding with the first state data is obtained, and generates one first control instruction, then, performs first control Instruction, the third state is adjusted to by the current state of first electronic equipment.
In specific implementation process, when tablet computer is connected with system host by wire link, first, by wired Link tablet computer can obtain the first state data of system host, then, by analyzing the first state data, determine System host current state is e.g. standby, shutdown or dormant state etc., and then, the current state based on system host determines The tablet computer third state corresponding with the current state, then by first control instruction, by the current of tablet computer State is adjusted to the third state.For example, system host is connected by wire link in tablet computer, and at the system host When holding state, then show that tablet computer should also be in holding state, thus through the above scheme by the tablet computer Current state be adjusted to holding state;If system host is in off-mode, also by the current state tune of the tablet computer Whole is off-mode.
After step 101 is performed, do not received from described the when obtained result characterizes first electronic equipment During the first synchronic command of two electronic equipments, then step 102 is performed, in this step, do not received from the described second electricity During the first synchronic command of sub- equipment, second is sent to second electronic equipment by first radio-cell and synchronously referred to Order, so that second electronic equipment is synchronous with the first electronic equipment holding.
In specific implementation process, if not receiving the first synchronic command from second electronic equipment, base In the first state, the second synchronic command can be generated, wherein, second synchronic command includes second electronic equipment The 4th state corresponding with the first state, can send the to second electronic equipment by first radio-cell The current state of second electronic equipment based on the second synchronic command, can be adjusted to the 4th state by two synchronic commands.
Specifically, when tablet computer is in first state, and first radio-cell does not receive control system master yet During the first synchronic command of machine, in the embodiment of the present application, first, based on the first state, generation includes system host Second synchronic command of the 4th state corresponding with the first state.In practical applications, in the first state of tablet computer For start working condition when, then the 4th state of system host for start working condition, at this point, generation the second synchronic command in Just the start working condition is included;If the first state of tablet computer is dormant state, the 4th state of system host Also it is dormant state, at this point, including the dormant state in the second synchronic command of generation;Then, it is synchronous by described second Instruction is sent to system host so that system host is based on the second synchronic command, and current state is adjusted to dormant state.
If the first state of tablet computer is off-mode, the 4th state of system host is also off-mode, at this point, First, the second synchronic command can be generated, wherein, the second synchronic command includes the off-mode, then, same by described second Step instruction is sent to system host so that system host is based on the second synchronic command, and current state is adjusted to off-mode;
If the first state of tablet computer is holding state, the 4th state of system host is also holding state, this When, first, the second synchronic command can be generated, wherein, the second synchronic command includes the holding state, then, by described Two synchronic commands are sent to system host so that system host is based on the second synchronic command, and current state is adjusted to standby shape State.
In actual application, when system host receives second synchronic command, the system host is judged Current state whether be the 4th state, system host current state be four state when, by system master The current state of machine is adjusted to the 4th state.For example, the second synchronic command that system host receives, analysis described second Synchronic command obtains the 4th state corresponding with second synchronic command as off-mode, and the current state of system host For working condition of starting shooting, then need the current state of system host being adjusted to off-mode from start working condition.So so that Tablet computer is synchronous with system host holding, tablet computer and system host is carried out without respectively individually operated so that user More convenient to use, the experience of user is more preferable.
After step 101 is performed, obtained result characterization first electronic equipment is received from the described second electricity First synchronic command of sub- equipment, then perform step 103, in this step, analyzes first synchronic command, obtain with it is described Corresponding second state of first synchronic command.It is identical with first electronic equipment in specific implementation process, based on described The current state of two electronic equipments generates the first synchronic command, and by first synchronic command by way of wireless communication It is sent to first electronic equipment so that first electronic equipment is by analyzing first synchronic command, described in acquisition Second state.Specifically, for example system host is in holding state, generates the first synchronic command, passes through wireless communication Mode is to tablet computer, and the wireless module of the tablet computer receives first synchronic command, to first synchronic command Analysis obtains the holding state as second state.
After step 103 is performed, step 104 is performed, in this step, judges second state whether with described the Whether the current first state of one electronics is identical, in second state and the first state difference, by the described first electricity The current state of sub- equipment is adjusted to second state from the first state;If the first state and second state It is identical, then the current state of first electronic equipment is not adjusted.
In specific implementation process, when tablet computer current state for start working condition, receive from system host The first synchronic command, and the second state corresponding with first synchronic command be holding state, due to start shooting working condition It is different from holding state, the current state of the tablet computer is adjusted to standby from start working condition by corresponding control instruction State;If the second state corresponding with first synchronic command is start working condition, due to second state and tablet The current state of computer is identical, then the current state of tablet computer is not adjusted.So so that tablet computer is in standby Or during sleep state, system host can be adjusted to standby or sleep state from start working condition automatically, without user again System host is adjusted so that the state synchronized of tablet computer and system host, user is more convenient to use, user experience More preferably.
In another embodiment, it is necessary to obtain first electronic equipment and the described second electricity before step 101 is performed First communication party formula between sub- equipment when the first communication party formula is characterized as wired communication mode, can also generate Two control instructions;Second control instruction is performed, the current state of first radio-cell is adjusted to off-position.
In specific implementation process, when it is to be connected by data cable with system host that tablet computer, which detects, i.e. tablet Computer is connected by wired communication mode with system host, then automatically generates the second control instruction, and performs the second control instruction, Stopping is powered the wireless module of tablet computer, so the power consumption of tablet computer can be reduced, improves the continuous of tablet computer Boat ability, user is using more preferably conveniently, experience is more preferable.
In another embodiment, after step 104 is performed, i.e. it is described by first radio-cell to described After second electronic equipment sends the second synchronic command, by first radio-cell, acquisition is set from second electronics The second standby status data;Judge whether second status data includes the 4th state;In second status number During according to not including four state, described is sent again to second electronic equipment by first radio-cell Two synchronic commands, so that the current state of second electronic equipment is adjusted to the 4th state.
In specific implementation process, when tablet computer is in holding state, by the wireless network card of tablet computer to system Host sends the second synchronic command so that the system host is similarly in holding state, send second synchronic command it Afterwards, by the communication between the wireless network card and the wireless module of the system host, the current of the system host can be obtained State, when the current state for detecting the system host is the state that start working condition, dormant state etc. are not holding state When, second synchronic command is sent to the system host by the wireless network card again, so that the system host is current State is adjusted to holding state.By this method, further such that first electronic equipment and second electronic equipment State keep synchronous, user is more convenient to use, and user experience is more preferable.
Another embodiment of the application provides a kind of method of data synchronization, applied to the second electronic equipment, described second Electronic equipment includes processing unit and the second radio-cell, and second electronic equipment passes through network link and the first electronic equipment Connection.
Wherein, second electronic equipment is, for example, the electronic equipments such as laptop, desktop computer, and described second is wireless Unit is, for example, the electronic equipments such as wireless network card, wireless communication module, and the network link is, for example, that wire link connects, is wireless Link connection etc..
It please refers to Fig.2, this method includes:
Step 201:It is connected and locates with first electronic equipment by communication in second electronic equipment When five states, detect whether to receive the 3rd synchronic command from first electronic equipment;
Step 202:When not receiving three synchronic command from first electronic equipment, pass through second nothing Line unit sends the 4th synchronic command to first electronic equipment, so that first electronic equipment is set with second electronics It is standby to keep synchronous;
Step 203:When receiving three synchronic command from first electronic equipment, analysis the described 3rd is synchronous Instruction obtains the 6th state corresponding with the 3rd synchronic command;
Step 204:In the 6th state and the 5th state difference, by the current shape of second electronic equipment State is adjusted to the 6th state from the 5th state.
Wherein, when performing step 201, communication and second electronics are passed through in first electronic equipment Equipment connects and before the first state, it is necessary to obtain the between first electronic equipment and second electronic equipment Two communication modes are judging whether the second communication method is communication, are deciding whether to hold according to judging result Row step 201 if the second communication method is characterized as communication, performs step 201, obtains second electricity 5th state of sub- equipment when second electronic equipment is in five states, detects whether to receive from described first 3rd synchronic command of electronic equipment.
Wherein, when the second communication method is characterized as wired communication mode, the of second electronic equipment is obtained Seven states based on the 7th state, generate the 5th synchronic command, and institute is sent to first electronic equipment by wire link The 5th synchronic command is stated, so that the current state of first electronic equipment is adjusted to eight-shaped corresponding with the 7th state State.
In actual application, second electronic equipment is by taking desktop computer as an example, when desktop computer passes through cable modem When letter mode is connected with tablet computer, the current state of desktop computer is obtained as dormant state, the 5th synchronic command is generated, and leads to It crosses wire link and the 5th synchronic command is sent to tablet computer, the current state of the tablet computer is adjusted to dormancy shape State.
After step 201 is performed, obtained result characterization second electronic equipment is not received from described first 3rd synchronic command of electronic equipment, then perform step 202, in this step, is set not receiving from first electronics During standby three synchronic command, based on the 5th state, the 4th synchronic command is generated, wherein, the 4th synchronic command bag Containing first electronic equipment the 9th state corresponding with the 5th state, by second radio-cell to described Second electronic equipment sends the 4th synchronic command, so that the current state of first electronic equipment is adjusted to the described 9th State.
After step 201 is performed, obtained result characterization second electronic equipment is received from the described second electricity 3rd synchronic command of sub- equipment, then perform step 203, in this step, is receiving from first electronic equipment During three synchronic commands, the 3rd synchronic command is analyzed, obtains the 6th state corresponding with the 3rd synchronic command.Having In body implementation process, for example tablet computer is in a dormant state, generates the 3rd synchronic command, is given by way of wireless communication Desktop computer, the wireless module of the desktop computer receive the 3rd synchronic command, and the 3rd synchronic command is analyzed, is obtained It must be as the dormant state of the 6th state.
After step 203 is performed, step 204 is performed, in this step, judges the 6th state whether with described the Whether the 5th current state of two electronic equipments is identical, in the 6th state and the 5th state difference, by described the The current state of two electronic equipments is adjusted to the 6th state from the 5th state;If the 6th state and the described 5th State is identical, then the current state of second electronic equipment is not adjusted.
In actual application, such as desktop computer is connected by way of wireless communication with tablet computer, and this Formula computer current state is start working condition, does not receive the of the transmission of tablet computer in the wireless module of the desktop computer During three synchronic commands, then the 4th synchronic command is sent by the wireless module of the desktop computer and give the tablet computer, if the tablet The current state of computer is off-mode, then by the 4th synchronic command, which automatically generates control instruction control The current state of the tablet computer is adjusted to start working condition by system from off-mode;It is connect in the wireless module of the desktop computer It, should if corresponding with the 3rd synchronic command when being off-mode when receiving three synchronic command of tablet computer transmission Desktop computer automatically generates control instruction and the current state of the desktop computer is adjusted to off-mode from start working condition.Such as This so that tablet computer is synchronous with system host holding, tablet computer and system host is carried out without respectively individually operated, makes User it is more convenient to use, the experience of user is more preferable.
In another embodiment, it is necessary to obtain second electronic equipment and the described first electricity before step 201 is performed Second communication method between sub- equipment when the second communication method is characterized as wired communication mode, can also generate Three control instructions;The 3rd control instruction is performed, the current state of second radio-cell is adjusted to off-position.
In specific implementation process, when it is to be connected by data cable with tablet computer that desktop computer, which detects, i.e. desk-top Computer is connected by wired communication mode with tablet host, then automatically generates the 3rd control instruction, and performs the 3rd control instruction, Stopping is powered the wireless module of desktop computer, so the power consumption of desktop computer can be reduced, improves the continuous of desktop computer Boat ability, user is using more preferably conveniently, experience is more preferable.
In another embodiment, after performing step 204, i.e. it is described by second radio-cell to described After first electronic equipment sends the 4th synchronic command, by second radio-cell, acquisition is set from first electronics Standby third state data;Judge whether the third state data include the 9th state;In the third state number During according to not including nine state, described is sent again to first electronic equipment by second radio-cell Four synchronic commands, so that the current state of first electronic equipment is adjusted to the 9th state.
In specific implementation process, when desktop computer is in holding state, by the wireless WIFI of desktop computer to tablet Computer sends the 4th synchronic command so that the tablet computer is similarly in holding state, send the 4th synchronic command it Afterwards, by the communication between the wireless WIFI and the wireless network card of the tablet computer, the current of the tablet computer can be obtained State, when the current state for detecting the tablet computer is the state that start working condition, dormant state etc. are not holding state When, the 4th synchronic command is sent to the tablet computer by the wireless WIFI again, so that the tablet computer is current State is adjusted to holding state.By this method, further such that first electronic equipment and second electronic equipment State keep synchronous, user is more convenient to use, and user experience is more preferable.
One embodiment of the invention additionally provides a kind of synchronous control system, is set including the first electronic equipment and the second electronics It is standby, first electronic equipment include display unit and the first radio-cell, second electronic equipment include processing unit and Second radio-cell, first electronic equipment are connected by network link with second electronic equipment.
Wherein, first electronic equipment is, for example, the electronic equipments such as mobile phone, tablet computer, can also be and is equipped with wirelessly The display screen of module, the display unit are, for example, the electronic equipments such as liquid crystal display, touch-screen, the first radio-cell example The electronic equipments such as wireless network card, wireless communication module in this way;Second electronic equipment includes processing unit and the second wireless list Member, second electronic equipment are, for example, the electronic equipments such as laptop, desktop computer, and second radio-cell is, for example, The electronic equipments such as wireless network card, wireless communication module, the processing unit are, for example, individual processor, can also be integrated in place It manages in device, the network link is, for example, wire link connection, Radio Link connection etc..
Referring to Fig. 3, which includes:
First electronic equipment 301 including display unit 303, passes through communication and in the first electronic equipment 301 When two electronic equipments 401 connect and are in first state, for detecting whether receiving first from the second electronic equipment 401 Synchronic command, when not receiving the first synchronic command from the second electronic equipment 401, for passing through the first radio-cell 302 send the second synchronic command to the second electronic equipment 401, so that the second electronic equipment 401 is kept with the first electronic equipment 301 It is synchronous;When receiving the first synchronic command from the second electronic equipment 401, for analyzing first synchronic command, and Obtain the second state corresponding with first synchronic command;In second state and the first state difference, it is used for The current state of first electronic equipment 301 is adjusted to second state from the first state;
Second electronic equipment 401, including processing unit 403, processing unit 403 is in the second electronic equipment 401 by wireless When communication mode is connected with the first electronic equipment 301 and is in five states, for detecting whether receiving from the first electronics 3rd synchronic command of equipment 301, when not receiving three synchronic command from the first electronic equipment 301, for passing through Second radio-cell 402 sends the 4th synchronic command to the first electronic equipment 301, so that the first electronic equipment 301 and the second electricity Sub- equipment 401 keeps synchronous;When receiving three synchronic command from the first electronic equipment 301, for analyzing described Three synchronic commands, and obtain the 6th state corresponding with the 3rd synchronic command;In the 6th state and the 5th shape During state difference, for the current state of the second electronic equipment 401 to be adjusted to the 6th state from the 5th state.
Wherein, the first electronic equipment 301 includes first state obtaining unit, passes through channel radio in first electronic equipment Letter mode is connected with second electronic equipment and before first state, for obtain first electronic equipment with it is described First communication party formula between second electronic equipment, when the first communication party formula is characterized as communication, for obtaining Obtain the first state of first electronic equipment.
Further, the first state obtaining unit includes first state adjustment unit, in the first communication party formula When being characterized as wired communication mode, for receiving the first state data from second electronic equipment by wire link, And based on the first state data, for obtaining the third state corresponding with the first state data, and generate one first Control instruction, then first control instruction is performed, for the current state of first electronic equipment to be adjusted to described Three condition.
Further, the first electronic equipment 301 includes the first synchronic command transmitting element, is not receiving from described the During the first synchronic command of two electronic equipments, based on the first state, for generating the second synchronic command, wherein, described Two synchronic commands include the 4th state corresponding with the first state of second electronic equipment and for passing through It states the first radio-cell and sends the second synchronic command to second electronic equipment, so that the current shape of second electronic equipment State is adjusted to the 4th state.
Further, processing unit 403 includes the second state obtaining unit, passes through channel radio in second electronic equipment Letter mode is connected with first electronic equipment and before the 5th state, for obtain second electronic equipment with it is described Second communication method between first electronic equipment, when the second communication method is characterized as communication, for obtaining Obtain the 5th state of second electronic equipment.
Further, the second state obtaining unit includes the second state adjustment unit, in the second communication method When being characterized as wired communication mode, for obtaining the 7th state of second electronic equipment, and based on the 7th state, use Synchronously refer to first electronic equipment transmission the described 5th in the 5th synchronic command of generation and for passing through wire link Order, so that the current state of first electronic equipment is adjusted to eight-shaped state corresponding with the 7th state.
Further, processing unit 403 includes the second synchronic command transmitting element, is not receiving from the described first electricity During three synchronic command of sub- equipment, based on the 5th state, for generating the 4th synchronic command, wherein, the described 4th is same Step instruction includes the 9th state corresponding with the 5th state of first electronic equipment and for passing through described the Two radio-cells send the 4th synchronic command to second electronic equipment, so that the current shape of first electronic equipment State is adjusted to the 9th state.
In one embodiment, such as using tablet computer it is the first electronic equipment and system host for the second electronic equipment, If tablet computer is communicated by communication with system host, the current state of tablet computer is start work shape State, the current state of system host is dormant state;When tablet computer be not detected system host transmission the first synchronic command, Then tablet computer sends the second synchronic command to system host, after system host receives second synchronic command, generation Corresponding first instruction performs first instruction and the current state of system host is adjusted to start work shape from sleep mode State;If tablet computer detects the first synchronic command that system host is sent, corresponding second can be generated and instructed, described in execution The current state of tablet computer is adjusted to dormant state by the second instruction from start working condition.
In another embodiment, the first state obtaining unit includes third state adjustment unit, logical described first When letter mode is characterized as wired communication mode, for generating the second control instruction, and second control instruction is performed, for inciting somebody to action The current state of first radio-cell is adjusted to off-position.
In another embodiment, the first electronic equipment 301 includes the 3rd synchronic command transmitting element, described by described First radio-cell is after second electronic equipment sends the second synchronic command, for passing through first radio-cell, Obtain the second status data from second electronic equipment and for judging whether second status data includes 4th state, it is wireless single for passing through described first when the first state data do not include four state Member sends second synchronic command again to second electronic equipment, so that the current state tune of second electronic equipment It is whole to arrive the 4th state.
In another embodiment, the second state obtaining unit includes the 4th state adjustment unit, logical described second When letter mode is characterized as wired communication mode, for generating the 3rd control instruction and performing the 3rd control instruction, for inciting somebody to action The current state of second radio-cell is adjusted to off-position.
In another embodiment, the second electronic equipment 401 includes the 4th synchronic command transmitting element, described by described Second radio-cell is after first electronic equipment sends the 4th synchronic command, for passing through second radio-cell, Obtain third state data from first electronic equipment and for judging whether the third state data include 9th state, it is wireless single for passing through described second when the third state data do not include nine state Member sends the 4th synchronic command again to first electronic equipment, so that the current state of the electronic equipment is adjusted to 9th state.
Technical solution in above-mentioned the embodiment of the present application, at least has the following technical effect that or advantage:
One, due to the embodiment of the present application be first electronic equipment pass through communication with described second electricity When sub- equipment connects and is in first state, detect whether to receive the first synchronic command from second electronic equipment, When not receiving first synchronic command, second is sent to second electronic equipment together by first radio-cell Step instruction, so that second electronic equipment is synchronous with the first electronic equipment holding;Synchronously refer to receiving described first When making, the current state of first electronic equipment is adjusted to second state from the first state, so that described One electronic equipment is synchronous with the second electronic equipment holding.By this method, first electronic equipment and described is promoted Second electronic equipment keeps synchronous, for example after tablet computer unlatching, does not receive the signal of system host, then by wireless Communication mode sends open command to system host, system host to be promoted to open, so user is without individually go open system Host so that user is more convenient to use, and the experience of user is more preferable.
Secondly, since the embodiment of the present application detecting first electronic equipment with second electronic equipment is to pass through When wired mode connects, by performing the control instruction, the current state of first radio-cell is adjusted to power-off shape State and the current state of second radio-cell is adjusted to off-position, i.e. to first radio-cell and described Second radio-cell is stopped power supply.It so, it is possible to reduce the power consumption of first electronic equipment and second electronic equipment, carry The cruising ability of high first electronic equipment and second electronic equipment further provides to the user conveniently, promotes user Experience it is more preferable.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (13)

1. a kind of method of data synchronization, applied to the first electronic equipment, first electronic equipment includes display unit and the One radio-cell, first electronic equipment are connected by network link with the second electronic equipment, which is characterized in that the method Including:
When first electronic equipment is connected by communication with second electronic equipment and is in first state, It detects whether to receive the first synchronic command from second electronic equipment;
When not receiving the first synchronic command from second electronic equipment, by first radio-cell to described Second electronic equipment sends the second synchronic command, so that second electronic equipment is synchronous with the first electronic equipment holding;
When receiving the first synchronic command from second electronic equipment, analyze first synchronic command, obtain with Corresponding second state of first synchronic command;
In second state and during the first state difference, by the current state of first electronic equipment from described first State is adjusted to second state.
2. the method as described in claim 1, which is characterized in that pass through communication and institute in first electronic equipment State the connection of the second electronic equipment and before first state, the method further includes:
Obtain the first communication party formula between first electronic equipment and second electronic equipment;
When the first communication party formula is characterized as communication, the first state of first electronic equipment is obtained.
3. method as claimed in claim 2, which is characterized in that obtain first electronic equipment and the described second electricity described After first communication party formula between sub- equipment, the method further includes:
When the first communication party formula is characterized as wired communication mode, is received by wire link and set from second electronics Standby first state data;
Based on the first state data, the third state corresponding with the first state data, one first control of generation are obtained Instruction;
First control instruction is performed, the current state of first electronic equipment is adjusted to the third state.
4. method as claimed in claim 2, which is characterized in that obtain first electronic equipment and the described second electricity described After first communication party formula between sub- equipment, the method further includes:
When the first communication party formula is characterized as wired communication mode, the second control instruction is generated;
Second control instruction is performed, the current state of first radio-cell is adjusted to off-position.
5. the method as described in claim 1, which is characterized in that described not receive from second electronic equipment During one synchronic command, the second synchronic command is sent to second electronic equipment by first radio-cell, is specifically included:
When not receiving the first synchronic command from second electronic equipment, based on the first state, generation second Synchronic command, wherein, second synchronic command includes corresponding with the first state the of second electronic equipment Four states;
Second synchronic command is sent to second electronic equipment by first radio-cell, so that second electronics is set Standby current state is adjusted to the 4th state.
6. method as claimed in claim 5, which is characterized in that described electric to described second by first radio-cell After sub- equipment sends the second synchronic command, the method further includes:
By first radio-cell, the second status data from second electronic equipment is obtained;
Judge whether second status data includes the 4th state;
It is electric to described second by first radio-cell when the first state data do not include four state Sub- equipment sends second synchronic command again, so that the current state of second electronic equipment is adjusted to the 4th shape State.
7. a kind of method of data synchronization, applied to the second electronic equipment, second electronic equipment passes through network link and One electronic equipment connects, and second electronic equipment is provided with the second radio-cell and processing unit, which is characterized in that the side Method includes:
When second electronic equipment is connected by communication with first electronic equipment and is in five states, It detects whether to receive the 3rd synchronic command from first electronic equipment;
When not receiving three synchronic command from first electronic equipment, by second radio-cell to described First electronic equipment sends the 4th synchronic command, so that first electronic equipment is synchronous with the second electronic equipment holding;
When receiving three synchronic command from first electronic equipment, analyze the 3rd synchronic command, obtain with Corresponding 6th state of 3rd synchronic command;
In the 6th state and during the 5th state difference, by the current state of second electronic equipment from the described 5th State is adjusted to the 6th state.
8. the method for claim 7, which is characterized in that pass through communication and institute in second electronic equipment State the connection of the first electronic equipment and before the 5th state, the method further includes:
Obtain the second communication method between second electronic equipment and first electronic equipment;
When the second communication method is characterized as communication, the 5th state of second electronic equipment is obtained.
9. method as claimed in claim 8, which is characterized in that obtain second electronic equipment and the described first electricity described After second communication method between sub- equipment, the method further includes:
When the second communication method is characterized as wired communication mode, the 7th state of second electronic equipment is obtained;
Based on the 7th state, the 5th synchronic command is generated;
5th synchronic command is sent to first electronic equipment by wire link, so that first electronic equipment Current state is adjusted to eight-shaped state corresponding with the 7th state.
10. method as claimed in claim 8, which is characterized in that obtain second electronic equipment and described first described After second communication method between electronic equipment, the method further includes:
When the second communication method is characterized as wired communication mode, the 3rd control instruction is generated;
The 3rd control instruction is performed, the current state of second radio-cell is adjusted to off-position.
11. the method for claim 7, which is characterized in that described not receive from first electronic equipment During three synchronic commands, the 4th synchronic command is sent to first electronic equipment by second radio-cell, it is specific to wrap It includes:
When not receiving three synchronic command from first electronic equipment, based on the 5th state, generation the 4th Synchronic command, wherein, the 4th synchronic command includes corresponding with the 5th state the of first electronic equipment Nine states;
4th synchronic command is sent to second electronic equipment by second radio-cell, so that first electricity The current state of sub- equipment is adjusted to the 9th state.
12. method as claimed in claim 11, which is characterized in that it is described by second radio-cell to described first After electronic equipment sends the 4th synchronic command, the method further includes:
By second radio-cell, the third state data from first electronic equipment are obtained;
Judge whether the third state data include the 9th state;
It is electric to described first by second radio-cell when the third state data do not include nine state Sub- equipment sends the 4th synchronic command again, so that the current state of the electronic equipment is adjusted to the 9th state.
13. a kind of synchronous control system, including the first electronic equipment and the second electronic equipment, first electronic equipment includes aobvious Show unit and the first radio-cell, second electronic equipment includes processing unit and the second radio-cell, first electronics Equipment is connected by network link with second electronic equipment, which is characterized in that the system comprises:
First electronic equipment is connected and located with second electronic equipment by communication in first electronic equipment When first state, for detecting whether receiving the first synchronic command from second electronic equipment, do not receiving During the first synchronic command from second electronic equipment, set for passing through first radio-cell to second electronics Preparation send the second synchronic command, so that second electronic equipment is synchronous with the first electronic equipment holding, comes receiving From the first synchronic command of second electronic equipment when, for analyzing first synchronic command, and obtain and described first Corresponding second state of synchronic command;In second state and during the first state difference, for by first electronics The current state of equipment is adjusted to second state from the first state;
Second electronic equipment is connected and located with first electronic equipment by communication in second electronic equipment When five states, for detecting whether receiving the 3rd synchronic command from first electronic equipment, do not receiving During three synchronic command from first electronic equipment, set for passing through second radio-cell to first electronics Preparation send the 4th synchronic command, so that first electronic equipment is synchronous with the second electronic equipment holding, comes receiving From three synchronic command of first electronic equipment when, for analyzing the 3rd synchronic command, and obtain and the described 3rd Corresponding 6th state of synchronic command;In the 6th state and during the 5th state difference, for by second electronics The current state of equipment is adjusted to the 6th state from the 5th state.
CN201210348119.9A 2012-09-18 2012-09-18 The method and synchronous control system of data synchronization Active CN103678006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210348119.9A CN103678006B (en) 2012-09-18 2012-09-18 The method and synchronous control system of data synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210348119.9A CN103678006B (en) 2012-09-18 2012-09-18 The method and synchronous control system of data synchronization

Publications (2)

Publication Number Publication Date
CN103678006A CN103678006A (en) 2014-03-26
CN103678006B true CN103678006B (en) 2018-06-01

Family

ID=50315658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210348119.9A Active CN103678006B (en) 2012-09-18 2012-09-18 The method and synchronous control system of data synchronization

Country Status (1)

Country Link
CN (1) CN103678006B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181616B (en) * 2020-07-24 2021-11-19 华为技术有限公司 Task processing method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526491A (en) * 1992-09-22 1996-06-11 International Business Machines Corporation System and method for calling selected service procedure remotely by utilizing conditional construct switch statement to determine the selected service procedure in common stub procedure
CN1420413A (en) * 2001-11-21 2003-05-28 联想(北京)有限公司 Method and device for controlling simultaneous turn-on and trun-off of computer host and display
CN101155015A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Synchronization method for data and condition between host computer and standby computer
CN101697245A (en) * 2009-09-30 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Home appliance control method, home appliance control device and mobile terminal
CN102436559A (en) * 2010-09-29 2012-05-02 联想(北京)有限公司 State switching method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526491A (en) * 1992-09-22 1996-06-11 International Business Machines Corporation System and method for calling selected service procedure remotely by utilizing conditional construct switch statement to determine the selected service procedure in common stub procedure
CN1420413A (en) * 2001-11-21 2003-05-28 联想(北京)有限公司 Method and device for controlling simultaneous turn-on and trun-off of computer host and display
CN101155015A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Synchronization method for data and condition between host computer and standby computer
CN101697245A (en) * 2009-09-30 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Home appliance control method, home appliance control device and mobile terminal
CN102436559A (en) * 2010-09-29 2012-05-02 联想(北京)有限公司 State switching method and system

Also Published As

Publication number Publication date
CN103678006A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN106793044B (en) It is a kind of to realize the method for bluetooth security equipment low-power consumption standby and bluetooth security equipment
CN103167151A (en) Automatic screen-locking system and method for mobile phone placed in pocket
CN104866063B (en) A kind of method and electronic equipment of information processing
CN204364794U (en) Spring-grip and grip data monitoring system thereof
CN106648028A (en) Wearable intelligent terminal power source management method and device
CN203057224U (en) Wireless external mobile screen and display control system
CN106371938B (en) Smart delays auto shutdown system and its method
CN1991683A (en) Notebook computer
CN202421945U (en) Separable laptop
TW201351156A (en) Electronic apparatuses and related controlling methods and computer program products thereof
CN102937928A (en) Main board sleeping and waking device
CN107493595A (en) A kind of low-power consumption safety certification device and control method
CN103678006B (en) The method and synchronous control system of data synchronization
CN105094281A (en) Control method and control module used for controlling display device and display device
CN107066073A (en) A kind of control method and electronic equipment
CN105141714A (en) First mobile equipment, external equipment and second mobile equipment
TW201017393A (en) Embedded system with power-saving function and power-saving method thereof
CN104049677B (en) A kind of electronic equipment and control method
CN202995534U (en) Expanding docking station adopting television as main body
CN107562176A (en) A kind of Automated library system energy-saving control system
CN103853305B (en) A kind of method for managing power supply and electronic equipment
CN210666690U (en) Head-mounted device and display screen protection system thereof
CN203203978U (en) Alcohol content monitor capable of carrying out data transmission based on earphone
CN107066065A (en) A kind of control method and electronic equipment
CN104810889B (en) A kind of charging base of smart machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant