CN109710545A - Data transmission method and device, computer readable storage medium, computer system - Google Patents

Data transmission method and device, computer readable storage medium, computer system Download PDF

Info

Publication number
CN109710545A
CN109710545A CN201811617320.6A CN201811617320A CN109710545A CN 109710545 A CN109710545 A CN 109710545A CN 201811617320 A CN201811617320 A CN 201811617320A CN 109710545 A CN109710545 A CN 109710545A
Authority
CN
China
Prior art keywords
electronic equipment
network information
transmission channel
mentioned
equipment
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.)
Granted
Application number
CN201811617320.6A
Other languages
Chinese (zh)
Other versions
CN109710545B (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 CN201811617320.6A priority Critical patent/CN109710545B/en
Publication of CN109710545A publication Critical patent/CN109710545A/en
Application granted granted Critical
Publication of CN109710545B publication Critical patent/CN109710545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Present disclose provides a kind of data transmission methods, comprising: obtains the current first network information of the first electronic equipment;In the case where detecting that the first transmission channel between the first electronic equipment and the second electronic equipment disconnects, pass through the second transmission channel between the first electronic equipment and the second electronic equipment, to the second electronic equipment first network information, so that first network information is written in third electronic equipment the second electronic equipment, wherein, the second electronic equipment, which is based on third electronic equipment, to share with the first electronic equipment progress content.The disclosure additionally provides a kind of data transmission device, a kind of computer readable storage medium and a kind of computer system.

Description

Data transmission method and device, computer readable storage medium, computer system
Technical field
This disclosure relates to a kind of data transmission method and device, a kind of computer readable storage medium, a kind of department of computer science System.
Background technique
With the rapid development of electronic technology, the electronic product of various Various Functions emerges one after another, use is enriched and facilitated The work and life at family.Meanwhile in existing smart machine, more and more equipment have to be interconnected with other equipment Function.
For example, in the related art, the first electronic equipment and the second electronic equipment pass through wireless wifi by shared device Connection can carry out Screen sharing, allow the content information for showing the first electronic equipment screen to be transferred to the second electronics and set It is standby or projected by the second electronic equipment and shown on other media.But present inventor has found the relevant technologies In, if the device network information of interconnection changes, it is real to need to guarantee that the network information of the equipment of interconnection is consistent ability Existing content is shared, in this case it is necessary to the network information of manual setting equipment, and this scheme will make the starting of service It is delayed long, and realizes that process is complicated.
Summary of the invention
An aspect of this disclosure provides a kind of data transmission method, including obtaining the first electronic equipment currently first The network information;And in the feelings for detecting that the first transmission channel between above-mentioned first electronic equipment and the second electronic equipment disconnects Under condition, pass through the second transmission channel between above-mentioned first electronic equipment and above-mentioned second electronic equipment, the second electronics of Xiang Shangshu Equipment transmits above-mentioned first network information, so that third electronics is written in above-mentioned first network information by above-mentioned second electronic equipment In equipment, wherein above-mentioned second electronic equipment be based on above-mentioned third electronic equipment can with above-mentioned first electronic equipment carry out in Hold shared.
Optionally, to before the above-mentioned above-mentioned first network information of second electronic equipment, the above method further includes connecing Receive second network information that above-mentioned second electronic equipment is transmitted based on above-mentioned second transmission channel, wherein above-mentioned second network letter It ceases related to above-mentioned first transmission channel;And above-mentioned is determined according to above-mentioned second network information and above-mentioned first network information Whether the first transmission channel between one electronic equipment and above-mentioned second electronic equipment disconnects.
Optionally, according to above-mentioned second network information and above-mentioned first network information determine above-mentioned first electronic equipment with it is upper It states the first transmission channel between the second electronic equipment and whether disconnects and be included in above-mentioned second network information and above-mentioned first network In the unmatched situation of information, above-mentioned first transmission channel is disconnected;And in above-mentioned second network information and above-mentioned first network In the case where information matches, above-mentioned first transmission channel connection is normal.
Optionally, the above method further includes by mobile hot spot in above-mentioned first electronic equipment and above-mentioned second electronic equipment Between establish above-mentioned second transmission channel.
Optionally, the above method further includes first detected between above-mentioned first electronic equipment and above-mentioned second electronic equipment Whether transmission channel disconnects, comprising: judges that can above-mentioned first electronic equipment receive being total to for above-mentioned second electronic equipment Enjoy content;And determine that the first transmission between above-mentioned first electronic equipment and above-mentioned second electronic equipment is logical according to judging result Whether road disconnects.
Optionally, after above-mentioned first network information is written in third electronic equipment above-mentioned second electronic equipment, on The method of stating further includes the second transmission channel disconnected between above-mentioned first electronic equipment and above-mentioned second electronic equipment;Based on above-mentioned First network information establishes third transmission channel between above-mentioned first electronic equipment and above-mentioned second electronic equipment.
Optionally, the above method further includes by the between above-mentioned first electronic equipment and above-mentioned second electronic equipment Two transmission channels, before the above-mentioned first network information of the second electronic equipment of Xiang Shangshu, by above-mentioned first electronic equipment Target application monitor whether establish above-mentioned second transmission channel between above-mentioned first electronic equipment and above-mentioned second electronic equipment; Above-mentioned second transmission channel is established between above-mentioned first electronic equipment and above-mentioned second electronic equipment;It is obtained in above-mentioned target application It in the case where getting the content requests that above-mentioned second electronic equipment is sent, requests in response to above content, is passed based on above-mentioned second Defeated access is to the above-mentioned above-mentioned first network information of second electronic equipment.
Another aspect of the present disclosure provides a kind of data transmission device, including obtains module, for obtaining the first electronics The current first network information of equipment;Transmission module, for detect above-mentioned first electronic equipment and the second electronic equipment it Between the first transmission channel disconnect in the case where, pass through second between above-mentioned first electronic equipment and above-mentioned second electronic equipment Transmission channel, the above-mentioned first network information of the second electronic equipment of Xiang Shangshu, so that above-mentioned second electronic equipment will be above-mentioned First network information is written in third electronic equipment, wherein above-mentioned second electronic equipment is based on above-mentioned third electronic equipment can It is shared that content is carried out with above-mentioned first electronic equipment.
Optionally, above-mentioned apparatus further includes receiving module, for above-mentioned first net of above-mentioned second electronic equipment Before network information, second network information that above-mentioned second electronic equipment is transmitted based on above-mentioned second transmission channel is received, wherein on It is related to above-mentioned first transmission channel to state second network information;And determining module, for according to above-mentioned second network information and Above-mentioned first network information determines whether the first transmission channel between the first electronic equipment and above-mentioned second electronic equipment disconnects.
Optionally, according to above-mentioned second network information and above-mentioned first network information determine above-mentioned first electronic equipment with it is upper It states the first transmission channel between the second electronic equipment and whether disconnects and be included in above-mentioned second network information and above-mentioned first network In the unmatched situation of information, above-mentioned first transmission channel is disconnected;In above-mentioned second network information and above-mentioned first network information In matched situation, above-mentioned first transmission channel connection is normal.
Optionally, above-mentioned the is established between above-mentioned first electronic equipment and above-mentioned second electronic equipment by mobile hot spot Two transmission channels.
Optionally, above-mentioned apparatus further includes detection module, for detecting above-mentioned first electronic equipment and above-mentioned second electronics Whether the first transmission channel between equipment disconnects, by judging that can above-mentioned first electronic equipment receive above-mentioned second electronics The shared content of equipment transmission;And it is determined between above-mentioned first electronic equipment and above-mentioned second electronic equipment according to judging result The first transmission channel whether disconnect.
Optionally, after above-mentioned first network information is written in third electronic equipment above-mentioned second electronic equipment, break Open the second transmission channel between above-mentioned first electronic equipment and above-mentioned second electronic equipment;Existed based on above-mentioned first network information Third transmission channel is established between above-mentioned first electronic equipment and above-mentioned second electronic equipment.
Optionally, passing through the second transmission channel between above-mentioned first electronic equipment and above-mentioned second electronic equipment, to Before the above-mentioned above-mentioned first network information of second electronic equipment, monitored by the target application on above-mentioned first electronic equipment Whether above-mentioned second transmission channel is established between above-mentioned first electronic equipment and above-mentioned second electronic equipment;In above-mentioned first electronics Above-mentioned second transmission channel is established between equipment and above-mentioned second electronic equipment;Above-mentioned second electricity is got in above-mentioned target application It in the case where the content requests that sub- equipment is sent, is requested in response to above content, based on above-mentioned second transmission channel to above-mentioned the The above-mentioned first network information of two electronic equipments.
Another aspect of the present disclosure provides a kind of computer readable storage medium, is stored thereon with the executable finger of computer It enables, above-metioned instruction is when executed for realizing method as described above.
Another aspect of the present disclosure provides a kind of computer system, comprising: one or more processors;It is computer-readable Storage medium, for storing one or more programs, wherein when said one or multiple programs are by said one or multiple processing When device executes, so that one or more of processors, which are realized, weighs method as described above.
Another aspect of the present disclosure provides a kind of computer program, and the computer program, which includes that computer is executable, to be referred to It enables, described instruction is when executed for realizing method as described above.
Detailed description of the invention
In order to which the disclosure and its advantage is more fully understood, referring now to being described below in conjunction with attached drawing, in which:
Fig. 1 diagrammatically illustrates the application scenario diagram of data transmission method and device according to the embodiment of the present disclosure;
Fig. 2 diagrammatically illustrates the flow chart of the data transmission method according to the embodiment of the present disclosure;
Fig. 3 is diagrammatically illustrated according between the first electronic equipment of determination of the embodiment of the present disclosure and the second electronic equipment The flow chart whether the first transmission channel disconnects;
Fig. 4 diagrammatically illustrate according to the first electronic equipment of detection of another embodiment of the disclosure and the second electronic equipment it Between the flow chart that whether disconnects of the first transmission channel;
Fig. 5 diagrammatically illustrates the flow chart of the data transmission method according to another embodiment of the disclosure;
Fig. 6 diagrammatically illustrates the block diagram of the data transmission device according to the embodiment of the present disclosure;And
Fig. 7 is diagrammatically illustrated according to the computer system for being adapted for carrying out method as described above of the embodiment of the present disclosure Block diagram.
Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary , and it is not intended to limit the scope of the present disclosure.In the following detailed description, to elaborate many specific thin convenient for explaining Section is to provide the comprehensive understanding to the embodiment of the present disclosure.It may be evident, however, that one or more embodiments are not having these specific thin It can also be carried out in the case where section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid Unnecessarily obscure the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses herein The terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of Or add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without that should be explained with idealization or excessively mechanical mode.
It, in general should be according to this using statement as " at least one in A, B and C etc. " is similar to Field technical staff is generally understood the meaning of the statement to make an explanation (for example, " system at least one in A, B and C " Should include but is not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/or System etc. with A, B, C).Using statement as " at least one in A, B or C etc. " is similar to, generally come Saying be generally understood the meaning of the statement according to those skilled in the art to make an explanation (for example, " having in A, B or C at least One system " should include but is not limited to individually with A, individually with B, individually with C, with A and B, have A and C, have B and C, and/or the system with A, B, C etc.).
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart Frame or combinations thereof can be realized by computer program instructions.These computer program instructions can be supplied to general purpose computer, The processor of special purpose computer or other programmable data processing units, so that these instructions are when executed by this processor can be with Creation is for realizing function/operation device illustrated in these block diagrams and/or flow chart.The technology of the disclosure can be hard The form of part and/or software (including firmware, microcode etc.) is realized.In addition, the technology of the disclosure, which can be taken, is stored with finger The form of computer program product on the computer readable storage medium of order, the computer program product is for instruction execution system System uses or instruction execution system is combined to use.
Embodiment of the disclosure provides a kind of data transmission method and device, and this method includes obtaining the first electronic equipment Current first network information is detecting what the first transmission channel between the first electronic equipment and the second electronic equipment disconnected In the case of, by the second transmission channel between the first electronic equipment and the second electronic equipment, to the second electronic equipment One network information, so that first network information is written in third electronic equipment the second electronic equipment, wherein the second electronics is set It is standby to be shared with the first electronic equipment progress content based on third electronic equipment.
Fig. 1 diagrammatically illustrates the application scenario diagram of data transmission method and device according to the embodiment of the present disclosure.It needs It is noted that being only the example that can apply the scene of the embodiment of the present disclosure shown in Fig. 1, to help skilled in the art to understand The technology contents of the disclosure, but it is not meant to that the embodiment of the present disclosure may not be usable for other equipment, system, environment or scene.
As shown in Figure 1, the first electronic equipment 101 can carry out data transmission with the second electronic equipment 102, the first electronics is set Standby 101 and second can be established between electronic equipment 102 by router and communicate to connect, or direct-connected by wifi hotspot, Wifi hotspot is direct-connected to refer to two between equipment or multiple equipment, does not need to be directly connected to by router.Second electronics Equipment 102 can use third electronic equipment 103, and it is shared to carry out content with the first electronic equipment 101.
There is the network file about 101 network information of the first electronic equipment, but network file in third electronic equipment 103 Often fix.Third electronic equipment 103 can be connect in a wired or wireless fashion with the second electronic equipment 102.Second electricity Sub- equipment 102 can read the network file in third electronic equipment 103, and based on the network information and first in network file Electronic equipment 101 communicates to connect.
In some cases, the network information of the first electronic equipment 101 may be modified, at this time third electronic equipment 103 In the network file network information that is included and the modified network information of the first electronic equipment 101 may be different.In third The network information that network file in electronic equipment 103 is included is different from the modified network information of the first electronic equipment 101 In the case where, communication link just disconnects between the second electronic equipment 102 and the first electronic equipment 101.If the second electronic equipment 102 will realize and communicate with the first electronic equipment 101, need the information for being included by the network file in third electronic equipment 103 Being changed to the modified network information of the first electronic equipment 101 could realize again in the case where the network information is consistent Communication.
In the related art, it generally requires and pulls up third electronic equipment 103 from the second electronic equipment 102, insertion the It is initialized on one electronic equipment 101, network file is copied to third electronic equipment 103, then be inserted into the second electronics again In equipment 102.In this case it is necessary to manual removable electronic equipment 103, this scheme compares the start-up study of service It is long, and realize that process is complicated.
In accordance with an embodiment of the present disclosure, the information that the network file in third electronic equipment 103 is included and the first electricity In the case that the modified network information of sub- equipment 101 is different, the first electronic equipment 101 and the second electronic equipment can be passed through It is modified to transmit the first electronic equipment 101 to the second electronic equipment 102 for another transmission channel established automatically between 102 The network information, so that third electronic equipment is written in the modified network information of the first electronic equipment 101 by the second electronic equipment 102 In 103.In this way, the information for making the network file in third electronic equipment 103 be included and the first electronic equipment 101 are at this time The network information is consistent, the second electronic equipment 102 can based on third electronic equipment 103 again with the first electronic equipment 101 It is shared to carry out content.
In accordance with an embodiment of the present disclosure, the first transmission channel between the first electronic equipment 101 and the second electronic equipment 102 It can be the communication connection established by router, the second transmission between the first electronic equipment 101 and the second electronic equipment 102 Access can be the communication connection by the direct-connected foundation of wifi hotspot.Detecting that the first electronic equipment 101 sets with the second electronics It, can be in the first electronic equipment 101 and the second electricity in the case that the communication connection established by router between standby 102 disconnects It is established between sub- equipment 102 by wifi hotspot direct-connected.
In accordance with an embodiment of the present disclosure, more and more equipment have the function of interconnecting with other equipment.For example, It is total can to carry out screen by wireless wifi connection by shared device for first electronic equipment 101 and the second electronic equipment 102 It enjoys, the content information for showing 102 screen of the second electronic equipment is allowed to be transferred to the first electronic equipment 101 or by the One electronic equipment 101 projects to be shown on other media.
It can be set by the first electronics by embodiment of the disclosure if the device network information of interconnection changes Standby 101 and the second another transmission channel being established between electronic equipment 102 automatically, to the second electronic equipment 102 transmission first The modified network information of electronic equipment 101, so that the second electronic equipment 102 is by the modified network of the first electronic equipment 101 Information is written in third electronic equipment 103.In this way, the information for making the network file in third electronic equipment 103 be included with The network information of first electronic equipment 101 at this time is consistent, and the second electronic equipment 102 can be based on third electronic equipment 103 Again it is shared content to be carried out with the first electronic equipment 101.In this case, believe without the network of user's manual setting equipment Breath reduces because network information variation leads to the number of service disruption, reduces the start-up study probability of service, realizes process Simply, user experience is improved.
Fig. 2 diagrammatically illustrates the flow chart of the data transmission method according to the embodiment of the present disclosure.
As shown in Fig. 2, this method includes operation S201~S202.
In operation S201, the current first network information of the first electronic equipment is obtained.
In operation S202, detecting what the first transmission channel between the first electronic equipment and the second electronic equipment disconnected In the case of, by the second transmission channel between the first electronic equipment and the second electronic equipment, to the second electronic equipment One network information, so that first network information is written in third electronic equipment the second electronic equipment, wherein the second electronics is set It is standby to be shared with the first electronic equipment progress content based on third electronic equipment.
In accordance with an embodiment of the present disclosure, for example, first network information can be the current IP address of the first electronic equipment, the One transmission channel can be the communication connection established by router, and the second transmission channel can be to be built by the way that wifi hotspot is direct-connected Vertical communication connection.When the communication connection that router is established disconnects, hotspot pattern can be automatically switched to, then the It is established between one electronic equipment and the second electronic equipment by wifi hotspot direct-connected, it can by mobile hot spot in the first electronics The second transmission channel is established between equipment and the second electronic equipment.
In accordance with an embodiment of the present disclosure, the second transmission channel is established by mobile hot spot, it is real using the existing function of equipment Existing transport network information, can reduce equipment cost, feasibility is higher.
In accordance with an embodiment of the present disclosure, it is based on the second transmission channel, the second electronic equipment can be same by first network information In step write-in third electronic equipment, so that the network information of the network information and the first electronic equipment in third electronic equipment is kept Unanimously.
In accordance with an embodiment of the present disclosure, logical by the second transmission between the first electronic equipment and the second electronic equipment Road can pass through between the first electronic equipment and the second electronic equipment to after the second electronic equipment first network information Second transmission channel carries out data transmission.It is of course also possible to the second transmission channel be disconnected, in the first electronic equipment and the second electronics Third transmission channel is re-established between equipment.
In accordance with an embodiment of the present disclosure, it in third electronic equipment is written into first network information in the second electronic equipment Afterwards, the second transmission channel between the first electronic equipment and the second electronic equipment is disconnected, based on first network information in the first electricity Third transmission channel is established between sub- equipment and the second electronic equipment.
In accordance with an embodiment of the present disclosure, third transmission channel can be access identical with the first transmission channel type, example Such as, it is all based on the transmission channel that router is built between the first electronic equipment and the second electronic equipment.Third transmission channel Be also possible to the first different access of transmission channel type, for example, the first transmission channel be based on router first electricity The transmission channel built between sub- equipment and the second electronic equipment, third transmission channel are to be set based on mobile hot spot in the first electronics The standby transmission channel built between the second electronic equipment.
In accordance with an embodiment of the present disclosure, logical by disconnecting the second transmission between the first electronic equipment and the second electronic equipment Road re-establishes third transmission channel based on first network information between the first electronic equipment and the second electronic equipment, can be with So that remote equipment is also added in the content shared model between the first electronic equipment and the second electronic equipment.
It can be set by the first electronics by embodiment of the disclosure if the device network information of interconnection changes The standby another transmission channel established automatically between the second electronic equipment, is repaired to second the first electronic equipment of electronic equipment The network information after changing, so that third electronic equipment is written in the modified network information of the first electronic equipment by the second electronic equipment In.In this way, the information for making the network file in third electronic equipment be included and the network information of the first electronic equipment at this time It is consistent, it is shared that the second electronic equipment can carry out content with the first electronic equipment again based on third electronic equipment.At this In the case of kind, without the network information of user's manual setting equipment, reduce because network information variation leads to service disruption Number reduces the start-up study probability of service, realizes that process is simple, improves user experience.
Below with reference to Fig. 3~Fig. 5, method shown in Fig. 2 is described further in conjunction with specific embodiments.
Fig. 3 is diagrammatically illustrated according between the first electronic equipment of determination of the embodiment of the present disclosure and the second electronic equipment The flow chart whether the first transmission channel disconnects.
As shown in figure 3, this method includes operation S203~S204.
In operation S203, it is being based on to before the second electronic equipment first network information, receiving the second electronic equipment Second network information of the second transmission channel transmission, wherein second network information is related to the first transmission channel.
In accordance with an embodiment of the present disclosure, communication link can be remained between the first electronic equipment and the second electronic equipment It connects.In the case where the first transmission channel disconnects, second can be established between the first electronic equipment and the second electronic equipment automatically Transmission channel.Specifically, for example, after router suspension between the first electronic equipment and the second electronic equipment, the first electronics Equipment or the second electronic equipment can open mobile hot spot, establish the second transmission channel based on mobile hot spot.
In accordance with an embodiment of the present disclosure, in the case where the first transmission channel disconnects, the first electronic equipment and the second electronics It can be connected automatically between equipment, establish the second transmission channel.In accordance with an embodiment of the present disclosure, can the first electronic equipment with While the second transmission channel can be established between second electronic equipment automatically, the second electronic equipment is based on the second transmission channel certainly Trend second network information of the first electronic equipment, so that the first electronic equipment of triggering is electric to the second electronic equipment first The current first network information of sub- equipment.Because of second network information one that the second electronic equipment is read from third electronic equipment Directly there is no variation, so the first electronic equipment can be based on second network information and the detection of current first network information the Whether the first transmission channel between one electronic equipment and the second electronic equipment disconnects.In operation S204, believed according to the second network Breath and first network information determine whether the first transmission channel between the first electronic equipment and the second electronic equipment disconnects.
In accordance with an embodiment of the present disclosure, under second network information and the unmatched situation of first network information, first is passed Defeated access disconnects.Under second network information and the matched situation of first network information, the connection of the first transmission channel is normal.
In accordance with an embodiment of the present disclosure, for example, being the first IP address in first network information, second network information is second In the case where IP address, if the second IP address is identical as the first IP address, the connection of the first transmission channel is normal.If the Two IP address are different from the first IP address, then the first transmission channel disconnects.
By embodiment of the disclosure, according to second network information of the second transmission channel transmission and current first network Information judges whether the access between the first electronic equipment and the second electronic equipment disconnects, and can quickly trigger the first electronic equipment Current first network information is sent, so that keep the network information consistent between the first electronic equipment and the second electronic equipment, into And allow to reconnect network based on the consistent network information, to simplify service Booting sequence.
Fig. 4 diagrammatically illustrate according to the first electronic equipment of detection of another embodiment of the disclosure and the second electronic equipment it Between the flow chart that whether disconnects of the first transmission channel.
As shown in figure 4, this method includes operation S205~S206.
In operation S205, judge that can the first electronic equipment receive the shared content of the second electronic equipment.
In operation S206, determine that the first transmission between the first electronic equipment and the second electronic equipment is logical according to judging result Whether road disconnects.
In accordance with an embodiment of the present disclosure, if the first electronic equipment cannot receive the second electronic equipment within a certain period of time The shared content of transmission illustrates that the first transmission channel between the first electronic equipment and the second electronic equipment disconnects.
In accordance with an embodiment of the present disclosure, if the first electronic equipment cannot receive the second electronic equipment within a certain period of time The shared content of transmission can not establish second in this case at once between the first electronic equipment and the second electronic equipment Transmission channel resettles the second transmission channel when triggering content sharing operation on the first electronic equipment.It is needed in user Quickly the second transmission channel is established in triggering when wanting content shared, network is reconnected, due to that can establish according to actual needs Second transmission channel, it is possible to reduce the loss of network flow avoids unnecessary flow loss.
Fig. 5 diagrammatically illustrates the flow chart of the data transmission method according to another embodiment of the disclosure.
As shown in figure 5, this method includes operation S207~S209.
In operation S207, passing through the second transmission channel between the first electronic equipment and the second electronic equipment, to second Before electronic equipment first network information, the first electronic equipment and the are monitored by target application on the first electronic equipment Whether second transmission channel is established between two electronic equipments.
In operation S208, the second transmission channel is established between the first electronic equipment and the second electronic equipment.
In operation S209, the case where above-mentioned target application gets the content requests that above-mentioned second electronic equipment is sent Under, it is requested in response to above content, is based on the second transmission channel to the second electronic equipment first network information.
In accordance with an embodiment of the present disclosure, the first electronic equipment can be the office meeting situation towards modern conferencing environment and set Standby, the second electronic equipment can be computer, and third electronic equipment can be shared device dongle, set for realizing the first electronics The standby content between the second electronic equipment is shared.First electronic equipment can be used as server-side, run application program, and second Electronic equipment can be used as client, equally run application program.
It in accordance with an embodiment of the present disclosure, can when the router connection failure of the application program of server-side detection client To automatically switch to mobile hot spot, communication connection is established between server-side and client based on mobile hot spot.Due to server-side Application program can detecte client router whether successful connection or normal so that the application program of server-side can To determine whether to automatically switch to mobile hot spot, to realize whether build between the first electronic equipment of monitoring and the second electronic equipment Vertical second transmission channel.
At this point, in the case where receiving the content requests of client transmission, in response to content requests, the application of server-side The current network information of server-side can be sent to the application program of client by program, and the application program of client synchronizes Operation, the network information is passed in the shared device dongle connecting with client.
In accordance with an embodiment of the present disclosure, if the software version of server-side needs to upgrade, when the application program of server-side is examined New version has been measured, mobile hot spot can be automatically switched to, new version is passed to the shared device dongle connecting with client In, trigger the edition upgrading of shared device dongle.
To shared device dongle carry out write-protect in the case where, client can also first to shared device dongle into Row solution protection re-starts write-protect after the network information change or edition upgrading of triggering shared device dongle.
Fig. 6 diagrammatically illustrates the block diagram of the data transmission device according to the embodiment of the present disclosure.
As shown in fig. 6, data transmission device 300 includes obtaining module 301 and transmission module 302.
Module 301 is obtained for obtaining the current first network information of the first electronic equipment.
Transmission module 302 is used to detect that the first transmission channel between the first electronic equipment and the second electronic equipment is disconnected In the case where opening, by the second transmission channel between the first electronic equipment and the second electronic equipment, passed to the second electronic equipment Defeated first network information, so that first network information is written in third electronic equipment the second electronic equipment, wherein the second electricity Sub- equipment is based on third electronic equipment can be shared with the first electronic equipment progress content.
It can be set by the first electronics by embodiment of the disclosure if the device network information of interconnection changes The standby another transmission channel established automatically between the second electronic equipment, is repaired to second the first electronic equipment of electronic equipment The network information after changing, so that third electronic equipment is written in the modified network information of the first electronic equipment by the second electronic equipment In.In this way, the information for making the network file in third electronic equipment be included and the network information of the first electronic equipment at this time It is consistent, it is shared that the second electronic equipment can carry out content with the first electronic equipment again based on third electronic equipment.At this In the case of kind, without the network information of user's manual setting equipment, reduce because network information variation leads to service disruption Number reduces the start-up study probability of service, realizes that process is simple, improves user experience.
In accordance with an embodiment of the present disclosure, data transmission device 300 further includes receiving module and determining module.Receiving module is used Before Yu Xiang the second electronic equipment first network information, receive what the second electronic equipment was transmitted based on the second transmission channel Second network information, wherein second network information is related to the first transmission channel.Determining module is used for according to second network information And first network information determines whether the first transmission channel between the first electronic equipment and the second electronic equipment disconnects.
In accordance with an embodiment of the present disclosure, the first electronic equipment and are determined according to second network information and first network information Whether the first transmission channel between two electronic equipments disconnects that be included in second network information unmatched with first network information In the case of, the first transmission channel disconnects, under second network information and the matched situation of first network information, the first transmission channel Connection is normal.
The second transmission channel is established between the first electronic equipment and the second electronic equipment by mobile hot spot.
In accordance with an embodiment of the present disclosure, data transmission device 300 further includes detection module, for detecting the first electronic equipment Whether the first transmission channel between the second electronic equipment disconnects, by judging that can the first electronic equipment receive the second electricity The shared content of sub- equipment transmission determines the first transmission between the first electronic equipment and the second electronic equipment according to judging result Whether access disconnects.
In accordance with an embodiment of the present disclosure, it in third electronic equipment is written into first network information in the second electronic equipment Afterwards, the second transmission channel between the first electronic equipment and the second electronic equipment is disconnected, based on first network information in the first electricity Third transmission channel is established between sub- equipment and the second electronic equipment.
In accordance with an embodiment of the present disclosure, logical by the second transmission between the first electronic equipment and the second electronic equipment Road passes through the first electricity of target application monitoring on the first electronic equipment to before the second electronic equipment first network information Whether second transmission channel is established between sub- equipment and the second electronic equipment.Between the first electronic equipment and the second electronic equipment Establish the second transmission channel.In the case where target application gets the content requests of the second electronic equipment transmission, in response to interior Hold request, is based on the second transmission channel to the second electronic equipment first network information.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelement A at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, son Any one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule, Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gate Array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricity Road (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come real Show, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next reality It is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelement Ground is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, any number of may be incorporated in a module obtained in module 301 and transmission module 302 is realized, or Person's any one module therein can be split into multiple modules.Alternatively, one or more modules in these modules are extremely Small part function can be combined at least partly function of other modules, and be realized in a module.According to the disclosure Embodiment, hardware circuit, example can be at least implemented partly as by obtaining at least one of module 301 and transmission module 302 As on field programmable gate array (FPGA), programmable logic array (PLA), system on chip, substrate system, in encapsulation be System, specific integrated circuit (ASIC), or can be hard by carrying out any other rational method that is integrated or encapsulating etc. to circuit Part or firmware realize, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several It is appropriately combined to realize.Alternatively, obtaining at least one of module 301 and transmission module 302 can at least be at least partially implemented Corresponding function can be executed when the computer program module is run for computer program module.
Fig. 7 is diagrammatically illustrated according to the computer system for being adapted for carrying out method as described above of the embodiment of the present disclosure Block diagram.Computer system shown in Fig. 7 is only an example, should not function and use scope band to the embodiment of the present disclosure Carry out any restrictions.
As shown in fig. 7, computer system 400 includes processor 410 and computer readable storage medium 420.The computer System 400 can execute the method according to the embodiment of the present disclosure.
Specifically, processor 410 for example may include general purpose microprocessor, instruction set processor and/or related chip group And/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Processor 410 can also include using for caching The onboard storage device on way.Processor 410 can be the different movements for executing the method flow according to the embodiment of the present disclosure Single treatment unit either multiple processing units.
Computer readable storage medium 420, such as can be non-volatile computer readable storage medium, specific example Including but not limited to: magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as Random access memory (RAM) or flash memory;Etc..
Computer readable storage medium 420 may include computer program 421, which may include generation Code/computer executable instructions execute processor 410 according to the embodiment of the present disclosure Method or its any deformation.
Computer program 421 can be configured to have the computer program code for example including computer program module.Example Such as, in the exemplary embodiment, the code in computer program 421 may include one or more program modules, for example including 421A, module 421B ....It should be noted that the division mode and number of module are not fixation, those skilled in the art can To be combined according to the actual situation using suitable program module or program module, when these program modules are combined by processor 410 When execution, processor 410 is executed according to the method for the embodiment of the present disclosure or its any deformation.
According to an embodiment of the invention, obtaining at least one of module 301 and transmission module 302 can be implemented as referring to Corresponding operating described above may be implemented when being executed by processor 410 in the computer program module of Fig. 7 description.
By embodiment of the disclosure, without the network information of user's manual setting equipment, reduce because of the network information Variation leads to the number of service disruption, reduces the start-up study probability of service, realizes that process is simple, improves user experience.
The disclosure additionally provides a kind of computer readable storage medium, which can be above-mentioned reality It applies included in equipment/device/system described in example;Be also possible to individualism, and without be incorporated the equipment/device/ In system.Above-mentioned computer readable storage medium carries one or more program, when said one or multiple program quilts When execution, the method according to the embodiment of the present disclosure is realized.
In accordance with an embodiment of the present disclosure, computer readable storage medium can be non-volatile computer-readable storage medium Matter, such as can include but is not limited to: portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
It will be understood by those skilled in the art that the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, exist In the case where not departing from disclosure spirit or teaching, the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Although the disclosure, art technology has shown and described referring to the certain exemplary embodiments of the disclosure Personnel it should be understood that in the case where the spirit and scope of the present disclosure limited without departing substantially from the following claims and their equivalents, A variety of changes in form and details can be carried out to the disclosure.Therefore, the scope of the present disclosure should not necessarily be limited by above-described embodiment, But should be not only determined by appended claims, also it is defined by the equivalent of appended claims.

Claims (10)

1. a kind of data transmission method, comprising:
Obtain the current first network information of the first electronic equipment;And
In the case where detecting that the first transmission channel between first electronic equipment and the second electronic equipment disconnects, pass through The second transmission channel between first electronic equipment and second electronic equipment, the second electronic equipment of Xiang Suoshu institute First network information is stated, so that the first network information is written in third electronic equipment second electronic equipment, In, second electronic equipment is based on the third electronic equipment can be shared with first electronic equipment progress content.
2. according to the method described in claim 1, wherein, to first network information described in second electronic equipment it Before, the method also includes:
Receive second network information that second electronic equipment is transmitted based on second transmission channel, wherein described second The network information is related to first transmission channel;And
First electronic equipment and second electronics are determined according to second network information and the first network information Whether the first transmission channel between equipment disconnects.
3. according to the method described in claim 2, wherein, being determined according to second network information and the first network information Whether the first transmission channel between first electronic equipment and second electronic equipment, which disconnects, includes:
Under second network information and the unmatched situation of the first network information, first transmission channel is disconnected; And
Under second network information and the matched situation of the first network information, the first transmission channel connection is just Often.
4. according to the method in claim 2 or 3, wherein the method also includes:
Second transmission channel is established between first electronic equipment and second electronic equipment by mobile hot spot.
5. according to the method described in claim 1, wherein, the method also includes:
Whether the first transmission channel detected between first electronic equipment and second electronic equipment disconnects, comprising:
Judge that can first electronic equipment receive the shared content of second electronic equipment;And
Whether the first transmission channel between first electronic equipment and second electronic equipment is determined according to judging result It disconnects.
6. according to the method described in claim 1, wherein, in second electronic equipment by first network information write-in the After in three electronic equipments, the method also includes:
Disconnect the second transmission channel between first electronic equipment and second electronic equipment;
Third transmission is established between first electronic equipment and second electronic equipment based on the first network information Access.
7. according to the method described in claim 1, wherein, the method also includes:
Passing through the second transmission channel between first electronic equipment and second electronic equipment, the second electronics of Xiang Suoshu Before equipment transmits the first network information, first electronics is monitored by the target application on first electronic equipment Whether second transmission channel is established between equipment and second electronic equipment;
Second transmission channel is established between first electronic equipment and second electronic equipment;And
In the case where the target application gets the content requests that second electronic equipment is sent, in response to the content Request is based on second transmission channel to first network information described in second electronic equipment.
8. a kind of data transmission device, comprising:
Module is obtained, for obtaining the current first network information of the first electronic equipment;And
Transmission module, for detecting the first transmission channel disconnection between first electronic equipment and the second electronic equipment In the case where, pass through the second transmission channel between first electronic equipment and second electronic equipment, Xiang Suoshu second First network information described in electronic equipment, so that third is written in the first network information by second electronic equipment In electronic equipment, wherein second electronic equipment be based on the third electronic equipment can with first electronic equipment into Row content is shared.
9. a kind of computer readable storage medium, is stored thereon with computer executable instructions, described instruction is used when executed The method described in realization any one of claims 1 to 7.
10. a kind of computer system, comprising:
One or more processors;
Computer readable storage medium, for storing one or more programs,
Wherein, when one or more of programs are executed by one or more of processors, so that one or more of Processor realizes method described in any one of claims 1 to 7.
CN201811617320.6A 2018-12-27 2018-12-27 Data transmission method and device, computer readable storage medium and computer system Active CN109710545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811617320.6A CN109710545B (en) 2018-12-27 2018-12-27 Data transmission method and device, computer readable storage medium and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811617320.6A CN109710545B (en) 2018-12-27 2018-12-27 Data transmission method and device, computer readable storage medium and computer system

Publications (2)

Publication Number Publication Date
CN109710545A true CN109710545A (en) 2019-05-03
CN109710545B CN109710545B (en) 2021-01-15

Family

ID=66258898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811617320.6A Active CN109710545B (en) 2018-12-27 2018-12-27 Data transmission method and device, computer readable storage medium and computer system

Country Status (1)

Country Link
CN (1) CN109710545B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194445A (en) * 2021-04-15 2021-07-30 厦门亿联网络技术股份有限公司 Connection method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009079840A1 (en) * 2007-12-19 2009-07-02 Arcsoft (Shanghai) Technology Company, Ltd. Ip cache
CN101523812A (en) * 2006-06-30 2009-09-02 艾姆巴克控股有限公司 System and method for collecting network performance information
JP2009272944A (en) * 2008-05-08 2009-11-19 Toshiba Corp Communication terminal
CN101668258A (en) * 2009-07-23 2010-03-10 中兴通讯股份有限公司 Method, system and device for data transmission
CN102281307A (en) * 2010-06-09 2011-12-14 恩极网络无锡有限公司 Remote data information sharing method based on virtual file system mode
CN103957135A (en) * 2014-04-24 2014-07-30 北京佳讯飞鸿电气股份有限公司 Method for no-break conversation in IP address switching process
CN103973555A (en) * 2013-01-29 2014-08-06 华为技术有限公司 GRE protocol tunnel building method, communication device and communication system
US20150373016A1 (en) * 2014-06-19 2015-12-24 Verizon Patent And Licensing Inc. Sharing content using a dongle device
US20160154754A1 (en) * 2014-12-02 2016-06-02 Hamilton Sundstrand Corporation Smart test link dongle
CN105763661A (en) * 2014-12-17 2016-07-13 华为技术有限公司 Network protocol IP address obtaining method and communication equipment
CN108055163A (en) * 2018-01-06 2018-05-18 北京特立信电子技术股份有限公司 A kind of dual-homed equipment and its protection switching method
CN108124023A (en) * 2016-11-29 2018-06-05 中兴通讯股份有限公司 Support the method and device of address change

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523812A (en) * 2006-06-30 2009-09-02 艾姆巴克控股有限公司 System and method for collecting network performance information
WO2009079840A1 (en) * 2007-12-19 2009-07-02 Arcsoft (Shanghai) Technology Company, Ltd. Ip cache
JP2009272944A (en) * 2008-05-08 2009-11-19 Toshiba Corp Communication terminal
CN101668258A (en) * 2009-07-23 2010-03-10 中兴通讯股份有限公司 Method, system and device for data transmission
CN102281307A (en) * 2010-06-09 2011-12-14 恩极网络无锡有限公司 Remote data information sharing method based on virtual file system mode
CN103973555A (en) * 2013-01-29 2014-08-06 华为技术有限公司 GRE protocol tunnel building method, communication device and communication system
CN103957135A (en) * 2014-04-24 2014-07-30 北京佳讯飞鸿电气股份有限公司 Method for no-break conversation in IP address switching process
US20150373016A1 (en) * 2014-06-19 2015-12-24 Verizon Patent And Licensing Inc. Sharing content using a dongle device
US20160154754A1 (en) * 2014-12-02 2016-06-02 Hamilton Sundstrand Corporation Smart test link dongle
CN105763661A (en) * 2014-12-17 2016-07-13 华为技术有限公司 Network protocol IP address obtaining method and communication equipment
CN108124023A (en) * 2016-11-29 2018-06-05 中兴通讯股份有限公司 Support the method and device of address change
CN108055163A (en) * 2018-01-06 2018-05-18 北京特立信电子技术股份有限公司 A kind of dual-homed equipment and its protection switching method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁聪: ""基于博通芯片智能网关的双向DVB模块设计及实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194445A (en) * 2021-04-15 2021-07-30 厦门亿联网络技术股份有限公司 Connection method and device

Also Published As

Publication number Publication date
CN109710545B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US10531285B2 (en) Method of changing profile using identification module and electronic device implementing same
US9781586B2 (en) Method of transmitting/receiving signal in proximity network and electronic device thereof
CN102843442B (en) Method for configuring networked cameras
US10819566B2 (en) Edge or fog gateway assisted IDE redirection for failover remote management applications
US20160150537A1 (en) Method of transmitting proximity service data and electronic device for the same
CN111357297A (en) Reverse projection from a first screen device to a second screen device
US20170150296A1 (en) Method for synchronizing proximity network and electronic device thereof
US20190320210A1 (en) Multi-use fog device
KR20150067090A (en) Multi-screen interaction method, devices, and system
US20160241431A1 (en) Methods, apparatuses, and system for device management
KR102238905B1 (en) Beacon relay method of electronic apparatus and electronic apparatus thereof
US20160198285A1 (en) Method And Internet Of Things System For Controlling An Electronic Device
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN109275042A (en) A kind of distribution method, device, terminal and the storage medium of barrage message
US10200864B2 (en) Method and device for managing wireless access point
CN109710545A (en) Data transmission method and device, computer readable storage medium, computer system
US20180189198A1 (en) Method for performing communication between peripheral devices of mobile terminal and mobile terminal
US10212215B2 (en) Apparatus and method for providing metadata with network traffic
US20200245380A1 (en) Systems and methods for controlling media content in a multi-user and mulit-device environment using a wireless communication device
US20200050414A1 (en) Media and device for adaptable display
RU2615759C2 (en) Method and device for video recording
Kristiana et al. UUID Beacon Advertisements For Lecture Schedule Information
US20150334193A1 (en) Method and apparatus for inter-local network communication
CN106341905A (en) File sharing method based on wireless network, equipment and system
KR20210014582A (en) Multipath wireless controller

Legal Events

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