WO2015010640A1 - 控制管理设备的方法和相关设备 - Google Patents

控制管理设备的方法和相关设备 Download PDF

Info

Publication number
WO2015010640A1
WO2015010640A1 PCT/CN2014/082944 CN2014082944W WO2015010640A1 WO 2015010640 A1 WO2015010640 A1 WO 2015010640A1 CN 2014082944 W CN2014082944 W CN 2014082944W WO 2015010640 A1 WO2015010640 A1 WO 2015010640A1
Authority
WO
WIPO (PCT)
Prior art keywords
devices
sub
entity
physical
data processing
Prior art date
Application number
PCT/CN2014/082944
Other languages
English (en)
French (fr)
Inventor
李波
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP14828780.8A priority Critical patent/EP2940969A4/en
Publication of WO2015010640A1 publication Critical patent/WO2015010640A1/zh
Priority to US14/981,085 priority patent/US10218578B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1031Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and related device for controlling a management device. Background technique
  • the cloud terminal product uses a cloud protocol to connect to the cloud server, and the cloud server provides a virtual personal computer (PC) for the cloud terminal product.
  • PC virtual personal computer
  • Cloud Desktop can allocate corresponding hardware resources according to user needs.
  • Cloud computing may gradually replace PCs in a reliable and stable network connection.
  • the remote cloud server Connect to the remote cloud server locally using the corresponding cloud client software on the cloud terminal.
  • a hardware device connected to a cloud terminal it must be connected with the cloud server before the client can connect.
  • the related hardware devices of the cloud terminal cannot be dynamically adapted. If there are multiple identical devices, only one of them can be connected, and only the devices connected to the cloud terminal can be used. If the cloud terminal local peripheral changes, it must be reconnected to the cloud server before it can be used, which seriously affects the customer's body.
  • the existing solution is to connect the physical device, and the device currently connected to the cloud terminal can only use the currently connected device.
  • sound card A sound card
  • sound card B sound card
  • USB sound card is marked as a sound card.
  • only one device can be connected.
  • only one sound card can be connected.
  • only one sound card device can be used in the same time, and cannot be used at the same time.
  • the graphics card and sound card A of the cloud terminal transmit the video and sound signals to the television and the sound through the connecting line, respectively, and the perfect audio-visual enjoyment can be obtained.
  • his colleague or friend called him through the online instant messaging software he needs to use the microphone and the headset, but the sound card A does not provide the relevant interface, only through the sound card B of the cloud terminal, and now the sound card B is not In the connection enabled state, the user can only use the sound card B after disconnecting the cloud desktop and reselecting the sound card B to connect.
  • the embodiment of the invention provides a method for controlling a management device and related devices, so as to upgrade multiple functional devices of the same type when the cloud terminal device can connect multiple functional devices of the same type (such as multiple network cards or multiple sound cards) The flexibility of use.
  • a first aspect of the present invention provides a method for controlling a management device, which may include:
  • the virtual parent device deployed in the cloud terminal device receives the data processing instruction, and indicates that the selected N2 entity sub-devices perform data processing according to the data processing instruction, where the N1 and N2 are positive integers, and the N2
  • the N1 entity sub-devices are deployed in the cloud terminal device or are connected to the cloud terminal device, and are different from the N1 entity sub-devices.
  • the selecting the N2 entity sub-devices from the N1 entity sub-devices according to the setting policy includes: acquiring N1 entity sub-devices respectively corresponding to being used The N2 entity sub-devices with the highest priority are selected from the N1 entity sub-devices; or the used priority corresponding to the N1 entity sub-devices are respectively obtained; from the N1 entities Among the devices, the N2 entity sub-devices that are used with the highest priority and are not currently used are selected.
  • the data processing instruction is from an application
  • the selecting the N2 entity sub-devices from the N1 entity sub-devices according to the setting policy includes: Selecting, from the N1 entity sub-devices, the application uses the highest priority N2 entity sub-devices; or selecting the application from the N1 entity sub-devices to use the highest priority N2 entity sub-devices that are not currently in use.
  • the selecting the N2 entity sub-devices from the N1 entity sub-devices according to the setting policy, and indicating the selected N2 entities The data processing is performed by the device based on the data processing instruction, and the method includes: obtaining a used priority corresponding to the N1 entity sub-devices, and if the N2 entity sub-devices of the N1 entity sub-devices are used with the highest priority and the same, Selecting the N2 entity sub-devices, and indicating each of the N2 entity sub-devices, according to the ratio of the used weights to the total used weights of the N2 entity sub-devices, The data requested by the data processing instruction.
  • the data processing instruction is from an application, where the N2 entity sub-devices are selected from the N1 entity sub-devices according to the setting policy, and the selected N2 entity sub-devices are instructed to perform the data processing instruction according to the data processing instruction.
  • Data processing including: obtaining a usage priority of the application for the N1 entity sub-devices, if the application has the highest priority and the same usage priority for the N2 entity sub-devices among the N1 entity sub-devices, Then, the N2 entity sub-devices are selected, and each of the N2 entity sub-devices is instructed to be processed according to a ratio of the used weights to the total used weights of the N2 entity sub-devices.
  • the data requested by the data processing instruction including: obtaining a usage priority of the application for the N1 entity sub-devices, if the application has the highest priority and the same usage priority for the N2 entity sub-devices among the N1 entity sub-devices.
  • the virtual parent device is a virtual network card, and the N1 entity sub-devices are N1 physical network cards; or the virtual parent device is a virtual sound card, and the N1 The entity sub-device is a N1 physical sound card; or the virtual parent device is a virtual graphics card, and the N1 entity sub-devices are N1 physical graphics cards; or the virtual parent device is a virtual printer, and the N1 entities are The device is N1 physical printers.
  • the second aspect of the present invention provides a cloud terminal device, where the virtual terminal device is deployed, and the virtual parent device includes: a receiver, configured to receive a data processing instruction, an entity sub-device, and indicate the selected The N2 entity sub-devices perform data processing based on the data processing instruction, where the N1 and N2 are positive integers, the N2 is less than or equal to the N1, and the virtual parent device and the N2 entity child devices
  • the device type is the same, the N1 entity sub-devices
  • the distribution manager is specifically configured to: obtain a used priority corresponding to the N1 entity sub-devices respectively; and select, from the N1 entity sub-devices, N2 entity sub-devices with the highest priority, and Instructing the selected N2 entity sub-devices to perform data processing based on the data processing instruction; or the distribution manager is specifically configured to acquire the used priority corresponding to the N1 entity sub-devices respectively; from the N1 Among the entity sub-devices, the N2 entity sub-devices with the highest priority and not currently used are selected, and the selected N2 entity sub-devices are instructed to perform data processing based on the data processing instructions;
  • the distribution manager is specifically configured to: obtain the used priority corresponding to the N1 entity sub-devices, if the N2 entity sub-devices of the N1 entity sub-devices are used with the highest priority and the same And selecting the N2 entity sub-devices, and indicating, for each of the N2 entity sub-devices, a ratio of the used weights to the total used weights of the N2 entity sub-devices, Processing the data requested by the data processing instruction.
  • the receiver is specifically configured to receive a data processing instruction from an application
  • the distribution manager is specifically configured to: select, from the N1 entity sub-devices, the N2 entity sub-devices with the highest priority, and indicate the selected N2 entity sub-devices Data processing based on data processing instructions;
  • the distribution manager is specifically configured to: select, from the N1 entity sub-devices, N2 entity sub-devices with the highest usage priority and not currently used by the application; and indicate the selected N2
  • the entity sub-device performs data processing based on the data processing instruction;
  • the distribution manager is specifically configured to: obtain an application priority of the N1 entity sub-devices by the application, if the application uses a priority of the N2 physical sub-devices among the N1 physical sub-devices The highest and the same, the N2 entity sub-devices are selected, and each of the N2 entity sub-devices is instructed to occupy the total used weight of the N2 entity sub-devices according to the used weights thereof.
  • the ratio of processing the data requested by the data processing instruction is specifically configured to: obtain an application priority of the N1 entity sub-devices by the application, if the application uses a priority of the N2 physical sub-devices among the N1 physical sub-devices The highest and the same, the N2 entity sub-devices are selected, and each of the N2 entity sub-devices is instructed to occupy the total used weight of the N2 entity sub-devices according to the used weights thereof.
  • the ratio of processing the data requested by the data processing instruction is specifically configured to: obtain an
  • the virtual parent device is a virtual network card, and the N1 entity child devices are N1 physical network cards; or the virtual parent device is a virtual sound card, The N1 entity sub-devices are N1 physical sound cards; or the virtual parent device is a virtual graphics card, and the N1 entity sub-devices are N1 physical graphics cards; or the virtual parent device is a virtual printer, and the N1 The entity sub-device is N1 physical printers.
  • the virtual parent device is deployed in the cloud terminal device, after the virtual parent device receives the first data processing instruction; the virtual parent device is deployed in the cloud terminal device according to the setting policy or Selecting N2 entity sub-devices from the N1 entity sub-devices connected to the cloud terminal device, instructing the N2 entity sub-devices to perform data processing based on the first data processing instruction, the first virtual parent device and the N2 entity sub-sub
  • the device type is the same.
  • the virtual parent device Since the virtual parent device that can be connected to the online state is introduced, the virtual parent device manages the entity sub-devices of the same type, thereby facilitating dynamic switching of multiple sub-devices of the same type; and when N2 is greater than 1, Simultaneous use of multiple physical sub-devices of the same type, and the virtual parent device acts as an intermediate management node, and the application may not sense the state of the physical sub-device, thereby facilitating the plug-and-play of the newly connected entity sub-device of the cloud terminal device. . visible. Based on the foregoing technical solution, the flexibility of using multiple functional devices of the same type is enhanced when the cloud terminal device can connect multiple functional devices of the same type (such as multiple network cards or multiple sound cards or multiple graphics cards). DRAWINGS
  • FIG. 1 is a schematic flowchart of a method for controlling a management device according to an embodiment of the present invention
  • FIG. 2a to FIG. 2c are schematic diagrams showing deployment of several virtual parent devices and entity sub-devices according to an embodiment of the present invention
  • FIGS.d, 2-g ⁇ 2-i are schematic diagrams of the deployment of several virtual mother sound cards and entity sound card provided by the embodiments of the present invention.
  • Figure 2-e is a schematic diagram of the configuration of the used priority of the physical sub-sound card provided by the embodiment of the present invention One by one;
  • FIG. 2 is a schematic diagram of a configuration procedure of an application program for an entity sub sound card according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a cloud terminal device according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a virtual parent device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another cloud terminal device according to an embodiment of the present invention. detailed description
  • the embodiment of the invention provides a method for controlling a management device and related devices, so as to enhance the use of multiple functional devices when the cloud terminal device can connect multiple functional devices of the same type (such as multiple network cards or multiple sound cards). Flexibility.
  • the method for controlling the management device may include: receiving, by the virtual parent device deployed in the cloud terminal device, a data processing instruction; selecting, from the N1 entity sub-devices according to the setting policy N2 entity sub-devices, and instructing the N2 entity sub-devices to perform data processing based on the foregoing data processing instruction, where the virtual parent device and the N2 entities are
  • FIG. 1 is a schematic diagram of a method for controlling a management device according to an embodiment of the present invention. As shown in FIG. 1, a method for controlling a management device provided by an embodiment of the present invention may include the following content:
  • the virtual parent device deployed in the cloud terminal device (which may be referred to as a first virtual parent device for convenience of reference) receives data processing instructions (which may be referred to as a first data processing instruction for convenience of reference).
  • the first virtual parent device can receive the data processing instruction issued by each application. It can be understood that, for each application that issues the data processing instruction, the first virtual parent device is considered to be a physical device.
  • the cloud terminal device may be a PC or other type of computer device.
  • a processor in a cloud terminal device can execute a particular code to present a virtual parent device. a physical device, and instructing the N2 entity sub-devices to perform data processing based on the first data processing instruction,
  • N2 is a positive integer (for example, N1 is a positive integer greater than 1), and N1 is greater than or equal to N2.
  • the above N1 is shown in Figure 2-a, Figure 2-b, and Figure 2-c.
  • Figure 2-a shows a scenario in which an entity sub-device is deployed in a cloud terminal device, that is, the entity sub-device may be a cloud terminal.
  • a part of the device, such as an entity child device, may be a network card, a sound card, a graphics card, or the like.
  • the entity sub-device is not deployed in the cloud terminal device, but is connected to the cloud terminal device, that is, the entity sub-device may not be part of the cloud terminal device, for example, the entity sub-device may be An external device such as a printer.
  • the entity sub-devices are deployed in the cloud terminal device, and some of the entity sub-device cloud terminal devices are connected.
  • the application can access the same physical child device as the virtual parent device through the virtual parent device.
  • the virtual parent device may have a peripheral universal access interface that is identical to the same type of entity child device, in order to facilitate use by other applications, for each application that issues data processing instructions, virtual
  • the parent device is treated as the same type of physical device, for example, for the need
  • the virtual network card is considered to be a physical network card.
  • the virtual NIC is considered a physical sound card.
  • the virtual NIC is considered a physical graphics card.
  • a virtual printer is considered a physical printer, and so on.
  • the virtual parent device can even support being simultaneously opened or even used by multiple other applications; the virtual parent device can even open multiple entity sub-devices of the same type and use them at the same time.
  • the virtual parent device may even merge the data requested by the multiple application requests to obtain merged data, and then instruct the N1 entities.
  • the N2 entity sub-devices selected by the sub-device continue to process the merged data.
  • the virtual parent device may perform sound mixing processing on the audio data requested by the plurality of application programs, and then instruct the N2 selected from the N1 sound cards.
  • the sound card performs audio decoding and playback on the mixed processing data. It can be seen that the application can smoothly implement the calling of the same type of physical device by calling the virtual parent device.
  • the virtual parent device in the embodiments of the present invention is basically not responsible for implementing the data processing function of the same type of entity sub-device, and the virtual parent device is mainly responsible for scheduling and managing the same type of entity sub-device.
  • a virtual network card may not be responsible for implementing data uploading and downloading functions of a physical network card, but is mainly responsible for scheduling and managing one or more physical network card operations under it.
  • the virtual sound card may not be responsible for implementing the audio data decoding function of the physical sound card, but is mainly responsible for scheduling and managing one or more physical sound card operations under it.
  • the virtual graphics card may not be responsible for implementing the video data encoding and decoding function of the physical graphics card, but is mainly responsible for scheduling and managing one or more physical graphics cards under it.
  • the virtual printer may not be responsible for implementing the printing function of the physical printer, but is mainly responsible for scheduling and managing the work of one or more physical printers under it, and other device type scenarios are like this, no longer here -
  • the foregoing setting policy may be various. Therefore, the manner in which the first virtual parent device selects N2 entity sub-devices from among N1 entity sub-devices according to the setting policy may also be various. Entity child device.
  • the first virtual parent device may also select one or more parameters from among the N1 entity sub-devices by using one or more parameters, where one or more parameters referenced by the first virtual parent device - - may include at least one of the following parameters: the used priority of the entity sub-device, the used weight of the entity sub-device, the usage priority of the application that issues the data processing instruction to each entity sub-device, and the like.
  • the virtual parent device may be dynamically or statically configured (which may be configured or self-configured based on user instructions). Each application uses the usage priority of each entity sub-device (of course, some or all of the configurations may be defaulted by default.
  • the used priority and/or the used weight of each entity sub-device can also be dynamically or statically configured (of course, some or all of them can be configured by default).
  • the configuration information can be maintained by the corresponding virtual parent device, and the virtual parent device can be maintained, for example, in a table or in other forms.
  • the first virtual parent device selects the N2 entity sub-devices from the N1 entity sub-devices according to the setting policy, and the method includes: the first virtual parent device acquiring the used priority corresponding to the N1 entity sub-devices respectively. Selecting the N2 entity sub-devices with the highest priority from among the N1 entity sub-devices. It can be understood that when N2 is equal to 1, it indicates that one entity sub-device with the highest priority is selected from the N1 entity sub-devices; when N2 is equal to 2, it indicates that it is from the N1 entity sub-devices. The two entity sub-devices with the highest priority are selected, and so on.
  • the first virtual parent device selects the N2 entity sub-devices from the N1 entity sub-devices according to the setting policy, and the method includes: the first virtual parent device acquiring the used priority corresponding to the N1 entity sub-devices respectively; The N2 entity sub-devices with the highest priority and not currently used are selected from the N1 entity sub-devices. It can be understood that when N2 is equal to 1, it indicates that one entity sub-device that is currently unused and has the highest priority is selected from among the N1 entity sub-devices; when N2 is equal to 2, it indicates that The two entity sub-devices with the highest priority that are currently unused are selected from the N1 entity sub-devices, and so on.
  • the first virtual parent device selects the N2 entity sub-devices from the N1 entity sub-devices according to the setting policy, and the method includes: the first virtual parent device from the N1 Among the entity sub-devices, the first application uses the N2 entity sub-devices with higher priority. It can be understood that when N2 is equal to 1, it indicates that one entity sub-device with the highest priority is selected from the N1 entity sub-devices; when N2 is equal to 2, it indicates that it is from the N1 entity. Among the sub-devices, the first application uses the 2 entity sub-devices with the highest priority, and so on.
  • the first virtual parent device selecting the N2 entity sub-devices from the N1 entity sub-devices according to the setting policy may include: The device selects from the N1 entity sub-devices that the first application uses the N2 entity sub-devices with higher priority and are not currently used. It can be understood that when N2 is equal to 1, it indicates that one of the N1 entity sub-devices is selected, and the first application uses the highest priority one of the currently unused entity sub-devices. When N2 is equal to 2, Indicates that two entity sub-devices with the highest priority are currently selected from the N1 entity sub-devices, and so on.
  • the N1 entity child devices are N1 physical network cards; or, if the first virtual parent device is a virtual sound card, the N1 entities are The device is an N1 physical sound card; or, if the first virtual parent device is a virtual graphics card, the N1 physical child devices are N1 physical graphics cards; or, if the first virtual parent device is a virtual printer, the N1 entities are The device is N1 physical printers.
  • the first virtual parent device and the above N1 entity child devices have the same device type, and so on.
  • the virtual mother graphics card ie, the virtual parent device
  • the virtual graphics card can schedule the physical graphics card S1 to process the related data requested by the application A according to the configuration information, because the application Program A uses the physical graphics card S1 with the highest priority.
  • the virtual graphics card can schedule the physical graphics card S1 according to the configuration information to process the related data requested by the application A, and the virtual graphics card can schedule the physical graphics card S2 according to the configuration information.
  • the related data requested by the application A is processed because the application A uses the physical graphics card S1 with a higher priority than the application B, and the application B uses the physical graphics card S2 with a higher priority than the application A. It is also assumed that, at the same time, the application B and C need to use the graphics card, the virtual mother graphics card can schedule the physical graphics card S1 to process the relevant data requested by the application B according to the configuration information, and schedule the physical graphics card S2 to process the application C request processing.
  • the virtual parent device may dynamically or periodically detect the working status of each entity sub-device under its jurisdiction, where the working state of the entity sub-device includes: an operating state (such as an idle state or a busy state), Stop state, etc. If an entity sub-device is in the stop state, it indicates that the entity sub-device is currently faulty or the entity sub-device is not currently connected to the cloud terminal device deployed by the virtual parent device.
  • an operating state such as an idle state or a busy state
  • Stop state etc. If an entity sub-device is in the stop state, it indicates that the entity sub-device is currently faulty or the entity sub-device is not currently connected to the cloud terminal device deployed by the virtual parent device.
  • the used weights of the same type of entity sub-devices managed by the virtual parent device configurator may be in the range of 0% to 100%.
  • the used application weights of the several physical sub-devices may be determined according to the used weights of the several physical sub-devices.
  • the proportion of requests to process data Assume that an application has the same priority and highest priority for N entity sub-devices (or the application priority of the N application sub-devices is not configured, and the N entity sub-devices are used with the same priority) And highest), the used weights of the N entity sub-devices are Dl%, D2%, ... Dn%, respectively; assume that the entity sub-device n in the N entity sub-devices (which is used with a weight of Dn%) The proportion of data processed by the application being processed is represented by dn.
  • the proportion of data requested by the application processed by other entity sub-devices may be analogized.
  • a scenario in which a virtual mother printer manages multiple entity sub-printers is possible.
  • multiple network printers may be connected to the same network.
  • only one printer can be selected for printing at the same time. If you need to print a file of 1000 pages, the efficiency of one printer is 20 pages per minute, and there are 10 identical printers in the network.
  • only one printer can be selected for printing at the same time, and the printing time is about 50 minutes. At the same time, only one printer works, other printers are idle, and resource utilization is low.
  • the virtual mother printer can configure each entity sub-printer to set the priority of the 10 physical sub-printers to be the same.
  • the virtual mother printer occupies the total of the 10 physical sub-printers according to the used weight of each entity sub-printer. The weight of the weight, for example, the higher the printing efficiency is, the higher the usage weight is set.
  • the content to be printed is divided into 10 copies, and the virtual mother printer instructs each entity sub-printer to print the corresponding portion of the content to be printed. Since multiple physical sub-printers are simultaneously mobilized, printing speed can be greatly accelerated. Other scenarios and so on.
  • the priority of the usage priority of an application to the entity sub-device may be, for example, 1 to 100, wherein, for example, a smaller value indicates a higher priority.
  • applications with higher priority may even preempt the device resources of applications that use lower priority.
  • the entity sub-device can be used together (for example, the virtual parent device can mix the data requested by the multiple applications to obtain mixed data, and then indicate the certain The entity sub-device processes the mixed data), or, for multiple applications with the same priority for the use of an entity sub-device, the first-come-first-served principle can also be used to determine that the application uses the sub-device of the entity.
  • the entity sub-device is exclusively used by an application at the same time. If an entity sub-device is currently used by the application A, even if the application B uses the entity sub-device with higher priority than the application A, due to the entity The child device is currently in the used state (busy state), therefore, the virtual parent device cannot currently schedule application B to use the entity child device, that is, the data processing instruction from application B is not assigned to the entity child device for processing. , the virtual parent device can allocate data processing instructions from application B Other sub-devices entity (wherein, for example, the other entity is a sub-device is not in use and application B using the highest priority sub-entity device) for processing.
  • the reference priority of the application to the usage priority of the entity sub-device is higher than the used priority of the entity sub-device.
  • the virtual parent device may prioritize the application priority of the application to each entity child device, and select the entity sub-device with the highest priority to process the data processing.
  • the instruction if the application has the same priority and the highest priority for the use of several entity sub-devices, the one of the several entity sub-devices may be selected to be processed by the highest-priority entity sub-device. - - Instructions.
  • the existing applications A, B need to use the physical child devices governed by the virtual parent device X, where the virtual parent device X governs the entity child devices xl, x2, x3.
  • the priority order is xl, x2, x3, and application B does not set the usage priority of the entity sub-devices xl, x2, x3 (not set)
  • application B has the same priority for the use of the physical child devices xl, ⁇ 2, and ⁇ 3 and is the lowest usage priority.
  • the virtual parent device X can directly allocate the entity child device x1 to the application A.
  • the entity child device x2 is assumed to be exclusive to the application A; it is assumed that the entity child devices x1, x2, and x3 are set to be used.
  • the virtual parent device X allocates the entity sub-devices of the entity sub-devices x2 and x3 that are used with higher priority to the application B; if the entity sub-devices x1, x2, and x3 are not set to be used ( When not set, the default entity sub-devices xl, x2, x3 are used with the same priority and the lowest used priority), then the virtual parent device X can use the entity sub- Preparation of x2 and x3 is assigned to any one of the application B use.
  • the reference priority of the application to the priority of the entity sub-device may be lower than the used priority of the entity sub-device, and in this scenario, for example,
  • the virtual parent device may prioritize the used priority of each entity sub-device, and select the entity sub-device with the highest priority to process the data processing instruction, if the The entity sub-devices are used with the same priority and highest, and the application can select the entity sub-devices with the highest priority to process the data processing instruction.
  • a virtual parent device can support multiple entity child devices under its jurisdiction to be used by an application at the same time, wherein each entity child device can be supported by multiple applications at the same time. Use, or only support each entity child device to be used exclusively by an application at the same time.
  • the virtual parent device may also allow only a plurality of entity child devices under its jurisdiction to have only one of the entity child devices available to one or more applications at a time.
  • the virtual parent device may implement the application pair by modifying the used priority of each entity child device and/or modifying the application prioritization of the application to the entity child device.
  • - Use of any physical child device.
  • the working state of the entity sub-device that can be used by the application should be in the running state (such as idle state or busy state), the entity sub-device in the stopped state cannot be used by the application, and the virtual parent device can learn the entities through monitoring.
  • the working state of the device is therefore advantageous for plug and play of the entity sub-device.
  • the virtual parent device After the cloud terminal device is connected to the cloud desktop, the virtual parent device is connected to the cloud desktop. Therefore, when the cloud desktop needs to use the temporary device, the temporary device is inserted into the cloud terminal device, and the virtual parent device can discover the inserted temporary device through state monitoring. These temporary devices are easy to use.
  • the virtual parent device is deployed in the cloud terminal device, after the virtual parent device receives the first data processing instruction; the virtual parent device is deployed in the cloud terminal device according to the setting policy or
  • the N2 entity sub-devices are selected from the N1 entity sub-devices connected to the cloud terminal device, and the N2 entity sub-devices are instructed to perform data processing according to the first data processing instruction, where the first virtual parent device and the N2 entity sub-devices are The device type is the same.
  • the virtual parent device Since the virtual parent device that can be connected to the online state is introduced, the virtual parent device manages the entity sub-devices of the same type, thereby facilitating dynamic switching of multiple sub-devices of the same type; and when N2 is greater than 1, Simultaneous use of multiple physical sub-devices of the same type, and the virtual parent device acts as an intermediate management node, and the application may not sense the state of the physical sub-device, thereby facilitating the plug-and-play of the newly connected entity sub-device of the cloud terminal device. . visible. Based on the above technical solution, the flexibility of using multiple functional devices of the same type is enhanced when the cloud terminal device can connect multiple functional devices of the same type (such as multiple network cards or multiple sound cards or multiple graphics cards).
  • a virtual mother sound card is deployed in the cloud terminal device, and the virtual mother sound card can manage the entity sound card deployed in the cloud terminal device, wherein, in the figure, the entity sound card A outputs sound signals to the sound, and the entity The sound card B provides an access interface of the microphone and the earphone, and the entity sound card C is temporarily not inserted into the cloud terminal device.
  • the H-free virtual sound card is configured with the priority of the physical sub-sound card A, the entity sub-sound card B, and the entity sub-sound card C.
  • the entity sub-sound card C is the highest, the entity sub-sound card is the second, and the entity sub-sound card is B is the lowest.
  • the virtual mother card is configured with the priority of the music player application S1 for each entity sub-sound card, the entity sub-sound card A is the highest, the entity sub-sound card is B, the entity is - - Sound card C is the lowest.
  • the virtual mother card is also configured with the priority of the IP phone application S2 for each entity sub-sound card.
  • the entity sub-sound card C is the highest, the entity sub-sound card B is the second, and the entity sub-sound card A is the lowest.
  • the virtual mother card when the virtual mother card receives the data processing instruction from the music player application S1, the virtual mother card can select the entity sound card A according to the priority of the use of the entity sound card by the music player application S1, and indicate the entity child.
  • the sound card A performs data processing based on the S1 data processing instruction from the music player application.
  • the entity sub-sound card A can play, for example, some audio files that are commanded by the above data processing instructions.
  • the solid line in Figure 2-d indicates the channel that is working, and the dashed line indicates the channel that is not working.
  • the virtual female sound card receives the data processing instruction from the IP telephone application S2
  • the virtual female sound card selects the physical sub-sound card B according to the use priority of each entity sub-sound card according to the IP telephone application S2 ( Since the highest priority entity sub-sound card C is not currently inserted into the cloud terminal device, the entity sub-sound card B is instructed to perform data processing based on the data processing instruction from the IP telephony application S2.
  • the entity sub-sound card B can, for example, play the phone sound indicated by the above data processing instruction, and can use the microphone to collect local voice and the like.
  • the solid line in Figure 2-g indicates the channel that is working, and the dotted line indicates the channel that is not working.
  • the entity sub-sound card C is newly inserted into the cloud terminal device. Since the IP phone application S2 has a higher priority for the use of the entity sub-sound card C, the virtual mother-sound card can suspend the entity sub-sound card B pair.
  • the processing of the data processing instructions from the IP telephony application S2 is instead directed to the processing of the data processing instructions from the IP telephony application S2 by the physical sub-sound card C.
  • the solid line in Figure 2-h indicates the channel that is working, and the dashed line indicates the channel that is not working.
  • the virtual mother card when the virtual mother card is selected to select the processing of the data processing instruction from the IP phone application S2 by the entity sound card B, the entity voice card B is processed in the same session and the other entities are not replaced.
  • the sub sound card that is, even if the midway entity sub sound card c is inserted into the cloud terminal device, the virtual mother card still indicates the processing of the data processing instruction from the IP phone application S2 by the entity sub sound card B.
  • the virtual mother card receives the data processing instruction from the IP phone application S2 and the data processing instruction from the music player application S1, the virtual mother card can be used according to the music player application S1 for each entity.
  • the priority of the sub-sound card is selected, the entity sub-sound card A is selected, and the entity sub-sound card A is instructed to perform data processing based on the S1 data processing instruction from the music player application.
  • the body sound card A can, for example, play certain audio files that are commanded by the above data processing instructions.
  • the entity sub-sound card B (because the highest priority entity sub-sound card C is not currently inserted into the cloud terminal device), indicating that the entity sub-sound card B performs data processing based on the data processing instruction from the IP telephony application S2, for example, the entity sub-sound card B can play the above data.
  • the voice of the phone indicated by the instruction is processed, and the local voice is collected by using a microphone.
  • the solid line in Figure 2-i indicates the channel that is working, and the dashed line indicates the channel that is temporarily not working.
  • Figure 2-i shows that the virtual female sound card can indicate that multiple entity sound cards work simultaneously. Cloud terminal devices can implement several relatively independent functions at the same time and do not work together.
  • the management of the entity sub-sound card by the virtual mother card is taken as an example, the management of the virtual daughter card to the entity sub-graphic card, and the virtual mother printer to the entity sub-printer.
  • the management, the virtual parent NIC management of the physical subnet card, and the like can be deduced.
  • an embodiment of the present invention further provides a cloud terminal device 300.
  • the virtual terminal device 310 is deployed in the cloud terminal device 300.
  • the virtual parent device 310 may include: a receiver 311 and a distribution manager 312.
  • the receiver 311 is configured to receive a data processing instruction.
  • An entity sub-device and instructing the selected N2 entity sub-devices to perform data processing based on a data processing instruction, where the N1 and N2 are positive integers, the N2 is less than or equal to the N1, and the virtual parent device 310 and the N2
  • the device type of the entity sub-device is the same, and the N1 entity sub-devices are used in some embodiments of the present invention.
  • the distribution manager 312 may be specifically configured to obtain the used priority corresponding to the N1 entity sub-devices respectively; Among the entity sub-devices, the N2 entity sub-devices with the highest priority are selected, and the selected N2 entity sub-devices are instructed to perform data processing based on the data processing instructions;
  • the distribution manager 312 may be specifically configured to: obtain a used priority corresponding to the N1 entity sub-devices respectively; and select, from the N1 entity sub-devices, the N2 that is used with the highest priority and is not currently used. Entity sub-devices, and instructing the selected N2 entity sub-devices to perform data processing based on data processing instructions;
  • the distribution manager 312 may be specifically configured to obtain the used priority corresponding to the N1 entity sub-devices respectively, if the N2 entity sub-devices of the N1 entity sub-devices are used with the highest priority and the same And selecting the N2 entity sub-devices, and instructing each of the N2 entity sub-devices to process the data according to a ratio of the used weights to the total used weights of the N2 entity sub-devices. Process the data requested by the instruction.
  • the receiver 311 is specifically configured to receive data processing instructions from an application
  • the distribution manager 312 is specifically configured to: select, from the N1 entity sub-devices, the N2 entity sub-devices with the highest priority of the application, and indicate that the selected N2 entity sub-devices are based on data processing. Instruction for data processing;
  • the distribution manager 312 may be specifically configured to: select, from the N1 entity sub-devices, N2 entity sub-devices with the highest usage priority and not currently used by the application; and indicate the selected N2 The entity sub-device performs data processing based on the data processing instruction;
  • the distribution manager 312 may be specifically configured to obtain an application priority of the N1 entity sub-devices, where the application has the highest priority for the N2 entity sub-devices among the N1 entity sub-devices. And the same, the N2 entity sub-devices are selected, and each of the N2 entity sub-devices is instructed to be processed according to the ratio of the used weights to the total used weights of the N2 entity sub-devices. The data requested by the above data processing instructions.
  • the virtual parent device 310 is a virtual network card, and the N1 physical child devices are N1 physical network cards; or the virtual parent device 310 is a virtual sound card, and the N1 physical child devices are N1 physical sound cards.
  • the virtual parent device 310 is a virtual graphics card, and the N1 physical child devices are N1 physical graphics cards; or, the virtual parent device 310 is a virtual printer, and the N1 physical child devices are N1 physical printers.
  • the virtual parent device is deployed in the cloud terminal device 300 in this embodiment, after the virtual parent device receives the first data processing instruction; the virtual parent device is deployed in the cloud terminal device or in accordance with the setting policy.
  • N2 entities are selected among the N1 entity sub-devices connected to the cloud terminal device. - - the device, instructing the N2 entity sub-devices to perform data processing based on the first data processing instruction, the first virtual parent device being the same as the device type of the N2 entity sub-devices.
  • the virtual parent device Since the virtual parent device that can be connected to the online state is introduced, the virtual parent device manages the entity sub-devices of the same type, thereby facilitating dynamic switching of multiple sub-devices of the same type; and when N2 is greater than 1, Simultaneous use of multiple physical sub-devices of the same type, and the virtual parent device acts as an intermediate management node, and the application may not sense the state of the physical sub-device, thereby facilitating the plug-and-play of the newly connected entity sub-device of the cloud terminal device. . visible. Based on the foregoing technical solution, the flexibility of using multiple functional devices of the same type is enhanced when the cloud terminal device can connect multiple functional devices of the same type (such as multiple network cards or multiple sound cards or multiple graphics cards).
  • an embodiment of the present invention further provides a virtual parent device 400.
  • the virtual parent device 400 is deployed in a cloud terminal device.
  • the virtual parent device 400 may include: a receiver 410 and a distribution manager 420.
  • the receiver 410 is configured to receive a data processing instruction.
  • An entity sub-device and instructing the selected N2 entity sub-devices to perform data processing based on the data processing instruction, wherein the N1 and N2 are positive integers, the N2 is less than or equal to the N1, and the virtual parent device 400 and the N2
  • the device type of the entity sub-device is the same, and the N1 entity sub-devices are used in the embodiment of the present invention.
  • the distribution manager 420 may be specifically configured to obtain the used priority corresponding to the N1 entity sub-devices respectively; Among the entity sub-devices, the N2 entity sub-devices with the highest priority are selected, and the selected N2 entity sub-devices are instructed to perform data processing based on the data processing instructions;
  • the distribution manager 420 may be specifically configured to: obtain a used priority corresponding to the N1 entity sub-devices respectively; and select, from the N1 entity sub-devices, the N2 that is used with the highest priority and is not currently used. Entity sub-devices, and instructing the selected N2 entity sub-devices to perform data processing based on data processing instructions;
  • the distribution manager 420 may be specifically configured to: obtain the used priority corresponding to the N1 entity sub-devices respectively, if the N2 entity sub-devices of the N1 entity sub-devices are used with the highest priority and the same, Selecting the above N2 entity sub-devices, and instructing the above N2 entity sub-sets -
  • Each physical sub-device in the standby processes the data requested by the data processing instruction according to the ratio of the used weight to the total used weight of the N2 entity sub-devices.
  • the receiver 410 may be specifically configured to receive data processing instructions from an application
  • the distribution manager 420 is specifically configured to: select, from the N1 entity sub-devices, the N2 entity sub-devices with the highest priority of the application, and indicate that the selected N2 entity sub-devices are based on data processing. Instruction for data processing;
  • the distribution manager 420 may be specifically configured to: select, from the N1 entity sub-devices, the N2 entity sub-devices with the highest usage priority and not currently used by the application; and indicate the selected N2 The entity sub-device performs data processing based on the data processing instruction;
  • the distribution manager 420 may be specifically configured to: obtain an application priority of the N1 entity sub-devices by the application, if the application has the highest priority for the N2 entity sub-devices among the N1 entity sub-devices. And the same, the N2 entity sub-devices are selected, and each of the N2 entity sub-devices is instructed to be processed according to the ratio of the used weights to the total used weights of the N2 entity sub-devices. The data requested by the above data processing instructions.
  • the virtual parent device 400 is a virtual network card, and the N1 physical child devices are N1 physical network cards; or the virtual parent device 400 is a virtual sound card, and the N1 physical child devices are N1 physical sound cards.
  • the virtual parent device 400 is a virtual graphics card, and the N1 physical child devices are N1 physical graphics cards; or, the virtual parent device 400 is a virtual printer, and the N1 physical child devices are N1 physical printers.
  • the virtual parent device 400 is deployed in the cloud terminal device in this embodiment, after the virtual parent device receives the first data processing instruction; the virtual parent device is deployed in the cloud terminal device or in accordance with the setting policy.
  • the N2 entity sub-devices are selected from the N1 entity sub-devices connected to the cloud terminal device, and the N2 entity sub-devices are instructed to perform data processing according to the first data processing instruction, where the first virtual parent device and the N2 entity sub-devices are The device type is the same.
  • the virtual parent device Since the virtual parent device that can always be in the online state is introduced, the virtual parent device manages the entity devices of the same type, so - - It is beneficial to implement dynamic switching of multiple sub-devices of the same type; and when N2 is greater than 1, simultaneous use of multiple sub-devices of the same type can be realized, and the virtual parent device acts as an intermediate management node, and the application can not perceive The state of the entity sub-device, which is beneficial to realize the plug-and-play of the cloud terminal device new connection entity sub-device. visible. Based on the foregoing technical solution, the flexibility of using multiple functional devices of the same type is enhanced when the cloud terminal device can connect multiple functional devices of the same type (such as multiple network cards or multiple sound cards or multiple graphics cards).
  • FIG. 5 is a schematic structural diagram of a user equipment according to the present invention.
  • the user equipment 500 of this embodiment includes at least one bus 501, at least one processor 502 connected to the bus 501, and a bus 501.
  • the processor 502 calls the code stored in the memory 503 for presenting the virtual parent device through the bus 501, wherein the virtual parent device is configured to receive a data processing instruction; and from the N1 entity child devices according to the setting policy.
  • the N2 entity sub-devices are selected, and the selected N2 entity sub-devices are instructed to perform data processing according to the data processing instruction, where the N1 and N2 are positive integers, and the N2 is less than or equal to the N1, and the virtual parent device 310
  • the N1 entity sub-devices are deployed in the cloud terminal device or connected to the cloud terminal device, and are the same as the device type of the N2 entity sub-devices.
  • the N2 entity sub-devices of the N1 entity sub-devices are used with the highest priority and the same, the N2 entity sub-devices are selected, and each of the N2 entity sub-devices is instructed, Processing the above according to the proportion of the used weights of the above-mentioned N2 entity sub-devices - - The data requested by the data processing instruction.
  • the data processing instructions are from an application.
  • the N2 entity sub-devices having the highest priority; and indicating that the selected N2 entity sub-devices perform data processing based on the data processing instruction; the N2 entity sub-devices with the highest priority and not currently used; and indicating the selected The above N2 entity sub-devices perform data processing based on data processing instructions;
  • the virtual parent device may obtain the application priority of the N1 entity sub-devices of the application, and if the application has the highest priority and the same priority for the N2 entity sub-devices among the N1 entity sub-devices, the foregoing is selected. N2 entity sub-devices, and instructing each of the N2 entity sub-devices to process the processing request of the data processing instruction according to the ratio of the used weight to the total used weight of the N2 entity sub-devices The data.
  • the virtual parent device is a virtual network card, and the N1 entity child devices are N1 physical network cards; or the virtual parent device is a virtual sound card, and the N1 entity child devices are N1 physical sound cards.
  • the virtual parent device is a virtual graphics card, and the N1 entity child devices are N1 physical graphics cards; or, the virtual parent device is a virtual printer, and the N1 entity child devices are N1 physical printers.
  • the virtual terminal device is deployed in the cloud terminal device 500, after the virtual parent device receives the first data processing instruction; the virtual parent device is deployed in the cloud terminal device or in accordance with the setting policy.
  • the N2 entity sub-devices are selected from the N1 entity sub-devices connected to the cloud terminal device, and the N2 entity sub-devices are instructed to perform data processing according to the first data processing instruction, where the first virtual parent device and the N2 entity sub-devices are The device type is the same.
  • the virtual parent device Since the virtual parent device that can be connected to the online state is introduced, the virtual parent device manages the entity sub-devices of the same type, thereby facilitating dynamic switching of multiple sub-devices of the same type; and when N2 is greater than 1, Multiple - - Simultaneous use of type entity sub-devices, and the virtual parent device acts as an intermediate management node, and the application may not perceive the state of the entity sub-devices, thus facilitating the plug-and-play of the newly connected entity sub-devices of the cloud terminal device. visible. Based on the foregoing technical solution, the flexibility of using multiple functional devices of the same type is enhanced when the cloud terminal device can connect multiple functional devices of the same type (such as multiple network cards or multiple sound cards or multiple graphics cards).
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the method for controlling the management device described in the foregoing method embodiments.
  • the disclosed apparatus can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the above units is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or by using a software functional unit. - - Formal implementation.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了控制管理设备的方法和相关设备。其中一种控制管理设备的方法,可包括:云终端设备中部署的虚拟母设备接收数据处理指令;虚拟母设备根据设定策略从N1个实体子设备之中选出N2个实体子设备,并指示选出的N2个实体子设备基于数据处理指令进行数据处理,其中,N1和N2为正整数,N2小于或等于N1,虚拟母设备与N2个实体子设备的设备类型相同,N1个实体子设备部署于云终端设备之中或与云终端设备连接。本发明实施例提供的技术方案有利于在云终端设备能够连接同类型的多个功能设备(如多个网卡或多个声卡等)时,提升多个同类型功能设备的使用灵活性。

Description

一 一 控制管理设备的方法和相关设备
本申请要求于 2013年 07月 24 日 提交中 国专利局、 申请号为 201310313835.8, 发明名称为 "控制管理设备的方法和相关设备" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信技术领域, 具体涉及一种控制管理设备的方法和相关设 备。 背景技术
近年来, 由于云技术的迅猛发展, 带动了虚拟化技术和云终端产品的快速 发展。 云终端产品使用云协议连接云服务器, 云服务器会为云终端产品提供一 个虚拟个人计算机 ( PC, Personal Computer )。 云桌面可根据使用者需求来分 配相应的硬件资源。
与传统的 PC相比, 具有体积小、 耗电量小、 安全性高、 可靠性高、 资源 利用效率高、 数据可在云端服务器处理等优点。 云计算在网络连接可靠、 稳定 的环境下可能逐步替换 PC。
在云终端本地使用相应的云客户端软件连接远程的云服务器。对于云终端 连接的硬件设备, 必须在客户端与云服务器一同进行连接后才能使用。 目前由 于云协议的限制不能动态适配云终端的相关硬件设备,如有多个相同设备存在 时也只能选择连接其中一个, 能使用的也只能是云终端连接的设备。如果云终 端本地端外设发生改变, 则必须重新连接云服务器后才能使用, 这严重影响客 户的体马全。
现有方案是釆用实体设备进行连接的方式,云终端当前连接了什么设备就 只能使用当前连接的设备。现以声卡为例进行实际问题的分析。假设目前云终 端板卡自带声卡 2张, 标记为声卡 A、 声卡 B, USB声卡标记为声卡。。 在连 接云服务器虚拟主机时相同设备只能连接一个, 对于声卡 、 声卡 B都存在 时只能连接其中 1个,换句话说在同 1个时间只能使用 1个声卡设备, 不能同 时使用。 - - 举例来说, 当用户在看电影的时候, 云终端的显卡和声卡 A通过连接线将 视频和声音信号分别传输给电视和音响, 此时可以获得完美的视听享受。 此时 他同事或者朋友通过在线即时通讯软件给他打电话时, 他需使用话筒和耳麦, 但是声卡 A没提供相关的接口, 只用通过云终端的声卡 B来实现, 而现在声卡 B 处于未连接启用状态,现有技术中用户此时只能先断开云桌面, 重新选择声卡 B进行连接之后才能使用声卡 B。 发明内容
本发明实施例提供一种控制管理设备的方法和相关设备,以期在云终端设 备能够连接同类型的多个功能设备(如多个网卡或多个声卡等)时, 提升多个 同类型功能设备的使用灵活性。
本发明第一方面提供一种控制管理设备的方法, 可包括:
云终端设备中部署的虚拟母设备接收数据处理指令; 设备, 并指示选出的所述 N2个实体子设备基于数据处理指令进行数据处理, 其中, 所述 N1和 N2为正整数, 所述 N2小于或等于所述 N1 , 所述虚拟母设 备与所述 N2个实体子设备的设备类型相同, 所述 N1个实体子设备部署于所 述云终端设备之中或与所述云终端设备连接。
结合第一方面, 在第一种可能的实施方式中, 所述根据设定策略从 N1个 实体子设备之中选出 N2个实体子设备, 包括: 获取 N1个实体子设备分别对 应的被使用优先级; 从所述 N1 个实体子设备之中选出被使用优先级最高的 N2个实体子设备; 或者, 获取 N1个实体子设备分别对应的被使用优先级; 从所述 N1个实体子设备之中选出被使用优先级最高的且当前未被使用的 N2 个实体子设备。
结合第一方面,在第二种可能的实施方式中, 所述数据处理指令来自应用 程序, 其中, 所述根据设定策略从 N1个实体子设备之中选出 N2个实体子设 备, 包括: 从所述 N1个实体子设备之中选出所述应用程序使用优先级最高的 N2个实体子设备; 或者, 从所述 N1 个实体子设备之中选出所述应用程序的 使用优先级最高的且当前未被使用的 N2个实体子设备。 - - 结合第一方面, 在第三种可能的实施方式中, 所述根据设定策略从 N1个 实体子设备之中选出 N2个实体子设备, 并指示选出的所述 N2个实体子设备 基于数据处理指令进行数据处理, 包括: 获取 N1个实体子设备分别对应的被 使用优先级, 若所述 N1个实体子设备之中的 N2个实体子设备被使用优先级 最高且相同, 则选出所述 N2个实体子设备, 并指示所述 N2个实体子设备中 的每个实体子设备, 按照其被使用权重占所述 N2个实体子设备的总被使用权 重的比例, 处理所述数据处理指令所请求处理的数据。
结合第一方面, 在第四种可能的实施方式中,
所述数据处理指令来自应用程序, 其中, 所述根据设定策略从 N1个实体 子设备之中选出 N2个实体子设备, 并指示选出的所述 N2个实体子设备基于 数据处理指令进行数据处理, 包括: 获取所述应用程序对 N1个实体子设备的 使用优先级, 若所述应用程序对所述 N1个实体子设备之中的 N2个实体子设 备的使用优先级最高并且相同, 则选出所述 N2 个实体子设备, 并指示所述 N2个实体子设备中的每个实体子设备, 按照其被使用权重占所述 N2个实体 子设备的总被使用权重的比例, 处理所述数据处理指令所请求处理的数据。
结合第一方面或第一方面的第一种可能的实施方式或第一方面的第二种 可能的实施方式或第一方面的第三种可能的实施方式或第一方面的第四种可 能的实施方式, 在第五种可能的实施方式中, 所述虚拟母设备为虚拟网卡, 所 述 N1个实体子设备为 N1个实体网卡; 或, 所述虚拟母设备为虚拟声卡, 所 述 N1个实体子设备为 N1个实体声卡; 或, 所述虚拟母设备为虚拟显卡, 所 述 N1个实体子设备为 N1个实体显卡; 或, 所述虚拟母设备为虚拟打印机, 所述 N1个实体子设备为 N1个实体打印机。
本发明第二方面提供一种云终端设备,所述云终端设备中部署有虚拟母设 备, 所述虚拟母设备包括: 接收器, 用于接收数据处理指令; 实体子设备, 并指示选出的所述 N2个实体子设备基于数据处理指令进行数据 处理, 其中, 所述 N1和 N2为正整数, 所述 N2小于或等于所述 N1 , 所述虚 拟母设备与所述 N2个实体子设备的设备类型相同, 所述 N1个实体子设备部 一 一 结合第二方面, 在第一种可能的实施方式中,
所述分发管理器具体用于, 获取所述 N1个实体子设备分别对应的被使用 优先级; 从所述 N1个实体子设备之中选出被使用优先级最高的 N2个实体子 设备, 并指示选出的所述 N2个实体子设备基于数据处理指令进行数据处理; 或者, 所述分发管理器具体用于, 获取所述 N1个实体子设备分别对应的 被使用优先级; 从所述 N1个实体子设备之中选出被使用优先级最高的且当前 未被使用的 N2个实体子设备, 并指示选出的所述 N2个实体子设备基于数据 处理指令进行数据处理;
或者, 所述分发管理器具体用于, 获取所述 N1个实体子设备分别对应的 被使用优先级, 若所述 N1个实体子设备之中的 N2个实体子设备被使用优先 级最高且相同, 则选出所述 N2个实体子设备, 并指示所述 N2个实体子设备 中的每个实体子设备, 按照其被使用权重占所述 N2个实体子设备的总被使用 权重的比例, 处理所述数据处理指令所请求处理的数据。
结合第二方面, 在第二种可能的实施方式中,
所述接收器具体用于, 接收来自应用程序的数据处理指令;
其中, 所述分发管理器具体用于, 从所述 N1个实体子设备之中选出所述 应用程序使用优先级最高的 N2个实体子设备; 并指示选出的所述 N2个实体 子设备基于数据处理指令进行数据处理;
或者,
所述分发管理器具体用于, 从所述 N1个实体子设备之中选出应用程序的 使用优先级最高的且当前未被使用的 N2 个实体子设备; 并指示选出的所述 N2个实体子设备基于数据处理指令进行数据处理;
或者,
所述分发管理器具体用于, 获取应用程序对所述 N1个实体子设备的使用 优先级, 若所述应用程序对所述 N1个实体子设备之中的 N2个实体子设备的 使用优先级最高并且相同, 则选出所述 N2个实体子设备, 并指示所述 N2个 实体子设备中的每个实体子设备, 按照其被使用权重占所述 N2个实体子设备 的总被使用权重的比例, 处理所述数据处理指令所请求处理的数据。
结合第二方面或第二方面的第一种可能的实施方式或第二方面的第二种 可能的实施方式, 在第三种可能的实施方式中, 所述虚拟母设备为虚拟网卡, 所述 N1个实体子设备为 N1个实体网卡; 或, 所述虚拟母设备为虚拟声卡, 所述 N1个实体子设备为 N1个实体声卡; 或, 所述虚拟母设备为虚拟显卡, 所述 N1个实体子设备为 N1个实体显卡; 或, 所述虚拟母设备为虚拟打印机, 所述 N1个实体子设备为 N1个实体打印机。
由上可见, 本发明实施例中, 云终端设备中部署虚拟母设备, 当虚拟母设 备接收到第一数据处理指令之后; 虚拟母设备根据设定策略,从部署于上述云 终端设备之中或与上述云终端设备连接的 N1个实体子设备之中选出 N2个实 体子设备, 指示该 N2个实体子设备基于第一数据处理指令进行数据处理, 第 一虚拟母设备与上述 N2个实体子设备的设备类型相同。 由于引入了可一直处 于连接在线状态的虚拟母设备, 由虚拟母设备来管理同类型的各实体子设备, 故而有利于实现多个同类型实体子设备动态切换; 且当 N2大于 1时可实现多 个同类型实体子设备的同时使用, 并且, 虚拟母设备作为中间管理节点, 而应 用程序可以不感知实体子设备的状态,这样有利于实现云终端设备新连接实体 子设备的即插即用。 可见。 基于上述技术方案, 有利于在云终端设备能够连接 同类型的多个功能设备(如多个网卡或多个声卡或多个显卡等)时, 提升多个 同类功能设备使用的灵活性。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种控制管理设备的方法的流程示意图; 图 2-a~2-c是本发明实施例提供的几种虚拟母设备和实体子设备的部署示 意图;
图 2-d、 2-g~2-i是本发明实施例提供的几种虚拟母声卡和实体子声卡的部 署示意图;
图 2-e是本发明实施例提供的一种实体子声卡的被使用优先级的配置示意 一 一 图;
图 2-f是本发明实施例提供的一种应用程序对实体子声卡的使用优先级的 配置示意图;
图 3是本发明实施例提供的一种云终端设备的示意图;
图 4是本发明实施例提供的一种虚拟母设备的示意图;
图 5是本发明实施例提供的另一种云终端设备的示意图。 具体实施方式
本发明实施例提供一种控制管理设备的方法和相关设备,以期在云终端设 备能够连接同类型的多个功能设备(如多个网卡或多个声卡等)时, 提升多个 同类功能设备使用的灵活性。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施 例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所 描述的实施例仅仅是本发明一部分的实施例, 而不是全部的实施例。基于本发 明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所 有其他实施例, 都应当属于本发明保护的范围。
以下分别进行详细说明。
本发明的说明书和权利要求书及上述附图中的术语 "第一"、 "第二"、 "第 三" "第四" 等(如果存在)是用于区别类似的对象, 而不必用于描述特定的 顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换, 以便这里 描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。 此外, 术语 "包括" 和 "具有" 以及他们的任何变形, 意图在于覆盖不排他的 包含, 例如, 包含了一系列步骤或单元的过程、 方法、 系统、 产品或设备不必 限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些 过程、 方法、 产品或设备固有的其它步骤或单元。
本发明控制管理设备的方法的一个实施例,一种控制管理设备的方法可以 包括: 云终端设备中部署的虚拟母设备接收数据处理指令; 根据设定策略从 N1个实体子设备之中选出 N2个实体子设备,并指示上述 N2个实体子设备基 于上述数据处理指令进行数据处理, 其中, 上述虚拟母设备与上述 N2个实体 子设备的设备类型相同, 上述 N1和 N2为正整数, 上述 N1个实体子设备部 请参见图 1 , 图 1为本发明的一个实施例提供的控制管理设备的方法的流 程示意图。如图 1所示, 本发明一个实施例提供的控制管理设备的方法可包括 以下内容:
101、 云终端设备中部署的虚拟母设备(为便于引述, 可称之为第一虚拟 母设备)接收数据处理指令(为便于引述, 可称之为第一数据处理指令)。
其中, 第一虚拟母设备可接收各应用程序下发的数据处理指令, 可以理解 的是,对于下发数据处理指令的各应用程序而言, 第一虚拟母设备被认为是一 个物理设备。
其中, 云终端设备可以是 PC或其它类型的计算机设备。
在本发明的一些实施例中 ,云终端设备中的处理器可执行特定代码以呈现 出虚拟母设备。 体子设备,并指示上述 N2个实体子设备基于第一数据处理指令进行数据处理,
N2为正整数(例如 N1为大于 1的正整数), N1大于或等于 N2。 上述 N1个 参见图 2-a、 图 2-b和图 2-c , 其中, 图 2-a示出实体子设备部署于云终端 设备之中的一种场景, 即实体子设备可能是云终端设备的一部分, 例如实体子 设备可能是网卡、 声卡、 显卡等等。 图 2-b示出的一种场景中, 实体子设备未 部署于云终端设备之中, 而是与云终端设备连接, 即实体子设备可能不是云终 端设备的一部分, 例如实体子设备可能是打印机等外接设备。 图 2-c示出的一 种场景中, 部分实体子设备部署于云终端设备之中, 而还有部分实体子设备云 终端设备连接。 其中, 应用程序可通过虚拟母设备, 访问与该虚拟母设备类型 相同的实体子设备。
在本发明的一些实施例中,虚拟母设备可具有与同类型实体子设备形同的 外围通用访问接口, 以便于方便其它应用程序使用,对于下发数据处理指令的 各应用程序而言, 虚拟母设备被看做是同类型的实体设备, 举例来说, 对于需 一 一 要使用网卡的应用程序而言,虚拟网卡被看做是实体网卡。对于需要使用声卡 的应用程序而言,虚拟网卡被看做是实体声卡。对于需要使用显卡的应用程序 而言, 虚拟网卡被看做是实体显卡。 对于需要使用打印机的应用程序而言, 虚 拟打印机被看做是实体打印机, 以此类推。 此外, 虚拟母设备甚至还可以支持 被多个其它应用程序同时打开甚至同时使用;虚拟母设备甚至可以同时打开多 个同类型的实体子设备并且同时使用。 进一步的, 在一些特定场景, 当多个应 用程序同时使用某个虚拟母设备时,虚拟母设备甚至可以对该多个应用程序请 求处理的数据进行合并处理得到合并数据, 再指示从 N1个实体子设备中选出 的 N2个实体子设备对合并数据继续进行处理, 例如虚拟母设备可对多个应用 程序请求处理的音频数据进行混音处理等, 再指示从 N1个声卡中选出的 N2 个声卡对混音处理数据进行音频解码播放。可见,应用程序可通过调用虚拟母 设备来平滑实现调用同类型实体设备。
可以理解,本发明各实施例中的虚拟母设备基本不负责实现同类型实体子 设备的数据处理功能 ,虚拟母设备主要负责对同类型的实体子设备进行调度和 管理等。 例如, 虚拟网卡可不负责实现实体网卡的数据上传和下载功能, 而是 主要负责调度和管理其下的 1个或多个实体网卡工作。 又例如,虚拟声卡可不 负责实现实体声卡的音频数据解码功能, 而是主要负责调度和管理其下的 1 个或多个实体声卡工作。 又例如,虚拟显卡可不负责实现实体显卡的视频数据 编解码功能, 而是主要负责调度和管理其下的 1个或多个实体显卡工作。 又举 例来说,虚拟打印机可不负责实现实体打印机的打印功能, 而是主要负责调度 和管理其下的 1个或多个实体打印机工作, 其它设备类型场景此类推, 此处不 再——举 „
其中, 上述设定策略可能是多种多样的, 因此, 第一虚拟母设备根据设定 策略, 从 N1个实体子设备之中选出 N2个实体子设备的方式亦可能是多种多 样的。 实体子设备。
当然, 第一虚拟母设备也可以参考一个或多个参数来从 N1个实体子设备 之中选出 N2个实体子设备, 其中, 第一虚拟母设备所参考的一个或多个参数 - - 可以包括如下参数的至少一个: 实体子设备的被使用优先级、 实体子设备的被 使用权重、发出数据处理指令的应用程序对各实体子设备的使用优先级等。在 本发明的一些实施例中,虚拟母设备可以动态或者静态配置(可基于用户指令 配置或自行配置 )各应用程序使用各实体子设备的使用优先级(当然亦可缺省 其中部分或全部配置)等, 也还可动态或静态配置各实体子设备的被使用优先 级和 /或被使用权重 (当然可缺省其中部分或全部配置)等。 其中, 这些配置 信息可由相应虚拟母设备来维护,虚拟母设备例如可维护在表中或以其它形式 维护。
举例来说, 第一虚拟母设备根据设定策略从 N1 个实体子设备之中选出 N2个实体子设备, 可以包括: 第一虚拟母设备获取 N1个实体子设备分别对 应的被使用优先级; 从该 N1 个实体子设备之中选出被使用优先级最高的 N2 个实体子设备。 可以理解, 当 N2等于 1时, 表示是从该 N1个实体子设备之 中选出被使用优先级最高的 1个实体子设备; 当 N2等于 2时, 表示是从该 N1个实体子设备之中选出被使用优先级最高的 2个实体子设备, 其它情况以 此类推。
又例如, 第一虚拟母设备根据设定策略从 N1个实体子设备之中选出 N2 个实体子设备, 可以包括: 第一虚拟母设备获取 N1个实体子设备分别对应的 被使用优先级; 从该 N1个实体子设备之中选出被使用优先级最高的且当前未 被使用的 N2个实体子设备。 可以理解的是, 当 N2等于 1时, 表示是从该 N1 个实体子设备之中选出当前未被使用的且被使用优先级最高的 1 个实体子设 备; 当 N2等于 2时, 表示是从该 N1个实体子设备之中选出当前未被使用的 被使用优先级最高的 2个实体子设备, 其它情况以此类推。
又例如,假设第一数据处理指令来自第一应用程序, 第一虚拟母设备根据 设定策略从 N1个实体子设备之中选出 N2个实体子设备可以包括: 第一虚拟 母设备从 N1个实体子设备之中选出第一应用程序使用优先级较高的 N2个实 体子设备。 可以理解, 当 N2等于 1时, 表示是从该 N1个实体子设备之中选 出第一应用程序使用优先级最高的 1个实体子设备; 当 N2等于 2时, 表示是 从该 N1个实体子设备之中选出第一应用程序使用优先级最高的 2个实体子设 备, 其它情况以此类推。 - - 又举例来说,假设第一数据处理指令来自第一应用程序, 第一虚拟母设备 根据设定策略从 N1个实体子设备之中选出 N2个实体子设备可包括: 第一虚 拟母设备从 N 1个实体子设备之中选出第一应用程序使用优先级较高的且当前 未被使用的 N2个实体子设备。 可以理解的是, 当 N2等于 1时, 表示是从 N1 个实体子设备之中选出第一应用程序使用优先级最高的当前未被使用的 1 个 实体子设备, 当 N2等于 2时, 可表示是从 N1个实体子设备之中选出第一应 用程序使用优先级最高的当前未被使用的 2 个实体子设备, 其它情况以此类 推。
在本发明的一些实施例中, 若第一虚拟母设备为虚拟网卡, 则上述 N1个 实体子设备为 N1 个实体网卡; 或, 若第一虚拟母设备为虚拟声卡, 则上述 N1个实体子设备为 N1个实体声卡; 或, 若第一虚拟母设备为虚拟显卡, 则 上述 N1个实体子设备为 N1个实体显卡; 或者, 若第一虚拟母设备为虚拟打 印机, 则上述 N1个实体子设备为 N1个实体打印机。 总之, 第一虚拟母设备 和上述 N1个实体子设备的设备类型相同, 其它场景以此类推。
举例来说,假设有 A、 B和 C三个应用程序可使用显卡,假设存在两个实 体显卡 S1和 S2 , 则可动态或静态配置 A、 B和 C三个应用程序使用实体显卡 S1和 S2的使用优先级。 假设应用程序 A使用显卡 S1的使用优先级最高, 应 用程序 B次之,应用程序 C最低; 而应用程序 C使用实体显卡 S2的使用优先 级最高, 应用程序 B次之, 应用程序 A最低。 在这一配置条件下, 假设同一 时刻只有应用程序 A需使用显卡, 则虚拟母显卡(即虚拟母设备)可根据配 置信息, 调度物理显卡 S1来处理应用程序 A请求处理的相关数据, 因为应用 程序 A使用物理显卡 S1的使用优先级最高。 又假设在同一时刻, 有应用程序 A和 B需要使用显卡, 则虚拟显卡可根据配置信息调度物理显卡 S1来处理应 用程序 A请求处理的相关数据, 并且虚拟显卡可根据配置信息调度物理显卡 S2来处理应用程序 A请求处理的相关数据,因为应用程序 A使用物理显卡 S1 的使用优先级高于应用程序 B , 而应用程序 B使用物理显卡 S2的使用优先级 高于应用程序 A。 又假设, 同一时刻应用程序 B和 C需使用显卡, 则虚拟母 显卡可根据配置信息, 调度物理显卡 S1来处理应用程序 B请求处理的相关数 据, 调度物理显卡 S2来处理应用程序 C请求处理的相关数据, 因为应用程序 - -
B使用物理显卡 SI的优先级高于应用程序 C,而应用程序 C使用物理显卡 S2 的优先级高于应用程序 B, 以此类推。
在本发明的一些实施例中,虚拟母设备可动态或周期性的检测其管辖的各 实体子设备工作状态, 其中, 实体子设备的工作状态包括: 运行态(如空闲态 或者繁忙态)、 停止态等。 其中, 若检测到某实体子设备处于停止态, 则表明 该实体子设备当前可能故障或者该实体子设备当前未接入到虚拟母设备所部 署的云终端设备。
在本发明一些实施例中,虚拟母设备可配置器所管辖的各同类型实体子设 备的被使用权重, 实体子设备的被使用权重的取值范围可为 0%~100%。 当某 时刻某应用程序对几个实体子设备的使用优先级相同且最高时,可以按照该几 个实体子设备的被使用权重来确定该几个实体子设备所需处理的该某应用程 序所请求处理数据的比例。 假设, 某应用程序对 N个实体子设备的使用优先 级相同且最高 (或未配置该某应用程序对 N个实体子设备的使用优先级, 且 该 N个实体子设备的被使用优先级相同且最高), N个实体子设备的被使用权 重分别是 Dl%, D2%, ...Dn%; 假设 N个实体子设备中的实体子设备 n (其 被使用权重为 Dn% ) 所需处理的该某应用程序所请求处理的数据的比例用 dn 表示,
Figure imgf000012_0001
其中,其它实体子设备所需处理的该某应用程序所请求处理数据的比例可 以此类推。 以虚拟母打印机管理多个实体子打印机的场景为例, 在一般的办公 环境中,在同一网络可能连接了多个网络打印机。 而现有技术中同时只能选择 一个打印机进行打印。 假如需要打印 1000页的一个文件, 一台打印机的效率 是 20页 /分钟, 网络中有 10台相同的打印机。 现有技术只能同时选择一台打 印机进行打印, 打印时间约为 50分钟。 同时只有 1台打印机工作, 其它打印 机都是空闲状态, 资源效率利用率低。如果使用本发明实施例的虚拟母打印机 - - 来管理所有的实体子打印机, 则问题将迎刃而解。虚拟母打印机可对各实体子 打印机进行配置, 将 10个实体子打印机的被使用优先级置为相同, 虚拟母打 印机按照各实体子打印机的被使用权重占该 10个实体子打印机的总被使用权 用权重, 例如打印效率越高的被使用权重设置越高), 可将待打印内容分割为 10份, 虚拟母打印机指示各实体子打印机打印对应部分的待打印内容。 由于 多台实体子打印机同时被调动起来, 因此可极大加快打印速度。 其它场景以此 类推。
在本发明的一些实施例中,某应用程序对实体子设备的使用优先级的取值 范围例如可为 1~100, 其中, 例如数值越小表示优先级越高。 在本发明的一些 实施例中,使用优先级高的应用程序甚至可抢占使用优先级低的应用程序的设 备资源。对某实体子设备的使用优先级相同的多个应用程序, 可共同使用该实 体子设备(例如虚拟母设备可将该多个应用程序所请求处理的数据进行混合得 到混合数据, 而后指示该某实体子设备处理混合数据), 或者, 对某实体子设 备的使用优先级相同的多个应用程序而言 ,也可按照先到先得的原则来确定由 那个应用程序使用该某实体子设备, 其中, 此场景下在同一时刻实体子设备被 一个应用程序独占使用, 若某实体子设备当前被应用程序 A使用, 即使应用 程序 B使用该实体子设备的优先级高于应用程序 A, 由于实体子设备当前处 于被使用状态(繁忙态), 因此, 虚拟母设备当前不能调度应用程序 B来使用 该实体子设备, 即不将来自应用程序 B 的数据处理指令分配给该实体子设备 来进行处理, 虚拟母设备可将来自应用程序 B 的数据处理指令分配给其它实 体子设备(其中, 该其它实体子设备例如是当前未被使用的且应用程序 B使 用优先级最高的实体子设备) 来进行处理。
在本发明的一些实施例, 在选择实体子设备时,应用程序对实体子设备的 使用优先级的参考优先级, 高于实体子设备的被使用优先级。 例如, 当虚拟母 设备接收到某应用程序发出数据处理指令时,虚拟母设备可优先考虑该应用程 序对各实体子设备的使用优先级,选择其使用优先级最高的实体子设备处理该 数据处理指令, 若该应用程序对几个实体子设备的使用优先级相同且最高, 则 可选择该几个实体子设备中 ,被使用优先级最高的实体子设备处理该数据处理 - - 指令。
例如, 现有应用程序 A、 B需使用虚拟母设备 X管辖的实体子设备, 其中 虚拟母设备 X管辖实体子设备 xl、 x2、 x3。 如果应用程序 A设置了对各实体 子设备的使用优先级, 使用优先级大小顺序为 xl、 x2、 x3 , 而应用程序 B没 有设置使用实体子设备 xl、 x2、 x3的使用优先级(未设置时可默认应用程序 B对实体子设备 xl、 χ2、 χ3的使用优先级相同且为最低使用优先级), 若在某 时刻应用程序 Α和 Β都请求使用虚拟母设备 X管辖的实体子设备, 则虚拟母 设备 X可直接将实体子设备 xl分配给应用程序 A使用, 此时, 实体子设备 x2假设是被应用程序 A独占; 假设实体子设备 xl、 x2、 x3都设置了被使用优 先级, 则虚拟母设备 X将实体子设备 x2和 x3中被使用优先级更高的 1个实 体子设备分配给应用程序 B使用; 若实体子设备 xl、 x2、 x3均未设置被使用 优先级(未设置时可默认实体子设备 xl、 x2、 x3的被使用优先级相同且为最 低被使用优先级 ), 则虚拟母设备 X可将实体子设备 x2和 x3中任意一个分配 给应用程序 B使用。
当然, 在特殊的场景下, 在选择实体子设备时, 应用程序对实体子设备的 使用优先级的参考优先级,也可低于实体子设备的被使用优先级, 而在此场景 下例如, 当虚拟母设备接收到某应用程序发出数据处理指令时,虚拟母设备可 优先考虑各实体子设备的被使用优先级,选择被使用优先级最高的实体子设备 处理该数据处理指令, 若该几个实体子设备的被使用优先级相同且最高, 可选 择这几个实体子设备中应用程序使用优先级最高的实体子设备处理该数据处 理指令。
在本发明的一些实施例中,虚拟母设备可支持其管辖的多个实体子设备在 同一时刻均被应用程序所使用, 其中, 可支持每个实体子设备在同一时刻被多 个应用程序共同使用,或可只支持每个实体子设备在同一时刻被一个应用程序 独占使用。在本发明的另一些实施例中,虚拟母设备亦可只允许其管辖的多个 实体子设备在同一时刻只有其中一个实体子设备可被一个或者多个应用程序 所使用。
在本发明的一些实施例中 ,虚拟母设备可以通过修改各实体子设备的被使 用优先级和 /或修改应用程序对实体子设备的使用优先级, 来实现应用程序对 - - 任何实体子设备的使用。 当然, 能够被应用程序使用的实体子设备的工作状态 应当为运行态 (如空闲态或者繁忙态)、 处于停止态的实体子设备不能被应用 程序使用,虚拟母设备可通过监测获悉各实体子设备的工作状态, 因此有利于 实现实体子设备的即插即用。 对于一些 USB智能卡、 扫描仪、 转接线(USB 转并口 )等一些需要临时使用的设备。 云终端设备在连接云桌面后, 虚拟母设 备与云桌面相连, 因此, 云桌面需要使用这些临时设备时, 临时设备插入到云 终端设备,虚拟母设备可通过状态监测发现插入的临时设备,如此可便捷使用 这些临时设备。
由上可见, 本实施例中, 云终端设备中部署虚拟母设备, 当虚拟母设备接 收到第一数据处理指令之后; 虚拟母设备根据设定策略,从部署于上述云终端 设备之中或与上述云终端设备连接的 N1个实体子设备之中选出 N2个实体子 设备, 指示该 N2个实体子设备基于第一数据处理指令进行数据处理, 第一虚 拟母设备与上述 N2个实体子设备的设备类型相同。 由于引入了可一直处于连 接在线状态的虚拟母设备, 由虚拟母设备来管理同类型的各实体子设备,故而 有利于实现多个同类型实体子设备动态切换; 且当 N2大于 1时可实现多个同 类型实体子设备的同时使用, 并且, 虚拟母设备作为中间管理节点, 而应用程 序可以不感知实体子设备的状态,这样有利于实现云终端设备新连接实体子设 备的即插即用。 可见。 基于上述技术方案, 有利于在云终端设备能够连接同类 型的多个功能设备(如多个网卡或多个声卡或多个显卡等)时, 提升多个同类 功能设备使用的灵活性。
为便于更好的理解和实施, 下面通过几个举例场景进行介绍。
参见图 2-d, 云终端设备中部署有虚拟母声卡, 虚拟母声卡可管理云终端 设备中部署的所述实体子声卡, 其中, 图中举例实体子声卡 A向音响输出声 音信号, 实体子声卡 B提供麦克风和耳机的接入接口, 实体子声卡 C暂时未 插入云终端设备。
图 2-e所示, H没虚拟母声卡配置了实体子声卡 A、 实体子声卡 B和实体 子声卡 C的被使用优先级, 实体子声卡 C最高、 实体子声卡 A次之, 实体子 声卡 B最低。 如图 2-f所示, 4叚设虚拟母声卡配置了音乐播放器应用 S1对各 实体子声卡的使用优先级, 实体子声卡 A最高、 实体子声卡 B次之, 实体子 - - 声卡 C最低。 如图 2-f所示, 4叚设虚拟母声卡还配置了 IP电话应用 S2对各实 体子声卡的使用优先级, 实体子声卡 C最高、 实体子声卡 B次之, 实体子声 卡 A最低。
因此, 当虚拟母声卡接收到来自音乐播放器应用 S1的数据处理指令, 虚 拟母声卡可根据音乐播放器应用 S1对各实体子声卡的使用优先级, 选出实体 子声卡 A, 并指示实体子声卡 A基于来自音乐播放器应用 S1数据处理指令进 行数据处理。 其中, 实体子声卡 A例如可播放上述数据处理指令所指令播放 的某些音频文件。 图 2-d中的实线表示正在工作的通道, 虚线表示暂未工作的 通道。
又例如图 2-g所示,假设当虚拟母声卡接收到来自 IP电话应用 S2的数据 处理指令,虚拟母声卡根据 IP电话应用 S2对各实体子声卡的使用优先级选出 实体子声卡 B(因为使用优先级最高的实体子声卡 C当前还未插入到云终端设 备), 指示实体子声卡 B基于来自 IP电话应用 S2的数据处理指令进行数据处 理。 实体子声卡 B 例如可播放上述数据处理指令所指示播放的电话声音, 并 可利用麦克风釆集本地语音等。 图 2-g中的实线表示正在工作的通道, 虚线表 示暂未工作的通道。
又例如图 2-h所示, 假设实体子声卡 C被新插入到云终端设备, 由于 IP 电话应用 S2对实体子声卡 C的使用优先级更高, 因此虚拟母声卡可暂停实体 子声卡 B对来自 IP电话应用 S2的数据处理指令的处理,改为指示实体子声卡 C对来自 IP电话应用 S2的数据处理指令的处理。 图 2-h中的实线表示正在工 作的通道, 虚线表示暂未工作的通道。 当然, 在实际应用中, 当选择了虚拟母 声卡选择了实体子声卡 B对来自 IP电话应用 S2的数据处理指令的处理,则在 一起会话中均由实体子声卡 B 处理而不再更换其它实体子声卡, 即即使中途 实体子声卡 c被插入到云终端设备, 虚拟母声卡仍然指示实体子声卡 B对来 自 IP电话应用 S2的数据处理指令的处理。
又例如图 2-i所示, 假设当虚拟母声卡接收到来自 IP电话应用 S2的数据 处理指令和来自音乐播放器应用 S1的数据处理指令, 虚拟母声卡可根据音乐 播放器应用 S1对各实体子声卡的使用优先级, 选出实体子声卡 A, 并指示实 体子声卡 A基于来自音乐播放器应用 S1数据处理指令进行数据处理。 其中实 - - 体子声卡 A例如可播放上述数据处理指令所指令播放的某些音频文件。 虚拟
B (因为使用优先级最高的实体子声卡 C 当前还未插入到云终端设备), 指示 实体子声卡 B基于来自 IP电话应用 S2的数据处理指令进行数据处理,实体子 声卡 B 例如可播放上述数据处理指令所指示播放的电话声音, 并利用麦克风 釆集本地语音。 图 2-i中的实线表示正在工作的通道, 虚线表示暂时未工作的 通道。 图 2-i举例表示虚拟母声卡可指示多个实体子声卡同时工作。 云终端设 备可在同一时间实现几种相对独立的功能而且互不干 ·ί尤。
其中, 图 2-d〜图 2-i所示举例中主要以虚拟母声卡对实体子声卡的管理为 例来进行描述的,虚拟母显卡对实体子显卡的管理、虚拟母打印机对实体子打 印机的管理、 虚拟母网卡对实体子网卡的管理等等场景可以此类推。
本发明实施例下面还提供用于实施上述方案的相关装置。
参见图 3 , 本发明实施例还提供一种云终端设备 300, 云终端设备 300中 部署有虚拟母设备 310, 其中, 虚拟母设备 310可包括: 接收器 311和分发管 理器 312。
其中, 接收器 311 , 用于接收数据处理指令。 个实体子设备, 并指示选出的上述 N2个实体子设备基于数据处理指令进行数 据处理, 其中, 上述 N1和 N2为正整数, 上述 N2小于或等于上述 N1 , 虚拟 母设备 310与上述 N2个实体子设备的设备类型相同, 上述 N1个实体子设备 在本发明的一些实施例中, 分发管理器 312可具体用于, 获取上述 N1个 实体子设备分别对应的被使用优先级; 从上述 N1个实体子设备之中选出被使 用优先级最高的 N2个实体子设备, 并指示选出的上述 N2个实体子设备基于 数据处理指令进行数据处理;
或者, 分发管理器 312可具体用于, 获取上述 N1个实体子设备分别对应 的被使用优先级; 从上述 N1个实体子设备之中选出被使用优先级最高的且当 前未被使用的 N2个实体子设备, 并指示选出的上述 N2个实体子设备基于数 据处理指令进行数据处理; - - 或者, 分发管理器 312可具体用于, 获取上述 N1个实体子设备分别对应 的被使用优先级, 若上述 N1个实体子设备之中的 N2个实体子设备被使用优 先级最高且相同, 则选出上述 N2个实体子设备, 并指示上述 N2个实体子设 备中的每个实体子设备, 按照其被使用权重占上述 N2个实体子设备的总被使 用权重的比例, 处理上述数据处理指令所请求处理的数据。
在本发明的另一些实施例中,接收器 311可具体用于,接收来自应用程序 的数据处理指令;
其中, 分发管理器 312可具体用于, 从上述 N1个实体子设备之中选出上 述应用程序使用优先级最高的 N2个实体子设备; 并指示选出的上述 N2个实 体子设备基于数据处理指令进行数据处理;
或者, 分发管理器 312可具体用于, 从上述 N1个实体子设备之中选出应 用程序的使用优先级最高的且当前未被使用的 N2个实体子设备; 并指示选出 的上述 N2个实体子设备基于数据处理指令进行数据处理;
或者, 分发管理器 312可具体用于, 获取应用程序对上述 N1个实体子设 备的使用优先级, 若上述应用程序对上述 N1个实体子设备之中的 N2个实体 子设备的使用优先级最高并且相同, 则选出上述 N2个实体子设备, 并指示上 述 N2个实体子设备中的每个实体子设备, 按照其被使用权重占上述 N2个实 体子设备的总被使用权重的比例, 处理上述数据处理指令所请求处理的数据。
在本发明的一些实施例中, 虚拟母设备 310为虚拟网卡, 上述 N1个实体 子设备为 N1个实体网卡; 或, 虚拟母设备 310为虚拟声卡, 上述 N1个实体 子设备为 N1个实体声卡; 或, 虚拟母设备 310为虚拟显卡, 上述 N1个实体 子设备为 N1个实体显卡; 或, 虚拟母设备 310为虚拟打印机, 上述 N1个实 体子设备为 N1个实体打印机。
可以理解的是,本实施例的云终端设备 300的各功能模块的功能可根据上 述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的 相关描述, 此处不再赘述。
由上可见, 本实施例云终端设备 300中部署虚拟母设备, 当虚拟母设备接 收到第一数据处理指令之后; 虚拟母设备根据设定策略,从部署于上述云终端 设备之中或与上述云终端设备连接的 N1个实体子设备之中选出 N2个实体子 - - 设备, 指示该 N2个实体子设备基于第一数据处理指令进行数据处理, 第一虚 拟母设备与上述 N2个实体子设备的设备类型相同。 由于引入了可一直处于连 接在线状态的虚拟母设备, 由虚拟母设备来管理同类型的各实体子设备,故而 有利于实现多个同类型实体子设备动态切换; 且当 N2大于 1时可实现多个同 类型实体子设备的同时使用, 并且, 虚拟母设备作为中间管理节点, 而应用程 序可以不感知实体子设备的状态,这样有利于实现云终端设备新连接实体子设 备的即插即用。 可见。 基于上述技术方案, 有利于在云终端设备能够连接同类 型的多个功能设备(如多个网卡或多个声卡或多个显卡等)时, 提升多个同类 功能设备使用的灵活性。
参见图 4, 本发明实施例还提供一种虚拟母设备 400, 虚拟母设备 400部 署于云终端设备中, 其中, 虚拟母设备 400可以包括: 接收器 410和分发管理 器 420。
其中, 接收器 410, 用于接收数据处理指令。 个实体子设备, 并指示选出的上述 N2个实体子设备基于数据处理指令进行数 据处理, 其中, 上述 N1和 N2为正整数, 上述 N2小于或等于上述 N1 , 虚拟 母设备 400与上述 N2个实体子设备的设备类型相同, 上述 N1个实体子设备 在本发明的一些实施例中, 分发管理器 420可具体用于, 获取上述 N1个 实体子设备分别对应的被使用优先级; 从上述 N1个实体子设备之中选出被使 用优先级最高的 N2个实体子设备, 并指示选出的上述 N2个实体子设备基于 数据处理指令进行数据处理;
或者, 分发管理器 420可具体用于, 获取上述 N1个实体子设备分别对应 的被使用优先级; 从上述 N1个实体子设备之中选出被使用优先级最高的且当 前未被使用的 N2个实体子设备, 并指示选出的上述 N2个实体子设备基于数 据处理指令进行数据处理;
或者, 分发管理器 420可具体用于, 获取上述 N1个实体子设备分别对应 的被使用优先级, 若上述 N1个实体子设备之中的 N2个实体子设备被使用优 先级最高且相同, 则选出上述 N2个实体子设备, 并指示上述 N2个实体子设 - - 备中的每个实体子设备, 按照其被使用权重占上述 N2个实体子设备的总被使 用权重的比例, 处理上述数据处理指令所请求处理的数据。
在本发明的另一些实施例中,接收器 410可具体用于,接收来自应用程序 的数据处理指令;
其中, 分发管理器 420可具体用于, 从上述 N1个实体子设备之中选出上 述应用程序使用优先级最高的 N2个实体子设备; 并指示选出的上述 N2个实 体子设备基于数据处理指令进行数据处理;
或者, 分发管理器 420可具体用于, 从上述 N1个实体子设备之中选出应 用程序的使用优先级最高的且当前未被使用的 N2个实体子设备; 并指示选出 的上述 N2个实体子设备基于数据处理指令进行数据处理;
或者, 分发管理器 420可具体用于, 获取应用程序对上述 N1个实体子设 备的使用优先级, 若上述应用程序对上述 N1个实体子设备之中的 N2个实体 子设备的使用优先级最高并且相同, 则选出上述 N2个实体子设备, 并指示上 述 N2个实体子设备中的每个实体子设备, 按照其被使用权重占上述 N2个实 体子设备的总被使用权重的比例, 处理上述数据处理指令所请求处理的数据。
在本发明的一些实施例中, 虚拟母设备 400为虚拟网卡, 上述 N1个实体 子设备为 N1个实体网卡; 或, 虚拟母设备 400为虚拟声卡, 上述 N1个实体 子设备为 N1个实体声卡; 或, 虚拟母设备 400为虚拟显卡, 上述 N1个实体 子设备为 N1个实体显卡; 或, 虚拟母设备 400为虚拟打印机, 上述 N1个实 体子设备为 N1个实体打印机。
可以理解的是,本实施例的虚拟母设备 400的各功能模块的功能可根据上 述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的 相关描述, 此处不再赘述。
由上可见, 本实施例云终端设备中部署虚拟母设备 400, 当虚拟母设备接 收到第一数据处理指令之后; 虚拟母设备根据设定策略,从部署于上述云终端 设备之中或与上述云终端设备连接的 N1个实体子设备之中选出 N2个实体子 设备, 指示该 N2个实体子设备基于第一数据处理指令进行数据处理, 第一虚 拟母设备与上述 N2个实体子设备的设备类型相同。 由于引入了可一直处于连 接在线状态的虚拟母设备, 由虚拟母设备来管理同类型的各实体子设备,故而 - - 有利于实现多个同类型实体子设备动态切换; 且当 N2大于 1时可实现多个同 类型实体子设备的同时使用, 并且, 虚拟母设备作为中间管理节点, 而应用程 序可以不感知实体子设备的状态,这样有利于实现云终端设备新连接实体子设 备的即插即用。 可见。 基于上述技术方案, 有利于在云终端设备能够连接同类 型的多个功能设备(如多个网卡或多个声卡或多个显卡等)时, 提升多个同类 功能设备使用的灵活性。
图 5为本发明提供的一种用户设备的结构示意图, 如图 5所示, 本实施例 的用户设备 500包括至少一个总线 501、与总线 501相连的至少一个处理器 502 以及与总线 501相连的至少一个存储器 503。
其中, 处理器 502通过总线 501 , 调用存储器 503中存储的代码以用于呈 现出虚拟母设备, 其中, 上述虚拟母设备用于接收数据处理指令; 根据设定策 略从上述 N1个实体子设备之中选出 N2个实体子设备,并指示选出的上述 N2 个实体子设备基于数据处理指令进行数据处理, 其中, 上述 N1和 N2为正整 数, 上述 N2小于或等于上述 N1 , 虚拟母设备 310与上述 N2个实体子设备的 设备类型相同, 上述 N1个实体子设备部署于上述云终端设备之中或与上述云 终端设备连接。 对应的被使用优先级; 从上述 N1个实体子设备之中选出被使用优先级最高的 N2个实体子设备, 并指示选出的上述 N2个实体子设备基于数据处理指令进 行数据处理; 从上述 N1个实体子设备之中选出被使用优先级最高的且当前未被使用的 N2 个实体子设备, 并指示选出的上述 N2个实体子设备基于数据处理指令进行数 据处理;
或者, 述 N1个实体子设备之中的 N2个实体子设备被使用优先级最高且相同, 则选 出上述 N2个实体子设备,并指示上述 N2个实体子设备中的每个实体子设备, 按照其被使用权重占上述 N2个实体子设备的总被使用权重的比例, 处理上述 - - 数据处理指令所请求处理的数据。
在本发明的另一些实施例中, 上述数据处理指令来自应用程序。 优先级最高的 N2个实体子设备; 并指示选出的上述 N2个实体子设备基于数 据处理指令进行数据处理; 先级最高的且当前未被使用的 N2个实体子设备; 并指示选出的上述 N2个实 体子设备基于数据处理指令进行数据处理;
或者,
虚拟母设备可获取应用程序对上述 N1个实体子设备的使用优先级, 若上 述应用程序对上述 N1个实体子设备之中的 N2个实体子设备的使用优先级最 高并且相同, 则选出上述 N2个实体子设备, 并指示上述 N2个实体子设备中 的每个实体子设备, 按照其被使用权重占上述 N2个实体子设备的总被使用权 重的比例, 处理上述数据处理指令所请求处理的数据。
在本发明的一些实施例中, 上述虚拟母设备为虚拟网卡, 上述 N1个实体 子设备为 N1个实体网卡; 或, 上述虚拟母设备为虚拟声卡, 上述 N1个实体 子设备为 N1个实体声卡; 或, 上述虚拟母设备为虚拟显卡, 上述 N1个实体 子设备为 N1个实体显卡; 或, 上述虚拟母设备为虚拟打印机, 上述 N1个实 体子设备为 N1个实体打印机。
可以理解的是,本实施例的云终端设备 500的各功能器件的功能可根据上 述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的 相关描述, 此处不再赘述。
由上可见, 本实施例云终端设备 500中部署虚拟母设备, 当虚拟母设备接 收到第一数据处理指令之后; 虚拟母设备根据设定策略,从部署于上述云终端 设备之中或与上述云终端设备连接的 N1个实体子设备之中选出 N2个实体子 设备, 指示该 N2个实体子设备基于第一数据处理指令进行数据处理, 第一虚 拟母设备与上述 N2个实体子设备的设备类型相同。 由于引入了可一直处于连 接在线状态的虚拟母设备, 由虚拟母设备来管理同类型的各实体子设备,故而 有利于实现多个同类型实体子设备动态切换; 且当 N2大于 1时可实现多个同 - - 类型实体子设备的同时使用, 并且, 虚拟母设备作为中间管理节点, 而应用程 序可以不感知实体子设备的状态,这样有利于实现云终端设备新连接实体子设 备的即插即用。 可见。 基于上述技术方案, 有利于在云终端设备能够连接同类 型的多个功能设备(如多个网卡或多个声卡或多个显卡等)时, 提升多个同类 功能设备使用的灵活性。
本发明实施例还提供一种计算机存储介质, 其中, 该计算机存储介质可存 储有程序,该程序执行时包括上述方法实施例中记载的控制管理设备的方法的 部分或全部步骤。
需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表述 为一系列的动作组合,但是本领域技术人员应该知悉, 本发明并不受所描述的 动作顺序的限制,因为依据本发明,某些步骤可以釆用其他顺序或者同时进行。 其次, 本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施 例, 所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重, 某个实施例中没有详 述的部分, 可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置, 可通过其 它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如上述单 元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例 如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽 略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连 接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性或其 它的形式。 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在 ,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以釆用硬件的形式实现, 也可以釆用软件功能单元的 - - 形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可为个人计算机、 服务器或 者网络设备等 )执行本发明各个实施例所述方法的全部或部分步骤。 而前述的 存储介质包括: U盘、 只读存储器(ROM, Read-Only Memory ), 随机存取存 储器(RAM, Random Access Memory ), 移动硬盘、 磁碟或者光盘等各种可以 存储程序代码的介质。
以上所述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽 管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理 解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分 技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱 离本发明各实施例技术方案的精神和范围。

Claims

权 利 要 求
1、 一种控制管理设备的方法, 其特征在于, 包括:
云终端设备中部署的虚拟母设备接收数据处理指令; 备, 并指示选出的所述 N2个实体子设备基于数据处理指令进行数据处理, 其 中, 所述 N1和 N2为正整数, 所述 N2小于或等于所述 N1 , 所述虚拟母设备与所 述 N2个实体子设备的设备类型相同, 所述 N1个实体子设备部署于所述云终端 设备之中或与所述云终端设备连接。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据设定策略从 N1个 实体子设备之中选出 N2个实体子设备, 包括: 获取 N1个实体子设备分别对应 的被使用优先级; 从所述 N1个实体子设备之中选出被使用优先级最高的 N2个
N1个实体子设备之中选出被使用优先级最高的且当前未被使用的 N2个实体子 设备。
3、 根据权利要求 1所述的方法, 其特征在于,
所述数据处理指令来自应用程序, 其中, 所述根据设定策略从 N1个实体 子设备之中选出 N2个实体子设备, 包括: 从所述 N1个实体子设备之中选出所 述应用程序使用优先级最高的 N2个实体子设备; 或者, 从所述 N1个实体子设 备之中选出所述应用程序的使用优先级最高的且当前未被使用的 N2个实体子 设备。
4、 根据权利要求 1所述的方法, 其特征在于, 所述根据设定策略从 N1个 实体子设备之中选出 N2个实体子设备, 并指示选出的所述 N2个实体子设备基 于数据处理指令进行数据处理, 包括: 获取 N1个实体子设备分别对应的被使 且相同, 则选出所述 N2个实体子设备, 并指示所述 N2个实体子设备中的每个 实体子设备, 按照其被使用权重占所述 N2个实体子设备的总被使用权重的比 例, 处理所述数据处理指令所请求处理的数据。
5、 根据权利要求 1所述的方法, 其特征在于,
所述数据处理指令来自应用程序, 其中, 所述根据设定策略从 N1个实体 子设备之中选出 N2个实体子设备, 并指示选出的所述 N2个实体子设备基于数 据处理指令进行数据处理, 包括: 获取所述应用程序对 N1个实体子设备的使 使用优先级最高并且相同, 则选出所述 N2个实体子设备, 并指示所述 N2个实 体子设备中的每个实体子设备, 按照其被使用权重占所述 N2个实体子设备的 总被使用权重的比例, 处理所述数据处理指令所请求处理的数据。
6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述虚拟母设备 为虚拟网卡, 所述 N1个实体子设备为 N1个实体网卡; 或, 所述虚拟母设备为 虚拟声卡, 所述 N1个实体子设备为 N1个实体声卡; 或, 所述虚拟母设备为虚 拟显卡, 所述 N1个实体子设备为 N1个实体显卡; 或, 所述虚拟母设备为虚拟 打印机, 所述 N1个实体子设备为 N1个实体打印机。
7、 一种云终端设备, 其特征在于,
所述云终端设备中部署有虚拟母设备,
所述虚拟母设备包括:
接收器, 用于接收数据处理指令; 体子设备, 并指示选出的所述 N2个实体子设备基于数据处理指令进行数据处 理, 其中, 所述 N1和 N2为正整数, 所述 N2小于或等于所述 N1 , 所述虚拟母设 备与所述 N2个实体子设备的设备类型相同, 所述 N1个实体子设备部署于所述 云终端设备之中或与所述云终端设备连接。
8、 根据权利要求 7所述的云终端设备, 其特征在于,
所述分发管理器具体用于, 获取所述 N1个实体子设备分别对应的被使用 优先级; 从所述 N1个实体子设备之中选出被使用优先级最高的 N2个实体子设 备, 并指示选出的所述 N2个实体子设备基于数据处理指令进行数据处理; 或者, 所述分发管理器具体用于, 获取所述 N1个实体子设备分别对应的 被使用优先级; 从所述 N1个实体子设备之中选出被使用优先级最高的且当前 未被使用的 N2个实体子设备, 并指示选出的所述 N2个实体子设备基于数据处 理指令进行数据处理;
或者, 所述分发管理器具体用于, 获取所述 N1个实体子设备分别对应的 最高且相同, 则选出所述 N2个实体子设备, 并指示所述 N2个实体子设备中的 每个实体子设备, 按照其被使用权重占所述 N2个实体子设备的总被使用权重 的比例, 处理所述数据处理指令所请求处理的数据。
9、 根据权利要求 7所述的云终端设备, 其特征在于,
所述接收器具体用于, 接收来自应用程序的数据处理指令;
其中, 所述分发管理器具体用于, 从所述 N1个实体子设备之中选出所述 应用程序使用优先级最高的 N2个实体子设备; 并指示选出的所述 N2个实体子 设备基于数据处理指令进行数据处理;
或者,
所述分发管理器具体用于, 从所述 N1个实体子设备之中选出应用程序的 使用优先级最高的且当前未被使用的 N2个实体子设备; 并指示选出的所述 N2 个实体子设备基于数据处理指令进行数据处理;
或者,
所述分发管理器具体用于, 获取应用程序对所述 N1个实体子设备的使用 用优先级最高并且相同, 则选出所述 N2个实体子设备, 并指示所述 N2个实体 子设备中的每个实体子设备, 按照其被使用权重占所述 N2个实体子设备的总 被使用权重的比例, 处理所述数据处理指令所请求处理的数据。
10、 根据权利要求 7至 9任一项所述的云终端设备, 其特征在于, 所述虚拟 母设备为虚拟网卡, 所述 N1个实体子设备为 N1个实体网卡; 或, 所述虚拟母 设备为虚拟声卡, 所述 N1个实体子设备为 N1个实体声卡; 或, 所述虚拟母设 备为虚拟显卡, 所述 N1个实体子设备为 N1个实体显卡; 或, 所述虚拟母设备 为虚拟打印机, 所述 N1个实体子设备为 N1个实体打印机。
PCT/CN2014/082944 2013-07-24 2014-07-24 控制管理设备的方法和相关设备 WO2015010640A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14828780.8A EP2940969A4 (en) 2013-07-24 2014-07-24 METHOD FOR CONTROLLING A MANAGEMENT DEVICE, AND DEVICE THEREOF
US14/981,085 US10218578B2 (en) 2013-07-24 2015-12-28 Method for controlling a management device and related device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310313835.8 2013-07-24
CN2013103138358A CN103414763A (zh) 2013-07-24 2013-07-24 控制管理设备的方法和相关设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/981,085 Continuation US10218578B2 (en) 2013-07-24 2015-12-28 Method for controlling a management device and related device

Publications (1)

Publication Number Publication Date
WO2015010640A1 true WO2015010640A1 (zh) 2015-01-29

Family

ID=49607749

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082944 WO2015010640A1 (zh) 2013-07-24 2014-07-24 控制管理设备的方法和相关设备

Country Status (4)

Country Link
US (1) US10218578B2 (zh)
EP (1) EP2940969A4 (zh)
CN (1) CN103414763A (zh)
WO (1) WO2015010640A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414763A (zh) * 2013-07-24 2013-11-27 华为技术有限公司 控制管理设备的方法和相关设备
CN108449801B (zh) * 2018-05-11 2020-09-18 深圳市优克联新技术有限公司 网络连接方法、装置、计算机装置及计算机可读存储介质
WO2020018063A1 (en) * 2018-07-16 2020-01-23 Hewlett-Packard Development Company, L.P. Predicted usage based on monitored usage
CN108831468A (zh) * 2018-07-20 2018-11-16 英业达科技有限公司 智能语音控制管理系统及其方法
CN113741984A (zh) * 2021-07-22 2021-12-03 深圳市智微智能科技股份有限公司 Android应用层声卡指定方法、系统、终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281180A (zh) * 2011-07-14 2011-12-14 冶金自动化研究设计院 应用于不同局域网的终端相互通讯的虚拟网卡通讯装置
CN102508714A (zh) * 2011-11-03 2012-06-20 南京邮电大学 一种云计算中基于绿色计算的虚拟机调度方法
CN102662746A (zh) * 2012-04-22 2012-09-12 复旦大学 利用虚拟机并发迁移技术降低云计算平台能源消耗的方法
CN103414763A (zh) * 2013-07-24 2013-11-27 华为技术有限公司 控制管理设备的方法和相关设备

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4295023B2 (ja) * 2003-02-25 2009-07-15 株式会社エヌ・ティ・ティ・ドコモ ネットワークを制御するシステム、装置及び方法
CN101163151A (zh) * 2006-07-28 2008-04-16 李付忠 直接访问式微小体积型网络存储装置及网络存储系统
CN101625565B (zh) * 2008-07-10 2011-12-14 上海华虹Nec电子有限公司 自动化控制系统的控制方法
US8392497B2 (en) * 2009-11-25 2013-03-05 Framehawk, LLC Systems and algorithm for interfacing with a virtualized computing service over a network using a lightweight client
US8756599B2 (en) * 2011-01-17 2014-06-17 International Business Machines Corporation Task prioritization management in a virtualized environment
US8972984B2 (en) * 2011-05-20 2015-03-03 Citrix Systems, Inc. Methods and systems for virtualizing audio hardware for one or more virtual machines
CN102508626A (zh) * 2011-11-09 2012-06-20 西安电子科技大学 一种新型并行打印调度方法及系统
JP2013131016A (ja) * 2011-12-21 2013-07-04 Canon Inc 印刷中継装置、印刷システム、印刷中継装置の制御方法、およびコンピュータプログラム
US20130262189A1 (en) * 2012-04-02 2013-10-03 International Business Machines Corporation Analyzing metered cost effects of deployment patterns in a networked computing environment
US9344521B2 (en) * 2012-12-13 2016-05-17 Red Hat, Inc. Pluggable infrastructure for cloud provider selection
US9176767B2 (en) * 2013-04-11 2015-11-03 Cisco Technology, Inc. Network interface card device pass-through with multiple nested hypervisors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281180A (zh) * 2011-07-14 2011-12-14 冶金自动化研究设计院 应用于不同局域网的终端相互通讯的虚拟网卡通讯装置
CN102508714A (zh) * 2011-11-03 2012-06-20 南京邮电大学 一种云计算中基于绿色计算的虚拟机调度方法
CN102662746A (zh) * 2012-04-22 2012-09-12 复旦大学 利用虚拟机并发迁移技术降低云计算平台能源消耗的方法
CN103414763A (zh) * 2013-07-24 2013-11-27 华为技术有限公司 控制管理设备的方法和相关设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2940969A4 *

Also Published As

Publication number Publication date
EP2940969A4 (en) 2016-04-06
EP2940969A1 (en) 2015-11-04
US10218578B2 (en) 2019-02-26
CN103414763A (zh) 2013-11-27
US20160112272A1 (en) 2016-04-21

Similar Documents

Publication Publication Date Title
WO2015010640A1 (zh) 控制管理设备的方法和相关设备
US20140188977A1 (en) Appratus, method for deploying applications in a virtual desktop interface system
WO2014063463A1 (zh) 一种物理网卡管理方法、装置及物理主机
US20200376374A1 (en) Dynamic network storage for cloud console server
TW200915084A (en) Allocating network adapter resources among logical partitions
AU2020257112B2 (en) Distribution of bandwidth in a network
WO2010115337A1 (zh) 配置访问权限的方法、控制点、设备及通信系统
US20130132586A1 (en) Selective Connection Between Corresponding Communication Components Involved in a Teleconference
JP2021513768A (ja) ミーティングの参加者が機能デバイスを利用できるようにするための方法およびシステム
EP3116221B1 (en) Method for multi-picture control in video conference, related device, and storage medium
EP3114821A1 (en) Method and system for establishing a connection between a seeker device and a target device
JP6549261B2 (ja) アプリケーション実装方法およびサービスコントローラ
WO2013078614A1 (zh) 一种虚拟桌面场景下音频压缩算法选择方法、装置及通信系统
EP2280512A1 (en) Electronic apparatus and control method for remotely processing files
US9490914B2 (en) Electronic device and its wireless network communication method
RU2522995C2 (ru) Способ и устройство создания одноранговой группы в одноранговом приложении и способ применения одноранговой группы
CN111262740A (zh) 一种通过网络策略模板创建云主机的方法、系统及设备
CN115766336A (zh) 资源分配方法、装置、设备及存储介质
CN112738445A (zh) 多线路推流方法、装置、存储介质及电子设备
WO2018004954A1 (en) Technologies for managing input events in many-to-one wireless displays
Muhareb et al. Achieving Extended Displays Prototype via Wi-Fi Direct Technology
TW201447598A (zh) 虛擬機畫面顯示系統及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14828780

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2014828780

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE