CN111199061A - USB port disabling method and device, storage medium and all-in-one machine - Google Patents

USB port disabling method and device, storage medium and all-in-one machine Download PDF

Info

Publication number
CN111199061A
CN111199061A CN201911345740.8A CN201911345740A CN111199061A CN 111199061 A CN111199061 A CN 111199061A CN 201911345740 A CN201911345740 A CN 201911345740A CN 111199061 A CN111199061 A CN 111199061A
Authority
CN
China
Prior art keywords
usb port
port
usb
state
machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911345740.8A
Other languages
Chinese (zh)
Inventor
谭贵勇
颜专
邓嘉俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN201911345740.8A priority Critical patent/CN111199061A/en
Publication of CN111199061A publication Critical patent/CN111199061A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method and a device for disabling a USB port of all-in-one machine equipment, a storage medium and an all-in-one machine, wherein the method comprises the following steps: acquiring a USB port list of the all-in-one machine equipment from a system database of the all-in-one machine equipment; judging whether the USB port is a forbidden USB port or not based on the USB port list; if the USB port is forbidden, the access equipment of the USB port is forbidden, otherwise, the access equipment of the USB port is allowed to be accessed by using the USB interface; and receiving the port state of the USB port updated by the operation of the user on the all-in-one machine equipment in real time, and updating the port state into the system database. In this embodiment, the disabling of the USB port in the software manner can be implemented without special IO, and only the USB port set correspondingly can be disabled without affecting the use of other USB ports.

Description

USB port disabling method and device, storage medium and all-in-one machine
Technical Field
The invention relates to the technical field of all-in-one machine equipment, in particular to a method and a device for disabling a USB port of all-in-one machine equipment, a storage medium and an all-in-one machine.
Background
The all-in-one machine equipment is widely applied to meetings, education or exhibitions, and even applied to corresponding offices; with the wide application, some problems of disabling some designated ports on the all-in-one machine device occur, and in the prior art, the disabling is generally realized in a hardware or software mode; hardware is generally realized by IO, but IO ports of some existing chip schemes are not enough, which often increases hardware cost, or a designed board card cannot disable USB devices in a hardware manner, whereas an existing software disabling manner is single to designate and disable a certain port.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a USB port forbidding method, a USB port forbidding device, a storage medium and an all-in-one machine of all-in-one machine equipment, which can realize the forbidding of the USB port in a software mode without special IO and can only forbid the correspondingly set USB port without influencing the use of other USB ports.
In order to solve the above technical problem, an embodiment of the present invention provides a method for disabling a USB port of an all-in-one machine device, where the method includes:
acquiring a USB port list of the all-in-one machine equipment from a system database of the all-in-one machine equipment, wherein the USB port list comprises a path and a field flag bit corresponding to each USB port;
judging whether the USB port is a forbidden USB port or not based on the USB port list;
if the USB port is forbidden, the access equipment of the USB port is forbidden, otherwise, the access equipment of the USB port is allowed to be accessed by using the USB interface;
and receiving the port state of the USB port updated by the operation of the user on the all-in-one machine equipment in real time, and updating the port state into the system database.
Optionally, the path corresponding to each USB port corresponds to the USB port one to one, and has uniqueness.
Optionally, the field flag bit includes three field flag bits; the three field zone bits are respectively the port name, the port path and the port state.
Optionally, the determining whether the USB port is a disabled port based on the USB port list includes:
and judging whether the USB port is a forbidden port or not based on the port state in the field flag bit corresponding to each port in the USB port list.
Optionally, the access device for disabling the USB port includes:
and forbidding the access equipment to be loaded to the system of the all-in-one machine equipment.
Optionally, the prohibiting the access device from being loaded onto the system of the all-in-one machine device includes:
and when the driver of the access equipment is loaded, controlling the equipment driver not to be loaded on the access equipment based on the bottom layer code.
Optionally, the receiving, in real time, a user operating and updating a port state of the USB port on the all-in-one machine device includes:
receiving the port state in the field flag bit of the USB port updated by the user on the all-in-one machine equipment in real time; wherein the port state comprises a disabled state or an enabled state.
In addition, an embodiment of the present invention further provides a USB port disabling apparatus for an all-in-one device, where the apparatus includes:
an obtaining module: the method comprises the steps that a USB port list of the all-in-one machine equipment is obtained from a system database based on the all-in-one machine equipment, and the USB port list comprises a path and a field flag bit corresponding to each USB port;
a judging module: the USB port list is used for judging whether the USB port is a forbidden USB port or not;
the inhibit or enable module: the USB interface access device is used for forbidding the access device of the USB port if the USB port is forbidden, otherwise, the USB interface access device is allowed to be used;
a state updating module: and the all-in-one machine is used for receiving the port state of the USB port updated by the operation of the user on the all-in-one machine equipment in real time and updating the port state into the system database.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the USB port disabling method according to any one of the above.
In addition, an embodiment of the present invention further provides an all-in-one machine, which includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: performing the USB port disabling method of any of the above.
In the embodiment of the invention, the USB port can be disabled in a software mode without special IO, and only the correspondingly set USB port can be disabled without influencing the use of other USB ports; corresponding ports are forbidden only under pure software configuration, hardware does not need to be changed, and the cost of changing the hardware is reduced; and for the limited board card, corresponding USB ports can be forbidden through the software-based method, the problem that the use of all ports of the same type is influenced when the previous software is forbidden is overcome, and the use experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a USB port disabling method of an all-in-one device according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a USB port disabling apparatus of the all-in-one machine device according to the embodiment of the present invention;
fig. 3 is a schematic structural composition diagram of the all-in-one machine device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a USB port disabling method of an all-in-one device according to an embodiment of the present invention.
As shown in fig. 1, a method for disabling a USB port of an all-in-one device includes:
s11: acquiring a USB port list of the all-in-one machine equipment from a system database of the all-in-one machine equipment, wherein the USB port list comprises a path and a field flag bit corresponding to each USB port;
in the implementation process of the present invention, the path corresponding to each USB port corresponds to the USB port one-to-one, and has uniqueness.
Further, the field flag bit comprises three field flag bits; the three field zone bits are respectively the port name, the port path and the port state.
Specifically, after the system of the all-in-one machine device is started, the system automatically extracts a corresponding USB port list and a path and field flag bit corresponding to each USB port from a system database, so as to obtain the USB port list of the all-in-one machine device and the path and field flag bit corresponding to each USB port, wherein the path corresponding to each USB port is in one-to-one correspondence with the USB port and has uniqueness; the field flag bit comprises three field flag bits; the three field flag bits are respectively the port name, the port path and the port state.
For example, such as: for a port a on a board, the corresponding device path is/sys/bus/usb/devices/4-1.2 (for a certain port), to be disabled, there are three field records in the database: port, path, enable (port, path, enable); port, path, and false (port, path, disabled), the corresponding recorded contents include: the corresponding content is as follows: A. the system comprises a bus, a user, a device, a processor, a controller and a controller, wherein the bus, the user, the processor and the controller are/sys/bus/user/4-1.2, namely A corresponds to a port name,/sys/bus/user/4-1.2 corresponds to a port path, and the controller corresponds to a port state; and,/sys/bus/usb/devices/4-1.2 is in one-to-one correspondence with a certain port and is unique.
S12: judging whether the USB port is a forbidden USB port or not based on the USB port list and a field flag bit corresponding to each port;
in a specific implementation process of the present invention, the determining whether the USB port is a disabled port based on the USB port list includes: and judging whether the USB port is a forbidden port or not based on the port state in the field flag bit corresponding to each USB port in the USB port list.
Specifically, after the USB port list is obtained, the port state in the field flag bit corresponding to each USB port in the USB port list is extracted, and whether the USB port is a disabled port is determined by identifying the port state, where the port state is false, the port state is a disabled state, and where the port state is enabled, the port state is an enabled state.
S13: if the USB port is forbidden, access equipment of the USB port is forbidden;
in a specific implementation process of the present invention, the access device that disables the USB port includes: and forbidding the access equipment to be loaded to the system of the all-in-one machine equipment.
Further, the prohibiting the access device from being loaded to the system of the all-in-one machine device includes: and when the driver of the access equipment is loaded, controlling the equipment driver not to be loaded on the access equipment based on the bottom layer code.
Specifically, after the USB port is judged to be the forbidden USB port, the system on the all-in-one machine device prohibits the access device (USB device) from being loaded onto the system of the all-in-one machine device; when the USB device is accessed to the disabled USN port corresponding to the all-in-one machine device and a driver is requested to be loaded, the bottom layer code of the system of the all-in-one machine device controls the device driver which is not loaded with the accessed device, and therefore the USB port is disabled.
S14: otherwise, the USB interface is allowed to be used for accessing the equipment;
in the specific implementation process of the invention, after the USB port is judged not to be the forbidden USB port, the accessed device of the USB port is allowed to carry out drive loading, thereby realizing the use of the device.
S15: and receiving the port state of the USB port updated by the operation of the user on the all-in-one machine equipment in real time, and updating the port state into the system database.
In a specific implementation process of the present invention, the receiving, in real time, a port status of a USB port of a user operating and updating on the all-in-one machine device includes: receiving the port state in the field flag bit of the USB port updated by the user on the all-in-one machine equipment in real time; wherein the port state comprises a disabled state or an enabled state.
Specifically, after the all-in-one machine equipment is started, a user can modify the port state of a certain USB port at any time; the system running on the all-in-one machine equipment receives the port state in the field flag bit of the USB port updated by the operation of the user on the all-in-one machine equipment in real time and updates the port state into the system database; the system of the all-in-one machine equipment polls the system database through a preset time period to confirm whether the USB port is in a port state or not; the port state includes a disabled state or an enabled state.
In the embodiment of the invention, as long as the board is fixed, the port of the USB is fixed, the USB port which can be disabled can be enumerated according to the board, the user can change the disabling and the disablement of the USB through operation, the port state of the USB port can be changed through the entry (enabled) and the false (disabled) in the field flag bit, and after the setting is completed, the bottom layer can update the disabled list in real time, so that the newly accessed USB can be determined to be disabled according to the disabled list every time a new device is accessed.
And through the combination of the port name and the port path in the field zone bit, the port state of the corresponding USB port needing to be modified can be effectively and accurately controlled, so that the normal use of other USB ports is not influenced.
In the embodiment of the invention, the USB port can be disabled in a software mode without special IO, and only the correspondingly set USB port can be disabled without influencing the use of other USB ports; corresponding ports are forbidden only under pure software configuration, hardware does not need to be changed, and the cost of changing the hardware is reduced; and for the limited board card, corresponding USB ports can be forbidden through the software-based method, the problem that the use of all ports of the same type is influenced when the previous software is forbidden is overcome, and the use experience of a user is improved.
Examples
Referring to fig. 2, fig. 2 is a schematic structural composition diagram of a USB port disabling device of an all-in-one machine device according to an embodiment of the present invention.
As shown in fig. 2, an apparatus for disabling a USB port of an all-in-one device includes:
the obtaining module 21: the method comprises the steps that a USB port list of the all-in-one machine equipment is obtained from a system database based on the all-in-one machine equipment, and the USB port list comprises a path and a field flag bit corresponding to each USB port;
in the implementation process of the present invention, the path corresponding to each USB port corresponds to the USB port one-to-one, and has uniqueness.
Further, the field flag bit comprises three field flag bits; the three field zone bits are respectively the port name, the port path and the port state.
Specifically, after the system of the all-in-one machine device is started, the system automatically extracts a corresponding USB port list and a path and field flag bit corresponding to each USB port from a system database, so as to obtain the USB port list of the all-in-one machine device and the path and field flag bit corresponding to each USB port, wherein the path corresponding to each USB port is in one-to-one correspondence with the USB port and has uniqueness; the field flag bit comprises three field flag bits; the three field flag bits are respectively the port name, the port path and the port state.
For example, such as: for a port a on a board, the corresponding device path is/sys/bus/usb/devices/4-1.2 (for a certain port), to be disabled, there are three field records in the database: port, path, enable (port, path, enable); port, path, and false (port, path, disabled), the corresponding recorded contents include: the corresponding content is as follows: A. the system comprises a bus, a user, a device, a processor, a controller and a controller, wherein the bus, the user, the processor and the controller are/sys/bus/user/4-1.2, namely A corresponds to a port name,/sys/bus/user/4-1.2 corresponds to a port path, and the controller corresponds to a port state; and,/sys/bus/usb/devices/4-1.2 is in one-to-one correspondence with a certain port and is unique.
The judging module 22: the USB port list is used for judging whether the USB port is a forbidden USB port or not;
in a specific implementation process of the present invention, the determining whether the USB port is a disabled port based on the USB port list includes: and judging whether the USB port is a forbidden port or not based on the port state in the field flag bit corresponding to each USB port in the USB port list.
Specifically, after the USB port list is obtained, the port state in the field flag bit corresponding to each USB port in the USB port list is extracted, and whether the USB port is a disabled port is determined by identifying the port state, where the port state is false, the port state is a disabled state, and where the port state is enabled, the port state is an enabled state.
The disabling or enabling module 23: the USB interface access device is used for forbidding the access device of the USB port if the USB port is forbidden, otherwise, the USB interface access device is allowed to be used;
in a specific implementation process of the present invention, the access device that disables the USB port includes: and forbidding the access equipment to be loaded to the system of the all-in-one machine equipment.
Further, the prohibiting the access device from being loaded to the system of the all-in-one machine device includes: and when the driver of the access equipment is loaded, controlling the equipment driver not to be loaded on the access equipment based on the bottom layer code.
Specifically, after the USB port is judged to be the forbidden USB port, the system on the all-in-one machine device prohibits the access device (USB device) from being loaded onto the system of the all-in-one machine device; when the USB device is accessed to the disabled USN port corresponding to the all-in-one machine device and a driver is requested to be loaded, the bottom layer code of the system of the all-in-one machine device controls the device driver which is not loaded with the accessed device, and therefore the USB port is disabled.
In the specific implementation process of the invention, after the USB port is judged not to be the forbidden USB port, the accessed device of the USB port is allowed to carry out drive loading, thereby realizing the use of the device.
The status update module 24: and the all-in-one machine is used for receiving the port state of the USB port updated by the operation of the user on the all-in-one machine equipment in real time and updating the port state into the system database.
In a specific implementation process of the present invention, the receiving, in real time, a port status of a USB port of a user operating and updating on the all-in-one machine device includes: receiving the port state in the field flag bit of the USB port updated by the user on the all-in-one machine equipment in real time; wherein the port state comprises a disabled state or an enabled state.
Specifically, after the all-in-one machine equipment is started, a user can modify the port state of a certain USB port at any time; the system running on the all-in-one machine equipment receives the port state in the field flag bit of the USB port updated by the operation of the user on the all-in-one machine equipment in real time and updates the port state into the system database; the system of the all-in-one machine equipment polls the system database through a preset time period to confirm whether the USB port is in a port state or not; the port state includes a disabled state or an enabled state.
In the embodiment of the invention, as long as the board is fixed, the port of the USB is fixed, the USB port which can be disabled can be enumerated according to the board, the user can change the disabling and the disablement of the USB through operation, the port state of the USB port can be changed through the entry (enabled) and the false (disabled) in the field flag bit, and after the setting is completed, the bottom layer can update the disabled list in real time, so that the newly accessed USB can be determined to be disabled according to the disabled list every time a new device is accessed.
And through the combination of the port name and the port path in the field zone bit, the port state of the corresponding USB port needing to be modified can be effectively and accurately controlled, so that the normal use of other USB ports is not influenced.
In the embodiment of the invention, the USB port can be disabled in a software mode without special IO, and only the correspondingly set USB port can be disabled without influencing the use of other USB ports; corresponding ports are forbidden only under pure software configuration, hardware does not need to be changed, and the cost of changing the hardware is reduced; and for the limited board card, corresponding USB ports can be forbidden through the software-based method, the problem that the use of all ports of the same type is influenced when the previous software is forbidden is overcome, and the use experience of a user is improved.
Examples
In an embodiment of the present invention, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the USB port disabling method according to any one of the foregoing embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the USB port disabling method in any one of the embodiments.
In addition, fig. 3 is a schematic structural composition diagram of the all-in-one conference machine in the embodiment of the present invention.
The embodiment of the invention also provides an all-in-one machine, which is shown in figure 3. The all-in-one conference machine comprises a processor 302, a memory 303, an input unit 304, a display unit 305 and the like. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory.
As an embodiment, the all-in-one machine includes: one or more processors 302, a memory 303, one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, the one or more applications 301 configured to perform the USB port disabling method of any of the above embodiments.
In the embodiment of the invention, as long as the board is fixed, the port of the USB is fixed, the USB port which can be disabled can be enumerated according to the board, the user can change the disabling and the disablement of the USB through operation, the port state of the USB port can be changed through the entry (enabled) and the false (disabled) in the field flag bit, and after the setting is completed, the bottom layer can update the disabled list in real time, so that the newly accessed USB can be determined to be disabled according to the disabled list every time a new device is accessed.
And through the combination of the port name and the port path in the field zone bit, the port state of the corresponding USB port needing to be modified can be effectively and accurately controlled, so that the normal use of other USB ports is not influenced.
In the embodiment of the invention, the USB port can be disabled in a software mode without special IO, and only the correspondingly set USB port can be disabled without influencing the use of other USB ports; corresponding ports are forbidden only under pure software configuration, hardware does not need to be changed, and the cost of changing the hardware is reduced; and for the limited board card, corresponding USB ports can be forbidden through the software-based method, the problem that the use of all ports of the same type is influenced when the previous software is forbidden is overcome, and the use experience of a user is improved.
In addition, the method, the apparatus, the storage medium, and the all-in-one machine for disabling the USB port of the all-in-one machine device according to the embodiments of the present invention are described in detail above, and a specific example is used herein to describe the principle and the implementation manner of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for disabling a USB port of an all-in-one machine device is characterized by comprising the following steps:
acquiring a USB port list of the all-in-one machine equipment from a system database of the all-in-one machine equipment, wherein the USB port list comprises a path and a field flag bit corresponding to each USB port;
judging whether the USB port is a forbidden USB port or not based on the USB port list;
if the USB port is forbidden, the access equipment of the USB port is forbidden, otherwise, the access equipment of the USB port is allowed to be accessed by using the USB interface;
and receiving the port state of the USB port updated by the operation of the user on the all-in-one machine equipment in real time, and updating the port state into the system database.
2. The method of claim 1, wherein the path corresponding to each USB port is one-to-one corresponding to the USB port and has uniqueness.
3. The USB port disabling method of claim 1, wherein the field flags include three field flags; the three field zone bits are respectively the port name, the port path and the port state.
4. The method of claim 1, wherein the determining whether the USB port is a disabled port based on the USB port list comprises:
and judging whether the USB port is a forbidden port or not based on the port state in the field flag bit corresponding to each USB port in the USB port list.
5. The USB port disabling method according to claim 1, wherein the disabling of the access device of the USB port comprises:
and forbidding the access equipment to be loaded to the system of the all-in-one machine equipment.
6. The method of claim 5, wherein the prohibiting the access device from being loaded onto the system of the all-in-one device comprises:
and when the driver of the access equipment is loaded, controlling the equipment driver not to be loaded on the access equipment based on the bottom layer code.
7. The method for disabling a USB port according to claim 1, wherein the receiving, in real time, a user operation on the all-in-one device to update a port status of a USB port comprises:
receiving the port state in the field flag bit of the USB port updated by the user on the all-in-one machine equipment in real time; wherein the port state comprises a disabled state or an enabled state.
8. An apparatus for disabling a USB port of an all-in-one device, the apparatus comprising:
an obtaining module: the system comprises a system database, a USB port list and a control unit, wherein the system database is used for acquiring the USB port list of the all-in-one machine equipment based on the system database of the all-in-one machine equipment, and the USB port list comprises a path and a field zone bit corresponding to each USB port;
a judging module: the USB port list is used for judging whether the USB port is a forbidden USB port or not;
the inhibit or enable module: the USB interface access device is used for forbidding the access device of the USB port if the USB port is forbidden, otherwise, the USB interface access device is allowed to be used;
a state updating module: and the all-in-one machine is used for receiving the port state of the USB port updated by the operation of the user on the all-in-one machine equipment in real time and updating the port state into the system database.
9. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a USB port disabling method according to any one of claims 1 to 7.
10. An all-in-one machine, characterized in that it comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: performing the USB port disabling method according to any one of claims 1 to 7.
CN201911345740.8A 2019-12-23 2019-12-23 USB port disabling method and device, storage medium and all-in-one machine Pending CN111199061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911345740.8A CN111199061A (en) 2019-12-23 2019-12-23 USB port disabling method and device, storage medium and all-in-one machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911345740.8A CN111199061A (en) 2019-12-23 2019-12-23 USB port disabling method and device, storage medium and all-in-one machine

Publications (1)

Publication Number Publication Date
CN111199061A true CN111199061A (en) 2020-05-26

Family

ID=70746768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911345740.8A Pending CN111199061A (en) 2019-12-23 2019-12-23 USB port disabling method and device, storage medium and all-in-one machine

Country Status (1)

Country Link
CN (1) CN111199061A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101086726A (en) * 2006-06-06 2007-12-12 国际商业机器公司 Method and apparatus for disabling a universal serial bus port
CN108156051A (en) * 2017-12-12 2018-06-12 上海天旦网络科技发展有限公司 Analyzing network data information shows method and system
US20190227789A1 (en) * 2016-08-19 2019-07-25 Veniam, Inc. Systems and methods for reliable software update in a network of moving things including, for example, autonomous vehicles

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101086726A (en) * 2006-06-06 2007-12-12 国际商业机器公司 Method and apparatus for disabling a universal serial bus port
US20190227789A1 (en) * 2016-08-19 2019-07-25 Veniam, Inc. Systems and methods for reliable software update in a network of moving things including, for example, autonomous vehicles
CN108156051A (en) * 2017-12-12 2018-06-12 上海天旦网络科技发展有限公司 Analyzing network data information shows method and system

Similar Documents

Publication Publication Date Title
US7941861B2 (en) Permitting multiple tasks requiring elevated rights
KR20180097674A (en) Memory reclaim method and apparatus
US20160232374A1 (en) Permission control method and apparatus
US20080022376A1 (en) System and method for hardware access control
CN106445398B (en) A kind of embedded file system and its implementation based on novel memory devices
CN105320417B (en) Page switching method and client
US20200342093A1 (en) Application program starting method and apparatus and computer readable storage medium
CN1713159A (en) Software to erase a non-volatile storage device
US20180239777A1 (en) Method and apparatus for dissolving folder and mobile terminal
CN103136018A (en) Setting method and setting system of basic input/ output system (BIOS)
CN109086109B (en) Page display method and device, electronic equipment and medium
CN106648749A (en) Dynamic calling method and system of executable program
US20090037610A1 (en) Electronic device interface control system
CN113835588A (en) Shortcut setting method and device, electronic equipment and storage medium
RU2630368C2 (en) Method and device for controlling switching of virtual navigation panel
US7127675B1 (en) Method and system for automatically revising software help documentation
CN107391361B (en) Automatic POS terminal testing method and device
CN112905962A (en) Method for protecting program codes in MCU, intelligent terminal and storage medium
CN112306550A (en) Method and device for enabling one firmware to be compatible with multiple board cards, storage medium and terminal
CN111199061A (en) USB port disabling method and device, storage medium and all-in-one machine
CN112632032B (en) Data migration method and device, storage medium and terminal equipment
CN106648962A (en) Management method and device and intelligent terminal for multi-open application
CN106485111B (en) Method, device and terminal for hiding self-service application
EP2863180A1 (en) Apparatus and method for partially updating a navigation data while driving
US9225818B2 (en) Mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000

Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd.

Address before: 510000 unit a and B, zone 02, 4th floor, No. 136, Gaopu Road, high tech Development Zone, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200526

RJ01 Rejection of invention patent application after publication