Patent ID: 9648112
Date: 2017-05-09
CPC Classifications: H04L,H04W

Claim:
1. A computer-implemented method for setting network models of an electronic device being executed by a processor of the electronic device, the method comprising: setting a default network model list comprising a plurality of default network models for the electronic device and setting a sequence of the plurality of default network models; searching a specified network model that is used to connect the electronic device to a telecom company successfully from the default network model list, according to the sequence; acquiring a code of the telecom company and determining a country where the telecom company is located according to the acquired code; acquiring a network model list corresponding to the determined country from a database which stores a network model list corresponding to each predetermined country; and updating the default network model list to be the acquired network model list corresponding to the determined country; determining whether the electronic device is connected to a network within a preset time interval using the acquired network model list; determining a duration within which the electronic device tries connecting the network, and determining whether the duration is longer than a preset duration under the condition that the electronic device fails to connect the network after the duration; and returning to set the default network model list comprising the plurality of default network models for the electronic device and setting the sequence of the plurality of default network models when the duration is longer than the preset duration.