WO2015184823A1 - Access control method and device for mobile terminal, and computer storage medium - Google Patents

Access control method and device for mobile terminal, and computer storage medium Download PDF

Info

Publication number
WO2015184823A1
WO2015184823A1 PCT/CN2015/071371 CN2015071371W WO2015184823A1 WO 2015184823 A1 WO2015184823 A1 WO 2015184823A1 CN 2015071371 W CN2015071371 W CN 2015071371W WO 2015184823 A1 WO2015184823 A1 WO 2015184823A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
internet
network
network type
access control
Prior art date
Application number
PCT/CN2015/071371
Other languages
French (fr)
Chinese (zh)
Inventor
邵敏茹
吕何平
王伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015184823A1 publication Critical patent/WO2015184823A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions

Definitions

  • the present invention relates to the field of communications, and in particular, to an access control method and apparatus for a mobile terminal, and a computer storage medium.
  • the mobile terminal accesses the Internet, especially accessing the Internet through Wireless Fidelity (Wi-Fi), and generates data services according to the settings of the mobile terminal, for example, downloading an application update in the mobile terminal from the Internet. Files, send local backup files to the Internet, etc. Further, the App application in the mobile terminal intelligently selects whether to present a high-quality picture according to whether the mobile terminal is currently accessing a Wi-Fi network or a cellular network, and the user experience is improved to some extent.
  • Wi-Fi Wireless Fidelity
  • the UFI device is used as a hotspot (Access Point (AP)
  • AP Access Point
  • All data requests of the device are correspondingly forwarded, and the data sent and requested by the mobile terminal device to the Internet is faithfully forwarded.
  • This mode provides a better user experience for mobile terminal devices.
  • the data request of the station cannot be restricted according to the way that the Internet accesses the Internet, which makes it easy for the AP to exceed the limit when the AP accesses the Internet through the cellular mobile.
  • the data request of the mobile terminal connected to the AP cannot be restricted according to the manner in which the AP device accesses the Internet, which may cause the problem that the cellular mobile network of the AP exceeds the limit, and an effective technical solution has not been proposed.
  • the embodiment of the invention provides an access control method and device for a mobile terminal and a computer storage medium to solve at least the above problems.
  • an access control method for a mobile terminal where the mobile terminal is connected to an access point AP, and the method includes: detecting a network type used when an AP accesses the Internet; The network type controls a process in which the mobile terminal accesses the Internet through the AP.
  • Detecting the type of the network used by the AP to access the Internet including: obtaining a network type flag, determining the network type according to the value indicated by the network type flag bit; or querying the wireless fidelity WI-FI function of the AP Whether it is turned on, the network type is determined according to the query result.
  • Controlling, by the network type, the process of the mobile terminal accessing the Internet by using the AP includes: when the network type is indicated as the first network, prompting the user whether to enable the pre-configured Internet access control policy, where When the user determines to enable the pre-configured Internet access control policy, the mobile terminal accesses the Internet through the AP according to the pre-configured Internet access control policy. Controlling; otherwise, controlling, by the AP, the process of accessing the Internet through the AP according to the default Internet access control policy of the AP.
  • Controlling, by the network type, the process of the mobile terminal accessing the Internet by using the AP includes: when the network type is indicated as the second network, prompting the user whether to enable the pre-configured Internet access control policy; If yes, the process of the mobile terminal accessing the Internet through the AP is controlled according to the pre-configured Internet access control policy.
  • the pre-configured Internet access control policy controls, by the mobile terminal, the process of accessing the Internet by using the AP, including: acquiring current traffic usage of the mobile terminal, and pre-assigning the maximum available of the mobile terminal. Traffic; comparing the current traffic usage situation with the maximum available traffic; and controlling, by the comparison result, a process in which the mobile terminal accesses the Internet through the AP.
  • Controlling, by the comparison result, the mobile terminal accessing the Internet including: when the current traffic usage situation is greater than the maximum available traffic, disconnecting the mobile terminal from the AP; when the current When the traffic usage is less than or equal to the maximum available traffic, the service corresponding to the mobile terminal is further processed.
  • the maximum available traffic of the mobile terminal is allocated by assigning a maximum available traffic to the mobile terminal by a value entered by the user; or allocating a maximum available traffic to the mobile terminal according to a historical usage traffic record of the mobile terminal.
  • Acquiring the current traffic usage of the mobile terminal includes: when receiving data of the mobile terminal, recording an identifier of the mobile terminal, and accumulating a traffic value of the mobile terminal, where the identifier is used for a unique indication The mobile terminal uses the accumulated traffic value of the mobile terminal as the current traffic usage.
  • an access control apparatus for a mobile terminal, the mobile terminal being connected to an access point AP, the apparatus comprising: a detecting module, configured to detect when the AP accesses the Internet The network type adopted; the control module is configured to control, according to the network type, a process in which the mobile terminal accesses the Internet through the AP.
  • the detecting module includes: an acquiring unit, configured to acquire a network type flag bit, determine the network type according to a value indicated by the network type flag bit; or a query unit, configured to query the wireless fidelity WI of the AP Whether the FI function is turned on, the network type is determined according to the query result.
  • a computer storage medium for storing a program capable of executing the above method.
  • the technical solution for controlling the process of accessing the Internet by the mobile terminal connected to the AP according to the network type of the AP accessing the Internet according to the embodiment of the present invention solves the problem that the related art cannot connect to the Internet according to the AP device.
  • the data request of the AP's mobile terminal is restricted, which may cause the problem of the AP's cellular mobile network traffic exceeding the limit, so that only the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly connect based on the optimal solution.
  • the data request of the AP's mobile terminal is restricted, which may cause the problem of the AP's cellular mobile network traffic exceeding the limit, so that only the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly connect based on the optimal solution.
  • FIG. 1 is a flowchart of an access control method of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of an access control apparatus of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing another structure of an access control apparatus of a mobile terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an AP device having an Internet access control function according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a mobile terminal accessing an Internet according to a preferred embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a mobile terminal accessing an Internet according to a second embodiment of the present invention.
  • the mobile terminal in the embodiment of the present invention specifically refers to a mobile communication device with a Wi-Fi function, such as a smart phone, a tablet computer, and an internet box.
  • FIG. 1 is a flowchart of an access control method of the mobile terminal according to an embodiment of the present invention, as shown in FIG. As shown, the process includes the following steps:
  • Step S102 detecting a network type used when the AP accesses the Internet
  • Step S104 Control, according to the network type, a process in which the mobile terminal accesses the Internet through the AP.
  • the process of accessing the Internet by the mobile terminal connected to the AP can be controlled according to the network type of the AP accessing the Internet, and the mobile terminal connected to the AP cannot be connected in the related art according to the manner in which the AP device accesses the Internet.
  • the limitation of the data request may cause the problem that the AP's cellular mobile network traffic exceeds the limit, so that only the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly access the Internet based on the optimal solution. Make the AP more convenient and user-friendly.
  • the step S102 may be implemented in multiple manners.
  • the following two manners may be implemented: 1) acquiring a network type flag bit, according to the network type flag bit. The indicated value determines the network type; the network type flag corresponding to the different network relationship is preset, that is, the first status indication that can be passed through the network type identifier is the first network, and the second status indication by the network type flag Is the second network, 2) Query whether the WI-FI function of the AP is turned on, and determine the network type according to the query result. Specifically, when the WI-FI function is opened, the network type is determined to be the first network, when the query is performed.
  • the first network in the embodiment of the present invention may be understood as a local area network, that is, the AP device is connected to a local area network by wire or wirelessly, through wired or wireless.
  • a broadband network such as the broadband network provided by China Telecom/China Mobile
  • the second network can be understood as A cellular mobile network, that is, an AP device accesses the mobile Internet by means of an access point (APN) provided by an operator through a 3G/4G data service.
  • APN access point
  • the following technical solutions are provided in the embodiment of the present invention for controlling how the mobile terminal accesses the Internet through the AP according to the network type:
  • the embodiment of the present invention can be understood to be two cases (including the first network and the second network):
  • the Internet access control policy controls the process in which the mobile terminal accesses the Internet through the AP; otherwise, the process of accessing the Internet by the mobile terminal through the AP is controlled according to the default Internet access control policy of the AP.
  • the traffic restriction may not be user-friendly due to simple traffic restrictions.
  • the data service of the subsequent period cannot be guaranteed. It is.
  • the process of controlling, by the mobile terminal, the process of accessing the Internet by using the AP by using the AP may be implemented by acquiring the current traffic of the mobile terminal.
  • the obtained current traffic usage of the mobile terminal and the pre-allocated maximum available traffic of the mobile terminal may be obtained by:
  • the current traffic usage of the mobile terminal can be obtained by using at least two methods.
  • the embodiment of the present invention does not limit the following: 1) the maximum value of the mobile terminal is allocated by the value input by the user. Available traffic; 2) or allocate the maximum available traffic to the mobile terminal according to the historical usage traffic record of the mobile terminal.
  • the current traffic usage of the mobile terminal may be obtained by: when receiving the data of the mobile terminal, recording the identifier of the mobile terminal, and accumulating the traffic value of the mobile terminal, where the identifier is used to uniquely indicate the foregoing a mobile terminal; the accumulated traffic value of the mobile terminal is used as the current traffic usage.
  • Step 1 Set the network type flag to indicate the type of network used by the AP device.
  • the network type is the type of the Internet that the AP device is currently connected to, and specifically includes the first network and the second network in the foregoing embodiment.
  • Step 2 When the AP device starts up, query the network type currently used. If the AP device uses the first network, go to step 3, otherwise use the first network, go to step 5;
  • Step 3 Prompt the user to select whether the local area network has network traffic restrictions or access control requirements
  • Step 4 According to the user selection, if the local area network does not have the requirement of traffic restriction or access control, the station (mobile terminal) accesses the Internet through the AP device, and the AP device honestly forwards various data requests from the station; otherwise, it is equivalent to the first 2 network, go to step 5;
  • Step 5 Prompt the user whether to enable access control
  • Step 6 Determine the user's selection input. If the user chooses to enable access control, go to step 7. Otherwise, the AP device honestly forwards various data requests from the station.
  • Step 7 Enable the Internet access control policy.
  • the foregoing access control policy refers to a control strategy used when controlling a station connected to an AP device to access the Internet through the AP device and generating data transmission and reception.
  • the Internet control policy herein is related to the type of network determined in step 1, that is, the network type result determined in step 1 is fully used, and when the network type is the second network, statistics and downstream The data exchange traffic of the station is accumulated. When the network type is the first network, the data interaction with the downstream station will not be counted.
  • Step 8 The AP device performs data interaction with the station. According to the access control policy of step 7, the AP device processes the data sent or received by the request from the station.
  • an access control device for a mobile terminal is further provided, and the mobile terminal is connected to an AP, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 2 is a structural block diagram of an access control apparatus of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
  • the detecting module 20 is configured to detect a network type used when the AP accesses the Internet;
  • the control module 22 is connected to the detecting module 20 and configured to control, according to the network type, a process in which the mobile terminal accesses the Internet through the AP.
  • the process of accessing the Internet by the mobile terminal connected to the AP can be controlled according to the network type of the AP accessing the Internet, and the connection AP can be solved in a related art manner in which the AP device cannot access the Internet according to the AP device.
  • the data request of the mobile terminal is restricted, which may cause the problem that the AP's cellular mobile network traffic exceeds the limit, so that only the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly access based on the optimal solution.
  • the Internet makes the AP more convenient and user-friendly.
  • FIG. 3 is another structural block diagram of an access control apparatus of a mobile terminal according to an embodiment of the present invention.
  • the detecting module 20 includes:
  • the obtaining unit 200 is configured to obtain a network type flag, and determine the network type according to the value indicated by the network type flag bit, or the query unit 202 is configured to query whether the wireless fidelity (WI-FI) function of the AP is enabled. The above network type is determined according to the result of the query.
  • WI-FI wireless fidelity
  • an AP device controlled by an Internet access (hereinafter referred to as an AP device) is as shown in FIG. 4: the AP device includes:
  • the query module 40 is configured to query the detection module 20 of the foregoing embodiment, and is configured to query the network type used by the AP device to be the first network or the second network, and query whether the current network type has a traffic restriction or an access control requirement; The query module 40 can notify other modules of the queried result;
  • the setting module 42 is connected to the query module 40, configured to save the network type of the AP device, and save the user's selection; at the same time, the module can receive the notification message from other modules, and send the user option to the display module 44 to control Module 46 (corresponding to control module 22 of the above embodiment) sends whether the user selects access control;
  • the display module 44 is configured to receive a message from the setting module 42, display an option to the user, and display various prompt messages to the user;
  • the control module 46 completes the access control policy selection, and executes a flow control policy to control the station accessing the AP device to correctly access the Internet.
  • the network type used by the AP device is dynamically detected, so that the Station connected to the AP device intelligently accesses the Internet.
  • the type of network that can be used manages the mobile terminal service that accesses the Internet through itself, thereby achieving the purpose of access control and improving the user experience, and the present invention provides an AP device having this function. Specifically, it is detected that the AP device is currently using a cellular mobile network or a local area network, determines the current network type, and intelligently enables access control according to the network type and the user's selection, so that the station connected to the AP device is based on the optimal solution. Connected to the Internet correctly. In turn, the AP device is more convenient and user-friendly.
  • FIG. 5 is a schematic flowchart of a mobile terminal accessing the Internet according to a preferred embodiment of the present invention, as shown in FIG. 5:
  • a preferred embodiment of the present invention does not relate to the authentication and connection process of the AP and the Station, but based on the authentication and connection between the AP and the Station, that is, the flow involved in the preferred embodiment 1 of the present invention is established in the AP and the Station. Connected, able to interact and send and receive data after normal. As shown in FIG. 5, the above method includes:
  • Step S502 the AP device sets a network type flag Network_flag, and the network flag bit is used to distinguish whether the AP device is currently using a wired/wireless local area network or a cellular mobile network. If the AP device currently uses a wired/wireless local area network, it is referred to as accessing the first network, and Network_flag is set to 1; if the AP device currently uses the cellular mobile network, it is referred to as accessing the second network, and Network_flag is set to 2.
  • the above wired/wireless local area network means that the local AP device is connected to a local area network by wire or wirelessly, and is connected to the broadband network through a wired or wireless manner, for example, a broadband network provided by China Telecom/China Mobile, etc.;
  • the network refers to the AP device accessing the mobile Internet through the 3G/4G SIM card and the APN provided by the operator in the form of data service. This document is collectively referred to as the second network.
  • the preferred embodiment 1 of the present invention further provides a technical solution: by querying the setting module whether the Internet Wi-Fi function is turned on.
  • the above Internet Wi-Fi function can clearly mark whether the current AP device uses the 3G/4G Internet access method.
  • the Internet Wi-Fi function is turned on, it indicates that the current AP device is using the first network, and the second network is in the disabled state; otherwise, the second network is being used, that is, the cellular mobile network is connected to the Internet.
  • Other methods of judging that can achieve the same purpose are within the scope of protection of the embodiments of the present invention.
  • Step S504 When the AP device starts, query the current network type flag Network_flag to determine whether the current AP device uses the first network or the second network.
  • Step S510 determining according to the input selected by the user in step S508, when the user input includes flow control or other access control requirements, the AP device is equivalent to using the second network, and the process proceeds to step S514, otherwise, the process proceeds to step S512.
  • step S512 the AP device performs data interaction with the station according to the default scheme, and honestly forwards the data request of the station.
  • step S516 the determination is made according to the input selected by the user in step S514.
  • the process proceeds to step S518, otherwise, the process proceeds to step S512.
  • Step S5128 enabling and executing an internet access control policy, and filtering and forwarding the data request from the station.
  • step S528 For the preferred solution in step S518, the following will be described in detail in conjunction with the preferred embodiment 2 and FIG.
  • FIG. 6 is a schematic flowchart of a mobile terminal accessing the Internet according to a preferred embodiment 2 of the present invention, as shown in FIG.
  • Step S602 setting a data flow value (Data_total) available to the AP device.
  • the AP device can query the user for the data traffic available for a period of time through the display module.
  • the monthly data is input by the user, and the AP device can also input the data flow to the operator through the short message.
  • the data flow information is extracted and saved.
  • step S604 the setting module 42 sets the data flow value (Data_daily) that is allowed to be used in a future period at a fixed time.
  • the AP device can set a fixed time in each period according to a period of one day, for example, the time of the data flow available in the period is set at 00:00.
  • the data traffic value may be an average of the available traffic values for the current month set at the beginning of the month, or may be a percentage value of the currently available traffic.
  • step S608 each station is allocated a data flow value available in a future cycle.
  • the data traffic value allowed for use in a future cycle may be divided into two parts, one part of which is used as the margin Data_daily_reserve in the period, and the other part is used as the newly accessed station in the period; Station usage (Data_daily_exist).
  • the data request type or behavior of the station cannot be marked or monitored, but all requests are responded, which may result in an unsatisfactory uploading and downloading rate, and the station user may not be provided according to the way that the AP device accesses the Internet.
  • the preferred embodiment 2 of the present invention further provides the following technical solutions, which are mainly implemented by step S610, as follows:
  • Step S610 when receiving a data request from a certain station and transmitting and receiving data from the Station, recording the Station number (Station_ID) and accumulating the data flow value Station_data_daily_usage from the Station_ID;
  • Step S612 comparing whether Station_data_daily_usage exceeds Station_data_daily;
  • Step S616 sending a disconnect request to the station, and setting the disconnection reason to the traffic overrun. Disconnect the Station represented by this Station_ID.
  • the setting module 42 is configured to save the network type of the AP device; at the same time, it is set to record the input options of the user, including the input of the available traffic value, whether the Internet access control policy is enabled, etc.; at the same time, the notification and response can be sent and received with other modules.
  • the message is sent to the display module for the user option, and the control module 46 is sent whether the user selects the access control; at the same time, the connection to a certain station can be controlled.
  • the display module 44 is configured to receive the message from the setting module 42, display the input options to the user, and display various prompt messages to the user, and at the same time, can send and receive notification and response messages with other modules.
  • the control module 46 is configured to complete the access control policy selection and execute the Internet access control policy. At the same time, each station is allocated a data flow Station_data_daily available in a specific period, and the data traffic used by the station in a specific period is counted. Station_data_daily_usage, and based on this, it is determined whether the station is in a state of excessive traffic limit, and when a station is in a traffic overrun state, the setting module 42 is disconnected from the station; at the same time, the notification and corresponding message can be sent and received with other modules. .
  • the technical solution provided by the preferred embodiment 1 to the third embodiment of the present invention can dynamically detect the type of the network used by the AP device, so that the station connected to the AP device intelligently accesses the Internet, and the detailed detection is that the AP device is currently in use.
  • the cellular mobile network or the local area network determines the current network type, and intelligently enables access control according to the network type and the user's selection, so that the station connected to the AP device correctly accesses the Internet based on the optimal solution.
  • the AP device is more convenient and user-friendly.
  • a software is provided that is configured to perform the technical solutions described in the above embodiments and preferred embodiments.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • the embodiment of the present invention achieves the following technical effects: the related art cannot limit the data request of the mobile terminal connected to the AP according to the manner in which the AP device accesses the Internet, and may cause the cellular mobile network traffic of the AP to exceed
  • the limitation problem enables the access control to be enabled according to the network type, thereby enabling the mobile terminal to correctly access the Internet based on the optimal solution, thereby making the AP more convenient and user-friendly.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the access control method and apparatus for a mobile terminal and the computer storage medium provided by the embodiments of the present invention have the following beneficial effects: the related art cannot move the connected AP according to the manner in which the AP device accesses the Internet.
  • the limitation of the data request of the terminal may cause the problem that the AP's cellular mobile network traffic exceeds the limit, so that the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly access the Internet based on the optimal solution.

Landscapes

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

Abstract

Provided are an access control method and device for a mobile terminal, and a computer storage medium. The method comprises: detecting a network type adopted when an AP accesses the Internet; and according to the network type, controlling a process of a mobile terminal accessing the Internet through the AP. By means of the technical solution provided in the present invention, the problem in the related art that traffic of a cellular mobile network of an AP may overrun due to the fact that a data request of the mobile terminal connected to the AP cannot be limited in a manner of an AP device accessing the Internet is solved, so that only access control can be enabled according to the network type, thus enabling the mobile terminal to correctly access the Internet on the basis of using an optimal solution.

Description

移动终端的接入控制方法、装置及计算机存储介质Mobile terminal access control method, device and computer storage medium 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种移动终端的接入控制方法、装置及计算机存储介质。The present invention relates to the field of communications, and in particular, to an access control method and apparatus for a mobile terminal, and a computer storage medium.
背景技术Background technique
目前是广泛应用大数据所的时代,随着4G网络的出现,数据业务出现了快速增长,4G网络提供的高速上网业务可与现有的有线网络相媲美,因此,越来越多的用户使用手机或Ufi产品搭建热点,通过Wi-Fi功能将自身的4G数据业务分享给其它移动终端使用,而具有Wi-Fi功能的移动终端在相关领域中也已经是随处可见,通过Wi-Fi方式也已经成为接入互联网最广泛的方式。另外,便携式热点Ufi产品不但能够为其它移动终端提供Wi-Fi->蜂窝网络的互联网连接方式,更能够提供Wi-Fi->Wi-Fi的互联网接入方式,即通过Wi-Fi方式连接到互联网,同时将自身作为热点,供其它移动终端连接进而连接到互联网。而Ufi设备具有很强的移动性,越来越为普通用户接受,得到了广泛的使用。At present, it is the era of widespread application of big data. With the advent of 4G networks, data services have experienced rapid growth. The high-speed Internet services provided by 4G networks are comparable to existing wired networks, so more and more users use them. Mobile phones or Ufi products set up hotspots to share their 4G data services to other mobile terminals through Wi-Fi functions, while Wi-Fi-enabled mobile terminals are also widely available in related fields, also through Wi-Fi. It has become the most widely used way of accessing the Internet. In addition, the portable hotspot Ufi product can not only provide Wi-Fi->cellular Internet connection for other mobile terminals, but also provide Wi-Fi->Wi-Fi Internet access, which is connected to Wi-Fi. The Internet, at the same time, uses itself as a hotspot for other mobile terminals to connect to the Internet. The Ufi device has strong mobility and is more and more accepted by ordinary users and has been widely used.
而移动终端接入到互联网,尤其是通过无线保真(Wireless Fidelity,简称为Wi-Fi)接入到互联网,会根据移动终端的设置产生数据业务,例如从互联网下载移动终端中应用程序的更新文件、向互联网发送本地备份文件等。更进一步的,移动终端中的App应用程序会根据移动终端当前接入的是Wi-Fi网络或蜂窝网络而智能选择是否呈现高品质的画面等,都在一定程度上提高了用户体验。The mobile terminal accesses the Internet, especially accessing the Internet through Wireless Fidelity (Wi-Fi), and generates data services according to the settings of the mobile terminal, for example, downloading an application update in the mobile terminal from the Internet. Files, send local backup files to the Internet, etc. Further, the App application in the mobile terminal intelligently selects whether to present a high-quality picture according to whether the mobile terminal is currently accessing a Wi-Fi network or a cellular network, and the user experience is improved to some extent.
但是,目前的Ufi设备在作为热点(即接入点(Access Point,简称为AP))时,并未对所接入的移动终端设备(Station)的行为进行监控或标记,而是对移动终端设备的所有数据请求都予以相应,将移动终端设备向互联网发送和请求的数据如实转发。这种模式为移动终端设备虽然提供了较好的用户体验。但是由于未能对移动终端设备的行为进行区分,也未能根据自身接入互联网的方式来限制Station的数据请求,导致在AP通过蜂窝移动接入互联网时很容易流量超限。However, when the UFI device is used as a hotspot (Access Point (AP)), the behavior of the accessed mobile terminal device is not monitored or marked, but the mobile terminal is used. All data requests of the device are correspondingly forwarded, and the data sent and requested by the mobile terminal device to the Internet is faithfully forwarded. This mode provides a better user experience for mobile terminal devices. However, due to the failure to distinguish the behavior of the mobile terminal device, the data request of the station cannot be restricted according to the way that the Internet accesses the Internet, which makes it easy for the AP to exceed the limit when the AP accesses the Internet through the cellular mobile.
针对相关技术中,无法根据AP装置接入互联网的方式对连接AP的移动终端的数据请求进行限制,可能导致AP的蜂窝移动网络流量超限的问题,尚未提出有效的技术方案。 In the related art, the data request of the mobile terminal connected to the AP cannot be restricted according to the manner in which the AP device accesses the Internet, which may cause the problem that the cellular mobile network of the AP exceeds the limit, and an effective technical solution has not been proposed.
发明内容Summary of the invention
本发明实施例提供了一种移动终端的接入控制方法、装置及计算机存储介质,以至少解决上述问题。The embodiment of the invention provides an access control method and device for a mobile terminal and a computer storage medium to solve at least the above problems.
根据本发明的一个实施例,提供了一种移动终端的接入控制方法,所述移动终端与接入点AP连接,所述方法包括:检测AP接入互联网时所采用的网络类型;根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制。According to an embodiment of the present invention, an access control method for a mobile terminal is provided, where the mobile terminal is connected to an access point AP, and the method includes: detecting a network type used when an AP accesses the Internet; The network type controls a process in which the mobile terminal accesses the Internet through the AP.
检测AP接入互联网时所采用的网络类型,包括:获取网络类型标志位,根据所述网络类型标志位所指示的值确定所述网络类型;或查询所述AP的无线保真WI-FI功能是否打开,根据查询结果确定所述网络类型。Detecting the type of the network used by the AP to access the Internet, including: obtaining a network type flag, determining the network type according to the value indicated by the network type flag bit; or querying the wireless fidelity WI-FI function of the AP Whether it is turned on, the network type is determined according to the query result.
根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制,包括:当所述网络类型指示为第一网络时,提示用户是否启用预先配置的互联网接入控制策略,其中,在所述用户确定启用所述预先配置的所述互联网接入控制策略时,则根据所述预先配置的所述互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制;否则,按照所述AP默认的互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制。Controlling, by the network type, the process of the mobile terminal accessing the Internet by using the AP, includes: when the network type is indicated as the first network, prompting the user whether to enable the pre-configured Internet access control policy, where When the user determines to enable the pre-configured Internet access control policy, the mobile terminal accesses the Internet through the AP according to the pre-configured Internet access control policy. Controlling; otherwise, controlling, by the AP, the process of accessing the Internet through the AP according to the default Internet access control policy of the AP.
根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制,包括:当所述网络类型指示为第二网络时,提示用户是否启用预先配置的互联网接入控制策略;如果是,则根据所述预先配置的互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制。Controlling, by the network type, the process of the mobile terminal accessing the Internet by using the AP, includes: when the network type is indicated as the second network, prompting the user whether to enable the pre-configured Internet access control policy; If yes, the process of the mobile terminal accessing the Internet through the AP is controlled according to the pre-configured Internet access control policy.
所述预先配置的互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制,包括:获取所述移动终端当前的流量使用情况以及预先分配的所述移动终端的最大可用流量;比较所述当前的流量使用情况和所述最大可用流量;根据比较结果对移动终端通过所述AP接入所述互联网的过程进行控制。The pre-configured Internet access control policy controls, by the mobile terminal, the process of accessing the Internet by using the AP, including: acquiring current traffic usage of the mobile terminal, and pre-assigning the maximum available of the mobile terminal. Traffic; comparing the current traffic usage situation with the maximum available traffic; and controlling, by the comparison result, a process in which the mobile terminal accesses the Internet through the AP.
根据比较结果控制所述移动终端接入所述互联网,包括:当所述当前的流量使用情况大于所述最大可用流量时,断开所述移动终端与所述AP的连接;当所述当前的流量使用情况小于或者等于所述最大可用流量时,则继续处理所述移动终端对应的业务。 Controlling, by the comparison result, the mobile terminal accessing the Internet, including: when the current traffic usage situation is greater than the maximum available traffic, disconnecting the mobile terminal from the AP; when the current When the traffic usage is less than or equal to the maximum available traffic, the service corresponding to the mobile terminal is further processed.
通过以下方式分配所述移动终端的最大可用流量:通过用户输入的数值为所述移动终端分配最大可用流量;或根据所述移动终端的历史使用流量记录为所述移动终端分配最大可用流量。The maximum available traffic of the mobile terminal is allocated by assigning a maximum available traffic to the mobile terminal by a value entered by the user; or allocating a maximum available traffic to the mobile terminal according to a historical usage traffic record of the mobile terminal.
获取所述移动终端当前的流量使用情况包括:当接收到所述移动终端的数据时,记录所述移动终端的标识,并累计所述移动终端的流量值,其中,所述标识用于唯一指示所述移动终端;将累计后的所述移动终端的流量值作为所述当前的流量使用情况。Acquiring the current traffic usage of the mobile terminal includes: when receiving data of the mobile terminal, recording an identifier of the mobile terminal, and accumulating a traffic value of the mobile terminal, where the identifier is used for a unique indication The mobile terminal uses the accumulated traffic value of the mobile terminal as the current traffic usage.
根据本发明的另一个实施例,还提供了一种移动终端的接入控制装置,所述移动终端与接入点AP连接,所述装置包括:检测模块,设置为检测AP接入互联网时所采用的网络类型;控制模块,设置为根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制。According to another embodiment of the present invention, there is also provided an access control apparatus for a mobile terminal, the mobile terminal being connected to an access point AP, the apparatus comprising: a detecting module, configured to detect when the AP accesses the Internet The network type adopted; the control module is configured to control, according to the network type, a process in which the mobile terminal accesses the Internet through the AP.
所述检测模块包括:获取单元,设置为获取网络类型标志位,根据所述网络类型标志位所指示的值确定所述网络类型;或查询单元,设置为查询所述AP的无线保真WI-FI功能是否打开,根据查询结果确定所述网络类型。The detecting module includes: an acquiring unit, configured to acquire a network type flag bit, determine the network type according to a value indicated by the network type flag bit; or a query unit, configured to query the wireless fidelity WI of the AP Whether the FI function is turned on, the network type is determined according to the query result.
根据本发明的另一个实施例,还提供了一种计算机存储介质,用于存储能够执行上述方法的程序。According to another embodiment of the present invention, there is also provided a computer storage medium for storing a program capable of executing the above method.
通过本发明实施例,采用根据AP接入互联网的网络类型来对与AP连接的移动终端接入互联网的过程进行控制的技术方案,解决了相关技术中无法根据AP装置接入互联网的方式对连接AP的移动终端的数据请求进行限制,可能导致AP的蜂窝移动网络流量超限的问题,使得能够根据网络类型只能启用接入控制,进而使得移动终端能够在使用最优方案的基础上正确接入互联网。The technical solution for controlling the process of accessing the Internet by the mobile terminal connected to the AP according to the network type of the AP accessing the Internet according to the embodiment of the present invention solves the problem that the related art cannot connect to the Internet according to the AP device. The data request of the AP's mobile terminal is restricted, which may cause the problem of the AP's cellular mobile network traffic exceeding the limit, so that only the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly connect based on the optimal solution. Into the Internet.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的移动终端的接入控制方法的流程图;1 is a flowchart of an access control method of a mobile terminal according to an embodiment of the present invention;
图2是根据本发明实施例的移动终端的接入控制装置的结构框图;2 is a structural block diagram of an access control apparatus of a mobile terminal according to an embodiment of the present invention;
图3是根据本发明实施例的移动终端的接入控制装置的另一结构框图; 3 is a block diagram showing another structure of an access control apparatus of a mobile terminal according to an embodiment of the present invention;
图4是根据本发明实施例具有互联网接入控制功能的AP装置的结构示意图;4 is a schematic structural diagram of an AP device having an Internet access control function according to an embodiment of the present invention;
图5为根据本发明优选实施例一的移动终端接入互联网的流程示意图;FIG. 5 is a schematic flowchart of a mobile terminal accessing an Internet according to a preferred embodiment of the present invention; FIG.
图6为根据本发明优选实施例二的移动终端接入互联网的流程示意图。FIG. 6 is a schematic flowchart of a mobile terminal accessing an Internet according to a second embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明实施例的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the invention will be set forth in the description in the description which The objectives and other advantages of the embodiments of the present invention can be realized and obtained by the <RTIgt;
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
需要说明的是,本发明实施例中的移动终端具体指的是智能手机、平板电脑、上网盒等具有Wi-Fi功能的移动通信设备。It should be noted that the mobile terminal in the embodiment of the present invention specifically refers to a mobile communication device with a Wi-Fi function, such as a smart phone, a tablet computer, and an internet box.
在本实施例中提供了一种移动终端的接入控制方法,上述移动终端与接入点AP连接,图1是根据本发明实施例的移动终端的接入控制方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, an access control method for a mobile terminal is provided, where the mobile terminal is connected to an access point AP, and FIG. 1 is a flowchart of an access control method of the mobile terminal according to an embodiment of the present invention, as shown in FIG. As shown, the process includes the following steps:
步骤S102,检测AP接入互联网时所采用的网络类型;Step S102, detecting a network type used when the AP accesses the Internet;
步骤S104,根据上述网络类型对移动终端通过上述AP接入上述互联网的过程进行控制。Step S104: Control, according to the network type, a process in which the mobile terminal accesses the Internet through the AP.
通过上述各个步骤,能够根据AP接入互联网的网络类型来对与AP连接的移动终端接入互联网的过程进行控制,解决了相关技术中无法根据AP装置接入互联网的方式对连接AP的移动终端的数据请求进行限制,可能导致AP的蜂窝移动网络流量超限的问题,使得能够根据网络类型只能启用接入控制,进而使得移动终端能够在使用最优方案的基础上正确接入互联网,进而使得AP更加方便和人性化。 Through the foregoing steps, the process of accessing the Internet by the mobile terminal connected to the AP can be controlled according to the network type of the AP accessing the Internet, and the mobile terminal connected to the AP cannot be connected in the related art according to the manner in which the AP device accesses the Internet. The limitation of the data request may cause the problem that the AP's cellular mobile network traffic exceeds the limit, so that only the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly access the Internet based on the optimal solution. Make the AP more convenient and user-friendly.
在本发明实施例中,步骤S102可以有多种实现方式,在本发明实施例的一个可选示例中,可以通过以下两种方式实现:1)获取网络类型标志位,根据上述网络类型标志位所指示的值确定上述网络类型;网络类型标志位对应不同的网络关系是预先设置好的,即可以通过上述网络类型标志的第一状态指示是第一网络,通过网络类型标志的第二状态指示是第二网络,2)查询上述AP的WI-FI功能是否打开,根据查询结果确定上述网络类型,具体地,当查询出WI-FI功能打开时,确定网络类型是第一网络,当查询出WI-FI功能没有打开时,确定网络类型是第二网络,在本发明实施例中的第一网络可以理解为是局域网,即指AP装置通过有线或无线方式连接到某局域网,通过有线或无线方式连接到宽带网络,例如中国电信/中国移动所提供的宽带网络;而第二网络可以理解为是蜂窝移动网络,即指AP装置是通过3G/4G数据业务的方式,借助运营商提供的接入点(Access Point Name,简称为APN),接入移动互联网。In the embodiment of the present invention, the step S102 may be implemented in multiple manners. In an optional example of the embodiment of the present invention, the following two manners may be implemented: 1) acquiring a network type flag bit, according to the network type flag bit. The indicated value determines the network type; the network type flag corresponding to the different network relationship is preset, that is, the first status indication that can be passed through the network type identifier is the first network, and the second status indication by the network type flag Is the second network, 2) Query whether the WI-FI function of the AP is turned on, and determine the network type according to the query result. Specifically, when the WI-FI function is opened, the network type is determined to be the first network, when the query is performed. When the WI-FI function is not enabled, it is determined that the network type is the second network. The first network in the embodiment of the present invention may be understood as a local area network, that is, the AP device is connected to a local area network by wire or wirelessly, through wired or wireless. Way to connect to a broadband network, such as the broadband network provided by China Telecom/China Mobile; and the second network can be understood as A cellular mobile network, that is, an AP device accesses the mobile Internet by means of an access point (APN) provided by an operator through a 3G/4G data service.
在确定了网络类型后,对于如何根据网络类型对移动终端通过上述AP接入上述互联网的过程进行控制,本发明实施例提供了以下技术方案:After the network type is determined, the following technical solutions are provided in the embodiment of the present invention for controlling how the mobile terminal accesses the Internet through the AP according to the network type:
根据网络类型的不同,分为以下几种情况,本发明实施例可以理解为是两种情况(包括第一网络和第二网络):Depending on the type of the network, the following is the case. The embodiment of the present invention can be understood to be two cases (including the first network and the second network):
第一种情况First case
当上述网络类型指示为第一网络时,提示用户是否启用预先配置的互联网接入控制策略,其中,在上述用户确定启用上述预先配置的上述互联网接入控制策略时,则根据上述预先配置的上述互联网接入控制策略对移动终端通过上述AP接入上述互联网的过程进行控制;否则,按照上述AP默认的互联网接入控制策略对移动终端通过上述AP接入上述互联网的过程进行控制。When the network type is indicated as the first network, prompting the user whether to enable the pre-configured Internet access control policy, wherein, when the user determines to enable the foregoing pre-configured Internet access control policy, according to the foregoing pre-configured The Internet access control policy controls the process in which the mobile terminal accesses the Internet through the AP; otherwise, the process of accessing the Internet by the mobile terminal through the AP is controlled according to the default Internet access control policy of the AP.
第二种情况Second case
当上述网络类型指示为第二网络时,提示用户是否启用预先配置的互联网接入控制策略;如果是,则根据上述预先配置的互联网接入控制策略对移动终端通过上述AP接入上述互联网的过程进行控制。When the network type is indicated as the second network, prompting the user whether to enable the pre-configured Internet access control policy; if yes, the process of the mobile terminal accessing the Internet through the AP according to the pre-configured Internet access control policy Take control.
相关技术中,虽然部分Ufi设备在流量限制方面做了一定的用户体验改进,但是由于简单的流量限制可能导致流量限制不够人性化,当用户发现流量超限时,已经无法保后续一段时间的数据业务了。 In the related art, although some Ufi devices have a certain user experience improvement in terms of traffic limitation, the traffic restriction may not be user-friendly due to simple traffic restrictions. When the user finds that the traffic exceeds the limit, the data service of the subsequent period cannot be guaranteed. It is.
可选地,为了解决上述问题,在本发明实施例的一个示例中,可以通过如下技术方案实现上述对移动终端通过上述AP接入上述互联网的过程进行控制的过程:获取上述移动终端当前的流量使用情况以及预先分配的上述移动终端的最大可用流量;比较上述当前的流量使用情况和上述最大可用流量;根据比较结果对移动终端通过上述AP接入上述互联网的过程进行控制。Optionally, in order to solve the foregoing problem, in an example of the embodiment of the present invention, the process of controlling, by the mobile terminal, the process of accessing the Internet by using the AP by using the AP may be implemented by acquiring the current traffic of the mobile terminal. The usage situation and the pre-allocated maximum available traffic of the mobile terminal; comparing the current traffic usage situation and the maximum available traffic; and controlling, by the comparison terminal, the process of the mobile terminal accessing the Internet through the AP.
在本发明实施例中,获取的上述移动终端当前的流量使用情况以及预先分配的上述移动终端的最大可用流量分别可以通过以下方式获取:In the embodiment of the present invention, the obtained current traffic usage of the mobile terminal and the pre-allocated maximum available traffic of the mobile terminal may be obtained by:
对于预先分配的上述移动终端的最大可用流量移动终端当前的流量使用情况,可以通过以下至少两种方式获取,本发明实施例对此不作限定:1)通过用户输入的数值为上述移动终端分配最大可用流量;2)或根据上述移动终端的历史使用流量记录为上述移动终端分配最大可用流量。For the maximum available traffic of the mobile terminal that is pre-allocated, the current traffic usage of the mobile terminal can be obtained by using at least two methods. The embodiment of the present invention does not limit the following: 1) the maximum value of the mobile terminal is allocated by the value input by the user. Available traffic; 2) or allocate the maximum available traffic to the mobile terminal according to the historical usage traffic record of the mobile terminal.
对于移动终端当前的流量使用情况,可以通过以下方式获取:当接收到上述移动终端的数据时,记录上述移动终端的标识,并累计上述移动终端的流量值,其中,上述标识用于唯一指示上述移动终端;将累计后的上述移动终端的流量值作为上述当前的流量使用情况。The current traffic usage of the mobile terminal may be obtained by: when receiving the data of the mobile terminal, recording the identifier of the mobile terminal, and accumulating the traffic value of the mobile terminal, where the identifier is used to uniquely indicate the foregoing a mobile terminal; the accumulated traffic value of the mobile terminal is used as the current traffic usage.
其中,当上述当前的流量使用情况大于上述最大可用流量时,断开上述移动终端与上述AP的连接;当上述当前的流量使用情况小于或者等于上述最大可用流量时,则继续处理上述移动终端对应的业务。And when the current traffic usage situation is greater than the maximum available traffic, disconnecting the mobile terminal from the AP; and when the current traffic usage is less than or equal to the maximum available traffic, continuing to process the mobile terminal Business.
为了更好的理解上述移动终端的接入控制方法的流程,以下结合一个优选实施例进行说明,但不用于限定本发明实施例:In order to better understand the flow of the access control method of the mobile terminal, the following is described in conjunction with a preferred embodiment, but is not intended to limit the embodiments of the present invention:
步骤1:设置网络类型标志位,用于指示AP装置所使用的网络类型。上述网络类型是指AP装置当前连接互联网的类型,具体可以包括上述实施例中的第一网络和第二网络;Step 1: Set the network type flag to indicate the type of network used by the AP device. The network type is the type of the Internet that the AP device is currently connected to, and specifically includes the first network and the second network in the foregoing embodiment.
步骤2:当AP装置启动时,查询当前所使用的网络类型。如果AP装置使用了第一网络,转向步骤3,否则即使用第一网络,转向步骤5;Step 2: When the AP device starts up, query the network type currently used. If the AP device uses the first network, go to step 3, otherwise use the first network, go to step 5;
步骤3:提示用户选择局域网是否有网络流量限制或接入控制的需求;Step 3: Prompt the user to select whether the local area network has network traffic restrictions or access control requirements;
步骤4:根据用户选择进行判断,如果局域网不存在流量限制或接入控制的需求,Station(移动终端)通过AP装置接入互联网,AP装置诚实转发来自Station的各种数据请求;否则等同于第2网络,转向步骤5; Step 4: According to the user selection, if the local area network does not have the requirement of traffic restriction or access control, the station (mobile terminal) accesses the Internet through the AP device, and the AP device honestly forwards various data requests from the station; otherwise, it is equivalent to the first 2 network, go to step 5;
步骤5:提示用户是否启用接入控制;Step 5: Prompt the user whether to enable access control;
步骤6:判断用户的选择输入,如果用户选择启用接入控制,转向步骤7,否则AP装置诚实转发来自Station的各种数据请求;Step 6: Determine the user's selection input. If the user chooses to enable access control, go to step 7. Otherwise, the AP device honestly forwards various data requests from the station.
步骤7:启用互联网接入控制策略。上述的接入控制策略,是指控制连接到AP装置的Station通过AP装置接入互联网并产生数据收发时所使用的控制策略。Step 7: Enable the Internet access control policy. The foregoing access control policy refers to a control strategy used when controlling a station connected to an AP device to access the Internet through the AP device and generating data transmission and reception.
需要说明的是,此处的互联网控制策略,是与步骤1中判定的网络类型相关的,也就是充分使用了步骤1中判定的网络类型结果,当网络类型为第2网络时,统计与下游Station的数据交互流量并累计,当网络类型为第1网络时,将不会统计与下游Station的数据交互流量。It should be noted that the Internet control policy herein is related to the type of network determined in step 1, that is, the network type result determined in step 1 is fully used, and when the network type is the second network, statistics and downstream The data exchange traffic of the station is accumulated. When the network type is the first network, the data interaction with the downstream station will not be counted.
步骤8:AP装置与Station进行数据交互,根据步骤7的接入控制策略,AP装置对于来自Station的请求发送或收取的数据进行处理。Step 8: The AP device performs data interaction with the station. According to the access control policy of step 7, the AP device processes the data sent or received by the request from the station.
在本实施例中还提供了一种移动终端的接入控制装置,上述移动终端与AP连接,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an access control device for a mobile terminal is further provided, and the mobile terminal is connected to an AP, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的移动终端的接入控制装置的结构框图,如图2所示,该装置包括:2 is a structural block diagram of an access control apparatus of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
检测模块20,设置为检测AP接入互联网时所采用的网络类型;The detecting module 20 is configured to detect a network type used when the AP accesses the Internet;
控制模块22,与检测模块20连接,设置为根据上述网络类型对移动终端通过上述AP接入上述互联网的过程进行控制。The control module 22 is connected to the detecting module 20 and configured to control, according to the network type, a process in which the mobile terminal accesses the Internet through the AP.
通过上述各个模块的综合作用,能够根据AP接入互联网的网络类型来对与AP连接的移动终端接入互联网的过程进行控制,解决了相关技术中无法根据AP装置接入互联网的方式对连接AP的移动终端的数据请求进行限制,可能导致AP的蜂窝移动网络流量超限的问题,使得能够根据网络类型只能启用接入控制,进而使得移动终端能够在使用最优方案的基础上正确接入互联网,进而使得AP更加方便和人性化。Through the comprehensive function of the above-mentioned modules, the process of accessing the Internet by the mobile terminal connected to the AP can be controlled according to the network type of the AP accessing the Internet, and the connection AP can be solved in a related art manner in which the AP device cannot access the Internet according to the AP device. The data request of the mobile terminal is restricted, which may cause the problem that the AP's cellular mobile network traffic exceeds the limit, so that only the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly access based on the optimal solution. The Internet, in turn, makes the AP more convenient and user-friendly.
图3是根据本发明实施例的移动终端的接入控制装置的另一结构框图,如图3所示,检测模块20包括: FIG. 3 is another structural block diagram of an access control apparatus of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 3, the detecting module 20 includes:
获取单元200,设置为获取网络类型标志位,根据上述网络类型标志位所指示的值确定上述网络类型;或查询单元202,设置为查询上述AP的无线保真(WI-FI)功能是否打开,根据查询结果确定上述网络类型。The obtaining unit 200 is configured to obtain a network type flag, and determine the network type according to the value indicated by the network type flag bit, or the query unit 202 is configured to query whether the wireless fidelity (WI-FI) function of the AP is enabled. The above network type is determined according to the result of the query.
对于上述移动终端的接入控制装置的结构,为了更好的理解,以下结合另一个优选实施例进行说明:For a better understanding of the structure of the access control device of the above mobile terminal, the following describes another preferred embodiment:
以一种互联网接入控制的AP装置(以下统称为AP装置)为例,如图4所示:AP装置包括:For example, an AP device controlled by an Internet access (hereinafter referred to as an AP device) is as shown in FIG. 4: the AP device includes:
查询模块40,相当于上述实施例的检测模块20,设置为查询AP装置所使用的网络类型为第一网络或者第二网络,并查询当前网络类型是否存在流量限制或接入控制需求;同时,查询模块40能够向其他模块通知所查询到的结果;The query module 40 is configured to query the detection module 20 of the foregoing embodiment, and is configured to query the network type used by the AP device to be the first network or the second network, and query whether the current network type has a traffic restriction or an access control requirement; The query module 40 can notify other modules of the queried result;
设置模块42,与查询模块40连接,设置为保存AP装置的网络类型,并保存用户的选择;同时,此模块能够接收来自其他模块的通知消息,并向显示模块44发送供用户选项,向控制模块46(相当于上述实施例的控制模块22)发送用户是否选择接入控制;The setting module 42 is connected to the query module 40, configured to save the network type of the AP device, and save the user's selection; at the same time, the module can receive the notification message from other modules, and send the user option to the display module 44 to control Module 46 (corresponding to control module 22 of the above embodiment) sends whether the user selects access control;
显示模块44,设置为接收来自设置模块42的消息,向用户显示选项,并向用户显示各种提示消息;The display module 44 is configured to receive a message from the setting module 42, display an option to the user, and display various prompt messages to the user;
控制模块46:完成接入控制策略选择,并执行流量控制策略,控制接入AP装置的Station正确接入互联网。The control module 46: completes the access control policy selection, and executes a flow control policy to control the station accessing the AP device to correctly access the Internet.
即采用本发明优选实施例提供的上述技术方案,通过提出一种控制接入互联网的方法,动态检测AP装置所使用的网络类型,使得连接到AP装置的Station智能地接入互联网。能够使用的网络类型对通过自身接入互联网的移动终端业务进行管理,进而达到接入控制的目的,同时提高用户体验,同时本发明提供了一种具有此功能的AP装置。具体是检测AP装置当前正在使用蜂窝移动网络或局域网,确定当前的网络类型,并根据网络类型,结合用户的选择,智能启用接入控制,使得连接到AP装置的Station在使用最优方案的基础上正确接入互联网。进而使该AP装置更加方便和人性化。That is, by adopting the above technical solution provided by the preferred embodiment of the present invention, by proposing a method for controlling access to the Internet, the network type used by the AP device is dynamically detected, so that the Station connected to the AP device intelligently accesses the Internet. The type of network that can be used manages the mobile terminal service that accesses the Internet through itself, thereby achieving the purpose of access control and improving the user experience, and the present invention provides an AP device having this function. Specifically, it is detected that the AP device is currently using a cellular mobile network or a local area network, determines the current network type, and intelligently enables access control according to the network type and the user's selection, so that the station connected to the AP device is based on the optimal solution. Connected to the Internet correctly. In turn, the AP device is more convenient and user-friendly.
为了更加详细的理解本发明上述实施例以及优选实施例中涉及到得技术方案,以下另外结合三个优选实施例对上述技术方案进行详细的说明:但不用于限定本发明实施例的保护范围。 For a more detailed understanding of the above-mentioned embodiments and the preferred embodiments of the present invention, the above technical solutions are described in detail below in conjunction with the three preferred embodiments, but are not intended to limit the scope of protection of the embodiments of the present invention.
优选实施例一 Preferred embodiment 1
图5为根据本发明优选实施例一的移动终端接入互联网的流程示意图,如图5所示:FIG. 5 is a schematic flowchart of a mobile terminal accessing the Internet according to a preferred embodiment of the present invention, as shown in FIG. 5:
本发明优选实施例一种并没有涉及AP与Station的鉴权和连接过程,但是基于AP与Station的鉴权和连接,即本发明优选实施例一涉及的流程是在AP与Station已经建立了基本连接,能够正常交互和收发数据之后。如图5所示,上述方法包括:A preferred embodiment of the present invention does not relate to the authentication and connection process of the AP and the Station, but based on the authentication and connection between the AP and the Station, that is, the flow involved in the preferred embodiment 1 of the present invention is established in the AP and the Station. Connected, able to interact and send and receive data after normal. As shown in FIG. 5, the above method includes:
步骤S502,AP装置设置网络类型标志位Network_flag,上述网络标志位是用于区分AP装置当前使用的是有线/无线局域网或是蜂窝移动网络。如果AP装置当前使用有线/无线局域网时,称为接入了第一网络,将Network_flag设置为1;如果AP装置当前使用蜂窝移动网络,称为接入第二网络,将Network_flag设为2。Step S502, the AP device sets a network type flag Network_flag, and the network flag bit is used to distinguish whether the AP device is currently using a wired/wireless local area network or a cellular mobile network. If the AP device currently uses a wired/wireless local area network, it is referred to as accessing the first network, and Network_flag is set to 1; if the AP device currently uses the cellular mobile network, it is referred to as accessing the second network, and Network_flag is set to 2.
其中,上述的有线/无线局域网是指局AP装置通过有线或无线方式连接到某局域网,通过有线或无线方式连接到宽带网络,例如中国电信/中国移动所提供的宽带网络等;上述的蜂窝移动网络是指AP装置是通过3G/4G SIM卡,借助运营商提供的APN,以数据业务的方式,接入移动互联网,本文统称为第2网络。The above wired/wireless local area network means that the local AP device is connected to a local area network by wire or wirelessly, and is connected to the broadband network through a wired or wireless manner, for example, a broadband network provided by China Telecom/China Mobile, etc.; The network refers to the AP device accessing the mobile Internet through the 3G/4G SIM card and the APN provided by the operator in the form of data service. This document is collectively referred to as the second network.
当然,对于网络类型的判断,本发明优选实施例一还提供了一种技术方案:可以通过向设置模块查询Internet Wi-Fi功能是否打开。上述Internet Wi-Fi功能可明确标记当前AP装置是否使用了3G/4G上网方式。当Internet Wi-Fi功能打开时,表明当前AP装置正在使用第一网络,而第二网络处于禁用状态;否则正在使用第二网络,即蜂窝移动网络连接到互联网。对于可达到相同目的的其他判断方法,均在本发明实施例的保护范围内。Of course, for the determination of the network type, the preferred embodiment 1 of the present invention further provides a technical solution: by querying the setting module whether the Internet Wi-Fi function is turned on. The above Internet Wi-Fi function can clearly mark whether the current AP device uses the 3G/4G Internet access method. When the Internet Wi-Fi function is turned on, it indicates that the current AP device is using the first network, and the second network is in the disabled state; otherwise, the second network is being used, that is, the cellular mobile network is connected to the Internet. Other methods of judging that can achieve the same purpose are within the scope of protection of the embodiments of the present invention.
步骤S504,AP装置启动时,查询当前网络类型标志位Network_flag,以此来判定当前AP装置使用第一网络或者第二网络。Step S504: When the AP device starts, query the current network type flag Network_flag to determine whether the current AP device uses the first network or the second network.
步骤S506,根据步骤S502的查询结果进行判定,当AP装置正在使用第一网络(Network_flag=1)时,转向S111,否则(Network_flag=2)转向S121。Step S506, determining according to the query result of step S502, when the AP device is using the first network (Network_flag=1), the process proceeds to S111, otherwise (Network_flag=2) to S121.
步骤S508,当Network_flag=1时,表明AP正在使用第一网络,AP装置通过显示模块44询问用户当前局域网是否有流量限制或其他接入控制需求,上述的其他接入控制需求可能是儿童应用管理等。 Step S508, when Network_flag=1, indicating that the AP is using the first network, the AP device asks the user through the display module 44 whether the current local area network has traffic restriction or other access control requirements, and the other access control requirements may be child application management. Wait.
步骤S510,根据步骤S508中用户选择的输入进行判定,当用户输入项包含流量控制或其他接入控制需求时,等同于AP装置使用第二网络,转向步骤S514,否则转向步骤S512。Step S510, determining according to the input selected by the user in step S508, when the user input includes flow control or other access control requirements, the AP device is equivalent to using the second network, and the process proceeds to step S514, otherwise, the process proceeds to step S512.
步骤S512,AP装置按照默认的方案与Station进行数据交互,诚实转发Station的数据请求。In step S512, the AP device performs data interaction with the station according to the default scheme, and honestly forwards the data request of the station.
步骤S514,当Network_flag=2时,表明AP装置正在使用第二网络,AP装置通过显示模块44询问用户是否同意启动互联网接入控制策略。In step S514, when Network_flag=2, it indicates that the AP device is using the second network, and the AP device asks the user through the display module 44 whether to agree to start the Internet access control policy.
步骤S516,根据步骤S514中用户选择的输入进行判定,当用户输入项为同意启动互联网接入控制策略时,转向步骤S518,否则转向步骤S512。In step S516, the determination is made according to the input selected by the user in step S514. When the user input item is agreed to start the Internet access control policy, the process proceeds to step S518, otherwise, the process proceeds to step S512.
步骤S518,启用并执行互联网接入控制策略,对来自Station的数据请求进行过滤转发。Step S518, enabling and executing an internet access control policy, and filtering and forwarding the data request from the station.
而对于步骤S518中的优选方案,以下将结合优选实施例二以及附图6进行详细说明:For the preferred solution in step S518, the following will be described in detail in conjunction with the preferred embodiment 2 and FIG.
优选实施例二Preferred embodiment two
图6为根据本发明优选实施例二的移动终端接入互联网的流程示意图,如图6所示:FIG. 6 is a schematic flowchart of a mobile terminal accessing the Internet according to a preferred embodiment 2 of the present invention, as shown in FIG.
步骤S602,设置AP装置可用的数据流量值(Data_total)。Step S602, setting a data flow value (Data_total) available to the AP device.
优选的,AP装置可通过显示模块向用户询问一段时间内可用的数据流量,典型的以月度为单位,由用户输入每月份可用的数据流量;AP装置也可通过短消息向运营商网络客服号码发送查询消息。在收到来自客服号码的回复消息后,提取其中的数据流量信息并保存。Preferably, the AP device can query the user for the data traffic available for a period of time through the display module. Typically, the monthly data is input by the user, and the AP device can also input the data flow to the operator through the short message. Send a query message. After receiving the reply message from the customer service number, the data flow information is extracted and saved.
步骤S604,设置模块42在固定时间设置未来一个周期内允许使用的数据流量值(Data_daily)。In step S604, the setting module 42 sets the data flow value (Data_daily) that is allowed to be used in a future period at a fixed time.
其中,AP装置可按照1天为周期,在每个周期内固定时间,如00:00时刻设置该周期内可用的数据流量值。此数据流量值可以是月初设置的当月可用流量值平均分配到每天的数据流量值,也可以是当前可用流量值得某个百分比数值。 The AP device can set a fixed time in each period according to a period of one day, for example, the time of the data flow available in the period is set at 00:00. The data traffic value may be an average of the available traffic values for the current month set at the beginning of the month, or may be a percentage value of the currently available traffic.
步骤S606,对比AP装置的最大客户端接入量Station_max(默认为10)和已接入的客户端数量,得到接入百分比Station_rate。例如:当前接入的Station数量为2,而最大接入Station数量为10,那么Station_rate=0.2。Step S606, comparing the maximum client access amount Station_max (default is 10) of the AP device and the number of clients that have been accessed, and obtaining the access percentage Station_rate. For example, the number of stations currently connected is 2, and the maximum number of stations connected is 10, then Station_rate=0.2.
步骤S608,为每个Station分配未来一个周期内可用的数据流量值。In step S608, each station is allocated a data flow value available in a future cycle.
可选地,可将未来一个周期内允许使用的数据流量值分为两部分,其中一部分作为该周期内的余量Data_daily_reserve,供该周期内新接入的Station使用;另一部分作为已接入的Station的用量(Data_daily_exist)。每个Station可分得的允许使用流量值为Station_data_daily=Data_daily_exist/Station_max/Station_rate.Optionally, the data traffic value allowed for use in a future cycle may be divided into two parts, one part of which is used as the margin Data_daily_reserve in the period, and the other part is used as the newly accessed station in the period; Station usage (Data_daily_exist). The permissible flow value for each Station can be assigned to Station_data_daily=Data_daily_exist/Station_max/Station_rate.
相关技术中无法对Station的数据请求类型或行为进行标记或监控,而是对所有请求都予以响应,可能导致上传下载的速率不理想,无法根据AP装置接入互联网的方式为Station用户提供好的用户体验的问题,本发明优选实施例二还提供了以下技术方案进行解决,主要通过步骤S610来体现,如下所示:In the related art, the data request type or behavior of the station cannot be marked or monitored, but all requests are responded, which may result in an unsatisfactory uploading and downloading rate, and the station user may not be provided according to the way that the AP device accesses the Internet. For the problem of the user experience, the preferred embodiment 2 of the present invention further provides the following technical solutions, which are mainly implemented by step S610, as follows:
步骤S610,在收到来自某个Station的数据请求并收发来自该Station的数据时,记录此Station编号(Station_ID)并累计来自此Station_ID的数据流量值Station_data_daily_usage;Step S610, when receiving a data request from a certain station and transmitting and receiving data from the Station, recording the Station number (Station_ID) and accumulating the data flow value Station_data_daily_usage from the Station_ID;
需要说明的是,记录并累计来自某Station_ID的数据流量时,是需要根据AP当前使用的网络类型来判定的。如果AP当前正在使用第一网络,不需要对来自Station的数据流量进行统计,只有当AP当前正在使用第二网络时,才需要将来自Station的流量记录并累计到对应的Station_ID。It should be noted that when recording and accumulating data traffic from a certain Station_ID, it is determined according to the type of network currently used by the AP. If the AP is currently using the first network, there is no need to count the data traffic from the Station. Only when the AP is currently using the second network, the traffic from the Station needs to be recorded and accumulated to the corresponding Station_ID.
步骤S612,比较Station_data_daily_usage是否超过Station_data_daily;Step S612, comparing whether Station_data_daily_usage exceeds Station_data_daily;
步骤S614,根据步骤S612的比较结果,当Station_data_daily_usage>=Station_data_daily,转向S208,否则继续转向步骤S610。In step S614, according to the comparison result of step S612, when Station_data_daily_usage>=Station_data_daily, the process proceeds to S208, otherwise, the process proceeds to step S610.
步骤S616,向此Station发送断开请求,并将断开原因设置为流量超限。断开此Station_ID所代表的Station。Step S616, sending a disconnect request to the station, and setting the disconnection reason to the traffic overrun. Disconnect the Station represented by this Station_ID.
优选实施例三Preferred embodiment three
需要说明的是,本发明优选实施例三所涉及到的模块,在本发明实施例上述提供的技术方案中已经简单说明,以下对这些模块的主要功能进行描述,如图4所示: It should be noted that the modules involved in the third embodiment of the present invention have been briefly described in the technical solutions provided by the foregoing embodiments of the present invention. The main functions of these modules are described below, as shown in FIG. 4:
查询模块40,设置为查询AP装置所使用的网络类型为第一网络(Network_flag=1)或者第二网络(Network_flag=2);同时,设置为查询当前网络类型是否存在流量限制或接入控制需求;同时,设置为查询AP设置可用的数据流量值;同时,查询模块40能够向其他模块通知所查询到的结果,同时,能够与其他模块之间收发通知和响应消息。The querying module 40 is configured to query the network type used by the AP device to be the first network (Network_flag=1) or the second network (Network_flag=2); at the same time, set to query whether the current network type has a traffic restriction or an access control requirement. At the same time, it is set to query the AP to set the available data traffic value; at the same time, the query module 40 can notify other modules of the queried result, and at the same time, can send and receive notification and response messages with other modules.
设置模块42,设置为保存AP装置的网络类型;同时,设置为记录用户的输入选项,包括可用流量值输入,是否启用互联网接入控制策略等;同时,能够与其他模块之间收发通知和响应消息,并向显示模块发送供用户选项,向控制模块46发送用户是否选择接入控制;同时能够控制断开与某Station的连接。The setting module 42 is configured to save the network type of the AP device; at the same time, it is set to record the input options of the user, including the input of the available traffic value, whether the Internet access control policy is enabled, etc.; at the same time, the notification and response can be sent and received with other modules. The message is sent to the display module for the user option, and the control module 46 is sent whether the user selects the access control; at the same time, the connection to a certain station can be controlled.
显示模块44,设置为接收来自设置模块42的消息,向用户显示输入选项,并向用户显示各种提示消息,同时,能够与其他模块之间收发通知和响应消息。The display module 44 is configured to receive the message from the setting module 42, display the input options to the user, and display various prompt messages to the user, and at the same time, can send and receive notification and response messages with other modules.
控制模块46:设置为完成接入控制策略选择,并执行互联网接入控制策略;同时,为每个Station分配一个特定周期内可用的数据流量Station_data_daily,统计Station在一个特定周期内已用的数据流量Station_data_daily_usage,并在此基础上判定该Station是否处于流量超限的状态,当某Station处于流量超限状态时通知设置模块42断开此Station连接;同时,能够与其他模块之间收发通知和相应消息。The control module 46 is configured to complete the access control policy selection and execute the Internet access control policy. At the same time, each station is allocated a data flow Station_data_daily available in a specific period, and the data traffic used by the station in a specific period is counted. Station_data_daily_usage, and based on this, it is determined whether the station is in a state of excessive traffic limit, and when a station is in a traffic overrun state, the setting module 42 is disconnected from the station; at the same time, the notification and corresponding message can be sent and received with other modules. .
采用本发明优选实施例一至优选实施例三所提供的技术方案,能够动态检测AP装置所使用的网络类型,使得连接到AP装置的Station智能地接入互联网,详细的是检测AP装置当前正在使用蜂窝移动网络或局域网,确定当前的网络类型,并根据网络类型,结合用户的选择,智能启用接入控制,使得连接到AP装置的Station在使用最优方案的基础上正确接入互联网。进而使该AP装置更加方便和人性化。The technical solution provided by the preferred embodiment 1 to the third embodiment of the present invention can dynamically detect the type of the network used by the AP device, so that the station connected to the AP device intelligently accesses the Internet, and the detailed detection is that the AP device is currently in use. The cellular mobile network or the local area network determines the current network type, and intelligently enables access control according to the network type and the user's selection, so that the station connected to the AP device correctly accesses the Internet based on the optimal solution. In turn, the AP device is more convenient and user-friendly.
在另外一个实施例中,还提供了一种软件,该软件设置为执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, a software is provided that is configured to perform the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的对象在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、 产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the objects so used are interchangeable, where appropriate, so that the embodiments of the invention described herein can be carried out in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion, for example, a process, method, system, The product or device is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
综上所述,本发明实施例达到了以下技术效果:解决了相关技术中无法根据AP装置接入互联网的方式对连接AP的移动终端的数据请求进行限制,可能导致AP的蜂窝移动网络流量超限的问题,使得能够根据网络类型只能启用接入控制,进而使得移动终端能够在使用最优方案的基础上正确接入互联网,进而使得AP更加方便和人性化。In summary, the embodiment of the present invention achieves the following technical effects: the related art cannot limit the data request of the mobile terminal connected to the AP according to the manner in which the AP device accesses the Internet, and may cause the cellular mobile network traffic of the AP to exceed The limitation problem enables the access control to be enabled according to the network type, thereby enabling the mobile terminal to correctly access the Internet based on the optimal solution, thereby making the AP more convenient and user-friendly.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种移动终端的接入控制方法、装置及计算机存储介质,具有以下有益效果:解决了相关技术中无法根据AP装置接入互联网的方式对连接AP的移动终端的数据请求进行限制,可能导致AP的蜂窝移动网络流量超限的问题,使得能够根据网络类型只能启用接入控制,进而使得移动终端能够在使用最优方案的基础上正确接入互联网。 As described above, the access control method and apparatus for a mobile terminal and the computer storage medium provided by the embodiments of the present invention have the following beneficial effects: the related art cannot move the connected AP according to the manner in which the AP device accesses the Internet. The limitation of the data request of the terminal may cause the problem that the AP's cellular mobile network traffic exceeds the limit, so that the access control can be enabled according to the network type, thereby enabling the mobile terminal to correctly access the Internet based on the optimal solution.

Claims (11)

  1. 一种移动终端的接入控制方法,所述移动终端与接入点AP连接,所述方法包括:An access control method for a mobile terminal, where the mobile terminal is connected to an access point AP, the method includes:
    检测AP接入互联网时所采用的网络类型;Detecting the type of network used by the AP to access the Internet;
    根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制。Controlling, by the network type, a process in which the mobile terminal accesses the Internet through the AP according to the network type.
  2. 根据权利要求1所述的方法,其中,检测AP接入互联网时所采用的网络类型,包括:The method of claim 1, wherein detecting a type of network used by the AP to access the Internet comprises:
    获取网络类型标志位,根据所述网络类型标志位所指示的值确定所述网络类型;或Obtaining a network type flag bit, determining the network type according to a value indicated by the network type flag bit; or
    查询所述AP的无线保真WI-FI功能是否打开,根据查询结果确定所述网络类型。Query whether the wireless fidelity WI-FI function of the AP is turned on, and determine the network type according to the query result.
  3. 根据权利要求1所述的方法,其中,根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制,包括:The method of claim 1, wherein the controlling the process of the mobile terminal accessing the Internet through the AP according to the network type comprises:
    当所述网络类型指示为第一网络时,提示用户是否启用预先配置的互联网接入控制策略,其中,在所述用户确定启用所述预先配置的所述互联网接入控制策略时,则根据所述预先配置的所述互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制;否则,按照所述AP默认的互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制。When the network type is indicated as the first network, prompting the user whether to enable the pre-configured Internet access control policy, wherein, when the user determines to enable the pre-configured Internet access control policy, The pre-configured Internet access control policy controls a process in which the mobile terminal accesses the Internet through the AP; otherwise, the mobile terminal accesses the AP through the AP according to the default Internet access control policy of the AP. The process of the Internet is controlled.
  4. 根据权利要求1所述的方法,其中,根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制,包括:The method of claim 1, wherein the controlling the process of the mobile terminal accessing the Internet through the AP according to the network type comprises:
    当所述网络类型指示为第二网络时,提示用户是否启用预先配置的互联网接入控制策略;When the network type is indicated as the second network, prompting the user whether to enable the pre-configured Internet access control policy;
    如果是,则根据所述预先配置的互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制。If yes, controlling, by the pre-configured Internet access control policy, a process in which the mobile terminal accesses the Internet through the AP.
  5. 根据权利要求3或4所述的方法,其中,所述预先配置的互联网接入控制策略对移动终端通过所述AP接入所述互联网的过程进行控制,包括: The method according to claim 3 or 4, wherein the pre-configured Internet access control policy controls a process in which the mobile terminal accesses the Internet through the AP, including:
    获取所述移动终端当前的流量使用情况以及预先分配的所述移动终端的最大可用流量;Obtaining current traffic usage of the mobile terminal and pre-assigned maximum available traffic of the mobile terminal;
    比较所述当前的流量使用情况和所述最大可用流量;Comparing the current traffic usage and the maximum available traffic;
    根据比较结果对移动终端通过所述AP接入所述互联网的过程进行控制。The process of the mobile terminal accessing the Internet through the AP is controlled according to the comparison result.
  6. 根据权利要求5所述的方法,其中,根据比较结果控制所述移动终端接入所述互联网,包括:The method according to claim 5, wherein controlling the mobile terminal to access the Internet according to the comparison result comprises:
    当所述当前的流量使用情况大于所述最大可用流量时,断开所述移动终端与所述AP的连接;Disconnecting the mobile terminal from the AP when the current traffic usage is greater than the maximum available traffic;
    当所述当前的流量使用情况小于或者等于所述最大可用流量时,则继续处理所述移动终端对应的业务。When the current traffic usage is less than or equal to the maximum available traffic, the service corresponding to the mobile terminal is continued to be processed.
  7. 根据权利要求5所述的方法,其中,通过以下方式分配所述移动终端的最大可用流量:The method of claim 5, wherein the maximum available traffic of the mobile terminal is allocated by:
    通过用户输入的数值为所述移动终端分配最大可用流量;或Allocating the maximum available traffic to the mobile terminal by a value entered by the user; or
    根据所述移动终端的历史使用流量记录为所述移动终端分配最大可用流量。Allocating a maximum available traffic to the mobile terminal according to a historical usage flow record of the mobile terminal.
  8. 根据权利要求5所述的方法,其中,获取所述移动终端当前的流量使用情况包括:The method of claim 5, wherein obtaining the current traffic usage of the mobile terminal comprises:
    当接收到所述移动终端的数据时,记录所述移动终端的标识,并累计所述移动终端的流量值,其中,所述标识用于唯一指示所述移动终端;And when the data of the mobile terminal is received, the identifier of the mobile terminal is recorded, and the traffic value of the mobile terminal is accumulated, where the identifier is used to uniquely indicate the mobile terminal;
    将累计后的所述移动终端的流量值作为所述当前的流量使用情况。The accumulated traffic value of the mobile terminal is used as the current traffic usage.
  9. 一种移动终端的接入控制装置,所述移动终端与接入点AP连接,所述装置包括:An access control device for a mobile terminal, the mobile terminal is connected to an access point AP, and the device includes:
    检测模块,设置为检测AP接入互联网时所采用的网络类型;The detecting module is configured to detect a type of network used when the AP accesses the Internet;
    控制模块,设置为根据所述网络类型对移动终端通过所述AP接入所述互联网的过程进行控制。And a control module, configured to control, according to the network type, a process in which the mobile terminal accesses the Internet through the AP.
  10. 根据权利要求9所述的装置,其中,所述检测模块包括:The apparatus of claim 9 wherein said detecting module comprises:
    获取单元,设置为获取网络类型标志位,根据所述网络类型标志位所指示的值确定所述网络类型;或 An obtaining unit, configured to obtain a network type flag bit, and determine the network type according to a value indicated by the network type flag bit; or
    查询单元,设置为查询所述AP的无线保真WI-FI功能是否打开,根据查询结果确定所述网络类型。The query unit is configured to query whether the wireless fidelity WI-FI function of the AP is turned on, and determine the network type according to the query result.
  11. 一种计算机存储介质,用于存储能够执行如权利要求1至8中任一项所述的方法的程序。 A computer storage medium for storing a program capable of performing the method of any one of claims 1 to 8.
PCT/CN2015/071371 2014-10-24 2015-01-22 Access control method and device for mobile terminal, and computer storage medium WO2015184823A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410578275.3A CN105530198A (en) 2014-10-24 2014-10-24 Access control method and device for mobile terminal
CN201410578275.3 2014-10-24

Publications (1)

Publication Number Publication Date
WO2015184823A1 true WO2015184823A1 (en) 2015-12-10

Family

ID=54766058

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071371 WO2015184823A1 (en) 2014-10-24 2015-01-22 Access control method and device for mobile terminal, and computer storage medium

Country Status (2)

Country Link
CN (1) CN105530198A (en)
WO (1) WO2015184823A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257797A (en) * 2018-10-26 2019-01-22 上海连尚网络科技有限公司 For identifying the method and apparatus of wireless access point

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592660A (en) * 2016-07-07 2018-01-16 中兴通讯股份有限公司 Method, hotspot device and the terminal device that mobile WIFI hot spot preferably accesses
CN106385384B (en) * 2016-08-31 2020-06-23 迈普通信技术股份有限公司 Message sending method and network equipment
CN106255135A (en) * 2016-09-09 2016-12-21 深圳市金立通信设备有限公司 A kind of network type determines method and terminal
CN106413003A (en) * 2016-11-30 2017-02-15 惠州Tcl移动通信有限公司 Flow control method and system of mobile terminal in connection to wireless hotspot
CN113225767A (en) * 2021-04-19 2021-08-06 深圳市安全守护科技有限公司 Monitoring management method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364979A (en) * 2011-10-26 2012-02-29 中兴通讯股份有限公司 Method and system for connecting mobile terminal into network
US20120240197A1 (en) * 2011-03-18 2012-09-20 Smith Micro Software, Inc. Managing Tethered Data Traffic Over a Hotspot Network
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN103501333A (en) * 2013-09-29 2014-01-08 小米科技有限责任公司 Method, device and terminal equipment for downloading files
CN103945410A (en) * 2014-03-28 2014-07-23 宇龙计算机通信科技(深圳)有限公司 Terminal device and flow control method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2825561B1 (en) * 2001-06-01 2005-04-15 Nortel Networks Ltd METHOD FOR TRANSMITTING IP PACKETS THROUGH A CELLULAR RADIOCOMMUNICATION SYSTEM, AND CELLULAR SYSTEM EQUIPMENT FOR CARRYING OUT SAID METHOD
CN101277477B (en) * 2008-04-29 2012-04-04 华为技术有限公司 Method, apparatus and system for equalizing flux
CN102223680B (en) * 2010-04-16 2013-08-07 华为技术有限公司 Flow control method, equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120240197A1 (en) * 2011-03-18 2012-09-20 Smith Micro Software, Inc. Managing Tethered Data Traffic Over a Hotspot Network
CN102364979A (en) * 2011-10-26 2012-02-29 中兴通讯股份有限公司 Method and system for connecting mobile terminal into network
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN103501333A (en) * 2013-09-29 2014-01-08 小米科技有限责任公司 Method, device and terminal equipment for downloading files
CN103945410A (en) * 2014-03-28 2014-07-23 宇龙计算机通信科技(深圳)有限公司 Terminal device and flow control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257797A (en) * 2018-10-26 2019-01-22 上海连尚网络科技有限公司 For identifying the method and apparatus of wireless access point
CN109257797B (en) * 2018-10-26 2023-03-14 上海尚往网络科技有限公司 Method and apparatus for identifying wireless access points

Also Published As

Publication number Publication date
CN105530198A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
US10314098B2 (en) Method and apparatus for connecting short-range wireless communication in terminal
WO2015184823A1 (en) Access control method and device for mobile terminal, and computer storage medium
CN105471481B (en) System and method for bluetooth pairing with a set of bluetooth devices
WO2015157949A1 (en) Wireless local area network (wlan) access method, terminal and server
CN113206753B (en) Information configuration method and management unit
CN103826323A (en) Wireless network connection method, terminal and mobile terminal
JP6468618B2 (en) Method, apparatus, and system for enhancing parallel processing capability of a wireless local area network
US9894565B2 (en) Communication connection establishment method and mediation device
WO2013173962A1 (en) Communication method and system, access network device, terminal, and core network device
US9924364B2 (en) User management method of shared network, and corresponding device and system
JP2019514245A (en) Method and device for establishing an association between terminal devices
WO2015035573A1 (en) Network transmission method and apparatus
JP6984954B2 (en) Remote control method for cloud systems and application execution devices
WO2016198007A1 (en) Hotspot device control method and apparatus
US20220141762A1 (en) Network slice selection in a wireless telecommunications network
WO2019136925A1 (en) Data transmission method and apparatus, and computer storage medium
CN112383910B (en) Gateway and intelligent equipment network distribution method
WO2018010160A1 (en) Mobile data sharing method and mobile terminal
WO2013000430A1 (en) Data volume adjustment method and device
WO2013143206A1 (en) Terminal and method for acquiring called number user&#39;s state
WO2016172971A1 (en) Method for determining and indicating user plane cell of service, bearer establishment method and device
JP2017085233A (en) Communication management apparatus and relay terminal
CN105323848B (en) Data channel control method and device and server
CN107211479B (en) Method and device for selecting access network
WO2023007537A1 (en) Communication control device, communication control system, and communication control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15803815

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15803815

Country of ref document: EP

Kind code of ref document: A1