Mobile software system application request method for parallel processing and system
Technical field
The present invention relates to communication information technical field, move software system application request parallel processing side particularly to one
Method and system.
Background technology
Mobile software system mainly by Application Processor application processing subsystem (abbreviation AP) and
Communication Processor baseband (being called for short CP) is constituted.AP subsystem mainly includes operating system, negative
Blame the intelligent terminal software function mutual with user;CP subsystem mainly includes baseband module and drives module, has been responsible for
Become the wireless access function of base-band software.Both have been connected be in communication with each other by the physical equipments such as USB, serial ports.AP subsystem
It is generally divided into application layer, ccf layer, Radio Interface Layer radio interface layer (being called for short RIL) and drives module, application
Layer includes that various application software calls to application layer for user, the ccf layer various functional interfaces of offer, and RIL layer is ccf layer
Implementing of radio communication correlation function, drive module for sending and receive the data on physical equipment, structure such as Fig. 1 institute
Show.RIL layer communicates with ccf layer upwardly through socket SOCKET, is responsible for downwards encapsulation and resolves AT instruction, by setting
Standby driving and baseband module communication.In the prior art, the request that ccf layer is initiated carries out serial process at RIL layer, works as request
Very likely obstruction is caused at RIL layer, it is impossible to ensure the real-time of the functions such as voice, it is impossible to bring the body that user is good time too much
Test.
For solving problem above, industry generally uses multiplex protocol CMUX, sees 3GPP agreement GSM07.10, at AP
System and CP subsystem both sides increase CMUX protocol process module, as shown in Figure 2 respectively.CMUX protocol process module was responsible for the end of
Layer physical port is managed, and fictionalizes the logical communication channel of multiple independent parallel, and RIL layer is uploaded in different logical channels
Defeated AT instructs.Owing to needing to increase respectively the processing module of correspondence at AP subsystem and CP subsystem, modified module is more, exploitation
Cycle is long, is unfavorable for that product up-gradation is safeguarded and quickly releases market.
Summary of the invention
For solving problem above, the present invention provides mobile software system application request method for parallel processing and system, is not required to
Want AP and CP to increase extra CMUX processing module, while not increasing overhead cost, complete CMUX agreement same
Function, reduce product development and test period.
The present invention provides a kind of mobile software system application request method for parallel processing, including:
Multiple application module is fictionalized at radio interface layer RIL, by each according to baseband CP baseband functions
Application module is corresponding to different threads;
RIL receives the application process request that ccf layer is initiated, and request distribution is delivered to the application module of correspondence, and joins
The request queue of each application module;
Request queue is encapsulated as self-defined AT instruction by RIL, and self-defined AT instruction is sent to CP, waits that CP returns described
Self-defined AT instructs result;
After CP completes the process request of corresponding module, result content is packaged into self-defined AT instruction, by self-defined
AT instruction is sent to RIL, returns result;
The head byte that RIL instructs according to the self-defined AT of the result received, it is judged that belong to which application module, place
Reason resultant content returns to this application module;
Application module is converted into, result, the data that ccf layer needs, and sends ccf layer to.
The present invention provides a kind of mobile software system application request parallel processing system (PPS), including application subsystem AP and base band
Processing subsystem CP, described application subsystem AP includes radio interface layer RIL;Described baseband CP includes base band mould
Block:
Described radio interface layer RIL farther includes: application module dummy unit, application request control unit, self-defined
AT instruction encapsulation and recognition unit A, data-interface A;
Described application module dummy unit, for fictionalizing multiple application module according to baseband functions, applies mould by each
Block is corresponding to different threads;
Described application request control unit, the application initiated for sink block rack-layer processes request, and request distribution is delivered to
Corresponding application module, and join the request queue of each application module;Judge to belong to which application module according to head byte,
Result content is transmitted to this application module;
Described self-defined AT instruction encapsulation and recognition unit A, for request queue is encapsulated as self-defined AT instruction, identify
CP returns the self-defined AT instruction of result;
Described data-interface A, for self-defined AT instruction is sent to CP, receives the self-defined AT instruction that CP sends;
Described baseband module farther includes: application request processing unit, self-defined AT instruction encapsulation and recognition unit B,
Data-interface B;
Described application request processing unit, the process request completing respective application module for CP, generate in result
Hold
Described self-defined AT instruction encapsulation and recognition unit B: result content is packaged into self-defined AT instruction, identifies
The self-defined AT instruction that RIL sends;
Described data-interface B, for self-defined AT instruction is sent to RIL, receives the self-defined AT instruction that RIL sends.
The present invention fictionalizes multiple application module at RIL layer, and each application module is in different threads, it is simple to realize
Concurrent processing, obtains self-defined AT instruction by arranging a byte, and arranging of head byte can be distinguished in corresponding physical channel
Application module belonging to the data of upper transmission.Compared with prior art, AP and CP need not increase extra CMUX processing module,
Only need to revise RIL layer, while not increasing overhead cost, complete the function that CMUX agreement is same, reduce product and open
Send out and test period.
Accompanying drawing explanation
Fig. 1 is that prior art moves software system framework schematic diagram;
Fig. 2 is prior art multiplex protocol CMUX block schematic illustration;
Fig. 3 is application request method for parallel processing embodiment schematic flow sheet of the present invention;
Fig. 4 is that the present invention moves software system framework schematic diagram;
Fig. 5 is the request queue example structure schematic diagram of each application module of the present invention;
Fig. 6 is that embodiment of the present invention voice module asks schematic diagram;
Fig. 7 is that embodiment of the present invention voice module processes schematic diagram;
Fig. 8 is application request parallel processing system (PPS) example structure schematic diagram of the present invention.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right
The present invention is described in further details.
The present invention provides a kind of mobile software system application request method for parallel processing, as an embodiment, such as Fig. 3 institute
Show, including:
301, obtain CP baseband functions, fictionalize multiple application module according to described baseband functions at RIL layer, should by each
By module corresponding to different threads.
As shown in Figure 4, voice, telephone directory, note, data service, network, supplementary service, Tian Guanji are fictionalized at RIL layer
The application modules such as band, these application modules are respectively at different threads, do not interfere with each other, it is simple to parallel processing ccf layer is asked,
Such as voice corresponds to thread 1, telephone directory corresponding to thread 2, note to being applied to thread 3 etc., the application module fictionalized
It not fixing with the corresponding relation of thread, be more than merely illustrative a kind of possible corresponding relation, there is also other corresponding
Relation, will not enumerate.
In prior art, RIL uses the request of serial process ccf layer, and the flow process of a request includes encapsulating AT instruction, sending
AT instruction, reception are replied, are returned result to ccf layer, wait a request just can continue with next request after having processed.As
Really first request process time is long, and request below the most all can be the most blocked.The present invention fictionalizes multiple at RIL layer
Application module, by each application module corresponding to different threads, RIL uses the request of multiple threads ccf layer, each thread
Being responsible for class application request, such as voice, a note etc., different threads can be carried out, the when of the most sending short messages parallel
Can process incoming call, reaching application request can be with the purpose of parallel processing.
302, RIL receives the application process request that ccf layer is initiated, and request distribution is delivered to the application module of correspondence, and adds
Enter the request queue to each application module;
Described ccf layer is initiated application and processed request can be a request of only initiating, and i.e. initiates appointing of use above module
Anticipate a request, it is also possible to initiate any number of request.Such as, ccf layer can individually initiate a voice request, it is also possible to
Initiating voice request, note request etc. multiple (more than one) request, correspondingly, RIL receives more than one application simultaneously simultaneously
Process request.
After RIL receives the application process request that ccf layer is initiated, classify according to above-mentioned application module, send a request to
Corresponding application module, and join the request queue of each application module, as shown in Figure 5.
The request of ccf layer is sent to each application module after classification, the internal shape using queue of each application module
Formula preserves the request that these are similar, such as application layer short time double transmission note, and from ccf layer transmission is two
The request of individual transmission note, is maintained in the request queue of SMS module, and first request processes the reprocessing second that is over
Request, although be likely to block in the multiple requests within each thread, but find through experimental evaluation, inside each thread
Obstruction do not interfere with Consumer's Experience.Certainly, if request is different from the note requests of making a phone call, then just will make a phone call
Request is put in the request queue of voice module.
303, request queue is encapsulated as self-defined AT instruction by RIL, and self-defined AT instruction is sent to CP, waits that CP returns
Described self-defined AT instructs result;
Request queue is encapsulated as self-defined AT instruction and includes by described RIL: RIL takes out one or more from request queue
Request, is first encapsulated as AT instruction, then increases by a head byte before instruction, forms self-defined AT instruction;The present embodiment
Self-defined AT is used to instruct to distinguish each application module.
Institute's head byte, for the application module that AT instruction is corresponding is described, is defined by system, and each application module of RIL layer has
Being different from the head byte of other application module, chieftain's joint of such as voice module can be 1, and chieftain's joint of SMS module can be
2 etc..
As a example by voice module, as shown in Figure 6, RIL takes out a request from the request queue of voice module, is such as
Dialing, the AT instruction dialing 10086 is " ATD10086 ", increases by a head byte before instruction, and forming custom instruction is
“1ATD10086;”。
Similarly, in RIL layer, other application module obtains request the most in the manner described above, is packaged into self-defined AT instruction,
Re-send to CP, then wait that CP returns result.
304, after CP completes the process request of corresponding module, result content is packaged into self-defined AT instruction, will be from
Definition AT instruction is sent to RIL, returns result;
Described result content is packaged into self-defined AT instruction includes, will be plus a head before result content
Byte, is assembled into self-defined AT instruction, returns result;
Described head byte, for the application module that AT instruction is corresponding is described, is defined by system, each application module of RIL layer
Having the head byte being different from other application module, chieftain's joint of such as voice module can be 1, and the chieftain of SMS module saves permissible
It is 2 etc..The present embodiment uses self-defined AT to instruct to distinguish each application module.
As a example by above voice module, CP completes the process request of corresponding module, and feedback acknowledgment information, confirmation group
Dress up self-defined AT and instruct " 1OK ", then self-defined AT instruction result " 1OK " is returned to RIL;
305, the head byte that RIL instructs according to the self-defined AT of the result received, it is judged that belong to which application module,
Result content is returned to this application module;
As a example by above voice module, as it is shown in fig. 7, RIL judges to belong to voice module according to head byte " 1 ", thus handle
Result returns to voice module.
306, described application module is converted into, result, the data that ccf layer needs, and sends ccf layer to.
As a example by above voice module, voice module is converted into, result, the number that ccf layer needs through resolving and processing
According to, finally return that to ccf layer, complete whole dial request flow process.
It should be noted that other application modules also can make requests on process by above-mentioned 303-306 step in RIL layer, special
Not, in RIL layer, each application module can make requests on process by above-mentioned 303-306 step concurrently, is instructed by AT
Concurrently, it is to avoid the request of RIL layer is blocked, and improves Consumer's Experience.
The present invention fictionalizes multiple application module at RIL layer, and each application module is in different threads, it is simple to realize
Concurrent processing, obtains self-defined AT instruction by arranging a byte, and arranging of head byte can be distinguished in corresponding physical channel
Application module belonging to the data of upper transmission.AP and CP need not increase extra CMUX processing module, only need to revise RIL layer,
While not increasing overhead cost, complete the function that CMUX agreement is same, reduce product development and test period.
The present invention provides a kind of mobile software system application request parallel processing system (PPS), including application subsystem AP and base band
Processing subsystem CP, described application subsystem AP includes radio interface layer RIL10;Described baseband CP includes base band
Module 20;As shown in Figure 8;
Described radio interface layer RIL10 includes: application module dummy unit 101, application request control unit 102, make by oneself
Justice AT instruction encapsulation and recognition unit 103, data-interface 104;
Application module dummy unit 101, for fictionalizing multiple application module according to baseband functions, by each application module
Corresponding to different threads.
As shown in Figure 4, fictionalize voice, telephone directory, note, data service, network, supplementary service, sky closes base band etc. should
By module, these application modules are respectively at different threads, do not interfere with each other, it is simple to parallel processing ccf layer is asked, such as language
Sound corresponds to thread 1, telephone directory corresponding to thread 2, note to being applied to thread 3 etc., the application module fictionalized and thread
Corresponding relation be not fixing, be more than merely illustrative a kind of possible corresponding relation, there is also other corresponding relation, no
Enumerate again.
In prior art, RIL uses the request of serial process ccf layer, and the flow process of a request includes encapsulating AT instruction, sending
AT instruction, reception are replied, are returned result to ccf layer, wait a request just can continue with next request after having processed.As
Really first request process time is long, and request below the most all can be the most blocked.Application module dummy unit of the present invention
Fictionalize multiple application module according to baseband functions, each application module is used at multithreading corresponding to different threads, RIL
Reason ccf layer is asked, and each thread is responsible for class application request, such as voice, a note etc., and different threads can be carried out parallel,
Can process incoming call when of the most sending short messages, reaching application request can be with the purpose of parallel processing.
Application request control unit 102, the application initiated for sink block rack-layer processes request, and it is right that request distribution is delivered to
The application module answered, and join the request queue of each application module;Judge to belong to which application module according to head byte, to
This application module transmits result content.
Described ccf layer is initiated application and processed request can be a request of only initiating, and i.e. initiates appointing of use above module
Anticipate a request, it is also possible to initiate any number of request.Such as, ccf layer can individually initiate a voice request, it is also possible to
Initiate multiple requests such as voice request, note request simultaneously.
Institute's head byte, for the application module that AT instruction is corresponding is described, is defined by system, and each application module of RIL layer has
Being different from the head byte of other application module, chieftain's joint of such as voice module can be 1, and chieftain's joint of SMS module can be
2 etc., by self-defined AT instruction encapsulation and recognition unit 103, chieftain's joint of this unit identifies that the self-defined AT of CP return result refers to
Make and obtain.
After application request control unit 102 receives the application process request that ccf layer is initiated, divide according to above-mentioned application module
Class, sends a request to the application module of correspondence, and joins the request queue of each application module, as shown in Figure 5.
The request of ccf layer is sent to each application module after classification, the internal shape using queue of each application module
Formula preserves the request that these are similar, such as application layer short time double transmission note, and from ccf layer transmission is two
The request of individual transmission note, is maintained in the request queue of SMS module, and first request processes the reprocessing second that is over
Request, although be likely to block in the multiple requests within each thread, but find through experimental evaluation, inside each thread
Obstruction do not interfere with Consumer's Experience.Certainly, if request is different from the note requests of making a phone call, then just will make a phone call
Request is put in the request queue of voice module.
Self-defined AT instruction encapsulation and recognition unit 103, for request queue is encapsulated as self-defined AT instruction, identify CP
Return the self-defined AT instruction of result;
Described request queue is encapsulated as self-defined AT instruction include: RIL takes out a request from request queue, first
It is encapsulated as AT instruction, then before instruction, increases by a head byte, form self-defined AT instruction;The present embodiment uses self-defined
AT instructs to distinguish each application module.
Institute's head byte, for the application module that AT instruction is corresponding is described, is defined by system, and each application module of RIL layer has
Being different from the head byte of other application module, chieftain's joint of such as voice module can be 1, and chieftain's joint of SMS module can be
2 etc..
As a example by voice module, as shown in Figure 6, RIL takes out a request from the request queue of voice module, is such as
Dialing, the AT instruction dialing 10086 is " ATD10086 ", increases by a head byte before instruction, and forming custom instruction is
“1ATD10086;”。
Similarly, in RIL layer, other application module obtains request the most in the manner described above, is packaged into self-defined AT instruction.
Described identification CP returns the self-defined AT instruction of result and includes that the self-defined AT identifying the result of CP transmission refers to
The head byte of order;
As a example by above voice module, as it is shown in fig. 7, identify the head word of the self-defined AT instruction of the result of CP transmission
Joint " 1 ";
Data-interface 104, for self-defined AT instruction is sent to CP, receives the self-defined AT instruction that CP sends;
Described baseband module includes: application request processing unit 202, self-defined AT instruction encapsulation and recognition unit 203, number
According to interface 204
Application request processing unit 202, the process request completing respective application module for CP, generate in result
Hold;
Self-defined AT instruction encapsulation and recognition unit 203: result content is packaged into self-defined AT instruction, identifies
The self-defined AT instruction that RIL sends.
Described result content is packaged into self-defined AT instruction includes, will be plus a head before result content
Byte, is assembled into self-defined AT instruction, returns result;
Described head byte, for the application module that AT instruction is corresponding is described, is defined by system, each application module of RIL layer
Having the head byte being different from other application module, chieftain's joint of such as voice module can be 1, and the chieftain of SMS module saves permissible
It is 2 etc..The present embodiment uses self-defined AT to instruct to distinguish each application module.
As a example by above voice module, CP completes the process request of corresponding module, and feedback acknowledgment information, confirmation group
Dress up self-defined AT and instruct " 1OK ";
Data-interface 204, for self-defined AT instruction is sent to RIL10, receives the self-defined AT instruction that RIL10 sends;
It should be noted that the request that said apparatus structure can carry out individual module to application module each in RIL layer processes,
The request that application module each in RIL layer can also carry out multiple module processes, concurrent by AT instruction, it is to avoid RIL layer is asked
Block, improve Consumer's Experience.
The present invention fictionalizes multiple application module at application module dummy unit, and each application module is in different threads
In, it is simple to realize concurrent processing, a byte be set by self-defined AT instruction encapsulation and recognition unit and obtain self-defined AT instruction,
The arranging of head byte can distinguish the application module on corresponding physical channel belonging to the data of transmission.AP and CP need not increase
Add extra CMUX processing module, only need to revise RIL layer, while not increasing overhead cost, complete CMUX agreement
Same function, reduces product development and test period.
The object, technical solutions and advantages of the present invention have been carried out further by the lifted embodiment of the present invention or embodiment
Detailed description, be it should be understood that embodiment provided above or embodiment be only the preferred embodiment of the present invention and
, not in order to limit the present invention, all any amendments the most made for the present invention, equivalent are replaced
Change, improvement etc., should be included within the scope of the present invention.