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 PDF

Info

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
word stock
thermal printer
information
lost
application module
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.)
Active
Application number
CN201611262170.2A
Other languages
Chinese (zh)
Other versions
CN106781115A (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.)
Guangzhou Yun Yi Information Technology Co Ltd
Original Assignee
Guangzhou Yun Yi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yun Yi Information Technology Co Ltd filed Critical Guangzhou Yun Yi Information Technology Co Ltd
Priority to CN201611262170.2A priority Critical patent/CN106781115B/en
Publication of CN106781115A publication Critical patent/CN106781115A/en
Application granted granted Critical
Publication of CN106781115B publication Critical patent/CN106781115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1284Local printer device
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G5/00Receipt-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

Method and terminal for recovering lost word stock of thermal printer
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)

1. The method for recovering the lost word stock of the thermal printer is characterized by comprising 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:
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;
loading the missing second font information from the read-only memory into the thermal printer font;
and when the second font library information is matched, extracting the key information of the lost first font library information, comparing the key information with the application module font library, and matching the second font library information.
2. The method of recovering a missing word stock in a thermal printer of claim 1, wherein the amount of the word stock in the application module word stock is greater than the amount of the word stock in the thermal printer word stock.
3. The method of recovering a missing word stock in a thermal printer according to claim 1, wherein the word stock is loaded from the thermal printer word stock while the thermal printer is printing.
4. The method of recovering a missing word stock in a thermal printer according to claim 1, wherein the amount of information in the second word stock is greater than the amount of information in the first word stock.
5. The method for recovering a missing word stock in a thermal printer according to claim 1, wherein the second word stock information is loaded from the read only memory in a manner of copying.
6. The lost word stock recovery terminal of the thermal printer is characterized by comprising a thermal printer and an application module which are connected, wherein 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;
loading the lost second word stock information from the read only memory into the thermal printer word stock;
and when the second word stock information is matched, 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.
7. The thermal printer missing word stock recovery terminal of claim 6 wherein the amount of word stock in the application module word stock is greater than the amount of word stock in the thermal printer word stock.
8. The thermal printer missing word stock recovery terminal of claim 6 wherein the thermal printer loads a word stock from the thermal printer word stock when printing.
9. The thermal printer missing word stock recovery terminal of claim 6 wherein the second word stock information amount is greater than the first word stock information amount.
10. The thermal printer missing word stock recovery terminal of claim 6 wherein the loading of the second word stock information from the read only memory is by copying.
CN201611262170.2A 2016-12-30 2016-12-30 Method and terminal for recovering lost word stock of thermal printer Active CN106781115B (en)

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 Active 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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CA3174601C (en) Text intent identifying method, device, computer equipment and storage medium
CN104317713A (en) Automatic testing tool and method on basis of templates
US20170132318A1 (en) Method, system, and device for item search
JP6614756B2 (en) Transaction system error detection method, apparatus, storage medium, and computer device
US20090148048A1 (en) Information classification device, information classification method, and information classification program
CN111274045A (en) Multi-platform docking method and device, computer equipment and readable storage medium
CN108846660B (en) Method and system for identifying abnormal fund
WO2017049761A1 (en) Method, apparatus, system, device and storage medium for copying/pasting picture
CN104636322A (en) Text copying method and text copying device
WO2019196260A1 (en) Method and device for automatically searching for logistics information, terminal device, and readable storage medium
EP2960777B1 (en) Data protection method, apparatus and device
CN100437504C (en) Hard disc data backup system and method
CN103186561A (en) Data test method, test library generating method and related device
US20180018312A1 (en) System and method for monitoring electronic documents
CN106781115B (en) Method and terminal for recovering lost word stock of thermal printer
CN107292171A (en) Method, method for detecting virus and device for recognizing compressed file subtype
CN101520880B (en) Information displaying method on electronic signing tool and information displaying system thereof, and electronic signature tool
CN117036115A (en) Contract data verification method, device and server
CN111782792A (en) Method and apparatus for information processing
US6811089B2 (en) Portable electronic medium issuing system and issuing method and portable electronic medium
CN103488549B (en) Roll-back processing system and roll-back processing method for multi-mirror-image data
US9258258B2 (en) Implementing injection of formal numerical message identifiers in cloud stacks
CN111475101B (en) Method, system, device and storage medium for repairing flash memory card
JP5510221B2 (en) Information processing apparatus and information processing program
KR100567813B1 (en) Transaction Analysing System for Tandem system

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