CN106713180B - Hotspot device control method and device - Google Patents

Hotspot device control method and device Download PDF

Info

Publication number
CN106713180B
CN106713180B CN201510799111.8A CN201510799111A CN106713180B CN 106713180 B CN106713180 B CN 106713180B CN 201510799111 A CN201510799111 A CN 201510799111A CN 106713180 B CN106713180 B CN 106713180B
Authority
CN
China
Prior art keywords
terminal
bandwidth
current
mobile communication
current hotspot
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
CN201510799111.8A
Other languages
Chinese (zh)
Other versions
CN106713180A (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.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software 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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201510799111.8A priority Critical patent/CN106713180B/en
Priority to PCT/CN2016/086738 priority patent/WO2016198007A1/en
Publication of CN106713180A publication Critical patent/CN106713180A/en
Application granted granted Critical
Publication of CN106713180B publication Critical patent/CN106713180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • H04L47/765Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the end-points
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention provides a hotspot device control method and device, wherein the method comprises the following steps: detecting whether current hotspot equipment receives an access request sent by at least one terminal and used for requesting to access a mobile communication network, wherein the current hotspot equipment does not occupy network resources of the mobile communication network; if receiving an access request, controlling to start a mobile communication module in the current hotspot equipment, and requesting a mobile communication network to acquire a preset network resource through the mobile communication module; the control terminal accesses the mobile communication network through the preset network resource occupied by the current hotspot equipment; and after all terminals including at least one terminal connected with the current hotspot equipment exit, controlling to release the preset network resource occupied by the current hotspot equipment. According to the invention, the problem of network resource waste caused by the fixed mode of accessing the hotspot equipment to the network in the related technology is solved, and the effect of improving the use efficiency of the network resources is further achieved.

Description

Hotspot device control method and device
Technical Field
The invention relates to the field of communication, in particular to a hotspot device control method and device.
Background
Currently, in the related art, a joint Wireless Fidelity (uFi) product or a Customer Premises Equipment (CPE) product mainly adopts two ways for network access: an automatic mode and a manual mode. The setting of the two modes can be operated on a User setting Interface, that is, a User selects and sets an access mode of a product on a User Interface (UI for short) provided by the device.
If the equipment is preset to be in an automatic mode, the equipment automatically performs network access configuration after a series of automatic initialization work after being started, and when the network condition meets the access condition, the equipment directly controls the automatic access to the mobile communication network and always occupies the network resources of the mobile communication network for communication; if the device is preset to be in a manual mode, after a series of automatic initialization work is performed on the device, the device will not access the mobile communication network until the user is detected to perform network access configuration manually, and the device will always occupy network resources of the mobile communication network for communication.
That is, the current uFi product or CPE product has two network access modes that are independent of the user's access requirements, that is, regardless of whether the user has the access requirement at the moment, once the device accesses the mobile communication network through the automatic or manual mode, the device will always occupy the network resources of the mobile communication network and generate corresponding network traffic, so that the power consumption of the device is always at the maximum state until the device manually exits the network.
Aiming at the problem of network resource waste caused by the fixed mode of accessing the hotspot equipment to the network in the related technology, no effective solution is provided.
Disclosure of Invention
The invention provides a method and a device for controlling hotspot equipment, which at least solve the problem of network resource waste caused by the fixed mode of accessing hotspot equipment to a network in the related technology.
According to an aspect of the present invention, there is provided a hotspot device control method, including: detecting whether current hotspot equipment receives an access request which is sent by at least one terminal and used for requesting to access a mobile communication network, wherein the current hotspot equipment does not occupy network resources of the mobile communication network; if the access request is received, controlling to start a mobile communication module in the current hotspot equipment, and requesting to acquire a preset network resource from the mobile communication network through the mobile communication module; controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot equipment; and after all terminals including the at least one terminal connected with the current hotspot equipment exit, controlling to release the preset network resources occupied by the current hotspot equipment.
Optionally, the controlling to start the mobile communication module in the current hotspot device, and requesting the mobile communication network to acquire the predetermined network resource through the mobile communication module includes: performing identity authentication on the terminal according to the terminal identification carried in the access request; if the authentication is successful, establishing communication connection between the current hotspot equipment and the terminal through a wireless communication module in the current hotspot equipment, and sending a registration request of the terminal for requesting to access the mobile communication network to a base station; and receiving a registration success response sent by the base station, and acquiring the preset network resource of the mobile communication network occupied by the current hotspot equipment allocated to the current hotspot equipment.
Optionally, after all terminals connected to the current hotspot device and including the at least one terminal exit, controlling to release the predetermined network resource occupied by the current hotspot device includes: receiving an exit request sent by a terminal requesting to exit the mobile communication network; judging whether the terminal requesting to quit the mobile communication network is the last terminal connected with the current hotspot equipment; and if the terminal requesting to quit the mobile communication network is the last terminal connected with the current hotspot equipment, after the terminal quits the mobile communication network, controlling to release the preset network resource acquired by the hotspot equipment.
Optionally, after sending a registration request for the terminal to access the mobile communication network to a base station, the method further includes: and if a registration failure response sent by the base station is received, releasing the communication connection between the current hotspot equipment and the terminal requesting access.
Optionally, after acquiring the predetermined network resource of the mobile communication network to be occupied by the current hotspot device allocated to the current hotspot device, the method further includes: sending a dialing request to the base station through the predetermined network resource; and if a dialing failure response sent by the base station is received, releasing the preset network resource acquired by the hotspot device, and releasing the communication connection between the current hotspot device and the terminal requesting access.
Optionally, after controlling the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot device, the method further includes: acquiring the current data traffic of each terminal establishing communication connection with the current hotspot equipment through a wireless communication module; and adjusting the bandwidth distributed to each terminal which is in communication connection with the current hotspot equipment at least according to the current data traffic so as to obtain the bandwidth adjusted by the terminal.
Optionally, the adjusting, according to at least the current data traffic, a bandwidth allocated to each terminal having the communication connection with the current hotspot device includes: sampling and quantizing the current data traffic and the current bandwidth of each terminal which is in communication connection with the current hotspot equipment to obtain quantized data traffic and quantized bandwidth; comparing the quantized data traffic to the size of the quantized bandwidth; and if the absolute value of the difference value between the quantized data flow and the quantized bandwidth is greater than or equal to a first threshold value, controlling and adjusting the bandwidth allocated to the terminal, wherein the first threshold value is determined according to the initial bandwidth of the terminal.
Optionally, the controlling and adjusting the bandwidth allocated to the terminal includes: if the quantized data flow is smaller than the quantized bandwidth, the bandwidth of the terminal is adjusted in the following way: b isi=Bi-1A/2, wherein, Bi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
Optionally, the controlling and adjusting the bandwidth allocated to the terminal includes: if the quantized data flow is larger than the quantized bandwidth, the bandwidth of the terminal is adjusted in the following way: b isi=B0+Bi-1A/2, wherein, B0For the initial bandwidth, the Bi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
According to another aspect of the present invention, there is provided a hotspot device control apparatus, including: the system comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting whether current hotspot equipment receives an access request which is sent by at least one terminal and used for requesting to access a mobile communication network, and the current hotspot equipment does not occupy network resources of the mobile communication network; the processing module is used for controlling and starting a mobile communication module in the current hotspot equipment when the access request is received, and requesting the mobile communication network to acquire a preset network resource through the mobile communication module; the control module is used for controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot equipment; and the release module is used for controlling and releasing the preset network resources occupied by the current hotspot equipment after all terminals connected with the current hotspot equipment and including the at least one terminal exit.
Optionally, the processing module includes: the authentication unit is used for carrying out identity authentication on the terminal according to the terminal identification carried in the access request; the first processing unit is used for establishing communication connection between the current hotspot equipment and the terminal through a wireless communication module in the current hotspot equipment when the authentication is successful, and sending a registration request of requesting the terminal to access the mobile communication network to a base station; and the second processing unit is used for receiving a registration success response sent by the base station and acquiring the preset network resource of the mobile communication network occupied by the current hotspot equipment.
Optionally, the release module comprises: a receiving unit, configured to receive an exit request sent by a terminal requesting to exit the mobile communication network; a judging unit, configured to judge whether the terminal requesting to exit the mobile communication network is a last terminal connected to the current hotspot device; a first releasing unit, configured to, when the terminal requesting to exit the mobile communication network is the last terminal connected to the current hotspot device, control to release the predetermined network resource acquired by the hotspot device after the terminal exits the mobile communication network.
Optionally, the processing module is further configured to, after sending a registration request for accessing the terminal to the mobile communication network to a base station, if a registration failure response sent by the base station is received, release the communication connection between the current hotspot device and the terminal requesting access.
Optionally, the processing module further comprises: a sending unit, configured to send a dialing request to the base station through the predetermined network resource after acquiring the predetermined network resource of the mobile communication network to be occupied by the current hotspot device allocated to the current hotspot device; and a second releasing unit, configured to release the predetermined network resource acquired by the hotspot device and release a communication connection between the current hotspot device and the terminal requesting access, when a dial failure response sent by the base station is received.
Optionally, the apparatus further comprises: the first acquisition module is used for acquiring the current data traffic of each terminal establishing communication connection with the current hotspot equipment through the wireless communication module after controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot equipment; and a second obtaining module, configured to adjust, at least according to the current data traffic, a bandwidth allocated to each terminal that has the communication connection with the current hotspot device, so as to obtain a bandwidth adjusted by the terminal.
Optionally, the second obtaining module includes: the acquisition unit is used for sampling and quantizing the current data traffic and the current bandwidth of each terminal which is in communication connection with the current hotspot equipment to obtain quantized data traffic and quantized bandwidth; a comparing unit, configured to compare the quantized data traffic with the size of the quantized bandwidth; and the adjusting unit is used for controlling and adjusting the bandwidth distributed to the terminal when the absolute value of the difference value between the quantized data flow and the quantized bandwidth is greater than or equal to a first threshold value, wherein the first threshold value is determined according to the initial bandwidth of the terminal.
Optionally, the adjusting unit is further configured to, when the quantized data traffic is smaller than the quantized bandwidth, adjust the bandwidth of the terminal by: b isi=Bi-1A/2, wherein, Bi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
Optionally, the adjusting unit is further configured to adjust the band of the terminal when the quantized data traffic is greater than the quantized bandwidth in the following mannerWidth: b isi=B0+Bi-1A/2, wherein, B0For the initial bandwidth, the Bi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
According to the invention, whether the current hotspot equipment receives an access request which is sent by at least one terminal and used for requesting to access the mobile communication network is detected, wherein the current hotspot equipment does not occupy the network resources of the mobile communication network; if the access request is received, controlling to start a mobile communication module in the current hotspot equipment, and requesting to acquire a preset network resource from the mobile communication network through the mobile communication module; controlling the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot equipment; and after all the terminals connected with the current hotspot device and including the at least one terminal exit, controlling to release the predetermined network resource occupied by the current hotspot device. In other words, the invention controls and starts the mobile communication module in the current hotspot device according to the requirement of the user for accessing the network, namely, the mobile communication module in the current hotspot equipment is started after receiving the access request sent by the terminal, so that the current hotspot equipment can obtain the preset network resource and adjust the state of not occupying the network resource of the mobile communication network to the state of occupying the network resource of the mobile communication network, and releases the occupied network resources of the mobile communication network after all the terminals connected with the current hotspot equipment quit, thereby realizing flexible control of network resources of the mobile communication network occupied by the hot spot device, overcoming the defects that once the device is accessed into the mobile communication network through an automatic or manual mode in the prior art, the problem of network resource waste caused by always occupying the network resources of the mobile communication network is solved, and the effect of improving the use efficiency of the network resources is further achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a hotspot device control method according to an embodiment of the invention;
fig. 2 is a schematic flow chart of a terminal intelligent access method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a terminal intelligent logout method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the operation of an adaptive WiFi bandwidth filter in accordance with an embodiment of the present invention;
FIG. 5 is a flow diagram of bandwidth adjustment according to an embodiment of the present invention;
fig. 6 is a block diagram of a hotspot device control apparatus according to an embodiment of the invention;
fig. 7 is a block diagram (one) of the hotspot device control device according to the embodiment of the invention;
fig. 8 is a block diagram of the structure of a hotspot device control device according to an embodiment of the invention;
fig. 9 is a block diagram (iii) of the configuration of a hotspot device control apparatus according to an embodiment of the invention;
fig. 10 is a block diagram (iv) of the configuration of the hotspot device control apparatus according to the embodiment of the present invention;
fig. 11 is a block diagram (v) of the hotspot device control apparatus according to the embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
In this embodiment, a method for controlling a hotspot device is provided, and fig. 1 is a flowchart of a method for controlling a hotspot device according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102, detecting whether a current hotspot device receives an access request sent by at least one terminal and used for requesting to access a mobile communication network, wherein the current hotspot device does not occupy network resources of the mobile communication network;
step S104, if the access request is received, controlling to start the mobile communication module in the current hotspot equipment, and requesting the mobile communication network to acquire the preset network resource through the mobile communication module;
step S106, controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot equipment;
step S108, after all terminals including the at least one terminal connected with the current hot spot device quit, controlling to release the predetermined network resource occupied by the current hot spot device.
Through the steps, whether the current hotspot equipment receives an access request which is sent by at least one terminal and used for requesting to access the mobile communication network is detected, wherein the current hotspot equipment does not occupy the network resources of the mobile communication network; if the access request is received, controlling to start a mobile communication module in the current hotspot equipment, and requesting to acquire a preset network resource from the mobile communication network through the mobile communication module; controlling the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot equipment; and after all the terminals connected with the current hotspot device and including the at least one terminal exit, controlling to release the predetermined network resource occupied by the current hotspot device. In other words, the present invention controls to start the mobile communication module in the current hotspot device according to the requirement of the user to access the network, that is, the mobile communication module in the current hotspot device is started after receiving the access request sent by the terminal, so that the current hotspot device obtains the predetermined network resource, the state of the network resource which does not occupy the mobile communication network is adjusted to the state of the network resource which occupies the mobile communication network, and the occupied network resource of the mobile communication network is released after all terminals connected with the current hotspot device quit, thereby realizing the flexible control of the network resource of the mobile communication network occupied by the hotspot device, and overcoming the problem of network resource waste caused by always occupying the network resource of the mobile communication network once the device accesses the mobile communication network through an automatic or manual mode in the related art. Thereby achieving the effect of improving the use efficiency of network resources.
The present embodiment will be described below with reference to specific examples.
The embodiment provides an implementation method of an intelligent mobile hotspot system. The hotspot device must be provided with a traffic detection control module and an adaptive bandwidth filter module besides necessary communication, WiFi, control and other subsystems. The flow detection control module can complete dynamic detection and control of the WiFi access user flow data. The self-adaptive bandwidth filter module can complete self-adaptive dynamic adjustment of WiFi bandwidth of the access user. The intelligent mobile hotspot device corresponds to the hotspot device, and the off-line state corresponds to the standby state. Before use, firstly powering on and starting up the intelligent mobile hotspot equipment, and the subsequent use specifically comprises the following steps:
the first step is as follows: the intelligent mobile hotspot equipment is powered on and is in an off-line state (flight mode), a Wireless Fidelity (WiFi) module is in a sleep mode, and when a WiFi user accesses the intelligent mobile hotspot equipment, the WiFi module is activated;
the second step is that: after receiving a WiFi user access request, the WiFi module informs the network module to start network registration through the master control communication module; after the network module finishes network registration, the network module informs the data module to start network access dialing through the master control communication module, and the data module starts dialing after receiving a dialing message; after the data module finishes dialing, the WiFi user can access the network.
The third step: after the WiFi users access the network, the flow detection control module can monitor flow request data of each WiFi user in real time, sampling quantitative analysis is conducted on data results, the quantized data are sent to the self-adaptive bandwidth filter module in real time, the self-adaptive bandwidth filter module conducts adaptive adjustment on the access bandwidth of each WiFi user according to the sampling data, dynamic flow requirements of the users are met, and hot spot equipment resources are utilized efficiently.
The fourth step: when the WiFi user exits or is not in the hotspot range, the WiFi module receives a WiFi user exit request, and at the moment, the WiFi module requests the data module to disconnect the network access through the master control communication module, and meanwhile, the WiFi module enters a sleep state. When the network access is disconnected, the data module requests the network module to start network offline through the master control communication module, and network resources are released after the hotspot device enters an offline state.
According to the embodiment, the state of the hotspot device is controlled according to the access request message sent by the terminal, and the bandwidth of the terminal is adjusted in real time according to the current data flow, so that the problems of network resource waste caused by fixed access modes of the hotspot device to the network and fixed bandwidth allocated to the terminal by the hotspot device in the related technology are solved, and the effect of improving the use efficiency of network resources is achieved.
In an alternative embodiment, step S104 may be implemented by:
step S11, according to the terminal mark carried in the access request, the identity authentication of the terminal is carried out;
step S12, if the authentication is successful, establishing the communication connection between the current hot spot device and the terminal through the wireless communication module in the current hot spot device, and sending a registration request of the terminal for requesting to access the mobile communication network to the base station;
step S13, receiving a registration success response sent by the base station, and acquiring the predetermined network resource of the mobile communication network to be occupied by the current hotspot device allocated to the current hotspot device.
Optionally, in this embodiment, when the identity authentication of the terminal is successful, a communication connection between the current hotspot device and the terminal is established through a wireless communication module in the current hotspot device, a registration request of the terminal requesting to access the mobile communication network is sent to the base station, and a registration success response sent by the base station is received, so as to obtain the predetermined network resource of the mobile communication network that is allocated to the current hotspot device and is occupied by the current hotspot device.
It should be noted that, in this embodiment, the method for authenticating the terminal in step S11 includes, but is not limited to: and authenticating through an appointed password input by the terminal.
The present embodiment will be described below with reference to specific examples.
The embodiment provides an implementation method for intelligently accessing a mobile hotspot system, which is specifically described with reference to fig. 2. Fig. 2 is a flowchart of a terminal intelligent access method according to an embodiment of the present invention. The WiFi user corresponds to the terminal.
The WiFi user initiates an Access request after scanning the Access Point (AP for short) of the hotspot device, the hotspot device responds to the request of the WiFi user, and the WiFi user logs in the hotspot system after the user login identity verification authentication is successful. The WiFi module mainly completes all functions of a WiFi protocol, when a WiFi user logs in a hotspot system, the WiFi module adds the request message into a request queue of the master control communication module, the master control communication module initiates a network registration request to the network module according to the message content, and the master control communication module broadcasts tasks to all the modules in the form of broadcast messages. The network module receives the broadcast message of the main control communication module and then confirms whether the message belongs to the network module, if the message belongs to the network module, corresponding processing is carried out, and if not, the message is discarded.
The network module initiates the work of registering the network after receiving the message of the master control communication module, and returns the message of successful or failed registration to the master control communication module. If the registration fails, the main control communication module informs the WiFi module that the network registration fails, and the WiFi module informs the WiFi user that the network is unavailable at the moment and then releases the WiFi user. If the registration is successful, the main control communication module informs the data module to initiate a dialing request, and the data module completes the dialing task and returns success or failure of dialing to the main control communication module. If the dialing fails, the main control communication module informs the network module of requesting to release the network resources and returns a message of dialing failure to the WiFi module, and the WiFi module informs the WiFi user of releasing the WiFi user after the network is unavailable at the moment. If the dialing is successful, the WiFi user successfully accesses the network, as shown in step S201 to step S214 in fig. 2.
In an optional embodiment, step S108 further comprises the steps of:
step S21, receiving an exit request sent by a terminal requesting to exit the mobile communication network;
step S22, determining whether the terminal requesting to exit the mobile communication network is the last terminal connected to the current hotspot device;
step S23, if the terminal requesting to quit the mobile communication network is the last terminal connected to the current hotspot device, after the terminal quits the mobile communication network, controlling to release the predetermined network resource acquired by the hotspot device.
Optionally, in this embodiment, if the terminal requesting to quit the mobile communication network is the last terminal connected to the current hotspot device, after the terminal quits the mobile communication network, the terminal controls to release the predetermined network resource acquired by the hotspot device.
The present embodiment is illustrated below with reference to the following examples.
The embodiment provides an implementation method of an intelligent logout mobile hotspot system, which is specifically described with reference to fig. 3. Fig. 3 is a flowchart illustrating a method for intelligently logging out a terminal according to an embodiment of the present invention, wherein a WiFi user corresponds to the terminal.
When the WiFi user requests to quit the access or the WiFi user is out of range, the WiFi module adds a message of requesting to quit or the WiFi user is out of range to a request queue of the master control communication module, the master control communication module broadcasts a task to each module in the form of broadcast messages, the data module carries out network disconnection operation after receiving the message of requesting to quit the access of the WiFi user, and a network disconnection operation result is returned to the master control communication module. The main control communication module requests the network module to release the network resource, and the network module returns a result to the main control communication module after releasing the network resource, and at this time, the user formally logs out of the network, as shown in steps S301 to S307 in fig. 3.
Through the steps, if the terminal requesting to quit the mobile communication network is the last terminal connected with the current hotspot device, after the terminal quits the mobile communication network, the preset network resource acquired by the hotspot device is controlled to be released, so that the problem of network resource waste caused by the fixed mode of accessing the hotspot device to the network in the related technology is further solved, and the effect of improving the use efficiency of the network resource is further achieved.
In an optional embodiment, after sending the registration request for the terminal to access the mobile communication network to the base station, the method further includes the following steps:
step S31, if receiving a registration failure response sent by the base station, releasing the communication connection between the current hotspot device and the terminal requesting access.
Optionally, in this embodiment, when receiving a response message indicating that the registration fails, the hotspot device releases the communication connection with the terminal, and adjusts the hotspot device to the standby state, which is different from the related art in which the hotspot device is always in the working state, resulting in a problem of occupying network resources.
Through the steps, if the registration failure response sent by the base station is received, the communication connection between the current hotspot device and the terminal requesting access is released, so that the problem of network resource waste caused by the fixed mode of accessing the hotspot device to the network in the related technology is further solved, and the effect of improving the use efficiency of network resources is further achieved.
In an optional implementation manner, after obtaining the predetermined network resource of the mobile communication network to be occupied by the current hotspot device allocated to the current hotspot device, the method further includes the following steps:
step S41, sending a dialing request to the base station through the predetermined network resource;
step S42, if receiving the dial failure response sent by the base station, releasing the predetermined network resource acquired by the hotspot device, and releasing the communication connection between the current hotspot device and the terminal requesting access.
Optionally, in this embodiment, when a response that the base station fails to send the dialing request is received, the predetermined network resource acquired by the hotspot device is released, and the communication connection between the current hotspot device and the terminal requesting access is released, so as to further solve the problem that once the device accesses the mobile communication network through an automatic or manual mode, the device will always occupy the network resource of the mobile communication network and generate corresponding network traffic, so that the power consumption of the device is always in the maximum state.
In an optional implementation manner, after controlling the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot device, the method further includes the following steps:
step S51, obtaining the current data flow of each terminal establishing communication connection with the current hotspot equipment through the wireless communication module;
step S52, adjusting the bandwidth allocated to each terminal having the communication connection with the current hotspot device at least according to the current data traffic, so as to obtain the adjusted bandwidth of the terminal.
Optionally, in this embodiment, the wireless bandwidth of the terminal connected to the current hotspot device through the wireless communication module may also be controlled and adjusted, for example, the bandwidth of each terminal is flexibly adjusted according to the current data traffic of the accessed terminal, so that unnecessary resource waste of the current hotspot device is avoided, and the resource utilization rate is further improved.
Optionally, in this embodiment, the current data traffic of the terminal is obtained in real time, the bandwidth of the terminal is adjusted according to the current data traffic to obtain an adjusted bandwidth, and the terminal is controlled to perform data transmission in the adjusted bandwidth. Unlike the related art, the main scenario of using uFi products or CPE products by users is WiFi access network, each uFi product or CPE product has capability indexes including: maximum number of users, rate index and user bandwidth, etc., wherein the rate index and user bandwidth are generally explicit and quantitative, i.e. generally fixed and unchangeable, for uFi products or CPE products. This shows that, after the mobile terminal user accesses the hotspot device through WiFi, the user rate is not only determined by the negotiated rate capability of the mobile terminal's own network card, but also largely determined by the rate capability allocated to the user by the hotspot device and the user bandwidth.
Through the steps, the bandwidth of the terminal access network is adjusted in real time, the hotspot equipment can adjust the rate bandwidth in a self-adaptive manner according to the flow demand of the user, and the effect that the user of each access hotspot equipment can experience the flow demand of the user is met in the user experience.
In an optional embodiment, adjusting the bandwidth allocated to each terminal having the communication connection with the current hotspot device according to at least the current data traffic comprises the following steps:
step S61, performing sampling quantization processing on the current data traffic and the current bandwidth of each terminal having the communication connection with the current hotspot device to obtain quantized data traffic and quantized bandwidth;
step S62, comparing the quantized data traffic with the quantized bandwidth;
step S63, if the absolute value of the difference between the quantized data traffic and the quantized bandwidth is greater than or equal to a first threshold, controlling to adjust the bandwidth allocated to the terminal, where the first threshold is determined according to the initial bandwidth of the terminal.
Optionally, in this embodiment, the bandwidth of the terminal is adjusted in real time by comparing the quantized data traffic with the quantized bandwidth, but different from the related art, the bandwidth allocated to the terminal by the hotspot device is fixed, and the data traffic actually used by the terminal is not matched with the allocated bandwidth, which results in a problem of network resource waste.
It should be noted that the first threshold referred to in step S63 includes, but is not limited to, determining according to the initial bandwidth of the terminal.
Through the steps, the bandwidth distributed to each terminal which is in communication connection with the current hotspot device is adjusted according to the current data traffic, so that the hotspot device can adjust the rate bandwidth in a self-adaptive manner according to the traffic demand of the user, and the effect that the user who accesses the hotspot device can experience the traffic demand of the user is further realized in the user experience.
In an alternative embodiment, controlling the adjustment of the bandwidth allocated to the terminal comprises the steps of:
step S71, if the quantized data traffic is smaller than the quantized bandwidth, adjusting the bandwidth of the terminal by: b isi=Bi-1/2, wherein, the Bi-1The initial bandwidth for the current bandwidth after the i-1 th adjustment, BiIs the current bandwidth after the ith adjustment, and i is a natural number more than or equal to 1.
Through the steps, if the quantized data flow is smaller than the quantized bandwidth, the current bandwidth is reduced, and further the effect that the hotspot device can adjust the rate bandwidth in a self-adaptive manner according to the flow demand of the user is achieved, and the user experience of each user accessing the hotspot device can meet the flow demand of the user.
In an alternative embodiment, controlling the adjustment of the bandwidth allocated to the terminal further comprises the steps of:
step S81, if the quantized data traffic is greater than the quantized bandwidth, adjusting the bandwidth of the terminal by: b isi=B0+Bi-1/2, wherein, the B0For the initial bandwidth, the Bi-1The initial bandwidth for the current bandwidth after the i-1 th adjustment, BiIs the current bandwidth after the ith adjustment, and i is a natural number more than or equal to 1.
Through the steps, if the quantized data flow is larger than the quantized bandwidth, the current bandwidth is increased, and the effect that the hotspot device can adjust the rate bandwidth in a self-adaptive manner according to the flow demand of the user is further realized, and the user experience of each user accessing the hotspot device can meet the flow demand of the user.
The present embodiment is illustrated below with reference to the following examples.
The embodiment provides the working principle of the adaptive WiFi bandwidth filter module. Fig. 4 is a schematic diagram of an adaptive WiFi bandwidth filter operation according to an embodiment of the present invention, which includes a traffic detection control module 42 and an adaptive bandwidth filter module 44; monitoring the flow information of the WiFi user in real time through the flow detection control module 42, carrying out quantitative analysis on the flow information, and extracting quantitative parameters for the adaptive bandwidth filter module to use; the self-adaptive bandwidth filter module 44 controls the adjustment of the bandwidth of the WiFi user, and the bandwidth of the WiFi user is self-adaptively adjusted according to the quantization parameter sampled by the traffic detection control module, so that the service efficiency of the device resource is improved on the basis of meeting the traffic demand of the WiFi user.
Fig. 5 is a flow chart of bandwidth adjustment according to an embodiment of the present invention, wherein the following steps are included: step S501, the flow detection control module compares the bandwidth allocated to the WiFi user by the hotspot system with the data bit number of the user in the current unit time; quantizing the compared numerical values, wherein a quantization domain value T needs to be set before quantization, the quantization accuracy is determined by the size of the domain value, and if the domain value is small, the quantization is more accurate but the calculation amount is increased; if the domain value is large, the quantization deviation ratio is large, but the calculation amount is small. To reach an equilibrium point, the threshold value T is typically determined by the principle of a binary method, and the value of T is typically set to an integer multiple of the initial bandwidth. If the difference between the bandwidth and the number of the user data bits in the unit time is greater than zero, which indicates that the bandwidth allocated to the user by the current hotspot system is greater than the use requirement of the user, the initial quantization bandwidth is updated to be one-half of the bandwidth, a bandwidth quantization parameter can be obtained after the calculation of a cyclic dichotomy algorithm, the difference between the quantization parameter and the number of the user data bits in the unit time is equal to or less than a threshold value T, and the bandwidth quantization parameter is sent to the adaptive bandwidth filter module for bandwidth adjustment. If the difference between the bandwidth and the number of bits of user data in the unit time is less than zero, which indicates that the bandwidth allocated to the user by the current hotspot system cannot meet the use requirement of the user, the initial quantization bandwidth is updated to be the initial bandwidth + one-half bandwidth, a bandwidth quantization parameter can be obtained after the calculation of the cyclic bisection algorithm, the difference between the quantization parameter and the number of bits of user data in the unit time is equal to or less than the threshold value T, and the bandwidth quantization parameter is sent to the adaptive bandwidth filter module for bandwidth adjustment, as shown in steps S502 to S503.
Optionally, the bandwidth range of the WiFi user is usually determined by the performance of the device and the performance of the WiFi user wireless network card, and usually, a rate parameter (bandwidth) is negotiated between the hotspot device and the WiFi user wireless network card, where the negotiated rate bandwidth is only a theoretical rate bandwidth of the WiFi user, and the rate of the WiFi user in an actual environment is often affected by many factors and cannot reach the theoretical rate, even is far lower than the theoretical rate. Except for being influenced by other signals in the environment, the WiFi module of the hotspot device is mainly a time division system, and each WiFi user shares the WiFi module system through a system time slice, namely the WiFi module is a resource sharing system. In order to implement an adaptive resource sharing mode, a change needs to be made to the current system, that is, the rate bandwidth of each WiFi user is not fixed, but is adaptive to the rate requirement of the user. The invention provides a method for realizing an intelligent mobile hotspot system based on the theoretical idea, wherein a self-adaptive bandwidth filter module takes a WiFi user negotiation rate bandwidth as an upper limit of filter adjustment, and a lower limit is a minimum value meeting the user rate requirement.
The self-adaptive bandwidth filter module receives the quantization parameter of the flow detection control module, recalculates the bandwidth value of the bandwidth filter, adjusts the parameter of the filter according to the new bandwidth value, and re-filters the user modulation data according to the new parameter. The flow detection control module quantifies the adjusted WiFi user bandwidth again, so that the aim of accurately controlling the user bandwidth can be achieved after the phase-locked closed loop is optimized. The bandwidths distributed to each WiFi user by the hotspot system in the initial state are the same, and bandwidth intervals exist among the bandwidths of each WiFi user, wherein the intervals are used for ensuring that data of each WiFi user are not interfered. Along with the adjustment of the self-adaptive bandwidth filter module to the bandwidth of each WiFi user, the bandwidth of each WiFi user is diversified, and the distance frequency point can also shift frequency along with the adjustment of the bandwidth. And adjusting and comparing the optimized bandwidth resources with the original allocated resources, and recovering and releasing the redundant bandwidth resource system to reduce the power consumption and the load of the system.
Through the steps, the hotspot equipment can adjust the rate bandwidth in a self-adaptive manner according to the flow demand of the user, and the effect that each user accessing the hotspot equipment can experience the flow demand of the user is met in the user experience.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a hotspot device control device is further provided, and the hotspot device control device is used to implement the foregoing embodiments and preferred embodiments, and the description of which is already given is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a hotspot device control device according to an embodiment of the present invention, and as shown in fig. 6, the device includes:
1) a detecting module 62, configured to detect whether a current hotspot device receives an access request sent by at least one terminal for requesting to access a mobile communication network, where the current hotspot device does not occupy network resources of the mobile communication network;
2) a processing module 64, configured to control to start a mobile communication module in the current hotspot device when receiving the access request, and request the mobile communication network to acquire a predetermined network resource through the mobile communication module;
3) a control module 66, configured to control the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot device;
4) a releasing module 68, configured to control to release the predetermined network resource occupied by the current hotspot device after all terminals connected to the current hotspot device and including the at least one terminal exit.
Through the steps, whether the current hotspot equipment receives an access request which is sent by at least one terminal and used for requesting to access the mobile communication network is detected, wherein the current hotspot equipment does not occupy the network resources of the mobile communication network; if the access request is received, controlling to start a mobile communication module in the current hotspot equipment, and requesting to acquire a preset network resource from the mobile communication network through the mobile communication module; controlling the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot equipment; and after all the terminals connected with the current hotspot device and including the at least one terminal exit, controlling to release the predetermined network resource occupied by the current hotspot device. In other words, the present invention controls to start the mobile communication module in the current hotspot device according to the requirement of the user to access the network, that is, the mobile communication module in the current hotspot device is started after receiving the access request sent by the terminal, so that the current hotspot device obtains the predetermined network resource, the state of the network resource which does not occupy the mobile communication network is adjusted to the state of the network resource which occupies the mobile communication network, and the occupied network resource of the mobile communication network is released after all terminals connected with the current hotspot device quit, thereby realizing the flexible control of the network resource of the mobile communication network occupied by the hotspot device, and overcoming the problem of network resource waste caused by always occupying the network resource of the mobile communication network once the device accesses the mobile communication network through an automatic or manual mode in the related art.
In an alternative implementation manner, fig. 7 is a block diagram (i) of a structure of a hotspot device control apparatus according to an embodiment of the present invention, and as shown in fig. 7, the processing module 64 includes:
1) an authentication unit 72, configured to perform identity authentication on the terminal according to the terminal identifier carried in the access request;
2) a first processing unit 74, configured to, when the authentication is successful, establish a communication connection between the current hotspot device and the terminal through a wireless communication module in the current hotspot device, and send a registration request to the base station, where the registration request requests the terminal to access the mobile communication network;
3) the second processing unit 76 is configured to receive a registration success response sent by the base station, and obtain the predetermined network resource of the mobile communication network that is allocated to the current hotspot device and is occupied by the current hotspot device.
Optionally, in this embodiment, when the identity authentication of the terminal is successful, a communication connection between the current hotspot device and the terminal is established through a wireless communication module in the current hotspot device, a registration request of the terminal requesting to access the mobile communication network is sent to the base station, and a registration success response sent by the base station is received, so as to obtain the predetermined network resource of the mobile communication network that is allocated to the current hotspot device and is occupied by the current hotspot device.
It should be noted that, in this embodiment, the method for authenticating the terminal in step S11 includes, but is not limited to: and authenticating through an appointed password input by the terminal.
In an alternative implementation manner, fig. 8 is a block diagram (ii) of a structure of a hotspot device control apparatus according to an embodiment of the present invention, and as shown in fig. 8, the releasing module 63 includes:
1) a receiving unit 82, configured to receive an exit request sent by a terminal requesting to exit the mobile communication network;
2) a determining unit 84, configured to determine whether the terminal requesting to exit the mobile communication network is the last terminal connected to the current hotspot device;
3) a first releasing unit 86, configured to, when the terminal requesting to exit the mobile communication network is the last terminal connected to the current hotspot device, control to release the predetermined network resource acquired by the hotspot device after the terminal exits the mobile communication network.
Optionally, in this embodiment, if the terminal requesting to quit the mobile communication network is the last terminal connected to the current hotspot device, after the terminal quits the mobile communication network, the terminal controls to release the predetermined network resource acquired by the hotspot device.
In an optional embodiment, the processing module 64 is further configured to, after sending a registration request for accessing the terminal to the mobile communication network to a base station, if a registration failure response sent by the base station is received, release the communication connection between the current hotspot device and the terminal requesting access.
Optionally, in this embodiment, when receiving a response message indicating that the registration fails, the hotspot device releases the communication connection with the terminal, and adjusts the hotspot device to the standby state, which is different from the related art in which the hotspot device is always in the working state, resulting in a problem of occupying network resources.
Through the steps, if the registration failure response sent by the base station is received, the communication connection between the current hotspot device and the terminal requesting access is released, so that the problem of network resource waste caused by the fixed mode of accessing the hotspot device to the network in the related technology is further solved, and the effect of improving the use efficiency of network resources is further achieved.
In an alternative implementation manner, fig. 9 is a block diagram (three) of a structure of a hotspot device control apparatus according to an embodiment of the present invention, and as shown in fig. 9, the processing module 64 further includes:
1) a sending unit 92, configured to send a dialing request to the base station through the predetermined network resource after acquiring the predetermined network resource of the mobile communication network that is allocated to the current hotspot device and is to be occupied by the current hotspot device;
2) a second releasing unit 94, configured to release the predetermined network resource acquired by the hotspot device and release the communication connection between the current hotspot device and the terminal requesting access when receiving the dialing failure response sent by the base station.
Optionally, in this embodiment, when a response that the base station fails to send the dialing request is received, the predetermined network resource acquired by the hotspot device is released, and the communication connection between the current hotspot device and the terminal requesting access is released, so as to further solve the problem that once the device accesses the mobile communication network through an automatic or manual mode, the device will always occupy the network resource of the mobile communication network and generate corresponding network traffic, so that the power consumption of the device is always in the maximum state.
In an alternative implementation manner, fig. 10 is a block diagram (iv) of a structure of a hotspot device control apparatus according to an embodiment of the present invention, as shown in fig. 10, the apparatus includes, in addition to all modules shown in fig. 6:
1) a first obtaining module 102, configured to obtain a current data traffic of each terminal establishing a communication connection with the current hotspot device through the wireless communication module after controlling the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot device;
2) a second obtaining module 104, configured to adjust, according to at least the current data traffic, a bandwidth allocated to each terminal that has the communication connection with the current hotspot device, so as to obtain an adjusted bandwidth of the terminal.
Optionally, in this embodiment, the wireless bandwidth of the terminal connected to the current hotspot device through the wireless communication module may also be controlled and adjusted, for example, the bandwidth of each terminal is flexibly adjusted according to the current data traffic of the accessed terminal, so that unnecessary resource waste of the current hotspot device is avoided, and the resource utilization rate is further improved.
Optionally, in this embodiment, the current data traffic of the terminal is obtained in real time, the bandwidth of the terminal is adjusted according to the current data traffic to obtain an adjusted bandwidth, and the terminal is controlled to perform data transmission in the adjusted bandwidth. Unlike the related art, the main scenario of using uFi products or CPE products by users is WiFi access network, each uFi product or CPE product has capability indexes including: maximum number of users, rate index and user bandwidth, etc., wherein the rate index and user bandwidth are generally explicit and quantitative, i.e. generally fixed and unchangeable, for uFi products or CPE products. This shows that, after the mobile terminal user accesses the hotspot device through WiFi, the user rate is not only determined by the negotiated rate capability of the mobile terminal's own network card, but also largely determined by the rate capability allocated to the user by the hotspot device and the user bandwidth.
Through the steps, the bandwidth of the terminal access network is adjusted in real time, the hotspot equipment can adjust the rate bandwidth in a self-adaptive manner according to the flow demand of the user, and the effect that the user of each access hotspot equipment can experience the flow demand of the user is met in the user experience.
In an alternative implementation manner, fig. 11 is a block diagram (five) of a structure of a hotspot device control apparatus according to an embodiment of the present invention, and as shown in fig. 11, the second obtaining module 104 includes:
1) an obtaining unit 112, configured to perform sampling and quantization processing on the current data traffic and a current bandwidth of each terminal that has the communication connection with the current hotspot device, so as to obtain quantized data traffic and a quantized bandwidth;
2) a comparing unit 114, configured to compare the quantized data traffic with the quantized bandwidth;
3) an adjusting unit 116, configured to control to adjust the bandwidth allocated to the terminal when an absolute value of a difference between the quantized data traffic and the quantized bandwidth is greater than or equal to a first threshold, where the first threshold is determined according to an initial bandwidth of the terminal.
Optionally, in this embodiment, the bandwidth of the terminal is adjusted in real time by comparing the quantized data traffic with the quantized bandwidth, but different from the related art, the bandwidth allocated to the terminal by the hotspot device is fixed, and the data traffic actually used by the terminal is not matched with the allocated bandwidth, which results in a problem of network resource waste.
It should be noted that the first threshold referred to in step S63 includes, but is not limited to, determining according to the initial bandwidth of the terminal.
Through the steps, the bandwidth distributed to each terminal which is in communication connection with the current hotspot device is adjusted according to the current data traffic, so that the hotspot device can adjust the rate bandwidth in a self-adaptive manner according to the traffic demand of the user, and the effect that the user who accesses the hotspot device can experience the traffic demand of the user is further realized in the user experience.
In an optional embodiment, the adjusting unit 116 is further configured to, when the quantized data traffic is smaller than the quantized bandwidth, adjust the bandwidth of the terminal by: b isi=Bi-1/2, wherein, the Bi-1The initial bandwidth for the current bandwidth after the i-1 th adjustment, BiIs the current bandwidth after the ith adjustment, and i is a natural number more than or equal to 1.
Through the steps, if the quantized data flow is smaller than the quantized bandwidth, the current bandwidth is reduced, and further the effect that the hotspot device can adjust the rate bandwidth in a self-adaptive manner according to the flow demand of the user is achieved, and the user experience of each user accessing the hotspot device can meet the flow demand of the user.
In an optional embodiment, the adjusting unit 116 is further configured to, when the quantized data traffic is greater than the quantized bandwidth, adjust the bandwidth of the terminal by: b isi=B0+Bi-1/2, wherein B is0For the initial bandwidth, the Bi-1The initial bandwidth for the current bandwidth after the i-1 th adjustment, BiIs the current bandwidth after the ith adjustment, and i is a natural number more than or equal to 1.
Through the steps, if the quantized data flow is larger than the quantized bandwidth, the current bandwidth is increased, and the effect that the hotspot device can adjust the rate bandwidth in a self-adaptive manner according to the flow demand of the user is further realized, and the user experience of each user accessing the hotspot device can meet the flow demand of the user.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in a plurality of processors.
Example 3
The embodiment of the invention also provides a storage medium. For a specific application scenario of this embodiment, reference may be made to embodiment 1 and embodiment 2, which are not described herein again. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, detecting whether a current hotspot device receives an access request sent by at least one terminal for requesting to access a mobile communication network, wherein the current hotspot device does not occupy network resources of the mobile communication network;
s2, if receiving the access request, controlling to start the mobile communication module in the current hotspot device, and requesting the mobile communication network to obtain the predetermined network resource through the mobile communication module;
s3, controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot device;
s4, after all the terminals including the at least one terminal connected to the current hotspot device quit, controlling to release the predetermined network resource occupied by the current hotspot device.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Alternatively, in the present embodiment, the processor performs the above steps S1, S2, S3, and S4 according to program codes already stored in the storage medium.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (16)

1. A hotspot device control method is characterized by comprising the following steps:
detecting whether current hotspot equipment receives an access request which is sent by at least one terminal and used for requesting to access a mobile communication network, wherein the current hotspot equipment does not occupy network resources of the mobile communication network;
if the access request is received, controlling to start a mobile communication module in the current hotspot equipment, and requesting to acquire a preset network resource from the mobile communication network through the mobile communication module;
controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot equipment;
after all terminals including the at least one terminal connected with the current hotspot equipment exit, controlling to release the preset network resources occupied by the current hotspot equipment;
wherein, after controlling the terminal to access the mobile communication network through the predetermined network resource occupied by the current hotspot device, the method further comprises:
acquiring the current data traffic of each terminal establishing communication connection with the current hotspot equipment through a wireless communication module;
and adjusting the bandwidth distributed to each terminal which is in communication connection with the current hotspot equipment at least according to the current data traffic so as to obtain the bandwidth adjusted by the terminal.
2. The method of claim 1, wherein the controlling activating a mobile communication module in the current hotspot device and requesting the mobile communication network to acquire a predetermined network resource through the mobile communication module comprises:
performing identity authentication on the terminal according to the terminal identification carried in the access request;
if the authentication is successful, establishing communication connection between the current hotspot equipment and the terminal through a wireless communication module in the current hotspot equipment, and sending a registration request of the terminal for requesting to access the mobile communication network to a base station;
and receiving a registration success response sent by the base station, and acquiring the preset network resource of the mobile communication network occupied by the current hotspot equipment allocated to the current hotspot equipment.
3. The method according to claim 1, wherein after all terminals including the at least one terminal connected to the current hotspot device quit, controlling to release the predetermined network resource occupied by the current hotspot device comprises:
receiving an exit request sent by a terminal requesting to exit the mobile communication network;
judging whether the terminal requesting to quit the mobile communication network is the last terminal connected with the current hotspot equipment;
and if the terminal requesting to quit the mobile communication network is the last terminal connected with the current hotspot equipment, after the terminal quits the mobile communication network, controlling to release the preset network resource acquired by the hotspot equipment.
4. The method of claim 2, further comprising, after sending a registration request for the terminal to access the mobile communication network to a base station:
and if a registration failure response sent by the base station is received, releasing the communication connection between the current hotspot equipment and the terminal requesting access.
5. The method according to claim 2, further comprising, after obtaining the predetermined network resource of the mobile communication network to be occupied by the current hotspot device allocated to the current hotspot device, the following steps:
sending a dialing request to the base station through the predetermined network resource;
and if a dialing failure response sent by the base station is received, releasing the preset network resource acquired by the hotspot device, and releasing the communication connection between the current hotspot device and the terminal requesting access.
6. The method of claim 1, wherein the adjusting the bandwidth allocated to each terminal having the communication connection with the current hotspot device according to at least the current data traffic comprises:
sampling and quantizing the current data traffic and the current bandwidth of each terminal which is in communication connection with the current hotspot equipment to obtain quantized data traffic and quantized bandwidth;
comparing the quantized data traffic to the size of the quantized bandwidth;
and if the absolute value of the difference value between the quantized data flow and the quantized bandwidth is greater than or equal to a first threshold value, controlling and adjusting the bandwidth allocated to the terminal, wherein the first threshold value is determined according to the initial bandwidth of the terminal.
7. The method of claim 6, wherein the controlling the adjusting of the bandwidth allocated to the terminal comprises:
if the quantized data flow is smaller than the quantized bandwidth, the bandwidth of the terminal is adjusted in the following way:
Bi=Bi-1/2,
wherein, B isi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
8. The method of claim 6, wherein the controlling the adjusting of the bandwidth allocated to the terminal comprises:
if the quantized data flow is larger than the quantized bandwidth, the bandwidth of the terminal is adjusted in the following way:
Bi=B0+Bi-1/2,
wherein, B is0For the initial bandwidth, the Bi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
9. A hotspot device control apparatus, comprising:
the system comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting whether current hotspot equipment receives an access request which is sent by at least one terminal and used for requesting to access a mobile communication network, and the current hotspot equipment does not occupy network resources of the mobile communication network;
the processing module is used for controlling and starting a mobile communication module in the current hotspot equipment when the access request is received, and requesting the mobile communication network to acquire a preset network resource through the mobile communication module;
the control module is used for controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot equipment;
the release module is used for controlling and releasing the preset network resource occupied by the current hotspot equipment after all terminals including the at least one terminal connected with the current hotspot equipment quit;
the first acquisition module is used for acquiring the current data traffic of each terminal establishing communication connection with the current hotspot equipment through the wireless communication module after controlling the terminal to access the mobile communication network through the preset network resource occupied by the current hotspot equipment;
and a second obtaining module, configured to adjust, at least according to the current data traffic, a bandwidth allocated to each terminal that has the communication connection with the current hotspot device, so as to obtain a bandwidth adjusted by the terminal.
10. The apparatus of claim 9, wherein the processing module comprises:
the authentication unit is used for carrying out identity authentication on the terminal according to the terminal identification carried in the access request;
the first processing unit is used for establishing communication connection between the current hotspot equipment and the terminal through a wireless communication module in the current hotspot equipment when the authentication is successful, and sending a registration request of requesting the terminal to access the mobile communication network to a base station;
and the second processing unit is used for receiving a registration success response sent by the base station and acquiring the preset network resource of the mobile communication network occupied by the current hotspot equipment.
11. The apparatus of claim 9, wherein the release module comprises:
a receiving unit, configured to receive an exit request sent by a terminal requesting to exit the mobile communication network;
a judging unit, configured to judge whether the terminal requesting to exit the mobile communication network is a last terminal connected to the current hotspot device;
a first releasing unit, configured to, when the terminal requesting to exit the mobile communication network is the last terminal connected to the current hotspot device, control to release the predetermined network resource acquired by the hotspot device after the terminal exits the mobile communication network.
12. The apparatus of claim 10, wherein the processing module is further configured to, after sending a registration request for accessing the mobile communication network from the terminal to a base station, if a registration failure response sent by the base station is received, release the communication connection between the current hotspot device and the terminal requesting access.
13. The apparatus of claim 10, wherein the processing module further comprises:
a sending unit, configured to send a dialing request to the base station through the predetermined network resource after acquiring the predetermined network resource of the mobile communication network to be occupied by the current hotspot device allocated to the current hotspot device;
and a second releasing unit, configured to release the predetermined network resource acquired by the hotspot device and release a communication connection between the current hotspot device and the terminal requesting access, when a dial failure response sent by the base station is received.
14. The apparatus of claim 9, wherein the second obtaining module comprises:
the acquisition unit is used for sampling and quantizing the current data traffic and the current bandwidth of each terminal which is in communication connection with the current hotspot equipment to obtain quantized data traffic and quantized bandwidth;
a comparing unit, configured to compare the quantized data traffic with the size of the quantized bandwidth;
and the adjusting unit is used for controlling and adjusting the bandwidth distributed to the terminal when the absolute value of the difference value between the quantized data flow and the quantized bandwidth is greater than or equal to a first threshold value, wherein the first threshold value is determined according to the initial bandwidth of the terminal.
15. The apparatus of claim 14, wherein the adjusting unit is further configured to adjust the bandwidth of the terminal when the quantized data traffic is smaller than the quantized bandwidth by:
Bi=Bi-1/2,
wherein, B isi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
16. The apparatus of claim 14, wherein the adjusting unit is further configured to adjust the bandwidth of the terminal when the quantized data traffic is greater than the quantized bandwidth by:
Bi=B0+Bi-1/2,
wherein, B is0For the purpose of the initial bandwidth, the bandwidth,b isi-1The initial bandwidth is the current bandwidth after the i-1 th adjustment, and BiAnd the current bandwidth after the ith adjustment is obtained, wherein i is a natural number which is more than or equal to 1.
CN201510799111.8A 2015-11-18 2015-11-18 Hotspot device control method and device Active CN106713180B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510799111.8A CN106713180B (en) 2015-11-18 2015-11-18 Hotspot device control method and device
PCT/CN2016/086738 WO2016198007A1 (en) 2015-11-18 2016-06-22 Hotspot device control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510799111.8A CN106713180B (en) 2015-11-18 2015-11-18 Hotspot device control method and device

Publications (2)

Publication Number Publication Date
CN106713180A CN106713180A (en) 2017-05-24
CN106713180B true CN106713180B (en) 2020-09-04

Family

ID=57502979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510799111.8A Active CN106713180B (en) 2015-11-18 2015-11-18 Hotspot device control method and device

Country Status (2)

Country Link
CN (1) CN106713180B (en)
WO (1) WO2016198007A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108934025B (en) * 2018-06-12 2022-05-20 Oppo广东移动通信有限公司 Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN112911668B (en) * 2021-01-28 2023-03-24 浙江大华技术股份有限公司 Data transmission method, data transmission device, storage medium and electronic device
CN114125841B (en) * 2021-10-25 2024-05-24 西安闻泰电子科技有限公司 Hot spot network control method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790872A (en) * 2011-05-20 2012-11-21 中兴通讯股份有限公司 Video conference realizing method and system
CN102833831A (en) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 Network card device, routing device, system and method for realizing dynamic dormancy and wakeup
CN103731497A (en) * 2013-12-31 2014-04-16 华为终端有限公司 Method for supporting wireless access to storage device and mobile route hot point device
CN104601701A (en) * 2015-01-16 2015-05-06 深圳市中兴物联科技有限公司 Vehicle-mounted network equipment and method for realizing vehicle-mounted network equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8254253B2 (en) * 2006-07-05 2012-08-28 Nokia Corporation Conditional utilization of private short-range wireless networks for service provision and mobility
HUE029443T2 (en) * 2010-10-08 2017-02-28 Lg Electronics Inc Method for power saving in wireless local area network and apparatus for the same
CN102790742A (en) * 2011-03-25 2012-11-21 北京新岸线无线技术有限公司 OFDM-based data transmission method and system
CN102448147B (en) * 2011-12-21 2014-12-03 华为技术有限公司 Method and device for accessing wireless service
CN102547935B (en) * 2011-12-23 2015-08-19 华为终端有限公司 A kind of method and portable router controlling portable router low-power consumption work
CN102638874B (en) * 2012-03-28 2015-08-19 华为技术有限公司 Idle method and mobile router
CN103906059B (en) * 2012-12-28 2018-05-22 中国移动通信集团上海有限公司 WLAN access bandwidths distribution method, cut-in method and relevant apparatus and system
WO2015032036A1 (en) * 2013-09-04 2015-03-12 华为技术有限公司 Method and device for achieving interoperation between cellular network and wireless local area network
CN103997447A (en) * 2014-05-30 2014-08-20 宇龙计算机通信科技(深圳)有限公司 Access point switching method, access point equipment and terminal
CN104469915A (en) * 2014-12-24 2015-03-25 北京极科极客科技有限公司 Intelligent sleep method and device for wireless router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790872A (en) * 2011-05-20 2012-11-21 中兴通讯股份有限公司 Video conference realizing method and system
CN102833831A (en) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 Network card device, routing device, system and method for realizing dynamic dormancy and wakeup
CN103731497A (en) * 2013-12-31 2014-04-16 华为终端有限公司 Method for supporting wireless access to storage device and mobile route hot point device
CN104601701A (en) * 2015-01-16 2015-05-06 深圳市中兴物联科技有限公司 Vehicle-mounted network equipment and method for realizing vehicle-mounted network equipment

Also Published As

Publication number Publication date
WO2016198007A1 (en) 2016-12-15
CN106713180A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
US10425393B2 (en) Wireless local area network WLAN access method, terminal, and server
CN105095022B (en) Data backup method and device
CN102638797B (en) Access the method for wireless network, terminal, access network node and authentication server
US8954593B2 (en) Method and device for implementing remote control of a terminal
EP3319293A1 (en) Cross-terminal login-free method and device
EP4054218A1 (en) Direct communication processing method, device, relay terminal, and remote terminal
CN110267343B (en) Paging management method, network data analysis function and network side equipment
US20110292835A1 (en) Method, and device for configuring wifi parameters
KR101415431B1 (en) Method, device, and communication system for dormancy timer control
CN106713180B (en) Hotspot device control method and device
CN106657259B (en) Routing server and routing service method for server cluster
US8625462B2 (en) Ownership requests for access points
CN104185232B (en) A kind of mobile terminal stays network method, device and mobile terminal
CN104869621B (en) A kind of Network Recognition method and apparatus
CN106658625A (en) Network switching method and device
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
CN105451356B (en) SIM card resource allocation method and device
US20170134383A1 (en) Method and device for sharing a resource
CN108632355B (en) Routing method for household appliance network, control terminal, readable storage medium and equipment
CN106385356A (en) Login method and terminal, session establishing method and server
CN106105128A (en) The system and method that terminal, server, user identify
JP2018174404A (en) Communication control apparatus, communication control method, and program
US11153798B2 (en) Management of a mobile device in proximity of a home gateway with mobile connectivity to a wide area network
KR101749203B1 (en) Method for autonomy of base station, base band unit, base station and cloud base station system
CN114006807A (en) Client terminal equipment, configuration method thereof and configuration server

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200804

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co.,Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant before: ZTE Corp.

GR01 Patent grant
GR01 Patent grant