CN114827898B - Internet surfing configuration method, device, equipment and medium - Google Patents

Internet surfing configuration method, device, equipment and medium Download PDF

Info

Publication number
CN114827898B
CN114827898B CN202210754169.0A CN202210754169A CN114827898B CN 114827898 B CN114827898 B CN 114827898B CN 202210754169 A CN202210754169 A CN 202210754169A CN 114827898 B CN114827898 B CN 114827898B
Authority
CN
China
Prior art keywords
area
network
location
target
position area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210754169.0A
Other languages
Chinese (zh)
Other versions
CN114827898A (en
Inventor
孙丽锋
李强
程黎辉
关亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Longcheer Electronics Huizhou Co Ltd
Original Assignee
Longcheer Electronics Huizhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Longcheer Electronics Huizhou Co Ltd filed Critical Longcheer Electronics Huizhou Co Ltd
Priority to CN202210754169.0A priority Critical patent/CN114827898B/en
Publication of CN114827898A publication Critical patent/CN114827898A/en
Application granted granted Critical
Publication of CN114827898B publication Critical patent/CN114827898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method, a device, equipment and a medium for configuring internet access, which relate to the technical field of internet of things, and the method comprises the following steps: the method comprises the steps of obtaining a first position area and a second position area, wherein the first position area is used for representing the position of terminal equipment, the second position area is used for representing the registration attribution of an Internet of things (IOT) card, obtaining target access point network parameters in a preset database according to the first position area and the second position area, and establishing network data connection with access network equipment according to the target access point network parameters. According to the technical scheme, the APN network parameters matched with the current position of the terminal equipment or the APN network parameters matched with the attribution are automatically selected from the database by acquiring the position of the terminal equipment and the attribution of the Internet of things card, and then network connection is set according to the APN network parameters, so that errors caused by manual selection can be reduced, and the network configuration accuracy and the network configuration efficiency are improved.

Description

Internet surfing configuration method, device, equipment and medium
Technical Field
The present application relates to the field of internet of things technologies, and in particular, to a method, an apparatus, a device, and a medium for configuring internet access.
Background
At present, the issuing of the internet of things card is bound with provinces and cities, different provinces and cities are distributed with different Access Point Network (APN) parameters, and therefore when a network of terminal equipment using the internet of things card is configured, corresponding APN parameters need to be selected based on province and city areas where the network is located.
In the related art, all signed APN parameters are generally integrated into a configuration file, a user selects an APN parameter matched with a province and city from the configuration file according to the local province and city condition, and then a distribution network is realized by the APN parameter.
However, in this method, because the APN parameters corresponding to each province and city are manually selected and included in the configuration file, confusion is likely to occur, and a user may select a wrong APN parameter, which causes a failure in the terminal device distribution network, and causes a low accuracy in the distribution network.
Disclosure of Invention
The application provides a network access configuration method, device, equipment and medium, which are used for solving the problem that the existing distribution network is poor in distribution network accuracy due to the fact that an APN parameter is easy to use mistakenly.
In a first aspect, an embodiment of the present application provides an internet surfing configuration method, which is applied to a terminal device, and the method includes:
when the terminal equipment is detected to finish network registration and cannot establish data connection with access network equipment, acquiring a first position area and a second position area, wherein the first position area is used for representing the position of the terminal equipment, and the second position area is used for representing the registration attribution of an Internet of things card inserted into the terminal equipment;
acquiring target access point network parameters from a preset database according to the first position area and the second position area, wherein the preset database comprises at least one access point network parameter associated with the position area;
and establishing network data connection with the access network equipment according to the network parameters of the target access point.
In a possible design of the first aspect, the obtaining, according to the first location area and the second location area, the target access point network parameter in a preset database includes:
comparing the first position area with the second position area to obtain a comparison result, wherein the comparison result is used for representing whether the first position area is matched with the second position area;
acquiring a target area according to the comparison result, wherein the target area is the first position area or the second position area;
and acquiring the network parameters of the target access point in a preset database according to the target area.
In another possible design of the first aspect, the obtaining the target region according to the comparison result includes:
if the first position area is not matched with the second position area, taking the first position area as the target area;
and if the first position area is matched with the second position area, taking the second position area as the target area.
In another possible design of the first aspect, the obtaining, according to the target area, the target access point network parameter in a preset database includes:
if the target area is the first location area, acquiring a target access point network parameter associated with the first location area from the preset database;
and if the target area is the second location area, acquiring the network parameters of the target access point associated with the second location area from the preset database.
In yet another possible design of the first aspect, after the establishing a network data connection with the access network device according to the target access point network parameter, the method further includes:
detecting whether a network data connection is established with the access network equipment;
if the network data connection with the access network equipment is not established, acquiring the identification information of the cell where the terminal equipment is currently located;
acquiring a position area of a cell where the terminal equipment is located according to the identification information;
acquiring a next target access point network parameter in the preset database according to the position area of the cell where the terminal equipment is located;
and according to the network parameters of the next target access point, continuing to establish network data connection with the access network equipment.
In yet another possible design of the first aspect, the obtaining, from the first location area and the second location area, the target access point network parameter in a preset database includes:
detecting whether the terminal equipment is located at the junction of the first position area and the second position area;
if the terminal equipment is positioned at the junction, acquiring the identification information of the cell where the terminal equipment is positioned currently;
and acquiring the network parameters of the target access point in the preset database according to the identification information.
In another possible design of the first aspect, the method further includes:
when the terminal equipment carries out network registration, acquiring information in a visitor location register communicated with the access network equipment and information in a home location register communicated with the access network equipment;
and storing the information in the visitor location register and the information in the home location register into a global variable, wherein the global variable is stored in a protocol stack of a modem of the terminal equipment.
In another possible design of the first aspect, the acquiring the first location area and the second location area includes:
acquiring information in the visitor location register and information in the home location register, which are stored in the global variable, through a preset device interface;
obtaining the first location area from information in the visitor location register;
the second location area is obtained from information in the home location register.
In yet another possible design of the first aspect, after detecting that the terminal device completes network registration at the access network device, the method further includes:
acquiring preset access point network parameters;
initiating a connection request according to the preset access point network parameters, wherein the connection request is used for establishing data connection with the access network equipment;
detecting whether a data connection success message fed back by the access network equipment is received;
and if the data connection success message is not received, confirming that the data connection with the access network equipment cannot be established.
In yet another possible design of the first aspect, the method further includes:
and after the Internet of things card is inserted into the terminal equipment, initiating a request to the access network equipment to complete network registration.
In a second aspect, an embodiment of the present application provides an internet access configuration apparatus, including:
a location area obtaining module, configured to obtain a first location area and a second location area when detecting that a terminal device completes network registration and fails to establish data connection with an access network device, where the first location area is used to represent a location where the terminal device is located, and the second location area is used to represent a registration home location of an internet of things card inserted into the terminal device;
a network parameter obtaining module, configured to obtain a target access point network parameter from a preset database according to the first location area and the second location area, where the preset database includes at least one access point network parameter associated with the location area;
and the data connection establishing module is used for establishing network data connection with the access network equipment according to the network parameters of the target access point.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory, a transceiver, and a processor, the memory for storing computer-executable instructions; a transceiver for transceiving data under control of the processor; a processor for executing computer-executable instructions stored by the memory to implement the above-described methods.
In a fourth aspect, the present application provides a readable storage medium, in which computer executable instructions are stored, and when the computer executable instructions are executed by a processor, the computer executable instructions are used for implementing the method described above.
According to the internet surfing configuration method, the internet surfing configuration device and the internet surfing configuration medium, the APN network parameter matched with the current position of the terminal equipment is automatically selected from the database or the APN network parameter matched with the attribution is selected from the database through acquiring the position of the terminal equipment and the attribution of the internet surfing card based on the position and the attribution information of the terminal equipment, and then the network connection is set according to the APN network parameter, so that errors caused by manual selection can be reduced, and the network configuration accuracy and the network configuration efficiency are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application;
fig. 1 is a scene schematic diagram of an internet access configuration method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a network access configuration method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a network access configuration method according to another embodiment of the present application;
fig. 4 is a schematic flowchart of a network access configuration method according to another embodiment of the present application;
fig. 5 is a schematic location diagram of a terminal device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an internet access configuration device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
with the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms referred to in this application are explained first:
a Visitor Location Register (VLR) is a dynamic database that stores information that needs to be retrieved for incoming and outgoing calls of visiting clients in a managed area, as well as information of subscribed services and additional services of a user, such as the number of a client, the identification of a Location area in which the client is located, services provided to the client, and other parameters.
The Home Location Register (HLR) is a static database that stores some dynamic data about the Mobile Switching Center (MSC) area where the roaming Mobile subscriber is located, including subscriber identification number, access capability, subscriber category, and supplementary services.
Fig. 1 is a scene schematic diagram of an internet access configuration method provided in an embodiment of the present application, where the method is mainly applied to a terminal device, such as the mobile phone 100 in fig. 1, into which an internet of things card can be inserted and which relies on the internet of things card to implement network access. Different from the existing Subscriber Identity Module (SIM), the distribution of the internet of things card is bound with the province and city, and the APN parameters allocated by different provinces and cities may be different. When distinguishing the APN parameters, the user usually discriminates based on the abbreviation or area code of province and city, and selects the APN parameter corresponding to the province and city to set network connection. As shown in fig. 1, when the mobile phone 100 inserts the internet of things card, a user needs to perform network distribution on the mobile phone 100, interact with an access network device (for example, a base station 110) to perform network registration, and establish network connection with the base station 110 based on an apn parameter corresponding to province and city after completing the network registration, so as to implement network access. One of the distribution Network modes is to match several sets of APN parameters based on a Public Land Mobile Network (PLMN), and then a user selects one of the sets of APN parameters. And the other method is to package and store the APN parameters corresponding to all provinces and cities in the terminal equipment, determine the province and cities by means of peripheral auxiliary positioning to automatically select the APN parameters corresponding to the province and cities from the data packets, and the mode is limited by an auxiliary positioning device, so that the network distribution cannot be realized when no positioning signal is generated due to external interference. The other is that the user selects the APN parameter from the data packet based on the abbreviation or area code of the province and city, but the manual operation mode has low efficiency, and the abbreviations of the provinces and cities have similarity, so that confusion is easy to generate, and the accuracy of the distribution network is reduced.
In order to solve the above problems, the internet access configuration method, device, equipment and medium provided in the embodiments of the present application need to implement automatic network distribution of the terminal device in order to avoid the problems of poor accuracy and low efficiency of manual network distribution. Specifically, by acquiring the position of the terminal device and the home location of the internet of things card, based on the position and the home location information of the terminal device, the APN network parameter matched with the current position of the terminal device is automatically selected from the database or the APN network parameter matched with the home location is selected from the database, and then the APN network parameter is used for setting network connection, so that errors caused by manual selection can be reduced, and the network configuration accuracy and the network configuration efficiency are improved.
The technical solution of the present application will be described in detail below with reference to specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of a network access configuration method provided in an embodiment of the present application, where the method may be applied to a terminal device, and the terminal device is taken as an example of an execution subject. As shown in fig. 2, the method specifically includes the following steps:
step S201, when detecting that the terminal device completes network registration and fails to establish data connection with the access network device, acquiring a first location area and a second location area. The first position area is used for representing the position of the terminal equipment, and the second position area is used for representing the registration home location of the Internet of things card inserted into the terminal equipment.
In this embodiment, after the terminal device inserts the internet of things card and starts up, it usually initiates network registration to the access network device automatically based on a network registration procedure, for example, registering a Long Term Evolution (LTE) network. The terminal device may use the default APN parameters for network configuration during network registration. In which the use of default APN parameters may not be able to establish a data connection, i.e. it is prompted that other valid APN parameters need to be reselected for network configuration.
The terminal device stores a database in advance, which includes province and APN parameters supported by all internet of things cards, and may further include a cell identifier (e.g., number segment), a Mobile Country Code (mcc) and a Mobile Network Code (MNC) of an internet of things card operator. The database can be stored in a dedicated customized storage area, or can be automatically imported into a data area which can be identified by the terminal equipment when the terminal equipment is started for the first time so as to facilitate access and calling.
Step S202, according to the first location area and the second location area, obtaining the network parameters of the target access point in a preset database. Wherein the pre-defined database comprises at least one access point network parameter associated with a location area.
Step S203, according to the network parameters of the target access point, network data connection is established with the access network equipment.
In this embodiment, the first location area may be understood as a location area where the terminal device is located when initiating the data connection establishment request (the location area may specifically be J province city), and the second location area may be understood as a registered home area (for example, the home area of the internet of things is S province city).
The APN parameter associated with the first location area or the second location area may be found in a preset database based on the first location area or the second location area, and the APN parameter is used as a target access point network parameter. Specifically, in the process of network distribution, the APN parameter associated with the first location area (hereinafter referred to as the first APN parameter for distinction) may be searched in the preset database, and the APN parameter associated with the second location area (hereinafter referred to as the second APN parameter for distinction) may be searched in the preset database. When the terminal device is automatically configured with the network, the second APN parameter may be used to try to establish network connection with the access network device, and if the network connection is failed to be established, the first APM parameter may be used to try to establish network connection with the access network device.
According to the method and the device for configuring the APN network, the position of the terminal equipment and the attribution of the Internet of things card are obtained, the APN network parameter matched with the current position of the terminal equipment is automatically selected from the database or the APN network parameter matched with the attribution is selected from the database based on the position of the terminal equipment and the attribution information, and then network connection is set according to the APN network parameter, so that errors caused by manual selection can be reduced, and the network configuration accuracy and the network configuration efficiency are improved.
In other embodiments, the step S202 may be specifically implemented by the following steps: comparing the first position area with the second position area to obtain a comparison result; acquiring a target area according to the comparison result; and acquiring the network parameters of the target access point in a preset database according to the target area. And the comparison result is used for representing whether the first position area is matched with the second position area, and the target area is the first position area or the second position area.
In this embodiment, the location area where the terminal device is located may not be the same as (i.e., not match) the home location of the internet of things card. Generally, this situation is called roaming, and when the terminal device is in a roaming state, it needs to acquire a province city where the roaming place is located, and then, based on the province city where the roaming place is located, find out a corresponding first APN parameter from a preset database as a target access point network parameter. And when the terminal equipment is in a non-roaming state, directly searching the corresponding second APN parameter from the preset database by using the province city where the home location of the Internet of things card is located as the network parameter of the target access point.
According to the embodiment of the application, the first position area and the second position area are compared, the target area is selected from the first position area and can be directly determined based on the target area, and the terminal equipment can accurately and quickly realize the distribution network process to establish network data connection with the access network equipment based on the APN parameter corresponding to the target area.
Further, on the basis of the above embodiments, in some embodiments, when the target area is obtained, if the first position area does not match the second position area, the first position area is taken as the target area; and if the first position area is matched with the second position area, taking the second position area as a target area.
In this embodiment, if the first location area does not match the second location area, it indicates that the terminal device is currently in a roaming state, and at this time, the roaming location information (i.e., the first location area) is used to acquire the first APN parameter as the target access point network parameter; if the first location area is matched with the second location area, it indicates that the terminal device is not in the roaming state currently, and at this time, the home location (i.e. the second location area) is used to acquire the second APN parameter as the network parameter of the target access point.
According to the embodiment of the application, whether the terminal equipment is in the roaming state or not can be determined through the comparison result, if the terminal equipment is in the roaming state, the information of the roaming place is used as the target area, and if the terminal equipment is not in the roaming state, the attribution place is used as the target area, so that the appropriate APN parameter can be accurately and quickly found to realize the quick distribution of the terminal equipment, and the distribution efficiency is improved.
Further, in other embodiments, if the target area is the first location area, the target access point network parameter associated with the first location area is obtained in the preset database; and if the target area is the second location area, acquiring the network parameters of the target access point associated with the second location area from a preset database.
In this embodiment, what is stored in the preset database in advance is the province city supported by the internet of things card and the corresponding APN parameter, and also the cell number segment, the MCC/MNC of the operator of the internet of things card, and the matching city. For example, the preset database may be similar to a table, where the table includes APN parameters corresponding to each province and city, and different APN parameters may be obtained from different provinces and cities based on the different provinces and cities.
The method comprises the steps that a storage area can be customized in the terminal equipment to store a preset database, and the preset database is automatically imported into a data area which can be identified and accessed by the terminal equipment when the terminal equipment is started for the first time so as to be accessed, inquired and called by the terminal equipment.
According to the method and the device, the target area is specifically determined to be the first location area or the second location area, and the APN parameter associated with the target area is selected based on different location areas to set network connection, so that an automatic process is realized, a user does not need to manually select the corresponding APN based on province city, the adaptation efficiency of the APN parameter is improved, and the automatic network distribution of the terminal equipment can be quickly realized.
In some embodiments, the above internet access configuration method further includes the following steps: detecting whether a network data connection is established with the access network equipment; if the network data connection with the access network equipment is not established, acquiring the identification information of the cell where the terminal equipment is currently located; acquiring a position area of a cell where the terminal equipment is located according to the identification information; acquiring a next target access point network parameter from a preset database according to the position area of the cell where the terminal equipment is located; and according to the next target access point network parameter, continuing to establish network data connection with the access network equipment.
In this embodiment, the identification information of the located cell is a cell ID, the cell ID is a cell ID of the cell where the terminal device is located, and the location area where the terminal device is located can be determined by the cell ID. The preset database may further store a matching relationship between the cell ID and the city, and the matching relationship may determine a location area of a cell where the terminal device is located (i.e., the city of the province), and then search the matching APN parameter in the preset database based on the location area as a network parameter of a next target access point, so as to set network connection.
According to the method and the device, the cell ID is obtained, the location area of the cell where the terminal device is located is determined through the cell ID, the APN parameter is obtained to set network connection, and compared with the method that the APN parameter is obtained through the first location area and the second location area, the positioning accuracy is higher, the appropriate APN parameter can be found more accurately, and the accuracy of a distribution network is improved.
In other embodiments, step S202 may be further implemented by: detecting whether the terminal equipment is located at the junction of the first position area and the second position area; if the terminal equipment is positioned at the junction, acquiring the identification information of the cell where the terminal equipment is currently positioned; and acquiring the network parameters of the target access point in a preset database according to the identification information.
In this embodiment, the terminal device may be located in a border area across provinces or cities, and at this time, the roaming state of the terminal device is unstable, and at this time, the cell ID may be used to match the internet of things card to the mcc/mnc of the operator, query the database to determine a location area where the cell ID is located, and determine a corresponding APN parameter based on the location area where the cell ID is located.
According to the method and the device, the cell ID is obtained, when the terminal equipment is located in the province and city boundary area, the corresponding APN parameter can be determined based on the cell ID so as to set network connection, the situation that the terminal equipment obtains the wrong APN parameter due to unstable roaming state in the province and city boundary area is avoided, and the APN parameter obtaining accuracy and the distribution network efficiency are improved.
In other embodiments, the internet surfing configuration method may further include the following steps: when terminal equipment carries out network registration, information in a visitor location register communicated with access network equipment and information in a home location register communicated with the access network equipment are acquired; and storing the information in the visitor location register and the information in the home location register into a global variable, wherein the global variable is stored in a protocol stack of a modem of the terminal equipment.
In this embodiment, the information in the visitor location register VLR includes information that needs to be retrieved for incoming and outgoing calls of an MS (generally referred to as a visiting client) in the jurisdiction area, and information of subscribed services and additional services of the subscriber, such as the number of the client, the identification of the location area where the subscriber is located, the service provided to the client, and other parameters, and the information in the home location register HLR includes dynamic data about the MSC area where a part of roaming mobile subscribers are located, including subscriber identification number, visiting capability, subscriber category, supplementary services, and other data. After the terminal equipment inserts the Internet of things card to register to LTE, the information in the VLR and the information in the HLR can be acquired by analyzing the air interface information in the LTE registration process.
When the terminal equipment and the access network equipment perform information interaction, the information in the VLR and the information in the HLR can be acquired, and then a global variable structure body is arranged to store the VLR information and the HLR information into a protocol stack at a modem (modem) side of the terminal equipment.
According to the embodiment of the application, the global variable is set in the modem protocol stack, the information in the HLR and the information in the VLR are acquired and stored in the global variable when the terminal equipment interacts with the access network equipment, so that the current position and the attribution place of the terminal equipment can be obtained based on the information in the HLR and the information in the VLR, and the position information can be acquired without depending on a positioning device, so that the flexibility and the applicability of internet access configuration are improved, and the internet access of the terminal equipment can still be realized under the condition that no positioning device is used for auxiliary positioning.
Further, when the first location area and the second location area are obtained, the information in the visitor location register and the information in the home location register, which are stored in the global variable, can be obtained through a preset device interface; obtaining a first location area from information in the visitor location register; the second location area is obtained from the information in the home location register.
In this embodiment, the preset Device Interface may be a Shared Memory Device (SMD) Interface, an RIL Request ID is added to a Radio Interface Layer (RIL) based high-pass architecture, and a Request is sent to the modem protocol stack by the SMD to obtain VLR information and HLR information in global variables stored in the modem protocol stack. The VLR information includes at least the first location area and the HLR information includes at least the second location area.
In the embodiment of the application, a request is sent to a modem protocol stack through the SMD, the position of the terminal device is obtained from VLR information in the global variable, and the home location is obtained from HLR information. Therefore, the terminal equipment can acquire the position information without auxiliary positioning by a positioning device, and acquire the matched APN parameter by using the position information, and a user does not need to manually select the APN based on the province and city, so that automatic internet access configuration is realized, and the internet access configuration efficiency and accuracy are improved.
In other embodiments, fig. 3 is a schematic flow chart of a network access configuration method according to another embodiment of the present application, and as shown in fig. 3, the method may include the following steps: step S301, after detecting that the terminal device completes network registration in the access network device, acquiring preset access point network parameters; step S302, a connection request is initiated according to the preset access point network parameters. The connection request is used for establishing data connection with the access network equipment; step S303, detecting whether a data connection success message fed back by the access network equipment is received; step S304, if the data connection success message is not received, confirming that the data connection with the access network equipment cannot be established; step S305, acquiring a first position area and a second position area; step S306, if the data connection success message is received, the data connection is established successfully; step S202, acquiring target access point network parameters from a preset database according to the first position area and the second position area, wherein the preset database comprises at least one access point network parameter associated with the position area; step S203, according to the network parameters of the target access point, network data connection is established with the access network equipment.
In this embodiment, a default APN parameter may be set for the terminal device as a preset access point network parameter. For example, after the terminal device registers with the LTE network, a network connection may be set based on the default APN parameter, and if it is found that a network data connection cannot be established with an access network device (e.g., a base station), it is described that the default APN parameter has an error and a new APN parameter needs to be reconfigured.
The embodiment of the application can be used for detecting whether the terminal equipment can establish network data connection with the access network equipment or not by setting the default APN parameter, and can determine that the default APN parameter has problems if the network data connection is not established, so that the terminal equipment can be prompted to automatically reacquire a new APN parameter, and the automation of internet access configuration is realized.
In other embodiments, the internet access configuration method further includes the following steps: after the Internet of things card is inserted into the terminal equipment, the network registration is completed by initiating a request to the access network equipment. For example, the internet of things card can be inserted after the terminal device is started, so that the terminal device can be normally registered to the LTE network. In this embodiment, when the SIM card is inserted into the terminal device, the network parameters of the terminal device are usually searched for and matched with the corresponding mcc/mnc value in the APN-conf.xml list based on the mcc/mnc of the SIM card, and then one is set as the default configuration, while the internet of things card is different from the SIM card, and the APN parameter of the internet of things card is related to the province and city where the local place is located, and the APN parameter needs to be configured additionally.
In the embodiment of the application, the internet access network card is inserted into the terminal equipment for network registration, and the appropriate APN parameter is configured after the network registration is completed, so that the method is different from the conventional SIM card, the terminal equipment can be prevented from using the wrong APN parameter for internet configuration, and the accuracy of internet configuration is further improved.
Fig. 4 is a flowchart illustrating a network access configuration method according to another embodiment of the present application, and as shown in fig. 4, the method includes step S401, where the device is started to insert an internet of things card, and a data connection is opened. Step S402, completing network registration and detecting whether a data connection can be established using default access point network parameters. Step S403, acquiring the network cell number segment of the terminal device, the information in the visitor location register, and the information in the home location register through the application programming interface. Step S404, determining whether the terminal device roams. Step S405, according to the information in the home location register, the home location of the Internet of things card is obtained, and the access point network parameters are configured. Step S406, the roaming place is obtained by accessing the information in the location register, and the access point network parameters are configured. Step S407, when the network can not be accessed according to the configured access point network parameters, acquiring the network cell number segment and querying the database to obtain the location information of the network cell number segment, and configuring the corresponding access point network parameters based on the location information to continue to set network connection. Step S408, the data connection is successfully established.
For example, before step S401, it is necessary to pack the city and APN parameters supported by the internet of things card in advance, and at the same time, the cellID (network cell) number segment, mcc, mnc, and the city matching pack buckle are written into the preset database together, so as to facilitate subsequent configuration of the access point network parameters.
In step S403, the cel id may be obtained through the standard interface, the information in the visitor location register and the information in the home location register are obtained by analyzing air interface information in the LTE registration process after the terminal device inserts the internet of things card to register on the LTE network, and the information in the visitor location register and the information in the home location register may be stored in a preset global variable structure, so that the information in the visitor location register and the information in the home location register may be stored in the modem side of the terminal device. And when the information needs to be used, directly sending a request to the modem protocol stack through the SMD to acquire the information in the visitor location register and the information in the home location register which are stored in the global variable structure body of the modem.
In this embodiment, when the terminal device is roaming, the corresponding APN parameter is obtained based on the location information in the visitor location register, and when the terminal device is not roaming, the corresponding APN parameter is obtained based on the location information in the home location register.
In step S407, if the APN parameter obtained based on the location information in the visitor location register or the APN parameter obtained based on the location information in the home location register cannot enable the terminal device to surf the internet, then the corresponding APN parameter is obtained based on the location information where the cell ID number segment is located, and the network connection is continuously set. Specifically, fig. 5 is a schematic position diagram of the terminal device according to the embodiment of the present disclosure, as shown in fig. 5, the terminal device may switch back and forth between a province city a and a province city B within a certain time period, and if the province city a is a home location and the province city B is a current position of the terminal device, the back and forth province city switching may make a roaming state of the terminal device unstable, and at this time, it is necessary to obtain a corresponding APN parameter based on the position information of the cell ID number segment, and it is no longer necessary to obtain the corresponding APN parameter based on the province city a or the province city B, so as to ensure that the terminal device can surf the internet normally.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of an internet access configuration device according to an embodiment of the present application, where the internet access configuration device may be integrated on a terminal device. As shown in fig. 6, the internet access configuration apparatus 600 includes a location area obtaining module 601, a network parameter obtaining module 602, and a data connection establishing module 603.
The location area obtaining module 601 is configured to obtain the first location area and the second location area when detecting that the terminal device completes network registration and fails to establish data connection with the access network device. The first position area is used for representing the position of the terminal equipment, and the second position area is used for representing the registration home location of the Internet of things card inserted into the terminal equipment. The network parameter obtaining module 602 is configured to obtain a target access point network parameter from a preset database according to the first location area and the second location area. The pre-defined database includes at least one access point network parameter associated with a location area. The data connection establishing module 603 is configured to establish a network data connection with the access network device according to the network parameters of the target access point.
Optionally, in some embodiments, the network parameter obtaining module may be further specifically configured to: comparing the first position area with the second position area to obtain a comparison result; and acquiring a target area according to the comparison result, and acquiring the network parameters of the target access point in a preset database according to the target area. And the comparison result is used for representing whether the first position area is matched with the second position area or not, and the target area is the first position area or the second position area.
Optionally, in some embodiments, the network parameter obtaining module may be further configured to: if the first position area is not matched with the second position area, taking the first position area as a target area; and if the first position area is matched with the second position area, taking the second position area as a target area.
Optionally, in some embodiments, the network parameter obtaining module may be further configured to: if the target area is the first position area, acquiring network parameters of a target access point associated with the first position area from a preset database; and if the target area is the second location area, acquiring the network parameters of the target access point associated with the second location area from a preset database.
Optionally, in some embodiments, the internet access configuration device further includes a network data connection checking module, configured to: detecting whether a network data connection is established with the access network equipment; if the network data connection with the access network equipment is not established, acquiring the identification information of the cell where the terminal equipment is currently located; acquiring a position area of a cell where the terminal equipment is located according to the identification information; acquiring a next target access point network parameter in a preset database according to the position area of the cell where the terminal equipment is located; and according to the network parameters of the next target access point, continuing to establish network data connection with the access network equipment.
Optionally, in some embodiments, the network parameter obtaining module may be further specifically configured to: detecting whether the terminal equipment is located at the junction of the first position area and the second position area; if the terminal equipment is positioned at the junction, acquiring the identification information of the cell where the terminal equipment is currently positioned; and acquiring the network parameters of the target access point in a preset database according to the identification information.
Optionally, in some embodiments, the internet surfing configuration device further includes an information storage module, configured to: when terminal equipment carries out network registration, information in a visitor location register communicated with access network equipment and information in a home location register communicated with the access network equipment are acquired; and storing the information in the visitor location register and the information in the home location register into a global variable, wherein the global variable is stored in a protocol stack of a modem of the terminal equipment.
Optionally, in some embodiments, the location area obtaining module may be further configured to: acquiring information in a visitor location register and information in a home location register, which are stored in a global variable, through a preset device interface; obtaining a first location area from information in the visitor location register; the second location area is obtained from the information in the home location register.
Optionally, in some embodiments, the internet access configuration device further includes a connection request module, configured to obtain preset access point network parameters; initiating a connection request according to preset access point network parameters, wherein the connection request is used for establishing data connection with access network equipment; detecting whether a data connection success message fed back by the access network equipment is received; and if the data connection success message is not received, confirming that the data connection with the access network equipment cannot be established.
Optionally, in some embodiments, the internet access configuration device further includes a network registration module, configured to initiate a request to the access network device to complete network registration after the internet of things card is inserted into the terminal device.
The apparatus provided in the embodiment of the present application may be configured to perform the method in the above embodiment, and the implementation principle and technical effects are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the position area obtaining module may be a processing element separately set up, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the function of the position area obtaining module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 7, the terminal device 700 includes: at least one processor 710, memory 720, and a transceiver 730. In FIG. 7, the bus architecture may include any number of interconnected buses and bridges, with various circuits representing one or more processors, in particular processor 710, and memory, in particular memory 720. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 730 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium including wireless channels, wired channels, fiber optic cables, and the like. The processor 710 is responsible for managing the bus architecture and general processing, and the memory 720 may store data used by the processor 710 in performing operations.
The processor 710 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or a complex 13 Programmable Logic Device (CPLD), and may also have a multi-core architecture.
A memory 720 for storing computer-executable instructions; a transceiver 730 for transceiving data under the control of the processor 710; a processor 710 for reading the computer executable instructions in the memory and executing the relevant steps of the method described in the above embodiments. The memory may comprise high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
The embodiment also provides a readable storage medium, where a computer executing instruction is stored in the readable storage medium, and when at least one processor of the terminal device executes the computer executing instruction, the terminal device executes the internet access configuration method provided in the foregoing various embodiments.
In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, A and B together, and B alone, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and succeeding related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for convenience of description and distinction and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A network access configuration method is applied to terminal equipment, and the method comprises the following steps:
when the terminal equipment is detected to finish network registration and cannot establish data connection with access network equipment, acquiring a first position area and a second position area, wherein the first position area is used for representing the position of the terminal equipment, and the second position area is used for representing the registration attribution of an Internet of things card inserted into the terminal equipment;
acquiring target access point network parameters from a preset database according to the first position area and the second position area, wherein the preset database comprises at least one access point network parameter associated with the position area;
establishing network data connection with the access network equipment according to the target access point network parameters;
the obtaining of the target access point network parameters in a preset database according to the first location area and the second location area includes:
comparing the first position area with the second position area to obtain a comparison result, wherein the comparison result is used for representing whether the first position area is matched with the second position area;
acquiring a target area according to the comparison result, wherein the target area is the first position area or the second position area;
acquiring network parameters of a target access point in a preset database according to the target area;
the obtaining of the target area according to the comparison result includes:
if the first position area is not matched with the second position area, taking the first position area as the target area;
and if the first position area is matched with the second position area, taking the second position area as the target area.
2. The method according to claim 1, wherein said obtaining target access point network parameters in a preset database according to the target area comprises:
if the target area is the first position area, acquiring a target access point network parameter associated with the first position area from the preset database;
and if the target area is the second location area, acquiring a target access point network parameter associated with the second location area from the preset database.
3. The method of claim 1, wherein after establishing the network data connection with the access network device according to the target access point network parameters, the method further comprises:
detecting whether a network data connection is established with the access network equipment;
if the network data connection with the access network equipment is not established, acquiring the identification information of the cell where the terminal equipment is currently located;
acquiring a position area of a cell where the terminal equipment is located according to the identification information;
acquiring a next target access point network parameter in the preset database according to the position area of the cell where the terminal equipment is located;
and according to the next target access point network parameter, continuing to establish network data connection with the access network equipment.
4. The method of claim 1, wherein obtaining the target ap network parameters from the first location area and the second location area in a predetermined database comprises:
detecting whether the terminal equipment is located at the junction of the first position area and the second position area;
if the terminal equipment is positioned at the junction, acquiring the identification information of the cell where the terminal equipment is positioned currently;
and acquiring the network parameters of the target access point in the preset database according to the identification information.
5. The method according to any one of claims 1-4, further comprising:
when the terminal equipment performs network registration, acquiring information in a visiting location register communicated with the access network equipment and information in a home location register communicated with the access network equipment;
and storing the information in the visitor location register and the information in the home location register into a global variable, wherein the global variable is stored in a protocol stack of a modem of the terminal equipment.
6. The method of claim 5, wherein said obtaining the first location area and the second location area comprises:
acquiring information in the visitor location register and information in the home location register, which are stored in the global variable, through a preset device interface;
obtaining the first location area from information in the visitor location register;
the second location area is obtained from information in the home location register.
7. The method according to any of claims 1-4, wherein after detecting that the terminal device completes network registration at an access network device, the method further comprises:
acquiring preset access point network parameters;
initiating a connection request according to the preset access point network parameters, wherein the connection request is used for establishing data connection with the access network equipment;
detecting whether a data connection success message fed back by the access network equipment is received;
and if the data connection success message is not received, confirming that the data connection with the access network equipment cannot be established.
8. The method of any of claims 1-4, further comprising:
and after the Internet of things card is inserted into the terminal equipment, initiating a request to the access network equipment to complete network registration.
9. An internet access configuration device, comprising:
a location area obtaining module, configured to obtain a first location area and a second location area when detecting that a terminal device completes network registration and fails to establish data connection with an access network device, where the first location area is used to represent a location where the terminal device is located, and the second location area is used to represent a registration home location of an internet of things card inserted into the terminal device;
a network parameter acquiring module, configured to acquire a target access point network parameter from a preset database according to the first location area and the second location area, where the preset database includes at least one access point network parameter associated with the location area;
the data connection establishing module is used for establishing network data connection with the access network equipment according to the network parameters of the target access point;
the network parameter obtaining module is further configured to compare the first location area with the second location area to obtain a comparison result, where the comparison result is used to characterize whether the first location area is matched with the second location area; acquiring a target area according to the comparison result, wherein the target area is the first position area or the second position area; acquiring network parameters of a target access point in a preset database according to the target area;
the network parameter obtaining module is further configured to take the first location area as the target area if the first location area is not matched with the second location area; and if the first position area is matched with the second position area, taking the second position area as the target area.
10. A terminal device, comprising: the memory, the transceiver and the processor,
a memory for storing computer execution instructions; a transceiver for transceiving data under control of the processor; a processor for executing computer-executable instructions stored by the memory to implement the method of any one of claims 1-8.
11. A readable storage medium having stored therein computer executable instructions for performing the method of any one of claims 1-8 when executed by a processor.
CN202210754169.0A 2022-06-30 2022-06-30 Internet surfing configuration method, device, equipment and medium Active CN114827898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210754169.0A CN114827898B (en) 2022-06-30 2022-06-30 Internet surfing configuration method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210754169.0A CN114827898B (en) 2022-06-30 2022-06-30 Internet surfing configuration method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114827898A CN114827898A (en) 2022-07-29
CN114827898B true CN114827898B (en) 2022-11-01

Family

ID=82522251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210754169.0A Active CN114827898B (en) 2022-06-30 2022-06-30 Internet surfing configuration method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114827898B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869615A (en) * 2015-04-30 2015-08-26 广东欧珀移动通信有限公司 Network access method and mobile communication terminal
CN105282830A (en) * 2015-11-20 2016-01-27 广东欧珀移动通信有限公司 Network access method and mobile terminal
CN108112055A (en) * 2017-12-19 2018-06-01 努比亚技术有限公司 APN acquisition methods, mobile terminal, network-side and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102960031B (en) * 2010-11-29 2016-03-30 华为技术有限公司 The system of selection of non-3 GPP access gateway, the network equipment and subscriber equipment
CN105393598B (en) * 2014-06-30 2020-06-16 华为技术有限公司 Network device and method for assigning access point names
CN111464999B (en) * 2020-05-27 2021-08-03 捷开通讯(深圳)有限公司 Network access method and device and electronic equipment
CN114553601B (en) * 2022-04-25 2022-08-23 龙旗电子(惠州)有限公司 Information verification method, device, equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869615A (en) * 2015-04-30 2015-08-26 广东欧珀移动通信有限公司 Network access method and mobile communication terminal
CN105282830A (en) * 2015-11-20 2016-01-27 广东欧珀移动通信有限公司 Network access method and mobile terminal
CN108112055A (en) * 2017-12-19 2018-06-01 努比亚技术有限公司 APN acquisition methods, mobile terminal, network-side and storage medium

Also Published As

Publication number Publication date
CN114827898A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US11032858B2 (en) Network access method, terminal, access network, and core network
EP3989614A1 (en) Network search configuration method, registration method, apparatus, and system
CN109548175B (en) Session processing method and device
CN110401943B (en) Mobile terminal network-residing method, device, server and storage medium
CN104902541B (en) A kind of method for network access and mobile communication terminal
EP1978772A1 (en) Authentication policy
JP2013042491A (en) Imsi switching method and device
US7835741B2 (en) Method for selecting system in a mobile terminal
EP4109978A1 (en) Communication method and apparatus
JP2013121179A (en) Terminal frequency-band adaptation method and terminal
CN113411781B (en) Request method, device, terminal and storage medium for network slicing service
CN113055982B (en) Network access method, network access device and mobile terminal
CN105530625B (en) Information processing method and electronic equipment
US20220286835A1 (en) Method and device for preparing emergency call and storage medium
JP2013168923A (en) Method and terminal for automatic detection of terminal frequency band setting
CN107466087B (en) Network searching method and mobile terminal
CN117221868A (en) Network registration method, device and readable storage medium
CN114827898B (en) Internet surfing configuration method, device, equipment and medium
CN114586419A (en) Cell search method applied to terminal and communication device
CN113728682A (en) Registration method and device
CN101729993B (en) Access method, device and system
CN114786166B (en) Communication method, device, equipment and computer storage medium
EP4161173A1 (en) Terminal registration processing method and device
CN114095986B (en) Communication method, device, equipment and storage medium
CN116709452A (en) Method and device for accessing cluster core network in same public land mobile network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant