CN116049043A - Communication method for man-machine interface equipment identification and multi-equipment reading and writing - Google Patents

Communication method for man-machine interface equipment identification and multi-equipment reading and writing Download PDF

Info

Publication number
CN116049043A
CN116049043A CN202310106559.1A CN202310106559A CN116049043A CN 116049043 A CN116049043 A CN 116049043A CN 202310106559 A CN202310106559 A CN 202310106559A CN 116049043 A CN116049043 A CN 116049043A
Authority
CN
China
Prior art keywords
item
checking
hid
reading
writing
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
Application number
CN202310106559.1A
Other languages
Chinese (zh)
Other versions
CN116049043B (en
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.)
Hefei Juque Electronics Co ltd
Original Assignee
Hefei Juque Electronics 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 Hefei Juque Electronics Co ltd filed Critical Hefei Juque Electronics Co ltd
Priority to CN202310106559.1A priority Critical patent/CN116049043B/en
Publication of CN116049043A publication Critical patent/CN116049043A/en
Application granted granted Critical
Publication of CN116049043B publication Critical patent/CN116049043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a communication method for man-machine interface equipment identification and multi-equipment reading and writing, which belongs to the technical field of equipment reading and writing, and comprises the following steps: step one: checking the operation condition, and outputting a non-conforming item which does not conform to the requirement of the operation condition according to a checking result; step two: the user carries out corresponding computer adjustment according to the obtained disagreement item; step three: when no inconsistent item exists, entering a device detection state, reading a windows registry, detecting a hot plug state of the HID device, and generating an HID device list; step four: extracting VID, PID and SN information accessed into the HID equipment, classifying the HID equipment, and if classification is not needed, directly entering the next step; step five: communication positioning and reading and writing of the HID device are carried out according to the VID, PID and SN of the HID device; the identification and communication of HID human-computer interface devices of different manufacturers and different product types are supported.

Description

Communication method for man-machine interface equipment identification and multi-equipment reading and writing
Technical Field
The invention belongs to the technical field of equipment read-write, and particularly relates to a communication method for man-machine interface equipment identification and multi-equipment read-write.
Background
The human interface device HID, collectively Human Interface Device, is the earliest supported USB class by Windows. The current man-machine interface devices are mostly three types; the first is to directly call hidapi, and through initialization in the API interface, the windows, macos operating system can be supported. The second is the drive development based on libusb for external call, supporting windows, linux, macos operating system. The third is the hide. Dll in direct import win32, which also supports only Microsoft windows operating system, since it relies on import windows libraries.
The three supported platforms are different, and the interface calling modes are different, but are all based on VID, PID and SN identification and communication. When a user takes a device, the side or the back of the device is marked with the information, but the information is easy to be lost, incomplete or the device is old, so that the identification cannot be seen clearly, and under the condition of information deficiency, great trouble is brought to the identification and communication of the HID device, so that the identification and communication of the HID device are realized under the condition of information deficiency.
Disclosure of Invention
In order to solve the problems of the scheme, the invention provides a communication method for man-machine interface equipment identification and multi-equipment reading and writing.
The aim of the invention can be achieved by the following technical scheme:
a communication method for man-machine interface equipment identification and multi-equipment reading and writing comprises the following steps:
step one: checking the operation condition, and outputting a non-conforming item which does not conform to the requirement of the operation condition according to a checking result;
step two: the user carries out corresponding computer adjustment according to the obtained disagreement item;
step three: when no inconsistent item exists, entering a device detection state, reading a windows registry, detecting a hot plug state of the HID device, and generating an HID device list;
step four: extracting VID, PID and SN information accessed into the HID equipment, classifying the HID equipment, and if classification is not needed, directly entering the next step;
step five: and carrying out communication positioning and reading and writing of the HID according to the VID, PID and SN of the HID.
Further, the VID numbers the manufacturer; PID is the product number; SN is the device serial number.
Further, the VID+PID+SN three code combination has uniqueness.
Further, the method for checking the operating conditions comprises the following steps:
setting an operation condition checking list, carrying out corresponding data acquisition on a computer according to each checking item in the operation condition checking list, checking the acquired data according to the operation condition checking list, identifying the corresponding checking item which does not accord with the operation condition, and marking the checking item as a non-conforming item.
Further, when a disagreement item is obtained, the corresponding supplementary course is simultaneously output.
Further, the method for acquiring the corresponding supplementary course according to the disagreement item comprises the following steps:
acquiring an operation condition checking list, identifying checking items in the operation condition checking list, acquiring the types of computers which are currently on the market and are operated for different operations of each checking item, setting unit items corresponding to each checking item, setting corresponding supplementary courses according to the unit items in the checking items, summarizing the set supplementary courses, and establishing a course detail table; corresponding non-compliance items and computer data are identified, and corresponding supplemental courses are matched from the course schedule based on the identified non-compliance items and computer data.
Further, the supplemental course is displayed in a network-linked manner in a course schedule.
Further, the network links in the course detail table are dynamically updated according to the data corresponding to the links, and the updating method comprises the following steps:
and (3) taking a unit item meeting the requirements of the intelligent item in the check item as the intelligent item, marking a supplementary course link corresponding to the intelligent item as a candidate link, analyzing an advertisement value and a network security value corresponding to the candidate link, marking the advertisement value and the network security value as GDZ and AQZ respectively, calculating a corresponding link value according to a formula YC=b1× AQZ-b2×GDZ, wherein b1 and b2 are both proportionality coefficients, the value range is 0< b1 less than or equal to 1,0< b2 less than or equal to 1, and selecting the candidate link with the highest link value as a target link to be displayed in a course detail table.
Compared with the prior art, the invention has the beneficial effects that:
1. the identification and communication of HID human-computer interface devices of different manufacturers and different product types are supported.
2. The user does not need to know VID, PID and SN information of the equipment in advance, but the method detects the update change of the registry information and screens the HID.
3. Dynamic detection of equipment removal and access is supported, hot plug detection is not needed, and manual refreshing is not needed.
4. The VID, PID and SN information of the device are read reversely, and a user can decide whether to classify the HID device or not according to the needs, so as to distinguish different manufacturers and device types.
5. And the running condition check is automatically carried out, so that the user is prevented from checking, a corresponding supplementary course is provided, and the computer update and adjustment are convenient for the user with little knowledge about the computer.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, a communication method for man-machine interface device identification and multi-device reading and writing, the method includes:
step one: checking the operation condition, and outputting a non-conforming item which does not conform to the requirement of the operation condition according to a checking result;
the method for checking the operation condition comprises the following steps:
setting an operation condition checking list, namely, setting by a manual mode in order to ensure that the requirements of the normal operation of the system on software and hardware are required to be met, acquiring corresponding data of a computer according to each checking item in the operation condition checking list, checking the acquired data according to the operation condition checking list, identifying the corresponding checking item which does not meet the operation condition, and marking the checking item as a non-conforming item.
Exemplary software operating conditions include:
windows operating system supporting windows xp, win7/8/10/11;
2. installation and operation, having administrator rights, without restricting access to the registry;
3. if the operating system opens the firewall and the firewall intercepts and stops the software running, the software needs to be added into a firewall white list.
The hardware operating conditions include:
1. the configuration of computer hardware requires a single-core CPU and a 2G memory, and a 20G hard disk;
2. the installation system is window xp or above;
3. the system operation user needs to have the rights of windows manager;
2. the client can stably run personal computers with various two-dimensional and three-dimensional design software.
And according to the software and hardware operation condition summary, an operation condition checking list is established, corresponding software and hardware data acquisition is carried out on a computer to be operated, the software and hardware data acquisition is carried out one by one according to the operation condition checking list, and unsatisfactory items are output.
In one embodiment, because not all users have a higher knowledge about the computer, even if it indicates what is not the item, but because of lack of related computer knowledge, corresponding adjustment, such as software and hardware configuration, firewall whitelist setting, etc., needs to be performed, and because the influence of network advertisement, computer model, etc., will have a great influence on not knowing the use of the computer user, in order to solve this problem, in this embodiment, corresponding courses, links, etc. are performed to facilitate the use of the user, and the specific method includes:
acquiring an operation condition checking list, identifying checking items in the operation condition checking list, acquiring the types of computers which are currently on the market and aim at different operations of each checking item, setting unit items corresponding to each checking item, wherein the specific firewall whitelist setting has certain difference due to the differences of different manufacturers, models and the like, so that corresponding subdivision is needed, and single items in the checking items are corresponding subdivision results and can be provided with one unit item or a plurality of single items, and one unit item corresponds to one course; corresponding supplementary courses are set manually according to unit items in the check items, corresponding targeted courses are set by professional staff for guidance, the corresponding supplementary courses can be displayed in a network link mode, a user accesses the corresponding supplementary courses through the corresponding network link, the supplementary courses can be existing on the current network, and courses meeting requirements such as viruses, advertisements and the like are determined manually; summarizing the set supplementary courses, and establishing a course list, wherein the supplementary courses can be counted in the course list in a network link mode;
corresponding disagreement items and computer data are identified, the computer data including manufacturer, model, etc. data associated with course matching, and corresponding supplemental courses are matched from the course schedule based on the identified disagreement items and computer data.
Further, for the case of setting up supplementary courses from the network, because the same unit item can find more courses from the network, but because of time variation, the previous supplementary courses meeting the requirements are possibly transformed by web advertisement, etc., at this time, better supplementary course link selection is caused, so that the most suitable supplementary course link needs to be intelligently recommended according to the actual situation, and the specific method includes:
the method comprises the steps of regarding unit items meeting the requirements of intelligent items in check items as intelligent items, namely using single items which supplement courses in an existing network and are provided with a plurality of course links, marking the supplement course links corresponding to the intelligent items as to-be-selected links, namely setting a plurality of standby links when each intelligent item is set, namely to-be-selected links, selecting a plurality of course links when a worker is required to select, analyzing advertisement values and network security values corresponding to the to-be-selected links, marking the advertisement values and the network security values as GDZ and AQZ respectively, calculating corresponding link values according to a formula YC=b1× AQZ-b2×GDZ, wherein b1 and b2 are proportionality coefficients, the value range is 0< b1 < 1,0< b2 < 1, and selecting the to-be-selected link with the highest link value as a target link to be displayed in a course detail table.
The advertisement value and the network security value corresponding to the link to be selected are analyzed, namely, the advertisement and the network security of the webpage corresponding to the link to be selected are set according to the advertisement and the network security of the webpage corresponding to the link to be selected, such as a webpage security certificate and the like, and the training set corresponding to the simulation training can be specifically combined with the existing webpage security evaluation method, historical data and the like, the training set comprises webpage data and the advertisement value and the network security value which are correspondingly set, the training set is established in a manual mode, a corresponding link analysis model is established based on a CNN (computer network) or a DNN (computer network) and the link to be selected, the advertisement value and the network security value corresponding to each link to be selected are not required to be high in accuracy, and the rough evaluation is carried out, so that the establishment and the evaluation are convenient, and the neural network is the prior art, and the specific establishment and training process is not described in detail in the invention.
Step two: the user carries out corresponding computer adjustment according to the obtained disagreement item;
computer adjustments may be made according to the provided supplemental tutorial, such as download installations of the Windows operating system, hardware updates, replacements, etc.
Step three: when no inconsistent item exists, entering a device detection state, reading a windows registry, detecting a hot plug state of the HID device, and generating an HID device list;
HID devices are human interface devices, collectively Human Interface Device, and HID class is the earliest supported USB class by Windows.
Detecting the hot plug state of the HID device:
1) The new equipment access is automatically added into the HID equipment list;
2) The accessed device is removed from the HID device list when it is unplugged.
Step four: extracting VID, PID and SN information accessed into the HID equipment, classifying the HID equipment, and if classification is not needed, directly entering the next step;
VID is the Vender ID, manufacturer number; PID is Product ID, product number; SN is the Series Number, device serial Number.
Classifying HID equipment, namely classifying the extracted equipment information, and reading and writing equipment of specified manufacturer and specified type or multi-equipment polling reading and writing, and simultaneously combining and communicating the multi-equipment reading and writing; specifically, classification is performed according to VID, PID and SN, such as screening devices of the same manufacturer and the same type through VID and PID, traversing multiple devices, and performing reading and writing operations.
Step five: and carrying out communication positioning and reading and writing of the HID according to the VID, PID and SN of the HID.
The VID, PID and SN have uniqueness, so that the uniqueness of the HID device is realized, and the communication positioning, reading and writing are facilitated.
The above formulas are all formulas with dimensions removed and numerical values calculated, the formulas are formulas which are obtained by acquiring a large amount of data and performing software simulation to obtain the closest actual situation, and preset parameters and preset thresholds in the formulas are set by a person skilled in the art according to the actual situation or are obtained by simulating a large amount of data.
The above embodiments are only for illustrating the technical method of the present invention and not for limiting the same, and it should be understood by those skilled in the art that the technical method of the present invention may be modified or substituted without departing from the spirit and scope of the technical method of the present invention.

Claims (8)

1. A communication method for man-machine interface equipment identification and multi-equipment reading and writing is characterized by comprising the following steps:
step one: checking the operation condition, and outputting a non-conforming item which does not conform to the requirement of the operation condition according to a checking result;
step two: the user carries out corresponding computer adjustment according to the obtained disagreement item;
step three: when no inconsistent item exists, entering a device detection state, reading a windows registry, detecting a hot plug state of the HID device, and generating an HID device list;
step four: extracting VID, PID and SN information accessed into the HID equipment, classifying the HID equipment, and if classification is not needed, directly entering the next step;
step five: and carrying out communication positioning and reading and writing of the HID according to the VID, PID and SN of the HID.
2. The communication method for man-machine interface device identification and multi-device reading and writing according to claim 1, wherein the VID is a manufacturer number; PID is the product number; SN is the device serial number.
3. The method for identifying and reading from and writing to multiple devices in accordance with claim 1, wherein the vid+pid+sn combination has uniqueness.
4. The method for communication between man-machine interface device identification and multi-device reading and writing according to claim 1, wherein the method for checking the operating conditions comprises:
setting an operation condition checking list, carrying out corresponding data acquisition on a computer according to each checking item in the operation condition checking list, checking the acquired data according to the operation condition checking list, identifying the corresponding checking item which does not accord with the operation condition, and marking the checking item as a non-conforming item.
5. The method of claim 4, wherein the supplementary tutorial is outputted simultaneously when the disagreement item is obtained.
6. The method for communication between a human interface device and a multi-device reader of claim 1, wherein the method for obtaining the corresponding supplementary course based on the disagreement item comprises:
acquiring an operation condition checking list, identifying checking items in the operation condition checking list, acquiring the types of computers which are currently on the market and are operated for different operations of each checking item, setting unit items corresponding to each checking item, setting corresponding supplementary courses according to the unit items in the checking items, summarizing the set supplementary courses, and establishing a course detail table; corresponding non-compliance items and computer data are identified, and corresponding supplemental courses are matched from the course schedule based on the identified non-compliance items and computer data.
7. The method of claim 6, wherein the supplementary course is displayed in a form of a network link in the course list.
8. The method for communication between man-machine interface device identification and multi-device reading and writing of claim 7, wherein the network links in the course list are dynamically updated according to the data corresponding to the links, and the updating method comprises:
and (3) taking a unit item meeting the requirements of the intelligent item in the check item as the intelligent item, marking a supplementary course link corresponding to the intelligent item as a candidate link, analyzing an advertisement value and a network security value corresponding to the candidate link, marking the advertisement value and the network security value as GDZ and AQZ respectively, calculating a corresponding link value according to a formula YC=b1× AQZ-b2×GDZ, wherein b1 and b2 are both proportionality coefficients, the value range is 0< b1 less than or equal to 1,0< b2 less than or equal to 1, and selecting the candidate link with the highest link value as a target link to be displayed in a course detail table.
CN202310106559.1A 2023-02-13 2023-02-13 Communication method for man-machine interface equipment identification and multi-equipment reading and writing Active CN116049043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310106559.1A CN116049043B (en) 2023-02-13 2023-02-13 Communication method for man-machine interface equipment identification and multi-equipment reading and writing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310106559.1A CN116049043B (en) 2023-02-13 2023-02-13 Communication method for man-machine interface equipment identification and multi-equipment reading and writing

Publications (2)

Publication Number Publication Date
CN116049043A true CN116049043A (en) 2023-05-02
CN116049043B CN116049043B (en) 2023-08-08

Family

ID=86118093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310106559.1A Active CN116049043B (en) 2023-02-13 2023-02-13 Communication method for man-machine interface equipment identification and multi-equipment reading and writing

Country Status (1)

Country Link
CN (1) CN116049043B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040069400A (en) * 2003-01-29 2004-08-06 김월영 USB token that recognize automatically in window operating system and method thereof
CN101169732A (en) * 2006-10-25 2008-04-30 北京握奇数据系统有限公司 Method and system for matching equipment handle and equipment of multiple human-machine interface equipment
CN102750236A (en) * 2011-11-09 2012-10-24 新奥特(北京)视频技术有限公司 Method for identifying whether human interface device is connected into special parameter control system
CN104156329A (en) * 2014-08-01 2014-11-19 无锡中微爱芯电子有限公司 Method of implementing USB equipment plug identification in dynamic link library
KR101590888B1 (en) * 2014-11-27 2016-02-03 에스피테크놀러지 주식회사 Method and system for recognizing a mobile terminal by using its vid and pid information
CN106933754A (en) * 2017-03-03 2017-07-07 上海传英信息技术有限公司 A kind of USB drives recognition methods and device
CN111639326A (en) * 2019-03-01 2020-09-08 上海擎感智能科技有限公司 Management method and system of mobile storage equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040069400A (en) * 2003-01-29 2004-08-06 김월영 USB token that recognize automatically in window operating system and method thereof
CN101169732A (en) * 2006-10-25 2008-04-30 北京握奇数据系统有限公司 Method and system for matching equipment handle and equipment of multiple human-machine interface equipment
CN102750236A (en) * 2011-11-09 2012-10-24 新奥特(北京)视频技术有限公司 Method for identifying whether human interface device is connected into special parameter control system
CN104156329A (en) * 2014-08-01 2014-11-19 无锡中微爱芯电子有限公司 Method of implementing USB equipment plug identification in dynamic link library
KR101590888B1 (en) * 2014-11-27 2016-02-03 에스피테크놀러지 주식회사 Method and system for recognizing a mobile terminal by using its vid and pid information
CN106933754A (en) * 2017-03-03 2017-07-07 上海传英信息技术有限公司 A kind of USB drives recognition methods and device
CN111639326A (en) * 2019-03-01 2020-09-08 上海擎感智能科技有限公司 Management method and system of mobile storage equipment

Also Published As

Publication number Publication date
CN116049043B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US7333962B2 (en) Techniques to organize test results
WO2020077877A1 (en) Platform commodity stationing method and apparatus, and computer device and storage medium
US8260622B2 (en) Compliant-based service level objectives
JP5985716B2 (en) Electrical device control apparatus, electrical device control system, and program
CN102306117B (en) Automatic hardware test alarm method and device
CN106662986B (en) The browser render process of optimization
CN111198815B (en) Compatibility testing method and device for user interface
CN109495479A (en) A kind of user&#39;s abnormal behaviour recognition methods and device
JP2001356938A (en) Computer identifying device
CN106844131A (en) A kind of computer motherboard detection method based on soar platform and kylin operating system
CN110806916A (en) Method and system for realizing individual login page of each tenant of SAAS platform
CN106407054A (en) BMC automatic testing system and method
JP5651050B2 (en) Data generation apparatus and data generation program
CN115422788A (en) Power distribution network line loss analysis management method, device, storage medium and system
CN116049043B (en) Communication method for man-machine interface equipment identification and multi-equipment reading and writing
CN109711656B (en) Multisystem association early warning method, device, equipment and computer readable storage medium
CN106919407B (en) The method that computer embeds product information synchronized update
US20190052710A1 (en) System for Integrating a Detectable Medical Module
US20230028654A1 (en) Operation log acquisition device and operation log acquisition method
CN111639903A (en) Review processing method for architecture change and related equipment
CN110275880A (en) Data analysing method, device, server and readable storage medium storing program for executing
CN115757995A (en) Method and device for processing characteristic-free data label, computer equipment and storage medium
CN113434397B (en) Task system testing method and device, electronic equipment and storage medium
CN112003837B (en) Intelligent equipment adaptation method and device based on Modbus protocol and storage medium
US11507667B2 (en) Firmware password management

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