IP Library Granted Patent US 12,111,910
Granted Patent B2
US 12,111,910 · App. 18/696,398 · Granted Oct 8, 2024

Port management method, system and device, and computer readable storage medium

Inventors: Chuan Yang (Shandong, CN); Haili Zhao (Shandong, CN); Rongrong Ju (Shandong, CN)
Assignee: IEIT SYSTEMS CO., LTD.
G06F21/44G06F9/4411G06F21/45
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,111,910
App. No.
18/696,398
Granted
Oct 8, 2024
Kind
B2
Abstract

Provided are a port management method, system and device, and a computer readable storage medium. The method includes: writing, via a basic input output system (BIOS), permissions corresponding to the N USB ports into a system management basic input output system (SMBIOS); in response to a USB port being inserted with a USB device, querying, in the SMBIOS, the permission corresponding to the USB port inserted with the USB device; and setting driving parameters of the USB device according to the permission corresponding to the USB port inserted with the USB device.

Claims (62)

1. A port management method, applied to a computer comprising N universal serial bus (USB) ports, N being an integer not less than 2, wherein the port management method comprises:

writing, via a basic input output system (BIOS), permissions corresponding to the N USB ports into a system management basic input output system (SMBIOS);

in response to a USB port being inserted with a USB device, querying, in the SMBIOS, the permission corresponding to the USB port inserted with the USB device under an operating system (OS); and

setting, according to the permission corresponding to the USB port inserted with the USB device, driving parameters of the USB device under the OS;

wherein the writing, via a basic input output system (BIOS), permissions corresponding to the N USB ports into a system management basic input output system (SMBIOS) comprises:

determining, via the BIOS, the N USB ports and the permissions corresponding to the N USB ports, creating Types that are in one-to-one correspondence with the N USB ports in the SMBIOS, and writing the permissions corresponding to the N USB ports into the Types corresponding to respective USB ports;

wherein the determining the permissions corresponding to the N USB ports comprises:

querying and recording the permissions corresponding to the N USB ports set by a user on a USB port interface under BIOS;

wherein the recording the permissions corresponding to the N USB ports set by the user on the USB port interface under BIOS comprises:

recording the permissions of respective USB ports via a variable USB X STATUS Y;

wherein a value of X in the variable USB X STATUS Y represents an universal serial bus port identify label USBPort ID of a USB port, and a value of Y in the variable USB X STATUS Y corresponds to the permission of the USB port set by the user.

2. The port management method according to claim 1 , wherein the writing the permissions corresponding to the N USB ports into the Types corresponding to respective USB ports comprises:

determining a Type corresponding to the USB port in the SMBIOS according to the X value of the USB port, and writing the permission of the USB port into the Type corresponding to the USB port according to the Y value of the USB port.

3. The port management method according to claim 1 , wherein the determining the N USB ports comprises:

acquiring device paths of the N USB ports from a peripheral component interconnect (PCI) configuration space of USB controllers that are in one-to-one correspondence with the N USB ports; and

determining the N USB ports according to the device paths.

4. The port management method according to claim 3 , wherein the acquiring device paths of the N USB ports from the PCI configuration space of USB controllers that are in one-to-one correspondence with the N USB ports comprises:

reading a PCI BUS, a PCI device, a PCI function and a PCI segment in the PCI configuration space of the USB controllers that are in one-to-one correspondence with the N USB ports; and

obtaining the device paths of the N USB ports from the read PCI BUS, PCI device, PCI function and PCI segment.

5. The port management method according to claim 3 , wherein after acquiring device paths of the N USB ports from the PCI configuration space of USB controllers that are in one-to-one correspondence with the N USB ports, the port management method further comprises:

recording the device paths into the corresponding Types.

6. The port management method according to claim 1 , wherein the writing the permissions corresponding to the N USB ports into the Types corresponding to respective USB ports comprises:

creating a preset field in the Type, and writing permissions corresponding to the N USB ports into the preset fields in the Types corresponding to the respective USB ports; and

the querying, in the SMBIOS, the permission corresponding to the USB port inserted with the USB device under an operating system (OS) comprises:

querying, in the preset field of the Type corresponding to the USB port inserted with the USB device in the SMBIOS, the permission corresponding to the USB port inserted with the USB device.

7. The port management method according to claim 6 , wherein the querying, in the preset field of the Type corresponding to the USB port inserted with the USB device in the SMBIOS, the permission corresponding to the USB port inserted with the USB device comprises:

determining the Type corresponding to the USB port inserted with the USB device; and

querying, in the preset field in the corresponding Type, the permission corresponding to the USB port inserted with the USB device.

8. The port management method according to claim 7 , wherein the preset field is a SupportProperty field, and the writing the permissions corresponding to the N USB ports into the Types corresponding to respective USB ports comprises:

creating SupportProperty fields in the Types corresponding to the N USB ports; and

writing permissions corresponding to the N USB ports into the SupportProperty fields in the Types corresponding to the respective USB ports.

9. The port management method according to claim 8 , wherein the querying, in the preset field in the corresponding Type, the permission corresponding to the USB port inserted with the USB device comprises:

querying, in the SupportProperty field in the Type corresponding to the USB port inserted with the USB device, the permission corresponding to the USB port inserted with the USB device.

10. The port management method according to claim 1 , wherein the writing, via a basic input output system (BIOS), permissions corresponding to the N USB ports into a system management basic input output system (SMBIOS) comprises:

writing, via the BIOS, the permissions corresponding to the N USB ports into the SMBIOS when the computer is powered on.

11. The port management method according to claim 1 , further comprising:

in response to the USB device being inserted, recording a device provider identity document (ID) and a device product identity document (ID) of the inserted USB device.

12. The port management method according to claim 1 , wherein the permissions corresponding to the N USB ports comprises:

a combination of one or more of: a first permission that only allows the USB port to identify a keyboard and a mouse, and does not allow the USB port to identify a USB storage device; a second permission that only allows to read data in the USB device connected to the USB port, and does not allow to write data into the USB device connected to the USB port; a third permission that allows to read data in the USB device connected to the USB port and write data into the USB device connected to the USB port; and a fourth permission for disabling the USB device connected to the USB port.

13. A port management device, comprising:

a memory configured for storing a computer program; and

a processor configured for executing the computer program to implement operations of:

writing, via a basic input output system (BIOS), permissions corresponding to the N USB ports into a system management basic input output system (SMBIOS);

in response to a USB port being inserted with a USB device, querying, in the SMBIOS, the permission corresponding to the USB port inserted with the USB device under an operating system (OS); and

setting, according to the permission corresponding to the USB port inserted with the USB device, driving parameters of the USB device under the OS;

wherein the processor is further configured for determining, via the BIOS, the N USB ports and the permissions corresponding to the N USB ports, creating Types that are in one-to-one correspondence with the N USB ports in the SMBIOS, and writing the permissions corresponding to the N USB ports into the Types corresponding to respective USB ports;

wherein the processor is further configured for:

querying and recording the permissions corresponding to the N USB ports set by the user on a USB port interface under BIOS;

wherein the processor is further configured for:

recording the permissions of respective USB ports via a variable USB X STATUS Y;

wherein a value of X in the variable USB X STATUS Y represents an universal serial bus port identify label USBPort ID of a USB port, and a value of Y in the variable USB X STATUS Y corresponds to the permission of the USB port set by the user.

14. A non-transitory computer readable storage medium, wherein the non-volatile computer readable storage medium is stored with a computer program that, when executed by a processor, implements operations of:

writing, via a basic input output system (BIOS), permissions corresponding to the N USB ports into a system management basic input output system (SMBIOS);

in response to a USB port being inserted with a USB device, querying, in the SMBIOS, the permission corresponding to the USB port inserted with the USB device under an operating system (OS); and

setting, according to the permission corresponding to the USB port inserted with the USB device, driving parameters of the USB device under the OS;

wherein the writing, via a basic input output system (BIOS), permissions corresponding to the N USB ports into a system management basic input output system (SMBIOS) comprises:

determining, via the BIOS, the N USB ports and the permissions corresponding to the N USB ports, creating Types that are in one-to-one correspondence with the N USB ports in the SMBIOS, and writing the permissions corresponding to the N USB ports into the Types corresponding to respective USB ports;

wherein the determining the permissions corresponding to the N USB ports comprises:

querying and recording the permissions corresponding to the N USB ports set by a user on a USB port interface under BIOS;

wherein the recording the permissions corresponding to the N USB ports set by the user on the USB port interface under BIOS comprises:

recording the permissions of respective USB ports via a variable USB X STATUS Y;

wherein a value of X in the variable USB X STATUS Y represents an universal serial bus port identify label USBPort ID of a USB port, and a value of Y in the variable USB X STATUS Y corresponds to the permission of the USB port set by the user.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 28, 2024
From: YANG, CHUAN; ZHAO, HAILI; JU, RONGRONG
To: IEIT SYSTEMS CO., LTD.
Reel/Frame 066936/0701 →
Priority Claims (1)
CN 202210144149.1 · Feb 17, 2022 · national
Continuity (1)
Related Publication 20240265090A1 · Aug 8, 2024