CN115033437A - Automatic proofreading method, system and medium for USB interface connection equipment - Google Patents

Automatic proofreading method, system and medium for USB interface connection equipment Download PDF

Info

Publication number
CN115033437A
CN115033437A CN202210717159.XA CN202210717159A CN115033437A CN 115033437 A CN115033437 A CN 115033437A CN 202210717159 A CN202210717159 A CN 202210717159A CN 115033437 A CN115033437 A CN 115033437A
Authority
CN
China
Prior art keywords
equipment
information
model
proofreading
usb
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
CN202210717159.XA
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.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN202210717159.XA priority Critical patent/CN115033437A/en
Publication of CN115033437A publication Critical patent/CN115033437A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • 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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic proofreading method, a system and a medium for USB interface connection equipment, wherein the method comprises the following steps: setting a connection detection algorithm, a reference data acquisition algorithm, a USB interface information reading algorithm and a data proofreading algorithm; setting a first equipment online quantity threshold value, a second equipment online quantity threshold value and a proofreading list template; establishing a model database; calling a connection detection algorithm based on the online quantity threshold of the first equipment and the online quantity threshold of the second equipment to obtain a detection strategy identifier; generating proofreading information to be proofread based on a proofreading list template, a detection strategy identifier, a reference data acquisition algorithm and a USB interface information reading algorithm; calling a data proofreading algorithm based on the model database and the information to be proofread to obtain a proofreading result; according to the invention, the equipment model is not required to be checked by an operator, the automatic proofreading can be carried out only by inputting the equipment model to be proofread according to the requirement, the corresponding proofreading result is visually output, and the proofreading efficiency is extremely high.

Description

Automatic proofreading method, system and medium for USB interface connection equipment
Technical Field
The invention relates to the technical field of self-service terminal equipment testing, in particular to an automatic proofreading method, system and medium for USB interface connection equipment.
Background
At present, self-service terminal equipment is widely applied to places with higher business flow, such as hospitals, banks, financial institutions, government affair comprehensive handling halls and other places, the types of all the places are different, and finally, the functions of modules related to various types of terminal equipment are also diversified, so that before a self-service terminal prototype comes into the market, a tester needs to check the models of product use modules of the self-service terminal equipment one by one.
Most of testers in the prior art check the model codes of the equipment through a guide book or naked eyes, and then distinguish the type of the calibration equipment, and because part of module shell model marks in the self-service terminal equipment are not obvious and the installation positions are different, the testers cannot check conveniently and consume too much time, therefore, a method capable of automatically and rapidly calibrating the product modules of the self-service terminal equipment needs to be designed, so that rapid delivery test is realized, and delivery test efficiency is improved.
Disclosure of Invention
The invention mainly aims to design a method capable of automatically and quickly calibrating a product module of self-service terminal equipment, so that quick delivery test is realized, and delivery test efficiency is improved.
In order to achieve the purpose, the invention adopts a technical scheme that: the automatic proofreading method for the USB interface connection equipment comprises the following steps:
a configuration step:
setting a connection detection algorithm, a reference data acquisition algorithm, a USB interface information reading algorithm and a data proofreading algorithm;
setting a first equipment online quantity threshold value, a second equipment online quantity threshold value and a proofreading list template;
establishing a model database;
a reading step:
calling the connection detection algorithm based on the online quantity threshold of the first equipment and the online quantity threshold of the second equipment to obtain a detection strategy identifier;
generating information to be collated based on the collation list template, the detection strategy identification, the reference data acquisition algorithm and the USB interface information reading algorithm;
and (3) a calibration step:
and calling the data proofreading algorithm based on the model database and the information to be proofread to obtain a proofreading result.
As a refinement, the first device online quantity threshold is smaller than the second device online quantity threshold;
the collation list template includes: the system comprises a single data template and a plurality of data templates, wherein the plurality of data templates are provided with a reference data list and a proofreading data list;
the model database stores a plurality of reference equipment models and a plurality of equipment names respectively matched with the reference equipment models.
As an improved scheme, the connection detection algorithm is as follows:
acquiring USB connection information of self-service terminal equipment, and reading the equipment connection number in the USB connection information;
comparing the device connection number with the first device online number threshold and the second device online number threshold;
if the device connection number is larger than the first device online number threshold and the device connection number is smaller than the second device online number threshold, generating a first data identifier based on the USB connection information, and setting the first data identifier as the detection strategy identifier;
and if the equipment connection quantity is greater than the online quantity threshold of the second equipment, generating a second data identifier based on the USB connection information, and setting the second data identifier as the detection strategy identifier.
As an improved solution, the step of generating the information to be collated based on the collation list template, the detection policy identifier, the reference data acquisition algorithm, and the USB interface information reading algorithm further includes:
identifying the detection strategy identification, and reading the USB connection information in the detection strategy identification;
when the detection strategy identifier is the first data identifier, calling the reference data acquisition algorithm to acquire a reference name of the equipment to be corrected; executing single data proofreading operation based on the single data template, the USB connection information, the standard name of the equipment to be proofread and the USB interface information reading algorithm to obtain single data information, and setting the single data information as the information to be proofread;
when the detection strategy identifier is the second data, calling the reference data acquisition algorithm to acquire a plurality of reference names of the equipment to be calibrated; and executing multi-data proofreading operation based on the multi-data template, the USB connection information, the USB interface information reading algorithm and the plurality of reference names of the equipment to be proofread to obtain multi-data information, and setting the multi-data information as the information to be proofread.
As an improved scheme, the single data proofreading operation comprises the following steps:
calling the USB interface information reading algorithm to access the equipment manager of the self-service terminal equipment, and calling the USB interface information reading algorithm to read the model of the first USB connecting equipment matched with the USB connecting information in the equipment manager;
and importing the model of the first USB connection equipment and the reference name of the equipment to be calibrated into the single data template to obtain the single data information.
As an improved solution, the multiple data collation operation includes:
calling the USB interface information reading algorithm to access the equipment manager of the self-service terminal equipment, and calling the USB interface information reading algorithm to read a plurality of second USB connection equipment models matched with the USB connection information in the equipment manager;
firstly, a plurality of reference names of the equipment to be calibrated are led into the reference data list of the multidata template, and then a plurality of models of the second USB connecting equipment are led into the calibration data list of the multidata template to obtain multidata information.
As an improved scheme, the data proofreading algorithm is as follows:
identifying the information to be collated;
if the information to be corrected is the single data information, reading the single data information, accessing the model database, screening a first name matched with a reference name of the equipment to be corrected from a plurality of equipment names, and screening a first reference equipment model matched with the first name from a plurality of reference equipment models;
comparing whether the model of the first USB connecting equipment is consistent with the model of the first reference equipment; if the result is consistent with the first result, generating first result information, and setting the first result information as the proofreading result; if the model data base is not consistent with the first standard equipment model, performing a database verification step based on the model data base, the first standard equipment model and the first USB connection equipment model;
if the information to be collated is the multidata information, reading a plurality of reference names of the equipment to be collated of the multidata information; accessing the model database, screening a plurality of second names which are respectively matched with a plurality of reference names of the equipment to be checked from the plurality of equipment names, and screening a plurality of second reference equipment models which are respectively matched with the plurality of second names from the plurality of reference equipment models;
comparing the plurality of second reference equipment models with the plurality of second USB connecting equipment models; when a plurality of third USB connection equipment models respectively matched with a plurality of second reference equipment models exist in the plurality of second USB connection equipment models, generating first result information, and setting the first result information as the proofreading result;
when a third reference device model which is not matched with the second USB connection device models exists in the second reference device models, setting the second reference device models except the third reference device model as fourth reference device models respectively, setting the second USB connection device models except the fourth reference device model as third USB connection device models respectively matched with the fourth reference device models, and setting the second USB connection device models except the third USB connection device models in the second USB connection device models as fourth USB connection device models; and executing the database checking step based on the model database, the third reference device model and the fourth USB connection device model.
As an improved scheme, the first result information is: the verification is completed, and the test is successful;
the database checking step performed based on the model database, the first reference device model, and the first USB connection device model includes:
accessing the model database, and judging whether the first USB connecting equipment model exists in a plurality of standard equipment models; when the first USB connection equipment model exists in the plurality of reference equipment models, generating second result information based on the first reference equipment model, and setting the second result information as the proofreading result; when the first USB connection equipment model does not exist in the plurality of reference equipment models, generating third result information based on the first USB connection equipment model, and setting the third result information as the proofreading result; the second result information is: after the verification is finished, a module corresponding to the first reference equipment model is absent in the self-service terminal equipment; the third result information is: the checking is completed, the model of the first USB connection equipment is lacked in the database, and the USB port is detected to be abnormal;
the database checking step performed based on the model database, the third reference device model, and the fourth USB connection device model includes:
accessing the model database, and judging whether the fourth USB connecting equipment model exists in a plurality of standard equipment models; when the fourth USB connection equipment model exists in the plurality of reference equipment models, generating second result information based on the third reference equipment model, and setting the second result information as the proofreading result; when the fourth USB connection equipment model does not exist in the plurality of reference equipment models, generating third result information based on the fourth USB connection equipment model, and setting the third result information as the proofreading result; the second result information is: after the verification is finished, a module corresponding to the third reference equipment model is absent in the self-service terminal equipment; the third result information is: and (4) the proofreading is completed, the fourth USB connection equipment model is lacked in the database, and the USB port is detected to be abnormal.
The invention also provides an automatic proofreading system of the USB interface connection equipment, which comprises:
the configuration module is used for setting a connection detection algorithm, a reference data acquisition algorithm, a USB interface information reading algorithm and a data proofreading algorithm; setting a first equipment online quantity threshold value, a second equipment online quantity threshold value and a proofreading list template; establishing a model database;
the reading module is used for calling the connection detection algorithm according to the online quantity threshold of the first equipment and the online quantity threshold of the second equipment to obtain a detection strategy identifier; generating information to be corrected according to the correction list template, the detection strategy identification, the reference data acquisition algorithm and the USB interface information reading algorithm;
and the proofreading module is used for calling the data proofreading algorithm according to the model database and the information to be proofread to obtain a proofreading result.
The invention also provides a computer readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method for automatically checking a USB interface connection device.
The beneficial effects of the invention are:
1. the automatic proofreading method of the USB interface connection equipment can realize model proofreading of the preselected equipment model, does not need an operator to visually identify and check the equipment model, can input the equipment model to be proofread according to the requirement, can carry out automatic proofreading, and visually outputs a corresponding proofreading result, and can intelligently report errors if the proofreading process is abnormal, thereby greatly improving the proofreading efficiency of the module equipment model in the self-service terminal equipment, reducing the operation difficulty of the operator, improving the experience of the operator, making up the defects of the prior art, and having high applicability and market value.
2. The automatic proofreading system for the USB interface connection equipment can be used for performing model proofreading on a preselected equipment model through the mutual matching of the configuration module, the reading module and the proofreading module, does not need an operator to visually identify and check the equipment model, and can input the equipment model to be proofread according to the requirement.
3. The computer-readable storage medium can realize the matching of the guide configuration module, the reading module and the proofreading module, further realize the model proofreading of the pre-selection equipment model, does not need an operator to visually identify and check the equipment model, and can carry out automatic proofreading by inputting the equipment model to be proofread according to the requirement, thereby greatly improving the proofreading efficiency of the module equipment model in the self-service terminal equipment, reducing the operation difficulty of the operator, improving the experience of the operator, and effectively improving the operability of the automatic proofreading method of the USB interface connection equipment.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an automated calibration method for a USB interface connection device according to embodiment 1 of the present invention;
fig. 2 is a schematic specific flowchart of an automatic calibration method for USB interface connection devices according to embodiment 1 of the present invention;
fig. 3 is an architecture diagram of an automatic calibration system for USB interface connection devices according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are a part of the embodiments of the present invention, and not all 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.
In the description of the present invention, it should be noted that the terms "first", "second", "third", and "fourth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it is to be noted that: VID is supplier ID; PID is a product identification code; the ID is an identification number.
Example 1
The embodiment provides an automatic proofreading method for a USB interface connection device, as shown in fig. 1 and fig. 2, including the following steps:
s100, configuring, specifically comprising:
s110, setting a connection detection algorithm, a reference data acquisition algorithm, a USB interface information reading algorithm and a data proofreading algorithm; setting a first equipment online quantity threshold value, a second equipment online quantity threshold value and a proofreading list template; establishing a model database;
specifically, the collation list template includes: the system comprises a single data template and a plurality of data templates, wherein the plurality of data templates are provided with a reference data list and a proofreading data list; in the embodiment, the single data template and the multiple data templates respectively correspond to different proofreading modes, so that proofreading results under different conditions are output and displayed by adopting different types of templates, and the results are more visual; the reference data list is used for storing input equipment models and is used as reference data for calibration, and the calibration data list is used for storing data to be calibrated;
specifically, a plurality of reference equipment models and a plurality of equipment names respectively matched with the reference equipment models are stored in the model database; the standard equipment model is the correct model information of an equipment module carried by certain terminal equipment, and comprises VID and PID; the equipment name is the Chinese name or abbreviation of the equipment module carried by certain terminal equipment;
specifically, in this embodiment, the first device online quantity threshold is smaller than the second device online quantity threshold; the online quantity threshold of the first device is 0, and the online quantity threshold of the second device is 2; the first equipment online quantity threshold and the second equipment online quantity threshold are used for judging the online type of the terminal equipment;
s200, a reading step, which specifically comprises the following steps:
s210, calling the connection detection algorithm based on the online quantity threshold of the first equipment and the online quantity threshold of the second equipment to obtain a detection strategy identifier; generating information to be collated based on the collation list template, the detection strategy identification, the reference data acquisition algorithm and the USB interface information reading algorithm;
specifically, the connection detection algorithm is as follows: acquiring USB connection information of self-service terminal equipment, and reading the equipment connection number in the USB connection information; correspondingly, the USB connection information is connection in-place information of the USB equipment on the self-service terminal equipment; the device connection number is the number of online device modules on the self-service terminal device read out from the USB connection information; comparing the device connection number with the first device online number threshold and the second device online number threshold; if the device connection number is larger than the first device online number threshold value and the device connection number is smaller than the second device online number threshold value, it is indicated that only 1 device is connected with a USB interface on the self-service terminal device, so that single data comparison is performed, and further identification provides guidance for subsequent steps, so that a first data identification is generated based on the USB connection information, and the first data identification is set as the detection strategy identification;
if the device connection number is larger than the online number threshold of the second device, it indicates that the number of devices connected with the USB interface on the self-service terminal device is larger than or equal to 2, so that multiple data comparison is performed, and further identification provides guidance for subsequent steps, so that a second data identification is generated based on the USB connection information, and the second data identification is set as the detection strategy identification;
specifically, in this embodiment, the step of generating the information to be collated based on the collation list template, the detection policy identifier, the reference data acquisition algorithm, and the USB interface information reading algorithm further includes: firstly, identifying the detection strategy identification, and reading the USB connection information in the detection strategy identification; when the detection strategy identifier is the first data identifier, only one equipment model needs to be calibrated, so that a reference data acquisition algorithm is called to acquire a reference name of equipment to be calibrated, the algorithm logic of the reference data acquisition algorithm is to prompt an operator to input the names of equipment modules on the self-service terminal equipment which needs to be calibrated, and after the operator inputs the names of the equipment modules on the self-service terminal equipment which needs to be calibrated, the input names are stored as the reference names of the equipment to be calibrated; executing single data proofreading operation based on the single data template, the USB connection information, the reference name of the equipment to be proofread and the USB interface information reading algorithm to obtain single data information, and setting the single data information as the information to be proofread;
when the detection strategy identifier is the second data, a plurality of equipment models need to be calibrated, so that a reference data acquisition algorithm is called to acquire a plurality of reference names of the equipment to be calibrated; executing multi-data proofreading operation based on the multi-data template, the USB connection information, the USB interface information reading algorithm and a plurality of reference names of the equipment to be proofread to obtain multi-data information, and setting the multi-data information as the information to be proofread; the single data proofreading operation is a proofreading operation for comparing single data, and the multi-data proofreading operation is a proofreading operation for comparing a plurality of data;
specifically, the single data proofreading operation includes: calling the USB interface information reading algorithm to access the equipment manager of the self-service terminal equipment, and calling the USB interface information reading algorithm to read the model of the first USB connecting equipment matched with the USB connecting information in the equipment manager; the algorithm logic of the USB interface information reading algorithm is that USB connection information is recognized, then all equipment models connected with the USB interface on the self-service terminal equipment are obtained, and finally the equipment model matched with the online equipment in the USB connection information is screened out from all the equipment models to be the first USB connection equipment model; importing the model of the first USB connection equipment and the reference name of the equipment to be calibrated into the single data template to obtain the single data information; in the embodiment, the single data information is in a txt text format, and a '/' is used as a separator between two data;
specifically, the multi-data collation operation includes: calling the USB interface information reading algorithm to access the equipment manager of the self-service terminal equipment, and calling the USB interface information reading algorithm to read a plurality of second USB connection equipment models matched with the USB connection information in the equipment manager; the number of the second USB connecting equipment models is more than or equal to two; firstly, importing a plurality of reference names of the equipment to be proofread into the reference data list of the multidata template, and then importing a plurality of models of the second USB connection equipment into the proofreading data list of the multidata template to obtain multidata information; in the embodiment, the multi-data information is in a list format, and a certain interval or a list frame line is adopted between two different lists as a separator; the steps effectively divide single data or multiple data, so that the subsequent checking step is facilitated, in the data preparation process, only the data to be checked needs to be input by an operator, manual and visual judgment and identification are not needed, and the method is extremely convenient.
S300, a correction step, which specifically comprises:
s310, calling the data proofreading algorithm based on the model database and the information to be proofread to obtain a proofreading result;
specifically, the data correction algorithm is as follows:
identifying the information to be collated; if the information to be corrected is the single data information, reading the single data information, accessing the model database, screening a first name matched with a reference name of the equipment to be corrected from a plurality of equipment names, and screening a first reference equipment model matched with the first name from a plurality of reference equipment models; the first name is an equipment name matched with the reference name of the equipment to be checked in the plurality of equipment names; the first reference equipment model is a reference equipment model matched with the first name in the plurality of reference equipment models; the step is that model information is automatically matched in a database according to the name of the equipment to be corrected input by the operator, the complicated and long equipment model is not required to be input manually, the possibility of error is reduced, and the operation efficiency and experience of the operator are improved; then comparing whether the model of the first USB connecting equipment is consistent with the model of the first reference equipment; if the two pieces of information are consistent, the fact that the proofreading is passed is indicated, so that first result information is generated, and the first result information is set as the proofreading result; if the self-service terminal equipment is not consistent with the standard equipment, the self-service terminal equipment is abnormal, and the reason for the abnormality needs to be checked and inquired again, so that a database checking step is executed based on the model database, the model of the first standard equipment and the model of the first USB connecting equipment;
if the information to be collated is the multidata information, reading a plurality of reference names of the equipment to be collated of the multidata information; accessing the model database, screening a plurality of second names respectively matched with the reference names of the equipment to be checked from the plurality of equipment names, and screening a plurality of second reference equipment models respectively matched with the second names from the plurality of reference equipment models; the second names are matched with the reference names of the equipment to be checked respectively; the second reference equipment models are respectively matched with the second names; comparing the plurality of second reference equipment models with the plurality of second USB connection equipment models; when a plurality of third USB connection equipment models respectively matched with the plurality of second reference equipment models exist in the plurality of second USB connection equipment models, the fact that all second reference equipment models needing to be corrected are connected to the self-service terminal equipment is indicated, so that the correction is successful, the first result information is generated, and the first result information is set as the correction result;
when a third reference equipment model which is not matched with the second USB connection equipment models exists in the second reference equipment models, the third reference equipment model indicates that one or more second USB connection equipment models are absent or not matched with the second USB connection equipment models in the second reference equipment models; setting a plurality of second reference equipment models except the third reference equipment model as a plurality of fourth reference equipment models respectively, wherein the fourth reference equipment models are a plurality of second reference equipment models which can be matched with the plurality of second USB connecting equipment models; setting a plurality of second USB connecting equipment models respectively matched with a plurality of fourth reference equipment models as a plurality of third USB connecting equipment models, wherein the plurality of third USB connecting equipment models are equipment models matched with the reference equipment model to be calibrated, which is detected in the USB access port; setting the second USB connecting equipment model except the third USB connecting equipment models in the second USB connecting equipment models as a fourth USB connecting equipment model; the fourth USB connection device model is a device model excluding a device model matched with the second reference device models from the second USB connection device models, the number of the device model corresponds to the number of the device model lacking or unmatched from the second USB connection device models existing in the second reference device models, and the device model is also a device model not existing in the second reference device models, and it needs to be determined whether the second USB connection device models are lacking or whether the device models not existing in the second reference device models are caused by abnormal detection; the database checking step is performed based on the model database, the third reference device model, and the fourth USB connection device model.
Specifically, the first result information is: the verification is completed, and the test is successful;
specifically, the database verification step executed based on the model database, the first reference device model, and the first USB connection device model includes: accessing the model database, and judging whether the first USB connecting equipment model exists in a plurality of standard equipment models; when the first USB connection equipment model exists in the plurality of standard equipment models, the model is shown in the database and represents that the model is correct, so that second result information is generated based on the first standard equipment model, and the second result information is set as the proofreading result; when the first USB connection equipment model does not exist in a plurality of reference equipment models, the model does not exist in a database, and the model is represented to have errors, so that third result information is generated based on the first USB connection equipment model, and the third result information is set as the proofreading result;
specifically, the second result information is: after the proofreading is finished, the self-service terminal equipment lacks a module corresponding to the first reference equipment model; the third result information is: the checking is completed, the model of the first USB connection equipment is lacked in the database, and the USB port is detected to be abnormal;
specifically, based on the principle of the database verification step of the first standard device model, the database verification step executed based on the model database, the third standard device model, and the fourth USB connection device model includes: accessing the model database, and judging whether the fourth USB connecting equipment model exists in a plurality of standard equipment models; when the fourth USB connection equipment model exists in the plurality of reference equipment models, generating second result information based on the third reference equipment model, and setting the second result information as the proofreading result; when the fourth USB connection equipment model does not exist in the plurality of reference equipment models, generating third result information based on the fourth USB connection equipment model, and setting the third result information as the proofreading result;
specifically, the second result information is: after the proofreading is finished, the self-service terminal equipment lacks a module corresponding to the third reference equipment model; the third result information is: and after the proofreading is finished, the fourth USB connection equipment model is lacked in the database, and the USB port is detected to be abnormal.
Example 2
The present embodiment provides an automatic calibration system for USB interface connection devices based on the same inventive concept as the automatic calibration method for USB interface connection devices described in embodiment 1, as shown in fig. 3, including:
the configuration module is used for setting a connection detection algorithm, a reference data acquisition algorithm, a USB interface information reading algorithm and a data proofreading algorithm; setting a first equipment online quantity threshold value, a second equipment online quantity threshold value and a proofreading list template; establishing a model database;
specifically, the online quantity threshold of the first device is smaller than the online quantity threshold of the second device; the collation list template includes: the system comprises a single data template and a plurality of data templates, wherein the plurality of data templates are provided with a reference data list and a proofreading data list; the model database stores a plurality of reference equipment models and a plurality of equipment names respectively matched with the reference equipment models.
The reading module is used for calling the connection detection algorithm according to the online quantity threshold of the first equipment and the online quantity threshold of the second equipment to obtain a detection strategy identifier; generating information to be corrected according to the correction list template, the detection strategy identification, the reference data acquisition algorithm and the USB interface information reading algorithm;
specifically, the connection detection algorithm is as follows: the method comprises the steps that a reading module obtains USB connection information of self-service terminal equipment, and the reading module reads the equipment connection number in the USB connection information; the reading module compares the device connection number with the first device online number threshold and the second device online number threshold; if the device connection number is larger than the first device online number threshold and the device connection number is smaller than the second device online number threshold, the reading module generates a first data identifier based on the USB connection information, and sets the first data identifier as the detection strategy identifier; if the device connection number is larger than the online number threshold of the second device, the reading module generates a second data identifier based on the USB connection information, and the reading module sets the second data identifier as the detection strategy identifier.
Specifically, the operation of the reading module generating the information to be collated based on the collation list template, the detection policy identifier, the reference data acquisition algorithm, and the USB interface information reading algorithm further includes: the reading module identifies the detection strategy identification and reads the USB connection information in the detection strategy identification; when the detection strategy identifier is the first data identifier, the reading module calls the reference data acquisition algorithm to acquire a reference name of the equipment to be corrected; the reading module executes single data proofreading operation based on the single data template, the USB connection information, the reference name of the equipment to be proofread and the USB interface information reading algorithm to obtain single data information, and the reading module sets the single data information as the information to be proofread; when the detection strategy identifier is the second data, the reading module calls the reference data acquisition algorithm to acquire a plurality of reference names of the equipment to be checked; the reading module executes multi-data proofreading operation based on the multi-data template, the USB connection information, the USB interface information reading algorithm and the plurality of reference names of the equipment to be proofread to obtain multi-data information, and the reading module sets the multi-data information as the information to be proofread.
Specifically, the single data proofreading operation includes: the reading module calls the USB interface information reading algorithm to access the equipment manager of the self-service terminal equipment, and the reading module calls the USB interface information reading algorithm to read the model of a first USB connecting equipment matched with the USB connecting information in the equipment manager; and the reading module leads the model of the first USB connecting equipment and the reference name of the equipment to be corrected into the single data template to obtain the single data information.
Specifically, the multi-data collation operation includes: the reading module calls the USB interface information reading algorithm to access an equipment manager of the self-service terminal equipment, and the reading module calls the USB interface information reading algorithm to read a plurality of second USB connection equipment models matched with the USB connection information in the equipment manager; firstly, a reading module leads a plurality of reference names of the equipment to be proofread into the reference data list of the multidata template, and then the reading module leads a plurality of models of the second USB connection equipment into the proofreading data list of the multidata template to obtain the multidata information.
And the proofreading module is used for calling the data proofreading algorithm according to the model database and the information to be proofread to obtain a proofreading result.
Specifically, the data correction algorithm is as follows: the proofreading module identifies the information to be proofread; if the information to be corrected is the single data information, the correcting module reads the single data information, accesses the model database, screens out a first name matched with a reference name of the equipment to be corrected from a plurality of equipment names, and screens out a first reference equipment model matched with the first name from a plurality of reference equipment models; the checking module compares whether the first USB connecting equipment model is consistent with the first reference equipment model; if the result is consistent with the first result, the first result information is generated by the proofreading module, and the first result information is set as the proofreading result by the proofreading module; if the model data base is not consistent with the model data base, the first standard equipment model and the first USB connection equipment model, the proofreading module executes a database checking step; if the information to be corrected is the multidata information, a correction module reads a plurality of reference names of the equipment to be corrected of the multidata information; the checking module accesses the model database, screens a plurality of second names which are respectively matched with a plurality of reference names of the equipment to be checked out of the plurality of equipment names, and screens a plurality of second reference equipment models which are respectively matched with the plurality of second names out of the plurality of reference equipment models; the checking module compares the models of the second reference equipment with the models of the second USB connecting equipment; when a plurality of third USB connection equipment models respectively matched with a plurality of second reference equipment models exist in the plurality of second USB connection equipment models, the first result information is generated by the proofreading module, and the first result information is set as the proofreading result by the proofreading module; when a third reference device model which is not matched with the second USB connection device models exists in the second reference device models, the checking module sets the second reference device models except the third reference device model to be fourth reference device models respectively, the checking module sets the second USB connection device models except the fourth reference device model to be third USB connection device models respectively matched with the fourth reference device models, and the checking module sets the second USB connection device models except the third USB connection device models in the second USB connection device models to be fourth USB connection device models; the checking module executes the database checking step based on the model database, the third reference device model and the fourth USB connection device model.
Specifically, the first result information is: the verification is completed, and the test is successful; the database checking step executed by the checking module based on the model database, the first reference device model and the first USB connection device model comprises the following steps: the checking module accesses the model database and judges whether the first USB connection equipment model exists in the plurality of standard equipment models or not; when the first USB connection equipment model exists in the plurality of reference equipment models, the proofreading module generates second result information based on the first reference equipment model, and the proofreading module sets the second result information as the proofreading result; when the first USB connection equipment model does not exist in the plurality of reference equipment models, the proofreading module generates third result information based on the first USB connection equipment model, and the proofreading module sets the third result information as the proofreading result; the second result information is: after the proofreading is finished, the self-service terminal equipment lacks a module corresponding to the first reference equipment model; the third result information is: the checking is completed, the model of the first USB connection equipment is lacked in the database, and the USB port is detected to be abnormal;
specifically, the database verification step executed by the verification module based on the model database, the third reference device model, and the fourth USB connection device model includes: the checking module accesses the model database and judges whether the fourth USB connecting equipment model exists in the plurality of standard equipment models or not; when the fourth USB connection equipment model exists in the plurality of standard equipment models, the proofreading module generates second result information based on the third standard equipment model, and the proofreading module sets the second result information as the proofreading result; when the fourth USB connection equipment model does not exist in the plurality of reference equipment models, the proofreading module generates third result information based on the fourth USB connection equipment model, and the proofreading module sets the third result information as the proofreading result; the second result information is: after the proofreading is finished, the self-service terminal equipment lacks a module corresponding to the third reference equipment model; the third result information is: and after the proofreading is finished, the fourth USB connection equipment model is lacked in the database, and the USB port is detected to be abnormal.
Example 3
The present embodiments provide a computer-readable storage medium comprising:
the storage medium is used for storing computer software instructions for implementing the automatic calibration method for the USB interface connection device described in embodiment 1, and includes a program for executing the automatic calibration method for the USB interface connection device; specifically, the executable program may be embedded in the automatic calibration system for USB interface connected devices described in embodiment 2, so that the automatic calibration system for USB interface connected devices may implement the automatic calibration method for USB interface connected devices described in embodiment 1 by executing the embedded executable program.
Furthermore, the computer-readable storage medium of this embodiment may take any combination of one or more readable storage media, where a readable storage medium includes an electronic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Different from the prior art, the automatic proofreading method, the automatic proofreading system and the medium for the USB interface connection equipment can realize model proofreading of the pre-selection equipment model, do not need an operator to visually identify and check the equipment model, input the equipment model to be proofread according to the requirement, can perform automatic proofreading, output the corresponding proofreading result visually, and report errors intelligently if abnormity occurs in the proofreading process, greatly improve the proofreading efficiency of the module equipment model in the self-service terminal equipment, reduce the operation difficulty of the operator, improve the experience of the operator, make up the defects of the prior art, and have high applicability and market value.
The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An automatic proofreading method for USB interface connection equipment is characterized by comprising the following steps:
a configuration step:
setting a connection detection algorithm, a reference data acquisition algorithm, a USB interface information reading algorithm and a data proofreading algorithm;
setting a first equipment online quantity threshold value, a second equipment online quantity threshold value and a proofreading list template;
establishing a model database;
a reading step:
calling the connection detection algorithm based on the first equipment online quantity threshold and the second equipment online quantity threshold to obtain a detection strategy identifier;
generating information to be collated based on the collation list template, the detection strategy identification, the reference data acquisition algorithm and the USB interface information reading algorithm;
and (3) a calibration step:
and calling the data proofreading algorithm based on the model database and the information to be proofread to obtain a proofreading result.
2. The automatic proofreading method of the USB interface connection equipment according to claim 1, wherein:
the first device online quantity threshold is less than the second device online quantity threshold;
the collation list template includes: the system comprises a single data template and a plurality of data templates, wherein the plurality of data templates are provided with a reference data list and a proofreading data list;
the model database stores a plurality of reference equipment models and a plurality of equipment names respectively matched with the reference equipment models.
3. The automatic proofreading method for the USB interface connection equipment according to claim 2, wherein:
the connection detection algorithm is as follows:
acquiring USB connection information of self-service terminal equipment, and reading the equipment connection number in the USB connection information;
comparing the device connection number with the first device online number threshold and the second device online number threshold;
if the device connection number is larger than the first device online number threshold and the device connection number is smaller than the second device online number threshold, generating a first data identifier based on the USB connection information, and setting the first data identifier as the detection strategy identifier;
and if the device connection quantity is greater than the online quantity threshold of the second device, generating a second data identifier based on the USB connection information, and setting the second data identifier as the detection strategy identifier.
4. The automatic proofreading method for the USB interface connection equipment according to claim 3, wherein:
the step of generating the information to be collated based on the collation list template, the detection policy identifier, the reference data acquisition algorithm, and the USB interface information reading algorithm further includes:
identifying the detection strategy identification, and reading the USB connection information in the detection strategy identification;
when the detection strategy identifier is the first data identifier, calling the reference data acquisition algorithm to acquire a reference name of the equipment to be corrected; executing single data proofreading operation based on the single data template, the USB connection information, the reference name of the equipment to be proofread and the USB interface information reading algorithm to obtain single data information, and setting the single data information as the information to be proofread;
when the detection strategy identifier is the second data, calling the reference data acquisition algorithm to acquire a plurality of reference names of the equipment to be checked; and executing multi-data proofreading operation based on the multi-data template, the USB connection information, the USB interface information reading algorithm and the plurality of reference names of the equipment to be proofread to obtain multi-data information, and setting the multi-data information as the information to be proofread.
5. The automatic proofreading method for the USB interface connection equipment according to claim 4, wherein:
the single data proofreading operation comprises the following steps:
calling the USB interface information reading algorithm to access the equipment manager of the self-service terminal equipment, and calling the USB interface information reading algorithm to read the model of the first USB connecting equipment matched with the USB connecting information in the equipment manager;
and importing the model of the first USB connection equipment and the reference name of the equipment to be calibrated into the single data template to obtain the single data information.
6. The automatic proofreading method for the USB interface connection equipment according to claim 5, wherein:
the multi-data collation operation includes:
calling the USB interface information reading algorithm to access an equipment manager of the self-service terminal equipment, and calling the USB interface information reading algorithm to read a plurality of second USB connection equipment models matched with the USB connection information in the equipment manager;
firstly, a plurality of standard names of the equipment to be calibrated are led into the standard data list of the multidata template, and then a plurality of models of the second USB connecting equipment are led into the calibration data list of the multidata template to obtain the multidata information.
7. The automatic proofreading method for the USB interface connection equipment according to claim 6, wherein:
the data checking algorithm comprises the following steps:
identifying the information to be collated;
if the information to be corrected is the single data information, reading the single data information, accessing the model database, screening a first name matched with a reference name of the equipment to be corrected from a plurality of equipment names, and screening a first reference equipment model matched with the first name from a plurality of reference equipment models;
comparing whether the model of the first USB connecting equipment is consistent with the model of the first reference equipment; if the result is consistent with the first result, generating first result information, and setting the first result information as the proofreading result; if not, executing a database checking step based on the model database, the first reference equipment model and the first USB connection equipment model;
if the information to be collated is the multidata information, reading a plurality of reference names of the equipment to be collated of the multidata information; accessing the model database, screening a plurality of second names which are respectively matched with a plurality of reference names of the equipment to be checked from the plurality of equipment names, and screening a plurality of second reference equipment models which are respectively matched with the plurality of second names from the plurality of reference equipment models;
comparing the plurality of second reference equipment models with the plurality of second USB connection equipment models; when a plurality of third USB connection equipment models respectively matched with a plurality of second reference equipment models exist in the plurality of second USB connection equipment models, generating first result information, and setting the first result information as the proofreading result;
when a third reference device model which is not matched with the second USB connection device models exists in the second reference device models, setting the second reference device models except the third reference device model as fourth reference device models respectively, setting the second USB connection device models which are matched with the fourth reference device models as third USB connection device models respectively, and setting the second USB connection device models except the third USB connection device models in the second USB connection device models as fourth USB connection device models; and executing the database checking step based on the model database, the third reference device model and the fourth USB connection device model.
8. The automatic calibration method for the USB interface connection equipment according to claim 7, wherein:
the first result information is: the verification is completed, and the test is successful;
the database checking step performed based on the model database, the first reference device model, and the first USB connection device model includes:
accessing the model database, and judging whether the first USB connecting equipment model exists in a plurality of standard equipment models; when the first USB connection equipment model exists in the plurality of reference equipment models, generating second result information based on the first reference equipment model, and setting the second result information as the proofreading result; when the first USB connection equipment model does not exist in the plurality of reference equipment models, generating third result information based on the first USB connection equipment model, and setting the third result information as the proofreading result; the second result information is: after the verification is finished, a module corresponding to the first reference equipment model is absent in the self-service terminal equipment; the third result information is: the checking is completed, the model of the first USB connection equipment is lacked in the database, and the USB port is detected to be abnormal;
the database checking step performed based on the model database, the third reference device model, and the fourth USB connection device model includes:
accessing the model database, and judging whether the fourth USB connecting equipment model exists in a plurality of standard equipment models; when the fourth USB connection equipment model exists in the plurality of reference equipment models, generating second result information based on the third reference equipment model, and setting the second result information as the proofreading result; when the fourth USB connection equipment model does not exist in the plurality of reference equipment models, generating third result information based on the fourth USB connection equipment model, and setting the third result information as the proofreading result; the second result information is: after the verification is finished, a module corresponding to the third reference equipment model is absent in the self-service terminal equipment; the third result information is: and after the proofreading is finished, the fourth USB connection equipment model is lacked in the database, and the USB port is detected to be abnormal.
9. The automatic USB interface connection device calibration system based on the automatic USB interface connection device calibration method of claim 8, comprising:
the configuration module is used for setting a connection detection algorithm, a reference data acquisition algorithm, a USB interface information reading algorithm and a data proofreading algorithm; setting a first equipment online quantity threshold value, a second equipment online quantity threshold value and a proofreading list template; establishing a model database;
the reading module is used for calling the connection detection algorithm according to the online quantity threshold of the first equipment and the online quantity threshold of the second equipment to obtain a detection strategy identifier; generating information to be corrected according to the correction list template, the detection strategy identification, the reference data acquisition algorithm and the USB interface information reading algorithm;
and the proofreading module is used for calling the data proofreading algorithm according to the model database and the information to be proofread to obtain a proofreading result.
10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the method for automatically checking a USB interface device according to any one of claims 1 to 8.
CN202210717159.XA 2022-06-23 2022-06-23 Automatic proofreading method, system and medium for USB interface connection equipment Pending CN115033437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210717159.XA CN115033437A (en) 2022-06-23 2022-06-23 Automatic proofreading method, system and medium for USB interface connection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210717159.XA CN115033437A (en) 2022-06-23 2022-06-23 Automatic proofreading method, system and medium for USB interface connection equipment

Publications (1)

Publication Number Publication Date
CN115033437A true CN115033437A (en) 2022-09-09

Family

ID=83126506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210717159.XA Pending CN115033437A (en) 2022-06-23 2022-06-23 Automatic proofreading method, system and medium for USB interface connection equipment

Country Status (1)

Country Link
CN (1) CN115033437A (en)

Similar Documents

Publication Publication Date Title
US20140046954A1 (en) Software tool for creation and management of document reference templates
CN110245087B (en) State checking method and device of manual client for sample auditing
CN110069279B (en) Method, device and storage medium for checking direct current control protection program
CN109947651B (en) Artificial intelligence engine optimization method and device
CN111783855A (en) Intelligent marking method and device
CN112447167A (en) Voice recognition model verification method and device, computer equipment and storage medium
CN113434395A (en) Automatic generation method, device, equipment and medium of test case
CN115033437A (en) Automatic proofreading method, system and medium for USB interface connection equipment
JP4215255B2 (en) Degradation confirmation inspection method, degradation confirmation inspection system, and program therefor
CN115731435A (en) Method, device and equipment for verifying label and storage medium
CN115543816A (en) Software regression test result verification method, device, equipment and storage medium
CN113094277A (en) Chip test case management method and device
CN110046067B (en) Interface testing method and device
CN110633204B (en) Program defect detection method and device
CN113900926A (en) Batch test method, system and medium for test cases
CN108235324B (en) Short message template testing method and server
CN114860549B (en) Buried data verification method, buried data verification device, buried data verification equipment and storage medium
CN117709858B (en) AI-based multi-metal provider admission data verification method, device and equipment
Kapular et al. Testing of Model Verifier within Software Development in Automotive Industry
CN114416557A (en) Interface checking method and device, storage medium and electronic equipment
CN117094259A (en) Static time sequence analysis environment configuration method and device for integrated circuit
CN114078584A (en) Parameter name setting method and device, monitoring equipment and medium
CN117435407A (en) Android mobile device testing method and device
CN116383206A (en) Data storage method and data storage device
CN115359841A (en) Quality inspection method and device for DNA detection kit

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