Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Resource allocation method, electronic equipment and computer readable medium

A resource allocation and device technology, applied in the computer field, can solve the problem of low transmission efficiency of USB devices and achieve the effect of improving USB transmission efficiency

Pending Publication Date: 2021-07-23
宏晶微电子科技股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In some related technologies, when a USB controller is connected to multiple USB devices at the same time, the transmission efficiency of each USB device is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Resource allocation method, electronic equipment and computer readable medium
  • Resource allocation method, electronic equipment and computer readable medium
  • Resource allocation method, electronic equipment and computer readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0156] Create, modify, and delete scheduling policy tables.

[0157] When the system detects that a Bulk transmission type USB device is connected, it creates a scheduling policy table (Table 1) according to the following format, and adds a line for each additional BULK type endpoint, that is, a policy table item:

[0158] Table I

[0159] Equipment Identity endpoint identification priority strategy type 0 0x1 0 1 1 0x2 1 2 1 0x82 1 1 … … … …

[0160] The device ID of the USB device is the device number allocated by the system for the device, and each USB device is unique; the endpoint ID is the bEndPointAddress field in the USB endpoint descriptor, which is 1 BYTE in length, and BIT7 is the endpoint direction (0 means OUT, 1 means IN ), BIT0-BIT6 indicates the endpoint number; the priority starts from 0 as the highest priority, and the larger the value, the lower the priority; policy types 1, 2, and 3 indicate different schedul...

Embodiment 2

[0164] Scheduling of transfer requests.

[0165] The USB device driver submits a USB Bulk transfer request to the USB controller driver, and the endpoint information has been added to the scheduling policy table when the device is enumerated;

[0166] After the USB controller driver receives the Bulk transmission request, it searches the scheduling policy table according to the device ID and the endpoint ID of the USB device;

[0167] After querying the priority and policy type of the USB device or endpoint, add the Bulk transfer request to the linked list corresponding to the priority and policy type of the USB device or endpoint, where there is a set of linked lists for the IN and OUT directions, and different linked lists At least one of the corresponding priorities and policy types is different, and the linked lists corresponding to the same direction and the same priority have the same policy types;

[0168] The USB controller driver determines the scheduling policy acco...

Embodiment 3

[0170] Real-time modification of priority and / or policy type.

[0171] The policy update request can be input in multiple ways, for example, an interface for changing the priority and / or policy type can be provided in the application program corresponding to the USB device, and the user can manually modify the priority and / or policy type of the USB device; The priority and / or policy type of the USB device can be intelligently changed by the operating system according to the application scenario; the voice input of the smart device can also be used at the operating system level to obtain the voice analysis of the user changing the priority and / or policy type of the USB device and Translated into the corresponding policy update request;

[0172] The policy update of the USB device is sent to the corresponding device driver, and the scheduling policy table is updated by the driver layer;

[0173] If the USB device has an unfinished transfer request, the transfer request that has...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a resource allocation method, which comprises the following steps: allocating resources for to-be-scheduled transmission requests in a plurality of linked lists according to priorities and policy types corresponding to the linked lists in the plurality of linked lists, the linked lists being matched with the priorities and policy types of universal serial bus (USB) devices pointed by the to-be-scheduled transmission requests in the linked lists, and allocating the resources to the to-be-scheduled transmission requests according to the priorities and policy types of the to-be-scheduled transmission requests in the linked lists. Different linked lists in the plurality of linked lists correspond to different priorities and / or strategy types. The invention further provides electronic equipment and a computer readable medium.

Description

technical field [0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a resource allocation method, an electronic device, and a computer-readable medium. Background technique [0002] Universal Serial Bus (USB, Universal Serial Bus) devices are widely used in daily life due to their advantages such as easy portability, uniform standards, support for hot plugging, and support for multiple device connections at the same time. Usually, a computer has multiple USB controllers and multiple USB interfaces, wherein one USB controller corresponds to one hub, and one hub corresponds to one or more USB interfaces. Multiple USB interfaces under the same hub share the bandwidth of one USB controller. [0003] In some related technologies, when a USB controller is connected to multiple USB devices at the same time, the transmission efficiency of each USB device is low. Contents of the invention [0004] Embodiments of the p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5027G06F2209/5021
Inventor 崔显科刘伟
Owner 宏晶微电子科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products