Wireless communication device and method for adjusting maximum number of accesses thereby

A wireless communication device and a method for adjusting a maximum number of accesses thereby are provided. The wireless communication device comprises a network speed providing module and a Wireless Local Area Network (WLAN) access number control module, wherein the network speed providing module is configured to provide a speed at a network side to a WLAN side; and the WLAN access number control module is configured to adjust a maximum number of accesses of a WLAN according to the speed at the network side provided by the network speed providing module. Through the disclosure, communication quality is ensured for an Internet user by adjusting a maximum number of user accesses of Wireless Fidelity (Wi-Fi); and when the network gets worse, the access of an excess user is not allowed or some users are removed according to a user rule.

TECHNICAL FIELD

The disclosure relates to the field of communication technologies, and in particular to a wireless communication device and a method for adjusting a maximum number of accesses thereby.

BACKGROUND

With the development and popularization of third generation (3G) mobile communication technology, a wireless network card is becoming popular. In the case of good network performance, a user can browse complex web pages, perform high-speed download, play online games, watch online videos and the like by using a wireless network card freely. Such operations are dependent heavily on a high network speed. In many cases, however, a network environment is not ideal, for example, when a network load is relatively high, or when the wireless attenuation of an environment where a user is located is relatively serious. Furthermore, some users may use a 2G network for surfing. At present, the basic situation of the 2G network is as follows: theoretical downlink speeds of Code Division Multiple Access (CDMA) 1x, General Packet Radio Service (GPRS) and Enhanced Data speed for GSM Evolution (EDGE) are 153.6 Kbps, 85.6 Kbps and 236.8 Kbps respectively. Opening any web will require traffic of hundreds of kilobytes (KB), so the GPRS can only meet general requirements of one user on traffic.

It is found in the test that a bandwidth allocated to each user is not balanced when multiple users perform downloading simultaneously, and specifically relates to the performance of devices of the users and other factors. In the case mentioned above, since the network speed is in a lower status for a long time, the surfing requirement cannot be met for some users due to very low speed allocated if the wireless network card supports the surfing of many users at the same time. At this moment, the quality of communications may be ensured by limiting the maximum number of user accesses allowed by the network card. When the network gets worse, the access of an excess user is not allowed or some users are removed according to a user rule, which cannot meet surfing requirements of users well and thus reduces the user experience. Furthermore, this function is usually used during the normal Internet services, and may be disabled if there is no requirement on data exchange or a network speed in a Wireless Local Area Networks (WLAN) used by users.

SUMMARY

The disclosure provides a wireless communication device and a method for adjusting a maximum number of accesses thereby, in order to guarantee online requirements of users by adjusting the maximum number of accesses for Wi-Fi according to the performance of a network side.

To this end, the disclosure provides a wireless communication device, which includes a network speed providing module and a Wireless Local Area Network (WLAN) access number control module, wherein

the network speed providing module is configured to provide a speed at a network side to a WLAN side; and

the WLAN access number control module is configured to adjust a maximum number of accesses of a WLAN according to the speed at the network side provided by the network speed providing module.

Further, the WLAN access number control module may be specifically configured to: decrease a set maximum number of accesses when a maximum number of accesses supported by the speed at the network side is less than the set maximum number of accesses, and increase the set maximum number of accesses when the maximum number of accesses supported by the speed at the network side is no less than the set maximum number of accesses.

Further, the network speed providing module may be specifically configured to acquire the speed at the network side by reading and analyzing an underlying traffic file, and provide an interface for the WLAN side.

Further, the wireless communication device may further include a network type monitoring module configured to acquire a network type and a change of the network type, and notify the WLAN side of the network type and the change of the network type.

Further, the WLAN access number control module may be further configured to: adjust the maximum number of accesses of the WLAN according to the network type and the speed at the network side; adjust the maximum number of accesses of the WLAN to 1 in the case of Code Division Multiple Access (CDMA) 1x or General Packet Radio Service (GPRS); adjust the maximum number of accesses of the WLAN to 2 in case of Enhanced Data rate for GSM Evolution (EDGE); and in the case of a 3G network, decrease the set maximum number of accesses when the maximum number of accesses supported by the speed at the network side is less than the set maximum number of accesses, and increase the set maximum number of accesses when the maximum number of accesses supported by the speed at the network side is no less than the set maximum number of accesses.

The disclosure further provides a method for adjusting a maximum number of accesses by a wireless communication device, which includes that:

a network speed providing module of a wireless communication device provides a speed at a network side to a Wireless Local Area Network (WLAN) side; and

a WLAN access number control module of the wireless communication device adjusts a maximum number of accesses of a WLAN according to the speed at the network side provided by the network speed providing module.

Further, the step that the WLAN access number control module of the wireless communication device adjusts the maximum number of accesses of the WLAN according to the speed at the network side provided by the network speed providing module may include that:

a set maximum number of accesses is decreased when a maximum number of accesses supported by the speed at the network side is less than the set maximum number of accesses, and the set maximum number of accesses is increased when the maximum number of accesses supported by the speed at the network side is no less than the set maximum number of accesses.

Further, the step that a network speed providing module of a wireless communication device provides a speed at a network side to a WLAN side may include that:

the network speed providing module acquires the speed at the network side by reading and analyzing an underlying traffic file, and provides an interface for the WLAN side.

Further, the method may further include that: the network type monitoring module acquires a network type and a change of the network type, and notifies the WLAN side of the network type and the change of the network type.

Further, the method may further include that:

the WLAN access number control module adjusts the maximum number of accesses of the WLAN according to the network type; the WLAN access number control module adjusts the maximum number of accesses of the WLAN to 1 in the case of CDMA1x or GPRS; the WLAN access number control module adjusts the maximum number of accesses of the WLAN to 2 in case of EDGE; and in the case of a 3G network, the WLAN access number control module decreases the set maximum number of accesses when the maximum number of accesses supported by the speed at the network side is less than the current maximum number of accesses, and increases the set maximum number of accesses when the maximum number of accesses supported by the speed at the network side is no less than the set maximum number of accesses.

To sum up, the disclosure has the following advantages:

communication quality is ensured for an Internet user by adjusting a maximum number of user accesses of Wi-Fi; and when the network gets worse, the access of an excess user is not allowed or some users are removed according to a user rule.

DETAILED DESCRIPTION

The disclosure relates to a wireless communication device, and in particular to information interaction between a network side of a wireless network card and a WLAN side. In the disclosure, a network speed providing module is introduced to the network side of the wireless network card, so as to acquire the speed at the network side by reading and analyzing an underlying traffic file and provide an interface to the WLAN side. A network-side speed monitoring module and an access number control module are introduced to the WLAN side of the wireless network card, so as to adjust the maximum number of accesses of the WLAN according to the status of the network side. In the following embodiments, the WLAN, with Wi-Fi as an example, and the wireless communication device, with a wireless network card as an example, are described.

The principle of adjusting the maximum number of accesses of Wi-Fi users automatically includes: a network type monitoring module notifies detected properties of a network or detected change of the properties of the network of the access number control module of the Wi-Fi side when detecting the properties of the network or the change of the properties of the network. A Wi-Fi access number control module changes the maximum number of accesses of Wi-Fi according to the properties of the network. For example, the maximum number of accesses of Wi-Fi is adjusted to 1 in the case of CDMA1x and GPRS and is adjusted to 2 in the case of EDGE. In the case of 3G, the maximum number of accesses of the device is decreased if the maximum number of accesses which can be supported by the current speed at the network side is less than the currently-set maximum number of accesses of the device; and the maximum number of accesses of the device is increased if the maximum number of accesses which can be supported by the current speed at the network side is no less than the currently-set maximum number of accesses of the device.

If the maximum number of accesses icurrentcurrently supported by the network side is not equal to the current maximum number of accesses I0of the device, that is, icurrent≠I0, icurrentmay be obtained by Formula 1 as follows. In the Formula 1, i is a selectable number of accesses, the upper limit of which is the maximum number of accesses Imaxallowed by the device, Rbasicis the minimum network speed required for ensuring the normal surfing of a user, rwan(t0) is the current speed at the network side, and i which meets the Formula 1 is icurrent.

The maximum number of accesses of the device is adjusted only when the maximum number of accesses supported by the network side maintains to be a certain icurrentfor a period of time and the relationship icurrent≠I0always holds, as shown in Formula 2. In the Formula 2, n is a time stability factor which is introduced for preventing the fluctuation of the network speed. If i changes before the time stability factor n reaches its upper limit N, the time stability factor n is reset and then re-count.

In the Formula 2, Rbasicis the minimum speed requiring for ensuring the normal surfing of a user, and may be set based on experience. Rbasicmay be set as an optional parameter according to different speed requirements of users, such as normal browsing and high-speed download.

Embodiments of the disclosure are further elaborated below in combination with the drawings.

Refer toFIG. 1, which is a diagram illustrating functional modules of a wireless communication device according to an embodiment of the disclosure. In the embodiment, the wireless communication device includes a network-side functional module and a Wi-Fi-side functional module. The network side is a network information providing end, and includes a network speed providing module and a network type monitoring module. The network speed providing module provides the speed at the network side to the Wi-Fi side, and the network type monitoring module acquires the network type and notifies the Wi-Fi side of the change of the network type. The Wi-Fi side is a function execution end, and includes a network side speed monitoring module, a Wi-Fi access number control module and a timer.

Refer toFIG. 2, which is a flowchart illustrating a method for adjusting a maximum number of accesses according to an embodiment of the disclosure. As shown inFIG. 2, the Wi-Fi side reads the speed at the network side and the network type periodically, and modifies the maximum number of accesses of Wi-Fi according to a setting rule of the maximum number of accesses if the network side is in a 3G mode. The specific process is illustrated as follows.

Step201: After information that a function of automatically adjusting the maximum number of accesses of Wi-Fi is enabled is received from a user, a timer periodically executes the following steps.

Step202: A network type is acquired.

Step203: It is determined whether a network is in the 3G mode. If the network is in the 3G mode, Step204is executed. If the network is not in the 3G mode, Step208is executed after the maximum number of accesses is set according to the current network mode.

If the network is in the 3G mode, Step204is executed.

If the current network mode is CDMA1x or GPRS, the maximum number of accesses of Wi-Fi is set to 1. If the current network mode is EDGE, the current maximum number of accesses is set to 2. Then, Step208is executed.

Step204: The speed at a network side is acquired.

Step205: It is determined whether the current number of users is equal to the last number of users. If the current number of users is not equal to the last number of users, Step206is executed. If the current number of users is equal to the last number of users, Step202is executed.

The maximum number of accesses icurrentthat the network side can support currently is obtained according to the Formula 1. If it is read for the first time, icurrentis stored as ilast. If it is not read for the first time, it is checked whether icurrent==ilast. If icurrentis not equal to ilast, Step206is executed. If icurrentis equal to ilast, Step202is executed.

Step206: It is determined whether the number of users that the current network can support is equal to the current maximum number of accesses of the device. If the number of users that the current network can support is equal to the current maximum number of accesses of the device, Step202is executed. If the number of users that the current network can support is not equal to the current maximum number of accesses of the device, Step207is executed.

If the number of users that the current network can support is not equal to the current maximum number of accesses of the device, that is, icurrent≠I0, the maximum number of accesses of Wi-Fi is adjusted automatically.

Step207: It is determined whether it reaches a stable time threshold.

If the time stability factor n in the Formula 2 reaches its upper limit N, Step208is executed. If the time stability factor n in the Formula 2 does not reach its upper limit N, Step202continues to be executed.

Step208: The user is prompted and the maximum number of accesses is adjusted.

If icurrent>I0, it is indicated that the network gets better, and the current maximum number of accesses of the device is directly modified to icurrent.

If icurrent<I0, it is indicated that the network is in a severe state for a long time, and it is necessary to decrease the maximum number of accesses of the device. That the current number of access users exceeds the maximum number of accesses icurrentof the network is prompted to the user equipment on a User Interface (UI) or a screen, and an excess user is removed or the maximum number of accesses is increased.

If the user does not increase the maximum number of accesses manually, the maximum number of user accesses of the device is set to icurrent.

If the user disables the function, the timer is off, and the maximum number of accesses of Wi-Fi is set to the maximum number of accesses that the device can support.

Of course, various other implementation ways are also available in the disclosure. Various modifications and variations can be made by those skilled in the art according to the disclosure without departing from the sprit and essence of the disclosure. Any modification, equivalent substitute, improvements or the like made within the spirit and principle of the disclosure shall fall within the scope of protection of the claims of the disclosure.