CN114090490A - Method and device for setting USB device name and storage medium - Google Patents

Method and device for setting USB device name and storage medium Download PDF

Info

Publication number
CN114090490A
CN114090490A CN202111032734.4A CN202111032734A CN114090490A CN 114090490 A CN114090490 A CN 114090490A CN 202111032734 A CN202111032734 A CN 202111032734A CN 114090490 A CN114090490 A CN 114090490A
Authority
CN
China
Prior art keywords
target
name
usb
equipment
usb equipment
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
CN202111032734.4A
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.)
Zhejiang Huachuang Video Signal Technology Co Ltd
Original Assignee
Zhejiang Huachuang Video Signal 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 Zhejiang Huachuang Video Signal Technology Co Ltd filed Critical Zhejiang Huachuang Video Signal Technology Co Ltd
Priority to CN202111032734.4A priority Critical patent/CN114090490A/en
Publication of CN114090490A publication Critical patent/CN114090490A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • G06F9/4413Plug-and-play [PnP]

Landscapes

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

Abstract

The invention discloses a method, a device and a storage medium for setting USB equipment names, wherein the method comprises the following steps: when a USB equipment name setting instruction is received, displaying a USB equipment name setting window on a display screen; receiving a target name set by a user on the window for the selected target USB device, and storing the target name in a storage medium; when the target USB equipment is identified to be restarted, acquiring the target name from the storage medium, and updating the target name into a target descriptor of the target USB equipment; and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment. Therefore, the name of the USB equipment is modified according to the user requirement, and great convenience is brought to the user to distinguish and select the appointed USB equipment for control.

Description

Method and device for setting USB device name and storage medium
Technical Field
The invention relates to the technical field of USB equipment identification, in particular to a method and a device for setting USB equipment names and a storage medium.
Background
Universal Serial Bus (USB) devices are standard protocols over USB, i.e., descriptors of USB devices are recognized and controlled by a host device such as an electronic device (e.g., a windows PC). The electronic device takes the descriptor from the USB device, and can know various necessary information such as the name and the product serial number of the USB device by analyzing the descriptor. The USB device includes a USB camera, a USB microphone, a USB sound, and the like. Taking a USB camera as an example, when the USB camera is connected to the electronic device for the first time, the electronic device will drive the electronic device to perform the camera identification process, and after the identification is successful, the electronic device records information such as the name and product serial number of the camera. When the USB camera is connected with the electronic equipment next time, the electronic equipment can directly identify the USB camera and display the name of the USB camera without driving identification again.
In the conventional scheme, after the USB device leaves the factory, the descriptor of the USB device is all solidified and is not modifiable. The descriptors of all devices of the same type of USB device are the same. Therefore, on the electronic device which recognizes the camera, the name recognized by the electronic device is the same no matter which or how many electronic devices are connected, and the name of the USB device which is seen by the user on the electronic device is the same. As shown in fig. 1, when the electronic device is connected to two USB devices of the same model, the displayed names are both "USB camera Video". It is difficult for a user to distinguish and select a designated USB device for control.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for setting names of USB (universal serial bus) equipment, which are used for solving the problems that descriptors of all the equipment of the same type of USB equipment are the same, and when electronic equipment is connected with a plurality of pieces of USB equipment of the same type, the display names are the same, and a user cannot distinguish and select the appointed USB equipment for control conveniently.
The embodiment of the invention provides a method for setting USB equipment names, which comprises the following steps:
when a USB equipment name setting instruction is received, displaying a USB equipment name setting window on a display screen;
receiving a target name set by a user on the window for the selected target USB device, and storing the target name in a storage medium;
acquiring the target name from the storage medium, and updating the target name into a target descriptor of the target USB device;
and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment.
Further, when receiving a USB device name setting instruction, displaying a USB device name setting interface on a display screen includes:
when a USB equipment name setting instruction input by a user is received, or at least two names in the currently connected USB equipment are identified to be the same, a USB equipment name setting interface is displayed on a display screen, wherein a USB equipment list with the same name is displayed in the interface.
Further, when it is recognized that the target USB device is restarted, after acquiring the target name from the storage medium, the driver loads and recognizes the target descriptor, and before displaying the target name of the target USB device, the method further includes:
generating a target product serial number according to the target name, wherein the target product serial numbers generated by different target names are different; judging whether the stored product serial numbers have the target product serial numbers, if not, updating the target names and the target product serial numbers into the target descriptors of the target USB equipment; and the driver loads and identifies the target descriptor, displays the target name of the target USB equipment, and if so, displays the target name of the target USB equipment.
Further, after the driver loader identifies the target descriptor and displays the target name of the target USB device, the method further includes:
and saving the target name and the target product serial number.
Further, said saving the target name in a storage medium comprises:
and storing the target name in a cache flash or an electrified erasable programmable read-only memory (E2 PROM).
On the other hand, an embodiment of the present invention provides an apparatus for setting names of USB devices, where the apparatus includes:
the first receiving module is used for displaying a USB equipment name setting window on the display screen when receiving a USB equipment name setting instruction;
the second receiving module is used for receiving a target name set by a user on the window aiming at the selected target USB device and storing the target name in a storage medium;
the updating module is used for acquiring the target name from the storage medium and updating the target name into a target descriptor of the target USB device;
and the driving module is used for driving, loading and identifying the target descriptor and displaying the target name of the target USB equipment.
Further, the first receiving module is specifically configured to display a USB device name setting interface on a display screen when receiving a USB device name setting instruction input by a user, or when recognizing that at least two names exist in currently connected USB devices that are the same, where a USB device list with the same name is displayed in the interface.
Further, the apparatus further comprises:
the sequence number generation module is used for generating a target product sequence number according to the target name, wherein the target product sequence numbers generated by different target names are different; judging whether the stored product serial numbers have the target product serial numbers, if not, updating the target names and the target product serial numbers into the target descriptors of the target USB equipment; and the driver loads and identifies the target descriptor, displays the target name of the target USB equipment, and if so, displays the target name of the target USB equipment.
Further, the apparatus further comprises:
and the storage module is used for storing the target name and the target product serial number.
Further, the second receiving module is specifically configured to store the target name in a cache flash or a charged erasable programmable read only memory E2 PROM.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the above.
The embodiment of the invention provides a method, a device and a storage medium for setting USB equipment names, wherein the method comprises the following steps: when a USB equipment name setting instruction is received, displaying a USB equipment name setting window on a display screen; receiving a target name set by a user on the window for the selected target USB device, and storing the target name in a storage medium; when the target USB equipment is identified to be restarted, acquiring the target name from the storage medium, and updating the target name into a target descriptor of the target USB equipment; and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment.
The technical scheme has the following advantages or beneficial effects:
in the embodiment of the invention, when the electronic equipment receives a USB equipment name setting instruction, a window for a user to modify the USB equipment name is displayed on a display screen, after the user inputs a new target name, the target name is stored in a storage medium, the target name is updated into a target descriptor of the target USB equipment, the target descriptor is driven and loaded to identify, and the target name of the target USB equipment is displayed. Therefore, the name of the USB equipment is modified according to the user requirement, and great convenience is brought to the user to distinguish and select the appointed USB equipment for control.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating the effect of displaying names of USB devices in the prior art;
fig. 2 is a schematic diagram of a USB device name setting process provided in embodiment 1 of the present invention;
fig. 3 is a flowchart of setting names of USB devices according to embodiment 3 of the present invention;
fig. 4 is a diagram illustrating a display effect of names of USB devices according to embodiment 3 of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for setting names of USB devices according to embodiment 4 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood 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.
Example 1:
fig. 2 is a schematic diagram of a USB device name setting process provided in an embodiment of the present invention, which includes the following steps:
s101: and when receiving a USB equipment name setting instruction, displaying a USB equipment name setting window on the display screen.
S102: and receiving a target name set by a user on the window for the selected target USB device, and storing the target name in a storage medium.
S103: and acquiring the target name from the storage medium, and updating the target name into a target descriptor of the target USB device.
S104: and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment.
The method for setting the name of the USB device provided by the embodiment of the invention is applied to the electronic device, and the electronic device can be a PC, a tablet computer and other devices which can be connected with the USB device.
After the USB equipment is connected with the electronic equipment, a user can open a control interface of the USB equipment in a remote controller or the like and send a USB equipment name setting instruction to the electronic equipment through the remote controller. The electronic equipment can be configured with a USB equipment name setting function in advance, and when a user triggers the USB equipment name setting function through a remote controller, the user considers that a USB equipment name setting instruction is received. And after the electronic equipment receives the USB equipment name setting instruction, displaying a USB equipment name setting window on a display screen of the electronic equipment. The current names of all USB devices currently connected with the electronic device can be displayed in the USB device name setting window.
The user firstly selects the USB equipment needing to set the name in the USB equipment name setting window, and the USB equipment selected by the user is called target USB equipment in the embodiment of the invention. The user then enters a target name set for the selected target USB device. And after receiving the target name, the electronic equipment stores the target name in a storage medium. Specifically, storing the target name in a storage medium includes: and storing the target name in a cache flash or an electrified erasable programmable read-only memory (E2 PROM).
After the user sets the target name of the target USB device, the target USB device needs to be restarted, and when the electronic device recognizes that the target USB device is restarted, the target name is acquired from the storage medium and is updated into the target descriptor of the target USB device. The electronic device driver then loads the identification target descriptor, at which point the target name of the target USB device can be displayed.
In the embodiment of the invention, when the electronic equipment receives a USB equipment name setting instruction, a window for a user to modify the USB equipment name is displayed on a display screen, after the user inputs a new target name, the target name is stored in a storage medium, and after the target USB equipment is restarted, the target name is updated into a target descriptor of the target USB equipment, the target descriptor is driven and loaded to identify, and the target name of the target USB equipment is displayed. Therefore, the name of the USB equipment is modified according to the user requirement, and great convenience is brought to the user to distinguish and select the appointed USB equipment for control.
Example 2:
on one hand, in order to improve user experience and on the other hand, in order to automatically remind a user of setting a name of a USB device, on the basis of the above embodiments, in an embodiment of the present invention, when receiving a USB device name setting instruction, displaying a USB device name setting interface on a display screen includes:
when a USB equipment name setting instruction input by a user is received, or at least two names in the currently connected USB equipment are identified to be the same, a USB equipment name setting interface is displayed on a display screen, wherein a USB equipment list with the same name is displayed in the interface.
In the embodiment of the invention, the user can actively send the USB device name setting instruction to the electronic device, for example, the electronic device can be configured with the USB device name setting function in advance, and when the user triggers the USB device name setting function through the remote controller, the user considers that the USB device name setting instruction is received. Or, the electronic device may identify a name of each USB device connected to the electronic device, and when it is identified that at least two names exist in the currently connected USB devices are the same, display a USB device name setting interface on the display screen, where a USB device list with the same name is displayed in the interface. Therefore, the method and the device realize automatic reminding of the user to change the name of the USB device so that the user can distinguish and select the specified USB device for control.
Example 3:
in order to improve efficiency of setting names of USB devices, on the basis of the foregoing embodiments, in an embodiment of the present invention, after acquiring the target name from the storage medium when the target USB device is recognized to be restarted, the method further includes, before the driver loads and identifies the target descriptor and displays the target name of the target USB device:
generating a target product serial number according to the target name, wherein the target product serial numbers generated by different target names are different; judging whether the stored product serial numbers have the target product serial numbers, if not, updating the target names and the target product serial numbers into the target descriptors of the target USB equipment; and the driver loads and identifies the target descriptor, displays the target name of the target USB equipment, and if so, displays the target name of the target USB equipment.
In the embodiment of the present invention, when it is recognized that the target USB device is restarted, after the target name is acquired from the storage medium, a target product serial number is first generated according to the target name. It should be noted that the target product serial number corresponding to the target name may be generated according to a rule predefined by a USB device manufacturer. Wherein, the target product serial numbers generated by different target names are different. The electronic equipment can save the product serial number corresponding to the name of the historical and realistic USB equipment. Judging whether a target product serial number exists in the stored product serial numbers, if not, the electronic equipment considers that the target USB equipment is connected with the electronic equipment for the first time, and at the moment, updating the target name and the target product serial number into a target descriptor of the target USB equipment; and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment. And if the stored product serial number has the target product serial number, the electronic equipment considers that the target USB equipment is not connected with the electronic equipment for the first time, and the target name of the target USB equipment is directly displayed at the moment.
According to the scheme provided by the embodiment of the invention, when the electronic equipment determines that the target USB equipment is connected with the electronic equipment for the first time, the target name and the target product serial number are updated into the target descriptor of the target USB equipment, the target descriptor is driven and loaded to be identified, and the target name of the target USB equipment is displayed. Otherwise, the operation is not carried out, and the target name of the target USB equipment is directly displayed. On the one hand, the efficiency of setting the names of the USB devices is improved, and on the other hand, the power consumption of the electronic devices is saved.
In this embodiment of the present invention, after the driver loads and identifies the target descriptor and displays the target name of the target USB device, the method further includes: and saving the target name and the target product serial number.
Fig. 3 is a flowchart of setting names of USB devices according to an embodiment of the present invention.
1. A USB device user configuration interface. After the USB device is connected to an electronic device (PC), the real-time screen of the USB device can be obtained through various standard software, and when the electronic device is connected to a plurality of USB devices, a user can also use different USB devices according to the real-time screens of the different USB devices. The user opens the control interface of the camera by means of a remote controller or the like. The target name of the camera can be customized through a remote controller.
2. And saving the USB device name. And after the electronic equipment receives the target name set by the user on the window for the selected target USB equipment, storing the target name in a flash or E2PROM and other storage media.
3. And restarting the USB equipment. In order for the electronic device to recognize the target name of the USB device, the USB device needs a reboot process.
4. The device descriptor is modified. When the USB equipment is restarted, the target name of the USB equipment is obtained from the storage medium, the target product serial number is generated according to the target name, and the target name and the target product serial number are updated into the target descriptor.
5. And the electronic equipment master control re-identifies. After the USB equipment is restarted, the electronic equipment drives the target descriptor, and at the moment, the fact that the target name and the target product serial number are not in the electronic equipment is found, and driving, loading and identifying can be conducted again. Finally, the electronic device will display the target name of the USB device. The effect is shown in fig. 4, where one USB device name is modified to be "Camera 1".
In the embodiment of the invention, in order to further facilitate the judgment of a user, an automatic detection process is provided, which is specifically realized as follows:
automatic detection flow: as shown in fig. 5, the electronic device develops a host detection program, scans all currently connected USB devices, detects names of the USB devices, and automatically prompts the user to change the names if the USB devices have the same name. The method is greatly convenient for users to use, and improves the user experience.
And dynamically modifying the name of the USB equipment in real time according to the needs of the user. When the same electronic equipment is connected with a plurality of USB equipment with the same model, the appointed USB equipment can be easily controlled. Convenient and clear, and visualized.
Example 4:
fig. 5 is a schematic structural diagram of an apparatus for setting names of USB devices according to an embodiment of the present invention, where the apparatus includes:
a first receiving module 51, configured to display a USB device name setting window on a display screen when receiving a USB device name setting instruction;
a second receiving module 52, configured to receive a target name set by the user on the window for the selected target USB device, and store the target name in a storage medium;
an updating module 53, configured to obtain the target name from the storage medium, and update the target name into a target descriptor of the target USB device;
and the driving module 54 is configured to drive loading and identifying the target descriptor, and display a target name of the target USB device.
The first receiving module 51 is specifically configured to display a USB device name setting interface on a display screen when receiving a USB device name setting instruction input by a user, or when recognizing that at least two names exist in currently connected USB devices, where a USB device list with the same name is displayed in the interface.
The device further comprises:
a sequence number generating module 55, configured to generate a target product sequence number according to the target name, where the target product sequence numbers generated by different target names are different; judging whether the stored product serial numbers have the target product serial numbers, if not, updating the target names and the target product serial numbers into the target descriptors of the target USB equipment; and the driver loads and identifies the target descriptor, displays the target name of the target USB equipment, and if so, displays the target name of the target USB equipment.
The device further comprises:
and the storage module 56 is used for storing the target name and the target product serial number.
The second receiving module 52 is specifically configured to store the target name in a cache flash or a charged erasable programmable read only memory E2 PROM.
Example 5:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
when a USB equipment name setting instruction is received, displaying a USB equipment name setting window on a display screen;
receiving a target name set by a user on the window for the selected target USB device, and storing the target name in a storage medium;
acquiring the target name from the storage medium, and updating the target name into a target descriptor of the target USB device;
and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment.
Based on the same inventive concept, embodiments of the present invention further provide a computer-readable storage medium, and since a principle of solving a problem when a processor executes a computer program stored in the computer-readable storage medium is similar to a method for setting a name of a USB device, the implementation of the computer program stored in the computer-readable storage medium by the processor may refer to implementation of the method, and repeated details are not repeated.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
A computer program is stored in a computer-readable storage medium provided in an embodiment of the present invention, and when executed by a processor, the computer program realizes that a USB device name setting window is displayed on a display screen when a USB device name setting instruction is received; receiving a target name set by a user on the window for the selected target USB device, and storing the target name in a storage medium; when the target USB equipment is identified to be restarted, acquiring the target name from the storage medium, and updating the target name into a target descriptor of the target USB equipment; and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment. Therefore, the name of the USB equipment is modified according to the user requirement, and great convenience is brought to the user to distinguish and select the appointed USB equipment for control.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (11)

1. A method for setting USB device names, the method comprising:
when a USB equipment name setting instruction is received, displaying a USB equipment name setting window on a display screen;
receiving a target name set by a user on the window for the selected target USB device, and storing the target name in a storage medium;
acquiring the target name from the storage medium, and updating the target name into a target descriptor of the target USB device;
and the driver loads and identifies the target descriptor and displays the target name of the target USB equipment.
2. The method of claim 1, wherein displaying a USB device name setting interface on a display screen when receiving a USB device name setting instruction comprises:
when a USB equipment name setting instruction input by a user is received, or at least two names in the currently connected USB equipment are identified to be the same, a USB equipment name setting interface is displayed on a display screen, wherein a USB equipment list with the same name is displayed in the interface.
3. The method as claimed in claim 1, wherein, when it is recognized that the target USB device is restarted, after the target name is obtained from the storage medium, the driver loads the target descriptor and before the target name of the target USB device is displayed, the method further comprises:
generating a target product serial number according to the target name, wherein the target product serial numbers generated by different target names are different; judging whether the stored product serial numbers have the target product serial numbers, if not, updating the target names and the target product serial numbers into the target descriptors of the target USB equipment; and the driver loads and identifies the target descriptor, displays the target name of the target USB equipment, and if so, displays the target name of the target USB equipment.
4. The method of claim 3, wherein after driver loading identifies the target descriptor, displaying the target name of the target USB device, the method further comprises:
and saving the target name and the target product serial number.
5. The method of claim 2, wherein said saving the target name in a storage medium comprises:
and storing the target name in a cache flash or an electrified erasable programmable read-only memory (E2 PROM).
6. An apparatus for USB device name setting, the apparatus comprising:
the first receiving module is used for displaying a USB equipment name setting window on the display screen when receiving a USB equipment name setting instruction;
the second receiving module is used for receiving a target name set by a user on the window aiming at the selected target USB device and storing the target name in a storage medium;
the updating module is used for acquiring the target name from the storage medium and updating the target name into a target descriptor of the target USB device;
and the driving module is used for driving, loading and identifying the target descriptor and displaying the target name of the target USB equipment.
7. The apparatus according to claim 6, wherein the first receiving module is specifically configured to display a USB device name setting interface on the display screen when receiving a USB device name setting instruction input by a user or when recognizing that at least two names exist in currently connected USB devices that are the same, where a USB device list with the same name is displayed in the interface.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the sequence number generation module is used for generating a target product sequence number according to the target name, wherein the target product sequence numbers generated by different target names are different; judging whether the stored product serial numbers have the target product serial numbers, if not, updating the target names and the target product serial numbers into the target descriptors of the target USB equipment; and the driver loads and identifies the target descriptor, displays the target name of the target USB equipment, and if so, displays the target name of the target USB equipment.
9. The apparatus of claim 8, wherein the apparatus further comprises:
and the storage module is used for storing the target name and the target product serial number.
10. The apparatus of claim 7, wherein the second receiving module is specifically configured to store the target name in a cache flash or a powered erasable programmable read-only memory (E2 PROM).
11. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1-5.
CN202111032734.4A 2021-09-03 2021-09-03 Method and device for setting USB device name and storage medium Pending CN114090490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111032734.4A CN114090490A (en) 2021-09-03 2021-09-03 Method and device for setting USB device name and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111032734.4A CN114090490A (en) 2021-09-03 2021-09-03 Method and device for setting USB device name and storage medium

Publications (1)

Publication Number Publication Date
CN114090490A true CN114090490A (en) 2022-02-25

Family

ID=80296345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111032734.4A Pending CN114090490A (en) 2021-09-03 2021-09-03 Method and device for setting USB device name and storage medium

Country Status (1)

Country Link
CN (1) CN114090490A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377811A (en) * 2019-07-17 2019-10-25 江苏满运软件科技有限公司 A kind of display methods of device name, device, storage medium and electronic equipment
CN110580233A (en) * 2018-06-07 2019-12-17 佛山市顺德区美的电热电器制造有限公司 information processing method based on USB interface, cooking equipment and storage medium
CN111225285A (en) * 2020-01-07 2020-06-02 海信视像科技股份有限公司 Bluetooth device display name modification and display method, device, equipment and medium
CN112052029A (en) * 2020-08-20 2020-12-08 厦门亿联网络技术股份有限公司 Configuration method and system of USB device management software and computer device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580233A (en) * 2018-06-07 2019-12-17 佛山市顺德区美的电热电器制造有限公司 information processing method based on USB interface, cooking equipment and storage medium
CN110377811A (en) * 2019-07-17 2019-10-25 江苏满运软件科技有限公司 A kind of display methods of device name, device, storage medium and electronic equipment
CN111225285A (en) * 2020-01-07 2020-06-02 海信视像科技股份有限公司 Bluetooth device display name modification and display method, device, equipment and medium
CN112052029A (en) * 2020-08-20 2020-12-08 厦门亿联网络技术股份有限公司 Configuration method and system of USB device management software and computer device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GUANGLINGJUN: ""计算机通过注册表修改摄像机设备的名称"", 《CSDN网站》, pages 1 - 6 *
姚振国;: "基于Linux的USB设备管理器的设计与实现", 计算机与现代化, no. 10, pages 202 - 206 *

Similar Documents

Publication Publication Date Title
CN103942021A (en) Method for presenting content, method for pushing content presenting modes and intelligent terminal
CN107704282B (en) Loading method and device applied to embedded system
CN105554547A (en) Self-adaptive configuration method and system for display screen
CN107479721A (en) Storage device, the system and method for long-range multicomputer handoff technique
CN111324378A (en) Custom H5 page parameter configuration applied to playing of video monitoring equipment in APP
CN109189486B (en) Display screen driver loading method and device, terminal and storage medium
CN111225285A (en) Bluetooth device display name modification and display method, device, equipment and medium
CN111143019B (en) Control method and system for popup window of mobile terminal
CN111168688B (en) Robot action playback method and device
CN116382746A (en) Firmware upgrading method, device, equipment and medium
CN105117250A (en) Compatibility processing method and electronic device
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
CN104134033A (en) Method and device for identifying user equipment
CN105345822A (en) Intelligent robot control method and device
CN114090490A (en) Method and device for setting USB device name and storage medium
CN110457101B (en) Information processing method, electronic equipment and computer readable storage medium
CN111191161A (en) Page display method, storage medium, electronic device and system
JP2004295589A (en) Controller and method for updating program
CN109285495B (en) Electric appliance and screen driving method and device thereof
CN109254820B (en) Window closing method, device, terminal and computer readable storage medium
CN106484442A (en) Server system and the method for updating start image shelves
CN113434179B (en) Online upgrade method, device and equipment of programmable power supply and storage medium
CN112882869A (en) Servo system parameter management method, device, equipment and storage medium
CN107818002A (en) The management method and device of a kind of Command Line Interface
CN109951860B (en) Method for acquiring WIFI information, smart television and storage medium

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