Patent ID: 8954636
Filing Date: 2015-02-10
Classification: G06F,H04L,H04W

Abstract:
1. A home gateway for adapting a Universal Serial Bus (USB) modem, comprising: a system drive module, a Wide Area Network (WAN) connection management module, a drive adaption module and an application adaption module; wherein: the drive adaption module is configured to determine a mode of the USB modem when the USB modem accesses, to adapt a drive of an application layer interface of the USB modem and to set an identifier variable for the USB modem, and to transmit a drive adaption complete message to the application adaption module; the application adaption module is configured to select a corresponding initialization process, according to the identifier variable of the USB modem, to initialize an application layer of the USB modem, to transmit an initialization complete message to the WAN connection management module, and to perform a network connection via the WAN connection management module; wherein the drive adaption module is configured to: read USB modem information that comprises a Vendor ID (VID), a Product ID (PID), a device type parameter and end point information; and determine whether the USB modem is in a mass storage mode or an application layer mode according to the device type parameter in the USB modem information and a definition of the device type parameter in a USB protocol; and wherein the drive adaption module is further configured to: query a locally preset conversion command table according to the PID and the VID to search for a conversion command corresponding to the PID and the VID, when the USB modem is in the mass storage mode, query an end point table according to the conversion command to search for an end point address corresponding to the conversion command, take and intersection between the end point address and an end point address of the end point information of the USB modem information, transmit the conversion command to an end point address in the intersection, and convert from the mass storage mode to the application layer mode after the USB modem receives the conversion command.