Summary of the invention
Embodiment of the invention technical problem to be solved provides a kind of implementation method and relevant device of data service dialing, for reducing the blocking time of the communication port between application processor and the baseband protocol processor, improves the efficient of data service dialing.
A kind of implementation method of data service dialing comprises:
The baseband protocol processor receives the data service dialing request command that application processor sends;
After described baseband protocol processor is received described data service dialing request command, return response message to described application processor, and initiate data service dialing to network side and consult; Described response message is used to indicate described application processor cancellation to the obstruction of communication port;
Described baseband protocol processor will report with the negotiation result of network side described application processor;
Wherein, describedly returned step that response message gives described application processor before the negotiation result that obtains with network side.
A kind of baseband protocol processor comprises:
Receiver module is used for receiving the data service dialing request command that application processor sends;
Message is returned module, is used for after described receiver module receives described data service dialing request command, returns response message to described application processor; Described response message is used to indicate described application processor cancellation to the obstruction of communication port;
Negotiation module is used for after described receiver module receives described data service dialing request command, initiates data service dialing to network side and consults;
Reporting module is used for the negotiation result with network side that described negotiation module obtains is reported described application processor;
Wherein, described message was returned module before the negotiation result of described negotiation module acquisition and network side, returned response message to described application processor.
Accordingly, the embodiment of the invention also provides a kind of communication terminal, comprising:
Application processor and baseband protocol processor;
Described application processor is used for sending the data service dialing request command to described baseband protocol processor; Receive the response message of receiving described data service dialing request command that described baseband protocol processor returns, cancellation is to the obstruction of communication port; Receive the negotiation result that described baseband protocol processor reports, and reach the function of online with the environmental parameter that described negotiation result arranges the network equipment as network parameter;
Described baseband protocol processor, be used for receiving the data service dialing request command that described application processor sends, and after receiving described data service dialing request command, returning response message to described application processor, described response message is used to indicate described application processor cancellation to the obstruction of communication port; And after receiving described data service dialing request command, initiate data service dialing to network side and consult, and will report to the negotiation result of network side described application processor;
Wherein, described baseband protocol processor returned response message to described application processor before the negotiation result of acquisition and network side.
In the embodiment of the invention, the baseband protocol processor is behind the data service dialing request command that receives the application processor transmission, return the response message of receiving this data service dialing request command, the cancellation of indication application processor is to the obstruction of communication channel, and do not need to wait for baseband protocol processor and network side are consulted to finish and the negotiation result of the professional dialing of return data after cancel again obstruction to communication channel, avoided application processor because wait baseband protocol processor returns negotiation result and communication port is blocked for a long time, cause other data service dialings to lose efficacy, application processor can send other data service dialing requests again after receiving the response message that the baseband protocol processor returns, do not need the blocking communication channel to wait for that baseband protocol processor device returns negotiation result, thereby can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of implementation method and relevant device of data service dialing, avoid application processor because wait baseband protocol processor returns negotiation result and communication port is blocked for a long time, can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.Below be elaborated respectively.
Embodiment one:
See also Fig. 1, the schematic flow sheet of the implementation method of a kind of data service dialing that Fig. 1 provides for the embodiment of the invention.Wherein, the method can may further comprise the steps:
101, the baseband protocol processor receives the data service dialing request command that application processor sends;
In the embodiment of the invention, baseband protocol processor and application processor are respectively as a processor of the communication terminal (such as smart mobile phone) of dual processor dual-core architecture.Wherein, the baseband protocol processor is as the gateway of data service data, and application processor is then by baseband protocol processor and wireless network interaction data.
102, the baseband protocol processor returns the response message that receives above-mentioned data service dialing request command to application processor, and initiates data service dialing to network side and consult; Wherein, this response message is used to indicate the application processor cancellation to the obstruction of communication port;
In the preferred mode, the baseband protocol processor return response message to the step of application processor before the negotiation result that obtains with network side.Particularly, the baseband protocol processor return response message can be the baseband protocol processor be initiated step that data service dialing consults to network side before to the step of application processor.By this mode, can farthest can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
In the embodiment of the invention, the baseband protocol processor returns response message to application processor behind the data service dialing request command that receives the application processor transmission, after application processor receives this response message, trigger the obstruction of removing communication channel, and wait for that the baseband protocol processor returns negotiation result.
Wherein, application processor can continue to initiate other data service dialing requests after the obstruction of removing communication channel.The baseband protocol processor can be initiated dialing to network side and consult after being received above-mentioned data service dialing request command.
103, the baseband protocol processor will report application processor with the negotiation result of network side.
When baseband protocol processor and application processor established the data service path, the baseband protocol processor can pass through the active reporting mode, and the active reporting negotiation result is to application processor.Wherein, this negotiation result can comprise Internet protocol (Internet Protocol, IP) network parameters such as address, domain name system (Domain Name System, DNS), netmask (NETMASK), route (ROUTE), gateway (NETGATE); After application processor is received the negotiation result that the base band protocol processor returns, can reach according to the environmental parameter that negotiation result arranges the network equipment function of online.When baseband protocol processor and network side were consulted unsuccessfully, the baseband protocol processor is the active reporting application processor then, and the notice application processor is consulted unsuccessfully.
In the embodiment of the invention, the baseband protocol processor is behind the data service dialing request command that receives the application processor transmission, return the response message of receiving this data service dialing request command, the cancellation of indication application processor is to the obstruction of communication channel, and do not need to wait for baseband protocol processor and network side are consulted to finish and the negotiation result of the professional dialing of return data after cancel again obstruction to communication channel, avoided application processor because wait baseband protocol processor returns negotiation result and communication port is blocked for a long time, cause other data service dialings to lose efficacy, application processor can be removed communication channel and block after receiving the response message that the baseband protocol processor returns, again send other data service dialing requests, thereby can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
Embodiment two:
See also Fig. 2, the schematic flow sheet of the implementation method of the another kind of data service dialing that Fig. 2 provides for the embodiment of the invention.Wherein, the method can may further comprise the steps:
201, application processor sends the data service dialing request command to the baseband protocol processor;
Wherein, application processor sends the data service dialing request command to after the baseband protocol processor, the blocking communication channel, and wait for that the baseband protocol processor receives the response message that returns behind this data service dialing request command, this response message is used to indicate the obstruction that application processor is removed communication channel.
202, application processor is after transmission data service dialing request command is to the baseband protocol processor, and the passage channel is so that application processor can not send other data service dialing requests by this communication port that is in blocked state more again;
203, application processor receives the baseband protocol processor and is receiving the response message that returns behind the above-mentioned data service dialing request command;
Wherein, the baseband protocol processor receives after the above-mentioned data service dialing request command again, just returns a response message to application processor, and this response message is used to indicate the obstruction that application processor is removed communication channel;
204, the application processor cancellation is to the obstruction of communication port;
Wherein, application processor is after receiving the response message that the baseband protocol processor returns, and cancellation is to the obstruction of communication port, so that application processor can send other data service dialing request commands by communication port.
205, application processor receives the negotiation result of the data service dialing of baseband protocol processor active reporting, and reaches the function of online with this negotiation result as the environmental parameter that network parameter arranges the network equipment, thereby finishes data service dialing.
Wherein, after baseband protocol processor and network side negotiation end, baseband protocol processor meeting active reporting negotiation result is to application processor.Application processor receives the negotiation result that the baseband protocol processor reports, and reaches the function of online according to the environmental parameter of these negotiation result configure network devices that report, thereby finishes data service dialing.
In the embodiment of the invention, the response message that application processor returns by reception baseband protocol processor is removed the obstruction of communication channel, do not need that the baseband protocol processor is that return removes the obstruction of communication port with negotiation result network side by receiving, avoided application processor because wait baseband protocol processor returns negotiation result and communication port is blocked for a long time, cause other data service dialings to lose efficacy, application processor can be removed communication channel and block after receiving the response message that the baseband protocol processor returns, again send other data service dialing requests, thereby can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
Embodiment three:
See also Fig. 3, the structural representation of a kind of application processor that Fig. 3 provides for the embodiment of the invention, this application processor are used for carrying out the implementation method of the data service dialing that above-described embodiment two introduces.Wherein, this application processor can comprise:
Sending module 31 is used for sending the data service dialing request command to the baseband protocol processor, and wherein, this data service dialing request command is used for the negotiation result of the professional dialing of request baseband protocol processor return data;
Control module 32 is used for blocking the communication port that is used for sending the data service dialing request command after sending module 31 transmission data service dialing request commands are to the baseband protocol processor;
Receiver module 33 is used for receiving the response message of receiving above-mentioned data service dialing request command that the baseband protocol processor returns; Wherein, this response message is used to indicate the obstruction that control module 32 is removed communication port;
Correspondingly, control module 32 also is used for removing the obstruction to communication port after receiver module 33 receives above-mentioned response message;
Wherein, receiver module 33 also be used for to receive the negotiation result of the data service dialing of baseband protocol processor active reporting;
Correspondingly, control module 32, also be used for after receiver module 33 receives the negotiation result of data service dialing of baseband protocol processor active reporting, and reach the function of online with this negotiation result as the environmental parameter that network parameter arranges the network equipment, thereby finish data service dialing.
In the embodiment of the invention, control module 32 is removed the obstruction of communication channel after receiver module 33 receives the response message that the baseband protocol processor returns, do not need receiver module 33 receive the baseband protocol processor that return with negotiation result network side after just remove the obstruction of communication port, avoided because wait baseband protocol processor returns negotiation result and communication port is blocked for a long time, cause other data service dialings to lose efficacy, control module 32 can solve communication channel and block after receiving the response message that the baseband protocol processor returns, sending module 31 can send other data service dialing requests again, thereby can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
Embodiment four:
See also Fig. 4, the structural representation of a kind of baseband protocol processor that Fig. 4 provides for the embodiment of the invention, this application processor are used for carrying out the implementation method of the data service dialing that above-described embodiment one introduces.Wherein, this baseband protocol processor can comprise:
Receiver module 41 is used for receiving the data service dialing request command that application processor sends;
Message is returned module 42, is used for after receiver module 41 receives above-mentioned data service dialing request command, return receive above-mentioned data service dialing request command response message to application processor;
Wherein, above-mentioned response message is used to indicate the application processor cancellation to the obstruction of communication port.
Negotiation module 43 is used for after receiver module 41 receives above-mentioned data service dialing request command, initiates data service dialing to network side and consults;
Reporting module 44 is used for the negotiation result of negotiation module 43 and network side is reported to application processor.
In the preferred mode, message was returned module 42 before the negotiation result of negotiation module 43 acquisitions and network side, returned response message to application processor.Particularly, message is returned module 42 can be after receiver module 41 receives above-mentioned data service dialing request command, and initiates to network side to return response message to application processor before data service dialing consults in negotiation module 43.By the way, can farthest can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
In the embodiment of the invention, message is returned module 42 after receiver module 41 receives the data service dialing request command that application processor sends, return the response message of receiving this data service dialing request command, the cancellation of indication application processor is to the obstruction of communication channel, so that not needing to wait for baseband protocol processor and the negotiation result that the network side negotiation finishes and the return data business dials, application processor do not cancel again the obstruction to communication channel afterwards, avoided application processor because wait baseband protocol processor returns negotiation result and communication port is blocked for a long time, cause other data service dialings to lose efficacy, application processor can be removed communication channel and block after receiving the response message that the baseband protocol processor returns, again send other data service dialing requests, thereby can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
Embodiment five:
See also Fig. 5, the structural representation of a kind of communication terminal that Fig. 5 provides for the embodiment of the invention, this communication terminal are used for carrying out the implementation method of the data service dialing that above-described embodiment one, embodiment two introduce.Wherein, this communication terminal can comprise:
Application processor 1 and baseband protocol processor 2,
Wherein, application processor 1 is used for sending the data service dialing request command to baseband protocol processor 2; Receive the response message of receiving above-mentioned data service dialing request command that baseband protocol processor 2 returns, cancellation is to the obstruction of communication port; Receive the negotiation result that baseband protocol processor 2 reports, and reach the function of online with the environmental parameter that this negotiation result arranges the network equipment as network parameter;
Baseband protocol processor 2, be used for receiving the data service dialing request command that application processor 1 sends, and after receiving above-mentioned data service dialing request command, returning response message to application processor 1, this response message is used to indicate application processor 1 cancellation to the obstruction of communication port; And after receiving above-mentioned data service dialing request command, initiate data service dialing to network side and consult, and will report to the negotiation result of network side application processor 1;
Wherein, described baseband protocol processor returned response message to described application processor before the negotiation result of acquisition and network side.
In the preferred mode, baseband protocol processor 2 returned response message to application processor 1 before the negotiation result of acquisition and network side.Particularly, baseband protocol processor 2 can be after receiving above-mentioned data service dialing request command, and initiating to return response message to application processor 1 before data service dialing consults to network side.By the way, can farthest can reduce the blocking time of the communication port between application processor and the baseband protocol processor, improve the efficient of data service dialing.
In the embodiment of the invention, baseband protocol processor 2 is behind the data service dialing request command that receives application processor 1 transmission, return the response message of receiving this data service dialing request command, 1 cancellation of indication application processor is to the obstruction of communication channel, and do not need to wait for baseband protocol processor 2 and network side are consulted to finish and the negotiation result of the professional dialing of return data after cancel again obstruction to communication channel, avoided application processor 1 and owing to wait for baseband protocol processor 2 to return negotiation result communication port has been blocked for a long time, cause other data service dialings to lose efficacy, application processor 1 can be removed communication channel and block after receiving the response message that the baseband protocol processor returns, again send other data service dialing requests, thereby can reduce the blocking time of the communication port between application processor 1 and the baseband protocol processor 2, improve the efficient of data service dialing.
For the ease of understanding, the below is described in detail above-described embodiment with concrete application scenarios:
Application scenarios, self is managed for the state of network connection with state machine in the professional dialing of tentation data requesting terminal, carries out the flow process of above-described embodiment according to state and event, thereby guarantees the accuracy of flow chart of data processing.The application processor 1 main initiation of being responsible for the data service request, and the respective operations of initiation data service.The baseband protocol processor 2 of data service requesting terminal is responsible for and network side mutual, and the access ability to outside wireless network is provided.
Referring to Fig. 6, be the state machine conversion schematic diagram of data service dialing requesting terminal, wherein the operation of each event representative is as shown in table 1 below among the figure:
Table 1
Referring to Fig. 6 and table 1, the below describes in detail the modified flow of state in this state machine:
Be in the unactivated state (initial condition) issuable event and result is in terminal: if generation event 1, namely the sending module 31 of application processor 1 is initiated the data service activation request, control module 32 is blocked the communication port with the baseband protocol processor, and state machine is updated to state in the activation by unactivated state.If generation event 3: the reporting module 44 of baseband protocol processor reports the information that disconnects with network side.State machine is updated to unactivated state by unactivated state.
Be in the activation in the attitude issuable event and result is in terminal: if generation event 1, then the sending module 31 of application processor 1 is initiated the data service activation request, control module 32 is blocked the communication port with the baseband protocol processor, and state machine state still is state in activating.If generation event 3: the reporting module 44 of baseband protocol processor 2 reports the information that disconnects with network side.State machine is unactivated state with the state update mode.If generation event 4: the reporting module 44 of baseband protocol processor 2 reports with network side and links successful information.The state machine update mode is activated state.If generation event 5: baseband protocol processor 2 activationary time timer expiries at the appointed time do not have return results.State machine is updated to state in the deexcitation with state.
Be in the activated state issuable event and result is in terminal: if generation event 1: the sending module 31 of application processor 1 sends the data service activation requests.State machine is updated to the use attitude.If generation event 3: the reporting module 44 of baseband protocol processor 2 reports the information that disconnects with network side.The state machine update mode is unactivated state.Use in the attitude issuable event and result thereof to be if state machine is in: if generation event 2: the data service deexcitation request that application processor 1 sends, the state machine update mode is in the deexcitation.If generation event 3: the reporting module 44 of baseband protocol processor 2 reports the information that disconnects with network side.The state machine update mode is unactivated state.
If the state machine initial condition is that issuable event and result thereof are in the deactivated state: if generation event 1: the sending module 31 of application processor is initiated the data service activation requests.State is constant.If generation event 3: the reporting module 44 of baseband protocol processor 2 reports the information that disconnects with network side.The state machine update mode is unactivated state.If generation event 6: application processor deexcitation timer expired, state machine update mode are unactivated state.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the relevant hardware of instruction finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: USB flash disk, read-only memory (ROM), random access device (RAM), disk or CD etc.
More than implementation method and the relevant device of a kind of data service dialing that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.