Disclosure of Invention
The invention aims to provide a traffic sharing method and a server, which can provide a bridge between mobile phone users with more traffic resources and mobile phone users with insufficient traffic, and realize traffic sharing.
In order to achieve the above object, a technical solution of the present invention provides a traffic sharing method, including:
step S1: the method comprises the steps that a server side obtains a sharing hotspot currently available by a traffic using terminal after receiving a traffic sharing request sent by a traffic using user through the traffic using terminal;
step S2: the service end sends the SSID of the currently usable shared hotspot to the traffic using terminal;
step S3: the server side obtains the password of the shared hotspot requested to be used by the traffic using user after receiving the traffic using request sent by the traffic using user through the traffic using terminal, and sends the password of the shared hotspot requested to be used by the traffic using user to the traffic using terminal, wherein the traffic using request comprises the SSID of the shared hotspot requested to be used by the traffic using user.
Further, the step S1 includes:
the server side acquires the current position of the traffic using terminal from the traffic sharing request;
and the server searches a sharing hotspot currently available by the traffic using terminal according to the current position of the traffic using terminal.
Further, the step S1 includes:
the server side acquires a peripheral hotspot list of the traffic using terminal from the traffic sharing request, wherein the peripheral hotspot list comprises SSIDs of peripheral hotspots currently detected by the traffic using terminal;
and the server side judges whether a sharing hotspot exists in the peripheral hotspot list, and if so, the sharing hotspot in the peripheral hotspot list is used as the currently available sharing hotspot of the traffic use terminal.
Further, before step S1, the method further includes:
the method comprises the steps that a server generates a sharing hotspot setting instruction after receiving a flow issuing request sent by a flow issuing user through a flow issuing terminal, and sends the sharing hotspot setting instruction to the flow issuing terminal, so that the flow issuing terminal generates a sharing hotspot according to the sharing hotspot setting instruction, wherein the sharing hotspot setting instruction comprises an SSID (service set identifier) and a password of the generated sharing hotspot.
Further, after the step S3, the method further includes:
the server side determines whether to send the push video of the flow publisher to the flow using terminal according to a video watching instruction sent by the flow using user through the flow using terminal;
and the server side carries out charging operation on the flow user and the flow publisher respectively according to a preset charging rule.
In order to achieve the above object, the technical solution of the present invention further provides a server, including:
the system comprises an acquisition module, a sharing module and a sharing module, wherein the acquisition module is used for acquiring a sharing hotspot currently available by a traffic using terminal after receiving a traffic sharing request sent by a traffic using user through the traffic using terminal;
a sending module, configured to send the SSID of the currently available shared hotspot to the traffic-using terminal;
and the processing module is used for acquiring the password of the shared hotspot requested to be used by the traffic user after receiving a traffic use request sent by the traffic user through the traffic use terminal, and sending the password of the shared hotspot requested to be used by the traffic user to the traffic use terminal, wherein the traffic use request comprises the SSID of the shared hotspot requested to be used by the traffic user.
Further, the obtaining module comprises:
a first obtaining unit, configured to obtain a current location of the traffic-using terminal from the traffic sharing request;
and the searching unit is used for searching the sharing hot spot which can be used by the flow using terminal currently according to the current position of the flow using terminal.
Further, the obtaining module comprises:
a second obtaining unit, configured to obtain a peripheral hotspot list of the traffic using terminal from the traffic sharing request, where the peripheral hotspot list includes SSIDs of peripheral hotspots of the traffic using terminal currently detected by the traffic using terminal;
and the judging unit is used for judging whether a sharing hotspot exists in the peripheral hotspot list, and if so, taking the sharing hotspot in the peripheral hotspot list as the currently available sharing hotspot of the traffic use terminal.
Further, the server further includes:
the device comprises a hotspot generation control module and a hotspot sending module, wherein the hotspot generation control module is used for generating a shared hotspot setting instruction after receiving a traffic issuing request sent by a traffic issuing user through a traffic issuing terminal, and sending the shared hotspot setting instruction to the traffic issuing terminal so that the traffic issuing terminal generates a shared hotspot according to the shared hotspot setting instruction, and the shared hotspot setting instruction comprises an SSID (service set identifier) and a password of the generated shared hotspot.
Further, the server further includes:
the video pushing module is used for determining whether to send the pushed video of the flow publisher to the flow using terminal according to a video watching instruction sent by the flow using terminal by the flow using user;
and the charging module is used for respectively carrying out charging operation on the flow user and the flow publisher according to a preset charging rule.
The flow sharing method provided by the invention can realize flow intercommunication, mutual sharing and mutual storage among different network operators, provides a bridge between mobile phone users with more flow resources and mobile phone users with insufficient flow, and is beneficial to improving the internet surfing environment of users.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a traffic sharing method according to an embodiment of the present invention, where the traffic sharing method includes:
step S1: the method comprises the steps that a server side obtains a sharing hotspot currently available by a traffic using terminal after receiving a traffic sharing request sent by a traffic using user through the traffic using terminal;
step S2: the service end sends the SSID of the currently usable shared hotspot to the traffic using terminal;
step S3: the server side obtains the password of the shared hotspot requested to be used by the traffic using user after receiving the traffic using request sent by the traffic using user through the traffic using terminal, and sends the password of the shared hotspot requested to be used by the traffic using user to the traffic using terminal, wherein the traffic using request comprises the SSID of the shared hotspot requested to be used by the traffic using user.
The traffic sharing method provided by the embodiment of the invention can realize traffic sharing among different mobile phone users, for example, a traffic publishing user can publish own traffic through a traffic publishing terminal thereof, specifically, the traffic publishing user can send a traffic publishing request to a server through the traffic publishing terminal thereof, the server generates a sharing hotspot setting instruction after receiving the traffic publishing request, the sharing hotspot setting instruction comprises an SSID and a password of a sharing hotspot, then the server stores the information and sends the sharing hotspot setting instruction to the traffic publishing terminal of the traffic publishing user, and the traffic publishing terminal generates a sharing hotspot (such as a WIFI hotspot) according to the SSID and the password in the sharing hotspot setting instruction;
in the embodiment of the present invention, the traffic publishing terminal may be an intelligent mobile device (e.g., a mobile phone), that is, the traffic that the traffic publishing user shares out is the traffic in the mobile network package, the traffic publishing terminal may also be a router that provides network services through the fixed network broadband and an intelligent mobile device (e.g., a mobile phone) that controls the router, that is, the traffic that the traffic publishing user shares out is the traffic in the fixed network broadband, and after receiving the sharing hotspot setting instruction sent by the service end, the intelligent mobile device generates a corresponding sharing hotspot by controlling the router;
when a traffic using user needs to use the traffic published by a traffic publisher, a traffic sharing request can be sent to a server through a traffic using terminal, and the server obtains a currently usable sharing hotspot of the traffic using terminal after receiving the traffic sharing request, wherein the adopted modes can be various;
for example, when a traffic using user sends a traffic sharing request to a server through its traffic using terminal, the current location of the traffic using terminal may be sent to the server as a part of the traffic sharing request, after receiving the traffic sharing request, the server obtains the current location of the traffic using terminal from the traffic sharing request, and searches for a sharing hotspot currently available to the traffic using terminal according to the current location of the traffic using terminal, for example, each traffic publishing terminal in a traffic publishing state sends its own geographic location to the server in real time, the server searches for traffic publishing terminals currently in a traffic publishing state and located around the traffic using terminal according to the current location of the traffic using terminal, takes the sharing hotspot generated by the searched traffic publishing terminal as a currently available sharing hotspot, and sends its SSID and location (i.e., location of the traffic publishing terminal) to the traffic using terminal, the position of the traffic issuing terminal can facilitate the traffic using user to go to the position of the sharing hotspot requested to be used;
for example, the traffic user terminal detects the peripheral hotspot condition of the traffic user terminal in real time, generates a peripheral hotspot list which comprises the SSID of the peripheral hotspot currently detected by the traffic user terminal, and when the traffic user terminal sends a traffic sharing request to the server terminal through the traffic user terminal, the peripheral hotspot list of the traffic user terminal can be sent to the server terminal as a part of the peripheral hotspot list;
after receiving the SSID of the currently usable shared hotspot sent by the server, the traffic using terminal shows the SSID to a traffic using user, the traffic using user selects the shared hotspot required to be used according to the specific situation of the shared hotspot (such as signal quality of the hotspot), then sends a traffic using request to the server through the traffic using terminal, wherein the traffic using request comprises the SSID of the shared hotspot required to be used, the server searches the password of the shared hotspot from pre-stored information, and then sends the password of the shared hotspot to the traffic using terminal, so that the traffic using terminal can be connected to the shared hotspot to realize traffic sharing;
in addition, after the traffic user obtains the password of the shared hotspot, if the traffic user can not be successfully connected to the corresponding shared hotspot through the password, the problem can be fed back to the server through the traffic user terminal so as to solve the problem in time;
preferably, in an embodiment of the present invention, after the step S3, the method further includes:
the server side determines whether to send the push video of the flow publisher to the flow using terminal according to a video watching instruction sent by the flow using user through the flow using terminal;
that is, media promotion can also be achieved by the traffic sharing method, for example, a traffic publishing user can upload a pushed video (such as a small advertisement or a promotion video) of the user to a server, the server compresses, processes and stores the pushed video, and after the traffic using terminal of the traffic using user is successfully connected to a sharing hotspot published by the traffic publishing user, the server determines whether to send the pushed video of the traffic publisher to the traffic using terminal according to a video watching instruction of the traffic using user, for example, if the traffic using user receives a video watching service, the server sends the pushed video of the traffic publishing user to the traffic using terminal of the traffic using user;
the server side carries out charging operation on the flow user and the flow publisher respectively according to a preset charging rule;
for example, the server may perform integral calculation on the traffic user and the traffic publisher respectively according to the time length of the traffic publishing user publishing the hotspot (i.e., the time length of the traffic publishing terminal in the traffic publishing state), the shared traffic value, the traffic value used by the traffic user, whether to watch the push video published by the traffic publishing user, and the like.
The traffic sharing method provided by the embodiment of the invention can realize traffic intercommunication, mutual sharing and mutual storage among different network operators, provides a bridge between mobile phone users with more traffic resources and mobile phone users with insufficient traffic, and is favorable for improving the internet surfing environment of users.
In addition, an embodiment of the present invention further provides a server, including:
the system comprises an acquisition module, a sharing module and a sharing module, wherein the acquisition module is used for acquiring a sharing hotspot currently available by a traffic using terminal after receiving a traffic sharing request sent by a traffic using user through the traffic using terminal;
a sending module, configured to send the SSID of the currently available shared hotspot to the traffic-using terminal;
and the processing module is used for acquiring the password of the shared hotspot requested to be used by the traffic user after receiving a traffic use request sent by the traffic user through the traffic use terminal, and sending the password of the shared hotspot requested to be used by the traffic user to the traffic use terminal, wherein the traffic use request comprises the SSID of the shared hotspot requested to be used by the traffic user.
In an embodiment of the present invention, the obtaining module includes:
a first obtaining unit, configured to obtain a current location of the traffic-using terminal from the traffic sharing request;
and the searching unit is used for searching the sharing hot spot which can be used by the flow using terminal currently according to the current position of the flow using terminal.
In an embodiment of the present invention, the obtaining module includes:
a second obtaining unit, configured to obtain a peripheral hotspot list of the traffic using terminal from the traffic sharing request, where the peripheral hotspot list includes SSIDs of peripheral hotspots of the traffic using terminal currently detected by the traffic using terminal;
and the judging unit is used for judging whether a sharing hotspot exists in the peripheral hotspot list, and if so, taking the sharing hotspot in the peripheral hotspot list as the currently available sharing hotspot of the traffic use terminal.
In an embodiment of the present invention, the server further includes:
the device comprises a hotspot generation control module and a hotspot sending module, wherein the hotspot generation control module is used for generating a shared hotspot setting instruction after receiving a traffic issuing request sent by a traffic issuing user through a traffic issuing terminal, and sending the shared hotspot setting instruction to the traffic issuing terminal so that the traffic issuing terminal generates a shared hotspot according to the shared hotspot setting instruction, and the shared hotspot setting instruction comprises an SSID (service set identifier) and a password of the generated shared hotspot.
In an embodiment of the present invention, the server further includes:
the video pushing module is used for determining whether to send the pushed video of the flow publisher to the flow using terminal according to a video watching instruction sent by the flow using terminal by the flow using user;
and the charging module is used for respectively carrying out charging operation on the flow user and the flow publisher according to a preset charging rule.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.