CN113766434B - File sharing method and device, home cloud server and storage medium - Google Patents

File sharing method and device, home cloud server and storage medium Download PDF

Info

Publication number
CN113766434B
CN113766434B CN202111323863.9A CN202111323863A CN113766434B CN 113766434 B CN113766434 B CN 113766434B CN 202111323863 A CN202111323863 A CN 202111323863A CN 113766434 B CN113766434 B CN 113766434B
Authority
CN
China
Prior art keywords
cloud server
terminal device
group
home cloud
terminal
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
CN202111323863.9A
Other languages
Chinese (zh)
Other versions
CN113766434A (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.)
Yici Netlink Hangzhou Technology Co ltd
Original Assignee
Yici Netlink Hangzhou 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 Yici Netlink Hangzhou Technology Co ltd filed Critical Yici Netlink Hangzhou Technology Co ltd
Publication of CN113766434A publication Critical patent/CN113766434A/en
Application granted granted Critical
Publication of CN113766434B publication Critical patent/CN113766434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Abstract

The invention relates to a file sharing method, a device, a family cloud server and a storage medium, wherein the file sharing method comprises the following steps: establishing Wi-Fi direct connection with each terminal device through a home cloud server so that a plurality of terminal devices can establish a group; and sending the corresponding file stored by the home cloud server to the terminal equipment according to the data request of any terminal equipment in the group, wherein the node address of each terminal equipment connected to the home cloud server in the group is different from the routing address of each terminal equipment connected to the wireless router, so that when the corresponding file stored by the home cloud server is sent to the terminal equipment according to the data request of any terminal equipment in the group, each terminal equipment can surf the internet. Therefore, the family cloud server is connected with each terminal device through Wi-Fi direct connection, and the file sharing of the mobile terminal and the family cloud server is achieved in a group mode, so that the file can be shared quickly and easily while the online experience of the mobile terminal is not influenced.

Description

File sharing method and device, home cloud server and storage medium
Technical Field
The invention relates to the technical field of cloud, in particular to a file sharing method and device, a family cloud server and a storage medium.
Background
At present, the household data backup equipment generally adopts a wired mode to carry out data sharing, the convenience is far superior to a wireless mode, but the wireless mode in the related technology carries out data transmission through a wireless router, and then data sharing is realized.
Disclosure of Invention
Technical problem to be solved
In view of the above disadvantages and shortcomings of the prior art, the present invention provides a file sharing method, device, home cloud server and storage medium, which solve the technical problem that the use of the whole wireless local area network is affected by data sharing through a wireless router.
(II) technical scheme
In order to achieve the purpose, the invention adopts the main technical scheme that:
in a first aspect, an embodiment of the present invention provides a file sharing method, which is applied to a home cloud server, and the method includes: establishing Wi-Fi direct connection with each terminal device through a home cloud server so that a plurality of terminal devices can establish a group; and sending the corresponding file stored by the home cloud server to the terminal equipment according to the data request of any terminal equipment in the group, wherein the node address of each terminal equipment connected to the home cloud server in the group is different from the routing address of each terminal equipment connected to the wireless router, so that when the corresponding file stored by the home cloud server is sent to the terminal equipment according to the data request of any terminal equipment in the group, each terminal equipment can surf the internet.
According to the file sharing method provided by the embodiment of the invention, Wi-Fi direct connection is established between the home cloud server and each terminal device, so that a plurality of terminal devices establish a group, corresponding files stored in the home cloud server are sent to the terminal devices according to data requests of any terminal device in the group, the node address of each terminal device in the group, which is connected to the home cloud server, is different from the routing address of each terminal device, which is connected to the wireless router, so that when the corresponding files stored in the home cloud server are sent to the terminal devices according to the data requests of any terminal device in the group, each terminal device can surf the internet. Therefore, the family cloud server is connected with each terminal device through Wi-Fi direct connection, file sharing of the mobile terminal and the family cloud server is achieved in a group mode, the node address, connected to the family cloud server, of each terminal device in the group is different from the routing address, connected to the wireless router, of each terminal device, and therefore quick and easy file sharing can be achieved while online experience of the mobile terminal is not affected.
Optionally, establishing Wi-Fi direct with each terminal device through a home cloud server, so that a plurality of terminal devices establish a group, including: and acquiring the request information of each terminal device, authenticating the request information of each terminal device, and adding the authenticated terminal devices into the group.
Optionally, the obtaining of the request information of each terminal device includes: the authentication information is displayed through a home cloud server, wherein each terminal device generates request information by scanning the authentication information; and receiving the request information sent by each terminal device.
Optionally, the requesting information includes a first authentication code generated based on the authentication information, and authenticating the requesting information of each terminal device includes: and generating a second authentication code according to the authentication information, comparing the first authentication code with the second authentication code, and judging whether each terminal device passes the authentication according to the comparison result.
Optionally, before sending the file stored by the home cloud server to any terminal device in the group according to the data request of the terminal device, the method further includes: and receiving and storing the file uploaded by each terminal device in the group.
Optionally, the node addresses of each terminal device in the group connected to the home cloud server are in the same network segment.
Optionally, after the home cloud server establishes Wi-Fi direct with each terminal device, the method further includes: receiving a group building request of a user; and establishing a specific group with corresponding terminal equipment establishing Wi-Fi direct connection with a family cloud server according to a group establishment request of a user.
Optionally, after the specific group is established, the method further includes: and allocating the node addresses to the terminal devices in the specific group, so that the node addresses of the terminal devices in the specific group are in the same sub-network segment.
In a second aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a file sharing program is stored, and the file sharing program, when executed by a processor, implements the file sharing method described above.
The computer-readable storage medium provided by the embodiment of the invention is based on the file sharing method, the home cloud server is connected with each terminal device through Wi-Fi direct connection, the file sharing between the mobile terminal and the home cloud server is realized in a group mode, the node address of each terminal device in the group, which is connected to the home cloud server, is different from the routing address of each terminal device, which is connected to the wireless router, so that the file can be quickly and easily shared while the network experience of the mobile terminal is not influenced.
In a third aspect, an embodiment of the present invention provides a home cloud server, which includes a memory, a processor, and a file sharing program that is stored in the memory and is executable on the processor, and when the processor executes the file sharing program, the file sharing method is implemented.
Based on the file sharing method, the home cloud server is connected with each terminal device through Wi-Fi direct connection, the file sharing between the mobile terminal and the home cloud server is achieved in a group mode, the node address of each terminal device in the group, connected to the home cloud server, is different from the routing address of each terminal device, connected to the wireless router, and therefore the files can be shared quickly and easily while the network experience of the mobile terminal is not affected.
In a fourth aspect, an embodiment of the present invention provides a file sharing apparatus, which is applied to a home cloud server, and includes: the system comprises a creating module, a group establishing module and a group establishing module, wherein the creating module is used for establishing Wi-Fi direct connection with each terminal device through a home cloud server so that a plurality of terminal devices can establish a group; the sharing module is used for sending the corresponding file stored by the family cloud server to the terminal equipment according to the data request of any terminal equipment in the group, wherein the node address of each terminal equipment connected to the family cloud server in the group is different from the routing address of each terminal equipment connected to the wireless router, so that when the sharing module sends the corresponding file stored by the family cloud server to the terminal equipment according to the data request of any terminal equipment in the group, each terminal equipment can surf the internet.
The file sharing device provided by the embodiment of the invention establishes Wi-Fi direct connection with each terminal device through the home cloud server so that a plurality of terminal devices establish a group, and sends the corresponding file stored by the home cloud server to the terminal device according to the data request of any terminal device in the group, wherein the node address of each terminal device in the group connected to the home cloud server is different from the routing address of each terminal device connected to the wireless router, so that each terminal device can surf the internet when sending the corresponding file stored by the home cloud server to the terminal device according to the data request of any terminal device in the group. Therefore, the family cloud server is connected with each terminal device through Wi-Fi direct connection, file sharing of the mobile terminal and the family cloud server is achieved in a group mode, the node address, connected to the family cloud server, of each terminal device in the group is different from the routing address, connected to the wireless router, of each terminal device, and therefore quick and easy file sharing can be achieved while online experience of the mobile terminal is not affected.
(III) advantageous effects
The invention has the beneficial effects that: according to the file sharing method, the file sharing device, the family cloud server and the storage medium, the family cloud server is connected with each terminal device through Wi-Fi direct connection, the file sharing of the mobile terminal and the family cloud server is achieved in a group mode, the node address of each terminal device in the group, connected to the family cloud server, is different from the routing address of each terminal device, connected to the wireless router, and therefore the files can be shared quickly and easily without affecting the network access experience of the mobile terminal.
Drawings
FIG. 1 is a flow diagram of a file sharing method according to one embodiment of the invention;
FIG. 2 is a schematic diagram of file sharing according to one embodiment of the present invention;
fig. 3 is a block diagram of a file sharing apparatus according to an embodiment of the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
According to the file sharing method and device, the family cloud server and the storage medium, the family cloud server is connected with each terminal device through Wi-Fi direct connection, the file sharing of the mobile terminal and the family cloud server is achieved in a group mode, the node address of each terminal device in the group, connected to the family cloud server, is different from the routing address of each terminal device, connected to the wireless router, and therefore the files can be shared quickly and easily while the network experience of the mobile terminal is not affected.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In some embodiments, a file sharing method is provided, and the file sharing method is applied to a home cloud server, as shown in fig. 1, and may include the following steps:
step S102, establishing Wi-Fi direct connection with each terminal device through a home cloud server, so that a plurality of terminal devices can establish a group.
It should be noted that there are two modes of WiFi: infrastructure mode and AD-HOC mode (i.e., AD HOC network mode). In the infrastructure mode, the access point AP (commonly called as a hotspot or a wireless router) and a plurality of stations STA (user terminals such as computers) are provided, and the stations STA are connected by forwarding messages through the access point AP; in AD-HOC mode, without an access point AP, each WiFi interface communicates with each other through direct connections. Wi-Fi direct is a kind of AD-HOC mode, also called WiFi-P2P, and is a protocol for quickly establishing point-to-point WiFi connection proposed by WiFi alliance, which essentially uses two MACs (Media Access Control addresses, i.e. physical addresses) in technology, so that it can achieve non-interference with wlan. The user group network is a logic isolation sub-network established in a network layer for flexibly supporting isolation of application services, different sub-networks are isolated in communication by default, and user network nodes joining the same group can communicate with each other, namely, a plurality of terminal devices and a home cloud server in the group can communicate with each other.
Specifically, when file sharing is performed, wireless connection between the home cloud server and each terminal device in a home can be achieved through Wi-Fi direct connection, so that a plurality of terminal devices form a group, and file sharing is performed in the group. The terminal equipment and the home cloud server are connected directly through Wi-Fi without a wireless router, so that data transmission is more direct, more convenient and faster.
In some embodiments, establishing Wi-Fi direct with each terminal device through the home cloud server to enable a plurality of terminal devices to establish a group includes: and acquiring the request information of each terminal device, authenticating the request information of each terminal device, and adding the authenticated terminal devices into the group. That is to say, when a terminal device requests to join a group, the home cloud server performs security authentication on the terminal device according to the request information of the terminal device, and allows the terminal device to join the group after the security authentication is passed, so that the security of the group is ensured, and leakage or tampering of shared files caused by illegal terminal devices joining the group is avoided.
In some embodiments, obtaining the request information of each terminal device includes: the authentication information is displayed through a home cloud server, wherein each terminal device generates request information by scanning the authentication information; and receiving the request information sent by each terminal device.
Specifically, the home cloud server may display authentication information, which may be a name, an ID, and the like of the home cloud server, the terminal device has a Wi-Fi direct function, a nearby device list having the Wi-Fi direct function is obtained through scanning of the terminal device by the function, the home cloud server to be connected is searched from the list, and after the home cloud server to be connected is searched, request information is generated based on the authentication information of the home cloud server, and the request information is sent to the home cloud server to request to join a group where the home cloud server is located. After receiving the request information sent by the terminal equipment, the home cloud server carries out security authentication on the terminal equipment based on the request information, and allows the terminal equipment to join the group after the security authentication is passed, so that the security of the group is ensured, and leakage or tampering of shared files caused by illegal terminal equipment joining the group is avoided.
In some embodiments, the requesting information includes a first authentication code generated based on the authentication information, and authenticating the requesting information of each terminal device includes: and generating a second authentication code according to the authentication information, comparing the first authentication code with the second authentication code, and judging whether each terminal device passes the authentication according to the comparison result.
Specifically, after finding a home cloud server to be connected from a device list having a Wi-Fi direct function, the terminal device may generate a first authentication code (e.g., a first key) based on authentication information of the home cloud server by using a predetermined algorithm that is the same as that of the home cloud server, generate request information according to the first authentication code, and send the request information to the home cloud server. After the home cloud server obtains the request information, a second authentication code (such as a second secret key) is generated by adopting a predetermined algorithm based on the authentication information of the home cloud server, and is compared and judged with the first authentication code in the received request information, if the authentication code and the first authentication code are the same, the terminal equipment is allowed to join the group where the terminal equipment is located, otherwise, the terminal equipment is not legal, and the terminal equipment is forbidden to join the group where the terminal equipment is located. Therefore, the same authentication code is generated by the terminal device and the home cloud server through the same algorithm, direct connection of the non-pre-negotiation pointing device can be achieved, and it is guaranteed that a third-party device cannot be disguised as the terminal device or the home cloud server, and therefore the security of the group is guaranteed.
Step S104, sending a corresponding file stored in the family cloud server to the terminal device according to the data request of any terminal device in the group, wherein the node address of each terminal device in the group connected to the family cloud server is different from the routing address of each terminal device connected to the wireless router, so that when the corresponding file stored in the family cloud server is sent to the terminal device according to the data request of any terminal device in the group, each terminal device can surf the internet.
In some embodiments, the node addresses of each terminal device in the group connected to the home cloud server are in the same network segment, for example, the network segment of the group is: 17.0.8.0/21, the home cloud server can be used as group owner, its node address (i.e. IP address) can be 17.0.8.1, the terminal device can be used as group member, its node address can be 17.0.8.2, 17.0.8.3, 17.0.8.4, etc., so that the data transmission is more direct, convenient and fast.
In some embodiments, the node address of each terminal device in the group connecting to the home cloud server is different from the routing address of each terminal device connecting to the wireless router, for example, the network segments of the group are: 17.0.8.0/21, the network segments of the route are: 17.0.5.0/24, to avoid the conflict between node address and routing address to affect the file sharing and the network experience.
In some embodiments, before sending the file stored by the home cloud server to any terminal device in the group according to the data request of the terminal device, the method further includes: and receiving and storing the file uploaded by each terminal device in the group.
Specifically, after a Wi-Fi direct connection is established with each terminal device through a home cloud server, so that a plurality of terminal devices establish a group, bidirectional data transmission can be performed in a group manner, for example, after the home cloud server receives a data request of any terminal device in the group, a stored corresponding file is sent to the terminal device according to the data request; and if the terminal equipment sends the files needing to be backed up to the home cloud server, the files are stored and backed up through the home cloud server.
In the embodiment, the home cloud server is wirelessly connected with each terminal device in a home in a short distance and quickly by Wi-Fi direct connection, and the file sharing between the home cloud server and each terminal device is realized by adopting a group mode, so that the convenience of file sharing is improved, mass data sharing is supported, the bandwidth of a home wireless local area network is not occupied, and the internet experience of the terminal devices is not influenced; meanwhile, safety certification is carried out when the group is established, and the safety of the group is guaranteed.
In some embodiments, after the home cloud server establishes Wi-Fi direct with each terminal device, the method further comprises: receiving a group building request of a user; and establishing a specific group with corresponding terminal equipment establishing Wi-Fi direct connection with a family cloud server according to a group establishment request of a user. Further, after the ad-hoc group is established, the method further comprises: and allocating the node addresses to the terminal devices in the specific group, so that the node addresses of the terminal devices in the specific group are in the same sub-network segment.
Specifically, after the family cloud server and each terminal device establish Wi-Fi direct connection, so that a plurality of terminals establish a group, a user can also send a group establishment request to the family cloud server through any terminal device in the group, after receiving the group establishment request of the user, the family cloud server establishes a specific group for the corresponding terminal device establishing Wi-Fi direct connection with the family cloud server according to the group establishment request, and allocates node addresses to the terminal devices in the specific group, so that the node addresses of the terminal devices in the specific group are in the same sub-network segment. For example, the segments of the group are: 17.0.8.0/21, the family cloud server may be a group owner with a node address of 17.0.8.1, terminal device 1 as member 1, a node address of 17.0.8.2, terminal device 2 and terminal device 3 as member 1's group member 1 and group member 2, respectively, and a node address of 17.0.8.4, 17.0.8.5, respectively, wherein terminal devices 1, 2 and 3 form a specific group of the group. That is, a specific group can be established in the group according to the requirement, so as to perform the file sharing in the specific group.
In some embodiments, the corresponding file stored by the home cloud server is sent to the terminal device based on the node address, and the file uploaded by each terminal device in the group is received.
Specifically, take an example of sending a corresponding file stored by the home cloud server to the terminal device. Determining a target terminal device, specifically a node address of the target terminal device, by the home cloud server according to the data request, and generating a Virtual Private Network (VPN) message with quintuple information by corresponding the node address of the target terminal device to a target group, a target member and a target group member, wherein the target terminal device determines whether the file is sent to itself or not based on a Network segment of the group, the node address of an original member or the node address of the original group member, the node address of the target member or the node address of the target group member, if so, reconstructing the Network segment of the group and verifying, and if not, discarding the VPN message.
For example, as shown in fig. 2, assuming that the left side is a home cloud server and the right side is a terminal device, when the home cloud server sends a file to the terminal device, the home cloud server may obtain a node address of the terminal device according to a data request sent by the terminal device, determine an IP header according to the node address, and generate a VPN packet having quintuple information according to the IP header and data to be sent, where the quintuple information includes the IP header, the data to be sent, a VPN Frame packet header, a VPN public header, and a physical IP header, and send the VPN packet to the terminal device through Wi-Fi direct connection. After receiving a VPN message sent by a home cloud server, a terminal device acquires an IP head from the message, determines whether the VPN message is sent to the terminal device according to the IP head, replaces the group IP with the IP of the message head to send the IP to a VPN layer if the VPN message is sent to the terminal device, enables an inner core to check the IP and then acquires data to be sent in the VPN message, and discards the VPN message if the VPN message is not sent, so that file sharing is achieved.
It should be noted that, for the terminal device uploading a file to the home cloud server and sharing the file among the terminal devices in the specific group, the process may refer to sending a corresponding file stored by the home cloud server to the terminal device, and details are not repeated here.
In summary, in the file sharing method of the present invention, the home cloud server establishes Wi-Fi direct connection with each terminal device, so that a plurality of terminal devices establish a group, and sends a corresponding file stored in the home cloud server to the terminal device according to a data request of any terminal device in the group, and a node address of each terminal device in the group, which is connected to the home cloud server, is different from a routing address of each terminal device, which is connected to the wireless router, so that each terminal device can surf the internet when sending the corresponding file stored in the home cloud server to the terminal device according to the data request of any terminal device in the group. Therefore, the family cloud server is connected with each terminal device through Wi-Fi direct connection, file sharing of the mobile terminal and the family cloud server is achieved in a group mode, the node address, connected to the family cloud server, of each terminal device in the group is different from the routing address, connected to the wireless router, of each terminal device, and therefore quick and easy file sharing can be achieved while online experience of the mobile terminal is not affected.
In some embodiments, a computer-readable storage medium is provided, on which a file sharing program is stored, which when executed by a processor implements the file sharing method described above.
The computer-readable storage medium is based on the file sharing method, the family cloud server is connected with each terminal device through Wi-Fi direct connection, the file sharing between the mobile terminal and the family cloud server is realized in a group mode, the node address of each terminal device in the group, which is connected to the family cloud server, is different from the routing address of each terminal device, which is connected to the wireless router, so that the quick and easy file sharing can be realized without influencing the network access experience of the mobile terminal.
In some embodiments, a home cloud server is provided, which includes a memory, a processor, and a file sharing program stored in the memory and executable on the processor, and when the processor executes the file sharing program, the file sharing method is implemented.
According to the family cloud server, based on the file sharing method, the family cloud server is connected with each terminal device through Wi-Fi direct connection, the file sharing between the mobile terminal and the family cloud server is achieved in a group mode, the node address of each terminal device in the group, connected to the family cloud server, is different from the routing address of each terminal device, connected to the wireless router, and therefore the files can be shared quickly and easily while the network access experience of the mobile terminal is not affected.
In some embodiments, there is provided a file sharing apparatus, which is applied to a home cloud server, as shown in fig. 3, and includes: the system comprises a creation module 10 and a sharing module 20, wherein the creation module 10 is used for establishing Wi-Fi direct connection with each terminal device through a home cloud server so that a plurality of terminal devices can establish a group; the sharing module 20 is configured to send a corresponding file stored in the home cloud server to a terminal device according to a data request of any terminal device in the group, where a node address where each terminal device in the group is connected to the home cloud server is different from a routing address where each terminal device is connected to the wireless router, so that when the sharing module 20 sends the corresponding file stored in the home cloud server to the terminal device according to the data request of any terminal device in the group, each terminal device can surf the internet.
Optionally, the creating module 10 is specifically configured to: and acquiring the request information of each terminal device, authenticating the request information of each terminal device, and adding the authenticated terminal devices into the group.
Optionally, the creating module 10 is specifically configured to: the authentication information is displayed through the home cloud server, and request information sent by each terminal device is received, wherein each terminal device generates the request information by scanning the authentication information.
Optionally, the request information includes a first authentication code generated based on the authentication information, and the creating module 10 is further configured to: and generating a second authentication code according to the authentication information, comparing the first authentication code with the second authentication code, and judging whether each terminal device passes the authentication according to the comparison result.
Optionally, the sharing module 20 is further configured to: and receiving and storing the file uploaded by each terminal device in the group.
Optionally, the node addresses of each terminal device in the group connected to the home cloud server are in the same network segment.
Optionally, the creating module 10 is further configured to: receiving a group building request of a user; and establishing a specific group with corresponding terminal equipment establishing Wi-Fi direct connection with a family cloud server according to a group establishment request of a user.
Optionally, the creating module 10 is further configured to: and allocating the node addresses to the terminal devices in the specific group, so that the node addresses of the terminal devices in the specific group are in the same sub-network segment.
It should be noted that, for the description of the file sharing apparatus in the present application, please refer to the description of the file sharing method in the present application, and details are not repeated here.
The file sharing device establishes Wi-Fi direct connection with each terminal device through the home cloud server to enable the plurality of terminal devices to establish a group, and sends corresponding files stored by the home cloud server to the terminal devices according to data requests of any terminal device in the group, wherein the node address of each terminal device in the group connected to the home cloud server is different from the routing address of each terminal device connected to the wireless router, so that when the sharing module sends the corresponding files stored by the home cloud server to the terminal devices according to the data requests of any terminal device in the group, each terminal device can surf the internet. Therefore, the family cloud server is connected with each terminal device through Wi-Fi direct connection, file sharing of the mobile terminal and the family cloud server is achieved in a group mode, the node address, connected to the family cloud server, of each terminal device in the group is different from the routing address, connected to the wireless router, of each terminal device, and therefore quick and easy file sharing can be achieved while online experience of the mobile terminal is not affected.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium; either as communication within the two elements or as an interactive relationship of the two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, a first feature may be "on" or "under" a second feature, and the first and second features may be in direct contact, or the first and second features may be in indirect contact via an intermediate. Also, a first feature "on," "above," and "over" a second feature may be directly or obliquely above the second feature, or simply mean that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the second feature, or may simply mean that the first feature is at a lower level than the second feature.
In the description herein, the description of the terms "one embodiment," "some embodiments," "an embodiment," "an example," "a specific example" or "some examples" or the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are illustrative and not restrictive, and that those skilled in the art may make changes, modifications, substitutions and alterations to the above embodiments without departing from the scope of the present invention.

Claims (10)

1. A file sharing method is applied to a home cloud server, and comprises the following steps:
establishing Wi-Fi direct connection with each terminal device through the home cloud server so that a plurality of terminal devices can establish a group;
sending a corresponding file stored by the home cloud server to a terminal device according to a data request of any terminal device in the group, wherein a node address of each terminal device in the group connected to the home cloud server is different from a routing address of each terminal device connected to a wireless router, so that each terminal device can surf the internet when the corresponding file stored by the home cloud server is sent to the terminal device according to the data request of any terminal device in the group; the node addresses of each terminal device in the group, which are connected to the home cloud server, are in the same network segment;
when the home cloud server sends a file to the terminal equipment, the home cloud server acquires a node address of the terminal equipment according to a data request sent by the terminal equipment, determines an IP (Internet protocol) head according to the node address, generates a VPN (virtual private network) message with quintuple information according to the IP head and the data to be sent, wherein the quintuple information comprises the IP head, the data to be sent, a VPN Frame message head, a VPN public head and a physical IP head, and sends the VPN message to the terminal equipment through Wi-Fi (wireless fidelity) direct connection; after receiving a VPN message sent by a home cloud server, a terminal device acquires an IP head from the message, determines whether the VPN message is sent to the terminal device according to the IP head, replaces the group IP with the IP of the message head to send the IP to a VPN layer if the VPN message is sent to the terminal device, enables an inner core to check the IP and then acquires data to be sent in the VPN message, and discards the VPN message if the VPN message is not sent, so that file sharing is achieved.
2. The file sharing method according to claim 1, wherein establishing Wi-Fi direct with each terminal device through the home cloud server to enable a plurality of terminal devices to establish a group comprises:
and acquiring the request information of each terminal device, authenticating the request information of each terminal device, and adding the authenticated terminal devices into the group.
3. The file sharing method according to claim 2, wherein obtaining the request information of each terminal device includes:
displaying authentication information through the home cloud server, wherein each terminal device generates request information by scanning the authentication information;
and receiving the request information sent by each terminal device.
4. The file sharing method according to claim 3, wherein the request information includes a first authentication code generated based on the authentication information, and authenticating the request information of each terminal device includes:
and generating a second authentication code according to the authentication information, comparing the first authentication code with the second authentication code, and judging whether each terminal device passes the authentication according to the comparison result.
5. The file sharing method according to any one of claims 1 to 4, wherein before sending the file stored in the home cloud server to any terminal device in the group according to the data request of the terminal device, the method further comprises:
and receiving and storing the file uploaded by each terminal device in the group.
6. The file sharing method according to any one of claims 1 to 4, wherein after the home cloud server establishes Wi-Fi direct with each terminal device, the method further comprises:
receiving a group building request of a user;
and establishing a specific group with the corresponding terminal equipment establishing the Wi-Fi direct connection with the family cloud server according to the group establishment request of the user.
7. The method of claim 6, wherein after the specific group is established, the method further comprises:
and allocating node addresses to the terminal equipment in the specific group so that the node addresses of the terminal equipment in the specific group are in the same sub-network segment.
8. A computer-readable storage medium, having stored thereon a file sharing program which, when executed by a processor, implements the file sharing method according to any one of claims 1 to 7.
9. A home cloud server, comprising a memory, a processor and a file sharing program stored on the memory and operable on the processor, wherein the processor implements the file sharing method according to any one of claims 1 to 7 when executing the file sharing program.
10. A file sharing device is applied to a home cloud server, and the device comprises:
the establishing module is used for establishing Wi-Fi direct connection with each terminal device through the home cloud server so that a plurality of terminal devices can establish a group;
the sharing module is used for sending the corresponding file stored by the family cloud server to the terminal equipment according to the data request of any terminal equipment in the group, wherein the node address of each terminal equipment in the group connected to the family cloud server is different from the routing address of each terminal equipment connected to the wireless router, so that when the sharing module sends the corresponding file stored by the family cloud server to the terminal equipment according to the data request of any terminal equipment in the group, each terminal equipment can surf the internet; the node addresses of each terminal device in the group, which are connected to the home cloud server, are in the same network segment;
when the home cloud server sends a file to the terminal equipment, the home cloud server acquires a node address of the terminal equipment according to a data request sent by the terminal equipment, determines an IP (Internet protocol) head according to the node address, generates a VPN (virtual private network) message with quintuple information according to the IP head and the data to be sent, wherein the quintuple information comprises the IP head, the data to be sent, a VPN Frame message head, a VPN public head and a physical IP head, and sends the VPN message to the terminal equipment through Wi-Fi (wireless fidelity) direct connection; after receiving a VPN message sent by a home cloud server, a terminal device acquires an IP head from the message, determines whether the VPN message is sent to the terminal device according to the IP head, replaces the group IP with the IP of the message head to send the IP to a VPN layer if the VPN message is sent to the terminal device, enables an inner core to check the IP and then acquires data to be sent in the VPN message, and discards the VPN message if the VPN message is not sent, so that file sharing is achieved.
CN202111323863.9A 2021-10-08 2021-11-10 File sharing method and device, home cloud server and storage medium Active CN113766434B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111173048 2021-10-08
CN2021111730489 2021-10-08

Publications (2)

Publication Number Publication Date
CN113766434A CN113766434A (en) 2021-12-07
CN113766434B true CN113766434B (en) 2022-03-04

Family

ID=78784877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111323863.9A Active CN113766434B (en) 2021-10-08 2021-11-10 File sharing method and device, home cloud server and storage medium

Country Status (1)

Country Link
CN (1) CN113766434B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529579B (en) * 2022-04-12 2023-06-20 荣耀终端有限公司 Equipment discovery method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506354A (en) * 2016-10-31 2017-03-15 杭州华三通信技术有限公司 A kind of message transmitting method and device
CN108574589A (en) * 2017-03-10 2018-09-25 华为技术有限公司 A kind of maintaining method, the apparatus and system in internet protocol security tunnel

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013145045A1 (en) * 2012-03-30 2013-10-03 Necカシオモバイルコミュニケーションズ株式会社 Wireless device, address determination method, communication system, and wireless terminal
CN103702291B (en) * 2012-09-27 2017-06-09 中兴通讯股份有限公司 A kind of method and WiFi direct-connected devices that group is set up based on Wi Fi
CN103002015A (en) * 2012-11-13 2013-03-27 广东欧珀移动通信有限公司 Method and system for close-range music sharing
CN103716393A (en) * 2013-12-27 2014-04-09 深圳天珑无线科技有限公司 Resource sharing method and device and terminal used for LAN communication
EP2996430B1 (en) * 2014-03-17 2018-01-31 Huawei Device (Dongguan) Co., Ltd. Method and terminal for content synchronization among terminals
CN107666669A (en) * 2016-07-29 2018-02-06 中兴通讯股份有限公司 A kind of data sharing method and device
CN112118538A (en) * 2019-06-20 2020-12-22 青岛海信移动通信技术股份有限公司 Method and device for device information interaction between terminals

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506354A (en) * 2016-10-31 2017-03-15 杭州华三通信技术有限公司 A kind of message transmitting method and device
CN108574589A (en) * 2017-03-10 2018-09-25 华为技术有限公司 A kind of maintaining method, the apparatus and system in internet protocol security tunnel

Also Published As

Publication number Publication date
CN113766434A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
US9444639B2 (en) Multi-tier wireless home mesh network with a secure network discovery protocol
KR101826327B1 (en) Method for generating wi-fi p2p group
KR100628566B1 (en) Method for security information configuration wlan
JP5389954B2 (en) Method and apparatus for automated local network formation using alternative connected interfaces
KR101780021B1 (en) Method and apparatus for sharing internet connection based on automatic configuration of network interface
US9918353B2 (en) 802.1X access session keepalive method, device, and system
US11943703B2 (en) Network address policy information received in a pre-associated state
US8582476B2 (en) Communication relay device and communication relay method
WO2007045147A1 (en) An accessing network method, system and terminal of the wireless local area network terminal
US20090274065A1 (en) Method and apparatus for setting wireless local area network by using button
CN104247505A (en) System and method for andsf enhancement with anqp server capability
EP3305010B1 (en) Method of creating and deleting vwlan dynamically in a fixed access network sharing environment
KR20080015731A (en) Communication system, wireless communication apparatus and control method thereof
WO2007003125A1 (en) A method for finding network service provider and the apparatus
CN104066083B (en) Method and device for accessing wireless local area network
KR20220076491A (en) Provisioning a wireless network using a pre-shared key
CN113766434B (en) File sharing method and device, home cloud server and storage medium
KR101359600B1 (en) Method, device and system for obtaining local domain name
JP2008206102A (en) Mobile communication system using mesh-type wireless lan
JP4206954B2 (en) A communication system, a mobile radio terminal, an information management server, and a radio access point device.
US8572246B2 (en) Method and apparatus for home network access
CN113055353B (en) Data transmission method, device, equipment and computer readable medium
CN113708951A (en) Method and system for realizing automatic network distribution of intelligent terminal equipment
CN113727410B (en) Method and device for directly connecting mobile terminal with home cloud server
KR101242683B1 (en) Communication Method Between Sensor Node And Core Network For Sensor Network

Legal Events

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