CN112995895B - Network sharing method, device, terminal and computer readable storage medium - Google Patents

Network sharing method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112995895B
CN112995895B CN202110206003.0A CN202110206003A CN112995895B CN 112995895 B CN112995895 B CN 112995895B CN 202110206003 A CN202110206003 A CN 202110206003A CN 112995895 B CN112995895 B CN 112995895B
Authority
CN
China
Prior art keywords
terminal
shared
networking
internet
sharing
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
CN202110206003.0A
Other languages
Chinese (zh)
Other versions
CN112995895A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110206003.0A priority Critical patent/CN112995895B/en
Publication of CN112995895A publication Critical patent/CN112995895A/en
Application granted granted Critical
Publication of CN112995895B publication Critical patent/CN112995895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a network sharing method, a device, a terminal and a computer readable storage medium, wherein the method comprises the following steps: sending a shared networking request to a base station; the shared networking request includes: a first terminal identifier of a terminal needing to surf the internet and current first geographical position information of the terminal needing to surf the internet are provided for a base station to inquire networking preparation information of an available shared terminal in a preset shared terminal connection table according to the current first geographical position information; receiving networking preparation information of available shared terminals sent by a base station; determining a target shared terminal according to the networking preparation information of the available shared terminals; acquiring a sharing networking mode and a networking password of a target sharing terminal; and accessing the network according to the sharing networking mode and the networking password of the target sharing terminal. The sharing terminal is adopted to share the network, the sharing terminal has mobility, the terminals needing to surf the internet can share the network according to the selection of the terminals needing to surf the internet, the access terminal can be controlled, and the internet experience of a user is improved.

Description

Network sharing method, device, terminal and computer readable storage medium
The application is a divisional application of a Chinese patent application with the application number of 201910016811.3, the name of the invention being 'a method, a device, a terminal and a computer-readable storage medium for network sharing', which is submitted by the Chinese patent office on the 08-01 month-2019.
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a network sharing method, a network sharing device, a network sharing terminal and a computer readable storage medium.
Background
With the rapid development of communication technology, the deployment of new networks such as 4G and 5G networks becomes popular, and with the gradual frequency reduction and fading of 2G/3G networks of operators. However, because the network deployment situation of the operator is complex, for example, limited by 2G/3G frequency reduction, base station admission system, etc., new networks in many areas cannot be laid in place; in other areas, such as subway stations, airports, residential areas, etc., the operator is not allowed to build due to the access reason, so that the terminals of the users in these areas can only use part of basic communication functions, for example, only can carry out signaling connection, can receive and send short messages/calls, but often cannot surf the internet; in this case, the user cannot surf the internet to browse information, which causes a large number of complaints to the operator or user offline. Not only the internet surfing experience of the user is influenced, but also huge loss is brought to operators.
For the above problems, internet access is generally achieved through a network sharing mode at present. Specifically, the gateway password of the mobile phone connection is mainly shared. The user with the specific application can automatically connect to the network and surf the internet through password sharing of other users. If the user installs the application of the wifi master key, the password of the gateway which is successfully connected can be automatically reported, and other users can surf the internet according to the reported password.
However, in the existing network sharing, the terminal providing internet access is mainly a home gateway, and is generally installed in a residential area, and has the disadvantages of having no mobility and being uncontrollable for the access terminal, resulting in poor internet access experience for the user.
Disclosure of Invention
Embodiments of the present invention provide a network sharing method and apparatus, a terminal, and a computer-readable storage medium, which solve the technical problem in the prior art that a user experiences poor internet access due to the fact that a home gateway does not have mobility and is uncontrollable for an access terminal when sharing a network.
In a first aspect, an embodiment of the present invention provides a network sharing method, applied to a terminal needing to surf the internet, including: sending a shared networking request to a base station; the shared networking request comprises: the base station searches the networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information; receiving networking preparation information of the available shared terminals sent by the base station; determining a target shared terminal according to the networking preparation information of the available shared terminal; acquiring a sharing networking mode and a networking password of the target sharing terminal; and accessing the network according to the sharing networking mode and the networking password of the target sharing terminal.
Further, the method for determining a target shared terminal according to the networking preparation information of the available shared terminals specifically includes: acquiring a networking strategy of the terminal needing to surf the internet; and determining the available shared terminal corresponding to the networking preparation information matched with the networking strategy as a target shared terminal.
Further, the method for acquiring the sharing networking mode and the networking password of the target sharing terminal specifically includes: sending a second terminal identifier of the target sharing terminal to the base station, so that the base station can obtain a sharing networking mode and a networking password of the target sharing terminal according to the sharing networking information of the target sharing terminal; and receiving the sharing networking mode and the networking password of the target sharing terminal sent by the base station.
Further, the method as described above, after accessing the network according to the sharing networking mode and the networking password of the target sharing terminal, further includes: sending an internet surfing data request to a shared network server in a VPN encryption communication mode so that the shared network server can obtain internet surfing data and store shared internet surfing data use information of the terminal needing internet surfing into a shared internet surfing use data table; and receiving the internet surfing data sent by the shared network server.
In a second aspect, an embodiment of the present invention provides a network sharing method, applied to a base station, including: receiving a first terminal identification sent by a terminal needing to surf the internet and current first geographical position information of the terminal needing to surf the internet; inquiring networking preparation information of the available sharing terminals matched with the current first geographical position information in a preset sharing terminal connection table; sending networking preparation information of the available shared terminals to the terminals needing to surf the internet, so that the terminals needing to surf the internet determine target shared terminals according to the networking preparation information of the available shared terminals; receiving a second terminal identification of the target sharing terminal sent by the terminal needing to surf the internet; inquiring a sharing networking mode and a networking password in the sharing networking information of the target sharing terminal corresponding to the second terminal identification in the preset sharing terminal connection table; and sending the sharing networking mode and the networking password of the target sharing terminal to the terminal needing to surf the internet.
In a third aspect, an embodiment of the present invention provides a method for network sharing, where the method is applied to a shared network server, and includes: receiving shared internet access information sent by a shared terminal, wherein the shared internet access information comprises: networking preparation information, sharing networking modes and networking passwords; determining a base station in the vicinity of the shared terminal according to the current second location information of the shared terminal in the networking preparation information; sending the shared internet access information of the shared terminal to the base station, so that the base station stores the shared internet access information of the shared terminal into a preset shared terminal connection table and updates a connectable shared terminal table; and transmitting a shared networking service response to the shared terminal.
Further, as described above, after the sending the shared internet access information of the shared terminal to the base station to enable the base station to store the shared internet access information of the shared terminal in a preset shared terminal connection table and update a connectable shared terminal table, the method further includes: receiving an internet surfing data request sent by a terminal needing to surf the internet by adopting a VPN encryption communication mode; acquiring internet surfing data according to the internet surfing data request, and sending the internet surfing data to the terminal needing internet surfing; counting the shared internet access use information of the terminal needing internet access according to the internet access data request and the internet access data; and storing the shared internet access use information of the terminal needing to be connected to the internet into a shared internet access use data table.
In a fourth aspect, an embodiment of the present invention provides a network sharing apparatus, including: a sending module, configured to send a shared networking request to a base station; the shared networking request comprises: the base station searches the networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information; a receiving module, configured to receive networking preparation information of the available shared terminal sent by the base station; a determining module, configured to determine a target shared terminal according to the networking preparation information of the available shared terminals; the acquisition module is used for acquiring the sharing networking mode and the networking password of the target sharing terminal; and the networking module is used for accessing a network according to the sharing networking mode and the networking password of the target sharing terminal.
Further, in the apparatus described above, the determining module is specifically configured to: acquiring a networking strategy of the terminal needing to surf the internet; and determining an available shared terminal corresponding to the networking preparation information matched with the networking strategy as a target shared terminal.
Further, in the apparatus described above, the obtaining module is specifically configured to: sending the second terminal identification of the target sharing terminal to the base station, so that the base station can obtain the sharing networking mode and the networking password of the target sharing terminal according to the sharing networking information of the target sharing terminal; and receiving the sharing networking mode and the networking password of the target sharing terminal sent by the base station.
Further, in the apparatus as described above, the sending module is further configured to: sending an internet surfing data request to a shared network server by adopting a VPN encryption communication mode so that the shared network server acquires internet surfing data and stores shared internet surfing data use information of the terminal needing internet surfing into a shared internet surfing use data table; the receiving module is further configured to receive internet surfing data sent by the shared network server.
In a fifth aspect, an embodiment of the present invention provides a network sharing apparatus, including: the receiving module is used for receiving a first terminal identifier sent by a terminal needing to surf the internet and current first geographical position information of the terminal needing to surf the internet; the inquiry module is used for inquiring the networking preparation information of the available shared terminal matched with the current first geographical position information in a preset shared terminal connection table; the sending module is used for sending networking preparation information of the available sharing terminal to the terminal needing to surf the internet so that the terminal needing to surf the internet can determine a target sharing terminal according to the networking preparation information of the available sharing terminal; the receiving module is further configured to receive a second terminal identifier of the target shared terminal sent by the terminal needing to surf the internet; the query module is further configured to query, in the preset shared terminal connection table, a shared networking mode and a networking password in the shared internet access information of the target shared terminal corresponding to the second terminal identifier; the sending module is further configured to send the shared networking mode and the networking password of the target shared terminal to the terminal needing to surf the internet.
In a sixth aspect, an embodiment of the present invention provides a network sharing apparatus, including: a receiving module, configured to receive shared internet access information sent by a shared terminal, where the shared internet access information includes: networking preparation information, a shared networking mode and a networking password; a determining module, configured to determine, according to the current second location information of the shared terminal in the networking preparation information, a base station near the shared terminal; and the sending module is used for sending the shared internet surfing information of the shared terminal to the base station so that the base station stores the shared internet surfing information of the shared terminal into a preset shared terminal connection table and updates the connectable shared terminal table. The sending module is further configured to send a shared networking service response to the shared terminal.
Further, the apparatus as described above, further comprising: a statistical module and a storage module; the receiving module is also used for receiving an internet surfing data request sent by the terminal needing to surf the internet by adopting a VPN encryption communication mode; the sending module is further configured to obtain internet surfing data according to the internet surfing data request and send the internet surfing data to the terminal needing internet surfing; the statistical module is used for counting the shared internet access use information of the terminal needing internet access according to the internet access data request and the internet access data; the storage module is used for storing the shared internet access use information of the terminal needing internet access into a shared internet access use data table.
In a seventh aspect, an embodiment of the present invention provides a terminal device, including: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of the first aspects.
In an eighth aspect, an embodiment of the present invention provides a base station, including: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement a method as described in the second aspect.
In a ninth aspect, an embodiment of the present invention provides a server, including: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement the method of any one of the third aspects.
In a tenth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the program being executed by a processor to perform the method according to any one of the first aspect.
In an eleventh aspect, embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, where the program is executed by a processor to perform the method according to the second aspect.
In a twelfth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the program is used by a processor to execute the method described in any one of the third aspects.
The network sharing method, the device, the terminal and the computer readable storage medium provided by the embodiment of the invention send a sharing networking request to the base station; the shared networking request comprises: the base station searches the networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information; receiving networking preparation information of the available shared terminals sent by the base station; determining a target shared terminal according to the networking preparation information of the available shared terminal; acquiring a sharing networking mode and a networking password of the target sharing terminal; and accessing the network according to the sharing networking mode and the networking password of the target sharing terminal. The sharing terminal is adopted to share the network, the sharing terminal has mobility, the terminals needing to surf the internet can share the network according to the selection of the terminals needing to surf the internet, the access terminal can be controlled, and the internet experience of a user is improved.
It should be understood that what is described in the summary above is not intended to limit key or critical features of embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a diagram of an application scenario of a network sharing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a network sharing method according to an embodiment of the present invention;
fig. 3 is a flowchart of a network sharing method according to a second embodiment of the present invention;
fig. 4 is a flowchart of a network sharing method according to a third embodiment of the present invention;
fig. 5 is a flowchart of a network sharing method according to a fourth embodiment of the present invention;
fig. 6 is a flowchart of a network sharing method according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network sharing apparatus according to a sixth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a network sharing apparatus according to a seventh embodiment of the present invention;
fig. 9 is a schematic structural diagram of a network sharing apparatus according to an eighth embodiment of the present invention;
fig. 10 is a schematic structural diagram of a network sharing apparatus according to a ninth embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal device according to a tenth embodiment of the present invention;
fig. 12 is a schematic structural diagram of a base station according to an eleventh embodiment of the present invention;
fig. 13 is a schematic structural diagram of a server according to a twelfth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more complete and thorough understanding of the present invention. It should be understood that the drawings and the embodiments of the invention are for illustration purposes only and are not intended to limit the scope of the invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or terminal that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or terminal.
Fig. 1 is an application scenario diagram of a network sharing method according to an embodiment of the present invention, as shown in fig. 1, in the network sharing method according to the embodiment of the present invention, a shared terminal 1 first detects a networking state, and if the networking state is normal, shared internet access information is sent to a shared network server 2 in a VPN encryption manner, where the shared internet access information includes: networking preparation information, sharing networking modes and networking passwords. The networking preparation information may include, among other things: and sharing the identification and the authentication password of the terminal. And the shared networking server checks whether the shared terminal passes the authentication or not according to the identifier of the shared terminal and the authentication password. If the authentication is passed, the base station 4 nearby is checked according to the current second geographical position in the networking preparation information reported by the base station, the sharing internet information reported by the sharing terminal 1 is stored in a preset sharing terminal connection table, and meanwhile the base station 4 nearby is informed to update the connectable sharing terminal table through the internet equipment 3. The shared network server 2 transmits a shared networking service response to the shared terminal 1, notifying the shared terminal 1 that the service can be performed. The shared terminal 1 opens other terminals 5 which need to access the internet according to the definition of the shared connection mode. The terminal 5 needing to surf the internet checks the current network condition, judges whether the internet can be connected or not, if the connection cannot be made, a shared networking request is sent to the base station 4 to request the network of the shared terminal to be used for surfing, the base station 4 determines available shared terminals near the terminal 5 needing to surf the internet through searching a preset shared terminal connection table, current first geographic position information of the terminal 5 needing to surf the internet and current second geographic position information of each shared terminal in the preset shared terminal connection table, and networking preparation information of the available shared terminals is sent to the terminal 5 needing to surf the internet. The terminal 5 needing to surf the internet matches the networking strategy with the networking preparation information of each available shared terminal, and determines the available shared terminal corresponding to the matched networking preparation information as the target shared terminal. The terminal 5 needing to access the internet sends the second terminal identification of the target sharing terminal to the base station 4, and the base station 4 obtains the shared internet information of the target sharing terminal according to the second terminal identification of the target sharing terminal and obtains the shared networking mode and the networking password from the shared internet information. And the terminal 5 needing to surf the internet receives the target shared terminal shared networking mode and the networking password sent by the base station 4. And the terminal 5 needing to surf the internet accesses the network according to the sharing networking mode and the networking password of the target sharing terminal. Firstly, physical layer connection is established with a target sharing terminal, and then application layer VPN connection is established with the target sharing terminal. After the terminal 5 to be networked accesses the network, encrypted communication is performed with the shared network server 2 through VPN. Specifically, an internet data request is sent to the shared network server 2, where the internet data request at least includes a first terminal identifier of the terminal 5 to be connected to the internet, an identifier of the connected shared terminal, a charging mode, a current time, an internet request address, and the like. The shared network server 2 acquires the internet surfing data required by the terminal needing internet surfing according to the internet surfing data request, sends the internet surfing data to the terminal 5 needing internet surfing, counts the shared internet surfing use information of the terminal needing internet surfing according to the internet surfing data request and the internet surfing data, and stores the shared internet surfing use information of the terminal needing internet surfing into the shared internet surfing use data table. The terminal 5 needing to surf the internet obtains the internet surfing data fed back by the shared network server 2 and displays the internet surfing data on a related client or browser. This operation continues until the physical connection with the target shared terminal is broken. In the network sharing method provided in this embodiment, the sharing terminal is used to share the network, and the sharing terminal has mobility, and can enable the terminal requiring internet access to share the network according to the selection of the terminal requiring internet access, and can control the access terminal. The method has the advantages that the network surfing data is obtained from the shared network server in a VPN encryption communication mode, the safety of the request data of the terminal needing to surf the network can be protected, the use data of the terminal needing to surf the network, which surfs the network, adopting the shared network for charging the terminal needing to surf the network can be stored, the terminal needing to surf the network is authenticated before the shared network service is provided by the shared terminal, the safety of the shared terminal is improved, and the network surfing experience of a user is improved.
Example one
Fig. 2 is a flowchart of a network sharing method according to an embodiment of the present invention, and as shown in fig. 2, an execution main body of this embodiment is a network sharing device, and the network sharing device is integrated on a terminal that needs to surf the internet, and the network sharing method according to this embodiment is applied to a terminal that needs to surf the internet, where the terminal that needs to surf the internet may be a terminal such as a smart phone, a tablet computer, a notebook computer, or a computer, and the network sharing method according to this embodiment includes the following steps:
step 201, sending a sharing networking request to a base station; the shared networking request includes: and the base station inquires networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information.
Specifically, in this embodiment, the current network status of the terminal that needs to surf the internet is detected, and if the current network of the terminal that needs to surf the internet cannot surf the internet, a shared networking request is sent to the base station. After the base station receives the sharing networking request, comparing current first geographical position information in the sharing networking request with current second geographical position information of all sharing terminals in a preset sharing terminal connection table, if the difference value of the current first geographical position and the current second geographical position is within a preset range, determining that the sharing terminal is an available sharing terminal of the terminal needing to surf the internet, and acquiring networking preparation information of the available sharing terminal.
The method for detecting the current network condition of the terminal needing to surf the internet can be as follows: and the terminal needing to surf the internet detects the current network condition in a mode of sending a ping instruction to a specific internet address or acquiring data from a specific internet through the base station.
Wherein, in the shared networking request, comprising: the terminal comprises a first terminal identification of the terminal needing to surf the internet and current first geographical position information of the terminal needing to surf the internet. The first terminal identification is an identification of the terminal needing to surf the internet, and the first terminal identification can be a mobile phone number, an IMEI number or other information which only represents the terminal needing to surf the internet. The current first geographical location information may be a current GPS location of the terminal that needs to surf the internet.
The preset shared terminal connection table includes shared internet access information of each shared terminal near the base station, and the shared internet access information may include: networking provisioning information, sharing networking methods, and networking passwords. Wherein the networking preparation information includes: a second terminal identifier of the shared terminal, current second geographical location information of the shared terminal, a current internet access network, a shared networking mode, connection quality, a charging mode, a charging unit price and the like.
The current internet access network is a network connected to the internet, and may be WiFi, china mobile/telecommunications/unicom, and the like. The connection quality may be signal strength and/or connection speed. The charging mode can be charging according to flow or charging according to time, etc.
The sharing networking mode is a mode that a terminal needing to surf the internet is connected with a sharing terminal, such as bluetooth, WLAN and the like.
In step 202, networking preparation information of available shared terminals sent by the base station is received.
Specifically, in this embodiment, the terminal that needs to surf the internet communicates with the base station through a signaling channel such as a data short message or cell broadcast when the terminal that needs to surf the internet cannot surf the internet, so the networking preparation information of the available shared terminal sent by the base station can be received through the signaling channel such as the data short message or the cell broadcast.
Wherein the networking preparation information of the available shared terminals includes: the second terminal identification of the available shared terminal, the current second geographical position information of the available shared terminal, the current internet access network, the shared networking mode, the connection quality, the charging mode, the charging unit price and the like.
Step 203, determining the target sharing terminal according to the networking preparation information of the available sharing terminals.
Specifically, in this embodiment, the shared internet access manner supported by the terminal that needs to access the internet can be checked, the supported shared internet access manner is compared with the shared internet access manner in the networking preparation information, and the available shared terminal corresponding to the matching networking preparation information is obtained as the target shared terminal.
Or in this embodiment, a user or a user defines a networking policy in advance, matches the networking policy with the networking preparation information of each available shared terminal, and determines the available shared terminal corresponding to the networking preparation information matched with the networking policy as a target shared terminal.
The networking policy is not limited. For example, after matching in the sharing networking mode, an available sharing terminal with a good connection quality is considered in advance as a target sharing terminal. Or after the sharing and networking modes are matched, the available sharing terminal with low charge rate is considered in advance as the target sharing terminal or other networking strategies.
And step 204, acquiring the sharing networking mode and the networking password of the target sharing terminal.
Specifically, in this embodiment, the shared internet access information of the target shared terminal is stored in the base station, and the shared networking mode and the networking password in the shared internet access information of the target shared terminal can be obtained in a communication mode with the base station.
And step 205, accessing the network according to the sharing networking mode and the networking password of the target sharing terminal.
Specifically, in this embodiment, the shared networking mode includes a networking name, and the network can be accessed by inputting the networking name and the networking password into a page of the shared networking mode.
In the network sharing method provided by the embodiment, a sharing networking request is sent to a base station; the shared networking request includes: a first terminal identifier of a terminal needing to surf the internet and current first geographical position information of the terminal needing to surf the internet are provided for a base station to inquire networking preparation information of an available shared terminal in a preset shared terminal connection table according to the current first geographical position information; receiving networking preparation information of available shared terminals sent by a base station; determining a target shared terminal according to the networking preparation information of the available shared terminals; acquiring a sharing networking mode and a networking password of a target sharing terminal; and accessing the network according to the sharing networking mode and the networking password of the target sharing terminal. The sharing terminal is adopted to share the network, the sharing terminal has mobility, the terminals needing to surf the internet can share the network according to the selection of the terminals needing to surf the internet, the access terminal can be controlled, and the internet experience of a user is improved.
Example two
Fig. 3 is a method for network sharing according to a second embodiment of the present invention, which is further detailed in steps 203 to 205 on the basis of the method for network sharing according to the first embodiment of the present invention, and further includes a step of requesting data using a shared network. The method for network sharing provided by the present embodiment includes the following steps.
Step 301, sending a shared networking request to a base station; the shared networking request includes: and the base station inquires networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information.
Step 302, receiving the networking preparation information of the available shared terminal sent by the base station.
In this embodiment, the implementation manners of step 301 to step 302 are the same as the implementation manners of step 201 to step 202 of the network sharing method provided in the first embodiment of the present invention, and are not described in detail herein.
And 303, acquiring a networking strategy of the terminal needing to be networked.
Further, in this embodiment, a networking policy is preset in the terminal that needs to access the internet. The weight of each networking factor is defined in the networking policy. Networking factors may include: shared networking mode, connection quality, charging mode, etc. Wherein, the weight of the sharing networking mode is 1, that is, the available sharing terminal must support the terminal sharing networking mode needing to access the internet. The weights for connection quality and charging mode may be between 0 and 1.
And step 304, determining the available shared terminal corresponding to the networking preparation information matched with the networking strategy as a target shared terminal.
Further, in this embodiment, each networking factor in the networking policy is respectively matched with a corresponding networking factor in the networking preparation information in each available shared terminal, and the matching degree is calculated according to the weight of each networking factor, so that the available shared terminal corresponding to the networking preparation information with the highest matching degree is obtained as the target shared terminal.
And 305, sending the second terminal identifier of the target sharing terminal to the base station, so that the base station can obtain the sharing networking mode and the networking password of the target sharing terminal according to the sharing networking information of the target sharing terminal.
Step 306, receiving the sharing networking mode and the networking password of the target sharing terminal sent by the base station.
Further, in this embodiment, steps 305 to 306 are further detailed for step 204 in the first embodiment of the present invention.
Specifically, in this embodiment, the second terminal identifier of the target shared terminal is sent to the base station. And the base station searches the shared internet access information of the target shared terminal in a preset shared terminal connection table according to the second terminal identifier. The shared internet access information comprises a shared networking mode and a networking password. And the base station sends the sharing networking mode and the networking password of the target sharing terminal to the terminal needing to surf the internet.
And the terminal identification of the target sharing terminal is the second terminal identification. The second terminal identifier of the target sharing terminal may be a mobile phone number, an IMEI number, or other information uniquely representing the target sharing terminal.
The shared networking information may further include an authentication password of the shared terminal, so as to authenticate whether the shared terminal is secure.
Table 1 is a preset shared terminal connection table, and table 1 only shows shared internet access information of one shared terminal.
And 307, accessing the network according to the sharing networking mode and the networking password of the target sharing terminal.
Further, in this embodiment, accessing the network according to the sharing networking mode and the networking password of the target sharing terminal specifically includes:
firstly, a physical layer connection is established with the target sharing terminal according to the sharing networking mode and the networking password of the target sharing terminal.
And secondly, establishing application layer VPN connection with the target sharing terminal according to the sharing networking mode and the networking password of the target sharing terminal.
Table 1: preset connection table for shared terminals
Figure BDA0002950649970000121
In this embodiment, if an application layer VPN connection is established with the target sharing terminal, a VPN encryption communication mode is adopted when the target sharing terminal communicates with the sharing network server, so that the security of the internet access request and the returned data can be effectively protected.
And 308, sending an internet surfing data request to the shared network server in a VPN encryption communication mode so that the shared network server acquires internet surfing data and stores shared internet surfing data of the terminal needing internet surfing into a shared internet surfing data table.
Further, in this embodiment, the internet surfing data request is sent to the shared network server through the shared network in a VPN encrypted communication manner. The online data request comprises the following steps: the method comprises the steps of a first terminal identification of a terminal needing to surf the internet, a second terminal identification of a target sharing terminal, a charging mode, request time, a request address and other information. And the shared network server acquires the internet data after receiving the internet data request, and counts the shared internet data use information according to the internet data request and the internet data. And storing the shared internet surfing data use information into a shared internet surfing use data table.
The sharing of the internet surfing data usage information may include: the method comprises the steps of identifying a first terminal of a terminal needing to surf the internet, identifying a second terminal of a target sharing terminal, charging mode, request time, request address, internet surfing data volume and other information. Table 2 is a shared internet usage data table. The internet access information of only one internet access request is shown in table 2.
Table 2: shared internet access data table
Figure BDA0002950649970000131
Step 309, receiving the internet access data sent by the shared network server.
And further, receiving the internet surfing data sent by the shared network server, and displaying the internet surfing data on a client or a browser of the terminal needing internet surfing.
In the network sharing method provided by the embodiment, a sharing networking request is sent to a base station; the shared networking request includes: the method comprises the steps that a first terminal identification of a terminal needing to surf the internet and current first geographical position information of the terminal needing to surf the internet are provided, a base station inquires networking preparation information of an available shared terminal in a preset shared terminal connection table according to the current first geographical position information, the networking preparation information of the available shared terminal sent by the base station is received, a networking strategy of the terminal needing to surf the internet is obtained, the available shared terminal corresponding to the networking preparation information matched with the networking strategy is determined to be a target shared terminal, a second terminal identification of the target shared terminal is sent to the base station, the base station obtains a sharing networking mode and a networking password of the target shared terminal according to the sharing networking information of the target shared terminal, the sharing networking mode and the networking password of the target shared terminal are received, a network is accessed according to the sharing networking mode and the networking password of the target shared terminal, an internet surfing data request is sent to a shared network server in a VPN encryption communication mode, the shared network server obtains internet data obtained by the shared network server, the shared network data using data of the terminal needing to surf the internet are stored in a sharing network using data table, and the internet data sent by the shared network server are received. Because the terminal needing to surf the internet communicates with the shared network server in a VPN encryption mode, the safety of the internet request and the returned data of the terminal needing to surf the internet can be protected, the shared internet use information is stored in the shared network server, the terminal needing to surf the internet can be effectively charged, and the internet experience of a user is further improved.
EXAMPLE III
Fig. 4 is a flowchart of a network sharing method according to a third embodiment of the present invention. As shown in fig. 4, an execution subject of the embodiment is a network sharing device, the network sharing device is integrated on a base station, and the network sharing method provided by the embodiment is applied to the base station, and then the network sharing method provided by the embodiment includes the following steps.
Step 401, receiving a first terminal identifier sent by a terminal needing to surf the internet and current first geographical location information of the terminal needing to surf the internet.
The first terminal identification is an identification of the terminal needing to surf the internet, and the first terminal identification can be a mobile phone number, an IMEI number or other information which only represents the terminal needing to surf the internet. The current first geographical location information may be a current GPS location of the terminal that needs to surf the internet.
Step 402, inquiring the networking preparation information of the available shared terminal matched with the current first geographical location information in a preset shared terminal connection table.
The preset shared terminal stores the shared internet access information of all the shared terminals near the base station. Wherein, sharing the internet surfing information may include: networking provisioning information, sharing networking methods, and networking passwords. The networking preparation information includes: a second terminal identifier of the shared terminal, current second geographical location information of the shared terminal, a current internet access network, a shared networking mode, connection quality, a charging mode, a charging unit price and the like.
Specifically, in this embodiment, the base station compares current first geographic location information in the shared networking request with current second geographic location information of all shared terminals in a preset shared terminal connection table, and if a difference between the current first geographic location and the current second geographic location is within a preset range, determines that the shared terminal is an available shared terminal of the terminal needing to surf the internet, and acquires networking preparation information of the available shared terminal.
And step 403, sending networking preparation information of the available sharing terminal to the terminal needing to surf the internet, so that the terminal needing to surf the internet determines the target sharing terminal according to the networking preparation information of the available sharing terminal.
Specifically, in this embodiment, the networking preparation information of the available shared terminal is sent to the terminal that needs to surf the internet. The terminal needing to surf the internet determines the target shared terminal according to the networking preparation information of the available shared terminal, acquires the shared networking mode and the networking password of the target shared terminal, and accesses the network according to the shared networking mode and the networking password of the target shared terminal.
And step 404, receiving a second terminal identifier of the target shared terminal sent by the terminal needing to surf the internet.
And the terminal identifier of the target sharing terminal is a second terminal identifier. The second terminal identifier of the target sharing terminal may be a mobile phone number, an IMEI number, or other information uniquely representing the target sharing terminal.
And 405, inquiring a shared networking mode and a networking password in the shared networking information of the target shared terminal corresponding to the second terminal identifier in a preset shared terminal connection table.
The preset connection table of the sharing terminal is shown in table 1. And the base station searches the shared internet access information of the target shared terminal in a preset shared terminal connection table according to the second terminal identifier. The shared internet information comprises a shared networking mode and a networking password.
And step 406, sending the sharing networking mode and the networking password of the target sharing terminal to the terminal needing to surf the internet.
Specifically, in this embodiment, the shared networking mode and the networking password of the target shared terminal are sent to the terminal to be networked, the terminal to be networked may first establish a physical layer connection with the target shared terminal according to the shared networking mode and the networking password of the target shared terminal, and then may establish an application layer VPN connection with the target shared terminal according to the shared networking mode and the networking password of the target shared terminal.
In the network sharing method provided by this embodiment, a first terminal identifier sent by a terminal needing to surf the internet and current first geographical location information of the terminal needing to surf the internet are received; inquiring networking preparation information of the available sharing terminal matched with the current first geographical position information in a preset sharing terminal connection table; sending networking preparation information of the available sharing terminal to the terminal needing to surf the internet, enabling the terminal needing to surf the internet to determine a target sharing terminal according to the networking preparation information of the available sharing terminal, receiving a second terminal identification of the target sharing terminal sent by the terminal needing to surf the internet, inquiring a sharing networking mode and a networking password in the sharing networking information of the target sharing terminal corresponding to the second terminal identification in a preset sharing terminal connection table, and sending the sharing networking mode and the networking password of the target sharing terminal to the terminal needing to surf the internet. Because the shared terminal is adopted to share the network, the shared terminal has mobility, and can enable the terminal needing to surf the internet to share the network according to the selection of the terminal needing to surf the internet, and can control the access terminal, thereby improving the experience of surfing the internet of a user.
Example four
Fig. 5 is a flowchart of a network sharing method according to a fourth embodiment of the present invention. As shown in fig. 5, the main execution body of the method for network sharing provided in this embodiment is a network sharing device, and the network sharing device may be integrated in a shared network server. The network sharing method provided by the embodiment is applied to a shared network server. The method for network sharing provided by the present embodiment includes the following steps.
Step 501, receiving shared internet access information sent by a shared terminal, where the shared internet access information includes: networking provisioning information, sharing networking methods, and networking passwords.
Specifically, in this embodiment, the shared terminal detects the internet access connection state through the application. And if the internet connection state is normal, sending shared internet information to the shared network server in a VPN encrypted communication mode.
The method for detecting the internet access connection state by the sharing terminal through the application can be as follows: and automatically sending a Ping instruction to a specific Internet address at regular time or detecting the Internet connection state in a mode of acquiring specific data.
The sharing internet surfing information of the sharing terminal comprises the following steps: networking preparation information of the shared terminal, a sharing networking mode of the shared terminal, and a networking password. The networking preparation information of the shared terminal may include: a second terminal identifier of the shared terminal, current second geographical location information of the shared terminal, a current internet access network, a shared networking mode, connection quality, a charging mode, a charging unit price and the like.
Step 502, determining the base station near the sharing terminal according to the current second position information of the sharing terminal in the networking preparation information.
Wherein the current second location information is current location information of the shared terminal. The current second location information may be a GPS location of the shared terminal.
Specifically, in this embodiment, the current second location information of the shared terminal is compared with the location information of the base station, and if a difference between the current second location and the location of the base station is smaller than a preset threshold, the base station is determined to be a base station near the shared terminal.
Step 503, sending the shared internet access information of the shared terminal to the base station, so that the base station stores the shared internet access information of the shared terminal in a preset shared terminal connection table, and updates the connectable shared terminal table.
Specifically, in this embodiment, the base station receives the shared internet access information of the shared terminal, and stores the shared internet access information of the shared terminal in a preset shared terminal connection table. And storing the identification of the base station and partial information in the shared internet access information of the shared terminal into a connectable shared terminal table. Table 3 is a table of connectable shared terminals. Only a part of the shared internet access information of one shared terminal is shown in table 3.
Table 3: connectable shared terminal table
Figure BDA0002950649970000171
Step 504, a shared networking service response is sent to the shared terminal.
Specifically, in this embodiment, a shared networking service response is sent to the shared terminal to notify the shared terminal that the shared network service can be performed.
In the network sharing method provided in this embodiment, the shared internet access information sent by the sharing terminal is received, where the shared internet access information includes: determining a base station near the shared terminal according to the current second position information of the shared terminal in the networking preparation information; sending the shared internet access information of the shared terminal to the base station so that the base station stores the shared internet access information of the shared terminal into a preset shared terminal connection table and updates the connectable shared terminal table; a shared networking service response is sent to the shared terminal. The sharing terminal is adopted to share the network, the sharing terminal has mobility, the terminals needing to surf the internet can share the network according to the selection of the terminals needing to surf the internet, the access terminal can be controlled, and the internet experience of a user is improved.
EXAMPLE five
Fig. 6 is a flowchart of a network sharing method according to a fifth embodiment of the present invention. As shown in fig. 6, the method for network sharing provided in this embodiment is based on the fourth embodiment of the method for network sharing of the present invention, and further includes a step of authenticating the shared terminal, receiving an internet data request sent by the terminal to be networked in a VPN encrypted communication manner, obtaining internet data according to the internet data request, sending the internet data to the terminal to be networked, and a step of counting shared internet usage information of the terminal to be networked according to the internet data request and the internet data, and storing the shared internet usage information of the terminal to be networked in a shared internet usage data table. The method for network sharing provided by the present embodiment includes the following steps.
Step 601, receiving shared internet access information sent by a shared terminal, where the shared internet access information includes: networking provisioning information, sharing networking methods, and networking passwords.
Further, in this embodiment, the shared internet access information further includes an authentication password.
Step 602, authenticating the shared terminal according to the authentication password, and determining whether the authentication is passed, if so, executing step 603, otherwise, ending.
Further, in this embodiment, whether the shared terminal is normal is checked according to the authentication password, and if the shared terminal is normal, the authentication is passed, and if the shared terminal is not normal, the authentication is not passed.
Step 603, determining the base station near the shared terminal according to the current second position information of the shared terminal in the networking preparation information.
Step 604, sending the shared internet access information of the shared terminal to the base station, so that the base station stores the shared internet access information of the shared terminal in a preset shared terminal connection table, and updates the connectable shared terminal table.
Step 605, the shared networking service response is sent to the shared terminal.
In this embodiment, the implementation manners of step 603 to step 605 are the same as the implementation manners of step 502 to step 504 in the fourth embodiment of the present invention, and are not described in detail herein.
And 606, receiving the internet surfing data request sent by the terminal needing to surf the internet by adopting a VPN encryption communication mode.
Further, in this embodiment, an internet access data request sent by a terminal that needs to access the internet is received through the shared network in a VPN encrypted communication manner, where the internet access data request includes: the method comprises the steps of a first terminal identification of a terminal needing to surf the internet, a second terminal identification of a target sharing terminal, a charging mode, request time, request address and other information.
Step 607, obtaining the internet data according to the internet data request, and sending the internet data to the terminal needing to access the internet.
Step 608, the shared internet access use information of the terminal needing internet access is counted according to the internet access data request and the internet access data.
Step 609, storing the shared internet access use information of the terminal needing to be connected to the internet into the shared internet access use data table.
The description is made in connection with step 608-step 609. Further, in this embodiment, the first terminal identifier of the terminal to be networked, the second terminal identifier of the target shared terminal, the charging mode, the request time, and the request address in the shared internet access usage information of the terminal to be networked are counted according to the internet access data request. And counting the internet surfing data volume according to the internet surfing data. Table 2 is a shared internet usage data table.
In the network sharing method provided in this embodiment, the shared internet access information sent by the sharing terminal is received, where the shared internet access information includes: the method comprises the steps of networking preparation information, a sharing networking mode and a networking password, authenticating a shared terminal according to the authentication password, determining a base station near the shared terminal according to the current second position information of the shared terminal in the networking preparation information if the authentication is passed, sending the sharing networking information of the shared terminal to the base station, enabling the base station to store the sharing networking information of the shared terminal into a preset shared terminal connection table, updating a connectable shared terminal table, sending a sharing networking service response to the shared terminal, receiving a networking data request sent by a terminal needing to be networked by adopting a VPN encryption communication mode, obtaining networking data according to the networking data request, sending the networking data to the terminal needing to be networked, counting the sharing networking use information of the terminal needing to be networked according to the networking data request and the networking data, and storing the sharing networking use information of the terminal needing to be networked into a sharing networking use data table. The terminal to be networked communicates with the shared network server in a VPN encryption mode, so that the safety of the request data of the terminal to be networked can be protected, the shared network server stores shared networking use information, the terminal to be networked can be effectively charged, the shared terminal is authenticated before the shared terminal provides shared network service, and the safety of the shared terminal is guaranteed. Therefore, the internet surfing experience of the user is further improved.
Example six
Fig. 7 is a schematic structural diagram of a network sharing apparatus according to a sixth embodiment of the present invention. As shown in fig. 6, the network sharing apparatus provided in this embodiment includes: a sending module 701, a receiving module 702, a determining module 703, an obtaining module 704 and a networking module 705.
Wherein, the sending module 701 is configured to send a shared networking request to a base station; the shared networking request includes: and the base station inquires networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information. A receiving module 702, configured to receive networking preparation information of an available shared terminal sent by a base station. A determining module 703, configured to determine a target shared terminal according to the networking preparation information of the available shared terminals. An obtaining module 704, configured to obtain a sharing networking mode and a networking password of the target sharing terminal. The networking module 705 is configured to access the network according to the sharing networking mode and the networking password of the target sharing terminal.
The network sharing apparatus provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, in the network sharing apparatus provided in this embodiment, the determining module 703 is specifically configured to: acquiring a networking strategy of a terminal needing to surf the internet; and determining the available shared terminal corresponding to the networking preparation information matched with the networking strategy as a target shared terminal.
Further, the obtaining module 704 is specifically configured to: sending the second terminal identification of the target sharing terminal to the base station so that the base station can obtain the sharing networking mode and the networking password of the target sharing terminal according to the sharing networking information of the target sharing terminal; and receiving the sharing networking mode and the networking password of the target sharing terminal sent by the base station.
Further, the sending module 701 is further configured to: sending an internet surfing data request to a shared network server in a VPN encryption communication mode so that the shared network server can obtain internet surfing data and store shared internet surfing data use information of terminals needing internet surfing into a shared internet surfing use data table; and the receiving module is also used for receiving the internet surfing data sent by the shared network server.
Further, the network sharing apparatus provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
EXAMPLE seven
Fig. 8 is a schematic structural diagram of a network sharing device according to a seventh embodiment of the present invention, and as shown in fig. 8, the network sharing device according to the present embodiment includes: a receiving module 801, a query module 802 and a sending module 803.
The receiving module 801 is configured to receive a first terminal identifier sent by a terminal that needs to surf the internet and current first geographic location information of the terminal that needs to surf the internet. A query module 802, configured to query, in a preset shared terminal connection table, networking preparation information of an available shared terminal that matches the current first geographic location information. A sending module 803, configured to send networking preparation information of the available shared terminal to the terminal needing to surf the internet, so that the terminal needing to surf the internet determines the target shared terminal according to the networking preparation information of the available shared terminal. The receiving module 801 is further configured to receive a second terminal identifier of the target shared terminal sent by the terminal needing to surf the internet. The querying module 802 is further configured to query, in a preset shared terminal connection table, a shared networking mode and a networking password in the shared networking information of the target shared terminal corresponding to the second terminal identifier. The sending module 803 is further configured to send the shared networking mode and the networking password of the target shared terminal to the terminal needing to surf the internet.
The network sharing apparatus provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Example eight
Fig. 9 is a schematic structural diagram of a network sharing device according to an eighth embodiment of the present invention, and as shown in fig. 9, the network sharing device according to the present embodiment includes: a receiving module 901, a determining module 902 and a sending module 903.
The receiving module 901 is configured to receive shared internet access information sent by a shared terminal, where the shared internet access information includes: networking provisioning information, sharing networking means, and networking passwords. A determining module 902, configured to determine a base station near the shared terminal according to the current second location information of the shared terminal in the networking preparation information. A sending module 903, configured to send the shared internet access information of the shared terminal to the base station, so that the base station stores the shared internet access information of the shared terminal in a preset shared terminal connection table, and updates the connectable shared terminal table. A sending module 903, configured to send a shared networking service response to the shared terminal.
The network sharing apparatus provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Example nine
Fig. 10 is a schematic structural diagram of a network sharing device according to a ninth embodiment of the present invention, and as shown in fig. 10, the network sharing device according to this embodiment further includes, on the basis of the network sharing device according to an eighth embodiment of the present invention: a statistics module 1001 and a storage module 1002.
Further, the receiving module 901 is further configured to receive an internet data request sent by a terminal that needs to access the internet by using a VPN encrypted communication manner. The sending module 903 is further configured to obtain internet data according to the internet data request, and send the internet data to the terminal needing to access the internet. The statistics module 1001 is configured to perform statistics on shared internet access usage information of the terminal that needs to access the internet according to the internet access data request and the internet access data. The storage module 1002 is configured to store shared internet access use information of a terminal that needs to access the internet into a shared internet access use data table.
The network sharing apparatus provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 6, and the implementation principle and the technical effect are similar, which are not described herein again.
Example ten
Fig. 11 is a schematic structural diagram of a terminal device provided in a tenth embodiment of the present invention, and as shown in fig. 11, the terminal device provided in this embodiment includes: one or more processors 1101 and a memory 1102.
The memory 1102 is used to store one or more programs. When the one or more programs are executed by the one or more processors 1101, the one or more processors 1101 enable the one or more processors 1101 to implement the method for network sharing provided by the first embodiment of the present invention or the method for network sharing provided by the second embodiment of the present invention.
EXAMPLE eleven
Fig. 12 is a schematic structural diagram of a base station according to an eleventh embodiment of the present invention, and as shown in fig. 12, a terminal device according to this embodiment includes: one or more processors 1201 and memory 1202.
The memory 1202 is used for storing one or more programs. When the one or more programs are executed by the one or more processors 1201, the one or more processors 1201 implement the network sharing method provided in the third embodiment of the present invention.
Example twelve
Fig. 13 is a schematic structural diagram of a server according to a twelfth embodiment of the present invention, and as shown in fig. 13, a terminal device according to this embodiment includes: one or more processors 1301 and memory 1302.
The memory 1302 is used for storing one or more programs. When the one or more programs are executed by the one or more processors 1301, the one or more processors 1301 enable the network sharing method provided in the fourth embodiment of the present invention or the network sharing method provided in the fifth embodiment of the present invention.
Thirteen examples
A thirteenth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method for network sharing provided in the first embodiment of the present invention or the method for network sharing provided in the second embodiment of the present invention.
Example fourteen
A fourteenth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the network sharing method provided in the third embodiment of the present invention.
Example fifteen
Fifteenth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the network sharing method provided by the fourth embodiment of the present invention or the network sharing method provided by the fifth embodiment of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a mode of hardware and a software functional module.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or terminal. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or terminal, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage terminal, a magnetic storage terminal, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (4)

1. A network sharing method is applied to a shared network server, and is characterized by comprising the following steps:
receiving shared internet access information sent by a shared terminal, wherein the shared internet access information comprises: networking preparation information, a shared networking mode and a networking password;
determining a base station near the shared terminal according to the current second position information of the shared terminal in the networking preparation information;
sending the shared internet access information of the shared terminal to the base station, so that the base station stores the shared internet access information of the shared terminal into a preset shared terminal connection table and updates a connectable shared terminal table;
sending a shared networking service response to the shared terminal;
the sending the shared internet access information of the shared terminal to the base station so that the base station stores the shared internet access information of the shared terminal in a preset shared terminal connection table and updates a connectable shared terminal table further includes:
receiving an internet surfing data request sent by a terminal needing to surf the internet by adopting a VPN encryption communication mode;
acquiring internet surfing data according to the internet surfing data request, and sending the internet surfing data to the terminal needing internet surfing;
counting the shared internet access use information of the terminal needing internet access according to the internet access data request and the internet access data;
storing the shared internet access use information of the terminal needing to be networked into a shared internet access use data table;
before receiving the internet surfing data request sent by the terminal needing internet surfing, the method further comprises the following steps: the terminal needing to surf the internet sends a sharing networking request to a base station; the shared networking request comprises: the base station searches the networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information; the terminal needing to surf the internet receives networking preparation information of the available shared terminal sent by the base station; the terminal needing to surf the internet acquires the networking strategy of the terminal needing to surf the internet and determines an available shared terminal corresponding to networking preparation information matched with the networking strategy as a target shared terminal; the terminal needing to surf the internet sends the second terminal identification of the target sharing terminal to the base station, so that the base station can obtain the sharing networking mode and the networking password of the target sharing terminal according to the sharing networking information of the target sharing terminal and receive the sharing networking mode and the networking password of the target sharing terminal sent by the base station; and the terminal needing to surf the internet accesses the network according to the sharing networking mode and the networking password of the target sharing terminal.
2. An apparatus for network sharing, comprising:
a receiving module, configured to receive shared internet access information sent by a shared terminal, where the shared internet access information includes: networking preparation information, sharing networking modes and networking passwords;
a determining module, configured to determine, according to the current second location information of the shared terminal in the networking preparation information, a base station near the shared terminal;
a sending module, configured to send shared internet access information of the shared terminal to the base station, so that the base station stores the shared internet access information of the shared terminal in a preset shared terminal connection table, and updates a connectable shared terminal table;
the sending module is further configured to send a shared networking service response to the shared terminal;
the sending module is also used for receiving an internet surfing data request sent by the terminal needing to surf the internet by adopting a VPN encryption communication mode; obtaining internet surfing data according to the internet surfing data request, and sending the internet surfing data to the terminal needing internet surfing; counting the shared internet access use information of the terminal needing internet access according to the internet access data request and the internet access data; storing the shared internet surfing use information of the terminal needing internet surfing into a shared internet surfing use data table;
before receiving the internet surfing data request sent by the terminal needing internet surfing, the method further comprises the following steps: the terminal needing to surf the internet sends a sharing networking request to a base station; the shared networking request comprises: the base station searches the networking preparation information of the available shared terminal in a preset shared terminal connection table according to the current first geographical position information; the terminal needing to surf the internet receives networking preparation information of the available shared terminal sent by the base station; the terminal needing to surf the internet acquires the networking strategy of the terminal needing to surf the internet and determines an available shared terminal corresponding to networking preparation information matched with the networking strategy as a target shared terminal; the terminal needing to surf the internet sends the second terminal identification of the target sharing terminal to the base station, so that the base station can obtain the sharing networking mode and the networking password of the target sharing terminal according to the sharing networking information of the target sharing terminal and receive the sharing networking mode and the networking password of the target sharing terminal sent by the base station; and the terminal needing to surf the internet accesses the network according to the sharing networking mode and the networking password of the target sharing terminal.
3. A server, comprising: one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of claim 1.
4. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor for performing the method as claimed in claim 1.
CN202110206003.0A 2019-01-08 2019-01-08 Network sharing method, device, terminal and computer readable storage medium Active CN112995895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110206003.0A CN112995895B (en) 2019-01-08 2019-01-08 Network sharing method, device, terminal and computer readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110206003.0A CN112995895B (en) 2019-01-08 2019-01-08 Network sharing method, device, terminal and computer readable storage medium
CN201910016811.3A CN109618392B (en) 2019-01-08 2019-01-08 Network sharing method, device, equipment and computer readable storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910016811.3A Division CN109618392B (en) 2019-01-08 2019-01-08 Network sharing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112995895A CN112995895A (en) 2021-06-18
CN112995895B true CN112995895B (en) 2023-02-28

Family

ID=66016846

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910016811.3A Active CN109618392B (en) 2019-01-08 2019-01-08 Network sharing method, device, equipment and computer readable storage medium
CN202110206003.0A Active CN112995895B (en) 2019-01-08 2019-01-08 Network sharing method, device, terminal and computer readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910016811.3A Active CN109618392B (en) 2019-01-08 2019-01-08 Network sharing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN109618392B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677926A (en) * 2019-09-27 2020-01-10 Tcl移动通信科技(宁波)有限公司 Connection method, device, storage medium and server of mobile communication network
CN111314979B (en) * 2020-02-18 2022-05-03 Oppo广东移动通信有限公司 Network control method, first terminal and storage medium
CN113242261B (en) * 2021-06-10 2023-04-07 Oppo广东移动通信有限公司 Method and device for sharing data network, electronic equipment and storage medium
CN113543175A (en) * 2021-07-02 2021-10-22 维沃软件技术有限公司 Networking method, device, equipment and medium
CN113596712A (en) * 2021-07-16 2021-11-02 Oppo广东移动通信有限公司 Network connection method and device, terminal equipment, server and storage medium
CN113630834B (en) * 2021-09-14 2023-05-30 中国联合网络通信集团有限公司 Network sharing system, network switching method, user equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102869073A (en) * 2012-09-14 2013-01-09 中兴通讯股份有限公司 Method for processing wireless hotspot information and method for automatically accessing wireless hotspot
CN103475996A (en) * 2013-08-19 2013-12-25 小米科技有限责任公司 Network connecting method, network sharing method and devices
CN103889029A (en) * 2014-03-24 2014-06-25 深圳市云猫信息技术有限公司 Network hotspot sharing method, client side, sharing side and management server
CN107949036A (en) * 2016-10-12 2018-04-20 ***通信有限公司研究院 A kind of sharing method, the network equipment, terminal device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479890B2 (en) * 2012-07-31 2016-10-25 Michael Lu Open wireless architecture (OWA) mobile cloud infrastructure and method
US10326889B2 (en) * 2016-06-21 2019-06-18 At&T Mobility Ii Llc Method and apparatus for distributing content via a wireless communication network
WO2019075717A1 (en) * 2017-10-20 2019-04-25 北京小米移动软件有限公司 Access method and device, user equipment and base station

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102869073A (en) * 2012-09-14 2013-01-09 中兴通讯股份有限公司 Method for processing wireless hotspot information and method for automatically accessing wireless hotspot
CN103475996A (en) * 2013-08-19 2013-12-25 小米科技有限责任公司 Network connecting method, network sharing method and devices
CN103889029A (en) * 2014-03-24 2014-06-25 深圳市云猫信息技术有限公司 Network hotspot sharing method, client side, sharing side and management server
CN107949036A (en) * 2016-10-12 2018-04-20 ***通信有限公司研究院 A kind of sharing method, the network equipment, terminal device and system

Also Published As

Publication number Publication date
CN109618392B (en) 2021-06-29
CN109618392A (en) 2019-04-12
CN112995895A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112995895B (en) Network sharing method, device, terminal and computer readable storage medium
EP3151628B1 (en) Method, device and system for accessing a wireless network
US9420461B2 (en) Access authentication method and device for wireless local area network hotspot
JP6668407B2 (en) Terminal authentication method and apparatus used in mobile communication system
CN105516960B (en) Non-perception authentication method and system, and management method and system based on method and system
WO2014194731A1 (en) Virtual user identification data distributing method and obtaining method, and devices
WO2015157949A1 (en) Wireless local area network (wlan) access method, terminal and server
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
US11197157B2 (en) Method, apparatus, and system for performing authentication on terminal in wireless local area network
CN105636040A (en) Device networking method and system
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
KR20140010206A (en) Apparatus and method for connecting wireless network in consideration of radio frequency band
CN108616805B (en) Emergency number configuration and acquisition method and device
CN108293055A (en) Method, apparatus and system for authenticating to mobile network and for by the server of device authentication to mobile network
CN105338529A (en) Wireless network connecting method and system
EP2555545B1 (en) Method and system for selecting mobility management entity of terminal group
CN111884836A (en) Service transmission method and device
CN105282820A (en) Terminal management and control method and device
US8768333B2 (en) Communication apparatus and connection method
KR101357669B1 (en) System and method for connecting network based on location
CN113965334A (en) Online signing method, device and system
CN103781071A (en) Access point visiting method and related equipment
CN107257573A (en) A kind of equipment accesses the system and method for wireless network
CN105848251B (en) Hotspot access method, device and terminal
CN114466447B (en) Cloud management end management system based on WiFi6 router

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