CN106161587A - Sharing files method and device - Google Patents
Sharing files method and device Download PDFInfo
- Publication number
- CN106161587A CN106161587A CN201610412136.2A CN201610412136A CN106161587A CN 106161587 A CN106161587 A CN 106161587A CN 201610412136 A CN201610412136 A CN 201610412136A CN 106161587 A CN106161587 A CN 106161587A
- Authority
- CN
- China
- Prior art keywords
- opposite equip
- described opposite
- service end
- sharing files
- wifi
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of sharing files method and device.Described method includes: initiate inquiry to service end, to determine whether the opposite equip. of sharing files is in cellular network;If described opposite equip. is in cellular network, instructs described opposite equip. and access the Wi-Fi hotspot that the machine is set up, carry out sharing files;If described opposite equip. is not at cellular network, instructs described opposite equip. and carry out sharing files by described service end and the machine.The sharing files method and device that the embodiment of the present invention provides avoids the cellular network flow expending user during sharing files.
Description
Technical field
The present embodiments relate to mobile internet technical field, particularly relate to a kind of sharing files method and device.
Background technology
Along with the arrival in mobile interchange epoch, people more and more need to carry out file by hand-held mobile terminal
Transmit, share.But, access the Internet by cellular network, carry out sharing files, it usually needs expend the stream that user is more
Amount.And on the premise of current flux expense is of a relatively high, accessed by cellular network, carry out file shares warp the most not
Ji.
Summary of the invention
For above-mentioned technical problem, embodiments provide a kind of sharing files method and device, to avoid at literary composition
Part expends the cellular network flow of user during sharing.
On the one hand, embodiments providing a kind of sharing files method, described method includes:
Inquiry is initiated, to determine whether the opposite equip. of sharing files is in cellular network to service end;
If described opposite equip. is in cellular network, instructs described opposite equip. and access the Wi-Fi hotspot that the machine is set up, enter
Row sharing files;
If described opposite equip. is not at cellular network, instructs described opposite equip. and carried out with the machine by described service end
Sharing files.
On the other hand, the embodiment of the present invention additionally provides a kind of sharing files device, and described device includes:
State-query module, for initiating inquiry to service end, to determine whether the opposite equip. of sharing files is in honeybee
Nest network;
Direct-connected sharing module, if being in cellular network for described opposite equip., instructing described opposite equip. and accessing the machine
The Wi-Fi hotspot set up, carries out sharing files;
Transfer sharing module, if being not at cellular network for described opposite equip., instructing described opposite equip. and passing through institute
State service end and carry out sharing files with the machine.
The sharing files method and device that the embodiment of the present invention provides, by initiating inquiry to service end, to determine file
Whether the opposite equip. shared is in cellular network, if described opposite equip. is in cellular network, instructs described opposite equip. and connects
Enter the Wi-Fi hotspot that the machine is set up, carry out sharing files, if described opposite equip. is not at cellular network, instructs described opposite end and set
Carry out sharing files for by described service end and the machine, rely on existing infrastructure effectively to avoid in sharing files mistake
Journey expends the cellular network flow of user.
Accompanying drawing explanation
By the detailed description that non-limiting example is made made with reference to the following drawings of reading, other of the present invention
Feature, purpose and advantage will become more apparent upon:
Fig. 1 is the network topology structure figure of file sharing method application scenarios in the present invention;
Fig. 2 is the flow chart of the sharing files method that first embodiment of the invention provides;
Fig. 3 is the flow chart of status poll operation in the sharing files method that second embodiment of the invention provides;
Fig. 4 is the direct-connected flow chart sharing operation in the sharing files method that third embodiment of the invention provides;
Fig. 5 is the flow chart that in the sharing files method that fourth embodiment of the invention provides, operation is shared in transfer;
Fig. 6 is the interaction diagrams of the sharing files method that fifth embodiment of the invention provides;
Fig. 7 is the interaction diagrams of the sharing files method that sixth embodiment of the invention provides;
Fig. 8 is the structure chart of the sharing files device that seventh embodiment of the invention provides.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part related to the present invention is illustrate only rather than entire infrastructure in description, accompanying drawing.
Fig. 1 shows the application scenarios of the sharing files method that the embodiment of the present invention provides.See Fig. 1, local equipment 11
By being connected between network with service end 13.And, and between described local equipment 11, need the opposite end carrying out sharing files to set
Standby 12 are connected with described service end 13 also by network.By described service end 13, described local equipment 11 sets with described opposite end
The sharing files through transfer can be realized between standby 12.
It addition, there is likely to be WLAN (Wireless between described local equipment 11 and described opposite equip. 12
LAN, WLAN) connect.Connected by described WLAN, can realize between described local equipment 11 and described opposite equip. 12 directly
Sharing files.
Needing further exist for explanation, described opposite equip. 12 can access to the Internet by cellular network, it is also possible to
The Internet is accessed to by WLAN.In the present invention, described opposite equip. 12 by which kind of mode in the two is access in mutually
Networking is referred to as the network state of described opposite equip. 12.In the present invention, the network state of described opposite equip. 12 is referred to as
Determine the important references information of sharing files pattern.
First embodiment
Present embodiments provide a kind of technical scheme of sharing files method.Described sharing files method is filled by sharing files
Put execution, and described sharing files device is integrated in local equipment 11 as shown in Figure 1.
Seeing Fig. 2, described sharing files method includes:
S21, initiates inquiry to service end, to determine whether the opposite equip. of sharing files is in cellular network.
In the present embodiment, in described service end, storage has whether the opposite equip. accessed is accessed by cellular network
Information back-up.This information back-up after opposite equip. accesses to described service end i.e. it has been established that and pushing away over time
Move and be constantly thus continually updated according to actual opposite equip. connection status.
When local equipment carries out sharing files between needs and opposite equip., connected to described by the network of self
Service end initiates inquiry.Standby owing to retaining the information having described opposite equip. whether to be accessed by cellular network in described service end
Part, described local equipment can determine whether described opposite equip. is in cellular network.
S22, if described opposite equip. is in cellular network, instructs described opposite equip. and accesses the WiFi heat that the machine is set up
Point, carries out sharing files.
The reason setting up Wi-Fi hotspot in the machine is, if allowing described opposite equip. use it to be currently in use cellular network
Data cube computation carries out sharing files, can expend the expenses of surfing Internet of user greatly.Therefore, this file mode of sharing and without
Ji.
Therefore, the present embodiment uses the sharing files mode that another is wireless, namely sets up on local equipment
Wi-Fi hotspot, is then sent to described opposite equip. by described service end by title and the password of the Wi-Fi hotspot set up,
Opposite equip. can be got involved to the Wi-Fi hotspot having built up, thus realize the direct-connected of file and share.
S23, if described opposite equip. is not at cellular network, instructs described opposite equip. by described service end and the machine
Carry out sharing files.
If described opposite equip. accesses to the Internet not by cellular network, then illustrate that described opposite equip. is logical
Cross the network insertion that WLAN is carried out.Now, what the most described local equipment and described opposite equip. accessed is not same
Individual WiFi access point, therefore, sends instruction to described opposite equip. so that and the sharing files between described opposite equip. passes through
The transfer of described service end realizes.
The present embodiment is by initiating inquiry to service end, and when described opposite equip. is in cellular network, instruction is described
Opposite equip. accesses the Wi-Fi hotspot that the machine is set up, and carries out sharing files, and when described opposite equip. is not at cellular network
Time middle, instruct described opposite equip. and carry out sharing files by described service end and the machine, thus rely on existing network foundation
Facility avoids the cellular network flow expending user during sharing files.
Second embodiment
The present embodiment, based on the above embodiment of the present invention, further provides status poll in sharing files method
A kind of technical scheme of operation.In this technical scheme, initiate inquiry to service end, to determine that the opposite equip. of sharing files is
The no cellular network that is in includes: inquire about the network state field of described opposite equip. to service end, to determine described opposite equip.
Whether it is in cellular network;Receive described service end feedback, for indicating whether described opposite equip. is in cellular network
Network state field.
See Fig. 3, initiate inquiry to service end, to determine whether the opposite equip. of sharing files is in cellular network bag
Include:
S31, inquires about the network state field of described opposite equip., to determine whether described opposite equip. is in service end
Cellular network.
The in store described opposite equip. of described network state field is with WiFi mode access network, or with cellular network
The value of mode access network.Being linked into described service end from described opposite equip., described service end just establishes described
Network state field, and maintain the maintenance to described network state field always.So-called maintenance, refers to regular or irregular
Value to described network state field, is updated according to the actual access situation of described opposite equip..
For different model, different configuration of opposite equip., the means obtaining described network state field are not quite similar.With
As a example by Android device, described service end can call ConnectivityService object by instructing described opposite equip.
In getMobileDataEnabled () function determine whether described opposite equip. enables the data cube computation of cellular network.
S32, receives described service end feedback, for indicating whether described opposite equip. is in the network-like of cellular network
State field.
After receiving the above-mentioned inquiry request of described local equipment, the network state that described service end stores according to self
Field, to described local equipment feedback for indicating whether described opposite equip. is in the information of cellular network.
It should be noted that whether mentioned above is in cellular network, refer to that the described network equipment passes through cellular network
Data cube computation access the Internet, and not over WLAN connect access the Internet.
The present embodiment inquires about the network state field of described opposite equip. to service end, whether to determine described opposite equip.
It is in cellular network, and receives described service end feedback, for indicating whether described opposite equip. is in cellular network
Network state field, it is achieved that the inquiry to the network connection state of opposite equip..
3rd embodiment
The present embodiment, based on the above embodiment of the present invention, further provides direct-connected in sharing files method sharing
A kind of technical scheme of operation.In this technical scheme, instruct described opposite equip. and access the Wi-Fi hotspot that the machine is set up, carry out
Sharing files includes: start the Wi-Fi hotspot of the machine;Title according to described Wi-Fi hotspot and password, generate the machine Wi-Fi hotspot
WiFi authorization message;Send incoming instruction by described service end to described opposite equip., described incoming instruction comprises institute
State WiFi authorization message;If described opposite equip. is successfully accessed, to be connected to described right with the WiFi between described opposite equip.
End equipment carries out sharing files;If described opposite equip. access failure, by the relaying of described service end, with described opposite equip.
Between carry out sharing files.
See Fig. 4, instruct described opposite equip. and access the Wi-Fi hotspot that the machine is set up, carry out sharing files and include:
S41, starts the Wi-Fi hotspot of the machine.
If through the inquiry to described service end, determine that described opposite equip. by cellular network access network, then exists
Wi-Fi hotspot is started in the machine.During starting described Wi-Fi hotspot, need to arrange title and the access of described Wi-Fi hotspot
Password.
S42, according to title and the password of described Wi-Fi hotspot, generates the WiFi authorization message of the machine Wi-Fi hotspot.
Described WiFi authorization message is the information accessing to the Wi-Fi hotspot started in the machine for authorized user.Described
WiFi authorization message comprises title and the password of described Wi-Fi hotspot.Owing to described WiFi authorization message includes access
The title of Wi-Fi hotspot and password, by the transmission of described WiFi authorization message to described opposite equip., described opposite equip. just can
The access to described Wi-Fi hotspot is completed according to described WiFi authorization message.
S43, sends incoming instruction by described service end to described opposite equip., comprises described in described incoming instruction
WiFi authorization message.
Transmission to described WiFi authorization message is the transmission through described service end transfer.And, described WiFi is awarded
First the transmission of power information specifically, be encapsulated as incoming instruction by described WiFi authorization message, then is awarded by the most packaged WiFi
Power instruction, through the transfer transmission extremely described opposite equip. of described service end.
In above-mentioned transmitting procedure, the WiFi of the WiFi access point on described local equipment can not be authorized by described service end
Information caches.So purpose of operation is, it is ensured that the peace of the communication between described local equipment and described opposite equip.
Quan Xing.
S44, if described opposite equip. is successfully accessed, sets to described opposite end to be connected with the WiFi between described opposite equip.
For carrying out sharing files.
If described opposite equip. is successfully accessed the Wi-Fi hotspot on described local equipment, the most described local equipment with
There are direct wireless telecommunications between described opposite equip. to connect, WiFi the most therebetween connects.By described WiFi
Connect, it is possible to achieve the sharing files between described local equipment and described opposite equip..
Connected the sharing files directly carrying out between local equipment and opposite equip. by WiFi therebetween, the machine sets
Standby connection with the communication between opposite equip. does not has the intervention of intermediate node so that sharing files therebetween is the most direct,
Highly efficient.
Particularly, carry out before direct file shares, local equipment needing being connected by WiFi therebetween
Start a file transfer management module.This module externally provides service in the way of HTTPServer, right to access it
The offer fileinfo inquiry of end equipment issues with data.
S45, if described opposite equip. access failure, by the relaying of described service end, and enters between described opposite equip.
Row sharing files.
In actual application, due to many factors such as communication distance, signal intensity, signal disturbing, described opposite equip. does not has
The access to the Wi-Fi hotspot on described local equipment can be completed.Now, between described local equipment and described opposite equip.
Sharing files carry out still through described service end transfers.
Identical with direct-connected sharing files pattern, in relaying sharing files pattern, a HTTP can be started and monitor service, use
In the transmission service providing media file data.Can be scanned file to be sent analyzing, collection filename, file are long simultaneously
The essential informations such as degree, generate this document addressable url address in Wi-Fi hotspot LAN simultaneously, by abstract for information above are
Media file summary info.
The present embodiment is by starting the Wi-Fi hotspot of the machine, according to title and the password of described Wi-Fi hotspot, generates the machine
The WiFi authorization message of Wi-Fi hotspot, send incoming instruction by described service end to described opposite equip., when described opposite end
When equipment is successfully accessed, carry out sharing files to be connected with the WiFi between described opposite equip. to described opposite equip., and
When described opposite equip. access failure, by the relaying of described service end, and between described opposite equip., carry out sharing files,
Achieve the direct-connected sharing files of the WiFi between local equipment and opposite equip..
4th embodiment
The present embodiment, based on the above embodiment of the present invention, further provides transfer in sharing files method and shares
A kind of technical scheme of operation.In this technical scheme, instruct described opposite equip. and carry out literary composition by described service end and the machine
Part is shared and is included: judge the most all to have accessed identical WiFi access point with described opposite equip.;If with described opposite equip. not
It is concurrently accessed identical WiFi access point, sends file reception by described service end to described opposite equip. and instruct;If receiving
The feedback instructed for described file reception to described opposite equip., by the relaying of described service end, with described opposite equip.
Carry out sharing files.
See Fig. 5, instruct described opposite equip. and carry out sharing files by described service end and the machine and include:
S51, it is judged that the most all accessed identical WiFi access point with described opposite equip..
By comparing title and the physical address of the WiFi access point of local equipment and opposite equip. access, it can be determined that
Whether described local equipment has all accessed identical WiFi access point with described opposite equip..
S52, if not being concurrently accessed identical WiFi access point with described opposite equip., by described service end to described right
End equipment sends file reception instruction.
In most cases, local equipment and opposite equip. will not be concurrently accessed identical WiFi access point.Now, by it
The media file summary info that the WiFi authorization message of front generation and described file transfer management module generate is encapsulated into file
Receive instruction, and the instruction of described file reception is sent to described opposite equip. by the relaying of described service end.
S53, if receiving the feedback that described opposite equip. instructs for described file reception, by described service end
Continue, carry out sharing files with described opposite equip..
Described opposite equip., can be to described local equipment feedback reception to institute after receiving the instruction of described file reception
State the feedback information of file reception instruction.If described local equipment receives above-mentioned feedback information, by described service end with
Described opposite equip. is set up communication and is connected, and is connected the sharing files performed between described opposite equip. by above-mentioned communication.
The present embodiment has the most all accessed identical WiFi access point, when right with described by judgement and described opposite equip.
End equipment is not concurrently accessed identical WiFi access point, sends file reception by described service end to described opposite equip. and refers to
Order, when receiving the feedback that described opposite equip. instructs for described file reception, by the relaying of described service end, with described
Opposite equip. performs sharing files, it is achieved that the indirect file between local equipment with opposite equip. is shared.
5th embodiment
Present embodiments provide the another kind of technical scheme of sharing files method.In this technical scheme, described opposite end sets
The standby cellular network that is in, and it is connected to the Internet by cellular network connection.
Seeing Fig. 6, described sharing files method includes:
S61, local equipment initiates inquiry to service end, to determine the network state of described opposite equip..
Described network state refers to that described opposite equip. is to access to the Internet by cellular network, or is connect by WLAN
Enter to the Internet.In the present embodiment, in described service end, retention has the backup for described opposite equip. network state.And
And, above-mentioned backup can be according to the actual connection status real-time update of described opposite equip..
S62, described service end returns the network state of described opposite equip..
In the present embodiment, the network state instruction of return, described opposite equip. accesses to the Internet by cellular network.
S63, described local equipment starts the Wi-Fi hotspot in the machine.
It should be noted that starting during described Wi-Fi hotspot, it is thus necessary to determine that the title of described Wi-Fi hotspot and
Access pin.
S64, described local equipment, according to the title of described Wi-Fi hotspot and password, generates WiFi authorization message.
Described WiFi authorization message comprises title and the password of the Wi-Fi hotspot having been turned on.
S65, described local equipment sends the incoming instruction with described opposite equip. as destination to described service end.
Described incoming instruction comprises title and the password of described Wi-Fi hotspot.
S66, described service end forwards described incoming instruction to described opposite equip..
S67, described opposite equip. accesses to described Wi-Fi hotspot.
After the title of the Wi-Fi hotspot of the Wi-Fi hotspot comprised in getting described incoming instruction and password, described right
End equipment just can access to described Wi-Fi hotspot.
S68, described opposite equip. starts by the file download of described local equipment.
Once access described Wi-Fi hotspot operation success, described opposite equip. start and described local equipment between straight
Connect file download.If accessing to the operation failure of described Wi-Fi hotspot, the most described opposite equip. is by described service end
Turn, it is achieved by the file download of described local equipment.
The present embodiment is by the network state to service end inquiry opposite equip., and is determining that described opposite equip. passes through honeybee
After nest network insertion, the machine starts Wi-Fi hotspot, sets up and be connected, by this direct-connected company with direct-connected between opposite equip.
Connect realize with opposite equip. between sharing files, thus avoid use cellular network carry out file transmission cause economically
Waste.
Sixth embodiment
Present embodiments provide the yet another technique scheme of sharing files method.In this technical scheme, described opposite end sets
For being in WLAN, and it is connected to the Internet by described WLAN.
Seeing Fig. 7, described sharing files method includes:
S701, described local equipment inquires about the network state of described opposite equip. to service end.
In the present embodiment, described network state refers to that described opposite equip. is to access the Internet by cellular network, also
It is to access the Internet by WLAN.
S702, described service end returns described network state to described local equipment.
In the present embodiment, described service end the described network state instruction returned, described opposite equip. passes through WLAN
It is connected to the Internet.
S703, described local equipment determines and is not concurrently accessed identical WiFi access point with described opposite equip..
S704, described local equipment sends the file reception instruction with opposite equip. as destination to described service end.
The instruction of described file reception includes WiFi authorization message and media file summary info.
S705, described service end forwards the instruction of described file reception to described opposite equip..
S706, described opposite equip. confirms to receive the instruction of described file reception.
S707, described opposite equip. feeds back the confirmation message with described local equipment as destination to described service end.
S708, described service end forwards described confirmation message to described local equipment.
S709, described local equipment sends file to described service end.
In the present embodiment, the file transmission between local equipment and opposite equip., need in described service end
Turn.
S710, described service end forwards described file to described opposite equip..
S711, described opposite equip. starts the download to described file.
Concrete, described opposite equip., according to the media file summary info in the instruction of described file reception, completes literary composition
The downloading process of part.
The present embodiment is by the network state to service end inquiry opposite equip., and is determining that described opposite equip. passes through
After WLAN accesses, realize the sharing files between described opposite equip. by the transfer of service end, thus avoid use
Cellular network carries out file and transmits the waste economically caused.
7th embodiment
Present embodiments provide a kind of technical scheme of sharing files device.See Fig. 8, in this technical scheme, described
Sharing files device includes: state-query module 81, direct-connected sharing module 82 and transfer sharing module 83.
Described state-query module 81 is for initiating inquiry to service end, to determine whether the opposite equip. of sharing files is located
In cellular network.
If described direct-connected sharing module 82 is in cellular network for described opposite equip., instructs described opposite equip. and access
The Wi-Fi hotspot that the machine is set up, carries out sharing files.
If described transfer sharing module 83 is not at cellular network for described opposite equip., instructs described opposite equip. and lead to
Cross described service end and carry out sharing files with the machine.
Optionally, described state-query module 81 includes: query unit and feedback reception unit.
Described query unit for inquiring about the network state field of described opposite equip. to service end, to determine described opposite end
Whether equipment is in cellular network.
Described feedback reception unit, for receiving described service end feedback, is used for indicating whether described opposite equip. is in
The network state field of cellular network.
Optionally, described direct-connected sharing module 82 includes: focus start unit, authorization message signal generating unit, incoming instruction
Transmitting element and direct-connected share unit.
Described focus start unit is for starting the Wi-Fi hotspot of the machine.
Described authorization message signal generating unit, for the title according to described Wi-Fi hotspot and password, generates the machine Wi-Fi hotspot
WiFi authorization message.
Described incoming instruction transmitting element is for sending incoming instruction by described service end to described opposite equip., described
Incoming instruction comprises described WiFi authorization message.
If described direct-connected unit of sharing is successfully accessed for described opposite equip., with the WiFi between described opposite equip.
Connect and carry out sharing files to described opposite equip..
Optionally, described direct-connected sharing module also includes: unit shared by the first relaying.
If described first relaying shares unit for described opposite equip. access failure, by the relaying of described service end,
And carry out sharing files between described opposite equip..
Optionally, described transfer sharing module 83 includes: access point judging unit, reception instruction sending unit and second
Unit shared by relaying.
Described access point judging unit has the most all accessed identical WiFi access point for judgement and described opposite equip..
If described reception instruction sending unit is not for being concurrently accessed identical WiFi access point with described opposite equip., logical
Cross described service end and send file reception instruction to described opposite equip..
If described second relaying share unit for receive described opposite equip. for described file reception instruct anti-
Feedback, by the relaying of described service end, carries out sharing files with described opposite equip..
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for those skilled in the art
For, the present invention can have various change and change.All made within spirit and principles of the present invention any amendment, equivalent
Replacement, improvement etc., should be included within the scope of the present invention.
Claims (10)
1. a sharing files method, it is characterised in that including:
Inquiry is initiated, to determine whether the opposite equip. of sharing files is in cellular network to service end;
If described opposite equip. is in cellular network, instructs described opposite equip. and access the Wi-Fi hotspot that the machine is set up, carry out literary composition
Part is shared;
If described opposite equip. is not at cellular network, instructs described opposite equip. and carry out file by described service end and the machine
Share.
Method the most according to claim 1, it is characterised in that initiate inquiry to service end, to determine the right of sharing files
Whether end equipment is in cellular network includes:
The network state field of described opposite equip. is inquired about, to determine whether described opposite equip. is in Cellular Networks to service end
Network;
Receive described service end feedback, for indicating whether described opposite equip. is in the network state field of cellular network.
Method the most according to claim 1, it is characterised in that instruct described opposite equip. and access the WiFi heat that the machine is set up
Point, carries out sharing files and includes:
Start the Wi-Fi hotspot of the machine;
Title according to described Wi-Fi hotspot and password, generate the WiFi authorization message of the machine Wi-Fi hotspot;
Send incoming instruction by described service end to described opposite equip., described incoming instruction comprises described WiFi and authorizes letter
Breath;
If described opposite equip. is successfully accessed, carry out literary composition to be connected with the WiFi between described opposite equip. to described opposite equip.
Part is shared.
Method the most according to claim 3, it is characterised in that instruct described opposite equip. and access the WiFi heat that the machine is set up
Point, carries out sharing files and also includes:
If described opposite equip. access failure, by the relaying of described service end, and carry out file between described opposite equip. and divide
Enjoy.
Method the most according to claim 1, it is characterised in that instruct described opposite equip. by described service end and the machine
Carry out sharing files to include:
Judge the most all to have accessed identical WiFi access point with described opposite equip.;
If not being concurrently accessed identical WiFi access point with described opposite equip., sent out to described opposite equip. by described service end
File reception is sent to instruct;
If receiving the feedback that described opposite equip. instructs for described file reception, by the relaying of described service end, with institute
State opposite equip. and carry out sharing files.
6. a sharing files device, it is characterised in that including:
State-query module, for initiating inquiry to service end, to determine whether the opposite equip. of sharing files is in Cellular Networks
Network;
Direct-connected sharing module, if being in cellular network for described opposite equip., instructing described opposite equip. and accessing the machine foundation
Wi-Fi hotspot, carry out sharing files;
Transfer sharing module, if being not at cellular network for described opposite equip., instructs described opposite equip. by described clothes
Business end carries out sharing files with the machine.
Device the most according to claim 6, it is characterised in that described state-query module includes:
Query unit, for inquiring about the network state field of described opposite equip., to determine that described opposite equip. is to service end
No it is in cellular network;
Feedback reception unit, for receiving described service end feedback, is used for indicating whether described opposite equip. is in Cellular Networks
The network state field of network.
Device the most according to claim 6, it is characterised in that described direct-connected sharing module includes:
Focus start unit, for starting the Wi-Fi hotspot of the machine;
Authorization message signal generating unit, for the title according to described Wi-Fi hotspot and password, generates the WiFi of the machine Wi-Fi hotspot
Authorization message;
Incoming instruction transmitting element, for sending incoming instruction by described service end to described opposite equip., described access refers to
Order comprises described WiFi authorization message;
Direct-connected share unit, if being successfully accessed for described opposite equip., be connected with the WiFi between described opposite equip. to
Described opposite equip. carries out sharing files.
Device the most according to claim 8, it is characterised in that described direct-connected sharing module also includes:
Unit shared by first relaying, if for described opposite equip. access failure, by the relaying of described service end, right with described
Sharing files is carried out between end equipment.
Device the most according to claim 6, it is characterised in that described transfer sharing module includes:
Access point judging unit, has the most all accessed identical WiFi access point for judgement and described opposite equip.;
Receive instruction sending unit, if for not being concurrently accessed identical WiFi access point, by described with described opposite equip.
Service end sends file reception instruction to described opposite equip.;
Unit shared by second relaying, if for receiving the feedback that described opposite equip. instructs for described file reception, passing through
The relaying of described service end, carries out sharing files with described opposite equip..
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610412136.2A CN106161587B (en) | 2016-06-13 | 2016-06-13 | File sharing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610412136.2A CN106161587B (en) | 2016-06-13 | 2016-06-13 | File sharing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106161587A true CN106161587A (en) | 2016-11-23 |
CN106161587B CN106161587B (en) | 2020-05-19 |
Family
ID=57352846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610412136.2A Active CN106161587B (en) | 2016-06-13 | 2016-06-13 | File sharing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161587B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839219A (en) * | 2019-11-22 | 2020-02-25 | 中国联合网络通信集团有限公司 | Method for accessing terminal into cellular network and cellular network system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202714A (en) * | 2014-08-05 | 2014-12-10 | 深圳市元征科技股份有限公司 | Mobile terminal near field communication method and system for heterogeneous operating system |
US20150250002A1 (en) * | 2014-03-03 | 2015-09-03 | Futurewei Technologies, Inc. | System and method for reserving a channel for coexistence of u-lte and wifi |
CN105188098A (en) * | 2015-09-30 | 2015-12-23 | 努比亚技术有限公司 | Mobile terminal network switching apparatus and network switching method |
CN105656991A (en) * | 2015-12-21 | 2016-06-08 | 北京金山安全软件有限公司 | File sharing method and device |
-
2016
- 2016-06-13 CN CN201610412136.2A patent/CN106161587B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150250002A1 (en) * | 2014-03-03 | 2015-09-03 | Futurewei Technologies, Inc. | System and method for reserving a channel for coexistence of u-lte and wifi |
CN104202714A (en) * | 2014-08-05 | 2014-12-10 | 深圳市元征科技股份有限公司 | Mobile terminal near field communication method and system for heterogeneous operating system |
CN105188098A (en) * | 2015-09-30 | 2015-12-23 | 努比亚技术有限公司 | Mobile terminal network switching apparatus and network switching method |
CN105656991A (en) * | 2015-12-21 | 2016-06-08 | 北京金山安全软件有限公司 | File sharing method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839219A (en) * | 2019-11-22 | 2020-02-25 | 中国联合网络通信集团有限公司 | Method for accessing terminal into cellular network and cellular network system |
Also Published As
Publication number | Publication date |
---|---|
CN106161587B (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019158040A1 (en) | Method and device for switching | |
RU2437218C2 (en) | Method to coordinate and transfer information on time interval of location update | |
JP5675827B2 (en) | Connection method, communication system, mobile terminal, information transfer apparatus and server | |
CN110166414B (en) | Communication method, device and system | |
EP2309799B1 (en) | A route optimization method and system | |
CN101772193A (en) | Method, system and mobile access gateway for optimizing local routing | |
CN109996260A (en) | Configuration system, client device, embedded device configuration method and storage medium | |
EP3163919B1 (en) | D2d service authorizing method and device and home near field communication server | |
EP2756652A1 (en) | Communications terminal and method | |
CN103096297A (en) | Data transmission method, system and related equipment | |
JP2013026646A (en) | Wireless network system and control method thereof and wireless network repeater | |
KR101663994B1 (en) | METHOD FOR PROVIDING AN LIGHT-WEIGHT ROUTING PROTOCOL IN A IoT CAPABLE INFRA-LESS WIRELESS NETWORKS, RECORDING MEDIUM AND DEVICE FOR PERFORMING THE METHOD | |
KR101442368B1 (en) | Method and device for processing communication services based on area | |
CN105706524A (en) | Systems, methods and devices for modifying relay operation of a wireless device | |
CN112422300B (en) | Cloud network private line management method based on block chain, UPF and block chain platform | |
CN113905349A (en) | Networking method, device and system | |
CN102113371B (en) | Group shared distributed reservation protocol | |
CN104429128B (en) | Wireless access processing method, apparatus and system | |
CN106161587A (en) | Sharing files method and device | |
JP6674041B2 (en) | Access method, apparatus, device, and system | |
CN103813332B (en) | The user cut-in managing method of emergency communication system based on multidimensional heterogeneous network | |
Benedetti et al. | An energy efficient and software-defined information-centric networking approach to consumer mobility | |
WO2022236598A1 (en) | Information processing method and apparatus, and communication device and storage medium | |
CN115396865B (en) | Terminal roaming data processing method and network equipment | |
Ventrella et al. | Information-centric publish-subscribe mechanisms for Intelligent Transportation Systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 519000. A District 1, 15A, conference center, 1 Software Road, Tang Wan Town, Zhuhai hi tech Zone, Guangdong, 1 Patentee after: GUANGDONG JIAMI TECHNOLOGY Co.,Ltd. Address before: 519000. A District 1, 15A, conference center, 1 Software Road, Tang Wan Town, Zhuhai hi tech Zone, Guangdong, 1 Patentee before: ZHUHAI JIAMI TECHNOLOGY Co.,Ltd. |