CN112099738A - Hardware-based print data acquisition method and device - Google Patents
Hardware-based print data acquisition method and device Download PDFInfo
- Publication number
- CN112099738A CN112099738A CN202011017353.4A CN202011017353A CN112099738A CN 112099738 A CN112099738 A CN 112099738A CN 202011017353 A CN202011017353 A CN 202011017353A CN 112099738 A CN112099738 A CN 112099738A
- Authority
- CN
- China
- Prior art keywords
- module
- data signals
- processing module
- output module
- transmission data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1211—Improving printing performance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1293—Printer information exchange with computer
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention discloses a hardware-based print data acquisition method and device, relates to the field of print information acquisition devices, and solves the problem that a physical store is inaccurate and untimely in counting the quantity of goods due to various delivery channels. The system comprises a processing module and an input/output module, wherein the processing module and the input/output module are arranged between an external hardware device and a PC (personal computer), the input/output module is used for acquiring a plurality of transmission data signals sent by the PC to the external hardware device, the processing module is used for verifying whether the transmission data signals are wrong, and the processing module outputs the transmission data signals which are verified to be correct to a server module; the input and output module is further configured to receive the transmission data signal verified by the processing module, and the input and output module outputs the verified transmission data signal to the server module. The invention ensures the validity of the data and the real-time property of the machine code data verification.
Description
Technical Field
The invention relates to the field of printing information acquisition devices, in particular to a hardware-based printing data acquisition method and device.
Background
With the development of the internet, the actual economy has been greatly changed, the versatility of information sources and the way of big data analysis become emerging market research methods, and meanwhile, the data obtained by the research methods are convenient for subsequent multiple operations.
In the field of physical retail, the management of goods information is complicated and tedious, and becomes a problem to be solved urgently, the existing goods are more frequently taken in and out through various goods access channels such as takeouts and physical stores, and the physical stores frequently encounter difficulties in counting the number of the goods.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the invention provides a hardware-based print data acquisition method and device for solving the problems when the physical store is inaccurate and untimely in counting the goods quantity through various delivery channels.
The invention is realized by the following technical scheme:
the hardware-based print data acquisition device comprises a processing module, an input/output module and a server module, wherein the processing module and the input/output module are arranged between external hardware equipment and a PC;
the input/output module is communicated with an external hardware device and a PC, the input/output module is connected with the processing module, the input/output module is used for acquiring a plurality of transmission data signals sent by the PC to the external hardware device, the input/output module sends the transmission data signals to the processing module, the processing module is used for checking whether the transmission data signals are wrong or not, and the processing module outputs the transmission data signals which are checked to be correct to the server module;
the input and output module is further used for receiving the transmission data signal verified by the processing module, the input and output module is connected with the server module, and the input and output module outputs the verified transmission data signal to the server module.
Further, the input-output module comprises an input module and the output module;
the input module receives the transmission data signals, the input module is connected with the processing module, the processing module processes the transmission data signals and then sends the processed transmission data signals to the output module, the processing module is connected with the output module, the output module is connected with the server module, and the output module outputs the transmission data signals processed by the processing module to the server module.
Further, the external hardware device comprises a printer;
the printer receives a plurality of transmission data signals sent by the PC as printing data signals, the input module comprises an acquisition module, a register module and a clock module, the acquisition module acquires the printing data signals and registers the printing data signals in the register module, the register module sends the printing data signals to the processing module once in a signal period according to the signal period provided by the clock module, and the register module sends the printing data signals to the processing module for N times in N signal periods;
the processing module receives the printing data signals for N times, the processing module compares the printing data signals for N times, N is more than or equal to 3, and N is an integer;
the processing module independently and respectively processes the print data signals acquired for multiple times, the print data signals are machine codes, the processing module respectively compares each machine code in a string of print data signals, the processing module compares the print data signals acquired for two adjacent times, and performs AND operation on different machine codes to obtain AND operation results, performs OR operation on the same machine code to obtain OR operation results, and performs AND operation on the OR operation results and the operation results and outputs the OR operation results and the operation results to the output module;
and the output module obtains the printing data signal processed by the processing module.
Further, the processing module respectively processes the printing data signals obtained by the N times of acquisition operation.
Furthermore, the processing module does not process the print data signals acquired for the first time and the Nth time, the output module acquires N-2 print data signals processed by the processing module, the output module comprises a clock circuit of the output module, the output module selects the print data signal which reaches the processing of the output module in the print data signals processed by the processing module firstly according to the clock circuit, and the output module sends the print data signal which reaches the processing of the output module firstly to the server module.
Further, the device also comprises a display module;
the server module is used for converting the received printing data signals into printing receipt data, the display module is connected with the server module, and the display module displays the printing receipt data.
Preferably, the input/output module is connected with the external hardware device and the PC through a data line.
Preferably, the server module is connected with the input/output module through a data line or a wireless module;
the wireless module comprises a Zigbee module and a WIFI module.
The hardware-based print data acquisition method, the hardware-based print data acquisition device and the data analysis method for acquiring the print information comprise the following steps:
s1, the input module collects a plurality of transmission data signals sent to the external hardware equipment by the PC end and sends the transmission data signals to the processing module;
s2, the processing module checks whether the transmission data signal is wrong, and sends the checked data to the output module;
s3, the output module forwards the checked data to the server module;
s4, the server module converts the data received from the output module.
Further, the method also comprises the following specific operations:
in S1, the input module collects the transmission data signal N times, where N is greater than or equal to 3;
in S2, the processing module compares N times of the acquired transmission data signals, and the processing module does not process the transmission data signals acquired for the first time and the nth time, in such a way that the processing module independently and respectively processes the transmission data signals acquired for multiple times, the transmission data signals are machine codes, the processing module respectively compares each machine code in a string of transmission data signals, the processing module compares the transmission data signals acquired for two adjacent times, and performs and operation on different machine codes to obtain and operation results, performs and operation on the same machine code to obtain or operation results, and performs and operation on or operation results and outputs the or operation results and the operation results to the output module;
in S3, the output module selects, according to a clock circuit, a transmission data signal that is processed by the output module first among N-2 transmission data signals processed by the processing module, and the output module sends the transmission data signal that is processed by the output module first to the server module;
in S4, the server module converts the received transmission data signal into print ticket data, and displays the print ticket data on the display module.
The invention has the following advantages and beneficial effects:
according to the invention, the hardware is accessed between the printer and the PC, the hardware can acquire the printing data in a self-checking manner and send the printing data to the server, the information channel is expanded, the accuracy and the real-time performance of the data are ensured, the machine codes are acquired for multiple times through the input module with accuracy, the processing module obtains the correct machine codes by self-checking the machine codes for multiple times, the data flow displacement and error codes in the transmission process are avoided, the output module forwards the machine codes of the priority sequence, the processing time is ensured not to influence the statistical result of the data, the validity of the data is indirectly ensured, and the real-time performance of the machine code data checking is ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a diagram of the apparatus of the present invention.
FIG. 2 is a flow chart of the present invention.
Detailed Description
Before any embodiments of the invention are explained in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangements of components set forth in the following description or illustrated in the drawings. The invention is capable of other embodiments and of being practiced or of being carried out in various ways. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any inventive changes, are within the scope of the present invention.
The hardware-based print data acquisition device, as shown in fig. 1, includes a processing module and an input/output module arranged between an external hardware device and a PC, and further includes a server module;
the input/output module is communicated with an external hardware device and a PC, the input/output module is connected with the processing module, the input/output module is used for acquiring a plurality of transmission data signals sent by the PC to the external hardware device, the input/output module sends the transmission data signals to the processing module, the processing module is used for checking whether the transmission data signals are wrong or not, and the processing module outputs the transmission data signals which are checked to be correct to the server module;
the input and output module is further used for receiving the transmission data signal verified by the processing module, the input and output module is connected with the server module, and the input and output module outputs the verified transmission data signal to the server module.
Further, the input-output module comprises an input module and the output module;
the input module receives the transmission data signals, the input module is connected with the processing module, the processing module processes the transmission data signals and then sends the processed transmission data signals to the output module, the processing module is connected with the output module, the output module is connected with the server module, and the output module outputs the transmission data signals processed by the processing module to the server module.
Further, the external hardware device comprises a printer;
the printer receives a plurality of transmission data signals sent by the PC as printing data signals, the input module comprises an acquisition module, a register module and a clock module, the acquisition module acquires the printing data signals and registers the printing data signals in the register module, the register module sends the printing data signals to the processing module once in a signal period according to the signal period provided by the clock module, and the register module sends the printing data signals to the processing module for N times in N signal periods;
the processing module receives the printing data signals for N times, the processing module compares the printing data signals for N times, N is more than or equal to 3, and N is an integer;
the processing module independently and respectively processes the print data signals acquired for multiple times, the print data signals are machine codes, the processing module respectively compares each machine code in a string of print data signals, the processing module compares the print data signals acquired for two adjacent times, and performs AND operation on different machine codes to obtain AND operation results, performs OR operation on the same machine code to obtain OR operation results, and performs AND operation on the OR operation results and the operation results and outputs the OR operation results and the operation results to the output module;
and the output module obtains the printing data signal processed by the processing module.
Further, the processing module respectively processes the printing data signals obtained by the N times of acquisition operation.
Furthermore, the processing module does not process the print data signals acquired for the first time and the Nth time, the output module acquires N-2 print data signals processed by the processing module, the output module comprises a clock circuit of the output module, the output module selects the print data signal which reaches the processing of the output module in the print data signals processed by the processing module firstly according to the clock circuit, and the output module sends the print data signal which reaches the processing of the output module firstly to the server module.
Further, the device also comprises a display module;
the server module is used for converting the received printing data signals into printing receipt data, the display module is connected with the server module, and the display module displays the printing receipt data.
Preferably, the input/output module is connected with the external hardware device and the PC through a data line.
Preferably, the server module is connected to the input/output module through a data line or a wireless module, and the wireless module includes a Zigbee module and a WIFI module.
The method for collecting the print data based on the hardware, the device for collecting the print data based on the hardware, and the data analysis method for collecting the print information, as shown in fig. 2, comprises the following steps:
s1, the input module collects a plurality of transmission data signals sent to the external hardware equipment by the PC end and sends the transmission data signals to the processing module;
s2, the processing module checks whether the transmission data signal has errors or not and sends the checked data to the output module, the input module collects the transmission data signal for N times, N is more than or equal to 3, the processing module compares the transmission data signal collected for N times for N-2 times, the processing module does not process the transmission data signal collected for the first time and the transmission data signal collected for N times, the comparison mode is that the processing module independently and respectively processes the transmission data signal collected for multiple times, the transmission data signal is a machine code, the processing module respectively compares each machine code in a string of transmission data signals, the processing module compares the transmission data signal collected for two adjacent times, carries out and operation on different machine codes to obtain and operation results, carries out or operates on the same machine code to obtain or operate the result, performing AND operation on the OR operation result and the operation result and outputting the OR operation result and the operation result to an output module;
s3, the output module forwards the checked data to a server module, the output module selects the transmission data signal which reaches the processing of the output module firstly from N-2 transmission data signals processed by the processing module according to a clock circuit, and the output module sends the transmission data signal which reaches the processing of the output module firstly to the server module;
and S4, the server module converts the data received from the output module, converts the received transmission data signal into printing receipt data, and displays the printing receipt data on the display module.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. The hardware-based print data acquisition device is characterized by comprising a processing module, an input/output module and a server module, wherein the processing module and the input/output module are arranged between external hardware equipment and a PC;
the input/output module is communicated with an external hardware device and a PC, the input/output module is connected with the processing module, the input/output module is used for acquiring a plurality of transmission data signals sent by the PC to the external hardware device, the input/output module sends the transmission data signals to the processing module, the processing module is used for checking whether the transmission data signals are wrong or not, and the processing module outputs the transmission data signals which are checked to be correct to the server module;
the input and output module is further used for receiving the transmission data signal verified by the processing module, the input and output module is connected with the server module, and the input and output module outputs the verified transmission data signal to the server module.
2. The hardware-based print data acquisition apparatus of claim 1, wherein the input-output module comprises an input module and the output module;
the input module receives the transmission data signals, the input module is connected with the processing module, the processing module processes the transmission data signals and then sends the processed transmission data signals to the output module, the processing module is connected with the output module, the output module is connected with the server module, and the output module outputs the transmission data signals processed by the processing module to the server module.
3. The apparatus according to claim 2, wherein the external hardware device comprises a printer;
the printer receives a plurality of transmission data signals sent by the PC as printing data signals, the input module comprises an acquisition module, a register module and a clock module, the acquisition module acquires the printing data signals and registers the printing data signals in the register module, the register module sends the printing data signals to the processing module once in a signal period according to the signal period provided by the clock module, and the register module sends the printing data signals to the processing module for N times in N signal periods;
the processing module receives the printing data signals for N times, the processing module compares the printing data signals for N times, N is more than or equal to 3, and N is an integer;
the processing module independently and respectively processes the print data signals acquired for multiple times, the print data signals are machine codes, the processing module respectively compares each machine code in a string of print data signals, the processing module compares the print data signals acquired for two adjacent times, and performs AND operation on different machine codes to obtain AND operation results, performs OR operation on the same machine code to obtain OR operation results, and performs AND operation on the OR operation results and the operation results and outputs the OR operation results and the operation results to the output module;
and the output module obtains the printing data signal processed by the processing module.
4. The hardware-based print data acquisition device of claim 3, wherein the processing module processes the print data signals obtained from the N acquisition operations respectively.
5. The hardware-based print data acquisition device of claim 4, wherein the processing module does not process the print data signals acquired for the first time and the nth time, the output module obtains N-2 print data signals processed by the processing module, the output module includes a clock circuit of the output module, the output module selects the print data signal which reaches the output module first from the N-2 print data signals processed by the processing module according to the clock circuit, and the output module sends the print data signal which reaches the output module first to the server module.
6. The hardware-based print data acquisition device of claim 5, further comprising a display module;
the server module is used for converting the received printing data signals into printing receipt data, the display module is connected with the server module, and the display module displays the printing receipt data.
7. The apparatus according to any of claims 1-6, wherein the input/output module connects the external hardware device to the PC via a data cable.
8. The hardware-based print data collection apparatus of any one of claims 1-6, wherein the server module is connected to the input/output module via a data line or a wireless module;
the wireless module comprises a Zigbee module and a WIFI module.
9. A method for acquiring print data based on hardware, characterized in that, based on the apparatus for acquiring print data based on hardware as claimed in any one of claims 1 to 6, the data analysis method for acquiring print information comprises the steps of:
s1, the input module collects a plurality of transmission data signals sent to the external hardware equipment by the PC end and sends the transmission data signals to the processing module;
s2, the processing module checks whether the transmission data signal is wrong, and sends the checked data to the output module;
s3, the output module forwards the checked data to the server module;
s4, the server module converts the data received from the output module.
10. The method of claim 9, further comprising the specific operations of:
in S1, the input module collects the transmission data signal N times, where N is greater than or equal to 3;
in S2, the processing module compares N times of the acquired transmission data signals, and the processing module does not process the transmission data signals acquired for the first time and the nth time, in such a way that the processing module independently and respectively processes the transmission data signals acquired for multiple times, the transmission data signals are machine codes, the processing module respectively compares each machine code in a string of transmission data signals, the processing module compares the transmission data signals acquired for two adjacent times, and performs and operation on different machine codes to obtain and operation results, performs and operation on the same machine code to obtain or operation results, and performs and operation on or operation results and outputs the or operation results and the operation results to the output module;
in S3, the output module selects, according to a clock circuit, a transmission data signal that is processed by the output module first among N-2 transmission data signals processed by the processing module, and the output module sends the transmission data signal that is processed by the output module first to the server module;
in S4, the server module converts the received transmission data signal into print ticket data, and displays the print ticket data on the display module.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011017353.4A CN112099738B (en) | 2020-09-24 | 2020-09-24 | Hardware-based print data acquisition method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011017353.4A CN112099738B (en) | 2020-09-24 | 2020-09-24 | Hardware-based print data acquisition method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112099738A true CN112099738A (en) | 2020-12-18 |
| CN112099738B CN112099738B (en) | 2022-11-22 |
Family
ID=73755430
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011017353.4A Active CN112099738B (en) | 2020-09-24 | 2020-09-24 | Hardware-based print data acquisition method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112099738B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1691003A (en) * | 2004-04-21 | 2005-11-02 | 株式会社岛津制作所 | Data processing system, server and data processing method for instrumental analysis |
| CN107066216A (en) * | 2016-01-08 | 2017-08-18 | 兄弟工业株式会社 | Print system, printing equipment and data processing method |
| US20180001557A1 (en) * | 2016-06-29 | 2018-01-04 | Velo3D, Inc. | Three-dimensional printing and three-dimensional printers |
| CN109313489A (en) * | 2016-03-18 | 2019-02-05 | 埃尔瓦有限公司 | The system and method for the touch feedback changed about the software starting of the text input inputted to user are provided |
| CN111324312A (en) * | 2018-12-14 | 2020-06-23 | 北京互帮国际技术有限公司 | Information processing system, device, method, medium and equipment |
-
2020
- 2020-09-24 CN CN202011017353.4A patent/CN112099738B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1691003A (en) * | 2004-04-21 | 2005-11-02 | 株式会社岛津制作所 | Data processing system, server and data processing method for instrumental analysis |
| CN107066216A (en) * | 2016-01-08 | 2017-08-18 | 兄弟工业株式会社 | Print system, printing equipment and data processing method |
| CN109313489A (en) * | 2016-03-18 | 2019-02-05 | 埃尔瓦有限公司 | The system and method for the touch feedback changed about the software starting of the text input inputted to user are provided |
| US20180001557A1 (en) * | 2016-06-29 | 2018-01-04 | Velo3D, Inc. | Three-dimensional printing and three-dimensional printers |
| CN111324312A (en) * | 2018-12-14 | 2020-06-23 | 北京互帮国际技术有限公司 | Information processing system, device, method, medium and equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112099738B (en) | 2022-11-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112084109B (en) | System testing method, device, equipment and medium | |
| CN110046086B (en) | Expected data generation method and device for test and electronic equipment | |
| JP6920378B2 (en) | Repair board detectors, methods and computer readable storage media | |
| CN101324860A (en) | Motherboard test system and test method | |
| CN110795464B (en) | Method, device, terminal and storage medium for checking field of object marker data | |
| CN111427796A (en) | System testing method and device and electronic equipment | |
| CN112541688B (en) | Service data verification method and device, electronic equipment and computer storage medium | |
| CN102117436A (en) | System and method for analyzing patient electronic receipt file | |
| CN107992914A (en) | A kind of machining period measuring method and system, terminal | |
| CN117215953A (en) | Verification method and device for equipment configuration information, storage medium and electronic equipment | |
| CN113448788A (en) | Test-based service processing method and device, electronic equipment and storage medium | |
| US4513419A (en) | Digital conversion circuit and method for testing digital information transfer systems based on serial bit communication words | |
| CN116107703A (en) | Interface control document generation method and device | |
| CN112099738B (en) | Hardware-based print data acquisition method and device | |
| CN114371392A (en) | Touch data detection device, touch chip and electronic equipment | |
| CN113986381A (en) | Data analysis method, device, equipment and storage medium | |
| CN113128848A (en) | Data quality monitoring method for full-service index, electronic equipment and storage medium | |
| US8942300B1 (en) | Integrated digitizer system with streaming interface | |
| CN115932144A (en) | Chromatograph performance detection method, device, equipment and computer medium | |
| CN111858781B (en) | Simulation method and device based on preset communication protocol | |
| CN115438031A (en) | Spacecraft multi-source remote measurement original code comparison analysis method and system | |
| CN117873899B (en) | Automatic testing method and device for UI interface, terminal equipment and storage medium | |
| CN115242638B (en) | Feasible touch screening method and device, electronic equipment and storage medium | |
| CN109558262A (en) | A kind of big data analysis system based on the identification of computer identifying code | |
| CN109101075A (en) | Time tag generating means and method |
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 |