Patent ID: 8468255
Filing Date: 2013-06-18
Classification: G06F,H04L,H04W

Abstract:
1. A method for Internet access by a data card, comprising: after the data card is connected to a host, mapping the data card into an Internet access device by using an Ethernet interface protocol; when pre-stored dial-up information exists, obtaining such pre-stored dial-up information, and dialing by using the pre-stored dial-up information to request to connect to the network, wherein the pre-stored dial-up information is at least one of the following dial-up information: previous dial-up information of a user, dial-up information of an operator, and dial-up information stored in a subscriber identity module card inserted in the data card, when no pre-stored dial-up information exists, obtaining dial-up information entered by the user on a Web page, and dialing by using the dial-up information entered by the user to request to connect to the network; and performing, by the Internet access device, communication between the host and the network; wherein the obtaining dial-up information entered by the user on the Web page, and dialing by using the dial-up information entered by the user to request to connect to the network comprises: decapsulating, by a Web server in the data card, a first Web service message package sent by an Internet browser on the host, obtaining a management command, and sending the management command to a Web application module, wherein the management command comprises the dial-up information entered by the user and is a command used to operate a data card service and used to indicate that a dial-up access service is needed; generating, by the Web application module in the data card, data content according to the management command sent by a TCP/IP protocol stack, and invoking an application programming interface (API), which is suitable for sending a second Web service message package to the Web server, wherein the second Web service message package comprises a data header and the data content, wherein the data header comprises indication information indicating that the dial-up access service is needed, and the data content comprises the dial-up information entered by the user; parsing, by the Web server in the data card, the second Web service message package sent by the Web application module, obtaining the indication information and the data content, and sending the indication information and the data content to a service invocation layer in the data card; and determining, by the service invocation layer in the data card and according to the indication information, that the dial-up access service is needed and invoking a dial-up interface by using the dial-up information entered by the user as an input parameter; wherein the dial-up interface is used to encode the dial-up information entered by the user and invoke a dial-up service provider interface by using an encoding result as an input parameter, wherein the dial-up service provider interface is used to encapsulate the encoding result to obtain an encapsulation structure supported by board software and invoke a dial-up service interface provided by the board software corresponding to the dial-up service by using the encapsulation structure as an input parameter.