CN108874699B - Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment - Google Patents

Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment Download PDF

Info

Publication number
CN108874699B
CN108874699B CN201810629105.1A CN201810629105A CN108874699B CN 108874699 B CN108874699 B CN 108874699B CN 201810629105 A CN201810629105 A CN 201810629105A CN 108874699 B CN108874699 B CN 108874699B
Authority
CN
China
Prior art keywords
mtp
module
information
communication channel
function
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
CN201810629105.1A
Other languages
Chinese (zh)
Other versions
CN108874699A (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
Beijing Yuanxin Science and Technology Co Ltd
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 Beijing Yuanxin Science and Technology Co Ltd filed Critical Beijing Yuanxin Science and Technology Co Ltd
Priority to CN201810629105.1A priority Critical patent/CN108874699B/en
Publication of CN108874699A publication Critical patent/CN108874699A/en
Application granted granted Critical
Publication of CN108874699B publication Critical patent/CN108874699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/105Program control for peripheral devices where the programme performs an input/output emulation function
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to the technical field of terminal equipment, and discloses a method and a device for using an MTP function by multiple systems, electronic equipment and a computer storage medium, wherein the method for using the MTP function by the multiple systems comprises the following steps: processing an MTP module of the multi-system terminal equipment into MTP modules corresponding to the number of the systems; establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are mutually isolated; and MTP information transmission is carried out between the MTP communication channel and each system after the MTP communication channel is established. According to the method, the multiple systems of the terminal equipment can simultaneously support the MTP function, even if the systems are switched back and forth, normal use of the MTP function by the systems is not influenced, convenience of using the MTP function by a user is greatly improved, and user experience is improved.

Description

Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment
Technical Field
The present application relates to the technical field of terminal devices, and in particular, to a method and an apparatus for using MTP function for multiple systems, an electronic device, and a computer storage medium.
Background
With the development of information technology, mobile terminals are becoming increasingly popular in users' daily lives, mobile terminals such as mobile phones start MTP (Media Transfer Protocol) functions and perform information transmission with other electronic devices through USB (Universal Serial Bus) interfaces, and in mobile terminals of a single system, the mobile terminals of the single system start MTP functions and directly perform information transmission with other electronic devices through USB interfaces.
With the rise of multi-system terminal equipment, how to use the MTP function for each system in the multi-system becomes a new problem to be solved. At present, one of the existing methods for using MTP functions for multiple systems is to fix MTP functions to a certain system, which results in that other systems cannot use MTP functions to perform file transfer, and the other method is to fix MTP functions to a foreground system, i.e. only the foreground system in a mobile terminal supports MTP functions, and can perform information transfer with other electronic devices through a USB interface. However, the above method not only greatly reduces the convenience of using the MTP function for the user, resulting in a reduction in user experience.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks, in particular to greatly reduce the convenience of using MTP functions for users.
In a first aspect, a method for using MTP function by multiple systems is provided, including:
processing an MTP module of the multi-system terminal equipment into MTP modules corresponding to the number of the systems;
establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are mutually isolated;
and MTP information transmission is carried out between the MTP communication channel and each system after the MTP communication channel is established.
In a second aspect, an apparatus for using MTP function by multiple systems is provided, which includes:
the processing module is used for processing one MTP module of the multi-system terminal equipment into MTP modules corresponding to the number of the systems;
the building module is used for building MTP communication channels between each MTP module and the corresponding system, and the MTP communication channels are mutually isolated;
and the transmission module is used for carrying out MTP information transmission with each system through the established MTP communication channel.
In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for using MTP function by multiple systems is implemented.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the program, when executed by a processor, implements the method for using MTP function by multiple systems as described above.
According to the method for using the MTP function by the multiple systems, one MTP module of the multiple system terminal equipment is processed into the MTP modules corresponding to the number of the systems, so that the multiple systems of the terminal equipment can simultaneously support the MTP function, and a precondition guarantee is provided for information transmission between each system and other electronic equipment through a USB interface; establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are isolated from each other, and laying a foundation for the subsequent systems to transmit MTP information through the corresponding MTP modules and the corresponding MTP communication channels respectively; through the MTP communication channel after establishing, carry out MTP information transmission with each system for terminal equipment can carry out MTP information transmission through corresponding MTP module and MTP communication channel with its each system simultaneously, each system of not only having guaranteed terminal equipment can normally use the MTP function simultaneously, even when each system carries out the front and back switching, can not influence each system and to the normal use of MTP function yet, and greatly improve the convenience that the user used the MTP function, promote user experience.
Additional aspects and advantages of the present application 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 present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application 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 flowchart illustrating a method for using MTP functions by multiple systems according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of communication between a mobile phone and a PC according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a communication hierarchy of a mobile phone side according to an embodiment of the present application;
fig. 4 is an MTP functional block diagram inside an android phone system according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating an implementation of an MTP function on a mobile phone side according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a basic structure of a multi-system device using MTP function according to an embodiment of the present disclosure;
FIG. 7 is a detailed structural diagram of an apparatus for multi-system using MTP function according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, 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 exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
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.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms referred to in this application are introduced as follows:
container technology is a very practical kernel virtualization technology that can provide lightweight virtualization to isolate processes and resources. By means of container technology and by means of namespace (namespace) technology and control group (Cgroup) technology plus some extra system-to-system separation technology, the running support environment of multiple systems on the same equipment can be provided at the same time, and therefore multiple different types of system applications can be supported.
Container technology isolates processes, networks, messages, file systems, UTS (UNIX Time-sharing systems) and users located between different containers by using a namespace mechanism. For the systems in each container, they all think they are running independently on a dedicated handset platform.
Virtualization refers to the ability to simulate multiple virtual machines on the same physical server, and each virtual machine logically has an independent central processing unit, memory, hard disk, network interface, and the like. Virtualization can improve the utilization rate of hardware resources, so that a plurality of applications can run on the same physical machine in an isolated manner.
The control group (Cgroups) mechanism is a mechanism provided by the Linux kernel that can limit, record, and isolate physical resources (e.g., central processing units, memory, disk input and output, etc.) used by a process group. It is a function of the Linux kernel to limit, count and separate the resources (e.g., central processing unit, memory, disk input and output, etc.) of a process group.
The container technique controls the resource allocation and usage on the terminal device as a whole by the Cgroups technique. For example, if the cpu occupation of the restricted process/bin/sh is 20%, a Cgroup with a cpu occupation of 20% may be created, and then the/bin/sh process is added to the Cgroup.
In the present multisystem terminal device, either the MTP function is fixed to a certain system or the MTP function is fixed to a foreground system, however, the MTP function is fixed to a certain system, which results in that other systems in the terminal device cannot use the MTP function to perform file transfer, and the MTP function is fixed to the foreground system, which results in that when the system in the terminal device is switched between the foreground and the background, the functions of two operating systems need to be changed, the foreground system supporting the MTP function is changed to not support the MTP function, the background system not supporting the MTP function is changed to support the MTP function, which greatly reduces the convenience of using the MTP function for the user, and at present, there is no implementation scheme that a plurality of systems simultaneously support the MTP function.
The application provides a method, an apparatus, an electronic device and a computer-readable storage medium for multi-system use of MTP function, which aim to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
An embodiment of the present application provides a method for using MTP functions by multiple systems, as shown in fig. 1, including:
step S100, one MTP module of the multi-system terminal equipment is processed into MTP modules corresponding to the number of the systems.
Specifically, MTP (Media Transfer Protocol) is a Protocol provided by microsoft and customized for transferring multimedia information such as images and music between a computer and a portable device. The MTP can be implemented on a USB (Universal Serial Bus) Protocol, or a TCP/IP (Transmission Control Protocol/Internet Protocol), which belongs to an upper application Protocol, and does not concern a lower transport Protocol.
Further, the application of MTP has two roles, one is as Initiator (Initiator) and the other is as Responder (Responder). All requests in the MTP are initiated by an Initiator, for example, a desktop computer requests to acquire file data on an android phone, and a response will process the request of the Initiator and in addition, the response will also send an MTP event.
For example: WMP (Windows Media Player) is the Initiator, and the portable Media Player device is the Responder. The Responder is mainly a command for passively replying to an Initiator, generally does not actively issue the command, is mainly used for transmitting media files, associates metadata from (to) a device (a portable media player device), has optional additional support for remote control of the device, reads and sets device parameters, and can also send an MTP event to a host (such as a Windows media player).
Further, the multi-system terminal device includes, but is not limited to, an android mobile phone, a tablet computer, a laptop computer, a desktop computer, and the like, and taking an android mobile phone (hereinafter referred to as a mobile phone) as an example, only one MTP module is implemented in a current mobile phone, and the mobile phone can perform multimedia file transmission with a PC such as a tablet computer, a laptop computer, a desktop computer, and the like through the MTP module. Communication between a mobile phone and a PC is shown in fig. 2, the left side in fig. 2 is the PC, the right side is the mobile phone, the PC is connected to the mobile phone through a USB bus, the bottom layer is a USB hardware device used for communication between two devices, the mobile phone uses a USB gap mode, the USB gap mode can allow a device (for example, a mobile phone) using the mode to be used as a USB slave device, thereby providing functions similar to a USB serial port, a USB network, and the like, the PC uses a USB Host mode, the USB Host mode can allow a device (for example, a PC) using the mode to be used as a USB master device, thereby communicating with a USB slave device connected to the USB master device through the USB bus, and based on the working mode, the mobile phone can selectively implement: the adb function, the adb function is the external debugging bridge function that the android mobile phone provided, can debug and operate this cell-phone through the PC that is connected with the android mobile phone through this function), MTP functional module etc. also have corresponding adb functional module on the corresponding PC, MTP functional module etc. these modules are established on the communication mechanism that figure 2 shows to realize the communication between two modules through this mechanism, thereby realize the MTP function.
Further, the communication hierarchy at the mobile phone side is shown in fig. 3, where the MTP module is a module in which various series of modules and mass storage modules are arranged in parallel, and these modules are all built on the USB composite framework, and they all communicate with the PC at the opposite end through the USB composite framework, the UDC core (USB Device Controller), and the USB Device Controller, where the UDC core is a driver of the underlying hardware Controller on the USB hardware Device outside the USB host Controller, and the hardware and the driver are responsible for attaching a USB Device to a USB host Controller.
Further, since two, three or more systems may be operated in one mobile phone, for example, two systems are operated in the mobile phone, and the two systems may be a security system and a living system, respectively, at this time, in the dual-system mobile phone, the two systems share one Linux kernel but have respective system layers, and the MTP function includes a kernel part and a system part, where the kernel part only includes an MTP module, it is necessary to select which system the MTP module is configured to serve, that is, configure the MTP module to be used as a foreground system or a background system, that is, configure the MTP module to be used as a security system or a living system.
Furthermore, in order to enable two systems in one mobile phone to simultaneously use the MTP function, two MTP modules need to be provided in the kernel, one MTP module is allocated to the security system and the other MTP module is allocated to the living system, the security system can share files which need to be shared by the security system through the driver of the corresponding MTP module, and the living system can also share files which need to be shared by the living system through the driver of the corresponding MTP module. It should be noted that, when there are three or more systems in a mobile phone, MTP modules corresponding to the number of the systems may be provided in the kernel so that each system can use the MTP function at the same time. The MTP function block diagram inside the android mobile phone system is shown in fig. 4.
Further, for the dual-system mobile phone side, although there is still one USB device presented to the PC, the mobile phone presents two MTP interfaces to the PC, for example, one MTP interface is a previous MTP interface (corresponding to the MTP driver in fig. 4) of the mobile phone system, and the other is a new USB interface (corresponding to the USB driver in fig. 4), and the new USB interface is used to support the MTP function of the other system of the mobile phone, that is, the mobile phone can present different MTP functions to the PC through different MTP interfaces, that is, the mobile phone presents two MTP functions to the PC through the two interfaces, as shown in fig. 5. Correspondingly, the PC side needs to identify the two MTP interfaces respectively, and establish communication with the mobile phone through corresponding driver, protocol and application modules, thereby implementing content sharing.
Step S200, establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are mutually isolated.
Specifically, after one MTP module of the multi-system terminal device is processed into MTP modules corresponding to the number of the systems, in order to ensure that each system can normally use the MTP module and the PC to perform file transmission at the same time, it is necessary to establish MTP communication channels isolated from each other between each MTP module and the corresponding system, and each system is not interfered with each other, so that a foundation is laid for each system to perform file transmission with the PC through the MTP module corresponding to the system and the MTP communication channels independent from each other.
Step S300, MTP information transmission is carried out between the MTP communication channel and each system after the establishment.
Specifically, the MTP information transmission with each system includes any one of the following cases: responding to the request of the PC to acquire the file data of any system in the mobile phone and performing MTP information transmission with each system; the core at the bottom layer of the mobile phone actively reports the MTP information to any system, and MTP information transmission is carried out between the core and each system, which is similar to the above-mentioned Responder actively sending the MTP event.
Compared with the prior art, the method for using the MTP function by the multiple systems has the advantages that one MTP module of the multiple system terminal equipment is processed into the MTP modules corresponding to the number of the systems, so that the multiple systems of the terminal equipment can simultaneously support the MTP function, and the precondition guarantee is provided for each system to carry out information transmission with other electronic equipment through the USB interface; establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are isolated from each other, and laying a foundation for the subsequent systems to transmit MTP information through the corresponding MTP modules and the corresponding MTP communication channels respectively; through the MTP communication channel after establishing, carry out MTP information transmission with each system for terminal equipment can carry out MTP information transmission through corresponding MTP module and MTP communication channel with its each system simultaneously, each system of not only having guaranteed terminal equipment can normally use the MTP function simultaneously, even when each system carries out the front and back switching, can not influence each system and to the normal use of MTP function yet, and greatly improve the convenience that the user used the MTP function, promote user experience.
Example two
The embodiment of the present application provides another possible implementation manner, and on the basis of the first embodiment, the method shown in the second embodiment is further included, wherein,
step S300 includes step S3001 (not shown) and step S3002 (not shown), wherein,
step S3001: when any MTP module needs to send MTP information, the MTP information is sent to a system corresponding to the MTP module through each MTP module and the corresponding MTP communication channel.
Step S3002: when a request message of MTP information from an application layer is received, determining an MTP communication channel corresponding to the MTP information based on the request message; and according to the MTP communication channel obtained by determination, requesting the MTP information to a corresponding system.
Wherein, the request message carries the system identification of the system; determining an MTP communication channel corresponding to the MTP information based on the request message, comprising: determining a system to which the MTP information belongs according to the system identification; and determining an MTP communication channel corresponding to the system to which the MTP information belongs.
Specifically, after determining the MTP communication channel corresponding to the system to which the MTP information belongs, the method further includes: and binding the system to which the MTP information belongs and the MTP communication channel corresponding to the system.
Further, when the core of the bottom layer of the mobile phone actively reports the MTP information to any system, that is, each MTP module in the core of the bottom layer of the mobile phone actively sends or reports the MTP information, the MTP communication channels respectively corresponding to each MTP module may be determined according to the one-to-one correspondence relationship between the MTP module and the MTP communication channels, and then the MTP information to be sent by each MTP module is sent to the system respectively corresponding to each MTP module through the MTP communication channels respectively corresponding to each MTP module.
Furthermore, the MTP modules and the MTP communication channels are in one-to-one correspondence, for example, MTP module 1 corresponds to MTP communication channel 1, MTP module 2 corresponds to MTP communication channels 2 and …, and MTP module N corresponds to MTP communication channel N, or of course, MTP module 1 corresponds to MTP communication channel 3, MTP module 2 corresponds to MTP communication channels 5 and …, and MTP module N corresponds to MTP communication channel N. Taking an example that MTP module 1 corresponds to MTP communication channel 1 and MTP module 2 corresponds to MTP communication channel 2, when MTP module 1 and MTP module 2 in a kernel at a bottom layer of a mobile phone actively transmit or notify MTP information, according to a one-to-one correspondence relationship between MTP module and MTP communication channels, it can be determined that MTP communication channel corresponding to MTP module 1 is MTP communication channel 1 and MTP communication channel corresponding to MTP module 2 is MTP communication channel 2, and then MTP information to be transmitted by MTP module 1 is transmitted to a system (e.g., system 1) corresponding to MTP module 1 through MTP communication channel 1, and MTP information to be transmitted by MTP module 2 is transmitted to a system (e.g., system 2) corresponding to MTP module 2 through MTP communication channel 2.
Further, when the PC requests to acquire file data on the multi-system mobile phone, that is, the PC initiates an Initiator request to the multi-system mobile phone, the Initiator request may be sent to the multi-system mobile phone through an interface of an application layer of the multi-system mobile phone, that is, a request message requesting to acquire the MTP information may be sent to the multi-system mobile phone through an interface of an application layer of the multi-system mobile phone. For the PC, it needs to indicate the system to which the MTP information to be acquired belongs in the request message, for example, the request message carries the system identifier of the system to which the MTP information to be acquired belongs.
Further, when the multi-system mobile phone application layer receives the request message of the MTP information, the multi-system mobile phone determines a system corresponding to the system identifier according to the system identifier carried in the request message. The system identifiers are in one-to-one correspondence with the systems, for example, system identifier 1 corresponds to system 1, system identifier 2 corresponds to system 2, …, and system identifier N corresponds to system N, but system identifier 1 may also correspond to system 3, system identifier 2 corresponds to system 5, …, and system identifier N corresponds to system N. Taking the case that the system identifier 1 corresponds to the system 1 and the system identifier 2 corresponds to the system 2, when the request message of the MTP information received by the multi-system mobile phone carries the system identifier 1, it can be determined that the system identifier 1 corresponds to the system 1 in the multi-system according to the one-to-one correspondence between the system identifier and the system; when the MTP information request message received by the multi-system mobile phone carries the system identifier 2, the system 2 in the multi-system corresponding to the system identifier 2 can be determined according to the one-to-one correspondence between the system identifiers and the systems.
Further, after the multi-system mobile phone determines the system corresponding to the system identifier carried in the MTP information request message received by the application layer, the system to which the MTP information belongs is determined. And then the corresponding relation between the system and the MTP communication channel can be used for determining the MTP communication channel corresponding to the MTP information.
Further, after determining the MTP communication channel corresponding to the MTP information received by the application layer, the MTP information may be obtained from the system corresponding to the MTP communication channel through the MTP communication channel, so as to respond to a request from the PC side, for example, the obtained MTP information is sent to the PC through a USB bus between the PC and the MTP communication channel.
Furthermore, after the system and the MTP communication channel corresponding to the received MTP information are determined, the system to which the MTP information belongs and the MTP communication channel corresponding to the system can be bound, so that each system in the multi-system mobile phone can normally use the respective independent MTP communication channel at the same time without mutual influence.
For the embodiment of the application, the terminal equipment can normally transmit the MTP information with each system through the corresponding MTP module and the MTP communication channel, even if each system is switched back and forth, the normal use of the MTP function by each system is not influenced, and the convenience of using the MTP function by a user is greatly improved.
EXAMPLE III
The embodiment of the present application provides another possible implementation manner, and on the basis of the second embodiment, the method shown in the third embodiment is further included, wherein,
step S300 is followed by step S400 (not shown) and step S500 (not shown), wherein,
step S400: and providing MTP control interfaces corresponding to the systems respectively.
Step S500: and configuring the MTP function of each system according to the detected selection operation input through the MTP control interface.
Specifically, the multi-system mobile phone may provide an MTP control interface corresponding to each system, for example, the multi-system mobile phone may provide an MTP control interface for each system, that is, each system has a corresponding MTP control interface, so that a user may configure the MTP functions of each system through the MTP control interfaces corresponding to each system according to the user's own needs.
Furthermore, the multi-system mobile phone can configure the MTP function of each system according to the detected selection operation input through the MTP control interface, that is, when the multi-system mobile phone detects the input selection operation of the user on the MTP control interface of any system (for example, system 1), the multi-system mobile phone can configure the MTP function of any system (for example, system 1) according to the input selection operation of the user, so that the user can conveniently and quickly configure each system through the MTP control interface corresponding to each system according to the different requirements of the user on each system.
For the embodiment of the application, a user can configure each system according to own requirements through the MTP control interface corresponding to each system, so that each system meets different requirements of the user, and the user experience is greatly improved.
Example four
Fig. 6 is a schematic structural diagram of an apparatus for multiple systems using MTP function according to an embodiment of the present disclosure, and as shown in fig. 6, the apparatus 60 may include: a processing module 61, a construction module 62 and a transmission module 63, wherein,
the processing module 61 is used for processing one MTP module of the multi-system terminal device into MTP modules corresponding to the number of systems;
the building module 62 is configured to build MTP communication channels between each MTP module and its corresponding system, and the MTP communication channels are isolated from each other;
the transmission module 63 is used for MTP information transmission with each system through the established MTP communication channel.
Further, the transmission module 63 is specifically configured to send MTP information to a system corresponding to any MTP module through each MTP module and its corresponding MTP communication channel when the MTP module needs to send the MTP information.
Further, the transmission module 63 includes a determination submodule 631 and a request submodule 632, as shown in fig. 7, wherein,
the determining submodule 631 is configured to determine, when receiving a request message of MTP information from an application layer, an MTP communication channel corresponding to the MTP information based on the request message;
the request submodule 632 is configured to request MTP information from a corresponding system according to the determined MTP communication channel.
Further, the request message carries a system identifier of the system;
the determining submodule 631 is specifically configured to determine, according to the system identifier, a system to which the MTP information belongs; and the MTP communication channel corresponding to the system to which the MTP information belongs is determined.
Further, the apparatus also includes a binding module 64, as shown in fig. 7, wherein,
the binding module 64 is used for binding the system to which the MTP information belongs and the MTP communication channel corresponding to the system.
Further, the apparatus further comprises an interface providing module 65 and a configuration module 66, as shown in fig. 7, wherein,
the interface providing module 65 is configured to provide MTP control interfaces corresponding to the respective systems;
the configuration module 66 is used for configuring the MTP function of each system according to the detected selection operation input through the MTP control interface.
Compared with the prior art, the device provided by the embodiment of the application processes one MTP module of the multi-system terminal equipment into MTP modules corresponding to the number of the systems, so that a plurality of systems of the terminal equipment can simultaneously support the MTP function, and a precondition guarantee is provided for information transmission between each system and other electronic equipment through a USB interface; establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are isolated from each other, and laying a foundation for the subsequent systems to transmit MTP information through the corresponding MTP modules and the corresponding MTP communication channels respectively; through the MTP communication channel after establishing, carry out MTP information transmission with each system for terminal equipment can carry out MTP information transmission through corresponding MTP module and MTP communication channel with its each system simultaneously, each system of not only having guaranteed terminal equipment can normally use the MTP function simultaneously, even when each system carries out the front and back switching, can not influence each system and to the normal use of MTP function yet, and greatly improve the convenience that the user used the MTP function, promote user experience.
EXAMPLE five
An embodiment of the present application provides an electronic device, as shown in fig. 8, an electronic device 800 shown in fig. 8 includes: a processor 801 and a memory 803. Wherein the processor 801 is coupled to a memory 803, such as via a bus 802. Further, the electronic device 800 may also include a transceiver 804. It should be noted that the transceiver 804 is not limited to one in practical applications, and the structure of the electronic device 800 is not limited to the embodiment of the present application.
The processor 801 is applied to the embodiment of the present application, and is used to implement the functions of the processing module and the building module shown in fig. 6. The transceiver 804 includes a receiver and a transmitter, and the transceiver 804 is applied in the embodiment of the present application to realize the functions of the transmission module shown in fig. 6.
The processor 801 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 801 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 802 may include a path that transfers information between the above components. The bus 802 may be a PCI bus or an EISA bus, etc. The bus 802 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
The memory 803 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 803 is used for storing application program code for performing the present solution and is controlled in execution by the processor 801. The processor 801 is configured to execute the application program code stored in the memory 803 to implement the actions of the multi-system apparatus using MTP function provided in the embodiment shown in fig. 6.
The electronic device provided by the embodiment of the application comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and when the processor executes the program, compared with the prior art, the electronic device can realize that: one MTP module of the multi-system terminal equipment is processed into MTP modules corresponding to the number of the systems, so that a plurality of systems of the terminal equipment can simultaneously support the MTP function, and a precondition guarantee is provided for each system to transmit information with other electronic equipment through a USB interface; establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are isolated from each other, and laying a foundation for the subsequent systems to transmit MTP information through the corresponding MTP modules and the corresponding MTP communication channels respectively; through the MTP communication channel after establishing, carry out MTP information transmission with each system for terminal equipment can carry out MTP information transmission through corresponding MTP module and MTP communication channel with its each system simultaneously, each system of not only having guaranteed terminal equipment can normally use the MTP function simultaneously, even when each system carries out the front and back switching, can not influence each system and to the normal use of MTP function yet, and greatly improve the convenience that the user used the MTP function, promote user experience.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method shown in the first embodiment. Compared with the prior art, one MTP module of the multi-system terminal equipment is processed into MTP modules corresponding to the number of the systems, so that the multiple systems of the terminal equipment can simultaneously support the MTP function, and a precondition guarantee is provided for each system to respectively transmit information with other electronic equipment through a USB interface; establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are isolated from each other, and laying a foundation for the subsequent systems to transmit MTP information through the corresponding MTP modules and the corresponding MTP communication channels respectively; through the MTP communication channel after establishing, carry out MTP information transmission with each system for terminal equipment can carry out MTP information transmission through corresponding MTP module and MTP communication channel with its each system simultaneously, each system of not only having guaranteed terminal equipment can normally use the MTP function simultaneously, even when each system carries out the front and back switching, can not influence each system and to the normal use of MTP function yet, and greatly improve the convenience that the user used the MTP function, promote user experience.
The computer-readable storage medium provided by the embodiment of the application is suitable for any embodiment of the method. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (9)

1. A method for using MTP function by multiple systems is characterized by comprising the following steps:
processing an MTP module of the multi-system terminal equipment into MTP modules corresponding to the number of the systems;
establishing MTP communication channels between each MTP module and the corresponding system, wherein the MTP communication channels are mutually isolated;
through the MTP communication channel after setting up, carry on MTP information transmission with each system, including:
when a request message of MTP information from an application layer is received, determining an MTP communication channel corresponding to the MTP information based on the request message;
and requesting the MTP information to a corresponding system according to the determined MTP communication channel.
2. The method of claim 1 wherein MTP information transfer between each system over the established MTP communication channel comprises:
when any MTP module needs to send MTP information, the MTP information is sent to a system corresponding to the MTP module through each MTP module and the corresponding MTP communication channel.
3. The method of claim 2, wherein the request message carries a system identifier of a system;
determining an MTP communication channel corresponding to the MTP information based on the request message includes:
determining a system to which the MTP information belongs according to the system identification;
and determining an MTP communication channel corresponding to the system to which the MTP information belongs.
4. The method of claim 3, wherein after determining the MTP communication channel corresponding to the system to which the MTP information belongs, further comprising:
and binding the system to which the MTP information belongs and the MTP communication channel corresponding to the system.
5. The method according to any one of claims 1-4, further comprising:
providing MTP control interfaces corresponding to the systems respectively;
and configuring the MTP function of each system according to the detected selection operation input through the MTP control interface.
6. An apparatus for using MTP function for multiple systems, comprising:
the processing module is used for processing one MTP module of the multi-system terminal equipment into MTP modules corresponding to the number of the systems;
the building module is used for building MTP communication channels between each MTP module and the corresponding system, and the MTP communication channels are mutually isolated;
the transmission module is used for carrying out MTP information transmission with each system through the established MTP communication channel, and comprises:
when a request message of MTP information from an application layer is received, determining an MTP communication channel corresponding to the MTP information based on the request message;
and requesting the MTP information to a corresponding system according to the determined MTP communication channel.
7. The apparatus of claim 6 wherein the transmission module is specifically configured to send the MTP information to the system corresponding to any MTP module through each MTP module and its corresponding MTP communication channel when the MTP module needs to send the MTP information.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for multi-system use of MTP functionality of any of claims 1-5 when executing the program.
9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the program implements the method for multi-system using MTP function of any of claims 1-5.
CN201810629105.1A 2018-06-19 2018-06-19 Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment Active CN108874699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810629105.1A CN108874699B (en) 2018-06-19 2018-06-19 Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810629105.1A CN108874699B (en) 2018-06-19 2018-06-19 Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment

Publications (2)

Publication Number Publication Date
CN108874699A CN108874699A (en) 2018-11-23
CN108874699B true CN108874699B (en) 2021-06-25

Family

ID=64339387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810629105.1A Active CN108874699B (en) 2018-06-19 2018-06-19 Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment

Country Status (1)

Country Link
CN (1) CN108874699B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617883A (en) * 2018-12-20 2019-04-12 努比亚技术有限公司 A kind of mobile terminal and its with computer shared file method, apparatus and storage medium
WO2022150966A1 (en) * 2021-01-12 2022-07-21 王志平 Processor memory management method for achieving process isolation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564147A (en) * 2004-03-31 2005-01-12 港湾网络有限公司 Double CPU communication systems based on PCI shared memory
CN106776065A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for using Mtp function by multiple systems
CN106970844A (en) * 2017-03-01 2017-07-21 北京海杭通讯科技有限公司 A kind of MTP management methods of pair of android system
CN107483882A (en) * 2017-07-07 2017-12-15 上海斐讯数据通信技术有限公司 A kind of windows display system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100042580A1 (en) * 2008-08-14 2010-02-18 Chih-Hung Cheng Method of for a Host to Access an Object Stored in a Multimedia Device Supported by MTP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564147A (en) * 2004-03-31 2005-01-12 港湾网络有限公司 Double CPU communication systems based on PCI shared memory
CN106776065A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for using Mtp function by multiple systems
CN106970844A (en) * 2017-03-01 2017-07-21 北京海杭通讯科技有限公司 A kind of MTP management methods of pair of android system
CN107483882A (en) * 2017-07-07 2017-12-15 上海斐讯数据通信技术有限公司 A kind of windows display system and method

Also Published As

Publication number Publication date
CN108874699A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US9244817B2 (en) Remote debugging in a cloud computing environment
EP2862065B1 (en) Intermediary virtual machine task management
US10331470B2 (en) Virtual machine creation according to a redundancy policy
US20130091502A1 (en) System and method of providing virtual machine using device cloud
CN113312143B (en) Cloud computing system, command processing method and virtualization simulation device
CN102316043B (en) Port virtualization method, switch and communication system
CN107360633B (en) Pairing connection method and device of virtual reality system and virtual reality system
CN109729115B (en) Method, device, proxy server and terminal equipment for realizing distributed computation
CN104123265A (en) Method and system for communication among multiple kernels
CN108874699B (en) Method and device for using MTP (Multi-time transfer protocol) function by multiple systems and electronic equipment
CN109194589B (en) MDC (media data center) implementation method and device
CN111858050B (en) Server cluster hybrid deployment method, cluster management node and related system
CN116860391A (en) GPU computing power resource scheduling method, device, equipment and medium
CN109361693B (en) Virtual device communication method and device
CN113424149A (en) Low latency events across virtual machine boundaries
CN108351802B (en) Computer data processing system and method for communication traffic based optimization of virtual machine communication
CN108833570B (en) Cluster storage and balanced transmission system based on cloud storage
CN116243853A (en) Data transmission method and device, electronic equipment and nonvolatile storage medium
WO2022083342A1 (en) Data transmission method and electronic device
CN112968812A (en) Network performance testing method, device, equipment and storage medium
CN109962962B (en) Socket connection method and device
CN112970009A (en) System and method for replicating storage representations in application orchestration
JPS62121562A (en) Data communication system
US11281599B2 (en) Shared peripheral devices
CN104396207B (en) The method and apparatus for realizing multi-display access

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

Effective date of registration: 20230510

Address after: Room 401, Floor 4, No. 2, Haidian East Third Street, Haidian District, Beijing 100080

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, Daxing District, Beijing

Patentee before: YUANXIN TECHNOLOGY

TR01 Transfer of patent right