CN112052029A - Configuration method and system of USB device management software and computer device - Google Patents
Configuration method and system of USB device management software and computer device Download PDFInfo
- Publication number
- CN112052029A CN112052029A CN202010846277.1A CN202010846277A CN112052029A CN 112052029 A CN112052029 A CN 112052029A CN 202010846277 A CN202010846277 A CN 202010846277A CN 112052029 A CN112052029 A CN 112052029A
- Authority
- CN
- China
- Prior art keywords
- configuration
- usb
- management software
- user
- version information
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the field of USB equipment management, in particular to a configuration method, a configuration system and computer equipment of USB equipment management software. By inquiring the version information of the USB equipment and connecting the online server to acquire the configuration data, the compatibility problem between different versions of the USB equipment and USB equipment management software is solved. Compared with the prior art, the USB device management software does not need to be repeatedly developed, the software development workload is reduced, the user does not need to frequently and manually upgrade the software when using the USB device management software, and the complexity of software use is reduced.
Description
Technical Field
The invention relates to the field of USB device management, in particular to a configuration method and a configuration system of USB device management software and computer equipment.
Background
USB device management software may control the functions of a device by modifying the configuration of the device. For example, the device has a function of turning on and turning off the bluetooth, and a configuration item bluetooth enable is correspondingly arranged, and when the function is to be turned on, the bluetooth enable is set to true on the usb management software; to turn off this function, it suffices for the usb management software to set the bluetooth enable to false. Generally, it is necessary to know which configurations are supported by the USB device, and then fix and retain these functions to the user when writing the USB management software, but the USB device itself has function iterations, and in order to adapt these functions, the USB device management software also needs update iterations, and therefore, the USB device management software has multiple versions at the same time, which causes problems. Assuming that the version of the USB device DevVersionA supports configuration a, there is also a version of the USB device management software softversion a that can be used to control configuration a. Then, the USB device adds a function and updates a version of DevVersionB support configuration B. Because of configuration B when writing the softversion of USB device management software, configuration B cannot be controlled by softversion a. The prior art generally re-writes USB device management software, and updates softversion B to support the functionality of configuration B.
In the prior art, the USB device management software needs to be re-developed every time the USB device is updated, so that the development workload is additionally increased; during the use process of the USB device, the USB device management software of the corresponding version also needs to be downloaded again, which makes the work time-consuming and labor-consuming.
The prior art therefore remains to be improved.
Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a configuration method and a configuration system of USB device management software and a computer device, so as to reduce development cost and maintenance cost.
The first aspect of the embodiments of the present invention provides a method for configuring USB device management software, including the following steps:
acquiring version information of the USB equipment, and inquiring configuration data corresponding to the USB equipment according to the version information; and dynamically generating a UI interface according to the acquired configuration data, and providing a configuration modification function for a user.
Further, the step of obtaining the version information of the USB device includes: and sending a request instruction to the USB equipment, and receiving the version information fed back by the USB equipment according to the request instruction.
Further, the step of querying the configuration data corresponding to the USB device according to the version information includes: and sending the version information to the server, receiving a configuration list file which is inquired and fed back by the server according to the version information, and analyzing the configuration list file to obtain configuration data supported by the USB equipment.
Further, the step of dynamically generating a UI interface according to the acquired configuration data and providing a configuration modification function to the user includes: and according to the configuration name content and the configuration description text content contained in each configuration data, creating different UI controls, and generating a corresponding UI interface to provide a configuration modification function for a user.
Further, if a plurality of items of fixed configuration content exist, generating a drop-down box type UI control for the user to select; if the single configuration description text content exists, displaying the corresponding configuration description text content; and if the configuration description text content prompt requires external input of a user, generating a UI control of an input box type for the user to input and edit.
Further, the step of generating the UI control of the input box type for the user to input and edit includes: and filtering illegal input values of the user by using the regular expression, and prompting the user to refuse writing if the input of the user does not meet the configuration of the regular expression.
A second aspect of the embodiments of the present invention provides a configuration system of USB device management software, where the system includes:
the configuration query module is used for acquiring version information of the USB equipment and querying configuration data corresponding to the USB equipment according to the version information;
and the interface generating module is used for dynamically generating a UI interface according to the acquired configuration data and providing a configuration modification function for a user.
Further, the configuration query module includes: the information acquisition module is used for sending a request instruction to the USB equipment and receiving the version information fed back by the USB equipment; and the file analysis module is used for sending the version information to the server, receiving a configuration list file which is inquired and fed back by the server according to the version information, and analyzing the configuration list file to obtain the configuration data supported by the current equipment.
Further, the interface generating module is configured to generate a corresponding UI interface according to the configuration name content and the configuration description text content included in each configuration data, and create different UI controls to provide a configuration modification function for a user.
A third aspect of embodiments of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the first aspect of the embodiments when executing the computer program.
According to the configuration method and the configuration system of the USB equipment management software, the mode that the online server is connected to acquire the configuration data is adopted by inquiring the version information of the USB equipment, so that the compatibility problem between different versions of the USB equipment and the USB equipment management software is solved. Compared with the prior art, the USB device management software does not need to be repeatedly developed, the software development workload is reduced, the user does not need to frequently and manually upgrade the software when using the USB device management software, and the complexity of software use is reduced.
Drawings
Fig. 1 is a flowchart of a configuration method of USB device management software according to an embodiment of the present invention.
Fig. 2 is a preferred system block diagram of a system of USB device management software according to an embodiment of the present invention.
Fig. 3 is an internal structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described and will be readily apparent to those of ordinary skill in the art without departing from the spirit of the present invention, and therefore the present invention is not limited to the specific embodiments disclosed below.
The USB management software is run on the computer terminal and is used for controlling the USB equipment connected to the PC. With the wide use of USB and the update of USB equipment configuration, USB management software also needs to be updated, and if the USB equipment management software needs to be re-developed every time the USB equipment is updated, the development workload is very huge; during the use process of the USB device, the USB device management software of the corresponding version also needs to be downloaded again, which wastes time and labor. Therefore, the method and the device for configuring the USB device are provided with the online server, the online server is used for storing the configuration list files supported by the devices with different versions in advance, and feeding back the corresponding configuration list files according to the current device version information provided by the USB device management software, and the method and the device are very suitable for solving the problems in the prior art.
As shown in fig. 1, the preferred embodiment of the present invention is a method for configuring a USB device, comprising the steps of:
s1: acquiring version information of the USB equipment, and inquiring configuration data corresponding to the USB equipment according to the version information;
specifically, before the USB device is managed, the configuration list files used by different versions of devices are stored in the server in advance, and the corresponding configuration list files are continuously updated as the new configuration of the USB device increases. The USB equipment management software is installed on the computer terminal and interacts with the USB equipment through a USB protocol, and meanwhile, information interaction with the server is maintained through the Internet.
When the USB device is managed through the USB device management software, the USB device management software sends a version information request instruction to the USB device to be managed, and after receiving the version information request instruction, the USB device sends the corresponding version information to the USB management software. The version information is typically the version number of the USB device. By the method, the software can obtain the version information of the USB equipment, and the preparation is made for downloading the configuration data of the USB equipment from the server.
The USB device management software sends the obtained version information to the server, and the server inquires corresponding files from the pre-stored configuration list files and sends the found configuration list files to the USB management software. And when the USB management software receives the configuration list file, analyzing the configuration list file to obtain the configuration data supported by the corresponding USB equipment.
By the method, the USB device management software obtains the configuration data corresponding to the USB device version number. The method is automatically carried out after the USB management software detects the USB equipment, does not need a user to carry out additional operation, and is very convenient.
S2: and dynamically generating a UI interface according to the acquired configuration data, and providing a configuration modification function for a user.
Specifically, the configuration data obtained by the analysis of the USB device management software includes configuration name content and configuration description text content, and according to the configuration information, the USB device management software creates different UI controls and dynamically generates corresponding UI interfaces to provide a configuration modification function for the user. Each configuration data requires a different way of setting by the user and therefore requires a different UI control to be created. If a plurality of items of fixed configuration content exist, generating a UI control of a drop-down box type for the user to select; if the single configuration description text content exists, displaying the corresponding configuration description text content; and if the prompt of the configuration description text content needs external input of a user, generating an input box type UI control for the user to input and edit, in this case, filtering an illegal input value of the user by using a regular expression, and if the input of the user does not meet the configuration of the regular expression, prompting the user to refuse to write.
In an embodiment, the method for acquiring the configuration information to generate the UI interface is specifically described in C language as follows:
specifically, the USB device management software directly uses the configuration name and the configured caption text to display, and determines the type of the currently configured cntrlType, and creates different UI controls. The specific judgment is as follows:
1) if the current configuration is judged to be the following box type represented by cntrlddropdown, that is, a plurality of fixed configuration values exist, the values are obtained from listValue, and the user can only select between the values;
2) if the current configuration is judged to be the type represented by the cntrlLabel, the configuration is not modified externally and is only used for display, and the DataType corresponding to the configuration is a settingString (character string type), such as the name of the equipment, the version number of the equipment and the like;
3) if the current configuration is judged to be the input box type represented by the cntrlTextEdit, the configuration is shown to be editable for the outside, such as setting a nickname displayed by the USB device; the DataType corresponding to this configuration is settingString (string type) at this time. At this time, if isValidationSupport is true, this means that, when this configuration is written, it is necessary to filter a value that is illegal by the user, and filter it using regExp regular expression. If the configuration of the regular expression is not satisfied, writing cannot be performed, and the USB device management software prompts the rejection of writing.
By the method, the USB equipment management software can generate corresponding UI display according to each configuration information, provide an entry for modifying the configuration for a user, and control the writing effectiveness of the configuration in a mode of checking the rule through a selectable value and a regular expression. The method is also automatically carried out by software, and user operation is only needed in the final selection, viewing or input process, so that the use efficiency is greatly improved.
As shown in fig. 2, the present invention also preferably provides an embodiment of a system of USB device management software, which includes a configuration query module 1 and an interface generation module 2. The configuration query module 1 is used for acquiring version information of the USB equipment and querying configuration data corresponding to the USB equipment according to the version information; and the interface generating module 2 is used for dynamically generating a UI interface according to the acquired configuration data and providing a configuration modification function for a user.
The configuration query module 1 in this embodiment includes an information obtaining module 11 and a file parsing module 12. The information acquisition module 11 is configured to send a request instruction to the USB device, and receive version information fed back by the USB device; and the file analysis module 12 is used for sending the version information to the server, receiving a configuration list file which is inquired and fed back by the server according to the version information, and analyzing the configuration list file to obtain configuration data supported by the current equipment.
The interface generating module 2 in this embodiment is configured to generate a corresponding UI interface according to the configuration name content and the configuration description text content included in each configuration data, and create different UI controls to provide a configuration modification function for a user.
FIG. 3 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal or a server. As shown in fig. 3, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the method of privilege anomaly detection. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the method for detecting an abnormality of authority. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring version information of the USB equipment, and inquiring configuration data corresponding to the USB equipment according to the version information; and dynamically generating a UI interface according to the acquired configuration data, and providing a configuration modification function for a user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
According to the configuration method and system of the USB management software and the computer equipment, the mode that the online server is connected to acquire the configuration data is achieved by inquiring the version information of the USB equipment, and the compatibility problem between the USB equipment and different versions of the USB equipment management software is solved. Compared with the prior art, the USB device management software does not need to be repeatedly developed, the software development workload is reduced, the user does not need to frequently and manually upgrade the software when using the USB device management software, and the complexity of software use is reduced.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A configuration method of USB device management software is characterized by comprising the following steps:
acquiring version information of the USB equipment, and inquiring configuration data corresponding to the USB equipment according to the version information;
and dynamically generating a UI interface according to the acquired configuration data, and providing a configuration modification function for a user.
2. The method for configuring USB device management software according to claim 1, wherein the step of obtaining version information of the USB device includes:
and sending a request instruction to the USB equipment, and receiving the version information fed back by the USB equipment according to the request instruction.
3. The method for configuring USB device management software according to claim 1, wherein the step of querying the configuration data corresponding to the USB device according to the version information includes:
and sending the version information to the server, receiving a configuration list file which is inquired and fed back by the server according to the version information, and analyzing the configuration list file to obtain configuration data supported by the USB equipment.
4. The method for configuring USB device management software according to claim 1, wherein the step of dynamically generating a UI interface according to the obtained configuration data and providing a configuration modification function to the user comprises:
and according to the configuration name content and the configuration description text content contained in each configuration data, creating different UI controls, and generating a corresponding UI interface to provide a configuration modification function for a user.
5. The method for configuring USB device management software according to claim 4, comprising the steps of:
if a plurality of items of fixed configuration content exist, generating a UI control of a drop-down box type for the user to select;
if the single configuration description text content exists, displaying the corresponding configuration description text content;
and if the configuration description text content prompt requires external input of a user, generating a UI control of an input box type for the user to input and edit.
6. The method for configuring USB device management software according to claim 5, wherein the step of generating UI controls of input box type for user input editing comprises:
and filtering illegal input values of the user by using the regular expression, and prompting the user to refuse writing if the input of the user does not meet the configuration of the regular expression.
7. A system of USB device management software, the system comprising:
the configuration query module is used for acquiring version information of the USB equipment and querying configuration data corresponding to the USB equipment according to the version information;
and the interface generating module is used for dynamically generating a UI interface according to the acquired configuration data and providing a configuration modification function for a user.
8. The system of USB device management software according to claim 7, wherein the configuration query module comprises:
the information acquisition module is used for sending a request instruction to the USB equipment and receiving the version information fed back by the USB equipment;
and the file analysis module is used for sending the version information to the server, receiving a configuration list file which is inquired and fed back by the server according to the version information, and analyzing the configuration list file to obtain the configuration data supported by the current equipment.
9. The system of USB device management software according to claim 7, wherein the interface generating module is configured to generate a corresponding UI interface according to the configuration name content and the configuration description text content included in each configuration data, and create different UI controls to provide the configuration modification function for the user.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010846277.1A CN112052029B (en) | 2020-08-20 | 2020-08-20 | Configuration method and system of USB device management software and computer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010846277.1A CN112052029B (en) | 2020-08-20 | 2020-08-20 | Configuration method and system of USB device management software and computer device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112052029A true CN112052029A (en) | 2020-12-08 |
CN112052029B CN112052029B (en) | 2022-08-12 |
Family
ID=73600088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010846277.1A Active CN112052029B (en) | 2020-08-20 | 2020-08-20 | Configuration method and system of USB device management software and computer device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112052029B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988250A (en) * | 2021-03-26 | 2021-06-18 | 山东英信计算机技术有限公司 | Multi-mainboard USB service configuration method, system, terminal and storage medium |
CN114090490A (en) * | 2021-09-03 | 2022-02-25 | 浙江华创视讯科技有限公司 | Method and device for setting USB device name and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104598400A (en) * | 2014-12-15 | 2015-05-06 | 北京奇虎科技有限公司 | Peripheral equipment management method, device and system |
CN105335195A (en) * | 2015-11-02 | 2016-02-17 | 北京金山安全软件有限公司 | Device driver upgrading method and device and electronic device |
WO2016168819A1 (en) * | 2015-04-16 | 2016-10-20 | Retriever Enterprises, Llc | Payment bridge |
CN106980511A (en) * | 2017-05-09 | 2017-07-25 | 深圳市乐得瑞科技有限公司 | Firmware upgrade method, apparatus and system |
CN108898230A (en) * | 2018-05-24 | 2018-11-27 | 华为技术有限公司 | A kind of device management method and management server |
CN109298956A (en) * | 2018-10-09 | 2019-02-01 | Oppo广东移动通信有限公司 | Document transmission method, device and terminal device |
CN110609681A (en) * | 2018-06-14 | 2019-12-24 | 北京京东尚科信息技术有限公司 | System, method, device and medium for visually configuring and generating WEB application |
-
2020
- 2020-08-20 CN CN202010846277.1A patent/CN112052029B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104598400A (en) * | 2014-12-15 | 2015-05-06 | 北京奇虎科技有限公司 | Peripheral equipment management method, device and system |
WO2016168819A1 (en) * | 2015-04-16 | 2016-10-20 | Retriever Enterprises, Llc | Payment bridge |
CN105335195A (en) * | 2015-11-02 | 2016-02-17 | 北京金山安全软件有限公司 | Device driver upgrading method and device and electronic device |
CN106980511A (en) * | 2017-05-09 | 2017-07-25 | 深圳市乐得瑞科技有限公司 | Firmware upgrade method, apparatus and system |
CN108898230A (en) * | 2018-05-24 | 2018-11-27 | 华为技术有限公司 | A kind of device management method and management server |
CN110609681A (en) * | 2018-06-14 | 2019-12-24 | 北京京东尚科信息技术有限公司 | System, method, device and medium for visually configuring and generating WEB application |
CN109298956A (en) * | 2018-10-09 | 2019-02-01 | Oppo广东移动通信有限公司 | Document transmission method, device and terminal device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988250A (en) * | 2021-03-26 | 2021-06-18 | 山东英信计算机技术有限公司 | Multi-mainboard USB service configuration method, system, terminal and storage medium |
CN112988250B (en) * | 2021-03-26 | 2023-02-28 | 山东英信计算机技术有限公司 | Multi-mainboard USB service configuration method, system, terminal and storage medium |
CN114090490A (en) * | 2021-09-03 | 2022-02-25 | 浙江华创视讯科技有限公司 | Method and device for setting USB device name and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112052029B (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6910208B1 (en) | System and method of providing replaceable and extensible user interface for the installation of a suite of applications | |
US11449348B2 (en) | Pre/post deployment customization | |
JP5336965B2 (en) | Information processing apparatus, information processing apparatus control method, and program | |
CN112052029B (en) | Configuration method and system of USB device management software and computer device | |
CN111596932B (en) | Mirror image file generation method and device and computer readable storage medium | |
US20060036569A1 (en) | Method and apparatus for changing background screen in gui operating system | |
US9329897B2 (en) | Use of dynamic profiles for creating and using a distributed computing environment | |
CN111367518A (en) | Page layout method and device, computing equipment and computer storage medium | |
CN110096304A (en) | Task construction method, device, equipment and storage medium based on Jenkins | |
US20170199733A1 (en) | Method for terminal to update operating system, terminal and system | |
CN113268232A (en) | Page skin generation method and device and computer readable storage medium | |
CN108268274B (en) | Application management method and device, storage medium and electronic equipment | |
CN113448793A (en) | System monitoring method and device compatible with multiple operating systems | |
JP5380895B2 (en) | Management program, management method and management apparatus | |
US20090240724A1 (en) | Environment definition files for an environment definition system | |
JP4802613B2 (en) | Installation system and installation program | |
CN114327709A (en) | Control page generation method and device, intelligent device and storage medium | |
CN112256257A (en) | Interface construction method, readable storage medium and electronic device | |
JP2018081607A (en) | Information processing device, control method of information processing device, and program | |
JP5183560B2 (en) | Transfer device and transfer program | |
KR100594732B1 (en) | Network printing system having a function of public using favorite among users and a method Network printing thereof | |
JP2007226695A (en) | Information processor, control method, and control program | |
US20230229402A1 (en) | Intelligent and efficient pipeline management | |
US6715072B1 (en) | System for automatically reading stored rewriting data and replacing system generated setup data by the rewriting data before system initialization | |
CN116991355B (en) | Method, system and device for supporting LED driving chip by modifying and iterating script |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |