CN105142098B - A kind of data sharing method and device - Google Patents

A kind of data sharing method and device Download PDF

Info

Publication number
CN105142098B
CN105142098B CN201510512452.2A CN201510512452A CN105142098B CN 105142098 B CN105142098 B CN 105142098B CN 201510512452 A CN201510512452 A CN 201510512452A CN 105142098 B CN105142098 B CN 105142098B
Authority
CN
China
Prior art keywords
electronic equipment
medium data
communication module
link information
wireless data
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
CN201510512452.2A
Other languages
Chinese (zh)
Other versions
CN105142098A (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201510512452.2A priority Critical patent/CN105142098B/en
Publication of CN105142098A publication Critical patent/CN105142098A/en
Application granted granted Critical
Publication of CN105142098B publication Critical patent/CN105142098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Abstract

The present invention provides a kind of data sharing method and device, the first link information is sent to by the second electronic equipment by first communication module first, after the connection request for receiving the transmission of the second electronic equipment, it can be based on the first link information by establishing the first wireless data channel between the second communication module and the second electronic equipment in the first electronic equipment, thus multi-medium data output order can be sent to the second electronic equipment, and multi-medium data is carried in multi-medium data output order, second electronic equipment then can obtain multi-medium data by means of the first wireless data channel, so that multi-medium data is shared between multiple electronic equipments without the help of internet, reduce the limitation of data sharing.And multi-medium data output order can indicate that the second electronic equipment directly exports multi-medium data after receiving multi-medium data output order, so that multi-medium data will not be stored in the second electronic equipment, improve the safety of multi-medium data.

Description

A kind of data sharing method and device
Technical field
The invention belongs to wireless communication technology fields, more specifically more particularly to a kind of data sharing method and device.
Background technique
With the development of network, network is that user brings many convenience, and user can transfer data on network, this Sample other users then can be by the data in network download transmission to network, to realize data sharing.
By taking multi-medium data as an example, at present there are mainly two types of multi-medium data sharing modes, wherein first way is: more A electronic equipment can be connected on internet simultaneously, watch multi-medium data online on the internet;The second way is: logical Internet is crossed, multi-medium data is downloaded to the local of electronic equipment from the associated server in internet, in this way when multiple electricity After sub- equipment all downloads the same multi-medium data, it can watch multi-medium data in synchronization.
By above two mode it is found that multi-medium data is shared requires by means of this medium of internet, to make to count There is certain limitation according to shared.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of data sharing method and device, for by the first electronics The multi-medium data of equipment shares to the second electronic equipment, and controls the second electronic equipment and directly export multi-medium data, in this way It can control the second electronic equipment not storing multimedia data, improve Information Security.Technical solution is as follows:
The present invention provides a kind of data sharing method, and the method is applied in the first electronic equipment, first electronics Multi-medium data is stored in equipment, and first electronic equipment can be communicated at least one the second electronic equipment, institute The method of stating includes:
The first link information is sent to second electronics by the first communication module in first electronic equipment Equipment;
After receiving the connection request that second electronic equipment is sent, passed through based on first link information described The first wireless data channel is established between second communication module and second electronic equipment in first electronic equipment;
After being based on establishing the first wireless data channel between first link information and second electronic equipment, from The multi-medium data is obtained in first electronic equipment;
There is the second electronic equipment of first wireless data channel to send multi-medium data output order to foundation, wherein The multi-medium data is carried in the multi-medium data output order, and is used to indicate that receive the multi-medium data defeated The second electronic equipment instructed out directly exports the multi-medium data.
Preferably, first link information is the identification information or described on first electronic equipment is wirelessly connected First link information is the authentication information of the identification information and the identification information on first electronic equipment is wirelessly connected;
The method also includes: pass through the second communication module of first electronic equipment based on first link information Using first electronic equipment as the main equipment for establishing first wireless data channel, so that the first electronic equipment base In first link information by establishing the first wireless data between the second communication module and second electronic equipment Channel.
Preferably, it is described based on first link information by the second communication module of first electronic equipment by institute The first electronic equipment is stated as the main equipment for establishing first wireless data channel, comprising:
Based on first link information by the second communication module of first electronic equipment in first electronics Foundation and the matched software access point of the first link information in equipment, wherein the link information of the software access point and institute It is consistent to state the first link information.
Preferably, first address information and second electronics of first link information for first electronic equipment Second address information of equipment;
It is described after receiving the connection request that second electronic equipment is sent, passed through based on first link information The first wireless data channel is established between second communication module and second electronic equipment in first electronic equipment, is wrapped It includes:
After receiving the connection request that second electronic equipment is sent, by the third carried in the connection request Location information is matched with first address information, if the third address information is matched with first address information, And receive the second certification that second electronic equipment is sent by response, then based on first address information and described the Double-address information establishes first wireless data channel between first electronic equipment and second electronic equipment.
Preferably, it is defeated to send multi-medium data for second electronic equipment for having first wireless data channel to foundation It instructs out, comprising: broadcast institute to the second electronic equipment for establishing first wireless data channel with first electronic equipment State multi-medium data output order;
Or
It is described to there is the second electronic equipment of first wireless data channel to send multi-medium data output order to foundation, It include: that the data acquisition request that second electronic equipment is sent is received by first wireless data channel;
After receiving the data acquisition request, by first wireless data channel to second electronic equipment Send the multi-medium data output order.
The present invention also provides a kind of data sharing device, described device is applied in the first electronic equipment, first electricity Multi-medium data is stored in sub- equipment, and first electronic equipment can be communicated at least one the second electronic equipment, Described device includes:
First transmission unit, for being sent out the first link information by the first communication module in first electronic equipment Give second electronic equipment;
Path Setup unit, for after receiving the connection request that second electronic equipment is sent, based on described the One link information is by establishing first between the second communication module and second electronic equipment in first electronic equipment Wireless data channel;
Acquiring unit, for wireless based on establishing first between first link information and second electronic equipment After data channel, the multi-medium data is obtained from first electronic equipment;
Second transmission unit, for there is the second electronic equipment of first wireless data channel to send multimedia to foundation Data output instruction wherein carrying the multi-medium data in the multi-medium data output order, and is used to indicate reception The second electronic equipment to the multi-medium data output order directly exports the multi-medium data.
Preferably, first link information is the identification information or described on first electronic equipment is wirelessly connected First link information is the authentication information of the identification information and the identification information on first electronic equipment is wirelessly connected;
Described device further include: main equipment selection unit, for passing through first electricity based on first link information The second communication module of sub- equipment using first electronic equipment as the main equipment for establishing first wireless data channel, with So that first electronic equipment is based on first link information and passes through the second communication module and second electronic equipment Between establish the first wireless data channel.
Preferably, the main equipment selection unit is used for: being set based on first link information by first electronics Standby second communication module is established in first electronic equipment and the matched software access point of the first link information, Described in software access point link information it is consistent with first link information.
Preferably, first address information and second electronics of first link information for first electronic equipment Second address information of equipment;
The Path Setup unit, is used for:, will be described after receiving the connection request that second electronic equipment is sent The third address information carried in connection request is matched with first address information, if the third address information with The first address information matching, and receive the second certification that second electronic equipment is sent and pass through response, then it is based on institute The first address information and second address information is stated to establish between first electronic equipment and second electronic equipment First wireless data channel.
Preferably, second transmission unit is used for: establishing first wireless data to first electronic equipment Second electronic equipment in channel broadcasts the multi-medium data output order;
Or
Second transmission unit is used for: being received second electronic equipment by first wireless data channel and is sent Data acquisition request, and after receiving the data acquisition request, by first wireless data channel to described Two electronic equipments send the multi-medium data output order.
Compared with prior art, above-mentioned technical proposal provided by the invention has the advantages that
In above-mentioned technical proposal provided by the invention, the first link information is sent to by first communication module first Two electronic equipments can pass through first based on the first link information after the connection request for receiving the transmission of the second electronic equipment The first wireless data channel is established between second communication module and the second electronic equipment in electronic equipment, it thus can be to building Vertical the second electronic equipment transmission multi-medium data output order for having the first wireless data channel, and multi-medium data output order In carry multi-medium data, the second electronic equipment then can be logical by means of the first wireless data between the first electronic equipment Road obtains multi-medium data, so that multi-medium data is total between multiple electronic equipments without the help of internet It enjoys, reduces the limitation of data sharing.And multi-medium data output order can indicate the second electronic equipment receive it is more Multi-medium data is directly exported after media data output order, that is to say, that the second electronic equipment is receiving multi-medium data output It is not carried out download instruction after instruction, so that multi-medium data will not be stored in the second electronic equipment, reduces multi-medium data A possibility that being revealed via the second electronic equipment, to improve the safety of multi-medium data.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow chart of data sharing method provided in an embodiment of the present invention;
Fig. 2 is another flow chart of data sharing method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of data sharing device provided in an embodiment of the present invention;
Fig. 4 is another structural schematic diagram of data sharing device provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention provides a kind of data sharing method and device, more matchmakers for will store in the first electronic equipment Volume data is carried in multi-medium data output order and sends, the second electronic equipment then can by means of with the first electronic equipment it Between the first wireless data channel obtain multi-medium data so that multi-medium data is without the help of internet more It is shared between a electronic equipment, reduces the limitation of data sharing.And multi-medium data output order can indicate the second electricity Sub- equipment directly exports multi-medium data after receiving multi-medium data output order, so that multi-medium data will not be stored in Second electronic equipment, to improve the safety of multi-medium data.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to Fig. 1, being applied to it illustrates a kind of flow chart of data sharing method provided in an embodiment of the present invention In first electronic equipment, wherein being stored with multi-medium data in the first electronic equipment, and the first electronic equipment can be at least one Second electronic equipment is communicated.Specifically, data sharing method shown in Fig. 1 may comprise steps of:
101: the first link information is sent to by the second electronic equipment by the first communication module in the first electronic equipment. Wherein the first link information is between the first electronic equipment and the second electronic equipment for establishing needed for the first wireless data channel Information can be sent to the second electronic equipment by the first communication module in the first electronic equipment.
Such as first communication module can be a NFC (Near Field Communication, near-field communication) module, lead to The electronic label function for crossing NFC module is packaged in electronic tag when the first electronic equipment and the second electronic equipment are in contact The first link information just pass through NFC module and be sent to the second electronic equipment.Wherein the first link information can set for the first electronics Second address information of standby the first address information and the second electronic equipment.
In embodiments of the present invention, the first address information can be MAC Address (the Media Access of the first electronic equipment Control, media access control), same second address information is the MAC Address of the second electronic equipment, the first electronic equipment MAC Address is packaged in the first electronic tag in the first electronic equipment, and the MAC Address of the second electronic equipment is packaged in In the second electronic tag in two electronic equipments, when the first electronic equipment and the second electronic equipment are in contact, pass through the first electricity The MAC Address being packaged in the first electronic tag is sent to the second electronic equipment by the NFC module of sub- equipment, is similarly packaged in MAC Address in second electronic tag can be also sent in the first electronic equipment by the NFC module of the second electronic equipment.
102: after the connection request for receiving the transmission of the second electronic equipment, the first electronics being passed through based on the first link information The first wireless data channel is established between second communication module and the second electronic equipment in equipment.In embodiments of the present invention, Connection request, which is used to indicate the second electronic equipment, wishes to establish the first wireless data channel with the first electronic equipment, therefore is receiving To after connection request, it is logical that the first electronic equipment can establish the first wireless data based on the first link information and the second electronic equipment Road.
With the second ground of the first address information and the second electronic equipment that above-mentioned first link information is the first electronic equipment For the information of location, after the connection request for receiving the transmission of the second electronic equipment, the third address carried in connection request is believed Breath is matched with the first address information, if third address information is matched with the first address information, and receives the second electronics The second certification that equipment is sent is by response, then based on the first address information and the second address information in the first electronic equipment and the The first wireless data channel is established between two electronic equipments.
Wherein the second certification is the second electronic equipment in the connection request for receiving the transmission of the first electronic equipment by response Afterwards, judge in the address information carried in the connection request of the first electronic equipment transmission and the matched situation of the first address information It sends, instruction can establish the first wireless data channel with the first electronic equipment, therefore when the first electronic equipment is judged Third address information is matched with the first address information, and the second certification for receiving the transmission of the second electronic equipment passes through response, just The first nothing can be established between the first electronic device and the second electronic device based on the first address information and the second address information Line data channel.
103: after being based on establishing the first wireless data channel between the first link information and the second electronic equipment, from first Multi-medium data is obtained in electronic equipment.
104: Xiang Jianli has the second electronic equipment of the first wireless data channel to send multi-medium data output order, wherein Carry multi-medium data in multi-medium data output order, such second electronic equipment refers to receiving multi-medium data output After order, then multi-medium data can be obtained from multi-medium data output order, realize multi-medium data between electronic devices It is shared.And multi-medium data output order can indicate that the second electronic equipment for receiving the instruction directly exports multimedia Data.That is in embodiments of the present invention multi-medium data output order can control the second electronic equipment disabling downloading refer to It enables, so that the second electronic equipment of control directly exports multi-medium data and not stored multi-medium data, just because of the second electronics is set Standby not stored multi-medium data, other users can not get multi-medium data from the second electronic equipment, reduce multimedia number A possibility that according to being leaked, improves the safety of multi-medium data.
In embodiments of the present invention, send multi-medium data output order mode can there are many, one way in which It is active broadcast push mode, another way is passive push mode.
Wherein active broadcast push mode is: to the second electronics for establishing the first wireless data channel with the first electronic equipment Device broadcasts multi-medium data output order, such first electronic equipment is as the main equipment for establishing the first wireless data channel When, it can refer to the multiple second electronic equipments broadcasting multimedia data output simultaneously for establishing the first wireless data channel with it It enables, the second electronic equipments multiple in this way can receive multi-medium data output order and be handled.
The process of passive push mode is then: receiving the data that the second electronic equipment is sent by the first wireless data channel Acquisition request, and after receiving data acquisition request, more matchmakers are sent to the second electronic equipment by the first wireless data channel Volume data output order is realized one-to-one shared.
From above-mentioned technical proposal it is found that data sharing method provided in an embodiment of the present invention passes through first communication module first First link information is sent to the second electronic equipment, it, can be with base after the connection request for receiving the transmission of the second electronic equipment It is wireless by establishing first between the second communication module and the second electronic equipment in the first electronic equipment in the first link information Data channel can thus have the second electronic equipment of the first wireless data channel to send multi-medium data output to foundation and refer to Enable, and carry multi-medium data in multi-medium data output order, the second electronic equipment then can by means of with the first electronics The first wireless data channel between equipment obtains multi-medium data, so that multi-medium data is without the help of internet the case where Under between multiple electronic equipments share, reduce the limitation of data sharing.And multi-medium data output order can indicate Second electronic equipment directly exports multi-medium data after receiving multi-medium data output order, that is to say, that the second electronics is set It is standby after receiving multi-medium data output order its be not carried out download instruction so that will not to be stored in second electric for multi-medium data Sub- equipment reduces a possibility that multi-medium data is revealed via the second electronic equipment, to improve the safety of multi-medium data.
Referring to Fig. 2, being elaborated it illustrates another flow chart of data sharing method provided in an embodiment of the present invention First electronic equipment, which can be used as, to be established the main equipment of the first wireless data channel and establishes the with multiple second electronic equipments simultaneously One wireless data channel, can specifically include following steps:
101: the first link information is sent to by the second electronic equipment by the first communication module in the first electronic equipment. In embodiments of the present invention, the first link information can be the identification information that the first electronic equipment is wirelessly connected, the mark Information is used to distinguish different first electronic equipments, can be the identifier for indicating one first electronic equipment, such as SSID (Service Set Identifier, service set) number.The safety of the first wireless data channel is established of course for guarantee Property, the first link information can also include the authentication information of identification information in addition to including identification information, close such as identification information Code.
105: based on the first link information by the second communication module of the first electronic equipment using the first electronic equipment as Establish the main equipment of the first wireless data channel.When the first electronic equipment is arranged to establish the first nothing by second communication module When the main equipment of line data channel, the first electronic equipment then becomes through the first wireless data channel and the progress of the second electronic equipment The hot spot of data interaction allows the second electronic equipment to be based on the first link information and directly establishes first with the first electronic equipment Wireless data channel, wherein the first wireless data channel is between the first electronic equipment and the second electronic equipment for carrying out data Interactive data channel.
Specifically, the first electronic equipment establishes software access point on the first electronic equipment by second communication module, it should Software access point is the hot spot that the first electronic equipment and other electronic equipments carry out data interaction, other electronic equipments pass through search The hot spot can establish the first wireless data channel based on the first link information and the first electronic equipment.
In embodiments of the present invention, the first electronic equipment includes at least WIFI (Wireless Fidelity, Wireless Fidelity) Communication module and bluetooth communication, using the first electronic equipment as when the main equipment for establishing the first wireless data channel, One electronic equipment can in above two communication module choose a communication module, as WIFI communication module as with the second electronics Equipment carries out the communication mode of data interaction, so that the first electronic equipment becomes the main equipment for establishing the first wireless data channel.
Further first electronic equipment can be established on the first electronic equipment by the WIFI network interface card of WIFI communication module WIFI hot spot, other electronic equipments can be built based on the first link information with the first electronic equipment after searching the WIFI hot spot Vertical first wireless data channel.
102: after the connection request for receiving the transmission of the second electronic equipment, the first electronics being passed through based on the first link information The first wireless data channel is established between second communication module and the second electronic equipment in equipment.
103: after being based on establishing the first wireless data channel between the first link information and the second electronic equipment, from first Multi-medium data is obtained in electronic equipment.
104: Xiang Jianli has the second electronic equipment of the first wireless data channel to send multi-medium data output order, wherein Carry multi-medium data in multi-medium data output order, such second electronic equipment refers to receiving multi-medium data output After order, then multi-medium data can be obtained from multi-medium data output order, realize multi-medium data between electronic devices It is shared.And multi-medium data output order can indicate that the second electronic equipment for receiving the instruction directly exports multimedia Data.That is in embodiments of the present invention multi-medium data output order can control the second electronic equipment disabling downloading refer to It enables, so that the second electronic equipment of control directly exports multi-medium data and not stored multi-medium data, just because of the second electronics is set Standby not stored multi-medium data, other users can not get multi-medium data from the second electronic equipment, reduce multimedia number A possibility that according to being leaked, improves the safety of multi-medium data.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
It is corresponding with above method embodiment, the present invention also provides a kind of data sharing device, the data sharing device Applied in the first electronic equipment, being stored with multi-medium data in the first electronic equipment, and the first electronic equipment can be at least one A second electronic equipment is communicated.In embodiments of the present invention, the structural schematic diagram of data sharing device is as shown in figure 3, can To include: the first transmission unit 11, Path Setup unit 12, acquiring unit 13 and the second transmission unit 14.
First transmission unit 11, for being sent the first link information by the first communication module in the first electronic equipment To the second electronic equipment.Wherein the first link information is between the first electronic equipment and the second electronic equipment for establishing the first nothing Line data channel information needed can be sent to the second electronic equipment by the first communication module in the first electronic equipment.
Such as first communication module can be a NFC module, by the electronic label function of NFC module, when the first electronics When equipment and the second electronic equipment are in contact, the first transmission unit 11 passes through first that NFC module will be packaged in electronic tag Link information is sent to the second electronic equipment.Wherein the first link information can be the first address information of the first electronic equipment and the Second address information of two electronic equipments.
In embodiments of the present invention, the first address information can be the MAC Address of the first electronic equipment, same second address Information is the MAC Address of the second electronic equipment, and the MAC Address of the first electronic equipment is packaged in first in the first electronic equipment In electronic tag, the MAC Address of the second electronic equipment is packaged in the second electronic tag in the second electronic equipment, when first When electronic equipment and the second electronic equipment are in contact, the first transmission unit 11 will be encapsulated by the NFC module of the first electronic equipment MAC Address in the first electronic tag is sent to the second electronic equipment, with being similarly packaged in the MAC in the second electronic tag Location can be also sent in the first electronic equipment by the NFC module of the second electronic equipment.
Path Setup unit 12, for being connected based on first after the connection request for receiving the transmission of the second electronic equipment Information is by establishing the first wireless data channel between the second communication module and the second electronic equipment in the first electronic equipment.
With the second ground of the first address information and the second electronic equipment that above-mentioned first link information is the first electronic equipment For the information of location, Path Setup unit 12 will be taken after the connection request for receiving the transmission of the second electronic equipment in connection request The third address information of band is matched with the first address information, if third address information is matched with the first address information, and The second certification of the second electronic equipment transmission is received by response, then based on the first address information and the second address information the The first wireless data channel is established between one electronic equipment and the second electronic equipment.
Wherein the second certification is the second electronic equipment in the connection request for receiving the transmission of the first electronic equipment by response Afterwards, judge in the address information carried in the connection request of the first electronic equipment transmission and the matched situation of the first address information It sends, instruction can establish the first wireless data channel with the first electronic equipment, therefore when Path Setup unit 12 judges Third address information is matched with the first address information out, and the second certification for receiving the transmission of the second electronic equipment passes through response, First can be established between the first electronic device and the second electronic device based on the first address information and the second address information Wireless data channel.
Acquiring unit 13, for logical based on the first wireless data is established between the first link information and the second electronic equipment Behind road, multi-medium data is obtained from the first electronic equipment.
Second transmission unit 14, for there is the second electronic equipment of the first wireless data channel to send multimedia number to foundation According to output order, multi-medium data is wherein carried in multi-medium data output order, such second electronic equipment is receiving After multi-medium data output order, then multi-medium data can be obtained from multi-medium data output order, realize multimedia number According to sharing between electronic devices.And multi-medium data output order can indicate that the second electronics for receiving the instruction is set It is standby directly to export multi-medium data.That is multi-medium data output order can control the second electricity in embodiments of the present invention Sub- equipment forbidden download instruction, so that the second electronic equipment of control directly exports multi-medium data and not stored multi-medium data, Just because of the not stored multi-medium data of the second electronic equipment, other users can not get multimedia number from the second electronic equipment According to reducing multi-medium data a possibility that being leaked, improve the safety of multi-medium data.
In embodiments of the present invention, the second transmission unit 14 sends the mode of multi-medium data output order and includes but unlimited In following two ways: a kind of mode is active broadcast push mode, and detailed process is: establishing first to the first electronic equipment Second electronic equipment broadcasting multimedia data output order of wireless data channel, such first electronic equipment is as establishing When the main equipment of one wireless data channel, multiple second electronic equipments of the first wireless data channel can be established simultaneously to it Broadcasting multimedia data output order, the second electronic equipments multiple in this way can receive at multi-medium data output order Reason.
Another way is then passive push mode, and detailed process is: receiving second by the first wireless data channel The data acquisition request that electronic equipment is sent, and after receiving data acquisition request, by the first wireless data channel to the Two electronic equipments send multi-medium data output order, realize one-to-one shared.
From above-mentioned technical proposal it is found that data sharing device provided in an embodiment of the present invention by first communication module by the One link information is sent to the second electronic equipment, can be based on the after the connection request for receiving the transmission of the second electronic equipment One link information is by establishing the first wireless data between the second communication module and the second electronic equipment in the first electronic equipment Channel can thus have the second electronic equipment of the first wireless data channel to send multi-medium data output order to foundation, And multi-medium data is carried in multi-medium data output order, the second electronic equipment then can by means of with the first electronic equipment Between the first wireless data channel obtain multi-medium data so that multi-medium data without the help of internet It is shared between multiple electronic equipments, reduces the limitation of data sharing.And multi-medium data output order can indicate second Electronic equipment directly exports multi-medium data after receiving multi-medium data output order, that is to say, that the second electronic equipment exists It is not carried out download instruction after receiving multi-medium data output order, so that multi-medium data will not be stored in the second electronics and set It is standby, a possibility that multi-medium data is revealed via the second electronic equipment is reduced, to improve the safety of multi-medium data.
In addition, in embodiments of the present invention, above-mentioned first link information can also be wirelessly connected for the first electronic equipment Identification information or the first link information be the first electronic equipment be wirelessly connected on identification information and identification information certification Information.Wherein, identification information is used to distinguish different first electronic equipments, and can be indicates one first electronic equipment Identifier, such as No. SSID, the authentication information of identification information is in the password that can be identification information.
Correspondingly, data sharing device provided in an embodiment of the present invention can also include: main equipment selection unit 15, such as scheme Shown in 4.Wherein main equipment selection unit 15, for passing through the second communication module of the first electronic equipment based on the first link information Using the first electronic equipment as the main equipment for establishing the first wireless data channel, so that the first electronic equipment is based on the first connection letter Breath is by establishing the first wireless data channel between second communication module and the second electronic equipment.
Preferably, main equipment selection unit 15 is used for: being led to based on the first link information by the second of the first electronic equipment Letter module is established and the matched software access point of the first link information, the wherein connection of software access point in the first electronic equipment Information is consistent with the first link information.
In embodiments of the present invention, the first electronic equipment includes at least WIFI communication module and bluetooth communication, is inciting somebody to action When first electronic equipment is as the main equipment for establishing the first wireless data channel, the first electronic equipment can above two communication mould In block choose a communication module, as WIFI communication module as with the second electronic equipment carry out data interaction communication mode, So that the first electronic equipment becomes the main equipment for establishing the first wireless data channel.
Further first electronic equipment can be established on the first electronic equipment by the WIFI network interface card of WIFI communication module WIFI hot spot, other electronic equipments can be built based on the first link information with the first electronic equipment after searching the WIFI hot spot Vertical first wireless data channel.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (8)

1. a kind of data sharing method, which is characterized in that the method is applied in the first electronic equipment, and first electronics is set It is stored with multi-medium data in standby, and first electronic equipment can be communicated at least one the second electronic equipment, institute The method of stating includes:
The first link information is sent to second electronic equipment by the first communication module in first electronic equipment, Wherein, first link information includes the first mac address information of the first electronic equipment and the 2nd MAC of the second electronic equipment Address information, wherein second electronic equipment includes near-field communication module, the first communication module includes near-field communication mould Block, first electronic equipment and second electronic equipment are by respective near-field communication module exchange the first MAC Location information and the second mac address information;
After receiving the connection request including third mac address information that second electronic equipment is sent, when the connection The third mac address information in request matches with first mac address information and receives the second electronic equipment hair When the second certification sent passes through response, the second communication mould in first electronic equipment is passed through based on first link information The first wireless data channel is established between block and second electronic equipment;Wherein, the connection request is used to indicate the second electricity Sub- equipment wishes to establish the first wireless data channel with the first electronic equipment, and wherein, second certification is by response Second electronic equipment judges first electronics after receiving the connection request that first electronic equipment is sent It the mac address information that carries and is sent in the matched situation of the first mac address information in the connection request that equipment is sent, The second communication module includes WiFi communication module or bluetooth module;
Based on after establishing the first wireless data channel between first link information and second electronic equipment, from described The multi-medium data is obtained in first electronic equipment;
There is the second electronic equipment of first wireless data channel to send multi-medium data output order to foundation, wherein described The multi-medium data is carried in multi-medium data output order, and is used to indicate to receive the multi-medium data and export and be referred to The second electronic equipment enabled directly exports the multi-medium data without storing the multi-medium data.
2. the method according to claim 1, wherein the method also includes: be based on first link information By the second communication module of first electronic equipment using first electronic equipment as establishing first wireless data The main equipment in channel, so that first electronic equipment is based on first link information and passes through the second communication module and institute It states and establishes the first wireless data channel between the second electronic equipment.
3. according to the method described in claim 2, it is characterized in that, described pass through described first based on first link information The second communication module of electronic equipment using first electronic equipment as the main equipment for establishing first wireless data channel, Include:
Based on first link information by the second communication module of first electronic equipment in first electronic equipment Middle foundation and the matched software access point of the first link information, wherein the link information of the software access point and described the One link information is consistent.
4. the method according to claim 1, wherein described have the of first wireless data channel to foundation Two electronic equipments send multi-medium data output order, comprising: establish described first without line number to first electronic equipment The multi-medium data output order is broadcasted according to second electronic equipment in channel;
Or
Second electronic equipment for having first wireless data channel to foundation sends multi-medium data output order, packet It includes: the data acquisition request that second electronic equipment is sent is received by first wireless data channel;
After receiving the data acquisition request, sent by first wireless data channel to second electronic equipment The multi-medium data output order.
5. a kind of data sharing device, which is characterized in that described device is applied in the first electronic equipment, and first electronics is set It is stored with multi-medium data in standby, and first electronic equipment can be communicated at least one the second electronic equipment, institute Stating device includes:
First transmission unit, for being sent to the first link information by the first communication module in first electronic equipment Second electronic equipment, wherein first link information includes the first mac address information and second of the first electronic equipment Second mac address information of electronic equipment, second electronic equipment includes near-field communication module, the first communication module packet Near-field communication module is included, first electronic equipment and second electronic equipment pass through respective near-field communication module clearing house State the first mac address information and the second mac address information;
Path Setup unit, in the connection including third mac address information for receiving the second electronic equipment transmission After request, when the third mac address information in the connection request is matched and received with first mac address information When passing through response to the second certification that the second electronic equipment is sent, set based on first link information by first electronics The first wireless data channel is established between second communication module and second electronic equipment in standby;Wherein, the connection is asked It asks and is used to indicate the second electronic equipment and wishes to establish the first wireless data channel with the first electronic equipment, and wherein, described Two certifications are that second electronic equipment is sentenced after receiving the connection request that first electronic equipment is sent by response The mac address information and first mac address information carried in the connection request that disconnected the first electronic equipment described out is sent It is sent in the case where matching, the second communication module includes WIFI communication module or bluetooth communication;
Acquiring unit, for being based on establishing the first wireless data between first link information and second electronic equipment Behind channel, the multi-medium data is obtained from first electronic equipment;
Second transmission unit, for there is the second electronic equipment of first wireless data channel to send multi-medium data to foundation Output order wherein carrying the multi-medium data in the multi-medium data output order, and is used to indicate and receives institute The second electronic equipment for stating multi-medium data output order directly exports the multi-medium data without storing the multimedia number According to.
6. device according to claim 5, which is characterized in that described device further include: main equipment selection unit is used for base In first link information by the second communication module of first electronic equipment using first electronic equipment as building The main equipment of first wireless data channel is found, so that first electronic equipment is based on first link information and passes through institute It states and establishes the first wireless data channel between second communication module and second electronic equipment.
7. device according to claim 6, which is characterized in that the main equipment selection unit is used for: being based on described first Link information is established and described first by the second communication module of first electronic equipment in first electronic equipment The matched software access point of link information, wherein the link information of the software access point is consistent with first link information.
8. device according to claim 5, which is characterized in that second transmission unit is used for: to it is described first electricity The second electronic equipment that sub- equipment establishes first wireless data channel broadcasts the multi-medium data output order;
Or
Second transmission unit is used for: receiving the number that second electronic equipment is sent by first wireless data channel It is electric to described second by first wireless data channel according to acquisition request, and after receiving the data acquisition request Sub- equipment sends the multi-medium data output order.
CN201510512452.2A 2015-08-19 2015-08-19 A kind of data sharing method and device Active CN105142098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510512452.2A CN105142098B (en) 2015-08-19 2015-08-19 A kind of data sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510512452.2A CN105142098B (en) 2015-08-19 2015-08-19 A kind of data sharing method and device

Publications (2)

Publication Number Publication Date
CN105142098A CN105142098A (en) 2015-12-09
CN105142098B true CN105142098B (en) 2019-10-25

Family

ID=54727280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510512452.2A Active CN105142098B (en) 2015-08-19 2015-08-19 A kind of data sharing method and device

Country Status (1)

Country Link
CN (1) CN105142098B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792105B (en) * 2016-02-29 2022-05-31 联想(北京)有限公司 Data transmission method and electronic equipment
CN115278616A (en) * 2021-04-30 2022-11-01 华为技术有限公司 File sharing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596160A (en) * 2013-11-25 2014-02-19 联想(北京)有限公司 Method and device for data transmission
CN104185250A (en) * 2014-09-15 2014-12-03 联想(北京)有限公司 Wireless communication method, electronic devices and wireless communication system
CN104410950A (en) * 2014-12-25 2015-03-11 北京元心科技有限公司 Data sharing method, device and system
EP2858419A3 (en) * 2013-08-16 2015-08-05 Samsung Electronics Co., Ltd Data communication method and apparatus based on wireless communication

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8725202B2 (en) * 2012-05-29 2014-05-13 Newport Media, Inc. Single transceiver for wireless peer-to-peer connections
JP6290890B2 (en) * 2012-08-30 2018-03-07 コーニンクレッカ フィリップス エヌ ヴェKoninklijke Philips N.V. Pairing within a group of wireless devices
US10405163B2 (en) * 2013-10-06 2019-09-03 Staton Techiya, Llc Methods and systems for establishing and maintaining presence information of neighboring bluetooth devices
CN103595775B (en) * 2013-11-04 2018-01-19 惠州Tcl移动通信有限公司 The sharing method and system of media file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2858419A3 (en) * 2013-08-16 2015-08-05 Samsung Electronics Co., Ltd Data communication method and apparatus based on wireless communication
CN103596160A (en) * 2013-11-25 2014-02-19 联想(北京)有限公司 Method and device for data transmission
CN104185250A (en) * 2014-09-15 2014-12-03 联想(北京)有限公司 Wireless communication method, electronic devices and wireless communication system
CN104410950A (en) * 2014-12-25 2015-03-11 北京元心科技有限公司 Data sharing method, device and system

Also Published As

Publication number Publication date
CN105142098A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN106851632B (en) A kind of method and device of smart machine access WLAN
CN103339974B (en) Subscriber identification module is supplied
CN110235456A (en) Smart machine method of network entry, mobile terminal, Cloud Server, equipment and system
US11233817B2 (en) Methods and apparatus for end device discovering another end device
CN102577581A (en) Apparatus and method for establishing a personal network for providing a cpns service
CN104936178A (en) Wireless power transmitting devices, methods for signaling access information for a wireless communication network and method for authorizing a wireless power receiving device
CN103517272B (en) Wireless network user authentication system and wireless network connection method thereof
CN104427501A (en) Network access method, device and system
CN102695168A (en) Terminal equipment, encrypted gateway and method and system for wireless network safety communication
CN105451298A (en) Network-sharing method and system, network access method and system, and electronic device
CN105282868A (en) System and Method for Temporarily Joining a WiFi Network
CN105991164B (en) A kind of network-building method and system of bluetooth
US20130181819A1 (en) Physical tag-based subscription services
CN104640122A (en) Wireless networking method of router and trunk equipment
KR20180062923A (en) APPARATUS AND METHODS TO INSTALL AND MANAGE eSIM PROFILES
CN106658488B (en) Intelligent household appliance and method and device for safely accessing intelligent household appliance
CN104967994B (en) By the method and apparatus of equipment access to LAN
CN105142098B (en) A kind of data sharing method and device
CN106550427A (en) For realizing method, WiFi terminal and the system of WLAN rapid configuration
CN105530714B (en) MIFI communications service system and its MIFI and communication means
CN107230335A (en) Communication means and system for the live managing and control system of photovoltaic generation
CN109472890A (en) intelligent lock and intelligent lock control method
CN103391527B (en) Implementation method, equipment and the system that in wireless access hotspot device, function is shared
CN103945379B (en) A kind of method that access authentication and data communication are realized in access network
CN101730098B (en) Femtocell authentication method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190121

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: Room 309 and 310, Building 3, 33 D, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, 100176

Applicant before: SMARTISAN DIGITAL Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder