The method of synchronizing information between master-slave equipment
Technical field
The present invention relates to the methods of synchronizing information between electronic communication field more particularly to master-slave equipment.
Background technique
With the development of electronic communication technology, it is very general that one family even individual possesses more mobile devices simultaneously
Time, then generally requiring to be configured to working group to carry out information transmitting between each other between multiple devices.Such as taking down notes
It, can be using laptop as main equipment, using mobile phone as from equipment, when will be in laptop between this computer and mobile phone
Information pass to mobile phone after, so that it may checked using mobile phone and be originally stored in information in laptop, user is using very
It is convenient.With computerized standard software and hardware and the high speed development of Internet technology, the form of wearable smart machine is opened
Beginning becomes diversification, gradually shows important researching value in the numerous areas such as industry, medical treatment, military, education, amusement and answers
Use potentiality.However, the characteristics of wearable device is due to its compact, portability and personal high-specificity, can often wear
Wear the hardware or software configuration that a full set as laptop or mobile phone in formula equipment and is unnecessarily set.In the prior art,
Synchronizing most of for master-slave equipment is all that main equipment will not go to judge the specific hardware configuration from equipment in advance, application program,
The state of memory and information is transmitted directly to from equipment.It is had the disadvantage that in this way without showing equipment such as from equipment,
It may result in this way and have no idea to check after receiving information from equipment.Difficult enough broadcastings are for another example fitted without from equipment
The software of ape format, this this may result in main equipment and issues ape formatted file from equipment, has no idea to check from equipment.Again
Such as it is less than the main equipment information to be sent from the memory capacity in equipment, this will lead to receive background storage from equipment to be deposited
Completely lead to exception.
Summary of the invention
The object of the present invention is to provide a kind of methods of synchronizing information between master-slave equipment.
The method of synchronizing information between master-slave equipment provided by the present invention, comprising: main equipment and establish communication link from equipment
It connects;Main equipment detects the configuration information from equipment;Main equipment judges to deliver letters from the configuration information of equipment and the pending of main equipment
Whether breath matches;If main equipment judges to mismatch from the configuration information of equipment and the information to be sent of main equipment, then main equipment exists
Information to be sent is sent to before equipment, further includes that information to be sent is converted into its format and matching from equipment by main equipment
The matched information of confidence manner of breathing.
Before whether the main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment, also wrap
Include: the quantity of the slave equipment of communication connection is established in main equipment detection with the main equipment;And it is communicated to connect when being established with main equipment
Slave equipment quantity be one when;Or and when with main equipment establish communication connection slave equipment quantity be two or two with
When above and these are belonging respectively to two or more users from equipment;Execute again main equipment judge from the configuration information of equipment with
Whether the information to be sent of main equipment matches;As main equipment judges from the information to be sent of the configuration information of equipment and main equipment not
Matching, then main equipment is sent to before equipment by information to be sent, further includes that information to be sent is converted into it by main equipment
The information that format matches with the configuration information from equipment.
Before whether the main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment, also wrap
Include: the quantity of the slave equipment of communication connection is established in main equipment detection with the main equipment;And it is communicated to connect when being established with main equipment
The quantity of slave equipment be two or more and these when belonging to the same user from equipment, successively execute: main equipment will
One of them is determined as mainly from equipment from equipment;In main equipment and mainly from execution main equipment detection between equipment and the master
Equipment establishes the quantity of the slave equipment of communication connection;And when the quantity for the slave equipment for establishing communication connection with main equipment is one
When, it executes main equipment and judges whether match from the configuration information of equipment and the information to be sent of main equipment;As main equipment judge from
The information to be sent of the configuration information of equipment and main equipment mismatches, then main equipment by information to be sent be sent to from equipment it
Before, further including main equipment is converted into the information that its format matches with the configuration information from equipment for information to be sent.
The method of synchronizing information between master-slave equipment of the present invention, further includes: judge main equipment whether be for the first time with from
Equipment establishes connection;When main equipment is with from equipment to establish connection for the first time, main equipment acquisition is gone forward side by side from the configuration information of equipment
Row saves;When main equipment with from equipment be it is non-establish connection for the first time when, main equipment is not necessarily to obtain configuration information from equipment again
And saved, main equipment need to only read the configuration information of the slave equipment of its storage;
Judge from the whether updated configuration information of equipment, when configuration information updated from equipment, main equipment is obtained from setting
Standby configuration information is simultaneously saved.
The main equipment judges the step of whether matching from the configuration information of equipment and the information to be sent of main equipment, packet
It includes:
When information to be sent is audio format data, includes receiver device configuration information from the configuration information of equipment or raise
When sound device device configuration information, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;When to
It does not include in receiver device configuration information or loudspeaker apparatus configuration information from equipment when transmission information is audio format data
When any, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment.
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including receiver device configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;Or when information to be sent be video formatted data when, from the configuration information of equipment include display module device configuration information and
When including loudspeaker apparatus configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;When information to be sent be video formatted data when, do not meet from equipment both include display module device configuration information and including
Receiver device configuration information, or do not meet from equipment and both include display module device configuration information and match including loudspeaker apparatus
When confidence ceases, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment.
It include display module device configuration information from the configuration information of equipment when information to be sent is picture format data
When, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;When information to be sent is picture lattice
When formula from the configuration information of equipment does not include display module device configuration information, main equipment judge from the configuration information of equipment with
The information to be sent of main equipment does not match that.
It does not include display module device configuration letter from the configuration information of equipment when information to be sent is Document type data
When breath, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment.
The present invention solve in the prior art master-slave equipment configuration it is inconsistent, can not from equipment after causing master-slave equipment to synchronize
It executes, play, showing or storing the slave equipment for allowing user to utilize lower configuration to inconvenience caused by user security risk, to obtain more masters
Facility information;The invention avoids the waste of system resource caused by unnecessary transmission, can be improved equipment service life and
Utilization rate.
Detailed description of the invention
The flow chart of the embodiment of the method one of Fig. 1 synchronizing information between master-slave equipment provided by the invention.
The flow chart of the embodiment of the method two of Fig. 2 synchronizing information between master-slave equipment provided by the invention.
The flow chart of the embodiment of the method three of Fig. 3 synchronizing information between master-slave equipment provided by the invention.
The flow chart of the embodiment of the method four of Fig. 4 synchronizing information between master-slave equipment provided by the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
The embodiment of the present invention one, instead of all the embodiments.Based on the embodiment in invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Embodiment one
The flow chart of the embodiment of the method one of Fig. 1 synchronizing information between master-slave equipment provided by the invention, as shown in Figure 1,
The method of synchronizing information includes: between master-slave equipment in the present embodiment
Step 101, main equipment and from equipment establish communicate to connect;
Step 102, main equipment detect the configuration information from equipment;It will be understood by those skilled in the art that the configuration
Information includes hardware configuration information and software configuration information;Hardware configuration information may include hardware device parameter, hardware device
Model etc.;Software configuration information may include software version number, username information, work item information etc..
Step 103, main equipment judge whether match from the configuration information of equipment and the information to be sent of main equipment;As master sets
Standby to judge to mismatch from the configuration information of equipment and the information to be sent of main equipment, then main equipment is sent to by information to be sent
Before equipment, further include,
Information to be sent is converted into the information that its format matches with the configuration information from equipment by step 104, main equipment.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge whether main equipment is to establish connection with from equipment for the first time, is to establish connection for the first time when main equipment and from equipment
When, main equipment obtains the configuration information from equipment and is saved;
It will be understood by those skilled in the art that this equipment is obtained from the configuration information of equipment, comprising: main equipment first to from
Equipment issues the request for sending configuration information, and when main equipment does not receive from the configuration information that equipment issues, main equipment passes through cloud
End obtains the configuration information from equipment and is saved;
When main equipment with from equipment be it is non-establish connection for the first time when, main equipment is not necessarily to obtain configuration information from equipment again
And saved, main equipment need to only read the configuration information of the slave equipment of its storage.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge from the whether updated configuration information of equipment, when configuration information updated from equipment, main equipment is obtained from setting
Standby configuration information is simultaneously saved.
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
When information to be sent is audio format data, includes receiver device configuration information from the configuration information of equipment or raise
When sound device device configuration information, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
It does not include receiver device configuration information or loudspeaker apparatus from equipment when information to be sent is audio format data
When any one of configuration information, main equipment judges from the information to be sent of the configuration information of equipment and main equipment not phase
Match;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including receiver device configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;Or
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including loudspeaker apparatus configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;
When information to be sent be video formatted data when, do not meet from equipment both include display module device configuration information and
Including receiver device configuration information, or does not meet from equipment and both include display module device configuration information and set including loudspeaker
When standby configuration information, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is picture format data
When, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
When information to be sent is picture format, from the configuration information of equipment does not include display module device configuration information,
Main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It does not include display module device configuration letter from the configuration information of equipment when information to be sent is Document type data
When breath, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of audio format data is converted to the information to be sent of Document type data.Those skilled in the art
Member is it is appreciated that the audio format includes MP3 format, WMA format, WAV format, MOD format and CD format etc..Work as master
It is stored with the information to be sent of these audio format datas in equipment, but main equipment and is not detected to have from equipment and can play sound
When the device configuration information of frequency formatted data, such as the information to be sent of audio format data is transmitted directly to from equipment, from setting
It is standby to play, then the cruising ability of main equipment and system resource, reduction equipment from equipment is not only consumed, user is returned and makes
At unnecessary trouble, the service life and utilization rate of equipment are reduced.The embodiment of the present invention is by the pending of audio format data
Breath of delivering letters, which is converted to, to be then forwarded to after the information to be sent of Document type data from equipment, and user can be by from equipment display text
Formatted data equally can receive message entrained by the audio format data information, allow user using lower configuration from setting
It is standby, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of video formatted data is converted to the information to be sent or picture format number of audio format data
According to information to be sent;It will be understood by those skilled in the art that common video format includes mp4 format, avi format, 3gp lattice
Formula, ape format, rm format and rmvb format etc..When the information to be sent for being stored with these video formatted datas in main equipment, but
Main equipment is simultaneously not detected to have from equipment and (not while matching from equipment when the device configuration information that can play video formatted data
When setting display module and loudspeaker, or not configuring display module and earpiece simultaneously from equipment), such as by the pending of video formatted data
Breath of delivering letters is transmitted directly to from equipment, can not play the video data from equipment, then not only consumes main equipment and from equipment
System resource, the cruising ability for reducing equipment, return user and cause unnecessary trouble, reduce the service life and benefit of equipment
With rate.The embodiment of the present invention sends out the information to be sent that the information to be sent of video formatted data is converted to audio format data again
It gives from equipment, user can play the audio format data by loudspeaker from equipment or earpiece;Or by video format number
According to information to be sent be converted to the information to be sent of picture format data, user can be by showing this from the display module of equipment
Picture format data;In this way, user can receive message entrained by the video formatted data information, user is allowed to match using lower
The slave equipment set, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent for the file format not matched that with the application program from equipment is converted to and answering from equipment
With the information to be sent for the file format that program matches;It will be understood by those skilled in the art that the information to be sent can be with
For text formatting, video format or picture format.It will be understood by those skilled in the art that the text formatting, which refers to, to be handled
The format of ASSIC code information, common text formatting include: doc format, txt format and docx format etc.;Common picture
Format includes: BMP format, PCX format, tiff format, GIF format and jpeg format etc..Pending when main equipment is delivered letters
When the format of breath from the application program of equipment with mismatching, such as directly sends that information to from equipment, can not be executed from equipment,
Not only consume main equipment and system resource from equipment, the cruising ability for reducing equipment, return user cause it is unnecessary
Trouble, reduces the service life and utilization rate of equipment.Originally method provided by embodiment is put, is sent that information in main equipment
Before equipment, first converts this information into the information to be sent of file format for being suitable for executing from equipment and be then forwarded to from setting
It is standby, in order to execute the information to be sent of this document format from equipment.If the information to be sent in main equipment is PDF format, and
It is only configured with the application program of real text formatting from the device, such as notepad or word, at this moment main equipment can be first by PDF format
File be switched to text formatting, then issue from equipment execute.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
By the information to be sent for the file format not matched that with the display resolution from equipment be converted to from equipment
The information to be sent of file format that matches of display resolution.It will be understood by those skilled in the art that being set in time in master
It is standby and all have display screen from equipment, it can show picture or text formatting, but various sizes of display screen has difference
Resolution ratio, the information of file format for being suitble to main equipment to show is transmitted directly to from equipment, may be with the resolution ratio from equipment
It does not match that, so that preferable display effect cannot be reached.Thus, it is being sent to before equipment, main equipment is first by its file
The information to be sent of format be converted to be suitable for showing from device display screen with the format that matches from device display screen resolution ratio,
To make from the display effect of equipment more preferably convenient for user's viewing, to read, enhance user experience.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
It is that capacity is equal to or less than from equipment storage that capacity, which is greater than from the Information Compression to be sent of device storage capacity,
The information to be sent of capacity;It will be understood by those skilled in the art that when being less than information to be sent from the memory capacity of equipment, it is main
Equipment will be unable to the completing to have begun transmission of the task, this equally will cause the waste of system resource, reduces the continuation of the journey energy of equipment
Power returns user and causes unnecessary trouble, reduces the service life and utilization rate of equipment.Provided by the embodiment of the present invention
Method, can first learn the memory capacity from equipment before starting transmission task, and by Information Compression to be sent to achievable biography
Capacity that is defeated and storing, avoids the midway of transmission task from failing, provides the user with convenience.
Embodiment two
The flow chart of the embodiment of the method two of Fig. 2 synchronizing information between master-slave equipment provided by the invention, as shown in Fig. 2,
The method of synchronizing information includes: between master-slave equipment in the present embodiment
Step 201, main equipment and from equipment establish communicate to connect;
Step 202, main equipment detect the configuration information from equipment;It will be understood by those skilled in the art that the configuration
Information includes hardware configuration information and software configuration information;Hardware configuration information may include hardware device parameter, hardware device
Model etc.;Software configuration information may include software version number, username information, work item information etc..
Step 203, main equipment detection establish the quantity of the slave equipment of communication connection with the main equipment;
Step 204, when with main equipment establish communication connection slave equipment quantity be one when, main equipment judges from equipment
Configuration information whether matched with the information to be sent of main equipment;Judging the configuration information and main equipment from equipment such as main equipment
Information to be sent mismatches, then main equipment is sent to before equipment by information to be sent, further includes,
Information to be sent is converted into the information that its format matches with the configuration information from equipment by step 205, main equipment.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge whether main equipment is to establish connection with from equipment for the first time, is to establish connection for the first time when main equipment and from equipment
When, main equipment obtains the configuration information from equipment and is saved;
It will be understood by those skilled in the art that this equipment is obtained from the configuration information of equipment, comprising: main equipment first to from
Equipment issues the request for sending configuration information, and when main equipment does not receive from the configuration information that equipment issues, main equipment passes through cloud
End obtains the configuration information from equipment and is saved;
When main equipment with from equipment be it is non-establish connection for the first time when, main equipment is not necessarily to obtain configuration information from equipment again
And saved, main equipment need to only read the configuration information of the slave equipment of its storage.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge from the whether updated configuration information of equipment, when configuration information updated from equipment, main equipment is obtained from setting
Standby configuration information is simultaneously saved.
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
When information to be sent is audio format data, includes receiver device configuration information from the configuration information of equipment or raise
When sound device device configuration information, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
It does not include receiver device configuration information or loudspeaker apparatus from equipment when information to be sent is audio format data
When any one of configuration information, main equipment judges from the information to be sent of the configuration information of equipment and main equipment not phase
Match;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including receiver device configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;Or
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including loudspeaker apparatus configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;
When information to be sent be video formatted data when, do not meet from equipment both include display module device configuration information and
Including receiver device configuration information, or does not meet from equipment and both include display module device configuration information and set including loudspeaker
When standby configuration information, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is picture format data
When, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
When information to be sent is picture format, from the configuration information of equipment does not include display module device configuration information,
Main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It does not include display module device configuration letter from the configuration information of equipment when information to be sent is Document type data
When breath, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of audio format data is converted to the information to be sent of Document type data.Those skilled in the art
Member is it is appreciated that the audio format includes MP3 format, WMA format, WAV format, MOD format and CD format etc..Work as master
It is stored with the information to be sent of these audio format datas in equipment, but main equipment and is not detected to have from equipment and can play sound
When the device configuration information of frequency formatted data, such as the information to be sent of audio format data is transmitted directly to from equipment, from setting
It is standby to play, then the cruising ability of main equipment and system resource, reduction equipment from equipment is not only consumed, user is returned and makes
At unnecessary trouble, the service life and utilization rate of equipment are reduced.The embodiment of the present invention is by the pending of audio format data
Breath of delivering letters, which is converted to, to be then forwarded to after the information to be sent of Document type data from equipment, and user can be by from equipment display text
Formatted data equally can receive message entrained by the audio format data information, allow user using lower configuration from setting
It is standby, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of video formatted data is converted to the information to be sent or picture format number of audio format data
According to information to be sent;It will be understood by those skilled in the art that common video format includes mp4 format, avi format, 3gp lattice
Formula, ape format, rm format and rmvb format etc..When the information to be sent for being stored with these video formatted datas in main equipment, but
Main equipment is simultaneously not detected to have from equipment and (not while matching from equipment when the device configuration information that can play video formatted data
When setting display module and loudspeaker, or not configuring display module and earpiece simultaneously from equipment), such as by the pending of video formatted data
Breath of delivering letters is transmitted directly to from equipment, can not play the video data from equipment, then not only consumes main equipment and from equipment
System resource, the cruising ability for reducing equipment, return user and cause unnecessary trouble, reduce the service life and benefit of equipment
With rate.The embodiment of the present invention sends out the information to be sent that the information to be sent of video formatted data is converted to audio format data again
It gives from equipment, user can play the audio format data by loudspeaker from equipment or earpiece;Or by video format number
According to information to be sent be converted to the information to be sent of picture format data, user can be by showing this from the display module of equipment
Picture format data;In this way, user can receive message entrained by the video formatted data information, user is allowed to match using lower
The slave equipment set, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent for the file format not matched that with the application program from equipment is converted to and answering from equipment
With the information to be sent for the file format that program matches;It will be understood by those skilled in the art that the information to be sent can be with
For text formatting, video format or picture format.It will be understood by those skilled in the art that the text formatting, which refers to, to be handled
The format of ASSIC code information, common text formatting include: doc format, txt format and docx format etc.;Common picture
Format includes: BMP format, PCX format, tiff format, GIF format and jpeg format etc..Pending when main equipment is delivered letters
When the format of breath from the application program of equipment with mismatching, such as directly sends that information to from equipment, can not be executed from equipment,
Not only consume main equipment and system resource from equipment, the cruising ability for reducing equipment, return user cause it is unnecessary
Trouble, reduces the service life and utilization rate of equipment.Originally method provided by embodiment is put, is sent that information in main equipment
Before equipment, first converts this information into the information to be sent of file format for being suitable for executing from equipment and be then forwarded to from setting
It is standby, in order to execute the information to be sent of this document format from equipment.If the information to be sent in main equipment is PDF format, and
It is only configured with the application program of real text formatting from the device, such as notepad or word, at this moment main equipment can be first by PDF format
File be switched to text formatting, then issue from equipment execute.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
By the information to be sent for the file format not matched that with the display resolution from equipment be converted to from equipment
The information to be sent of file format that matches of display resolution.It will be understood by those skilled in the art that being set in time in master
It is standby and all have display screen from equipment, it can show picture or text formatting, but various sizes of display screen has difference
Resolution ratio, the information of file format for being suitble to main equipment to show is transmitted directly to from equipment, may be with the resolution ratio from equipment
It does not match that, so that preferable display effect cannot be reached.Thus, it is being sent to before equipment, main equipment is first by its file
The information to be sent of format be converted to be suitable for showing from device display screen with the format that matches from device display screen resolution ratio,
To make from the display effect of equipment more preferably convenient for user's viewing, to read, enhance user experience.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
It is that capacity is equal to or less than from equipment storage that capacity, which is greater than from the Information Compression to be sent of device storage capacity,
The information to be sent of capacity;It will be understood by those skilled in the art that when being less than information to be sent from the memory capacity of equipment, it is main
Equipment will be unable to the completing to have begun transmission of the task, this equally will cause the waste of system resource, reduces the continuation of the journey energy of equipment
Power returns user and causes unnecessary trouble, reduces the service life and utilization rate of equipment.Provided by the embodiment of the present invention
Method, can first learn the memory capacity from equipment before starting transmission task, and by Information Compression to be sent to achievable biography
Capacity that is defeated and storing, avoids the midway of transmission task from failing, provides the user with convenience.
Embodiment three
The flow chart of the embodiment of the method three of Fig. 3 synchronizing information between master-slave equipment provided by the invention, as shown in figure 3,
The method of synchronizing information includes: between master-slave equipment in the present embodiment
Step 301, main equipment and from equipment establish communicate to connect;
Step 302, main equipment detect the configuration information from equipment;It will be understood by those skilled in the art that the configuration
Information includes hardware configuration information and software configuration information;Hardware configuration information may include hardware device parameter, hardware device
Model etc.;Software configuration information may include software version number, username information, work item information etc..
Step 303, main equipment detection establish the quantity of the slave equipment of communication connection with the main equipment;
Step 304, when with main equipment establish communication connection slave equipment quantity be two or more and these from
When equipment belongs to the same user, one of them is determined as from equipment mainly from equipment by main equipment, and main equipment judges the master
Whether to be matched from the configuration information of equipment and the information to be sent of main equipment;Main matching from equipment as described in main equipment judgement
Confidence breath and the information to be sent of main equipment mismatch, then main equipment is sent to before equipment by information to be sent, is also wrapped
It includes,
Information to be sent is converted into its format with described mainly from the configuration information phase of equipment by step 305, main equipment
The information matched.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge whether main equipment is to establish connection with from equipment for the first time, is to establish connection for the first time when main equipment and from equipment
When, main equipment obtains the configuration information from equipment and is saved;
It will be understood by those skilled in the art that this equipment is obtained from the configuration information of equipment, comprising: main equipment first to from
Equipment issues the request for sending configuration information, and when main equipment does not receive from the configuration information that equipment issues, main equipment passes through cloud
End obtains the configuration information from equipment and is saved;
When main equipment with from equipment be it is non-establish connection for the first time when, main equipment is not necessarily to obtain configuration information from equipment again
And saved, main equipment need to only read the configuration information of the slave equipment of its storage.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge from the whether updated configuration information of equipment, when configuration information updated from equipment, main equipment is obtained from setting
Standby configuration information is simultaneously saved.
It will be understood by those skilled in the art that can be identified by method illustrated below logical when being established with main equipment
When the quantity for believing the slave equipment of connection is two or more, whether these belong to the same user from equipment:
Citing 101, comparison such as establish all having from equipment for communication connection with the main equipment from the user name of equipment
When identical user name, then it may recognize that these belong to the same user from equipment:
Citing 102, according to the cycle detection of setting two-by-two from the citing between equipment, keep identical within the time limit of setting
The slave equipment of citing, can be identified as belonging to the same user.
It will be understood by those skilled in the art that when the quantity for the slave equipment for establishing communication connection with main equipment is two or two
It is a above and when these belong to the same user from equipment, can by method illustrated below by these from the device
One of them is determined as mainly from equipment from equipment:
Citing 201 with main equipment will there is the slave equipment of same subscriber name to be identified as mainly from equipment;
Citing 202, in each pre-set priority value from the device, based on the slave equipment identification with highest priority value
It will be from equipment;
Citing 203 is identified first from the user name of equipment, when the quantity of the slave equipment with main equipment with same subscriber name
When for two or more, according still further to pre-set priority value, the slave equipment with highest priority value is identified as mainly
From equipment;
Citing 204, record establishes the number of communication connection with main equipment within the setting period, will have highest in the period
The slave equipment of connection number is identified as mainly from equipment.
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
When information to be sent is audio format data, includes receiver device configuration information from the configuration information of equipment or raise
When sound device device configuration information, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
It does not include receiver device configuration information or loudspeaker apparatus from equipment when information to be sent is audio format data
When any one of configuration information, main equipment judges from the information to be sent of the configuration information of equipment and main equipment not phase
Match;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including receiver device configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;Or
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including loudspeaker apparatus configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;
When information to be sent be video formatted data when, do not meet from equipment both include display module device configuration information and
Including receiver device configuration information, or does not meet from equipment and both include display module device configuration information and set including loudspeaker
When standby configuration information, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is picture format data
When, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
When information to be sent is picture format, from the configuration information of equipment does not include display module device configuration information,
Main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It does not include display module device configuration letter from the configuration information of equipment when information to be sent is Document type data
When breath, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of audio format data is converted to the information to be sent of Document type data.Those skilled in the art
Member is it is appreciated that the audio format includes MP3 format, WMA format, WAV format, MOD format and CD format etc..Work as master
It is stored with the information to be sent of these audio format datas in equipment, but main equipment and is not detected to have from equipment and can play sound
When the device configuration information of frequency formatted data, such as the information to be sent of audio format data is transmitted directly to from equipment, from setting
It is standby to play, then the cruising ability of main equipment and system resource, reduction equipment from equipment is not only consumed, user is returned and makes
At unnecessary trouble, the service life and utilization rate of equipment are reduced.The embodiment of the present invention is by the pending of audio format data
Breath of delivering letters, which is converted to, to be then forwarded to after the information to be sent of Document type data from equipment, and user can be by from equipment display text
Formatted data equally can receive message entrained by the audio format data information, allow user using lower configuration from setting
It is standby, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of video formatted data is converted to the information to be sent or picture format number of audio format data
According to information to be sent;It will be understood by those skilled in the art that common video format includes mp4 format, avi format, 3gp lattice
Formula, ape format, rm format and rmvb format etc..When the information to be sent for being stored with these video formatted datas in main equipment, but
Main equipment is simultaneously not detected to have from equipment and (not while matching from equipment when the device configuration information that can play video formatted data
When setting display module and loudspeaker, or not configuring display module and earpiece simultaneously from equipment), such as by the pending of video formatted data
Breath of delivering letters is transmitted directly to from equipment, can not play the video data from equipment, then not only consumes main equipment and from equipment
System resource, the cruising ability for reducing equipment, return user and cause unnecessary trouble, reduce the service life and benefit of equipment
With rate.The embodiment of the present invention sends out the information to be sent that the information to be sent of video formatted data is converted to audio format data again
It gives from equipment, user can play the audio format data by loudspeaker from equipment or earpiece;Or by video format number
According to information to be sent be converted to the information to be sent of picture format data, user can be by showing this from the display module of equipment
Picture format data;In this way, user can receive message entrained by the video formatted data information, user is allowed to match using lower
The slave equipment set, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent for the file format not matched that with the application program from equipment is converted to and answering from equipment
With the information to be sent for the file format that program matches;It will be understood by those skilled in the art that the information to be sent can be with
For text formatting, video format or picture format.It will be understood by those skilled in the art that the text formatting, which refers to, to be handled
The format of ASSIC code information, common text formatting include: doc format, txt format and docx format etc.;Common picture
Format includes: BMP format, PCX format, tiff format, GIF format and jpeg format etc..Pending when main equipment is delivered letters
When the format of breath from the application program of equipment with mismatching, such as directly sends that information to from equipment, can not be executed from equipment,
Not only consume main equipment and system resource from equipment, the cruising ability for reducing equipment, return user cause it is unnecessary
Trouble, reduces the service life and utilization rate of equipment.Originally method provided by embodiment is put, is sent that information in main equipment
Before equipment, first converts this information into the information to be sent of file format for being suitable for executing from equipment and be then forwarded to from setting
It is standby, in order to execute the information to be sent of this document format from equipment.If the information to be sent in main equipment is PDF format, and
It is only configured with the application program of real text formatting from the device, such as notepad or word, at this moment main equipment can be first by PDF format
File be switched to text formatting, then issue from equipment execute.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
By the information to be sent for the file format not matched that with the display resolution from equipment be converted to from equipment
The information to be sent of file format that matches of display resolution.It will be understood by those skilled in the art that being set in time in master
It is standby and all have display screen from equipment, it can show picture or text formatting, but various sizes of display screen has difference
Resolution ratio, the information of file format for being suitble to main equipment to show is transmitted directly to from equipment, may be with the resolution ratio from equipment
It does not match that, so that preferable display effect cannot be reached.Thus, it is being sent to before equipment, main equipment is first by its file
The information to be sent of format be converted to be suitable for showing from device display screen with the format that matches from device display screen resolution ratio,
To make from the display effect of equipment more preferably convenient for user's viewing, to read, enhance user experience.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
It is that capacity is equal to or less than from equipment storage that capacity, which is greater than from the Information Compression to be sent of device storage capacity,
The information to be sent of capacity;It will be understood by those skilled in the art that when being less than information to be sent from the memory capacity of equipment, it is main
Equipment will be unable to the completing to have begun transmission of the task, this equally will cause the waste of system resource, reduces the continuation of the journey energy of equipment
Power returns user and causes unnecessary trouble, reduces the service life and utilization rate of equipment.Provided by the embodiment of the present invention
Method, can first learn the memory capacity from equipment before starting transmission task, and by Information Compression to be sent to achievable biography
Capacity that is defeated and storing, avoids the midway of transmission task from failing, provides the user with convenience.
Example IV
The flow chart of the embodiment of the method four of Fig. 4 synchronizing information between master-slave equipment provided by the invention, as shown in figure 4,
The method of synchronizing information includes: between master-slave equipment in the present embodiment
Step 401, main equipment and from equipment establish communicate to connect;
Step 402, main equipment detect the configuration information from equipment;It will be understood by those skilled in the art that the configuration
Information includes hardware configuration information and software configuration information;Hardware configuration information may include hardware device parameter, hardware device
Model etc.;Software configuration information may include software version number, username information, work item information etc..
Step 403, main equipment detection establish the quantity of the slave equipment of communication connection with the main equipment;
Step 404, when with main equipment establish communication connection slave equipment quantity be two or more and these from
When equipment is belonging respectively to two or more users, main equipment judges to deliver letters from the configuration information of equipment and the pending of main equipment
Whether breath matches;If main equipment judges to mismatch from the configuration information of equipment and the information to be sent of main equipment, then main equipment exists
Information to be sent is sent to before equipment, further includes,
Information to be sent is converted into the information that its format matches with the configuration information from equipment by step 405, main equipment.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge whether main equipment is to establish connection with from equipment for the first time, is to establish connection for the first time when main equipment and from equipment
When, main equipment obtains the configuration information from equipment and is saved;
It will be understood by those skilled in the art that this equipment is obtained from the configuration information of equipment, comprising: main equipment first to from
Equipment issues the request for sending configuration information, and when main equipment does not receive from the configuration information that equipment issues, main equipment passes through cloud
End obtains the configuration information from equipment and is saved;
When main equipment with from equipment be it is non-establish connection for the first time when, main equipment is not necessarily to obtain configuration information from equipment again
And saved, main equipment need to only read the configuration information of the slave equipment of its storage.
Further, configuration information of the detection of main equipment described in the present embodiment from equipment, comprising:
Judge from the whether updated configuration information of equipment, when configuration information updated from equipment, main equipment is obtained from setting
Standby configuration information is simultaneously saved.
It will be understood by those skilled in the art that can be identified by method illustrated below logical when being established with main equipment
When the quantity for believing the slave equipment of connection is two or more, whether these belong to the same user from equipment:
Citing 101, comparison such as establish all having from equipment for communication connection with the main equipment from the user name of equipment
When identical user name, then it may recognize that these belong to the same user from equipment:
Citing 102, according to the cycle detection of setting two-by-two from the citing between equipment, keep identical within the time limit of setting
The slave equipment of citing, can be identified as belonging to the same user.
When being not recognized as belonging to the same user from equipment, then these from equipment be identified as being belonging respectively to two or
More than two users.
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
When information to be sent is audio format data, includes receiver device configuration information from the configuration information of equipment or raise
When sound device device configuration information, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
It does not include receiver device configuration information or loudspeaker apparatus from equipment when information to be sent is audio format data
When any one of configuration information, main equipment judges from the information to be sent of the configuration information of equipment and main equipment not phase
Match;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including receiver device configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;Or
It include display module device configuration information from the configuration information of equipment when information to be sent is video formatted data
And when including loudspeaker apparatus configuration information, main equipment judges the information phase to be sent of configuration information and main equipment from equipment
Match;
When information to be sent be video formatted data when, do not meet from equipment both include display module device configuration information and
Including receiver device configuration information, or does not meet from equipment and both include display module device configuration information and set including loudspeaker
When standby configuration information, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It include display module device configuration information from the configuration information of equipment when information to be sent is picture format data
When, main equipment judges to match from the configuration information of equipment and the information to be sent of main equipment;
When information to be sent is picture format, from the configuration information of equipment does not include display module device configuration information,
Main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment;
Main equipment described in the present embodiment judges whether match from the configuration information of equipment and the information to be sent of main equipment,
Include:
It does not include display module device configuration letter from the configuration information of equipment when information to be sent is Document type data
When breath, main equipment judges not matching that from the configuration information of equipment and the information to be sent of main equipment.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of audio format data is converted to the information to be sent of Document type data.Those skilled in the art
Member is it is appreciated that the audio format includes MP3 format, WMA format, WAV format, MOD format and CD format etc..Work as master
It is stored with the information to be sent of these audio format datas in equipment, but main equipment and is not detected to have from equipment and can play sound
When the device configuration information of frequency formatted data, such as the information to be sent of audio format data is transmitted directly to from equipment, from setting
It is standby to play, then the cruising ability of main equipment and system resource, reduction equipment from equipment is not only consumed, user is returned and makes
At unnecessary trouble, the service life and utilization rate of equipment are reduced.The embodiment of the present invention is by the pending of audio format data
Breath of delivering letters, which is converted to, to be then forwarded to after the information to be sent of Document type data from equipment, and user can be by from equipment display text
Formatted data equally can receive message entrained by the audio format data information, allow user using lower configuration from setting
It is standby, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent of video formatted data is converted to the information to be sent or picture format number of audio format data
According to information to be sent;It will be understood by those skilled in the art that common video format includes mp4 format, avi format, 3gp lattice
Formula, ape format, rm format and rmvb format etc..When the information to be sent for being stored with these video formatted datas in main equipment, but
Main equipment is simultaneously not detected to have from equipment and (not while matching from equipment when the device configuration information that can play video formatted data
When setting display module and loudspeaker, or not configuring display module and earpiece simultaneously from equipment), such as by the pending of video formatted data
Breath of delivering letters is transmitted directly to from equipment, can not play the video data from equipment, then not only consumes main equipment and from equipment
System resource, the cruising ability for reducing equipment, return user and cause unnecessary trouble, reduce the service life and benefit of equipment
With rate.The embodiment of the present invention sends out the information to be sent that the information to be sent of video formatted data is converted to audio format data again
It gives from equipment, user can play the audio format data by loudspeaker from equipment or earpiece;Or by video format number
According to information to be sent be converted to the information to be sent of picture format data, user can be by showing this from the display module of equipment
Picture format data;In this way, user can receive message entrained by the video formatted data information, user is allowed to match using lower
The slave equipment set, such as wearable device, to obtain more main equipment information.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
The information to be sent for the file format not matched that with the application program from equipment is converted to and answering from equipment
With the information to be sent for the file format that program matches;It will be understood by those skilled in the art that the information to be sent can be with
For text formatting, video format or picture format.It will be understood by those skilled in the art that the text formatting, which refers to, to be handled
The format of ASSIC code information, common text formatting include: doc format, txt format and docx format etc.;Common picture
Format includes: BMP format, PCX format, tiff format, GIF format and jpeg format etc..Pending when main equipment is delivered letters
When the format of breath from the application program of equipment with mismatching, such as directly sends that information to from equipment, can not be executed from equipment,
Not only consume main equipment and system resource from equipment, the cruising ability for reducing equipment, return user cause it is unnecessary
Trouble, reduces the service life and utilization rate of equipment.Originally method provided by embodiment is put, is sent that information in main equipment
Before equipment, first converts this information into the information to be sent of file format for being suitable for executing from equipment and be then forwarded to from setting
It is standby, in order to execute the information to be sent of this document format from equipment.If the information to be sent in main equipment is PDF format, and
It is only configured with the application program of real text formatting from the device, such as notepad or word, at this moment main equipment can be first by PDF format
File be switched to text formatting, then issue from equipment execute.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
By the information to be sent for the file format not matched that with the display resolution from equipment be converted to from equipment
The information to be sent of file format that matches of display resolution.It will be understood by those skilled in the art that being set in time in master
It is standby and all have display screen from equipment, it can show picture or text formatting, but various sizes of display screen has difference
Resolution ratio, the information of file format for being suitble to main equipment to show is transmitted directly to from equipment, may be with the resolution ratio from equipment
It does not match that, so that preferable display effect cannot be reached.Thus, it is being sent to before equipment, main equipment is first by its file
The information to be sent of format be converted to be suitable for showing from device display screen with the format that matches from device display screen resolution ratio,
To make from the display effect of equipment more preferably convenient for user's viewing, to read, enhance user experience.
Further, information to be sent is converted into the information that its format matches with the configuration information from equipment by main equipment,
Include:
It is that capacity is equal to or less than from equipment storage that capacity, which is greater than from the Information Compression to be sent of device storage capacity,
The information to be sent of capacity;It will be understood by those skilled in the art that when being less than information to be sent from the memory capacity of equipment, it is main
Equipment will be unable to the completing to have begun transmission of the task, this equally will cause the waste of system resource, reduces the continuation of the journey energy of equipment
Power returns user and causes unnecessary trouble, reduces the service life and utilization rate of equipment.Provided by the embodiment of the present invention
Method, can first learn the memory capacity from equipment before starting transmission task, and by Information Compression to be sent to achievable biography
Capacity that is defeated and storing, avoids the midway of transmission task from failing, provides the user with convenience.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that: it is still
It is possible to modify the technical solutions described in the foregoing embodiments, or part of technical characteristic is equally replaced
It changes;And these are modified or replaceed, the essence for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution
Mind and range.