The content of the invention
To overcome above-mentioned technical problem or solving above-mentioned technical problem at least in part, spy proposes following technical scheme:
An embodiment provides a kind of method that multisystem uses Mtp functions, including:
First subsystem sends Mtp resource bid request messages to the multi-systematic control service in master control system;
Whether the multi-systematic control service detection Mtp resources in master control system are taken by other subsystems;
If Mtp resources are not taken by other subsystems, Mtp work(from the multi-systematic control service in master control system to kernel
Can hardware device node transmission activation authority request message;
The Mtp functional hardware devices node of kernel activates the Mtp resources of the first subsystem according to activation authority request message
Control authority.
Alternatively, the Mtp functional hardware devices node of kernel activates the first subsystem according to activation authority request message
After the step of Mtp resources control authorities, also include:
Multi-systematic control service in master control system sends the first advertisement message respectively to other subsystems, and first informs and disappear
Cease occupied for informing other subsystems Mtp resources.
Alternatively, the method also includes:
When the first subsystem need not using Mtp resources when, multi-systematic control service from the first subsystem to master control system
Send Mtp resources and cancel message;
The multi-systematic control service of master control system sends cancellation authority request and disappears to the Mtp functional hardware devices node of kernel
Breath;
The Mtp functional hardware devices node of kernel cancels the Mtp resources of the first subsystem according to authority request message is cancelled
Control authority.
Alternatively, the Mtp functional hardware devices node of kernel cancels the first subsystem according to authority request message is cancelled
After the step of Mtp resources control authorities, also include:
The multi-systematic control service of master control system sends the second advertisement message to other subsystems, and the second advertisement message is used for
Inform that the current Mtp resources of other subsystems are idle, to enable that other subsystems are applied taking Mtp resources.
Alternatively, the system banner of the first subsystem is carried in activation authority request message;
The Mtp functional hardware devices node of kernel activates the Mtp resources of the first subsystem according to activation authority request message
The step of control authority, including:
The system mark of first subsystem of the Mtp functional hardware devices node of kernel in activation authority request message
Know, activate the Mtp resources control authorities of the first subsystem.
The invention provides the device that a kind of multisystem uses Mtp functions, the device includes:
Sending module, in the first subsystem, for sending Mtp resources to the multi-systematic control service in master control system
Application request message;
Multi-systematic control module, in master control system, for detecting whether Mtp resources are taken by other subsystems;When
When Mtp resources are not taken by other subsystems, activation authority request message is sent to the Mtp functional hardware devices node of kernel;
Active module, in the Mtp functional hardware devices nodes of kernel, for what is sent according to multi-systematic control module
Activation authority request message, activates the Mtp resources control authorities of the first subsystem.
Alternatively, multi-systematic control module, is additionally operable to send the first advertisement message respectively to other subsystems, and first informs
Message is used to inform that other subsystems Mtp resources are occupied.
Alternatively, sending module, is additionally operable to when the first subsystem need not use Mtp resources, to many of master control system
System control service sends Mtp resources and cancels message;
Multi-systematic control module, is additionally operable to be sent to the Mtp functional hardware devices node of kernel and cancels authority request message;
Device also includes:Cancel module;
Cancel module, in the Mtp functional hardware devices nodes of kernel, for what is sent according to multi-systematic control module
Cancel authority request message, cancel the Mtp resources control authorities of the first subsystem.
Alternatively, multi-systematic control module, is additionally operable to send the second advertisement message, the second advertisement message to other subsystems
It is idle for informing the current Mtp resources of other subsystems, to enable that other subsystems are applied taking Mtp resources.
Specifically, the system banner of the first subsystem is carried in activation authority request message;
Active module, specifically for the system banner of the first subsystem in activation authority request message, activation the
The Mtp resources control authorities of one subsystem.
The invention provides the method and device that a kind of multisystem uses Mtp functions, with only one system in mobile terminal
Mtp function phase ratios are supported, mobile terminal any system can be sent out to the multi-systematic control service in master control system in the present invention
Mtp resource request messages are sent, and after detection Mtp resources are not taken by other subsystems, activates the Mtp of the first subsystem
Resources control authority, to cause that the first subsystem supports Mtp work(using each subsystem in Mtp functions, the i.e. mobile terminal
Can, as long as Mtp resources are not taken by other subsystems, you can with use Mtp functions, without by change source code this
Kind of mode, subsystems support Mtp functions in making mobile terminal, such that it is able to improve the realizability of product and operable
Property, while multisystem can support Mtp functions.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description
Obtain substantially, or recognized by practice of the invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
It is exemplary to scheme the embodiment of description, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " one
It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that what is used in specification of the invention arranges
Diction " including " refer to the presence of the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
One or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit
Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist
Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes or any cell of listing item and all combines.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also
Understand, those terms defined in such as general dictionary, it should be understood that with the context with prior art
The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication
To explain.Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless signal
The equipment of receiver, the equipment of its wireless signal receiver for only possessing non-emissive ability, and including receiving and launching hardware
Equipment, it has the equipment of the reception and transmitting hardware that on bidirectional communication link, can carry out two-way communication.This equipment can
To include:Honeycomb or other communication equipments, it has single line display or multi-line display or does not have multi-line display
Honeycomb or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can be with
Combine voice, data processing, fax and/or its communication ability;PDA (Personal Digital Assistant, individual number
Word assistant), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, calendar
And/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or hand held
Computer or other equipment, its have and/or conventional laptop and/or palmtop computer including radio frequency receiver or other
Equipment." terminal " used herein above, " terminal device " they can be portable, can transport, installed in the vehicles (aviation, sea
Fortune and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or the equipment such as mobile phone, or intelligent television, Set Top Box with music/video playing function.
The block schematic illustration of the internal structure of the terminal device of the embodiment of the present invention as shown in figure 1, including:Master control system and
More than two subsystems.
Wherein, the subsystem in the embodiment of the present invention, can be provided in being virtualized with Linux container (container)
The containment system that technology is created.Containment system can be traditional (SuSE) Linux OS or Unix operating systems, also may be used
To be android system, Ubuntu systems or FireFox systems for being derived based on (SuSE) Linux OS etc., can also be
Windows systems based on windows platform etc..In fact, the system in the present invention is not limited to the foregoing behaviour for enumerating
Make system, all operating systems that can be run in a reservoir can be covered.
Preferably, master control system can be above-mentioned traditional operating system, or traditional kernel is changed
Enter and/or outside kernel after (such as ccf layer and application layer) increase functional module, the operating system for obtaining.
Master control system is mainly used in carrying out AM/BAM management to multiple subsystems, is interacted with each system.
Preferably, master control system can be communicated by predefined passage with subsystem.Similarly, can be between system
Communicated by passage.Wherein, predefined passage can be socket (socket) passage.
The method that a kind of multisystem of the embodiment of the present invention uses Mtp functions, as shown in Fig. 2 methods described includes:
Step 201, the first subsystem send Mtp resource bids request and disappear to the multi-systematic control service in master control system
Breath.
For the embodiment of the present invention, Mtp resources can include:Audio resource and video resource.In the embodiment of the present invention
In do not limit.
Wherein, the system banner of the first subsystem is carried in Mtp resource bids request message.For example, Mtp resource bids please
It is OS to ask and the system banner of the first subsystem is carried in message1。
For the embodiment of the present invention, the file in the first subsystem, by USB (English full name:
Universal Serial Bus, english abbreviation:USB) interface is transmitted during into mobile phone, and the first subsystem is first to master control system
In multi-systematic control service send request message, request activation the first subsystem Mtp functions.
Whether the multi-systematic control service detection Mtp resources in step 202, master control system are taken by other subsystems.
For the embodiment of the present invention, when the multi-systematic control service in master control system receives the transmission of the first containment system
After Mtp resource bid request messages, whether detection Mtp resources are currently taken by other subsystems.
For the embodiment of the present invention, can also include after step 202:If the multi-systematic control service inspection in master control system
Measure Mtp resources to be taken by other subsystems, then the multi-systematic control service in master control system returns to Mtp to the first containment system
The notification message that resource has been taken by other subsystems.
If step 203, Mtp resources are not taken by other subsystems, the multi-systematic control service in master control system is inside
The Mtp functional hardware devices node of core sends activation authority request message.
For the embodiment of the present invention, whether the multi-systematic control service in master control system is by detecting Mtp resources by other
Subsystem takes, and to avoid two or more subsystem from using Mtp functions simultaneously, causes what two subsystems conflicted
Situation.
For example, Mtp resources are current being taken by the second subsystem, and sound is exported by Mtp resources, if still swashing
The Mtp functions of the first subsystem living, the first subsystem also exports sound, then will cause to there may be output error simultaneously.
Step 204, the Mtp functional hardware devices node of kernel activate the first subsystem according to activation authority request message
Mtp resources control authorities.
For the embodiment of the present invention, in the activation authority request message that the Mtp functional hardware devices nodes of kernel are received
General carrying system mark, the Mtp functional hardware devices nodes of kernel are according to system banner, it is determined that needing to activate Mtp resource controls
The subsystem of authority processed, and activate the Mtp resources control authorities of the subsystem.In embodiments of the present invention, if the Mtp work(of kernel
Non- carrying system mark in the activation authority request message that energy hardware device node is received, then the Mtp functional hardwares of kernel set
The Mtp resources control authorities of the subsystem of slave node activation current foreground operation.
If for example, the system carried in the activation authority request message that receives of the Mtp functional hardware devices nodes of kernel
It is designated OS1, then kernel Mtp functional hardware devices node activate the first subsystem Mtp resources control authorities;If kernel
There is no system banner in the activation authority request message that Mtp functional hardware devices nodes are received, and front stage operation son
System is the second subsystem, then the Mtp functional hardware devices node of kernel activates the Mtp resources control authorities of the second subsystem.
A kind of method that multisystem uses Mtp functions is the embodiment of the invention provides, with only one system in mobile terminal
Mtp function phase ratios are supported, mobile terminal any system can be to the multi-systematic control in master control system in the embodiment of the present invention
Service sends Mtp resource request messages, and after detection Mtp resources are not taken by other subsystems, activates the first subsystem
The Mtp resources control authorities of system, to cause that the first subsystem is propped up using each subsystem in Mtp functions, the i.e. mobile terminal
Mtp functions are held, as long as Mtp resources are not taken by other subsystems, you can to use Mtp functions, without by change
This mode of source code, makes subsystems in mobile terminal support Mtp functions, such that it is able to improve product realizability and
Operability, while multisystem can support Mtp functions.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 2, step 204, kernel
Mtp functional hardware devices node activates the Mtp resources control authorities of the first subsystem, afterwards according to activation authority request message
Also including step 305 as shown in Figure 3, operating and as performed by the step 201-204 in Fig. 2 performed by step 301-304
Operation it is identical, will not be repeated here.
Multi-systematic control service in step 305, master control system sends the first advertisement message respectively to other subsystems.
Wherein, the first advertisement message is used to inform that other subsystems Mtp resources are occupied.
For the embodiment of the present invention, when the Mtp functional hardware devices node of kernel activates the Mtp resource controls of the first subsystem
After authority processed, the multi-systematic control service in master control system sends respectively to other subsystems in mobile terminal informs and disappears
Breath.In embodiments of the present invention, first advertisement message can carry the system banner of the first subsystem, it is also possible to not carry
The system banner of one subsystem.Do not limit in embodiments of the present invention.
For the embodiment of the present invention, is sent respectively to other subsystems by the multi-systematic control service in master control system
One advertisement message, informs that other subsystems Mtp resources are occupied, can avoid other subsystems to the polyphyly in master control system
System control service sends Mtp resource bid request messages, such that it is able to reduce signaling consumption.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 3, also including such as Fig. 4 institutes
The step of showing 406-408, wherein, the operation performed by step 401-405 is identical with the operation performed by step 301-305,
This is repeated no more.
Step 406, when the first subsystem need not using Mtp resources when, multisystem from the first subsystem to master control system
Control service sends Mtp resources and cancels message.
For the embodiment of the present invention, when the first subsystem in mobile terminal and other mobile systems complete data transfer it
Afterwards, the first subsystem sends Mtp resources cancellation message to the multi-systematic control service of master control system, to cancel the first subsystem
Mtp resources control authorities.
For the embodiment of the present invention, the system banner of the first subsystem can be carried in Mtp resources cancellation message, it is also possible to
The system banner of the first subsystem is not carried.Do not limit in embodiments of the present invention.
Step 407, the multi-systematic control service of master control system send to the Mtp functional hardware devices node of kernel and cancel power
Limit request message.
Step 408, the Mtp functional hardware devices node of kernel cancel the first subsystem according to authority request message is cancelled
Mtp resources control authorities.
For example, when carrying OS in the cancellation authority request message that the Mtp functional hardware devices nodes of kernel are received1When,
The Mtp functional hardware devices node of kernel directly cancels the Mtp resources control authorities of the first subsystem;When the Mtp functions of kernel
When non-carrying system is identified in the cancellation authority request message that hardware device node is received, the Mtp functional hardware devices of kernel
Node can check the subsystem of current occupancy Mtp resources, and cancel the Mtp resources control authorities of the subsystem.
For the embodiment of the present invention, when the first subsystem need not use Mtp resources, the first subsystem passes through master control system
The multi-systematic control service of system sends to the Mtp functional hardware devices node of kernel cancels authority request message, enables to interior
The Mtp functional hardware devices node of core cancels the Mtp resources control authorities of the first subsystem, to cause that other subsystems can be with Shen
Please Mtp resources, with avoid the first subsystem need not use Mtp resources when, Mtp resources are still taken, such that it is able to reduce Mtp
The waste of resource.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 4, step 408, kernel
Mtp functional hardware devices node cancels the Mtp resources control authorities of the first subsystem, afterwards according to authority request message is cancelled
Also include step 509 as shown in Figure 5, the operation performed by step 501-508 and the operation phase performed by step 401-408
Together, will not be repeated here.
Step 509, the multi-systematic control service of master control system send the second advertisement message to other subsystems.
Wherein, the second advertisement message is idle for informing the current Mtp resources of other subsystems, to enable other subsystems
Enough applications take Mtp resources.
For the embodiment of the present invention, can be identified with carrying system in the second advertisement message, to inform other subsystems first
Subsystem has currently been not take up Mtp resources, the second advertisement message can not also carrying system mark, only inform that other subsystems are worked as
Preceding Mtp resources are idle.Do not limit in embodiments of the present invention.
For the embodiment of the present invention, send second to other subsystems by the multi-systematic control service of master information and inform
Message, it is possible to notify that other subsystems Mtp resources are idle, to enable that other subsystems are applied taking Mtp resources in time, from
And can avoid other subsystems take Mtp resources stand-by period, and then can reduce user use other subsystems Mtp work(
The stand-by period of energy, lift Consumer's Experience.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 2, wherein, the activation
The system banner of first subsystem, step 204, the Mtp functional hardware devices nodes of kernel are carried in authority request message
According to activation authority request message, the Mtp resources control authorities of the first subsystem, including step 604 as shown in Figure 6 are activated,
Operation shown in step 601-603 is identical with the operation shown in step 201-203, will not be repeated here.
Step 604, the Mtp functional hardware devices node of kernel are according to the first subsystem activated in authority request message
System banner, activates the Mtp resources control authorities of the first subsystem.
The method that another multisystem uses Mtp resources is the embodiment of the invention provides, by the polyphyly in master control system
System control service sends the first advertisement message respectively to other subsystems, informs that other subsystems Mtp resources are occupied, can
Other subsystems are avoided to send Mtp resource bid request messages to the multi-systematic control service in master control system, such that it is able to subtract
Few signaling consumption;When the first subsystem need not use Mtp resources, the multi-systematic control that the first subsystem passes through master control system
Service to be sent to the Mtp functional hardware devices node of kernel and cancel authority request message, enable to the Mtp functional hardwares of kernel
Device node cancels the Mtp resources control authorities of the first subsystem, to allow that other subsystems apply for Mtp resources, to keep away
Exempt from the first subsystem when Mtp resources need not be used, Mtp resources are still taken, such that it is able to reduce the waste of Mtp resources;It is logical
The multi-systematic control service for crossing master information sends the second advertisement message to other subsystems, it is possible to notify that other subsystems Mtp
Resource is idle, to enable that other subsystems are applied taking Mtp resources in time, such that it is able to avoid other subsystems from taking
The stand-by period of Mtp resources, and then the stand-by period that user uses other subsystems Mtp functions can be reduced, lift user's body
Test.
The device that a kind of multisystem uses Mtp functions is the embodiment of the invention provides, as shown in fig. 7, device includes:Send
Module 71, multi-systematic control module 72, active module 73, wherein,
Sending module 71, in the first subsystem, provides for sending Mtp to the multi-systematic control service in master control system
Apply for request message in source.
Multi-systematic control module 72, in master control system, for detecting whether Mtp resources are taken by other subsystems;
When Mtp resources are not taken by other subsystems, send activation authority request to the Mtp functional hardware devices node of kernel and disappear
Breath.
Active module 73, in the Mtp functional hardware devices nodes of kernel, for being sent out according to multi-systematic control module 72
The activation authority request message sent, activates the Mtp resources control authorities of the first subsystem.
Multi-systematic control module 72, is additionally operable to send the first advertisement message respectively to other subsystems.
Wherein, the first advertisement message is used to inform that other subsystems Mtp resources are occupied.
Sending module 71, is additionally operable to when the first subsystem need not use Mtp resources, to the multisystem control of master control system
Uniform business sends Mtp resources and cancels message.
Multi-systematic control module 72, is additionally operable to disappear to the Mtp functional hardware devices node transmission cancellation authority request of kernel
Breath.
Further, as shown in figure 8, the device also includes:Cancel module 81.
Cancel module 81, in the Mtp functional hardware devices nodes of kernel, for being sent out according to multi-systematic control module 72
The cancellation authority request message sent, cancels the Mtp resources control authorities of the first subsystem.
Multi-systematic control module 72, is additionally operable to send the second advertisement message to other subsystems.
Wherein, the second advertisement message is idle for informing the current Mtp resources of other subsystems, to enable other subsystems
Enough applications take Mtp resources.
Active module 73, specifically for when activate authority request message in carry the system banner of the first subsystem when, root
According to the system banner of the first subsystem in activation authority request message, the Mtp resources control authorities of the first subsystem are activated.
The device that a kind of multisystem uses Mtp functions is the embodiment of the invention provides, with only one system in mobile terminal
Mtp function phase ratios are supported, mobile terminal any system can be to the multi-systematic control in master control system in the embodiment of the present invention
Service sends Mtp resource request messages, and after detection Mtp resources are not taken by other subsystems, activates the first subsystem
The Mtp resources control authorities of system, to cause that the first subsystem is propped up using each subsystem in Mtp functions, the i.e. mobile terminal
Mtp functions are held, as long as Mtp resources are not taken by other subsystems, you can to use Mtp functions, without by change
This mode of source code, makes subsystems in mobile terminal support Mtp functions, such that it is able to improve product realizability and
Operability, while multisystem can support Mtp functions.
The device that another multisystem uses Mtp resources is the embodiment of the invention provides, by the polyphyly in master control system
System control service sends the first advertisement message respectively to other subsystems, informs that other subsystems Mtp resources are occupied, can
Other subsystems are avoided to send Mtp resource bid request messages to the multi-systematic control service in master control system, such that it is able to subtract
Few signaling consumption;When the first subsystem need not use Mtp resources, the multi-systematic control that the first subsystem passes through master control system
Service to be sent to the Mtp functional hardware devices node of kernel and cancel authority request message, enable to the Mtp functional hardwares of kernel
Device node cancels the Mtp resources control authorities of the first subsystem, to allow that other subsystems apply for Mtp resources, to keep away
Exempt from the first subsystem when Mtp resources need not be used, Mtp resources are still taken, such that it is able to reduce the waste of Mtp resources;It is logical
The multi-systematic control service for crossing master information sends the second advertisement message to other subsystems, it is possible to notify that other subsystems Mtp
Resource is idle, to enable that other subsystems are applied taking Mtp resources in time, such that it is able to avoid other subsystems from taking
The stand-by period of Mtp resources, and then the stand-by period that user uses other subsystems Mtp functions can be reduced, lift user's body
Test.
Multisystem provided in an embodiment of the present invention can realize that the method for above-mentioned offer is implemented using the device of Mtp functions
Example, concrete function is realized referring to the explanation in embodiment of the method, will not be repeated here.Multisystem provided in an embodiment of the present invention
Go for the mobile terminal of multisystem using the method and device of Mtp functions, and each subsystem is equal in mobile terminal
Mtp functions are supported, but is not limited only to this.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for performing in operating in the application
Or multinomial equipment.These equipment can be for needed for purpose and specially design and manufacture, or general-purpose computations can also be included
Known device in machine.These equipment have computer program of the storage in it, and these computer programs are optionally activated
Or reconstruct.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or store and be suitable to
Storage e-command is simultaneously coupled in any kind of medium of bus respectively, and computer-readable medium is including but not limited to any
The disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk) of type, ROM (Read-Only Memory, read-only storage
Device), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-
Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable
Read-Only Memory, EEPROM), flash memory, magnetic card or light card.It is, readable
Medium include being stored in the form of it can read by equipment (for example, computer) or transmission information any medium.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of the frame in each frame and these structure charts and/or block diagram and/or flow graph in block diagram and/or flow graph.This technology is led
Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, so that by the treatment of computer or other programmable data processing methods
Device is come the scheme specified in the frame or multiple frame that perform structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that in various operations, method, the flow discussed in the present invention
Step, measure, scheme can be replaced, changed, combined or deleted.Further, it is each with what is discussed in the present invention
Other steps, measure in kind operation, method, flow, scheme can also be replaced, changed, reset, decomposed, combined or deleted.
Further, it is of the prior art with various operations, method, the flow disclosed in the present invention in step, measure, scheme
Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that come for those skilled in the art
Say, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be regarded as
Protection scope of the present invention.