CN112800788A - Method for confirming and processing code values of multiple two-dimensional code reading devices - Google Patents
Method for confirming and processing code values of multiple two-dimensional code reading devices Download PDFInfo
- Publication number
- CN112800788A CN112800788A CN202011633068.5A CN202011633068A CN112800788A CN 112800788 A CN112800788 A CN 112800788A CN 202011633068 A CN202011633068 A CN 202011633068A CN 112800788 A CN112800788 A CN 112800788A
- Authority
- CN
- China
- Prior art keywords
- code
- information
- devices
- code scanning
- processing program
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 title claims abstract description 8
- 238000001914 filtration Methods 0.000 claims abstract description 4
- 230000006978 adaptation Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/1095—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices the scanner comprising adaptations for scanning a record carrier that is displayed on a display-screen or the like
Abstract
The invention discloses a method for confirming and processing code values of multiple two-dimensional code reading devices, which comprises the following steps: s1, enumerating all HID devices to obtain basic device information; s2, filtering out non-keyboard type equipment according to the equipment type; s3, obtaining VID, PID, device serial number and other device characteristic information of the keyboard type device; s4, capturing code scanning information of a plurality of code scanning devices, and sending device characteristic information, code scanning texts, request types and the like to a code text processing program; and S5, outputting the information fed back by the code word processing program to a display area such as a cursor. The invention supports the simultaneous work of various devices, does not distinguish application scenes, is developed at one time and is suitable for multiple devices.
Description
Technical Field
The invention relates to a method for confirming and processing code values of multiple two-dimensional code reading devices.
Background
The two-dimensional code is used extensively at present in real life, can be read by the two-dimensional code recognition equipment of different producers, and app such as believe a little, pay treasure also can discern the two-dimensional code. In practical application scenarios, some information systems need to acquire original information of the two-dimensional code, and some information systems need to be compatible with different devices.
Taking hospital information system application as an example, the electronic health card provides real-time information for application scenes such as appointment registration, treatment and the like, the code scanning device reads the two-dimensional code data and feeds the two-dimensional code data back to the code text processing program, and the processing program judges the validity of the electronic health card and returns the verified information to the client. The general two-dimensional code scanning equipment is keyboard type HID equipment, most two-dimensional code reading program manufacturers mainly output code scanning results by a keyboard, and SDK middleware such as a dynamic link library is not packaged to obtain code scanning results; even if SDK middleware interfaces such as a dynamic link library exist, the SDK middleware interfaces need to be adapted one by one to obtain code scanning results. Along with the increase of manufacturers, the adaptation sources of the reading devices are inexhaustible, and the problem of solving the adaptation of the multiple reading devices becomes an urgent problem; on the other hand, different code scanning devices can be used by different application developers, and the client application program only concerns the code scanning result of the device of the client application program and does not place the code scanning results of other devices in the result display area of the client application program.
In an actual application scenario, the following situations are divided: 1. the information system expects to obtain code scanning result original data; 2. the information system expects to obtain the processing data of the code scanning result, firstly, the original data of the code scanning result is placed in an input box, then, the original text is submitted to a code text processing program, and the final information is obtained through feedback after the processing program processes the original text. 3. The information system intercepts and captures keyboard information, code scanning original data are obtained after processing, then the original text is submitted to a code text processing program, final information is obtained after the processing program processes the original text and feeds back the processed original text, and the final information is output to a result application area. 4. And (4) calling SDKs provided by different manufacturers in a round-robin manner to obtain code scanning information, submitting the original text to a code text processing program, feeding back the processed original text to obtain final information, and outputting the final information to a result application area. In the existing solutions, there are major drawbacks: the 1 st, 2 nd and 3 rd scenes cannot distinguish the devices, and when multiple devices exist, a certain code scanning device is expected to be used, but code scanning results of other devices are obtained; the 2 nd scene has no universality, and a third-party integrator needs to develop a lot; as a plurality of three-party manufacturers are required to obtain the required information according to the code scanning original text, and each manufacturer needs to integrate, the cost is high, and the time is long. Only third party vendors who upgrade compatible programs can use the translated code. In case 3, the keyboard message may be processed unsuccessfully, for example, when a plurality of two-dimensional code reading devices read two-dimensional codes simultaneously, data may overlap, and the result is unpredictable. In case 4, the third party vendor is overly dependent and is not supported by the newly accessed device.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for identifying and processing code values by multiple two-dimensional code reading devices, which supports simultaneous operation of multiple devices, does not distinguish application scenes, is developed at one time, and is applicable to multiple devices.
A method for confirming and processing code values of multiple two-dimensional code reading devices comprises the following steps:
s1, enumerating all HID devices to obtain basic device information;
s2, filtering out non-keyboard type equipment according to the equipment type;
s3, obtaining VID, PID, device serial number and other device characteristic information of the keyboard type device;
s4, capturing code scanning information of a plurality of code scanning devices, and sending device characteristic information, code scanning texts, request types and the like to a code text processing program;
and S5, outputting the information fed back by the code word processing program to a display area such as a cursor.
The invention has the beneficial effects that:
the scheme has the following advantages while meeting all functional requirements of the prior technical scheme:
the invention can distinguish the code scanning results of different devices, and when the code text processing program is submitted, the device characteristics and the code scanning results are submitted simultaneously so as to facilitate the differential analysis and processing of the processing program; the invention supports the simultaneous work of various devices, and does not distinguish application scenes; the invention directly outputs the processed information to the display area without secondary development of a third party manufacturer, thereby saving development cost and time; the invention does not depend on a third-party dynamic library and the like; the code value information acquired by the invention is more reliable than the result of intercepting the keyboard message.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention;
FIG. 2 is a functional flow diagram of the present invention;
Detailed Description
The invention will be described in detail below with reference to the accompanying figures 1-2:
according to the invention, the keyboard equipment is found out by enumerating the HID of the terminal, the code scanning equipment can be positioned according to VID and PID, then the equipment is opened, the serial number of the equipment is obtained, the original USB data is captured, and then the USB data is processed to obtain the code scanning result. And then the equipment serial number, the code scanning result and some necessary information are submitted to a code text processing program to obtain information required by the client, and then the result is output to a display area. The specific method comprises the following steps: s1, enumerating all HID devices to obtain basic device information;
s2, filtering out non-keyboard type equipment according to the equipment type;
s3, obtaining VID, PID, device serial number and other device characteristic information of the keyboard type device;
s4, capturing code scanning information of a plurality of code scanning devices, and sending device characteristic information, code scanning texts, request types and the like to a code text processing program;
and S5, outputting the information fed back by the code word processing program to a display area such as a cursor.
The invention mainly distinguishes the equipment of different manufacturers through VID and PID, and can distinguish a plurality of equipment on the host computer by combining the serial number of the equipment; and then, providing the data of the code scanning of the equipment for a code text processing program to analyze so as to obtain feedback information, and finally displaying the feedback information at a cursor.
In the architectural design of the present invention, as shown in fig. 1, a code scanning pier and other USB code scanning devices are connected to a terminal through a USB interface, the terminal obtains an original code text, the original code text is interacted with a server code text processing program to obtain feedback information, and the information is fed back to a display area such as a cursor, and the submitted information includes, taking an electronic health code as an example: information of the device (serial number, PID, VID), scan information, authorization information, and request type; and after receiving the information, the server side verifies the serial number and the authorization information, verifies whether to enable the code scanning equipment to be credible, returns error information if not, judges whether the two-dimensional code information is a health code if not, returns original text if not, verifies whether the two-dimensional code information is overdue if the two-dimensional code information is the health code, returns error information if the two-dimensional code information is the health code, and returns analyzed information if the two-dimensional code information is overdue or invalid, otherwise, returns the analyzed information according to the request type.
Claims (1)
1. A method for confirming and processing code values of multiple two-dimensional code reading devices is characterized by comprising the following steps:
s1, enumerating all HID devices to obtain basic device information;
s2, filtering out non-keyboard type equipment according to the equipment type;
s3, obtaining VID, PID, device serial number and other device characteristic information of the keyboard type device;
s4, capturing code scanning information of a plurality of code scanning devices, and sending device characteristic information, code scanning texts, request types and the like to a code text processing program;
and S5, outputting the information fed back by the code word processing program to a display area such as a cursor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011633068.5A CN112800788A (en) | 2020-12-31 | 2020-12-31 | Method for confirming and processing code values of multiple two-dimensional code reading devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011633068.5A CN112800788A (en) | 2020-12-31 | 2020-12-31 | Method for confirming and processing code values of multiple two-dimensional code reading devices |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112800788A true CN112800788A (en) | 2021-05-14 |
Family
ID=75808430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011633068.5A Pending CN112800788A (en) | 2020-12-31 | 2020-12-31 | Method for confirming and processing code values of multiple two-dimensional code reading devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112800788A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102646186A (en) * | 2012-02-27 | 2012-08-22 | 北京恒信彩虹科技有限公司 | Two-dimensional code reading method, equipment and device as well as computer and two-dimensional code reading system |
US20160125367A1 (en) * | 2014-10-31 | 2016-05-05 | ecoATM, Inc. | Systems and methods for recycling consumer electronic devices |
CN106203229A (en) * | 2016-07-07 | 2016-12-07 | 立德高科(昆山)数码科技有限责任公司 | The terminal unit recognition Quick Response Code of different rights is with the method for the different information of display |
CN109840444A (en) * | 2019-01-25 | 2019-06-04 | 努比亚技术有限公司 | A kind of barcode scanning recognition methods, equipment and computer readable storage medium |
CN110413451A (en) * | 2019-07-22 | 2019-11-05 | 苏州桦汉科技有限公司 | A kind of USB device automatic recovery method, apparatus and system |
-
2020
- 2020-12-31 CN CN202011633068.5A patent/CN112800788A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102646186A (en) * | 2012-02-27 | 2012-08-22 | 北京恒信彩虹科技有限公司 | Two-dimensional code reading method, equipment and device as well as computer and two-dimensional code reading system |
US20160125367A1 (en) * | 2014-10-31 | 2016-05-05 | ecoATM, Inc. | Systems and methods for recycling consumer electronic devices |
CN106203229A (en) * | 2016-07-07 | 2016-12-07 | 立德高科(昆山)数码科技有限责任公司 | The terminal unit recognition Quick Response Code of different rights is with the method for the different information of display |
CN109840444A (en) * | 2019-01-25 | 2019-06-04 | 努比亚技术有限公司 | A kind of barcode scanning recognition methods, equipment and computer readable storage medium |
CN110413451A (en) * | 2019-07-22 | 2019-11-05 | 苏州桦汉科技有限公司 | A kind of USB device automatic recovery method, apparatus and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108449407B (en) | Multi-source heterogeneous coal mine safety monitoring data acquisition method | |
US20130117855A1 (en) | Apparatus for automatically inspecting security of applications and method thereof | |
CA2684822A1 (en) | Data transformation based on a technical design document | |
CN111047147B (en) | Automatic business process acquisition method and intelligent terminal | |
CN115794437A (en) | Calling method and device of microservice, computer equipment and storage medium | |
US11106908B2 (en) | Techniques to determine document recognition errors | |
CN108305373B (en) | Voting method, device, equipment and storage medium | |
CN113961196A (en) | Method, device and equipment for automatically generating codes and readable storage medium | |
CN112800788A (en) | Method for confirming and processing code values of multiple two-dimensional code reading devices | |
JP7089147B2 (en) | How to process the data | |
CN113050921A (en) | Webpage conversion method, device, storage medium and computer equipment | |
US20030028559A1 (en) | Method of analyzing a document represented in a markup language | |
CN111367791B (en) | Method, device, medium and electronic equipment for generating test case | |
CN114896161A (en) | File construction method and device based on artificial intelligence, computer equipment and medium | |
CN113986951A (en) | Generation system and method of universal ETL code | |
CN112580334A (en) | File processing method, file processing device, server and storage medium | |
CN112882957A (en) | Test task validity checking method and device | |
CN106327560A (en) | File version identification method and identification client side | |
CN112748930B (en) | Compilation detection method, device, equipment and storage medium | |
CN117033247B (en) | Verification method and system for carrying mobile phone and tablet personal computer | |
US11847845B2 (en) | Integrating a widget in a third-party application | |
CN111291298A (en) | Page display method and device, electronic equipment and storage medium | |
CN115695504B (en) | Internet of things platform communication method, device, equipment and storage medium | |
CN113626008B (en) | System, method and device for physical device adaptation based on hybrid development application | |
CN113010481B (en) | File capturing method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210514 |