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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com