Network sharing method and device between devices, electronic device and storage medium
By establishing a virtual LAN between devices and sharing network information, the problem of high power consumption during network sharing between devices is solved, and the transmission rate and battery life are improved.
Patent Information
- Application Number
- CN202311403128.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, in order to ensure the stability of the connection, the mobile phone cannot enter dormant when sharing networks between devices, resulting in a significant increase in power consumption on the mobile phone side and reducing the battery life of the mobile phone.
A virtual LAN is established through the first device, and the networking information of the virtual LAN is sent to the second device through the first network, so that the second device can join the virtual LAN and send the network information of the second network to the first device. Based on these network information, the first device can share the second network, reducing the power consumption of the device when sharing the network.
It realizes reducing power consumption when sharing networks between devices, improves the transmission rate of shared networks, and increases the battery life of the device.
Smart Images

Figure CN119906594A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network sharing method, device, electronic device and storage medium between devices. Background Art
[0002] Network sharing between multiple devices relies on the network sharing module to share the Internet connection of a device (smart device such as a mobile phone) with other client devices. However, in the existing sharing scheme, in order to ensure the stability of the connection, the mobile phone cannot enter sleep mode, which greatly increases the power consumption of the mobile phone and reduces the battery life of the mobile phone. Summary of the invention
[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0004] To this end, the first purpose of the present application is to propose a network sharing method between devices to reduce the power consumption of devices when sharing a network, improve the transmission rate of the shared network, and increase the battery life of the devices.
[0005] The second objective of the present application is to provide a network sharing device between devices.
[0006] The third objective of the present application is to provide an electronic device.
[0007] A fourth objective of the present application is to provide a computer-readable storage medium.
[0008] A fifth object of the present application is to provide a computer program product.
[0009] To achieve the above-mentioned purpose, the first aspect of the present application proposes a network sharing method between devices, including: sending networking information of a virtual local area network created by a first device to a second device through a first network; receiving a network access request sent by the second device based on the networking information through the first network, wherein the network access request is used to request to join the virtual local area network; receiving network information of a second network sent by the second device through the first network after successful network access, wherein the second network is a data network accessed by the second device; and performing shared registration of the second network based on the network information.
[0010] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes another network sharing method between devices, including: receiving networking information of a virtual local area network created by the first device and sent by a first device through a first network; sending a network access request to the first device through the first network, wherein the network access request is determined based on the networking information and is used to request to join the virtual local area network; after successful network access, sending network information of a second network to the first device through the first network, wherein the second network is a data network accessed by the second device.
[0011] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes a network sharing device between devices, including: a sending module, used to send networking information of a virtual local area network created by a first device to a second device through a first network; a first receiving module, used to receive a network access request sent by the second device based on the networking information through the first network, wherein the network access request is used to request to join the virtual local area network; a second receiving module, used to receive network information of a second network sent by the second device through the first network after successful network access, wherein the second network is a data network connected to the second device; and a sharing module, used to perform shared registration of the second network based on the network information.
[0012] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes another network sharing device between devices, including: a receiving module, used to receive the networking information of the virtual local area network created by the first device and sent by the first device through the first network; a first sending module, used to send a network access request to the first device through the first network, the network access request is determined based on the networking information and is used to request to join the virtual local area network; a second sending module, used to send the network information of the second network to the first device through the first network after the network access is successful, wherein the second network is the data network connected to the second device.
[0013] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes an electronic device, comprising: a processor; and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor can execute the network sharing method between devices described in the first aspect embodiment above.
[0014] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium on which a computer program is stored, and the computer instructions are used to enable the computer to execute the network sharing method between devices described in the first aspect embodiment above.
[0015] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the network sharing method between devices described in the first aspect of the present application.
[0016] The present application provides a method, apparatus, electronic device and storage medium for sharing a network between devices. The first device establishes a virtual local area network and sends the networking information of the virtual local area network to the second device through the first network, so that the second device can join the virtual local area network and send the network information of the second network to the first device. The first device can share the second network based on the network information, which reduces the power consumption of the device when sharing the network, improves the transmission rate of the shared network, and increases the battery life of the device.
[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0019] Figure 1 A schematic diagram of a flow chart of a network sharing method between devices provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of another network sharing method between devices provided in an embodiment of the present application;
[0021] Figure 3 A flowchart of another network sharing method between devices provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of a process for network sharing between devices provided in an embodiment of the present application;
[0023] Figure 5 An interactive schematic diagram of a network sharing method between devices provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of interaction for network sharing between devices provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of the structure of a network sharing device between devices provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of another network sharing device between devices provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0028] The following describes a method and apparatus for network sharing between devices in an embodiment of the present application with reference to the accompanying drawings.
[0029] Figure 1 is a flow chart of a network sharing method between devices according to an exemplary embodiment. Figure 1 As shown, the network sharing method between devices in the embodiment of the present application includes but is not limited to the following steps:
[0030] S101: Send networking information of a virtual local area network created by a first device to a second device through a first network.
[0031] It should be noted that the execution subject of the network sharing method between devices in the embodiment of the present application is an electronic device. Optionally, the electronic device may include a user terminal, a computer and other intelligent devices. Among them, the user terminal includes but is not limited to a mobile phone, a tablet computer, an intelligent voice interaction device, etc.
[0032] In the embodiment of the present application, the Internet connection of the second device can be shared with the first device. That is, the second device can be used as a network provider and the first device can be used as a network user. For example, the second device can be a smart phone and the first device can be a tablet computer.
[0033] It can be understood that a virtual LAN can divide a network into multiple logically independent sub-networks, thereby isolating different devices to improve the security of the network.
[0034] In some implementations, the first device may create a virtual local area network based on a peer-to-peer (P2P) network card, and send the networking information of the virtual local area network to the second device through the first network. Optionally, the network identifier and network key of the virtual local area network may be sent to the second device as the networking information. The network identifier is used to distinguish and identify the virtual local area network, and the network key is used to join the virtual local area network.
[0035] In some implementations, the first network refers to the network communication established between the first device and the second device. Optionally, the Bluetooth communication established between the first device and the second device can be used as the first network, and then the networking information of the virtual local area network created by the first device is sent to the second device.
[0036] S102: Receive, through the first network, a network access request sent by a second device based on networking information, wherein the network access request is used to request to join a virtual local area network.
[0037] In some implementations, the first device may add the second device to the virtual local area network based on a network access request of the second device, wherein the network access request is generated based on the networking information, and the network access request is used to request to join the virtual local area network.
[0038] In some implementations, the first device and the second device communicate based on the first network, and the first device can receive a network access request sent by the second device through the first network. Optionally, the virtual local area network of the first device can be determined based on the network identifier of the virtual local area network, and then the network access request of the virtual local area network can be generated based on the network key.
[0039] S103, receiving network information of a second network sent by the second device through the first network after the second device successfully joins the network, wherein the second network is a data network accessed by the second device.
[0040] In some implementations, after receiving the network access request of the second device, the first device adds the second device to the virtual local area network to reduce the power consumption loss of the device. The second network refers to the data network accessed by the second device. For example, the second network can be the data network of the second device, a cellular network, etc.
[0041] In some implementations, the identification information and Internet Protocol (IP) address of the second network can be sent to the first device as the network information of the second network. Alternatively, the identification information of the Domain Name System (DNS) server corresponding to the second network can be used as the identification information of the second network.
[0042] S104: Perform shared registration on the second network based on the network information.
[0043] In some implementations, after receiving the network information of the second network, the first device can perform shared registration of the second network based on the network information of the second network, so that the first device can use the second network. Optionally, the shared registration of the second network can be achieved by configuring the DNS server and gateway of the first device.
[0044] Optionally, the DNS server identification information of the second network may be configured as the DNS server identification information of the first device, and the IP address of the second network may be configured as the gateway of the first device to complete the network sharing registration.
[0045] In the network sharing method between devices provided in the embodiment of the present application, the first device establishes a virtual local area network and sends the networking information of the virtual local area network to the second device through the first network, so that the second device can join the virtual local area network and send the network information of the second network to the first device. The first device can share the second network based on the network information, which reduces the power consumption of the device when sharing the network, improves the transmission rate of the shared network, and increases the battery life of the device.
[0046] Figure 2 is a flow chart of a network sharing method between devices according to an exemplary embodiment. Figure 2 As shown, the network sharing method between devices in the embodiment of the present application includes but is not limited to the following steps:
[0047] S201, determining a network identifier of a virtual local area network and key information of the virtual local area network as networking information of the virtual local area network.
[0048] In some implementations, a virtual local area network creation process may be performed on a peer-to-peer P2P network card in the first device to obtain a virtual local area network, and the role of the first device in the virtual local area network may be registered as the owner of the virtual local area network, so as to manage other devices in the virtual local area network.
[0049] Optionally, the VLAN networking information can be configured by starting a daemon process, and the daemon process switches the mode of the point-to-point P2P network card in the first device to the management mode to simulate a wireless access point (AP) to obtain a VLAN.
[0050] It is understandable that the role of the simulated wireless access point AP is to create a wireless network, such as a virtual local area network, allowing wireless devices (such as mobile phones, tablets, etc.) to connect to the network. In other words, the first device starts the daemon process and configures the first device as the owner of the virtual local area network to manage the P2P network card, and then can create a virtual local area network, such as configuring the virtual local area network's identification, IP address, key and other operations.
[0051] Furthermore, the network identifier of the virtual local area network and the key information of the virtual local area network may be used as the networking information of the virtual local area network so that other devices can recognize and join the virtual local area network.
[0052] S202: Send networking information to the second device through the first network.
[0053] In some implementations, in order to achieve a communication connection between the first device and the second device, before sending the networking information to the second device, it is necessary to establish network communication between the first device and the second device, that is, to establish a first network.
[0054] Optionally, the first device may search for broadcast information sent by a candidate device near the first device. Based on the broadcast information, a connection request for establishing a first network connection is sent to the candidate device. The first network is successfully established by receiving connection confirmation information sent by the second device. The second device is a target device determined among the candidate devices to establish the first network with the first device.
[0055] Furthermore, the first device sends networking information to the second device via the first network, wherein the networking information includes a network identifier of the virtual local area network and key information of the virtual local area network.
[0056] S203: Receive, through the first network, a network access request sent by the second device based on the networking information, wherein the network access request is used to request to join a virtual local area network.
[0057] In the embodiment of the present application, the implementation method of step S203 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0058] S204, receiving network information of a second network sent by the second device through the first network after the second device successfully joins the network, wherein the second network is a data network accessed by the second device.
[0059] In some implementations, the second network is a data network accessed by the second device, that is, a network shared with the first device. The network information includes second identification information of a Domain Name System (DNS) server corresponding to the second device and an Internet Protocol (IP) address of a P2P network card of the second device.
[0060] Optionally, the first device may receive network information sent by the second device through the first network.
[0061] S205: Perform shared registration on the second network based on the network information.
[0062] In some implementations, after receiving the network information, the network information of the second network device can be registered in the connection service of the first device by configuring the first identification information of the DNS server of the first device as the second identification information and configuring the gateway of the first device based on the IP address to share the second network.
[0063] In some implementations, after the first device implements network sharing, data packets can be transmitted between the first device and the application server through the second network.
[0064] In the network sharing method between devices provided in the embodiment of the present application, the first device establishes a virtual local area network based on a point-to-point P2P network card, and sends the networking information of the virtual local area network to the second device through the first network, so that the second device can join the virtual local area network and send the network information of the second network to the first device. The first device can share the second network based on the network information, which reduces the power consumption of the device when sharing the network, improves the transmission rate of the shared network, and increases the battery life of the device.
[0065] Figure 3 is a flow chart of a network sharing method between devices according to an exemplary embodiment. Figure 3 As shown, the network sharing method between devices in the embodiment of the present application includes but is not limited to the following steps:
[0066] S301, receiving, via a first network, networking information of a virtual local area network created by a first device and sent by a first device.
[0067] In some implementations, the second device needs to establish network communication with the first device before communicating with the first device. Optionally, the second device can send the network identifier of the first network by broadcasting, and then receive the connection request sent by the first device to establish the first network connection, establish network connection communication with the first device, and send connection confirmation information to the first device, indicating that the first network connection is successful.
[0068] Furthermore, the second device may receive networking information of the virtual local area network created by the first device based on the established first network, wherein the networking information includes a network identifier of the virtual local area network and key information of the virtual local area network.
[0069] S302: Send a network access request to a first device through a first network, where the network access request is determined based on networking information and is used to request to join a virtual local area network.
[0070] In some implementations, after receiving the networking information, the second device may configure the role of the second device in the virtual local area network as a group member of the virtual local area network, and generate a network access request based on the networking information to join the virtual local area network.
[0071] S303: After the network access is successful, network information of the second network is sent to the first device through the first network, where the second network is a data network accessed by the second device.
[0072] In some implementations, after the second device joins the virtual local area network, the network sharing function of the second device is started, and the second network is set as a modem, wherein the network sharing function is used to constrain the second device to only forward data packets related to the virtual local area network. That is, after the second device starts network sharing, it only acts as a device for forwarding data packets.
[0073] Further, the second identification information of the DNS server of the second network and the IP address of the P2P network card of the second device are obtained as the network information of the second network, and the network information of the second network is sent to the first device through the first network. The second network is a data network connected to the second device. For example, the second network can be a data network of the second device, a cellular network, etc.
[0074] In the network sharing method between devices provided in the embodiment of the present application, the second device sends a network access request to the first device by receiving the networking information of the virtual local area network, so as to join the virtual local area network. By configuring the second device as a group member of the virtual local area network, the power consumption of the second device when sharing the network can be reduced. By sending the network information of the second network to the first device, the first device can share the second network based on the network information, which reduces the power consumption of the device when sharing the network, improves the transmission rate of the shared network, and increases the battery life of the device.
[0075] like Figure 4 Schematic diagram of the process of network sharing between devices shown. Figure 4 The first network between the first device and the second device is Bluetooth communication. The first device creates a virtual local area network based on the P2P network card by starting a daemon process (HostApd). By configuring the role of the first device in the virtual local area network as the owner (Group Owner, GO) of the virtual local area network, and sending the networking information of the virtual local area network to the second device via Bluetooth. After receiving the networking information, the second device configures the role of the second device in the virtual local area network as a group member (Group client, GC) of the virtual local area network, and generates a network access request to join the virtual local area network and sends it to the first device. When the second device joins the virtual local area network, the network sharing function is started to constrain the second device to forward data packets related to the virtual local area network, and the second network is set as a modem. The second device sends the second identification information of the DNS server of the second network and the IP address of the P2P network card of the second device as network information to the first device via Bluetooth. The first device registers for the shared network in the connection service so that the application can use the second network to access the Internet.
[0076] Figure 5 is an interaction diagram of a network sharing method between devices according to an exemplary embodiment. Figure 5 As shown, the network sharing method between devices in the embodiment of the present application includes but is not limited to the following steps:
[0077] S501: The second device broadcasts a network identifier of a first network.
[0078] S502: The first device sends a connection request for establishing a first network connection to the second device based on the broadcast information.
[0079] S503: The second device sends connection confirmation information to the first device.
[0080] S504: The first device creates a virtual local area network, and registers the role of the first device in the virtual local area network as an owner of the virtual local area network.
[0081] S505: The first device sends networking information of the virtual local area network to the second device.
[0082] S506: The second device configures the role of the second device in the virtual local area network as a group member of the virtual local area network.
[0083] S507: The second device sends a network access request to the first device.
[0084] S508: The second device starts the network sharing function.
[0085] S509: The second device sends network information of the second network to the first device.
[0086] S510: The first device performs shared registration on the second network based on the network information.
[0087] In the network sharing method between devices provided in the embodiment of the present application, the first device establishes a virtual local area network and sends the networking information of the virtual local area network to the second device, and the second device sends a network access request to the first device based on the networking information to join the virtual local area network. By configuring the second device as a group member of the virtual local area network, the power consumption of the second device when sharing the network can be reduced. The second device starts the network sharing function and sends the network information of the second network to the first device, so that the first device can share the second network based on the network information, thereby reducing the power consumption of the device when sharing the network, improving the transmission rate of the shared network, and increasing the battery life of the device.
[0088] The following is an example of network sharing using a tablet computer and a smart phone. Figure 6The diagram shows an interactive diagram of network sharing. The first device is a tablet computer, and the second device is a smart phone. The smart phone establishes Bluetooth communication with the tablet computer by sending a Bluetooth broadcast to the tablet computer. The user can manually select the target device for Bluetooth connection on the tablet computer and connect to the target device (smart phone) via Bluetooth. After the connection is successful, a connection success message can be sent to the tablet computer. The tablet computer establishes a virtual local area network through the P2P network card, configures itself as the owner of the virtual local area network (Group Owner, GO), and sends networking information to the smart phone. After receiving the networking information, the smart phone configures the smart phone as a group member (Group client, GC) of the virtual local area network, and generates a network access request to join the virtual local area network. The smart phone starts network sharing and sends the DNS server identification information and the IP address of the P2P network card to the tablet computer via Bluetooth. Based on the DNS server identification information and the IP address of the P2P network card, the tablet computer registers for the shared network and realizes network sharing with the smart phone.
[0089] In order to implement the above embodiment, the present application also proposes a network sharing device between devices.
[0090] Figure 7 A schematic diagram of the structure of a network sharing device between devices provided in an embodiment of the present application.
[0091] like Figure 7 As shown, the network sharing device 700 between devices includes:
[0092] The sending module 701 is used to send the networking information of the virtual local area network created by the first device to the second device through the first network.
[0093] The first receiving module 702 is used to receive, through the first network, a network access request sent by the second device based on the networking information, wherein the network access request is used to request to join the virtual local area network.
[0094] The second receiving module 703 is used to receive network information of a second network sent by the second device through the first network after the second device successfully joins the network, wherein the second network is a data network accessed by the second device.
[0095] The sharing module 704 is configured to perform shared registration on the second network based on the network information.
[0096] In a possible implementation manner of an embodiment of the present application, the sending module 701 is also used to: search for broadcast information sent by candidate devices near the first device; based on the broadcast information, send a connection request to the candidate device to establish the first network connection; receive connection confirmation information sent by the second device, wherein the second device is a target device determined among the candidate devices to establish the first network with the first device.
[0097] In a possible implementation of the embodiment of the present application, the sending module 701 is further used to: execute the virtual LAN creation process for the point-to-point P2P network card in the first device; and register the role of the first device in the virtual LAN as the owner of the virtual LAN.
[0098] In a possible implementation of an embodiment of the present application, the sending module 701 is also used to: start a daemon process; switch the mode of the point-to-point P2P network card in the first device to the management mode through the daemon process to simulate a wireless access point AP to obtain the virtual local area network.
[0099] In a possible implementation of an embodiment of the present application, the sending module 701 is also used to: determine the network identifier of the virtual local area network and the key information of the virtual local area network as the networking information of the virtual local area network; and send the networking information to the second device through the first network.
[0100] In a possible implementation of an embodiment of the present application, the sharing module 704 is also used to: register the network information of the second network device in the connection service of the first device; configure the first identification information of the DNS server of the first device as the second identification information, and configure the gateway of the first device based on the IP address to share the second network.
[0101] In a possible implementation manner of the embodiment of the present application, the sharing module 704 is further configured to: transmit data packets between the second network and the application server.
[0102] In the network sharing device between devices provided in the embodiment of the present application, the first device establishes a virtual local area network and sends the networking information of the virtual local area network to the second device through the first network, so that the second device can join the virtual local area network and send the network information of the second network to the first device. The first device can share the second network based on the network information, which reduces the power consumption of the device when sharing the network, improves the transmission rate of the shared network, and increases the battery life of the device.
[0103] Figure 8 A schematic diagram of the structure of a network sharing device between devices provided in an embodiment of the present application.
[0104] like Figure 8 As shown, the network sharing device 800 between devices includes:
[0105] The receiving module 801 is used to receive the networking information of the virtual local area network created by the first device and sent by the first device through the first network.
[0106] The first sending module 802 is used to send a network access request to the first device through the first network, where the network access request is determined based on the networking information and is used to request to join the virtual local area network.
[0107] The second sending module 803 is used to send the network information of the second network to the first device through the first network after the network access is successful, wherein the second network is a data network connected to the second device.
[0108] In a possible implementation of the embodiment of the present application, the receiving module 801 is further used to: broadcast and send the network identifier of the first network; receive a connection request sent by the first device to establish the first network connection; and send connection confirmation information to the first device.
[0109] In a possible implementation manner of the embodiment of the present application, the second sending module 803 is further used to: configure the role of the second device in the virtual local area network to be a group member of the virtual local area network.
[0110] In a possible implementation of an embodiment of the present application, the second sending module 803 is also used to: start the network sharing function of the second device and set the second network as a modem, wherein the network sharing function is used to constrain the second device to only forward data packets related to the virtual local area network.
[0111] In a possible implementation manner of an embodiment of the present application, the second sending module 803 is further used to: obtain second identification information of the DNS server of the second network and the IP address of the P2P network card of the second device as network information of the second network; and send the network information of the second network to the first device through the first network.
[0112] In the network sharing device between devices provided in the embodiment of the present application, the second device sends a network access request to the first device by receiving the networking information of the virtual local area network, so as to join the virtual local area network. By configuring the second device as a group member of the virtual local area network, the power consumption of the second device when sharing the network can be reduced. By sending the network information of the second network to the first device, the first device can share the second network based on the network information, which reduces the power consumption of the device when sharing the network, improves the transmission rate of the shared network, and increases the battery life of the device.
[0113] It should be noted that the above explanation of the embodiment of the network sharing method between devices is also applicable to the network sharing apparatus between devices in this embodiment, and will not be repeated here.
[0114] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0115] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0116] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0117] The collection, storage, use, processing, transmission, provision and application of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0118] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0119] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, this application is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, risks can be minimized by limiting data collection and deleting data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.
[0120] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0121] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0122] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0123] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0124] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0125] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0126] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0127] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A network sharing method between devices, characterized in that: Executed by a first device, the method includes: Sending networking information of the virtual local area network created by the first device to the second device through the first network; receiving, through the first network, a network access request sent by the second device based on the networking information, wherein the network access request is used to request to join the virtual local area network; receiving network information of a second network sent by the second device through the first network after the second device successfully accesses the network, wherein the second network is a data network accessed by the second device; The second network is registered for sharing based on the network information.
2. The method according to claim 1, characterized in that Before sending the networking information of the virtual local area network created by the first device to the second device through the first network, the method further includes: Searching for broadcast information sent by a candidate device near the first device; Based on the broadcast information, sending a connection request to the candidate device to establish the first network connection; Receive connection confirmation information sent by the second device, wherein the second device is a target device determined among the candidate devices to establish the first network with the first device.
3. The method according to claim 1, characterized in that Before sending the networking information of the virtual local area network created by the first device to the second device through the first network, the method further includes: Executing the virtual local area network creation process on the peer-to-peer P2P network card in the first device; Registering the role of the first device in the virtual local area network as the owner of the virtual local area network.
4. The method according to claim 3, characterized in that The process of executing the virtual local area network creation process on the point-to-point P2P network card in the first device includes: Start the daemon process; The daemon process switches the mode of the point-to-point P2P network card in the first device to the management mode to simulate a wireless access point AP, thereby obtaining the virtual local area network.
5. The method according to claim 1, characterized in that: The sending the networking information of the virtual local area network created by the first device to the second device through the first network includes: Determine the network identifier of the virtual local area network and the key information of the virtual local area network as the networking information of the virtual local area network; The networking information is sent to the second device through the first network.
6. The method according to any one of claims 1 to 5, characterized in that The network information includes second identification information of a domain name system DNS server corresponding to the second device and an Internet Protocol IP address of a P2P network card of the second device, wherein the shared registration of the second network based on the network information includes: registering the network information of the second network device in the connection service of the first device; The first identification information of the DNS server of the first device is configured as the second identification information, and the gateway of the first device is configured based on the IP address to share the second network.
7. The method according to claim 6, characterized in that The method further comprises: Data packets are transmitted between the second network and the application server.
8. A network sharing method between devices, characterized in that: Executed by a second device, the method includes: Receiving, through a first network, networking information of a virtual local area network created by the first device and sent by the first device; Sending a network access request to the first device through the first network, where the network access request is determined based on the networking information and is used to request to join the virtual local area network; After the network access is successful, network information of the second network is sent to the first device through the first network, wherein the second network is a data network accessed by the second device.
9. The method according to claim 8, characterized in that Before receiving, through the first network, networking information of the virtual local area network created by the first device and sent by the first device, the method further includes: Broadcasting and sending the network identifier of the first network; receiving a connection request sent by the first device to establish the first network connection; A connection confirmation message is sent to the first device.
10. The method according to claim 8, characterized in that Before sending the network information of the second network to the first device through the first network after the network access is successful, the method further includes: The role of the second device in the virtual local area network is configured as a group member of the virtual local area network.
11. The method according to claim 8, characterized in that Before sending the network information of the second network to the first device through the first network after the network access is successful, the method further includes: A network sharing function of the second device is started, and the second network is set as a modem, wherein the network sharing function is used to constrain the second device to only forward data packets related to the virtual local area network.
12. The method according to any one of claims 8 to 11, characterized in that The sending the network information of the second network to the first device through the first network after the network access is successful includes: Acquire second identification information of the DNS server of the second network and the IP address of the P2P network card of the second device as network information of the second network; The network information of the second network is sent to the first device through the first network.
13. A network sharing device between devices, characterized in that: Applicable to a first device, the apparatus comprises: A sending module, used for sending networking information of the virtual local area network created by the first device to the second device through the first network; A first receiving module, configured to receive, through the first network, a network access request sent by the second device based on the networking information, wherein the network access request is used to request to join the virtual local area network; A second receiving module, configured to receive network information of a second network sent by the second device through the first network after the second device successfully accesses the network, wherein the second network is a data network accessed by the second device; A sharing module is used to perform shared registration on the second network based on the network information.
14. The device according to claim 13, characterized in that The sending module is further used for: Searching for broadcast information sent by a candidate device near the first device; Based on the broadcast information, sending a connection request to the candidate device to establish the first network connection; Receive connection confirmation information sent by the second device, wherein the second device is a target device determined among the candidate devices to establish the first network with the first device.
15. The device according to claim 13, characterized in that The sending module is further used for: Executing the virtual local area network creation process on the peer-to-peer P2P network card in the first device; Registering the role of the first device in the virtual local area network as the owner of the virtual local area network.
16. The device according to claim 15, characterized in that The sending module is further used for: Start the daemon process; The daemon process switches the mode of the point-to-point P2P network card in the first device to the management mode to simulate a wireless access point AP, thereby obtaining the virtual local area network.
17. The device according to claim 13, characterized in that The sending module is further used for: Determine the network identifier of the virtual local area network and the key information of the virtual local area network as the networking information of the virtual local area network; The networking information is sent to the second device through the first network.
18. The device according to any one of claims 13 to 17, characterized in that The shared module is also used for: registering the network information of the second network device in the connection service of the first device; The first identification information of the DNS server of the first device is configured as the second identification information, and the gateway of the first device is configured based on the IP address to share the second network.
19. The device according to claim 18, characterized in that The shared module is also used for: Data packets are transmitted between the second network and the application server.
20. A network sharing device between devices, characterized in that: Applicable to the second device, the apparatus comprises: A receiving module, configured to receive, through a first network, networking information of a virtual local area network created by a first device and sent by the first device; A first sending module, configured to send a network access request to the first device through the first network, wherein the network access request is determined based on the networking information and is used to request to join the virtual local area network; The second sending module is used to send the network information of the second network to the first device through the first network after the network access is successful, wherein the second network is a data network accessed by the second device.
21. The device according to claim 20, characterized in that The receiving module is further used for: Broadcasting and sending the network identifier of the first network; receiving a connection request sent by the first device to establish the first network connection; A connection confirmation message is sent to the first device.
22. The device according to claim 20, characterized in that The second sending module is further used for: The role of the second device in the virtual local area network is configured as a group member of the virtual local area network.
23. The device according to claim 20, characterized in that The second sending module is further used for: A network sharing function of the second device is started, and the second network is set as a modem, wherein the network sharing function is used to constrain the second device to only forward data packets related to the virtual local area network.
24. The device according to any one of claims 20 to 23, characterized in that The second sending module is further used for: Acquire second identification information of the DNS server of the second network and the IP address of the P2P network card of the second device as network information of the second network; The network information of the second network is sent to the first device through the first network.
25. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 12.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 12 when executed by a processor.
27. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 12.