This application claims priority of Taiwan Application No. 101106476, filed on Feb. 29, 2012, and the entirety of which is incorporated by reference herein.
1. Field of the Invention
The disclosure relates generally to electronic devices with a network connection unit and related management methods, and, more particularly to electronic devices and related management methods systems capable of automatically determining the connection priority of each AP that is available to be connected to and selecting an appropriate AP therefrom for network connection.
2. Description of the Related Art
With vigorous development of network applications, the opportunity for the users to acquire information through the network becomes largely increased. Users may perform a lot of services and applications using electronic devices such as computer systems, portable devices and so on via the appropriate application over the network. Traditionally, when users need to use these network services, they must first connect directly to the network via the electronic device or connect to the Internet through a wired or wireless access point (AP). Generally, for applications that connect to the Internet via the AP, the users who are logged on to the operating system and ready to establish a network connection may request to connect with the previously connected AP in priority. If the previously connected AP cannot be connected successfully, the operating system will search for other available AP around the AP and determine whether or not the searched AP is in an AP list under its maintenance, and a connection link is established through this AP only when it is in its AP list. Current operating system uses the time sequence of the last connection and the concept of last-in-first-out to sort the connection priorities for all APs in the AP list based on time records of each AP in the AP list. In other words, the latest AP to join the AP list will have the highest priority and thus will be selected to connect first.
However, the user may waste much time in connection in certain places. For example, the user may connect to the Internet in the office during the daytime and establish a connection with an office AP and other APs in the office, thus the office AP and other APs in the office will then have a higher priority to the connection. When the user goes back to the home and connects to the home AP to connect to the Internet at night, as the last connection time for the home AP is longer than that of the office AP or other APs in the office, its connection priority is lower than the office AP and other APs in the office. Therefore, even if the user often goes online at home at night, much time may be wasted on successfully selecting the home AP to connect to the Internet or first manually disconnecting and then connecting to the home AP during a network connection establishment process.
Therefore, there is a need for a method of efficiently and automatically determining the connection priority of each AP that is available to be connected to and selecting an appropriate AP for network connection.
Electronic devices and management methods using the same are provided to automatically determine the access point for network connection.
In an embodiment, a management method for use in an electronic device is provided, wherein the electronic device includes a network connection unit for connecting to a network through a first access point (AP). The management method comprises the following steps. A preferred AP list is first provided, wherein the preferred AP list records a plurality of APs and connection records corresponding thereto. Next, the first AP is sequentially selected from the plurality of APs of the preferred AP list and the selected first AP is connected through the network connection unit to connect to the network, wherein each of the plurality of APs is sequentially selected as the first AP based on the corresponding connection record of the selected AP.
Another embodiment of an electronic device at least comprises a processing unit, a storage unit and a network connection unit. The network connection unit is used for establishing a connection with a first access point (AP) to connect to a network through the first AP. The storage unit stores a preferred AP list, wherein the preferred AP list records a plurality of APs and connection records corresponding thereto. The processing unit is coupled to the network connection unit and the storage unit. The processing unit is used for sequentially selecting the first AP from the plurality of APs of the preferred AP list and connecting to the selected first AP through the network connection unit to connect to the network, wherein the processing unit sequentially selects the first AP from the plurality of APs of the preferred AP list based on the corresponding connection record of the selected AP.
Management methods may take the form of a program code embodied in a tangible media. When the program code is loaded into and executed by a machine, the machine becomes an apparatus for practicing the disclosed method.
The invention will become more fully understood by referring to the following detailed description with reference to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
Embodiments of the invention provide electronic devices and management methods, which can automatically adjust the connection priority of each AP that is available to be connected to according to a connection record of each AP so as to select an appropriate AP for network connection.
The display unit 140 may display the relevant message on the connection status, such as connection success or connection failure message to the user to distinguish the current status of the network connection. The display unit 140 may further provide a user interface, through which the user can manually configure content related to the preferred AP list. For example, to customize the connection priority in the preferred AP list or to add, modify, or delete data of a certain AP. The processing unit 110 which is coupled to the network connection unit 120, the storage unit 130 and the display unit 140 can perform the management method of the present invention, wherein the processing unit 110 may select one of the APs from the preferred AP list 132 and connect to the selected AP through network connection unit 120 to connect to the network 300 when the network 300 is to be connected. The responsive management method will be discussed further in the following paragraphs.
First, in step S202, a preferred AP list is provided, wherein the preferred AP list records a plurality of APs and connection records corresponding thereto. For example, the processing unit 110 may obtain the preferred AP list 132 shown in
Thereafter, when the network 300 is to be connected, in step S204, the processing unit 110 sequentially selects a first AP from the APs listed in the preferred AP list 132 and connects to the selected first AP through the network connection unit 120 to connect to the network 300. The processing unit 110 may select the first AP in order based on the connection records corresponding to the APs listed in the preferred AP list 132. When the selected first AP is successfully connected, the processing unit 110 will stop connecting to other APs. Contrarily, when the selected first AP is not successfully connected, the processing unit 110 continues to select a next AP from the preferred AP list 132 for connection. The responsive connection record of each AP includes a number of successful connections, and the processing unit 110 first selects from the preferred AP list 132 the AP with a higher number of successful connections as the first AP. For example, as shown in
In some embodiments, when the electronic device 100 detects and connects to a second AP, the processing unit 110 may first determine whether the second AP is one of the APs in the preferred AP list 132 to determine whether or not to perform the management method of the invention to adjust and update the preferred AP list 132 in accordance with the connection status.
First, in step S402, the processing unit 110 detects that the electronic device 100 has connected to a second AP through the network connection unit 120 and thus, in step S404, determines whether the second AP is one of the APs in the preferred AP list 132 or not. If the second AP is none of the APs in the preferred AP list 132 (No in step S404), the procedure ends and the preferred AP list 132 remains unchanged. If the second AP is one of the APs in the preferred AP list 132 (Yes in step S404), steps S406 to S410 are further performed to determine whether to update the preferred AP list 132 based on the connection status that the network connection unit 120 connects to the second AP. In step S406, the processing unit 110 determines whether the second AP is successfully connected. If the second AP is not successfully connected (No in step S406), the procedure ends and the preferred AP list 132 remains unchanged. If the second AP is successfully connected (Yes in step S406), the processing unit 110 determines that the preferred AP list 132 requires to be updated and thus performs step S408 to update the connection record of the second AP in the preferred AP list 132. To be more specific, the record of connection success corresponding to the second AP in the preferred AP list 132 will be accumulated based on the number of actual successful connections. After update of the number of successful connections corresponding to the second AP, the priority of the existing AP in the preferred AP list 132 may be changed. Therefore, in step S410, the processing unit 110 may rearrange the APs in the preferred AP list 132 based on their updated number of successful connections.
For example, referring to
In addition, in some embodiments, when the electronic device 100 detects and connects to a new third AP and determines that the third AP is none of the APs in the preferred AP list 132, the processing unit 110 may further determine whether to allow adding the third AP in the preferred AP list 132.
First, in step S502, the processing unit 110 detects that the electronic device 100 has connected to a new third AP through the network connection unit 120 and thus, in step S504, determines whether to allow adding the third AP in the preferred AP list 132 or not. If no new AP is allowed to be added in the preferred AP list 132 (No in step S504), the procedure ends and the preferred AP list 132 remains unchanged. Contrarily, if the third AP is allowed to be added in the preferred AP list 132 (Yes in step S504), steps S506 to S512 are further performed to add a record of the new third AP in the preferred AP list 132 and determine whether to update the preferred AP list 132 based on the connection status that the network connection unit 120 connects to the third AP.
In step S506, the processing unit 110 may add a record related to the third AP in the preferred AP list 132 and configures a priority data 310 of the record related to the third AP to be the lowest priority and a number of successful connections data for the record is set to be 0. Thereafter, in step S508, the processing unit 110 determines whether the third AP is successfully connected. If the third AP is not successfully connected (No in step S508), the procedure ends and the preferred AP list 132 remains unchanged. If the third AP is successfully connected (Yes in step S508), the processing unit 110 determines that the preferred AP list 132 requires to be updated and thus performs step S510 to update the connection record of the third AP in the preferred AP list 132. Similarly, the record of connection success corresponding to the third AP in the preferred AP list 132 will be accumulated based on the number of actual successful connections. After update of the number of successful connections corresponding to the third AP, the priority of the existing AP in the preferred AP list 132 may be changed. Therefore, in step S512, the processing unit 110 may rearrange the APs in the preferred AP list 132 based on their updated number of successful connections.
For example, referring to
Similarly, when the processing unit 110 then detects that the electronic device 100 is connected to an AP with an AP name of “New” of the preferred AP list 700 and determines that the connection to the AP is successfully established, the processing unit 110 updates the number of successful connections for the AP with the AP name of “New” in the preferred AP list 700 and rearranges the APs in the preferred AP list 700 based on the updated number of successful connections for the APs.
It is understood that, although the aforementioned management method can automatically manage the preferred AP list, however, in some embodiments, the users may modify the preferred AP list manually to meet their requirement.
In some embodiments, the users may configure contents related to the preferred AP list manually based on their preferences and habits of use through a user interface provided on the display unit 140, such as manually defining the connection priority of each AP in the preferred AP list or adding, modifying or deleting data of a specific AP.
In sum, with the number of successful connections and other data of the AP that the user may have connected to as recorded in the preferred AP list, the electronic systems and related management methods of the invention can automatically and quickly connect to the user's most commonly used AP, thus saving time and making the connection process easier. Moreover, according to the preferred AP list management mechanism of the invention, the user's often used AP can be ensured to be given priority to connect, thus more meeting with the actual needs of the user.
Management methods, or certain aspects or portions thereof, may take the form of a program code (i.e., executable instructions) embodied in tangible media, such as floppy diskettes, CD-ROMS, hard drives, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine thereby becomes an apparatus for practicing the methods. The methods may also be embodied in the form of a program code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the disclosed methods. When implemented on a general-purpose processor, the program code combines with the processor to provide a unique apparatus that operates analogously to application specific logic circuits.
While the invention has been described by way of example and in terms of preferred embodiment, it is to be understood that the invention is not limited thereto. Those who are skilled in this technology can still make various alterations and modifications without departing from the scope and spirit of this invention. Therefore, the scope of the present invention shall be defined and protected by the following claims and their equivalent.
| Number | Date | Country | Kind |
|---|---|---|---|
| 101106476 | Feb 2012 | TW | national |