CN106781115B - Method and terminal for recovering lost word stock of thermal printer - Google Patents
Method and terminal for recovering lost word stock of thermal printer Download PDFInfo
- Publication number
- CN106781115B CN106781115B CN201611262170.2A CN201611262170A CN106781115B CN 106781115 B CN106781115 B CN 106781115B CN 201611262170 A CN201611262170 A CN 201611262170A CN 106781115 B CN106781115 B CN 106781115B
- Authority
- CN
- China
- Prior art keywords
- font
- thermal printer
- information
- lost
- library
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000011084 recovery Methods 0.000 claims description 12
- 239000000284 extract Substances 0.000 claims description 4
- 230000008901 benefit Effects 0.000 abstract description 4
- 238000007639 printing Methods 0.000 description 26
- 230000002159 abnormal effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004080 punching Methods 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/12—Cash registers electronically operated
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/1203—Improving or facilitating administration, e.g. print management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/1284—Local printer device
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G5/00—Receipt-giving machines
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Record Information Processing For Printing (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention provides a method and a terminal for recovering a lost font library of a thermal printer. The method for recovering the lost word stock of the thermal printer comprises the thermal printer and an application module which are connected, wherein the thermal printer comprises a thermal printer word stock, the application module comprises an application module word stock, and the application module word stock is stored in a read-only memory of the thermal printer, and comprises the following steps: detecting and generating first font information lost by a thermal printer font; a central processing unit in an application module acquires lost first font information of a thermal printer; the read-write memory in the application module processes according to the instruction of the central processing unit, matches the lost first font library information and matches out second font library information; and loading the lost second word stock information from the read-only memory into the thermal printer word stock. The method and the terminal for recovering the lost word stock of the thermal printer have the advantages of quick repair and low cost.
Description
Technical Field
The invention relates to the technical field of intelligent terminal printing, in particular to a method and a terminal for recovering a lost word stock of a thermal printer.
Background
With the innovation of the technology, the printer is developed from poor performance and heavy operation into stable and fine operation, and is gradually applied to the handheld terminal to realize timely and rapid printing of processing information of the handheld terminal.
The intelligent POS is taken as an intelligent handheld terminal, combines a UnionPay card swiping function and an operating system, enables the intelligent POS to become a mainstream product in the market, and is popular with merchants and consumers. Install the printer in intelligent POS, become intelligent POS's standard and join in marriage the function, to the printer, what usually adopted is the thermal printer of performance preferred, and thermal printer obtains printing information from intelligent POS's operating system and the union pay function of punching the card, utilizes the thermal printer word stock to print printing information, does benefit to the speed and the performance preferred of printing.
In the prior art, when a word stock of a thermal printer is lost, printing needs to be stopped and then burnt in by a manufacturer or a professional. When the word stock is lost, the printing is stopped and incomplete, and the printing can be continued only by long-time repair, so that the repair cost is high, the operation and use of the whole intelligent POS are influenced, and great inconvenience is brought to merchants and consumers.
Disclosure of Invention
In order to solve the technical problems of long repair time and high cost of a lost word stock of a thermal printer of an intelligent POS in the prior art, the invention provides a method and a terminal for recovering the lost word stock of the thermal printer, which are used for quickly repairing the lost word stock of the thermal printer and have low cost.
The invention provides a method for recovering a lost word stock of a thermal printer, which comprises the following steps that the thermal printer is connected with an application module, the thermal printer comprises a thermal printer word stock, the application module comprises an application module word stock, and the application module word stock is stored in a read-only memory of the thermal printer:
detecting and generating first font information lost by a thermal printer font;
a central processing unit in an application module acquires lost first font information of a thermal printer;
the read-write memory in the application module processes according to the instruction of the central processing unit, matches the lost first font library information and matches out second font library information;
and loading the lost second word stock information from the read-only memory into the thermal printer word stock.
According to a preferred embodiment of the present invention, the amount of the font in the application module font library is greater than the amount of the font in the thermal printer font library.
According to a preferred embodiment of the present invention, the thermal printer loads the library from the thermal printer library when printing.
According to a preferred embodiment of the invention, the amount of information of the second font library is larger than the amount of information of the first font library.
According to a preferred embodiment of the present invention, when matching the second font library information, extracting the key information of the lost first font library information, comparing with the application module font library, and matching the second font library information.
According to a preferred embodiment of the invention, the loading of the second library information from the read-only memory is by copying.
The invention provides a lost word stock recovery terminal of a thermal printer, which comprises a thermal printer and an application module, wherein the thermal printer and the application module are connected, the thermal printer comprises a thermal printer word stock, the application module comprises a central processing unit, a read-write memory and a read-only memory, and the application module word stock is stored in the read-only memory:
the thermal printer is used for detecting and generating first font information with a lost font;
the central processing unit is used for acquiring first word stock information lost by the thermal printer word stock;
the read-write memory is used for processing according to the instruction of the central processing unit, matching the lost first font library information and matching second font library information;
and loading the lost second word stock information from the read-only memory to the thermal printer word stock.
According to a preferred embodiment of the present invention, the amount of the font in the application module font library is greater than the amount of the font in the thermal printer font library.
According to a preferred embodiment of the present invention, the thermal printer loads a font library from the thermal printer font library when printing.
According to a preferred embodiment of the present invention, the second font library information amount is larger than the first font library information amount.
According to a preferred embodiment of the present invention, when matching the second word stock information, extracting the lost key information of the first word stock information, comparing the key information with the application module word stock, and matching the second word stock information.
According to a preferred embodiment of the present invention, the loading of the second word stock information from the read only memory is by copying.
The technical scheme provided by the invention has the following beneficial effects:
1. by adopting the design of the thermal printer word stock and the application module word stock, when the thermal printer module word stock is lost, the lost word stock is loaded from the application module word stock in the terminal, so that low-cost quick repair is realized;
2. by adopting the design that the information amount of the second font library is larger than that of the first font library, the applicability of the application module font library is improved, and the use effect after loading is improved;
3. by adopting a mode of extracting the key information of the lost first word stock for retrieval and matching, the matching speed is improved, and quick repair is facilitated.
In addition to the objects, features and advantages described above, other objects, features and advantages of the present invention are also provided. The present invention will be described in further detail below with reference to the drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, it is obvious that the drawings described below are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a schematic flow chart illustrating a method for recovering a lost word stock of a thermal printer according to the present invention;
FIG. 2 is a block diagram of a lost word stock recovery terminal of a thermal printer according to the present invention;
fig. 3 is a schematic structural diagram of a thermal printer missing word stock recovery terminal provided by the invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Please refer to fig. 1, which is a flow chart of a method for recovering a lost word stock of a thermal printer according to the present invention;
the method for recovering the lost word stock of the thermal printer comprises the thermal printer and an application module which are connected and are both included in an intelligent POS terminal, wherein the thermal printer comprises a thermal printer word stock, the application module comprises an application module word stock, and the application module word stock is stored in a read-only memory of the application module word stock.
The word stock quantity of the application module word stock is larger than that of the thermal printer word stock, the thermal printer word stock is provided by a thermal printer manufacturer, the application module word stock comprises the thermal printer word stock and other word stocks compatible with the thermal printer, and when the thermal printer word stock needs to be burnt into other compatible word stocks in the application module word stock, the application module can be burnt in.
The method for recovering the lost word stock of the thermal printer comprises the following steps:
s1, detecting the first font information lost in the generated thermal printer font;
and when the thermal printer normally operates, the word stock is loaded from the thermal printer word stock for printing, so that the printing efficiency is facilitated.
The thermal printer detects whether the word stock is lost, can perform daily detection on the thermal printer, and can also perform detection when the thermal printer is abnormal in printing.
In the embodiment of the present invention, the occurrence of an abnormality in the printing process of the thermal printer is described. The method comprises the steps that when the thermal printer stops printing in the printing process, the thermal printer detects the reason causing the stop of printing, if the printer detects that the printer is a lost character library, on one hand, a user is prompted to be the lost character library through an interactive interface of an application module, on the other hand, the thermal printer searches and retrieves the lost information of the character library, for example, the reason that the character library is lost is searched, whether the character library is provided with a name for replacing, completing printing and retrieving the lost character library is searched, the name of the lost character library is a uniform name in the industry field, and the name of the lost character library can also be a name named by a manufacturer of the thermal printer.
And according to the searched and retrieved information, when judging that external recovery is needed, generating first font library information from the searched and retrieved information, wherein the first font library information at least comprises the memory size of the lost font library packet, a storage path, the name of the lost font library, and an example of the font library.
S2, the CPU in the application module acquires the lost first font information of the thermal printer;
the central processing unit is included in the application module and acquires first font information lost by the thermal printer through connection with the thermal printer.
The read-write memory in the S3 application module processes according to the instruction of the central processing unit, matches the lost first font library information, and matches the second font library information;
the read-write memory is included in the application module and connected with the central processing unit and the read-only memory. The central processing unit sends an operation instruction to the read-write memory according to the received first word stock information, the read-write memory is instructed to match the first word stock information, the read-write memory extracts key information from the first word stock information, such as extracting the name of a lost word stock, and then searches and matches an application module word stock in the read-only memory according to the key information of the first word stock information, and if the same word stock name is searched according to the word stock name in the first word stock information, second word stock information is generated through matching; if the same word stock name is not searched, searching a word stock compatible with the thermal printer and similar to the type of the word stock, matching to generate second word stock information, and transmitting the second word stock information to the thermal printer to judge whether the second word stock information conforms to the thermal printer. The second font library information generated by matching comprises the first font library information, a matched font library storage path and a matched font library packet, namely the information amount of the second font library is greater than that of the first font library.
S4, loading the lost second font information from the read-only memory to the thermal printer font;
and when the thermal printer judges that the second word stock information conforms to the first word stock information, the central processing unit receives an instruction of loading the second word stock information from the thermal printer, the central processing unit sends the instruction of loading the second word stock information to the read-write memory, and the read-write memory loads the second word stock information from the read-only memory.
And the mode of loading the second word stock information from the read-only memory is copying, and the copied content is a matched word stock packet.
Referring to fig. 2 and 3 together, fig. 2 is a block diagram illustrating a structure of a lost word stock recovery terminal of a thermal printer according to the present invention; fig. 3 is a schematic structural diagram of a thermal printer missing word stock recovery terminal provided by the invention.
The thermal printer lost font recovery terminal 1 comprises a thermal printer 11 and an application module 13 which are connected. The thermal printer 11 is used for printing the data information of the application module 13 and detecting the reason of the abnormal printing, and the application module 13 is used for the business to manage and generate the data information.
The thermal printer 11 includes a thermal printer word stock, and when the thermal printer 11 performs printing, the word stock required for printing is provided for the thermal printer 11.
When the thermal printer 11 is abnormal in printing, the thermal printer 11 detects the reason of the abnormal printing, and if the reason of the abnormal printing is detected to be that the thermal printer word stock is lost, on one hand, the user is prompted to be the lost word stock through the interactive interface of the application module 13, on the other hand, the thermal printer 11 searches and retrieves the information lost by the word stock, for example, the reason of the lost word stock is searched, whether the word stock is used for replacing to complete printing and retrieving the name of the lost word stock is searched, the name of the lost word stock is a uniform name in the industry field, and the name of the manufacturer of the thermal printer 11 can also be a name named by the manufacturer.
Wherein the amount of the word stock in the application module word stock is larger than the amount of the word stock in the thermal printer word stock
And according to the searched and retrieved information, when judging that external recovery is needed, generating first font library information from the searched and retrieved information, wherein the first font library information at least comprises the memory size of the lost font library packet, a storage path, the name of the lost font library, and an example of the font library.
The application module 13 includes a central processing unit 131, a read/write memory 133 and a read only memory 135, which are connected to each other.
The cpu 131 is configured to obtain first library information from the thermal printer 11, process the first library information, and then send a processing instruction to the read-write memory 133, where the read-write memory 133 extracts key information in the first library information, such as a lost library name, matches the key information with the application module library in the rom 135, and generates matched second library information, where the second library information is greater than the first library information and specifically includes the first library information, a matched library storage path, and a matched library packet, sends the second library information to the thermal printer 11 for compliance determination, and if the determination is met, returns a compliance result, the cpu 131 receives the result, and loads the second library information from the rom 135 to the thermal printer library through the read-write memory 133, the manner of loading the second library information from the read only memory 135 is replication.
The word stock quantity of the application module word stock is larger than that of the thermal printer word stock, the thermal printer word stock is provided by a thermal printer 11 manufacturer, the application module word stock comprises the thermal printer word stock and other word stocks compatible with the thermal printer, and when the thermal printer word stock needs to be burnt into other compatible word stocks in the application module word stock, the other compatible word stocks can be burnt into the application module word stock through the application module 13.
The invention has the following beneficial effects:
1. by adopting the design of the thermal printer word stock and the application module word stock, when the thermal printer module word stock is lost, the lost word stock is loaded from the application module word stock in the terminal, so that low-cost quick repair is realized;
2. by adopting the design that the information amount of the second font library is larger than that of the first font library, the applicability of the application module font library is improved, and the use effect after loading is improved;
3. by adopting a mode of extracting the key information of the lost first word stock for retrieval and matching, the matching speed is improved, and quick repair is facilitated.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all changes in equivalent structures or equivalent processes that are made by using the contents of the specification and the drawings of the present invention can be directly or indirectly applied to other related technical fields, and all such changes are encompassed in the scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611262170.2A CN106781115B (en) | 2016-12-30 | 2016-12-30 | Method and terminal for recovering lost word stock of thermal printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611262170.2A CN106781115B (en) | 2016-12-30 | 2016-12-30 | Method and terminal for recovering lost word stock of thermal printer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106781115A CN106781115A (en) | 2017-05-31 |
CN106781115B true CN106781115B (en) | 2020-03-24 |
Family
ID=58954769
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611262170.2A Expired - Fee Related CN106781115B (en) | 2016-12-30 | 2016-12-30 | Method and terminal for recovering lost word stock of thermal printer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106781115B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004249621A (en) * | 2003-02-21 | 2004-09-09 | Hitachi Printing Solutions Ltd | Printer controller |
JP2006244247A (en) * | 2005-03-04 | 2006-09-14 | Canon Inc | Printing system with font adding method |
GB2460084A (en) * | 2008-05-16 | 2009-11-18 | Software 2000 Ltd | Method and apparatus for providing and managing fonts |
CN102019768A (en) * | 2009-09-15 | 2011-04-20 | 精工爱普生株式会社 | Recording device, control method for a recording device, and a program |
CN104246686A (en) * | 2013-03-21 | 2014-12-24 | 文雅科一番株式会社 | Printing system and printing control program |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9513851B2 (en) * | 2011-09-09 | 2016-12-06 | Xerox Corporation | System and method for user-selectable font substitution to facilitate printing |
US20140016150A1 (en) * | 2012-07-13 | 2014-01-16 | Konica Minolta Laboratory U.S.A., Inc. | System and method to store embedded fonts |
-
2016
- 2016-12-30 CN CN201611262170.2A patent/CN106781115B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004249621A (en) * | 2003-02-21 | 2004-09-09 | Hitachi Printing Solutions Ltd | Printer controller |
JP2006244247A (en) * | 2005-03-04 | 2006-09-14 | Canon Inc | Printing system with font adding method |
GB2460084A (en) * | 2008-05-16 | 2009-11-18 | Software 2000 Ltd | Method and apparatus for providing and managing fonts |
CN102019768A (en) * | 2009-09-15 | 2011-04-20 | 精工爱普生株式会社 | Recording device, control method for a recording device, and a program |
CN104246686A (en) * | 2013-03-21 | 2014-12-24 | 文雅科一番株式会社 | Printing system and printing control program |
Also Published As
Publication number | Publication date |
---|---|
CN106781115A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5379341B2 (en) | Using a word processor for accounting data | |
CN108564035B (en) | Method and system for identifying information recorded on document | |
US20170132318A1 (en) | Method, system, and device for item search | |
CN104317713A (en) | Automatic testing tool and method on basis of templates | |
WO2018107812A1 (en) | Error detection method and apparatus for transaction system, storage medium and computer device | |
WO2017049761A1 (en) | Method, apparatus, system, device and storage medium for copying/pasting picture | |
US20180018312A1 (en) | System and method for monitoring electronic documents | |
CN110895654B (en) | Segmentation method, segmentation system and non-transitory computer readable medium | |
CN106781115B (en) | Method and terminal for recovering lost word stock of thermal printer | |
JPH11272654A (en) | Document editing device and method | |
US20200110931A1 (en) | Methods and Systems for Automatically Detecting the Source of the Content of a Scanned Document | |
CN107292171A (en) | Method, method for detecting virus and device for recognizing compressed file subtype | |
US20200342169A1 (en) | Information processing apparatus and non-transitory computer readable medium storing program | |
JP7112650B2 (en) | document scoring device, program | |
CN117036115A (en) | Contract data verification method, device and server | |
JP6056489B2 (en) | Translation support program, method, and apparatus | |
JP5510221B2 (en) | Information processing apparatus and information processing program | |
CN114443834B (en) | Method, device and storage medium for extracting certificate information | |
US20170185832A1 (en) | System and method for verifying extraction of multiple document images from an electronic document | |
US8615490B1 (en) | Method and system for restoring information from backup storage media | |
JP6960270B2 (en) | Design document learning device and design document learning method | |
CN101201882B (en) | Operating System Protection Methods | |
KR100567813B1 (en) | Transaction Analysis System of Tandem System | |
WO2022127610A1 (en) | Text recognition result processing system, method and device | |
JP7100797B2 (en) | Document scoring device, program |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200324 |
|
CF01 | Termination of patent right due to non-payment of annual fee |