CN106776065B - 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
CN106776065B
CN106776065B CN201611070691.8A CN201611070691A CN106776065B CN 106776065 B CN106776065 B CN 106776065B CN 201611070691 A CN201611070691 A CN 201611070691A CN 106776065 B CN106776065 B CN 106776065B
Authority
CN
China
Prior art keywords
mtp
subsystem
resource
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.)
Active
Application number
CN201611070691.8A
Other languages
Chinese (zh)
Other versions
CN106776065A (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

Images

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

Method and device for using Mtp function by multiple systems
Technical Field
The invention relates to the technical field of terminal equipment, in particular to a method and a device for using an Mtp function by multiple systems.
Background
With the development of information technology, mobile terminals are becoming increasingly popular in the daily life of users, mobile terminals such as mobile phones start a Media transfer protocol (Mtp) function, and transmit information to another mobile terminal through a Universal Serial Bus (USB) interface, and in a single-system mobile terminal, the Mtp function is started by the single-system mobile terminal, and the information is transmitted to another mobile terminal directly through the USB interface.
With the rise of multi-system terminal equipment, how to use the Mtp function for each system in a multi-system becomes a new problem to be solved. At present, in the existing method for using an Mtp function by multiple systems, only one operating system in a mobile terminal supports the Mtp function, and can perform information transmission with another mobile terminal through a USB interface, when an operating system that does not support the Mtp function in the mobile terminal needs to use the Mtp function, source codes of two operating systems need to be changed, the operating system that supports the Mtp function is changed to not support the Mtp function, and the operating system that does not support the Mtp function is changed to support the Mtp function, so that the operating system that does not support the Mtp function before directly uses the Mtp function, and performs information transmission with another mobile terminal through the USB interface, that is, when the operating system that does not support the Mtp function needs to use the Mtp function, an engineer needs to modify the source codes of the two operating systems first, and after the authority of the two operating systems is changed, the operating system that does not support the Mtp function before can support the Mtp function, and performs information transmission with another mobile terminal, thereby having no realizability and operability for application to a specific product. However, no implementation scheme for supporting the Mtp function by multiple systems exists in the prior art.
Disclosure of Invention
In order to overcome the above technical problems or at least partially solve the above technical problems, the following technical solutions are proposed:
one embodiment of the present invention provides a method for using an Mtp function by multiple systems, including:
the first subsystem sends an Mtp resource application request message to a multi-system control service in the master control system;
the multi-system control service in the master control system detects whether the Mtp resource is occupied by other subsystems;
if the Mtp resources are not occupied by other subsystems, the multi-system control service in the master control system sends an activation permission request message to the Mtp function hardware equipment node of the kernel;
and the Mtp functional hardware equipment node of the kernel activates the Mtp resource control authority of the first subsystem according to the activation authority request message.
Optionally, after the step of activating the http resource control authority of the first subsystem by the mp functional hardware device node of the kernel according to the activation authority request message, the method further includes:
and the multi-system control service in the main control system respectively sends first notification messages to other subsystems, and the first notification messages are used for notifying the other subsystems that Mtp resources are occupied.
Optionally, the method further comprises:
when the first subsystem does not need to use the Mtp resource, the first subsystem sends an Mtp resource cancellation message to a multi-system control service of the master control system;
the multi-system control service of the master control system sends a permission canceling request message to an Mtp functional hardware equipment node of the kernel;
and the Mtp functional hardware equipment node of the kernel cancels the Mtp resource control authority of the first subsystem according to the authority canceling request message.
Optionally, after the step of canceling the http resource control authority of the first subsystem by the mp functional hardware device node of the kernel according to the cancel authority request message, the method further includes:
and the multi-system control service of the main control system sends a second notification message to other subsystems, wherein the second notification message is used for notifying other subsystems that the current Mtp resources are idle, so that the other subsystems can apply for occupying the Mtp resources.
Optionally, the system identifier of the first subsystem is carried in the activation permission request message;
the step that the Mtp function hardware equipment node of the kernel activates the Mtp resource control authority of the first subsystem according to the activation authority request message comprises the following steps:
and the Mtp function hardware equipment node of the kernel activates the Mtp resource control authority of the first subsystem according to the system identification of the first subsystem in the activation authority request message.
The invention provides a device for using an Mtp function by multiple systems, which comprises:
the sending module is positioned in the first subsystem and used for sending an Mtp resource application request message to the multi-system control service in the main control system;
the multi-system control module is positioned in the main control system and used for detecting whether the Mtp resources are occupied by other subsystems; when the Mtp resources are not occupied by other subsystems, sending an activation permission request message to an Mtp function hardware equipment node of the kernel;
and the activation module is positioned in the Mtp function hardware equipment node of the kernel and used for activating the Mtp resource control authority of the first subsystem according to the activation authority request message sent by the multi-system control module.
Optionally, the multi-system control module is further configured to send a first notification message to other subsystems respectively, where the first notification message is used to notify other subsystems that the resource of the Mtp is occupied.
Optionally, the sending module is further configured to send an http resource cancellation message to a multi-system control service of the main control system when the first subsystem does not need to use the http resource;
the multi-system control module is also used for sending a permission canceling request message to an Mtp function hardware equipment node of the kernel;
the device still includes: a cancellation module;
and the cancelling module is positioned in the Mtp function hardware equipment node of the kernel and used for cancelling the Mtp resource control authority of the first subsystem according to the permission cancelling request message sent by the multi-system control module.
Optionally, the multi-system control module is further configured to send a second notification message to the other subsystems, where the second notification message is used to notify the other subsystems that the current Mtp resource is idle, so that the other subsystems can apply for occupying the Mtp resource.
Specifically, the system identifier of the first subsystem is carried in the activation permission request message;
and the activation module is specifically used for activating the Mtp resource control authority of the first subsystem according to the system identifier of the first subsystem in the activation authority request message.
Compared with the method and the device for using the Mtp function by multiple systems, any system of the mobile terminal can send an Mtp resource request message to a multi-system control service in a main control system, and after detecting that the Mtp resource is not occupied by other subsystems, the Mtp resource control authority of a first subsystem is activated, so that the first subsystem uses the Mtp function, namely each subsystem in the mobile terminal supports the Mtp function.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of the relationship between systems in a multi-system terminal device;
FIG. 2 is a flow chart illustrating the use of the Mtp function by multiple systems according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating the use of the Mtp function by a multi-system according to another embodiment of the present invention;
FIG. 4 is a flow chart illustrating the use of the Mtp function by a multi-system according to another embodiment of the present invention;
FIG. 5 is a flow chart illustrating the use of the Mtp function by a multi-system according to another embodiment of the present invention;
FIG. 6 is a flow chart illustrating the use of the Mtp function by a multi-system according to another embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an apparatus for using an Mtp function for multiple systems according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another apparatus for using an Mtp function in multiple systems according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein. As will be appreciated by those skilled in the art, a "terminal" as used herein includes both devices having a wireless signal receiver, which are devices having only a wireless signal receiver without transmit capability, and devices having receive and transmit hardware, which have devices having receive and transmit hardware capable of two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
A frame schematic diagram of an internal structure of a terminal device according to an embodiment of the present invention is shown in fig. 1, and includes: a main control system and more than two subsystems.
The subsystem in the embodiment of the present invention may be a container system that is provided in Linux container virtualization technology. The container system may be a Linux operating system or a Unix operating system in the conventional sense, an Android system, an Ubuntu system or a FireFox system derived from the Linux operating system, or a Windows system based on a Windows platform. In fact, the system of the present invention is not limited to the aforementioned exemplary operating systems, and can encompass all operating systems capable of operating in a container.
Preferably, the master control system may be the above conventional operating system, and may also be an operating system obtained by modifying the conventional kernel and/or adding functional modules outside the kernel (for example, a framework layer and an application layer).
The main control system is mainly used for performing foreground and background management on a plurality of subsystems, performing interaction with each system and the like.
Preferably, the master control system may communicate with the subsystems through predefined channels. Similarly, the systems can communicate with each other through the channel. Wherein the predefined channel may be a socket channel.
As shown in fig. 2, a method for using an Mtp function by multiple systems in an embodiment of the present invention includes:
step 201, the first subsystem sends an Mtp resource application request message to a multi-system control service in the master control system.
For the embodiment of the present invention, the Mtp resource may include: audio resources and video resources. The present invention is not limited to the embodiments.
And the Mtp resource application request message carries the system identifier of the first subsystem. For example, the system identifier of the first subsystem carried in the Mtp resource application request message is OS1
For the embodiment of the invention, when the file in the first subsystem is transmitted to the mobile phone through a Universal Serial Bus (USB), the first subsystem first sends a request message to the multi-system control service in the main control system to request to activate the Mtp function of the first subsystem.
Step 202, the multi-system control service in the main control system detects whether the Mtp resource is occupied by other subsystems.
For the embodiment of the invention, after the multi-system control service in the main control system receives the Mtp resource application request message sent by the first container system, whether the Mtp resource is occupied by other subsystems is detected.
For the embodiment of the present invention, step 202 may further include: and if the multi-system control service in the main control system detects that the Mtp resource is occupied by other subsystems, the multi-system control service in the main control system returns a notification message that the Mtp resource is occupied by other subsystems to the first container system.
And 203, if the Mtp resources are not occupied by other subsystems, the multi-system control service in the main control system sends an activation permission request message to the Mtp function hardware equipment node of the kernel.
For the embodiment of the invention, the multi-system control service in the main control system detects whether the Mtp resource is occupied by other subsystems, so that the condition that two or more subsystems use the Mtp function at the same time to cause the conflict of the two subsystems is avoided.
For example, the Mtp resource is currently occupied by the second subsystem and the sound is output through the Mtp resource, which would result in possible output errors if the Mtp function of the first subsystem is still activated and the first subsystem is also outputting sound at the same time.
And step 204, the Mtp function hardware equipment node of the kernel activates the Mtp resource control authority of the first subsystem according to the activation authority request message.
For the embodiment of the invention, the activation permission request message received by the Mtp function hardware equipment node of the kernel generally carries a system identifier, and the Mtp function hardware equipment node of the kernel determines a subsystem needing to activate the Mtp resource control permission according to the system identifier and activates the Mtp resource control permission of the subsystem. In the embodiment of the invention, if the activation permission request message received by the Mtp function hardware equipment node of the kernel does not carry the system identifier, the Mtp function hardware equipment node of the kernel activates the Mtp resource control permission of the current foreground running subsystem.
For example, if the system identifier carried in the activation permission request message received by the Mtp function hardware device node of the kernel is the OS1If the Mtp function hardware equipment node of the kernel activates the Mtp resource control authority of the first subsystem; and if the system identifier does not exist in the activation permission request message received by the Mtp function hardware equipment node of the kernel and the subsystem operated in the foreground is the second subsystem, activating the Mtp resource control permission of the second subsystem by the Mtp function hardware equipment node of the kernel.
Compared with the method that only one system in a mobile terminal supports the Mtp function, any system of the mobile terminal in the embodiment of the invention can send an Mtp resource request message to a multi-system control service in a main control system, and after detecting that the Mtp resource is not occupied by other subsystems, the Mtp resource control authority of a first subsystem is activated, so that the first subsystem uses the Mtp function, namely each subsystem in the mobile terminal supports the Mtp function.
Another possible implementation manner of the embodiment of the present invention is, on the basis as shown in fig. 2, the step 204, the http function hardware device node of the kernel activates the http resource control authority of the first subsystem according to the activation authority request message, and then further includes a step 305 as shown in fig. 3, where the operation performed in the step 301 and 304 is the same as the operation performed in the step 201 and 204 in fig. 2, and is not described herein again.
Step 305, the multi-system control service in the master control system sends first notification messages to other subsystems respectively.
Wherein, the first informing message is used for informing other subsystems that Mtp resources are occupied.
For the embodiment of the invention, after the Mtp function hardware device node of the kernel activates the Mtp resource control authority of the first subsystem, the multi-system control service in the main control system respectively sends notification messages to other subsystems in the mobile terminal. In the embodiment of the present invention, the first notification message may or may not carry the system identifier of the first subsystem. The present invention is not limited to the embodiments.
For the embodiment of the invention, the multi-system control service in the main control system respectively sends the first notification message to other subsystems to notify the other subsystems that the Mtp resources are occupied, so that the situation that the other subsystems send Mtp resource application request messages to the multi-system control service in the main control system can be avoided, and the signaling overhead can be reduced.
Another possible implementation manner of the embodiment of the present invention is as shown in fig. 3, and further includes steps 406 and 408 as shown in fig. 4, wherein the operations performed in the steps 401 and 405 are the same as the operations performed in the steps 301 and 305, and are not described herein again.
And step 406, when the first subsystem does not need to use the Mtp resource, the first subsystem sends an Mtp resource cancellation message to a multi-system control service of the main control system.
For the embodiment of the invention, after the first subsystem in the mobile terminal and other mobile systems complete data transmission, the first subsystem sends an Mtp resource cancellation message to the multi-system control service of the main control system so as to cancel the Mtp resource control authority of the first subsystem.
For the embodiment of the present invention, the Mtp resource cancellation message may or may not carry the system identifier of the first subsystem. The present invention is not limited to the embodiments.
Step 407, the multi-system control service of the main control system sends a permission canceling request message to the Mtp function hardware device node of the kernel.
And step 408, the Mtp function hardware equipment node of the kernel cancels the Mtp resource control authority of the first subsystem according to the authority canceling request message.
For example, when the permission cancellation request message received by the Mtp function hardware device node of the kernel carries the OS1When the Mtp function hardware equipment node of the kernel directly cancels the Mtp resource control authority of the first subsystem; when the permission canceling request message received by the Mtp function hardware device node of the kernel does not carry the system identifier, the Mtp function hardware device node of the kernel can check the subsystem occupying the Mtp resource currently and cancel the Mtp resource control permission of the subsystem.
For the embodiment of the invention, when the first subsystem does not need to use the Mtp resource, the first subsystem sends the permission canceling request message to the Mtp function hardware equipment node of the kernel through the multi-system control service of the main control system, so that the Mtp function hardware equipment node of the kernel cancels the Mtp resource control permission of the first subsystem, other subsystems can apply for the Mtp resource, the first subsystem is prevented from occupying the Mtp resource when the Mtp resource does not need to be used, and the waste of the Mtp resource can be reduced.
Another possible implementation manner of the embodiment of the present invention is, on the basis as shown in fig. 4, the step 408, the Mtp function hardware device node of the kernel, according to the cancellation permission request message, cancels the Mtp resource control permission of the first subsystem, and then further includes a step 509 as shown in fig. 5, where the operation performed in the steps 501-508 is the same as the operation performed in the steps 401-408, and is not described herein again.
Step 509, the multi-system control service of the main control system sends a second notification message to the other subsystems.
The second informing message is used for informing other subsystems that the current Mtp resource is idle, so that the other subsystems can apply for occupying the Mtp resource.
For the embodiment of the present invention, the second notification message may carry a system identifier to notify that the first subsystem of the other subsystems does not occupy the http resource currently, or may not carry the system identifier to notify that the current http resource of the other subsystems is idle. The present invention is not limited to the embodiments.
For the embodiment of the invention, the multi-system control service of the main control information sends the second notification message to other subsystems, so that the idle state of the Mtp resource of other subsystems can be notified, other subsystems can apply for occupying the Mtp resource in time, the waiting time of the Mtp resource occupied by other subsystems can be avoided, the waiting time of the user using the Mtp function of other subsystems can be further reduced, and the user experience is improved.
Another possible implementation manner of the embodiment of the present invention is based on the operation shown in fig. 2, where the activation permission request message carries the system identifier of the first subsystem, and the step 204 activates the mptp resource control permission of the first subsystem by the mptp function hardware device node of the kernel according to the activation permission request message, including the operation 604 shown in fig. 6, and the operation shown in the step 601 and 603 is the same as the operation shown in the step 201 and 203, and is not described herein again.
And step 604, activating the Mtp resource control authority of the first subsystem by the Mtp function hardware equipment node of the kernel according to the system identifier of the first subsystem in the activation authority request message.
The embodiment of the invention provides another method for using Mtp resources by multiple systems, which is characterized in that first notification messages are respectively sent to other subsystems through multiple system control services in a main control system to notify the other subsystems that Mtp resources are occupied, so that the situation that the other subsystems send Mtp resource application request messages to the multiple system control services in the main control system can be avoided, and the signaling overhead can be reduced; when the first subsystem does not need to use the Mtp resource, the first subsystem sends an authority cancelling request message to the Mtp function hardware equipment node of the kernel through the multi-system control service of the master control system, so that the Mtp function hardware equipment node of the kernel cancels the Mtp resource control authority of the first subsystem, other subsystems can apply for the Mtp resource, the Mtp resource is prevented from being occupied when the first subsystem does not need to use the Mtp resource, and the waste of the Mtp resource can be reduced; the multi-system control service of the main control information sends a second notification message to other subsystems, and can notify that the Mtp resources of the other subsystems are idle, so that the other subsystems can apply for occupying the Mtp resources in time, waiting time of the Mtp resources occupied by the other subsystems can be avoided, waiting time of users using the Mtp functions of the other subsystems can be reduced, and user experience is improved.
An embodiment of the present invention provides a device for multiple systems to use an Mtp function, and as shown in fig. 7, the device includes: a sending module 71, a multi-system control module 72, an activation module 73, wherein,
and the sending module 71 is located in the first subsystem, and is configured to send an Mtp resource application request message to a multi-system control service in the master control system.
The multi-system control module 72 is located in the main control system and used for detecting whether the Mtp resource is occupied by other subsystems; and when the Mtp resource is not occupied by other subsystems, sending an activation permission request message to the Mtp function hardware equipment node of the kernel.
And the activation module 73 is located in the mp function hardware device node of the kernel, and is configured to activate the mp resource control authority of the first subsystem according to the activation authority request message sent by the multi-system control module 72.
The multi-system control module 72 is further configured to send first notification messages to the other subsystems, respectively.
Wherein, the first informing message is used for informing other subsystems that Mtp resources are occupied.
The sending module 71 is further configured to send an http resource cancellation message to a multi-system control service of the main control system when the first subsystem does not need to use the http resource.
The multisystem control module 72 is further configured to send a permission cancellation request message to the Mtp function hardware device node of the kernel.
Further, as shown in fig. 8, the apparatus further includes: the module 81 is cancelled.
And the canceling module 81 is located in the Mtp function hardware device node of the kernel, and is configured to cancel the Mtp resource control permission of the first subsystem according to the permission canceling request message sent by the multi-system control module 72.
The multi-system control module 72 is further configured to send a second notification message to the other subsystems.
The second informing message is used for informing other subsystems that the current Mtp resource is idle, so that the other subsystems can apply for occupying the Mtp resource.
The activation module 73 is specifically configured to activate the Mtp resource control permission of the first subsystem according to the system identifier of the first subsystem in the activation permission request message when the system identifier of the first subsystem is carried in the activation permission request message.
Compared with the method that only one system in a mobile terminal supports the Mtp function, any system of the mobile terminal in the embodiment of the invention can send an Mtp resource request message to a multi-system control service in a main control system, and after detecting that the Mtp resource is not occupied by other subsystems, the Mtp resource control authority of a first subsystem is activated, so that the first subsystem uses the Mtp function, namely each subsystem in the mobile terminal supports the Mtp function.
The embodiment of the invention provides another device for using Mtp resources by multiple systems, which is characterized in that first notification messages are respectively sent to other subsystems through multiple system control services in a main control system to notify the other subsystems that Mtp resources are occupied, so that the situation that the other subsystems send Mtp resource application request messages to the multiple system control services in the main control system can be avoided, and the signaling overhead can be reduced; when the first subsystem does not need to use the Mtp resource, the first subsystem sends an authority cancelling request message to the Mtp function hardware equipment node of the kernel through the multi-system control service of the master control system, so that the Mtp function hardware equipment node of the kernel cancels the Mtp resource control authority of the first subsystem, other subsystems can apply for the Mtp resource, the Mtp resource is prevented from being occupied when the first subsystem does not need to use the Mtp resource, and the waste of the Mtp resource can be reduced; the multi-system control service of the main control information sends a second notification message to other subsystems, and can notify that the Mtp resources of the other subsystems are idle, so that the other subsystems can apply for occupying the Mtp resources in time, waiting time of the Mtp resources occupied by the other subsystems can be avoided, waiting time of users using the Mtp functions of the other subsystems can be reduced, and user experience is improved.
The device for multiple systems using the Mtp function provided by the embodiment of the present invention can implement the method embodiment provided above, and for specific implementation of the function, reference is made to the description of the method embodiment, which is not described herein again. The method and the device for using the Mtp function by the multiple systems provided by the embodiment of the invention can be suitable for the mobile terminal of the multiple systems, and each subsystem in the mobile terminal supports the Mtp function, but not limited to the Mtp function.
Those skilled in the art will appreciate that the invention includes apparatus relating to performing one or more of the operations herein. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the features specified in the block or blocks of the block diagrams and/or flowchart illustrations of the present disclosure.
Those of skill in the art will appreciate that various operations, methods, steps in the processes, acts, or solutions discussed in the present application may be alternated, modified, combined, or deleted. Further, various operations, methods, steps in the flows, which have been discussed in the present application, may be interchanged, modified, rearranged, decomposed, combined, or eliminated. Further, steps, measures, schemes in the various operations, methods, procedures disclosed in the prior art and the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method for using Mtp function for multiple systems, the method comprising:
the first subsystem sends an Mtp resource application request message to a multi-system control service in the master control system;
the multi-system control service in the master control system detects whether the Mtp resource is occupied by other subsystems;
if the Mtp resources are 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 the kernel;
the Mtp function hardware equipment node of the kernel activates the Mtp resource control authority of the first subsystem according to the activation authority request message;
wherein the method further comprises:
when the first subsystem does not need to use the Mtp resource, the first subsystem sends an Mtp resource cancellation message to a multi-system control service of the main control system;
the multi-system control service of the main control system sends a permission canceling request message to the Mtp function hardware equipment node of the kernel;
and the Mtp functional hardware equipment node of the kernel cancels the Mtp resource control authority of the first subsystem according to the authority canceling request message.
2. The method for using the Mtp function in the multiple systems according to claim 1, wherein after the step of activating the Mtp resource control authority of the first subsystem by the Mtp function hardware device node of the kernel according to the activation authority request message, the method further comprises:
and respectively sending first notification messages to other subsystems by the multi-system control service in the main control system, wherein the first notification messages are used for notifying that the Mtp resources of the other subsystems are occupied.
3. The method for using the Mtp function by the multiple systems according to claim 1, wherein after the step of canceling the Mtp resource control authority of the first subsystem by the Mtp function hardware device node of the kernel according to the request message for canceling the authority, the method further comprises:
and the multi-system control service of the main control system sends a second notification message to the other subsystems, wherein the second notification message is used for notifying the other subsystems that the Mtp resources are idle currently, so that the other subsystems can apply for occupying the Mtp resources.
4. The method for using the Mtp function of the multisystem according to any one of claims 1 to 3, wherein the system identifier of the first subsystem is carried in the activation permission request message;
the step of activating the Mtp resource control authority of the first subsystem by the Mtp function hardware equipment node of the kernel according to the activation authority request message comprises the following steps:
and the Mtp function hardware equipment node of the kernel activates the Mtp resource control authority of the first subsystem according to the system identification of the first subsystem in the activation authority request message.
5. An apparatus for using an Mtp function for multiple systems, the apparatus comprising:
the sending module is positioned in the first subsystem and used for sending an Mtp resource application request message to the multi-system control service in the main control system;
the multi-system control module is positioned in the main control system and used for detecting whether the Mtp resources are occupied by other subsystems; when the Mtp resources are not occupied by other subsystems, sending an activation permission request message to an Mtp function hardware equipment node of the kernel;
the activation module is positioned in an Mtp function hardware device node of the kernel and used for activating the Mtp resource control authority of the first subsystem according to the activation authority request message sent by the multi-system control module;
the sending module is further configured to send an http resource cancellation message to a multi-system control service of the master control system when the first subsystem does not need to use the http resource;
the multi-system control module is also used for sending a permission canceling request message to an Mtp function hardware equipment node of the kernel;
the device further comprises: a cancellation module;
and the cancelling module is positioned in the Mtp function hardware equipment node of the kernel and used for cancelling the Mtp resource control authority of the first subsystem according to the permission cancelling request message sent by the multi-system control module.
6. The multi-system Mtp enabled device of claim 5, comprising:
the multi-system control module is further configured to send first notification messages to other subsystems respectively, where the first notification messages are used to notify the other subsystems that the Mtp resources are occupied.
7. The multi-system Mtp enabled device of claim 5, comprising:
the multi-system control module is further configured to send a second notification message to the other subsystems, where the second notification message is used to notify the other subsystems that the http resources are currently idle, so that the other subsystems can apply for occupying the http resources.
8. The multi-system Mtp apparatus as claimed in any one of claims 5 to 7, wherein the system identifier of the first subsystem is carried in the activate permission request message;
the activation module is specifically configured to activate the Mtp resource control permission of the first subsystem according to the system identifier of the first subsystem in the activation permission request message.
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 CN106776065A (en) 2017-05-31
CN106776065B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (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
US8271976B2 (en) * 2004-06-30 2012-09-18 Microsoft Corporation Systems and methods for initializing multiple virtual processors within a single virtual machine
CN104516760B (en) * 2014-12-12 2018-01-09 华为技术有限公司 A kind of method, device and mobile terminal of operating system hot-swap
CN104850787B (en) * 2015-02-11 2018-06-05 数据通信科学技术研究所 Based on the high mobile terminal operating system and its implementation for ensureing kernel module
CN105046156B (en) * 2015-08-26 2018-05-08 北京元心科技有限公司 Intelligent terminal and its equipment access right control method
CN105138896B (en) * 2015-08-26 2017-10-20 北京元心科技有限公司 Intelligent terminal and its hardware device access right control method
CN105550037B (en) * 2015-12-11 2019-07-12 北京元心科技有限公司 Method and device for allocating audio resources in multiple systems
CN105955693B (en) * 2016-04-21 2019-12-27 北京元心科技有限公司 Method and device for allocating audio resources in multiple systems

Also Published As

Publication number Publication date
CN106776065A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2020211714A1 (en) Bluetooth scanning method and electronic device
CN104866336B (en) Silent in-vehicle software update
CN105046156B (en) Intelligent terminal and its equipment access right control method
CN111435901B (en) Hybrid automatic repeat request acknowledgement feedback method, terminal and network equipment
CN104737590B (en) A kind of method and apparatus for carrying out access control
CN109726528B (en) Method, device, equipment and medium for activating and requesting vehicle-machine service
CA2655194C (en) Method and system for communicating within a communication network
US11641679B2 (en) Sidelink data indication method and terminal equipment
CN110278543B (en) Method and device for updating control system of automobile and storage medium
JP4103623B2 (en) In-vehicle control device
CN106776013B (en) Multi-system resource scheduling method and device
CN112913190A (en) Upgrading method and device based on over-the-air technology OTA
CN103457977A (en) Information processing method, vehicle security method, vehicle-mounted terminal, terminal and server
CN106776065B (en) Method and device for using Mtp function by multiple systems
CN106851535B (en) Method and device for sharing Bluetooth by multiple systems
CN105657691B (en) Mobile terminal and data sharing method of double-chip system thereof
CN116055615B (en) Audio playing method, electronic equipment and medium
CN106488392B (en) Data transfer method and device
US9491132B2 (en) System and method for providing push service for reducing network loads
CN106912002B (en) Communication control method, communication control device, vehicle-mounted equipment and transportation means
JP6753413B2 (en) Equipment and method
CN114666736A (en) Location subscription method and device
CN108184209B (en) Message response method and device
CN117896682B (en) Vehicle-mounted eCall module software call control method and device
JP2020113858A (en) Communication device

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