Disclosure of Invention
The embodiment of the invention provides a network registration method, a baseband chip and a terminal, and aims to solve the problem that the time consumed for registering the terminal to a network is long.
In order to solve the technical problem, the embodiment of the invention discloses the following technical scheme:
in a first aspect, a network registration method is provided, where the method includes:
when a baseband chip of the terminal finishes power-on initialization, network searching is carried out to obtain an available network;
the baseband chip receives a registration instruction sent by the application processor after the application processor completes power-on initialization;
the baseband chip registers to the target networks according to the registration instruction, wherein the target networks are one or more of the available networks.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the performing network search includes:
the baseband chip sends an attachment request message to a network side;
receiving an identity identification request message sent by the network side according to the attachment request message;
returning an identification request response message to the network side according to the identification request message;
receiving an attachment acceptance message returned by the network side after the identity authentication of the terminal is passed;
and sending an attachment completion message to the network side according to the attachment acceptance message.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the receiving, by the baseband chip, a registration instruction sent by an application processor after the application processor completes power-on initialization includes: after searching the available network, the baseband chip receives a registration instruction sent by an application processor after finishing power-on initialization;
or,
the method for receiving the registration instruction sent by the application processor after the application processor completes power-on initialization includes the following steps: the baseband chip receives a registration instruction sent by an application processor after the application processor completes power-on initialization in the process of network searching;
the base band chip registers to a target network according to the registration instruction, and the method comprises the following steps: and after searching the available network, the baseband chip registers to a target network according to the registration instruction.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the registering, by the baseband chip, to a target network according to the registration instruction includes:
after the baseband chip receives a registration instruction and is attached to the target network, Public Land Mobile Network (PLMN) information of the target network is obtained;
and residing in a cell under the target network according to the PLMN information.
In a second aspect, a baseband chip is provided, which includes:
the power-on unit is used for carrying out power-on initialization on the baseband chip;
the searching unit is used for searching a network to acquire an available network when the power-on unit finishes power-on initialization;
the receiving unit is used for receiving a registration instruction sent by the application processor after the application processor completes power-on initialization;
a registering unit, configured to register to a target network according to the registration instruction received by the receiving unit, where the target network is one or more of the available networks.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the search unit includes:
a message sending subunit, configured to send an attach request message to a network side;
a message receiving subunit, configured to receive an identity identification request message sent by the network side according to the attach request message;
the message sending subunit is further configured to return an identification request response message to the network side according to the identification request message;
the message receiving subunit is further configured to receive an attachment acceptance message returned by the network side after the identity authentication of the terminal is passed;
the message sending subunit is further configured to send an attach complete message to the network side according to the attach accept message.
With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect,
the receiving unit is specifically configured to receive a registration instruction sent by the application processor after the application processor completes power-on initialization after the searching unit searches the available network;
or,
the receiving unit is specifically configured to receive a registration instruction sent by the application processor after the application processor completes power-on initialization in a network search process performed by the searching unit;
the registration unit is specifically configured to register to a target network according to the registration instruction after the search unit searches the available network.
With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the registering unit includes:
an information obtaining subunit, configured to obtain public land mobile network PLMN information of the target network after the receiving unit receives the registration instruction and the baseband chip is attached to the target network through the searching unit;
and the cell residing subunit is used for residing the PLMN information acquired by the information acquiring subunit in the cell under the target network.
In a third aspect, a terminal is provided, where the terminal includes: a power management unit PMU, an application processor AP and a baseband chip Modem, wherein,
the PMU is used for supplying power to the power-on initialization of the AP and the Modem when the terminal is started;
the Modem is used for searching a network to acquire an available network when the power-on initialization is completed;
the AP is used for sending a registration instruction to the Modem after the power-on initialization is finished;
the Modem is further used for registering to a target network according to the registration instruction, wherein the target network is one or more of the available networks.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the Modem is specifically configured to send an attach request message to a network side, receive an identification request message sent by the network side according to the attach request message, return an identification request response message to the network side according to the identification request message, receive an attach accept message returned by the network side after the identity authentication of the terminal is passed, and send an attach complete message to the network side according to the attach accept message.
With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect,
the Modem is specifically configured to receive a registration instruction sent by the AP after the AP completes power-on initialization after searching the available network;
or,
the Modem is specifically configured to receive a registration instruction sent by the AP after the AP completes power-on initialization in a network search process, and register the Modem in a target network according to the registration instruction after searching the available network.
With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the Modem is specifically configured to, after receiving a registration instruction and attaching to the target network, obtain public land mobile network PLMN information of the target network, and camp on a cell under the target network according to the PLMN information.
In the embodiment of the invention, when the baseband chip of the terminal completes power-on initialization, network search is carried out to obtain available networks, a registration instruction sent by the application processor after the power-on initialization is completed is received, and the application processor is registered to a target network according to the registration instruction, wherein the target network is one or more of the available networks. By applying the embodiment of the invention, when the baseband chip finishes the power-on initialization, the network search is immediately carried out without waiting for the registration instruction sent after the AP initialization is finished, so that the search of the target network is synchronously carried out in the AP initialization process, thereby shortening the time of registering the baseband chip to the network and improving the use experience of a terminal user.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, it is a flowchart of an embodiment of the network registration method of the present invention:
step 101: and when the baseband chip of the terminal finishes power-on initialization, network searching is carried out to obtain an available network.
The terminal in the embodiment of the present invention mainly refers to various intelligent terminals having a communication function, such as a smart phone, a Personal Digital Assistant (PDA), a tablet computer, and the like. These terminals typically include an AP and a baseband chip, which may be specifically referred to as a Modem. When the terminal is started, the AP and the baseband chip in the terminal need to complete power-on initialization, and the baseband chip needs to complete network search and network registration.
In this embodiment, after the power-on initialization is completed, the baseband chip immediately starts network search, and at this time, the baseband chip sends an attach request message to the network side, receives an identification request message sent by the network side according to the attach request message, returns an identification request response message to the network side according to the identification request message, receives an attach accept message returned by the network side after the identity authentication of the terminal is passed, and sends an attach complete message to the network side according to the attach accept message.
Step 102: and the baseband chip receives a registration instruction sent by the application processor after the application processor completes power-on initialization.
In this embodiment, the power-on initialization of the baseband chip and the network search are performed in parallel with the power-on initialization of the application processor, where the baseband chip may receive a registration instruction sent after the power-on initialization of the application processor is completed after an available network is searched for, or the baseband chip may receive a registration instruction sent after the power-on initialization of the application processor is completed during a network search process.
Step 103: the baseband chip registers to a target network, which is one or more of the available networks, according to the registration instructions.
If the baseband chip receives a registration instruction sent by the application processor after the application processor completes power-on initialization after searching for an available network in step 102, the baseband chip can immediately register to a target network according to the registration instruction; if the baseband chip receives the registration instruction sent by the application processor after the application processor completes power-on initialization in the network searching process in step 102, the baseband chip may register to the target network according to the registration instruction after searching for an available network.
After receiving the registration instruction and attaching to the target Network, the baseband chip obtains Public Land Mobile Network (PLMN) information of the target Network, and resides in a cell of the target Network according to the PLMN information.
It can be seen from the above embodiments that, when the baseband chip completes power-on initialization, network search is performed immediately without waiting for a registration instruction sent after the AP initialization is completed, so as to search for a target network synchronously in the AP initialization process, thereby shortening the time for the baseband chip to register in the network, and improving the use experience of the terminal user.
Referring to fig. 2, it is a flowchart of another embodiment of the network registration method of the present invention:
step 201: the PMU receives a terminal power-on instruction.
The terminal in the embodiment of the invention mainly refers to various intelligent terminals with communication functions, such as a smart phone, a PDA, a tablet computer and the like. These terminals typically include an AP and a baseband chip, which may be specifically referred to as a Modem. When the terminal is powered on, for example, a user presses a Power button on the terminal for a long time, and a Power management module (PMU) receives a corresponding Power-on instruction.
Step 202: the PMU supplies power to the AP and the Modem respectively.
And when the PMU receives a starting instruction, the PMU respectively supplies power to the AP and the Modem in the terminal so as to enable the AP and the Modem to complete power-on initialization.
Step 203: the AP performs power-on initialization.
In this embodiment, in the process of performing power-on initialization by the AP, initialization of an AP storage medium, initialization of AP peripheral devices, reading and configuration of AP setting parameters, starting of various applications, and the like are mainly performed.
Step 204: and the Modem performs power-on initialization.
In this embodiment, in the process of performing power-on initialization by the Modem, initialization of a Modem storage medium, initialization of a Modem external device, reading and configuration of a Modem setting parameter, initialization of a Subscriber Identity Module (SIM) card, startup and initialization of a protocol stack, and the like are mainly performed.
Step 205: and after the power-on initialization of the Modem is completed, network searching is carried out.
In this embodiment, after the Modem COMPLETEs power-on initialization, network search is started immediately, AND at this time, a process that the terminal restarts attaching to the network side through the Modem is consistent with an ATTACH process in the prior art, that is, the Modem sends an ATTACH REQUEST message (GMM _ ATTACH _ REQUEST) to the network side, the network side returns an IDENTITY identification REQUEST message (GMM _ IDENTITY _ REQUEST), the Modem sends an IDENTITY identification RESPONSE message (GMM _ IDENTITY _ RESPONSE) to the network side, the network side sends an AUTHENTICATION AND encryption REQUEST message (GMM _ AUTHENTICATION _ AND _ CYPHERING _ REQUEST) to the Modem, the Modem returns an AUTHENTICATION AND encryption RESPONSE message (GMM _ AUTHENTICATION _ AND _ CYPHERING _ RESPONSE) to the network side, the network side sends an ATTACH ACCEPT message (GMM _ ATTACH _ ACCEPT) to the Modem, AND the Modem returns an ATTACH COMPLETE message (GMM _ ATTACH _ REQUEST _ CYPHERING _ ACCEPT) to the network side, thereby completing network search AND attaching to the target.
It should be noted that, when the step 203 is executed, the step 204 and the step 205 may be executed at the same time.
Step 206: and after the AP finishes power-on initialization, the AP sends a registration instruction to the Modem.
In this embodiment, the Modem power-on initialization and the network search are performed in parallel with the AP power-on initialization, where the Modem may receive the registration instruction sent by the AP after the AP completes the power-on initialization after searching for the target network, that is, the Modem may receive the registration instruction sent by the AP after the Modem completes the power-on initialization in step 205, or the Modem may receive the registration instruction sent by the AP after the Modem completes the power-on initialization in the network search process, that is, the Modem may receive the registration instruction sent by the AP in the execution process of step 205.
Step 207: and the Modem carries out network registration on the target network obtained by network search according to the registration instruction.
After the Modem receives the registration instruction and attaches to the target network, the Modem can obtain the PLMN information of the target network by searching and analyzing the terminal frequency point and reside in the cell under the target network according to the PLMN information.
Step 208: the Modem returns a registration completion response to the AP.
It can be seen from the above embodiments that, when the baseband chip completes power-on initialization, network search is performed immediately without waiting for a registration instruction sent after the AP initialization is completed, so as to search for a target network synchronously in the AP initialization process, thereby shortening the time for the baseband chip to register in the network, and improving the use experience of the terminal user.
Corresponding to the embodiment of the network registration method, the invention also provides embodiments of a baseband chip and a terminal.
Referring to fig. 3, a block diagram of an embodiment of a baseband chip of the present invention is shown:
the baseband chip includes: a power-up unit 310, a search unit 320, a receiving unit 330, and a registration unit 340.
The power-on unit 310 is configured to perform power-on initialization on the baseband chip;
a searching unit 320, configured to perform network search to obtain an available network when the power-on unit 310 completes power-on initialization;
a receiving unit 330, configured to receive a registration instruction sent by the application processor after the application processor completes power-on initialization;
a registering unit 340, configured to register to a target network according to the registration instruction received by the receiving unit 330, where the target network is one or more of the available networks.
In an alternative implementation, the search unit 320 may include (not shown in fig. 3):
a message sending subunit, configured to send an attach request message to a network side;
a message receiving subunit, configured to receive an identity identification request message sent by the network side according to the attach request message;
the message sending subunit is further configured to return an identification request response message to the network side according to the identification request message;
the message receiving subunit is further configured to receive an attachment acceptance message returned by the network side after the identity authentication of the terminal is passed;
the message sending subunit is further configured to send an attach complete message to the network side according to the attach accept message.
In another optional implementation manner, the receiving unit 330 may be specifically configured to receive, after the searching unit 320 searches for the available network, a registration instruction sent by the application processor after the application processor completes power-on initialization;
in another optional implementation manner, the receiving unit 330 may be specifically configured to receive, in a network search process performed by the searching unit 320, a registration instruction sent after the application processor completes power-on initialization; the registering unit 340 may be specifically configured to register to the target network according to the registration instruction after the searching unit 320 searches the available network.
In another alternative implementation, the registration unit 340 may include (not shown in fig. 3):
an information obtaining subunit, configured to obtain public land mobile network PLMN information of the target network after the receiving unit receives the registration instruction and the baseband chip is attached to the target network through the searching unit;
and the cell residing subunit is used for residing the PLMN information acquired by the information acquiring subunit in the cell under the target network.
Referring to fig. 4, a block diagram of an embodiment of the terminal of the present invention is shown:
the terminal includes: power management unit PMU410, application processor AP420, and baseband chip Modem 430.
The PMU410 is configured to supply power to the power-on initialization of the AP420 and the Modem430 when the terminal is powered on;
the Modem430 is used for performing network search to acquire an available network when power-on initialization is completed;
the AP420 is configured to send a registration instruction to the Modem430 after the power-on initialization is completed;
the Modem430 is further configured to register to a target network according to the registration instruction, where the target network is one or more of the available networks.
In an optional implementation manner, the Modem430 may be specifically configured to send an attach request message to a network side, receive an identification request message sent by the network side according to the attach request message, return an identification request response message to the network side according to the identification request message, receive an attach accept message returned by the network side after passing the identity authentication of the terminal, and send an attach complete message to the network side according to the attach accept message.
In another optional implementation manner, the Modem430 may be specifically configured to receive a registration instruction sent by the AP after the AP completes power-on initialization after searching the available network, and register to a target network according to the registration instruction after searching the available network.
In another optional implementation manner, the Modem430 may be specifically configured to receive a registration instruction sent by the application processor after the application processor completes power-on initialization in the network search process.
In another optional implementation manner, the Modem430 may be specifically configured to, after receiving the registration instruction and attaching to the target network, obtain public land mobile network PLMN information of the target network, and camp on a cell of the target network according to the PLMN information.
As can be seen from the foregoing embodiments, when the baseband chip of the terminal completes power-on initialization, network search is performed to obtain available networks, a registration instruction sent by the application processor after completing power-on initialization is received, and the application processor registers to a target network according to the registration instruction, where the target network is one or more of the available networks. By applying the embodiment of the invention, when the baseband chip finishes the power-on initialization, the network search is immediately carried out without waiting for the registration instruction sent after the AP initialization is finished, so that the search of the target network is synchronously carried out in the AP initialization process, thereby shortening the time of registering the baseband chip to the network and improving the use experience of a terminal user.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.