CN105873155B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN105873155B
CN105873155B CN201610195630.8A CN201610195630A CN105873155B CN 105873155 B CN105873155 B CN 105873155B CN 201610195630 A CN201610195630 A CN 201610195630A CN 105873155 B CN105873155 B CN 105873155B
Authority
CN
China
Prior art keywords
electronic equipment
communication path
time
communication
receiving time
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
CN201610195630.8A
Other languages
Chinese (zh)
Other versions
CN105873155A (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 CN201610195630.8A priority Critical patent/CN105873155B/en
Publication of CN105873155A publication Critical patent/CN105873155A/en
Application granted granted Critical
Publication of CN105873155B publication Critical patent/CN105873155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/26Reselection being triggered by specific parameters by agreed or negotiated communication parameters
    • H04W36/28Reselection being triggered by specific parameters by agreed or negotiated communication parameters involving a plurality of connections, e.g. multi-call or multi-bearer connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Abstract

The invention discloses a kind of information processing method and electronic equipments, it include: to establish the first communication path in the first way between first electronic equipment and the second electronic equipment, the second communication path is established in a second manner, wherein, the time of communication path is established with the first method less than the time for establishing communication path with the second method;After the completion of first communication path is established, before second communication path establishes completion, controls and communicated between first electronic equipment and second electronic equipment by first communication path;By in the first communication path communication process, if first electronic equipment meets preset condition, the present communications access controlled between first electronic equipment and second electronic equipment switches to second communication path by first communication path.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to electronic technology field, in particular to a kind of information processing method and electronic equipment.
Background technique
With the continuous development of science and technology, various electronic equipments are such as: smart phone, tablet computer, laptop Continue to develop, and the communication link between each electronic equipment establish mode also there are many.
And the mode of two communication between electronic accesses has respective defect in the prior art, and specifically, some sides Formula establishes speed fastly but has other defects, some mode speed are slow but have other advantages, currently, being not possible to provide a kind of preferable Connection type, to balance the advantage of a variety of connection types.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, provides a kind of preferable connection type, with The advantage of a variety of connection types is balanced, and then improves user experience.
On the one hand, the embodiment of the present application provides a kind of information processing method, comprising the following steps:
The first communication path is established in the first way between first electronic equipment and the second electronic equipment, with second Mode establishes the second communication path, wherein is less than with the time that the first method establishes communication path with the second method Establish the time of communication path;
After the completion of first communication path is established, before second communication path establishes completion, control described first It is communicated between electronic equipment and second electronic equipment by first communication path;
By if first electronic equipment meets preset condition, controlling in the first communication path communication process The present communications access made between first electronic equipment and second electronic equipment is switched by first communication path To second communication path.
Optionally, described to establish the first communication in the first way between first electronic equipment and the second electronic equipment Access, comprising:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
Require first electronic equipment to second electronic equipment receiving from third electronic equipment transmission When the first data information sent, the first communication path is established between first electronic equipment and second electronic equipment, Wherein, the 4th electronic equipment is for receiving first data information, and is forwarded to second electronic equipment.
Optionally, described to establish the second communication in a second manner between first electronic equipment and the second electronic equipment Access, comprising:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
The public network IP address and end of 4th electronic equipment by first electronic equipment by network address translation Mouth is sent to the second electronic equipment, so as to be attached between second electronic equipment and first electronic equipment.
Optionally, described in passing through the first communication path communication process, if first electronic equipment meets in advance If when condition, then controlling the present communications access between first electronic equipment and second electronic equipment by described first Communication path switches to second communication path, comprising:
Obtain time span at the time of first communication path is established when completing to current time;
If the time span reaches predetermined time period, controls first electronic equipment and second electronics is set Present communications access between standby switches to second communication path by first communication path.
Optionally, described in passing through the first communication path communication process, if first electronic equipment meets in advance If condition, then the present communications access controlled between first electronic equipment and second electronic equipment is led to by described first Letter access switches to second communication path, comprising:
Determine whether second communication path establishes completion;
It completes, is controlled between first electronic equipment and two electronic equipment if second communication path is established Present communications access second communication path is switched to by first communication path.
Optionally, the present communications access controlled between first electronic equipment and second electronic equipment by First communication path switches to second communication path, comprising:
In passing through the first communication path communication process, the currently transmitted rate for controlling second communication path is Lower than the first rate of scheduled rate;
Receive the packet loss of second communication path fed back by second electronic equipment;
If the packet loss is lower than the default packet loss, controlling the currently transmitted rate is greater than the default speed Second rate of rate, and the present communications access between first electronic equipment and second electronic equipment is controlled by described First communication path switches to second communication path.
Optionally, the present communications access for controlling first electronic equipment and second electronic equipment is by described First communication path switches to second communication path, comprising:
Receive the first receiving time and the second receiving time sent by second electronic equipment, wherein described first Receiving time and second receiving time are that second electronic equipment is received by first electronic equipment by described the The time for the first frame data that one communication path and second communication path are sent respectively;
When determining that first receiving time is identical with second receiving time, control first electronic equipment and The present communications access of second electronic equipment switches to second communication path by first communication path.
Optionally, it is described receive the first receiving time sent by second electronic equipment and the second receiving time it Afterwards, the method also includes:
When determining first receiving time and the second receiving time difference, control is logical by first communication Road sends the first sending time of the second frame data and second communication path sends the second of second frame data and sends Time, when reaching the first of second electronic equipment to control second frame data by first communication path and reach Between with second frame data by second communication path reach the second of second electronic equipment to reach the time identical;
Determine described first reach the time with described second reach the time it is identical after, execute step: control described first The present communications access of electronic equipment and second electronic equipment switches to second communication by first communication path Access.
Optionally, after the first receiving time of the acquisition and the second receiving time, the method also includes:
When determining first receiving time and the second receiving time difference, by adjusting first frame data Cache-time in the cache unit of second electronic equipment, to control send by first communication path first The first output time that frame data are exported from second electronic equipment and the first frame sent by second communication path The second output time that data are exported from second electronic equipment is identical;
Determine it is described first output the time with it is described second output the time it is identical after, execute step: control described first The present communications access of electronic equipment and second electronic equipment switches to second communication by first communication path Access.
Optionally, the present communications access for controlling first electronic equipment and second electronic equipment is by described First communication path switches to second communication path, comprising:
Obtain the current data type of the data currently sent by first communication path;
Based on the corresponding relationship between data type and switch mode, determines that the current data type is corresponding and currently cut Mold changing formula;
According to the current switch mode, the present communications of first electronic equipment and second electronic equipment are controlled Access switches to second communication path by first communication path.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, comprising:
Shell;
Processing unit is arranged in the shell, is used between the electronic equipment and the second electronic equipment with first Mode establishes the first communication path, establishes the second communication path in a second manner, wherein it is logical to establish communication with the first method The time on road is less than the time that communication path is established with the second method;After the completion of first communication path is established, institute Before stating the foundation completion of the second communication path, control logical by described first between the electronic equipment and second electronic equipment Letter access is communicated;And in passing through the first communication path communication process, if the electronic equipment meets preset condition, The present communications access then controlled between the electronic equipment and second electronic equipment is switched by first communication path To second communication path.
Optionally, the electronic equipment further include:
Reception device is arranged in the shell;
The processing unit is used for:
In passing through the first communication path communication process, the currently transmitted rate for controlling second communication path is Lower than the first rate of scheduled rate;
Control the packet loss that the reception device receives second communication path fed back by second electronic equipment;
If the packet loss is lower than the default packet loss, controlling the currently transmitted rate is greater than the default speed Second rate of rate, and the present communications access between the electronic equipment and second electronic equipment is controlled by described first Communication path switches to second communication path.
Optionally, the electronic equipment further include:
Storage device is arranged in the shell, for storing data, includes at least the first frame data and the second frame number According to;
The processing unit is used for:
When controlling the first receiving time and the second reception that the reception device reception is sent by second electronic equipment Between, wherein first receiving time and second receiving time are set for second electronic equipment reception by the electronics The time of standby first frame data sent respectively by first communication path and second communication path;
When determining that first receiving time is identical with second receiving time, the electronic equipment and described is controlled The present communications access of second electronic equipment switches to second communication path by first communication path.
When determining first receiving time and the second receiving time difference, control is logical by first communication Road sends the first sending time of second frame data and second communication path sends the second of second frame data Sending time first is reached with controlling second frame data by the way that first communication path reaches second electronic equipment Second reach the time by the way that second communication path reaches second electronic equipment to time and second frame data It is identical;
Determine described first reach the time with described second reach the time it is identical after, control the electronic equipment and described The present communications access of second electronic equipment switches to second communication path by first communication path.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, comprising:
First establishing unit, it is logical for establishing first in the first way between the electronic equipment and the second electronic equipment Believe access, establish the second communication path in a second manner, wherein with the first method establish communication path time be less than with The second method establishes the time of communication path;
First control unit, for after the completion of first communication path is established, second communication path have been established Cheng Qian is controlled and is communicated between the electronic equipment and second electronic equipment by first communication path;
Second control unit is used in passing through the first communication path communication process, if the electronic equipment meets Preset condition, then the present communications access controlled between the electronic equipment and second electronic equipment are communicated by described first Access switches to second communication path.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
One, due to the technical solution in the embodiment of the present application, between first electronic equipment and the second electronic equipment The first communication path is established in the first way, establishes the second communication path in a second manner, wherein with first method foundation The time of communication path is less than the time that communication path is established with the second method;It establishes and completes in first communication path Afterwards, it before second communication path establishes completion, controls and passes through between first electronic equipment and second electronic equipment First communication path is communicated;In passing through the first communication path communication process, if first electronic equipment Meet preset condition, then controls the present communications access between first electronic equipment and second electronic equipment by described First communication path switches to second communication path.I.e. in the technical scheme, first party first shorter with settling time Formula establishes communication path, when meeting preset condition, switches to the communication path established in a second manner, logical using the second communication The characteristics of road, such as: transmission speed is fast or transmission is more stable, to transmit data, thus effectively by first method and second method Advantage is combined together, and then is reached and provided a kind of technical effect of preferably connection type.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention Attached drawing is briefly described, it should be apparent that, attached drawing described below is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of specific implementation flow chart for information processing method that the embodiment of the present application one provides;
The first communication path is established in the first way in a kind of information processing method that Fig. 2 provides for the embodiment of the present application one The schematic diagram of the second communication path is established in a second manner;
The specific implementation flow chart of step S103 in a kind of information processing method that Fig. 3 provides for the embodiment of the present application one;
The specific implementation flow chart of step S303 in a kind of information processing method that Fig. 4 provides for the embodiment of the present application one;
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application two provides;
Fig. 6 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application three provides.
Specific embodiment
Technical solution provided by the embodiments of the present application provides a kind of preferable connection type, to balance a variety of connection types Advantage, and then improve user experience.
Technical solution in the embodiment of the present application is in order to solve the above technical problems, in first electronic equipment and the second electricity The first communication path is established between sub- equipment in the first way, establishes the second communication path in a second manner, wherein with described The time that one mode establishes communication path is less than the time that communication path is established with the second method;It is logical in first communication After the completion of road is established, before second communication path establishes completion, controls first electronic equipment and second electronics is set It is communicated between standby by first communication path;By in the first communication path communication process, if described the One electronic equipment meets preset condition, then controls the present communications between first electronic equipment and second electronic equipment Access switches to second communication path by first communication path.I.e. in the technical scheme, first with settling time compared with Short first method establishes communication path, when meeting preset condition, switches to the communication path established in a second manner, utilizes The characteristics of second communication path, such as: transmission speed is fast or transmission is more stable, to transmit data, thus effectively by first method and The advantages of second method, is combined together, and then reaches and provide a kind of technical effect of preferably connection type.
Embodiment one
Referring to FIG. 1, being a kind of information processing method provided by the embodiments of the present application, comprising:
S101: establishing the first communication path between first electronic equipment and the second electronic equipment in the first way, The second communication path is established in a second manner, wherein is less than with the time that the first method establishes communication path with described the Two modes establish the time of communication path;
S102: after the completion of first communication path is established, before second communication path establishes completion, described in control It is communicated between first electronic equipment and second electronic equipment by first communication path;
S103: in passing through the first communication path communication process, if first electronic equipment meets preset condition, The present communications access between first electronic equipment and second electronic equipment is then controlled by first communication path Switch to second communication path.
A kind of information processing method provided by the embodiments of the present application can be applied to the first electronic equipment, implement in the application Example in, the first electronic equipment and the second electronic equipment may include the network equipment and user equipment, wherein the network equipment include but Be not limited to single network server, multiple network servers composition server group or based on cloud computing by a large amount of hosts or net The cloud that network server is constituted;First electronic equipment may be such as: smart phone, tablet computer or laptop user set It is standby.
In the embodiment of the present application, step S101 is first carried out: first electronic equipment and the second electronic equipment it Between establish the first communication path in the first way, establish the second communication path in a second manner, wherein build with the first method The time of vertical communication path is less than the time that communication path is established with the second method.
In the embodiment of the present application, the first communication path can be established in the first way in synchronization, in a second manner The second communication path is established, i.e., it is logical to establish the second communication in a second manner while establishing the first communication path in the first way Road;During specific implementation, the first communication path can also be first established in the first way, then establishes second in a second manner Communication path, for above two implementation, those of ordinary skill in the art can select according to actual needs, at this It is not especially limited in application embodiment.
In the embodiment of the present application, the time for establishing the first communication path in the first way shorter than establishes in a second manner The time of two communication paths, i.e., the speed for establishing connection in the first way are faster than second method;And established in a second manner Two communication paths compared to the first communication path transmission speed with higher or transmission stability established in the first way, or The cost for building communication path is lower, or has other advantages, here, just no longer schematically illustrating one by one.
In the embodiment of the present application, described to be built in the first way between first electronic equipment and the second electronic equipment Vertical first communication path, comprising:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
Require first electronic equipment to second electronic equipment receiving from third electronic equipment transmission When the first data information sent, the first communication path is established between first electronic equipment and second electronic equipment, Wherein, the 4th electronic equipment is for receiving first data information, and is forwarded to second electronic equipment.
In the embodiment of the present application, third electronic equipment is specially coordinator, and major function is to coordinate to establish network, Its function further include: transmission network beacon, management network node and storage network node information, and provide between associated nodes Routing iinformation;In addition, the network coordination will also store some essential informations, such as node data equipment, data forwarding table and equipment Contingency table etc..
In the embodiment of the present application, the 4th electronic equipment is specially Relay Server, for turning between two electronic equipments Send out data, wherein coordinator and Relay Server may operate on same electronic equipment, and Relay Server is infused to coordinator Volume.
During specific implementation, referring to FIG. 2, if to establish communication path between electronic equipment A and electronic equipment B, Electronic equipment A establishes connection with third electronic equipment coordinator first, and then third electronic equipment is electric by electronic equipment A and the 4th Sub- equipment, that is, Relay Server is attached, while third electronic equipment coordinator is by the device identification of electronic equipment A, such as: Si It is recorded in the equipment list of third electronic equipment.
Wherein, for electronic equipment B, connection is established first and with third electronic equipment, and notify third electronics The device identification of its electronic equipment to be connected of equipment is Si, and at this moment, third electronic equipment just searches whether to deposit in equipment list In such device identification, and whether the equipment has established connection between third electronic equipment, and if it exists, third electronics is set It is standby then to electronic equipment A send an information, it is desirable that electronic equipment start to electronic equipment B send data information, in electronic equipment A After receiving the information, electronic equipment A then passes through the 4th electronic equipment and sends data information to electronic equipment B, sets in electronics When standby B starts to receive data information, then shows that the communication path between electronic equipment A and electronic equipment B is established and complete.Specific During realization, the 4th electronic equipment will receive the data information sent by the sub- equipment A of third, electron equipment B.
In the embodiment of the present application, described to be built in a second manner between first electronic equipment and the second electronic equipment Vertical second communication path, comprising:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
First electronic equipment by the 4th electronic equipment carry out network address translation, with second electronics The second communication path is established between equipment.
In the embodiment of the present application, third electronic equipment is specially coordinator, and major function is to coordinate to establish network, Its function further include: transmission network beacon, management network node and storage network node information, and provide between associated nodes Routing iinformation;In addition, the network coordination will also store some essential informations, such as node data equipment, data forwarding table and equipment Contingency table etc..
In the embodiment of the present application, the 4th electronic equipment is specially P2P (Peer to Peer, peer-to-peer network) server, Third electronic equipment coordinator and the 4th electronic equipment P2P server may operate on same electronic equipment, P2P server to Coordinator registration.
During specific implementation, with continued reference to FIG. 2, logical if to establish communication between electronic equipment A and electronic equipment B Road, electronic equipment A first establish connection with third electronic equipment coordinator, and then third electronic equipment is by electronic equipment A and the 4th Electronic equipment, that is, P2P server is attached.After electronic equipment A and P2P server establish connection, P2P server is by electronics The public network IP address by network address translation and port numbers of equipment A is sent to electronic equipment B, and B is then to the 4th electronic equipment It is disconnected immediately after sending some data, the purpose for the arrangement is that the 4th electronic equipment is allowed to be able to know that electronic equipment B by network Public network IP address and port numbers after address conversion.Then the second electronic equipment B attempts the electronic equipment sent with P2P server The public network IP address of A and port are attached, and record the destination address and port numbers of this time connection, are next real Connection is prepared, and next electronic equipment A can connect the port numbers that electronic equipment B is used.
In the embodiment of the present application, when establishing network in the first way, because without limitation on the access to external network server, this The fast speed of kind connection type, and when the transmission data of the communication path by establishing in the first way, it needs through middle following the service The forwarding of business device, it is more demanding to the bandwidth expenditure of Relay Server;When establishing network in a second manner, due to router and net The presence of network address conversion can not directly be accessed from extraneous, so the process for establishing connection needs a large amount of trials, settling time compared with It is long, but when the transmission data of the communication path by establishing in a second manner, directly sent out between electronic equipment A and electronic equipment B Reception is sent, without the forwarding by server, transmission speed is very fast.
So in the embodiment of the present application, being established to shorten the communication path between electronic equipment A and electronic equipment B Time, and guarantee that there is faster transmission speed between electronic equipment A and electronic equipment B, then after executing the step S101, Execute step S102: after the completion of first communication path is established, before second communication path establishes completion, described in control It is communicated between first electronic equipment and second electronic equipment by first communication path.
During specific implementation, in order to guarantee before the second communication path establishes completion, electronic equipment A and electronic equipment It can still provide for communicating between B, then first pass through the first communication path between controlling electronic devices A and electronic equipment B and communicated, phase Data are mutually sent, in the embodiment of the present application, the data type of transmission is specifically as follows the audio of real-time Transmission, video data; Or the data etc. of the chat message of control signal relevant to control instruction or non real-time transmission.
In the embodiment of the present application, after executing the step S102, S103 is thened follow the steps: logical by described first During believing pass communications, if first electronic equipment meets preset condition, first electronic equipment and described is controlled Present communications access between second electronic equipment switches to second communication path by first communication path.
In the embodiment of the present application, when to control present communications between the first electronic equipment and the second electronic equipment logical It routes the first communication path and switches to the second communication path, during specific implementation, by two kinds of implementations.
The first implementation, specifically comprises the following steps:
Obtain time span at the time of first communication path is established when completing to current time;
If the time span reaches predetermined time period, controls first electronic equipment and second electronics is set Present communications access between standby switches to second communication path by first communication path.
In the embodiment of the present application, predetermined time period is specifically as follows 5 seconds, 10 seconds or 15 seconds, or is other default Time span, those of ordinary skill in the art can set according to actual needs, not make in the embodiment of the present application specific It limits.
During specific implementation, predetermined time period is for 10 seconds, if obtain the foundation completion of the first communication path At the time of to current time time span be 10 seconds, be less than predetermined time period, then controlling electronic devices A and electronics are not set Present communications access between standby B switches to the second communication path by the first communication path;If obtaining the first communication path to establish To the time span at current time it is 15 seconds at the time of when completion, is more than predetermined time period, then controlling electronic devices A and electronics Present communications access between equipment B switches to the second communication path by the first communication path.
Present communications access by technical solution provided by the embodiments of the present application, between electronic equipment A and electronic equipment B Switching meet without waiting for other conditions, intervene manually without user, realize that process is relatively simple, and then brought to user Preferable experience effect.
Second of implementation, specifically includes the following steps:
Determine whether second communication path establishes completion;
It completes, is controlled between first electronic equipment and two electronic equipment if second communication path is established Present communications access second communication path is switched to by first communication path.
In the embodiment of the present application, in order to determine the switching of the present communications access between electronic equipment A and electronic equipment B It is effectively, then to first have to determine whether the second communication path establishes completion.It, can be according to whether connecing during specific implementation Receive the data information sent by electronic equipment B;Or it is used to inform that electronics is set by what electronic equipment B was sent according to whether receiving Standby A, electronic equipment B have received the data information that is sent by electronic equipment A to determine whether the second communication path establishes completion.
In the embodiment of the present application, determine the second communication path establish complete after, then control the first electronic equipment and Present communications access between second electronic equipment switches to the second communication path by the first communication path.In specific implementation process In, the present communications access how controlled between the first electronic equipment and the second electronic equipment is switched by the first communication To the second communication path, and in particular to three kinds of situations.
The first situation directly switches.
During specific implementation, determine the time span reach predetermined time period or determine the second communication path After the completion of foundation, then the present communications access directly controlled between the first electronic equipment and the second electronic equipment is logical by the first communication Road switches to the second communication path, in this case can't be in view of working as in the first electronic equipment and the second electronic equipment Whether loss of data can occur in preceding communication path handoff procedure.
Second situation, seamless switching.
Specific implementation process, referring to FIG. 3, including the following steps:
S301: by controlling the currently transmitted of second communication path in the first communication path communication process Rate is the first rate lower than scheduled rate;
S302: the packet loss of second communication path fed back by second electronic equipment is received;
S303: if the packet loss is lower than the default packet loss, controlling the currently transmitted rate is greater than described Second rate of scheduled rate, and control the present communications access between first electronic equipment and second electronic equipment Second communication path is switched to by first communication path.
In the embodiment of the present application, step S301 is first carried out: by controlling in the first communication path communication process The currently transmitted rate of second communication path is made as the first rate lower than scheduled rate.
In the embodiment of the present application, when sending data by the second communication path, the data of the second communication path transmission It is consistent with the data that the first communication path is sent, such as: the first frame data in transmission data packet or the second communication Access sends the first communication path a certain frame data currently to be sent, at this moment in order to which the switching of subsequent communications access is prepared.
In the embodiment of the present application, scheduled rate is specifically as follows 10Mbps, 11Mbps, 12Mbps or is other transmissions Rate, those of ordinary skill in the art can set according to actual needs, be not especially limited in the embodiment of the present application.
During specific implementation, during sending data to the second electronic equipment by the first communication path, it is The validity for determining the second communication path transmission data, then control the second communication channel first with lower rate sending data, Such as: 1Mbps, 2Mbps or 3Mbps or other rates lower than scheduled rate.
After executing the step S302, S302 is thened follow the steps: receiving as described in second electronic equipment feedback The packet loss of second communication path.
In the embodiment of the present application, the data sent by electronic equipment A are received in the second electronic equipment, that is, electronic equipment B Afterwards, then can be according to the data loss rate of the second communication path of data estimation received, i.e. lost data packets quantity accounts for transmitted The ratio of data packet.
During specific implementation, the packet loss of the second communication path by B feedback is received are as follows: one thousandth, thousand points Five or 10/1000ths, or lose rate for other data, be in the embodiment of the present application only to illustrate for above-mentioned packet loss Illustrate, is not limited in any way.
After the packet loss for obtaining the second communication path sent by the second electronic equipment, S303 is thened follow the steps: if The packet loss is lower than the default packet loss, then controlling the currently transmitted rate is the second speed greater than the scheduled rate Rate, and it is logical by first communication to control the present communications access between first electronic equipment and second electronic equipment Road switches to second communication path.
In the embodiment of the present application, packet loss is preset to be 20/5/1000ths, 10/1000ths or thousand or be other Packet loss, those of ordinary skill in the art can set according to actual needs, not limit specifically in the embodiment of the present application It is fixed.
During specific implementation, preset packet loss by thousand/for, if receiving second sent by electronic equipment B The packet loss of communication path is 10/1000ths, is greater than default packet loss, then controls the second communication path still with lower transmission speed Rate transmission rate is until the packet loss of the second communication path is lower than default packet loss;If receiving sent by electronic equipment B The packet loss of two communication paths is one thousandth, is less than default packet loss, then controls the second communication path with biggish transmission speed Rate sends data, and the present communications access controlled between the first electronic equipment and the second electronic equipment is cut by the first communication path Shift to the second communication path.
In the embodiment of the present application, control the present communications access between the first electronic equipment and the second electronic equipment by First communication path switches to the specific implementation process of the second communication path, referring to FIG. 4, specifically comprising the following steps:
S401: the first receiving time and the second receiving time sent by second electronic equipment is received, wherein described First receiving time and second receiving time receive for second electronic equipment passes through institute by first electronic equipment State the time for the first frame data that the first communication path and second communication path are sent respectively;
S402: when determining that first receiving time is identical with second receiving time, first electronics is controlled The present communications access of equipment and second electronic equipment switches to second communication path by first communication path.
In the embodiment of the present application, in order to guarantee seamless switching, i.e. the first electronic equipment and the second electronic equipment it is current When communication path switches to the second communication path by the first communication path, centre is not in the loss of data, then specific real During reality is existing, then the first of the first frame data sent by the first communication path are received according to the second electronic equipment and is received The second receiving time of time and the first frame data sent by the second communication path, to determine whether to be led to by the first communication Road switches to the second communication path.
In the embodiment of the present application, the first receiving time sent by electronic equipment B is received, such as: 20:24:15 seconds or 20: 24:35 seconds, the second receiving time, such as: 20:24:50 seconds or 20:24:35 seconds, receiving first fed back by electronic equipment B After receiving time and the second receiving time, then judge whether the first receiving time and the second receiving time are identical.
During specific implementation, if the first receiving time is 20:24:35 seconds, the second receiving time is 20:24:35 seconds, First receiving time is identical with the second receiving time, then controls the present communications between the first electronic equipment and the second electronic equipment Access switches to the second communication path by the first communication path.
If the first receiving time is 20:24:15 second, the second receiving time is 20:24:50 seconds, the first receiving time and the Two receiving times are different, then to control the first electronic equipment by the first communication path and the second communication path and send next frame number According to sending time so that the second frame data by the first communication path and the second communication path reach the second electronic equipment when Between it is identical.In the embodiment of the present application, the second frame data of control reach second by the first communication path and the second communication path The time of electronic equipment is identical, and specific there are two types of control modes.
The first control mode, specifically comprises the following steps:
When determining first receiving time and the second receiving time difference, control is logical by first communication Road sends the first sending time of the second frame data and second communication path sends the second of second frame data and sends Time, when reaching the first of second electronic equipment to control second frame data by first communication path and reach Between with second frame data by second communication path reach the second of second electronic equipment to reach the time identical;
Determine described first reach the time with described second reach the time it is identical after, execute step: control described first The present communications access of electronic equipment and second electronic equipment switches to second communication by first communication path Access.
In the embodiment of the present application, when the first receiving time and the second receiving time difference, specifically, if first receives Time be 20:24:15 second, the second receiving time be 20:24:50 seconds, the second receiving time 35 seconds more late than the first receiving time, this When, it can be when the second communication path starts to send the second frame data after 35 seconds, then control the first communication path and start transmission the Two frame data;If the first receiving time is 20:24:50 second, the second receiving time is 20:24:50 seconds, and the second receiving time is than the One receiving time fast early 35 seconds, at this moment, can be when the first communication path start to send the second frame data after 35 seconds, then control the Two communication paths start to send the second frame data, in this way, by the embodiment above, can make through the first communication path and the The time that the second frame data that two communication paths are sent respectively reach the second electronic equipment is identical, to control the first electronic equipment With the switching of the present communications access of the second electronic equipment.
Second of control mode, specifically comprises the following steps:
When determining first receiving time and the second receiving time difference, by adjusting first frame data Cache-time in the cache unit of second electronic equipment, with the first frame number sent by first communication path According to the first output time and the first frame data by second communication path transmission exported from second electronic equipment The the second output time exported from second electronic equipment is identical;
When determining that the first output time is identical as the second output time, step is executed: control described first The present communications access of electronic equipment and second electronic equipment switches to second communication by first communication path Access.
In the embodiment of the present application, when the first receiving time and the second receiving time difference, specifically, if first receives Time be 20:24:15 second, the second receiving time be 20:24:50 seconds, the first receiving time 35 seconds more early than the second receiving time, i.e., By the first frame data that the first communication path is sent reach time of the second electronic equipment than sent by alternate path the The time that one frame data reach the second electronic equipment is early, at this moment, does not export the first frame data directly, but will lead to by first The first frame data that letter access is sent are stored in cache unit, until being reached by the first frame data that the second communication path is sent Second electronic equipment just exports the first frame data.
During specific implementation, if the first receiving time is 20:24:50 seconds, the second receiving time is 20:24:15 seconds, Sent out by the time ratio that the first frame data that the second communication path is sent reach the second electronic equipment by the first communication path The first frame data sent reach the time of the second electronic equipment, at this moment, do not export the first frame data directly, but control passes through The first frame data that first communication path is sent cache a period of time such as in the cache unit of the second electronic equipment: 35 seconds, directly Reach the second electronic equipment to the first frame data sent by the first communication path, just exports the first frame data.In this way, passing through The embodiment above can make the second frame data sent respectively by the first communication path and the second communication path reach The time of two electronic equipments is identical, to cut to the present communications access between the first electronic equipment and the second electronic equipment It changes.
The third implementation is determined according to the data type sent between the first electronic equipment and the second electronic equipment The switch mode of communication path between first electronic equipment and the second electronics, specifically includes the following steps:
Obtain the current data type of the data currently sent by first communication path;
Based on the corresponding relationship between data type and switch mode, determines that the current data type is corresponding and currently cut Mold changing formula;
According to the current switch mode, the present communications of first electronic equipment and second electronic equipment are controlled Access switches to second communication path by first communication path.
In the embodiment of the present application, by the first communication path send data can for video data, voice data or Person is chatting message data, or is other types of data, here, just no longer schematically illustrating one by one.
In the embodiment of the present application, the corresponding relationship between data type and switch mode, specifically, such as: current transmission Data be video or voice data when, switched over using the mode of seamless switching, if the data type of current transmission be chat Its message sends control instruction to the second electronic equipment such as QQ message or by the first communication path, then directly from the first communication Access switches to the second communication path.
During specific implementation, it is first determined by the current data type of the currently transmitted data of the first communication path, Then according to the corresponding relationship between data type and switch mode, switch mode corresponding with current data type is determined, and It is switched over according to the mode.
By the technical solution in the embodiment of the present application, switch mode is determined according to wire data type, such as: transmitting When data are video data, in order to guarantee user in video calling, be not in the waiting time it is longer and intermediate be not in The case where interruption, then needs to make user not feel as the switching of communication path, to bring preferably to user using seamless switching Experience Degree.It is not in real between the first electronic equipment and the second electronic equipment if current transmission data are QQ message When communications status, at this moment, the second communication path establish complete when, then directly control present communications access by the first communication path The second communication path is switched to, to improve the transmission speed between the first electronic equipment and the second electronic equipment.
Embodiment two
Referring to FIG. 5, a kind of electronic equipment, comprising:
Shell 50;
Processing unit 51, be arranged in the shell 50, between the electronic equipment and the second electronic equipment with First method establishes the first communication path, establishes the second communication path in a second manner, wherein is established with the first method logical The time of letter access is less than the time that communication path is established with the second method;It establishes and completes in first communication path Afterwards, it before second communication path establishes completion, controls between the electronic equipment and second electronic equipment by described First communication path is communicated;And in passing through the first communication path communication process, if the electronic equipment meets in advance If condition, then the present communications access controlled between the electronic equipment and second electronic equipment is logical by first communication Road switches to second communication path.
During specific implementation, shell 50 mainly shields to electronic equipment fuselage, can using have compared with The material of the performances such as good drop resistant, resistance to compression is made, such as: alloy, plastics.
In the embodiment of the present application, processing unit 51 specifically can be comprising the first processing unit, such as: CPU1 (centre Manage device) and second processing device, such as: CPU2, wherein CPU1 is dedicated for in the electronic equipment and the second electronic equipment Between establish the first communication path in the first way, establish the second communication path in a second manner;In first communication path After the completion of foundation, before second communication path establishes completion, control between the electronic equipment and second electronic equipment It is communicated by first communication path;CPU2 dedicated for by the first communication path communication process, if The electronic equipment meets preset condition, then the present communications controlled between the electronic equipment and second electronic equipment are logical It routes first communication path and switches to second communication path, and above-mentioned processing step can also pass through the same processing Device carries out control processing, in the embodiment of the present application, is not especially limited.
Optionally, the electronic equipment further include:
Reception device 52 is arranged in the shell 50;
The processing unit 51 is used for:
In passing through the first communication path communication process, the currently transmitted rate for controlling second communication path is Lower than the first rate of scheduled rate;
Control the packet loss that the reception device receives second communication path fed back by second electronic equipment;
If the packet loss is lower than the default packet loss, controlling the currently transmitted rate is greater than the default speed Second rate of rate, and the present communications access between the electronic equipment and second electronic equipment is controlled by described first Communication path switches to second communication path.
Optionally, the electronic equipment further include:
Storage device 53 is arranged in the shell 50, for storing data, includes at least the first frame data and the second frame Data;
The processing unit 51 is used for:
When controlling the first receiving time and the second reception that the reception device reception is sent by second electronic equipment Between, wherein first receiving time and second receiving time are set for second electronic equipment reception by the electronics The time of standby first frame data sent respectively by first communication path and second communication path;
When determining that first receiving time is identical with second receiving time, the electronic equipment and described is controlled The present communications access of second electronic equipment switches to second communication path by first communication path.
When determining first receiving time and the second receiving time difference, control is logical by first communication Road sends the first sending time of second frame data and second communication path sends the second of second frame data Sending time first is reached with controlling second frame data by the way that first communication path reaches second electronic equipment Second reach the time by the way that second communication path reaches second electronic equipment to time and second frame data It is identical;
Determine described first reach the time with described second reach the time it is identical after, control the electronic equipment and described The present communications access of third electronic equipment switches to second communication path by first communication path.
Embodiment three
Referring to FIG. 6, the embodiment of the present application also provides a kind of electronic equipment, comprising:
First establishing unit 60, for establishing first in the first way between the electronic equipment and the second electronic equipment Communication path establishes the second communication path in a second manner, wherein is less than with the time that the first method establishes communication path The time of communication path is established with the second method;
First control unit 61, for after the completion of first communication path is established, second communication path to be established Before completion, controls and communicated between the electronic equipment and second electronic equipment by first communication path;
Second control unit 62 is used in passing through the first communication path communication process, if the electronic equipment is full Sufficient preset condition, then the present communications access controlled between the electronic equipment and second electronic equipment are led to by described first Letter access switches to second communication path.
Optionally, the first establishing unit 60, comprising:
First establishes module, for first electronic equipment by building between third electronic equipment and the 4th electronic equipment Vertical connection;
Second establishes module, for receive from the third electronic equipment transmission require first electronic equipment to When the first data information that second electronic equipment is sent, built between first electronic equipment and second electronic equipment Vertical first communication path, wherein the 4th electronic equipment is forwarded to described second for receiving first data information Electronic equipment.
Optionally, the first establishing unit 60, comprising:
Third establishes module, for first electronic equipment by building between third electronic equipment and the 4th electronic equipment Vertical connection;
First sending module, for the 4th electronic equipment by the process network address translation of first electronic equipment Public network address and port numbers be sent to the second electronic equipment so that second electronic equipment and first electronic equipment it Between be attached.
Optionally, second control unit 62, comprising:
First obtains module, to the time at current time at the time of for obtaining when the first communication path foundation is completed Length;
First control module controls first electronics and sets if reaching predetermined time period for the time span Present communications access between standby and described second electronic equipment switches to second communication by first communication path and leads to Road.
Optionally, second control unit 62, comprising:
First determining module, for determining whether second communication path establishes completion;
Second control module, if for second communication path establish complete, control first electronic equipment and Present communications access between two electronic equipment switches to second communication path by first communication path.
Optionally, second control unit 62, comprising:
Third control module, for logical by the first communication path communication process, controlling second communication The currently transmitted rate on road is the first rate lower than scheduled rate;
First receiving module, for receiving the packet loss of second communication path by second electronic equipment feedback Rate;
4th control module controls the currently transmitted speed if being lower than the default packet loss for the packet loss Rate is the second rate greater than the scheduled rate, and is controlled between first electronic equipment and second electronic equipment Present communications access switches to second communication path by first communication path.
Optionally, the 4th control module includes:
First receiving submodule is received for receiving the first receiving time sent by second electronic equipment and second Time, wherein first receiving time and second receiving time receive for second electronic equipment by described first The time for the first frame data that electronic equipment is sent respectively by first communication path and second communication path;
First control submodule, for controlling when determining that first receiving time is identical with second receiving time The present communications access for making first electronic equipment and second electronic equipment switches to institute by first communication path State the second communication path.
Optionally, it is described receive the first receiving time sent by second electronic equipment and the second receiving time it Afterwards, the electronic equipment further include:
Second control submodule, for controlling when determining first receiving time and the second receiving time difference System is sent described in the first sending time and second communication path transmission of the second frame data by first communication path Second sending time of the second frame data reaches described second to control second frame data by first communication path The first of electronic equipment reaches the time and reaches second electronics by second communication path with second frame data and set It is identical that standby second reaches the time;
First implementation sub-module, for determine described first reach the time with described second reach the time it is identical after, hold Row step: the present communications access of first electronic equipment and second electronic equipment is controlled by first communication path Switch to second communication path.
Optionally, after the first receiving time of the acquisition and the second receiving time, the electronic equipment further include:
The first adjustment submodule, for leading to when determining first receiving time and the second receiving time difference The cache-time for adjusting first frame data in the cache unit of second electronic equipment is crossed, passes through described the with control One communication path send the first frame data export from second electronic equipment first output the time with pass through described second The second output time that the first frame data that communication path is sent are exported from second electronic equipment is identical;
Second implementation sub-module, for determine it is described first output the time with it is described second output the time it is identical after, hold Row step: the present communications access of first electronic equipment and second electronic equipment is controlled by first communication path Switch to second communication path.
Optionally, second control unit 62, comprising:
Second obtains module, for obtaining the current data class of the data currently sent by first communication path Type;
Second determining module, for determining the current number based on the corresponding relationship between data type and switch mode According to the corresponding current switch mode of type;
5th control module, for controlling first electronic equipment and described second according to the current switch mode The present communications access of electronic equipment switches to second communication path by first communication path.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented Fruit:
One, due to the technical solution in the embodiment of the present application, between first electronic equipment and the second electronic equipment The first communication path is established in the first way, establishes the second communication path in a second manner, wherein with first method foundation The time of communication path is less than the time that communication path is established with the second method;It establishes and completes in first communication path Afterwards, it before second communication path establishes completion, controls and passes through between first electronic equipment and second electronic equipment First communication path is communicated;In passing through the first communication path communication process, if first electronic equipment Meet preset condition, then controls the present communications access between first electronic equipment and second electronic equipment by described First communication path switches to second communication path.I.e. in the technical scheme, first party first shorter with settling time Formula establishes communication path, when meeting preset condition, switches to the communication path established in a second manner, logical using the second communication The characteristics of road, such as: transmission speed is fast or transmission is more stable, to transmit data, thus effectively by first method and second method Advantage is combined together, and then is reached and provided a kind of technical effect of preferably connection type.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of information processing method in the embodiment of the present application can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with information processing method in storage medium One electronic equipment reads or is performed, and includes the following steps:
The first communication path is established in the first way between first electronic equipment and the second electronic equipment, with second Mode establishes the second communication path, wherein is less than with the time that the first method establishes communication path with the second method Establish the time of communication path;
After the completion of first communication path is established, before second communication path establishes completion, control described first It is communicated between electronic equipment and second electronic equipment by first communication path;
By if first electronic equipment meets preset condition, controlling in the first communication path communication process The present communications access made between first electronic equipment and second electronic equipment is switched by first communication path To second communication path.
Optionally, stored in the storage medium and step: described to be set in first electronic equipment and the second electronics The first communication path is established between standby in the first way, corresponding computer instruction specifically includes during being specifically performed Following steps:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
Require first electronic equipment to second electronic equipment receiving from third electronic equipment transmission When sending the first data information, the first communication path is established between first electronic equipment and second electronic equipment, In, the 4th electronic equipment is forwarded to second electronic equipment for receiving first data information.
Optionally, stored in the storage medium and step: described to be set in first electronic equipment and the second electronics The second communication path is established between standby in a second manner, corresponding computer instruction specifically includes during being specifically performed Following steps:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
Public network address by the 4th electronic equipment by first electronic equipment by network address translation and Port numbers are sent to the second electronic equipment, so as to be attached between second electronic equipment and first electronic equipment.
Optionally, stored in the storage medium and step: described to pass through the first communication path communication process In, if first electronic equipment meets preset condition, control first electronic equipment and second electronic equipment Between present communications access second communication path is switched to by first communication path, corresponding computer instruction exists During being specifically performed, specifically comprise the following steps:
Obtain time span at the time of first communication path is established when completing to current time;
If the time span reaches predetermined time period, controls first electronic equipment and second electronics is set Present communications access between standby switches to second communication path by first communication path.
Optionally, stored in the storage medium and step: described to pass through the first communication path communication process In, if first electronic equipment meets preset condition, control first electronic equipment and second electronic equipment it Between present communications access second communication path is switched to by first communication path, corresponding computer instruction is having During body is performed, include the following steps:
Determine whether second communication path establishes completion;
It completes, is controlled between first electronic equipment and two electronic equipment if second communication path is established Present communications access second communication path is switched to by first communication path.
Optionally, stored in the storage medium and step: described to control first electronic equipment and described second Present communications access between electronic equipment switches to second communication path, corresponding calculating by first communication path Machine instruction specifically comprises the following steps: during being specifically performed
In passing through the first communication path communication process, the currently transmitted rate for controlling second communication path is Lower than the first rate of scheduled rate;
Receive the packet loss of second communication path fed back by second electronic equipment;
If the packet loss is lower than the default packet loss, controlling the currently transmitted rate is greater than the default speed Second rate of rate, and the present communications access between first electronic equipment and second electronic equipment is controlled by described First communication path switches to second communication path.
Optionally, stored in the storage medium and step: described to control first electronic equipment and described second The present communications access of electronic equipment switches to second communication path by first communication path, and corresponding computer refers to It enables during being specifically performed, includes the following steps:
Receive the first receiving time and the second receiving time sent by second electronic equipment, wherein described first Receiving time and second receiving time are that second electronic equipment is received by first electronic equipment by described the The time for the first frame data that one communication path and second communication path are sent respectively;
When determining that first receiving time is identical with second receiving time, control first electronic equipment and The present communications access of second electronic equipment switches to second communication path by first communication path.
Optionally, it is also stored with other computer instruction in the storage medium, the other computer instruction With step: receiving the first receiving time sent by second electronic equipment and the corresponding meter of the second receiving time described The instruction of calculation machine is performed after being performed, which specifically includes as follows during being specifically performed Step:
When determining first receiving time and the second receiving time difference, control is logical by first communication Road sends the first sending time of the second frame data and second communication path sends the second of second frame data and sends Time, when reaching the first of second electronic equipment to control second frame data by first communication path and reach Between with second frame data by second communication path reach the second of second electronic equipment to reach the time identical;
Determine described first reach the time with described second reach the time it is identical after, execute step: control described first The present communications access of electronic equipment and second electronic equipment switches to second communication by first communication path Access.
Optionally, it is also stored with other computer instruction in the storage medium, the other computer instruction It is being performed after the first receiving time of the acquisition and the corresponding computer instruction of the second receiving time are performed with step, The other computer specifically comprises the following steps: during being specifically performed
When determining first receiving time and the second receiving time difference, by adjusting first frame data Cache-time in the cache unit of second electronic equipment, to control send by first communication path first The first output time that frame data are exported from second electronic equipment and the first frame sent by second communication path The second output time that data are exported from second electronic equipment is identical;
Determine it is described first output the time with it is described second output the time it is identical after, execute step: control described first The present communications access of electronic equipment and second electronic equipment switches to second communication by first communication path Access.
Optionally, stored in the storage medium and step: described to control first electronic equipment and described second The present communications access of electronic equipment switches to second communication path by first communication path, and corresponding computer refers to It enables during being specifically performed, specifically comprises the following steps:
Obtain the current data type of the data currently sent by first communication path;
Based on the corresponding relationship between data type and switch mode, determines that the current data type is corresponding and currently cut Mold changing formula;
According to the current switch mode, the present communications of first electronic equipment and second electronic equipment are controlled Access switches to second communication path by first communication path.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as 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 Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (14)

1. a kind of information processing method is applied to the first electronic equipment, which comprises
The first communication path is established in the first way between first electronic equipment and the second electronic equipment, in a second manner Establish the second communication path, wherein be less than with second method foundation with the time that the first method establishes communication path The time of communication path;
After the completion of first communication path is established, before second communication path establishes completion, first electronics is controlled It is communicated between equipment and second electronic equipment by first communication path;
By if first electronic equipment meets preset condition, controlling institute in the first communication path communication process The present communications access stated between the first electronic equipment and second electronic equipment switches to institute by first communication path State the second communication path.
2. the method as described in claim 1, which is characterized in that it is described first electronic equipment and the second electronic equipment it Between establish the first communication path in the first way, comprising:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
First electronic equipment is required to send to second electronic equipment receiving from third electronic equipment transmission When the first data information, the first communication path is established between first electronic equipment and second electronic equipment, wherein institute The 4th electronic equipment is stated for receiving first data information, and is forwarded to second electronic equipment.
3. the method as described in claim 1, which is characterized in that it is described first electronic equipment and the second electronic equipment it Between establish the second communication path in a second manner, comprising:
First electronic equipment is by establishing connection between third electronic equipment and the 4th electronic equipment;
Public network address and port by the 4th electronic equipment by first electronic equipment by network address translation Number it is sent to the second electronic equipment, so as to be attached between second electronic equipment and first electronic equipment.
4. the method as described in claim 1, which is characterized in that it is described in passing through the first communication path communication process, If first electronic equipment meets preset condition, control between first electronic equipment and second electronic equipment Present communications access second communication path is switched to by first communication path, comprising:
Obtain time span at the time of first communication path is established when completing to current time;
If the time span reaches predetermined time period, control first electronic equipment and second electronic equipment it Between present communications access second communication path is switched to by first communication path.
5. the method as described in claim 1, which is characterized in that it is described in passing through the first communication path communication process, If first electronic equipment meets preset condition, control between first electronic equipment and second electronic equipment Present communications access switches to second communication path by first communication path, comprising:
Determine whether second communication path establishes completion;
It is completed if second communication path is established, controls working as between first electronic equipment and two electronic equipment Preceding communication path switches to second communication path by first communication path.
6. the method as described in claim any in claim 1-5, which is characterized in that the control first electronic equipment and Present communications access between second electronic equipment switches to second communication path by first communication path, packet It includes:
The currently transmitted rate by the first communication path communication process, controlling second communication path be lower than The first rate of scheduled rate;
Receive the packet loss of second communication path fed back by second electronic equipment;
If the packet loss is lower than the default packet loss, controlling the currently transmitted rate is greater than the scheduled rate Second rate, and the present communications access between first electronic equipment and second electronic equipment is controlled by described first Communication path switches to second communication path.
7. method as claimed in claim 6, which is characterized in that the control first electronic equipment and second electronics The present communications access of equipment switches to second communication path by first communication path, comprising:
Receive the first receiving time and the second receiving time sent by second electronic equipment, wherein described first receives Time and second receiving time are that second electronic equipment reception is led to by first electronic equipment by described first The time for the first frame data that letter access and second communication path are sent respectively;
When determining that first receiving time is identical with second receiving time, first electronic equipment and described is controlled The present communications access of second electronic equipment switches to second communication path by first communication path.
8. the method for claim 7, which is characterized in that receive first sent by second electronic equipment described After receiving time and the second receiving time, the method also includes:
When determining first receiving time and the second receiving time difference, control is sent out by first communication path The first sending time of the second frame data and second communication path is sent to send the second sending time of second frame data, With control second frame data by first communication path reach the first of second electronic equipment reach the time with Second frame data by second communication path reach the second of second electronic equipment, and to reach the time identical;
Determine described first reach the time with described second reach the time it is identical after, execute step: control first electronics The present communications access of equipment and second electronic equipment switches to second communication path by first communication path.
9. the method for claim 7, which is characterized in that receive first sent by second electronic equipment described After receiving time and the second receiving time, the method also includes:
When determining first receiving time and the second receiving time difference, by adjusting first frame data in institute The cache-time in the cache unit of the second electronic equipment is stated, to control the first frame number sent by first communication path According to the first output time and the first frame data by second communication path transmission exported from second electronic equipment The the second output time exported from second electronic equipment is identical;
Determine the first output time with the second output time it is identical after, execute step: control first electronics The present communications access of equipment and second electronic equipment switches to second communication path by first communication path.
10. the method as described in claim any in claim 1-5, which is characterized in that control first electronic equipment Second communication path is switched to by first communication path with the present communications access of second electronic equipment, is wrapped It includes:
Obtain the current data type of the data currently sent by first communication path;
Based on the corresponding relationship between data type and switch mode, the corresponding current switching mould of the current data type is determined Formula;
According to the current switch mode, the present communications access of first electronic equipment and second electronic equipment is controlled Second communication path is switched to by first communication path.
11. a kind of electronic equipment, comprising:
Shell;
Processing unit is arranged in the shell, is used between the electronic equipment and the second electronic equipment in the first way The first communication path is established, establishes the second communication path in a second manner, wherein communication path is established with the first method Time is less than the time that communication path is established with the second method;After the completion of first communication path is established, described the Before two communication path settings are completed, control logical by first communication between the electronic equipment and second electronic equipment Road is communicated;And by if the electronic equipment meets preset condition, controlling in the first communication path communication process The present communications access made between the electronic equipment and second electronic equipment switches to institute by first communication path State the second communication path.
12. electronic equipment as claimed in claim 11, which is characterized in that the electronic equipment further include:
Reception device is arranged in the shell;
The processing unit is used for:
The currently transmitted rate by the first communication path communication process, controlling second communication path be lower than The first rate of scheduled rate;
Control the packet loss that the reception device receives second communication path fed back by second electronic equipment;
If the packet loss is lower than the default packet loss, controlling the currently transmitted rate is greater than the scheduled rate Second rate, and control the present communications access between the electronic equipment and second electronic equipment and communicated by described first Access switches to second communication path.
13. electronic equipment as claimed in claim 12, which is characterized in that the electronic equipment further include:
Storage device is arranged in the shell, for storing data, includes at least the first frame data and the second frame data;
The processing unit is used for:
It controls the reception device and receives the first receiving time and the second receiving time sent by second electronic equipment, In, first receiving time and second receiving time are that second electronic equipment reception is passed through by the electronic equipment The time for first frame data that first communication path and second communication path are sent respectively;
When determining that first receiving time is identical with second receiving time, the electronic equipment and described second are controlled The present communications access of electronic equipment switches to second communication path by first communication path;
When determining first receiving time and the second receiving time difference, control is sent out by first communication path It send the first sending time of second frame data and second communication path to send the second of second frame data to send Time, when reaching the first of second electronic equipment to control second frame data by first communication path and reach Between with second frame data by second communication path reach the second of second electronic equipment to reach the time identical;
Determine described first reach the time with described second reach the time it is identical after, control the electronic equipment and described second The present communications access of electronic equipment switches to second communication path by first communication path.
14. a kind of electronic equipment, comprising:
First establishing unit, it is logical for establishing the first communication in the first way between the electronic equipment and the second electronic equipment The second communication path is established on road in a second manner, wherein is less than with the time that the first method establishes communication path with described Second method establishes the time of communication path;
First control unit is used for after the completion of first communication path is established, before second communication path establishes completion, It controls and is communicated between the electronic equipment and second electronic equipment by first communication path;
Second control unit, for by being preset if the electronic equipment meets in the first communication path communication process Condition then controls the present communications access between the electronic equipment and second electronic equipment by first communication path Switch to second communication path.
CN201610195630.8A 2016-03-30 2016-03-30 A kind of information processing method and electronic equipment Active CN105873155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610195630.8A CN105873155B (en) 2016-03-30 2016-03-30 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610195630.8A CN105873155B (en) 2016-03-30 2016-03-30 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105873155A CN105873155A (en) 2016-08-17
CN105873155B true CN105873155B (en) 2019-05-31

Family

ID=56626565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610195630.8A Active CN105873155B (en) 2016-03-30 2016-03-30 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105873155B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993338A (en) * 2017-03-31 2017-07-28 联想(北京)有限公司 A kind of signal processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387568A (en) * 2010-09-03 2012-03-21 中国电信股份有限公司 Method and system for mobile terminal capable of automatically selecting communication mode
CN103874063A (en) * 2012-12-17 2014-06-18 鸿富锦精密工业(深圳)有限公司 Electronic device and method for establishing communication between electronic devices
CN104202805A (en) * 2014-09-22 2014-12-10 联想(北京)有限公司 Communication control method and electronic device
CN104350480A (en) * 2012-06-21 2015-02-11 株式会社得那 Communication method, communication apparatus, and program
CN107318172A (en) * 2016-04-26 2017-11-03 中兴通讯股份有限公司 The method and apparatus that terminal room sets up communication connection

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602006018538D1 (en) * 2006-07-12 2011-01-05 Ericsson Telefon Ab L M USER NETWORK AND METHOD FOR USING MULTIPLE ACCESS SYSTEMS FOR CONNECTING TO REMOTE COMMUNICATIONS NETWORK (EN)
US9398505B2 (en) * 2013-03-14 2016-07-19 Google Inc. Reducing stream interruptions during network handover

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387568A (en) * 2010-09-03 2012-03-21 中国电信股份有限公司 Method and system for mobile terminal capable of automatically selecting communication mode
CN104350480A (en) * 2012-06-21 2015-02-11 株式会社得那 Communication method, communication apparatus, and program
CN103874063A (en) * 2012-12-17 2014-06-18 鸿富锦精密工业(深圳)有限公司 Electronic device and method for establishing communication between electronic devices
CN104202805A (en) * 2014-09-22 2014-12-10 联想(北京)有限公司 Communication control method and electronic device
CN107318172A (en) * 2016-04-26 2017-11-03 中兴通讯股份有限公司 The method and apparatus that terminal room sets up communication connection

Also Published As

Publication number Publication date
CN105873155A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
EP3193489B1 (en) Software-defined network-based method and system for implementing content distribution network
US8683007B2 (en) Seamless transfer of media streams
CN103634299B (en) Based on multi-link real time streaming terminal and method
WO2015051704A1 (en) Mobile terminal multi-apn network concurrent system and networking method thereof
US9998298B2 (en) Data transmission method, apparatus, and computer storage medium
CN102546418A (en) Overlay-network-multipath-transmission-based Internet protocol multimedia subsystem (IMS) client and media exchange method
CN104852855B (en) Jamming control method, device and equipment
CN105284150B (en) Service shunting method, control network element, gateway router and user entity
CN104301252A (en) Data sending system and method
WO2022127605A1 (en) Network switching method and apparatus
EP2556693A1 (en) Inter-working of efm-oam and cfm-oam for mobile backhaul networks
CN109831490A (en) Business access method and system
CN101938467B (en) Communication system and method for supporting internetwork multimedia session splitting realization
CN108881788A (en) A kind of data processing method and device based on view networking
CN105873155B (en) A kind of information processing method and electronic equipment
CN103095664A (en) Method and system establishing internet protocol (IP) multi-media session
US9654559B2 (en) Method, apparatus, and system for exchanging data of edge area user on cloud radio access network
CN103533580A (en) Wifi data non-seamless branching method, apparatus and system
CN112994946A (en) Link aggregation method
CN109818901A (en) Heading compression mechanism determines method, equipment and system
JP2016530806A (en) Wireless access method, apparatus and system
CN114095417B (en) Programmable routing switch, system and method
CN104780591B (en) Business interoperability implementation method, device, system and relevant device between terminal device
CN105392025A (en) User-side bandwidth aggregation method, apparatus and content distribution system
CN102137094B (en) Method, device and system for transmitting voice message in multipath

Legal Events

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