CN106776065A - Method and device for using Mtp function by multiple systems - Google Patents

Method and device for using Mtp function by multiple systems Download PDF

Info

Publication number
CN106776065A
CN106776065A CN201611070691.8A CN201611070691A CN106776065A CN 106776065 A CN106776065 A CN 106776065A CN 201611070691 A CN201611070691 A CN 201611070691A CN 106776065 A CN106776065 A CN 106776065A
Authority
CN
China
Prior art keywords
mtp
resources
subsystem
subsystems
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611070691.8A
Other languages
Chinese (zh)
Other versions
CN106776065B (en
Inventor
杨光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201611070691.8A priority Critical patent/CN106776065B/en
Publication of CN106776065A publication Critical patent/CN106776065A/en
Application granted granted Critical
Publication of CN106776065B publication Critical patent/CN106776065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5013Request control

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for using an Mtp function by multiple systems, which are applied to the technical field of terminal equipment and comprise the following steps: firstly, a first subsystem sends an Mtp resource application request message to a multi-system control service in a main control system, then the multi-system control service in the main control system detects whether the Mtp resource is occupied by other subsystems, if the Mtp resource is not occupied by other subsystems, the multi-system control service in the main control system sends an activation permission request message to an Mtp function hardware device node of an inner core, and then the Mtp function hardware device node of the inner core activates the Mtp resource control permission of the first subsystem according to the activation permission request message. The technical scheme of the invention solves the problems that only one subsystem in the mobile terminal supports the Mtp function, and other subsystems use the Mtp function with higher complexity. According to the scheme, each subsystem in the mobile terminal supports the Mtp function.

Description

Multisystem uses the method and device of Mtp functions
Technical field
The present invention relates to terminal device technical field, specifically, Mtp functions are used the present invention relates to a kind of multisystem Method and device.
Background technology
With the development of information technology, mobile terminal becomes increasingly popular in the daily life of user, the mobile terminal such as mobile phone Open media transmission protocol (English full name:Media transfer protocol, english abbreviation:Mtp) function, by general Universal serial bus (English full name:Universal Serial Bus, english abbreviation:USB) interface is carried out with another mobile terminal Information transfer, in the mobile terminal of single system, the mobile terminal of the single system opens Mtp functions, directly by USB interface and Another mobile terminal carries out information transfer.
With the rise of multisystem terminal device, Mtp functions how are used each system in multisystem to turn into new need The problem to be solved.At present, existing multisystem using Mtp functions method in, the only one operating system in mobile terminal Mtp functions are supported, information transfer can be carried out by USB interface and another mobile terminal, when not supporting in mobile terminal , it is necessary to change two source codes of operating system when the operating system of Mtp functions needs to use Mtp functions, Mtp functions will be supported Operating system be changed to not support Mtp functions, will not support Mtp functions operating system be changed to support Mtp functions so that Do not support that the operating system of Mtp functions directly uses Mtp functions before obtaining, carried out with another mobile terminal by USB interface Information transfer, i.e., it is necessary to engineer first changes two behaviour when the operating system for not supporting Mtp functions needs to use Mtp functions Make the source code of system, after two authorities of operating system Mtp functions of change, do not support the operating system of Mtp functions before Mtp functions can just be supported, information transfer is carried out with another mobile terminal, when specific product is applied to without possessing can Realisation and operability.And the implementation of Mtp functions is also supported without multisystem in the prior art.
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.
Brief description of the drawings
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
Fig. 1 is the relation schematic diagram between each system in multisystem terminal device;
Fig. 2 uses the schematic flow sheet of Mtp functions for the multisystem of the embodiment of the present invention;
Fig. 3 uses the schematic flow sheet of Mtp functions for another multisystem of the embodiment of the present invention;
Fig. 4 uses the schematic flow sheet of Mtp functions for another multisystem of the embodiment of the present invention;
Fig. 5 uses the schematic flow sheet of Mtp functions for another multisystem of the embodiment of the present invention;
Fig. 6 uses the schematic flow sheet of Mtp functions for another multisystem of the embodiment of the present invention;
Fig. 7 uses the apparatus structure schematic diagram of Mtp functions for a kind of multisystem of the embodiment of the present invention;
Fig. 8 uses the apparatus structure schematic diagram of Mtp functions for another multisystem of the embodiment of the present 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.

Claims (10)

1. a kind of method that multisystem uses Mtp functions, it is characterised in that methods described includes:
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 the master control system are taken by other subsystems;
If the Mtp resources are not taken by other subsystems, the multi-systematic control service in the master control system is to kernel Mtp functional hardware devices node sends activation authority request message;
The Mtp functional hardware devices node of the kernel activates first subsystem according to the activation authority request message Mtp resources control authorities.
2. the method that multisystem according to claim 1 uses Mtp functions, it is characterised in that the Mtp functions of the kernel Hardware device node activates the step of the Mtp resources control authorities of first subsystem according to the activation authority request message After rapid, also include:
Multi-systematic control service in the master control system sends the first advertisement message respectively to other subsystems, and described first accuses Know that message is occupied for informing other subsystems Mtp resources.
3. the method that multisystem according to claim 2 uses Mtp functions, it is characterised in that methods described also includes:
When first subsystem need not use the Mtp resources, first subsystem is to the more of the master control system System control service sends Mtp resources and cancels message;
The multi-systematic control service of the master control system sends cancellation authority to the Mtp functional hardware devices node of the kernel please Seek message;
The Mtp functional hardware devices node of the kernel cancels first subsystem according to the cancellation authority request message Mtp resources control authorities.
4. the method that multisystem according to claim 3 uses Mtp functions, it is characterised in that the Mtp functions of the kernel Hardware device node cancels the step of the Mtp resources control authorities of first subsystem according to the cancellation authority request message After rapid, also include:
The multi-systematic control service of the master control system sends the second advertisement message to described other subsystems, and described second informs Message is used to inform that the presently described Mtp resources of other subsystems are idle, to enable that described other subsystems are applied accounting for With the Mtp resources.
5. the method that the multisystem according to claim any one of 1-4 uses Mtp functions, it is characterised in that the activation The system banner of first subsystem is carried in authority request message;
The Mtp functional hardware devices node of the kernel activates first subsystem according to the activation authority request message Mtp resources control authorities the step of, including:
The system of first subsystem of the Mtp functional hardware devices node of the kernel in the activation authority request message Mark, activates the Mtp resources control authorities of first subsystem.
6. a kind of multisystem uses the device of Mtp functions, it is characterised in that described device includes:
Sending module, in the first subsystem, for sending Mtp resource bids to the multi-systematic control service in master control system Request message;
Multi-systematic control module, in the master control system, for detecting whether Mtp resources are taken by other subsystems;When When the 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, in the Mtp functional hardware devices nodes of the kernel, for being sent out according to the multi-systematic control module The activation authority request message sent, activates the Mtp resources control authorities of first subsystem.
7. multisystem according to claim 6 uses the device of Mtp functions, it is characterised in that including:
The multi-systematic control module, is additionally operable to send the first advertisement message respectively to other subsystems, and described first informs and disappear Cease occupied for informing other subsystems Mtp resources.
8. multisystem according to claim 7 uses the device of Mtp functions, it is characterised in that including:
The sending module, is additionally operable to when first subsystem need not use the Mtp resources, to the master control system Multi-systematic control service send Mtp resources and cancel message;
The multi-systematic control module, is additionally operable to be sent to the Mtp functional hardware devices node of the kernel and cancels authority request Message;
Described device also includes:Cancel module;
The cancellation module, in the Mtp functional hardware devices nodes of the kernel, for according to the multi-systematic control mould The cancellation authority request message that block sends, cancels the Mtp resources control authorities of first subsystem.
9. multisystem according to claim 8 uses the device of Mtp functions, it is characterised in that including:
The multi-systematic control module, is additionally operable to send the second advertisement message to described other subsystems, and described second informs and disappear Cease idle for informing the presently described Mtp resources of other subsystems, to enable that described other subsystems are applied taking The Mtp resources.
10. the multisystem according to claim any one of 6-9 uses the device of Mtp functions, it is characterised in that the activation The system banner of first subsystem is carried in authority request message;
The active module, specifically for the system banner of the first subsystem in the activation authority request message, swashs The Mtp resources control authorities of work first subsystem.
CN201611070691.8A 2016-11-29 2016-11-29 Method and device for using Mtp function by multiple systems Active CN106776065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611070691.8A CN106776065B (en) 2016-11-29 2016-11-29 Method and device for using Mtp function by multiple systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611070691.8A CN106776065B (en) 2016-11-29 2016-11-29 Method and device for using Mtp function by multiple systems

Publications (2)

Publication Number Publication Date
CN106776065A true CN106776065A (en) 2017-05-31
CN106776065B CN106776065B (en) 2020-09-08

Family

ID=58902549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611070691.8A Active CN106776065B (en) 2016-11-29 2016-11-29 Method and device for using Mtp function by multiple systems

Country Status (1)

Country Link
CN (1) CN106776065B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874699A (en) * 2018-06-19 2018-11-23 北京元心科技有限公司 Multisystem uses the method, apparatus and electronic equipment of MTP function

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005031572A2 (en) * 2003-09-22 2005-04-07 Jaluna Sa Operating systems
CN1716205A (en) * 2004-06-30 2006-01-04 微软公司 Systems and methods for initializing multiple virtual processors within a single virtual machine
US6993620B2 (en) * 2003-06-13 2006-01-31 Hewlett-Packard Development Company, L.P. User resource sharing through the USB interface
CN104516760A (en) * 2014-12-12 2015-04-15 华为技术有限公司 Operating system hot-switching method and device and mobile terminal
CN104850787A (en) * 2015-02-11 2015-08-19 数据通信科学技术研究所 Mobile terminal operation system based on high-assurance kernel module and realization method of mobile terminal operation system
CN105046156A (en) * 2015-08-26 2015-11-11 北京元心科技有限公司 Intelligent terminal and equipment access permission control method thereof
CN105138896A (en) * 2015-08-26 2015-12-09 北京元心科技有限公司 Intelligent terminal and access right control method of hardware equipment thereof
CN105550037A (en) * 2015-12-11 2016-05-04 北京元心科技有限公司 Method and device for allocating audio resources in multiple systems
CN105955693A (en) * 2016-04-21 2016-09-21 北京元心科技有限公司 Method and device for distributing audio-video resource in multisystem

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993620B2 (en) * 2003-06-13 2006-01-31 Hewlett-Packard Development Company, L.P. User resource sharing through the USB interface
WO2005031572A2 (en) * 2003-09-22 2005-04-07 Jaluna Sa Operating systems
CN1716205A (en) * 2004-06-30 2006-01-04 微软公司 Systems and methods for initializing multiple virtual processors within a single virtual machine
CN104516760A (en) * 2014-12-12 2015-04-15 华为技术有限公司 Operating system hot-switching method and device and mobile terminal
CN104850787A (en) * 2015-02-11 2015-08-19 数据通信科学技术研究所 Mobile terminal operation system based on high-assurance kernel module and realization method of mobile terminal operation system
CN105046156A (en) * 2015-08-26 2015-11-11 北京元心科技有限公司 Intelligent terminal and equipment access permission control method thereof
CN105138896A (en) * 2015-08-26 2015-12-09 北京元心科技有限公司 Intelligent terminal and access right control method of hardware equipment thereof
CN105550037A (en) * 2015-12-11 2016-05-04 北京元心科技有限公司 Method and device for allocating audio resources in multiple systems
CN105955693A (en) * 2016-04-21 2016-09-21 北京元心科技有限公司 Method and device for distributing audio-video resource in multisystem

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874699A (en) * 2018-06-19 2018-11-23 北京元心科技有限公司 Multisystem uses the method, apparatus and electronic equipment of MTP function
CN108874699B (en) * 2018-06-19 2021-06-25 北京元心科技有限公司 Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment

Also Published As

Publication number Publication date
CN106776065B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN105138896B (en) Intelligent terminal and its hardware device access right control method
CN105184153B (en) Intelligent terminal and its application program operation method based on multi-stage vessel
CN105046156B (en) Intelligent terminal and its equipment access right control method
KR101880378B1 (en) Speech synthesis method and device
US20120204166A1 (en) Vehicle gateway device
CN110278543B (en) Method and device for updating control system of automobile and storage medium
CN106375349B (en) Multi-system notification message processing method and device
CN102148865A (en) Method and apparatus for communication between a vehicle based computing system and a remote application
CN106487811A (en) Method and device for communication among multiple containers
CN106453413A (en) Method and device for applying SELinux security policy in multi-system
CN109150662A (en) Method for message transmission, distributed system, equipment, medium and unmanned vehicle
WO2020259650A1 (en) Request response method and electronic device
CN110060658A (en) A kind of vehicle launch guide device
CN106776065A (en) Method and device for using Mtp function by multiple systems
CN106445707A (en) Method and device for sharing data of multisystem clipboard
CN106776066A (en) Multi-system function processing method and device
CN101840421A (en) Update warning method, system and server of personal web page content
CN112486825A (en) Multi-lane environment architecture system, message consumption method, device, equipment and medium
US8181165B2 (en) Using annotations to reuse variable declarations to generate different service functions
CN106844206A (en) Method and device for debugging multiple systems in mobile terminal
CN106874785A (en) System file access method and device for multiple operating systems
CN105912930A (en) Mobile terminal and system resource safety control method thereof
CN106484569B (en) method and system for multi-system data backup and data recovery
CN106851535A (en) Method and device for sharing Bluetooth by multiple systems
CN106878284A (en) Method and device for controlling media playing function in multiple systems

Legal Events

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

Effective date of registration: 20210202

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170531

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Method and device of multi system using MTP function

Granted publication date: 20200908

License type: Common License

Record date: 20210531