The present invention relates to the field of communication technologies, and in particular, to a method and device for network access.
At present, an x digital subscriber line (xDSL, x Digital Subscriber Line) module and a 3G data card module are common communication access devices, and provide a single wide area network interface respectively.
The xDSL module is a user access layer in a fixed network and a terminal device on the user side in a broadband network. The xDSL module is connected to a digital subscriber line access multiplexer (DSLAM, Digital Subscriber Line Access Multiplexer) or a broadband remote access server (BRAS, Broadband Remote Access Server) on the network side, provides transmission channels for connected service terminals such as a personal computer and a mobile phone, and provides data, voice, and video services through an operator.
The 3G data card module is a user access layer in a wireless network and a terminal device on the user side in a wireless broadband network. The 3G data card module is connected to a base station device of the wireless network, provides transmission channels for connected service terminals, and provides data, voice, and video services through an operator.
At present, the xDSL module can provide only a single wired manner to connect a service terminal to the network, and the 3G data card module can provide only a single wireless manner to connect the service terminal to the network. A common method to ensure network access of the service terminal and reduce a charge as much as possible is that a user carries both an xDSL module and a 3G data card module at the same time. If the scenario where the user is located allows the service terminal to access the network in both a wired manner and a wireless manner, the user may preferentially use the xDSL module to connect the service terminal to the network, which may reduces the charge; if the scenario where the user is located allows the service terminal to access the network only in the wireless manner, the user may use the 3G data card module to connect the service terminal to the network, and therefore network access of the service terminal is ensured although the charge is high.
In the foregoing method, a user needs to carry both the xDSL module and the 3G data card module at the same time; when switching of network access modes is required, the user needs to perform plugging or unplugging manually, which results in low efficiency of network access; in addition, it is inconvenient to carry both the xDSL module and the 3G data card module at the same time.
Embodiments of the present invention provide a method and device for network access, which may implement network access of a service terminal.
To solve the technical problem above, the embodiments of the present invention provide the following technical solutions:
An embodiment of the present invention provides a method for network access, including:
detecting whether a notification message reported by an x digital subscriber line module is received within a set time, where the notification message is used for indicating that the x digital subscriber line module is connected to a network successfully;
if yes, establishing a connection between a service terminal and the x digital subscriber line module, so that the service terminal accesses the network through the x digital subscriber line module; and
if no, establishing a connection between the service terminal and a 3G data card module, so that the service terminal accesses the network through the 3G data card module.
An embodiment of the present invention provides a device for network access, including:
a detecting module, configured to detect whether a notification message reported by an x digital subscriber line module is received within a set time, where the notification message is used for indicating that the x digital subscriber line module is connected to a network successfully;
a first establishing module, configured to establish a connection between a service terminal and the x digital subscriber line module when a detection result of the detecting module is that the notification message is received within the set time, so that the service terminal accesses the network through the x digital subscriber line module;
a second establishing module, configured to establish a connection between the service terminal and a 3G data card module when the detection result of the detecting module is that the notification message is not received within the set time, so that the service terminal accesses the network through the 3G data card module;
the x digital subscriber line module, configured to report the notification message used for indicating network connection success to the detecting module, when being connected to the network successfully, and after the first establishing module establishes the connection between the service terminal and the x digital subscriber line module, make the service terminal access the network through the x digital subscriber line module; and
the 3G data card module, configured to make the service terminal access the network through the 3G data card module after the second establishing module establishes the connection between the service terminal and the 3G data card module.
Compared with the prior art, in the embodiments of the present invention, whether to establish a connection between the service terminal and the x digital subscriber line module or to establish a connection between the service terminal and the 3G data card module is determined by detecting whether a notification message reported by the x digital subscriber line module is received within a set time, where the notification message is used for indicating network connection success, so that the service terminal accesses the network through the x digital subscriber line module or 3G data card module. In embodiments of the present invention, switching of network access modes by manual plugging or unplugging is avoided and the network access efficiency of the service terminal is improved; in addition, the device for network access according to the embodiments of the present invention includes an x digital subscriber line module and a 3G data card module and is carried by the user more conveniently.
To illustrate the technical solutions in the embodiments of the present invention more clearly, accompanying drawings to be used in the embodiments of the present invention are briefly introduced below. Evidently, the accompanying drawings illustrate only some embodiments of the present invention, and persons of ordinary skill in the art can derive other drawings from these accompanying drawings without any creative effort.
The technical solutions in the embodiments of the present invention are described clearly and completely with reference to the accompanying drawings. Evidently, the embodiments are only part rather than all of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments that persons of ordinary skill in the art can derive without creative efforts fall within the protection scope of the present invention.
In the embodiments of the present invention, if it is detected that a notification message that is reported by an x digital subscriber line module and used for indicating network connection success is received within a set time, a connection between a service terminal and the x digital subscriber line module is established so that the service terminal accesses the network through the x digital subscriber line module; otherwise, if it is detected that the notification message that is reported by the x digital subscriber line module and used for indicating network connection success is not received within the set time, a connection between the service terminal and a 3G data card module is established so that the service terminal accesses the network through the 3G data card module. In this way, switching network access modes by manual plugging or unplugging is avoided, and the network access efficiency of the service terminal is improved.
Referring to
101: Detect whether a notification message that is reported by the x digital subscriber line module and used for indicating network connection success is received within a set time; if yes, perform step 102; if no, perform step 103.
The x digital subscriber line involved in the embodiment and subsequent embodiments may be an asymmetrical digital subscriber loop (ADSL, Asymmetrical Digital Subscriber Loop) module or a very high bit rate digital subscriber line (VDSL, Very high bit rate Digital Subscriber Line) module.
There are many types of notification messages that are reported by the x digital subscriber line module and used for indicating network connection success. For example, the x digital subscriber line module may report a high electric level signal “1”, indicating network connection success, or the x digital subscriber line may report a low electric level signal “0”, indicating network connection success, which does not affect the implementation of the embodiment of the present invention.
102. Establish a connection between a service terminal and the x digital subscriber line module so that the service terminal accesses the network through the x digital subscriber line module.
For example, the connection between the service terminal and the x digital subscriber line module may be enabled by adopting an intelligent switch manner, so that the service terminal accesses the network through the x digital subscriber line module.
103. Establish a connection between the service terminal and the 3G data card module so that the service terminal accesses the network through the 3G data card module.
For example, the connection between the service terminal and the 3G data card module may be enabled by adopting an intelligent switch manner so that the service terminal accesses the network through the 3G data card module.
Further, after step 102 is performed, the method for network access according to the embodiment of the present invention may further include the following step:
If a notification message reported by the x digital subscriber line module is received, where the notification message is used for indicating that the x digital subscriber line module fails to be connected to the network, perform step 103, so that the service terminal accesses the network through the 3G data card module.
In the method for network access according to the embodiment of the present invention, whether to establish a connection between the service terminal and the xDSL module or to establish a connection between the service terminal and the 3G data card module is determined by detecting whether a notification message reported by the xDSL module is received within a set time, where the notification message is used for indicating that the xDSL module is connected to the network successfully, so that the service terminal accesses the network through the xDSL module or 3G data card module. in the embodiment of the present invention switching of network access modes by manual plugging or unplugging is avoided and the network access efficiency of the service terminal is improved.
Referring to
201: Detect whether a notification message reported by the xDSL module is received within a set time, where the notification message is used for indicating that the xDSL module is connected to the network successfully; if yes, perform step 202; if no, perform step 203.
There are many types of notification messages that are reported by the xDSL module and used for indicating that the xDSL module is connected to the network successfully. For example, the xDSL module may report high electric level signal “1”, indicating network connection success, or the xDSL module may report low electric level signal “0”, indicating network connection success, which does not affect the implementation of the embodiment of the present invention.
202. Establish a connection between a service terminal and the xDSL module so that the service terminal accesses the network through the xDSL module.
For example, the connection between the service terminal and the xDSL module may be enabled by adopting an intelligent switch manner so that the service terminal accesses the network through the xDSL module.
The intelligent switch may be implemented by adopting a software manner. When the intelligent switch receives a notification message within a set time, where the notification message is reported by the xDSL module and used for indicating network connection success, the intelligent switch may enable a connection between the service terminal and the xDSL module, so that the service terminal may access the network through the xDSL module.
In an embodiment, an intelligent switch that includes but is not limited to the following pseudo code program may be used to enable a connection between the service terminal and the xDSL module:
Through the foregoing pseudo code program of the intelligent switch, a connection between the service terminal and the xDSL module may be enabled, so that the service terminal may access the network through the xDSL module.
203: Give, in a page manner, the service terminal a prompt whether the network is to be accessed in a wireless manner, and if yes, that is, if a wireless access confirmation instruction entered by the service terminal is received, perform step 204, or if no, that is, if a non-access confirmation instruction entered by the service terminal is received, end the procedure.
In an embodiment, the prompt whether the network is to be accessed in the wireless manner may be given to the service terminal by adopting a voice or text manner, and if yes, that is, if a wireless access confirmation instruction entered by the service terminal is received, perform step 204, or if no, that is, if a non-access confirmation instruction entered by the service terminal is received, end the procedure.
Generally, wireless network access (that is, network access by using the 3G module) is more costly than network access by using the xDSL module; therefore, it is necessary to give the service terminal the prompt whether the network is to be accessed in the wireless manner, so as to achieve the purpose for respecting a user's selection of an access mode to access the network.
204: Establish a connection between the service terminal and the 3G data card module so that the service terminal accesses the network through the 3G data card module.
For example, the connection between the service terminal and the 3G data card module may be enabled in an intelligent switch manner so that the service terminal accesses the network through the 3G data card module.
The intelligent switch may be implemented by adopting a software manner. When the intelligent switch does not receive a notification message within a set time, where the notification message is reported by the xDSL module and used for indicating network connection success, the intelligent switch may enable a connection between the service terminal and the 3G module, so that the service terminal may access the network through the 3G module.
In an embodiment, an intelligent switch that includes but is not limited to the following pseudo code program may be used to enable a connection between the service terminal and the 3G module:
Through the foregoing pseudo code program of the intelligent switch, a connection between the service terminal and the 3G module may be enabled, so that the service terminal may access the network through the 3G module.
Further, after step 202 is performed, the method for network access according to the embodiment of the present invention may further include the following step:
If a notification message reported by the x digital subscriber line module is received, where the notification message is used for indicating that the x digital subscriber line module fails to be connected to the network, perform step 203.
In this way, even if failure occurs in the process of connecting the service terminal to the network through the x digital subscriber line module, the service terminal may also be automatically switched to connecting the network through the 3G module, so that the connection between the service terminal and the network is not interrupted.
In the method for network access according to the embodiment of the present invention, whether to establish a connection between the service terminal and the x digital subscriber line module or to establish a connection between the service terminal and the 3G data card module is determined by detecting whether a notification message reported by the x digital subscriber line module is received within a set time, where the notification message is used for indicating that the x digital subscriber line module is connected to the network successfully, so that the service terminal accesses the network through the x digital subscriber line module or 3G data card module. In the embodiment of the present invention, switching of network access modes by manual plugging or unplugging is avoided and the efficiency for network access of the service terminal is improved.
a detecting module 301, configured to detect whether a notification message reported by an x digital subscriber line module is received within a set time, where the notification message is used for indicating that the x digital subscriber line module is connected to a network side successfully, where
the x digital subscriber line module involved in the embodiment may be an asymmetrical digital subscriber loop (ADSL, Asymmetrical Digital Subscriber Loop) or very high bit rate digital subscriber line (VDSL, Very high bit rate Digital Subscriber Line) module;
a first establishing module 302, configured to establish a connection between a service terminal and the x digital subscriber line module when the detection result of the detecting module 301 is that the notification message is received within the set time, so that the service terminal accesses the network through the x digital subscriber line module;
a second establishing module 303, configured to establish a connection between the service terminal and a 3G data card module when the detection result of the detecting module 301 is that the notification message is not received within the set time, so that the service terminal accesses the network through the 3G data card module;
an x digital subscriber line module 304, configured to report a notification message used for indicating network connection success to the detecting module 301, when being connected to the network successfully, and after the first establishing module 302 establishes the connection between the service terminal and the x digital subscriber line module 304, make the service terminal access the network through the x digital subscriber line module 304, where
there are many types of notification messages that are reported by the x digital subscriber line module 304 and used for indicating network connection success; for example, the x digital subscriber line module 304 may report high electric level signal “1”, indicating network connection success, or the x digital subscriber line 304 may report low electric level signal “0”, indicating network connection success, or the x digital subscriber line 304 may construct a new notification message carrying an identifier indicating network connection success and report the notification message, which does not affect the implementation of the embodiment of the present invention; and
a 3G data card module 305, configured to make the service terminal access the network through the 3G data card module 305 after the second establishing module 303 establishes the connection between the service terminal and the 3G data card module 305.
For example, the first establishing module 302 may be configured to enable a connection between the service terminal and the x digital subscriber line module 304 by adopting an intelligent switch manner, when the detection result of the detecting module 301 is that the notification message is received within the set time, so that the service terminal accesses the network through the x digital subscriber line module 304.
In an embodiment, the first establishing module 302 may use an intelligent switch implemented by the following pseudo code program to enable a connection between the service terminal and the x digital subscriber line module 304:
By executing the foregoing pseudo code program of the intelligent switch, the first establishing module 302 may enable a connection between the service terminal and the x digital subscriber line module 304, so that the service terminal accesses the network through the x digital subscriber line module 304.
For example, the second establishing module 303 may be configured to enable a connection between the service terminal and the 3G data card module 305 in an intelligent switch manner, when the detection result of the detecting module 301 is that the notification message is not received within the set time, so that the service terminal accesses the network through the 3G data card module 305.
In an embodiment, the second establishing module 303 may use an intelligent switch implemented by the following pseudo code program to enable a connection between the service terminal and the 3G data card module 305:
Through the foregoing pseudo code program of the intelligent switch, a connection between the service terminal and the 3G module may be enabled, so that the service terminal may access the network through the 3G module.
Further, the detecting module 301 may be configured to notify the second establishing module 303 if a notification message that is reported by the x digital subscriber line module 304 and used for indicating that the x digital subscriber line module 304 fails to be connected to the network is received, after the first establishing module 302 establishes the connection between the service terminal and the x digital subscriber line module 304.
In this case, the second establishing module 303 may be specifically configured to establish a connection between the service terminal and the 3G data card module 304 when the detecting module 301 receives the notification message that is reported by the x digital subscriber line module 304 and used for indicating that the x digital subscriber line module 304 fails to be connected to the network, so that the service terminal accesses the network through the 3G data card module.
The device for network access according to the embodiment of the present invention determines to establish a connection between the service terminal and the x digital subscriber line module or to establish a connection between the service terminal and the 3G data card module, by detecting whether a notification message reported by the x digital subscriber line module is received within a set time, where the notification message is used for indicating network connection success, so that the service terminal accesses the network through the x digital subscriber line module or 3G data card module. In the embodiment of the present invention, switching of network access modes by manual plugging or unplugging is avoided and the network access efficiency of the service terminal is improved; in addition, the device for network access according to the embodiment of the present invention includes an x digital subscriber line module and a 3G data card module and is carried by a user more conveniently.
As shown in
The prompting module 306 is configured to give, in a page or voice or text manner, the service terminal a prompt whether the network is to be accessed in a wireless manner, if the detecting module 301 does not receive a notification message within a set time, where the notification message is reported by the x digital subscriber line module 304 and used for indicating network connection success, or if the detecting module 301 receives a notification message that is reported by the x digital subscriber line module 304 and used for indicating that the x digital subscriber line module 304 fails to be connected to the network.
In this case, the second establishing module 303 may be specifically configured to establish a connection between the service terminal and the 3G data card module when the prompting module 306 receives a wireless access confirmation instruction entered by the service terminal, so that the service terminal accesses the network through the 3G data card module.
Because network access of the service terminal through the 3G data card module is more costly than network access through the x digital subscriber line module, a prompting module 306 is set to give, in a page manner, the user the prompt whether the network is to be accessed in a wireless manner, which is determined by the user so as to respect a user's personal will.
The another device for network access according to the embodiment of the present invention avoids switching network access modes by manual plugging or unplugging and improves the network access efficiency of the service terminal; in addition, the device for network access according to the embodiment of the present invention includes an x digital subscriber line module and a 3G data card module and is carried by the user more conveniently.
Persons of ordinary skill in the art may understand that all or part of steps in the method embodiments of the present invention may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program is executed, the steps of the foregoing method embodiments are included. The storage medium may include a variety of media capable of storing program codes, such as a read only memory (Read Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
Detailed introduction above to a method and device for network access is given according to the embodiments of the present invention. Specific examples are used in this application for describing the principle and implementation of the present invention. However, the illustration of the foregoing embodiments is merely intended to facilitate the understanding of the methods and core ideas of the present invention. In addition, with respect to the implementation and applicability of the present invention, modifications and variations may be made by persons of ordinary skill in the art according to the spirit of the present invention. Therefore, the specification shall not be construed as a limitation on the present invention.
Number | Date | Country | Kind |
---|---|---|---|
200910252440.5 | Dec 2009 | CN | national |
This application is a continuation of International Application No. PCT/CN2010/079258, filed on Nov. 30, 2010, which claims priority to Chinese Patent Application No. 200910252440.5, filed on Dec. 9, 2009, both of which are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2010/079258 | Nov 2010 | US |
Child | 13489180 | US |