CN106781115A - Thermal printer loses character library restoration methods and terminal - Google Patents

Thermal printer loses character library restoration methods and terminal Download PDF

Info

Publication number
CN106781115A
CN106781115A CN201611262170.2A CN201611262170A CN106781115A CN 106781115 A CN106781115 A CN 106781115A CN 201611262170 A CN201611262170 A CN 201611262170A CN 106781115 A CN106781115 A CN 106781115A
Authority
CN
China
Prior art keywords
character library
thermal printer
information
application module
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611262170.2A
Other languages
Chinese (zh)
Other versions
CN106781115B (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

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 present invention provides a kind of thermal printer and loses character library restoration methods and terminal.The thermal printer loses character library restoration methods includes thermal printer and application module, the two is connected, and thermal printer includes thermal printer character library, and application module includes application module character library, the application module character library is stored in its read-only storage, including step is as follows:The first character library information that detection generation thermal printer character library is lost;Central processing unit in application module obtains the first character library information that thermal printer is lost;Read-write memory in application module is processed according to central processing unit instruction, and the first character library information to losing is matched, and matches the second character library information;The second character library information of loss to thermal printer character library is loaded from read-only storage.The thermal printer that the present invention is provided loses character library restoration methods and terminal to be had the advantages that to repair quick and low cost.

Description

Thermal printer loses character library restoration methods and terminal
Technical field
The present invention relates to intelligent terminal printing technique field, especially, it is related to a kind of thermal printer to lose character library and recovers Method and terminal.
Background technology
With the innovation of technology, printer is developed into stable, fine by poor performance, heaviness, is gradually applied to hand-held Terminal, realize carrying out the processing information of handheld terminal in time, printing speed.
Intelligent POS, with reference to Unionpay's function of swiping card and operating system, turns into intelligent POS as a kind of intelligent hand-held terminal The main product in market, is welcome by trade company and consumer.Printer is installed on intelligent POS, has become intelligent POS's Standard configuration function, for printer, generally uses performance preferably thermal printer, behaviour of the thermal printer from intelligent POS Make system and Unionpay function of swiping card obtains type information, type information is printed using thermal printer character library, beneficial to beating The quick and performance of print is preferable.
In the prior art, when the character library of thermal printer is lost, printing need to be terminated, then it is burned by manufacturer or professional. Occur character library lose when, will cause printing occur terminate, print it is imperfect, and need the long period reparation can just carry out after Continuous printing, rehabilitation cost is high, has influence on operating with for whole intelligence POS, is that trade company and consumer bring great inconvenience.
The content of the invention
For the repair time technology long and high cost that the thermal printer for solving intelligence POS in the prior art loses character library Problem, it is extensive that the present invention provides a kind of quick and low cost the thermal printer loss character library of reparation of thermal printer loss character library Compound method and terminal.
The thermal printer that the present invention is provided loses character library restoration methods, including thermal printer and application module, the two It is connected, thermal printer includes thermal printer character library, and application module includes application module character library, the application module word Stock is stored in its read-only storage:
The first character library information that detection generation thermal printer character library is lost;
Central processing unit in application module obtains the first character library information that thermal printer is lost;
Read-write memory in application module is processed according to central processing unit instruction, to the first character library information lost Matched, matched the second character library information;
The second character library information of loss to thermal printer character library is loaded from read-only storage.
According to a preferred embodiment of the present invention, the word-base amount in application module character library is more than in thermal printer character library Word-base amount.
According to a preferred embodiment of the present invention, loaded from thermal printer character library when thermal printer is printed Character library.
According to a preferred embodiment of the present invention, the second character library contains much information in the first character library information content.
According to a preferred embodiment of the present invention, when matching the second character library information, the first character library information lost is extracted Key message, contrasted with application module character library, therefrom match the second character library information.
According to a preferred embodiment of the present invention, the mode of the second character library information is loaded from read-only storage to replicate.
The thermal printer that the present invention is provided loses character library and recovers terminal, including thermal printer and application module, the two Be connected, the thermal printer include thermal printer character library, the application module include central processing unit, read-write memory and Read-only storage, the application module character library is stored in the read-only storage:
The thermal printer is used to detect the first character library information that its character library is lost that generates;
The central processing unit is used to obtain the first character library information that the thermal printer character library is lost;
The read-write memory is used to be processed according to central processing unit instruction, to the first character library information lost Matched, matched the second character library information;
The second character library information of loss to the thermal printer character library is loaded from the read-only storage.
According to a preferred embodiment of the present invention, the word-base amount in the application module character library is more than the thermal printing Word-base amount in machine character library.
According to a preferred embodiment of the present invention, from the thermal printer word when thermal printer is printed Character library is loaded in storehouse.
According to a preferred embodiment of the present invention, second character library contains much information in the first character library information content.
According to a preferred embodiment of the present invention, when matching the second character library information, described first for losing is extracted The key message of character library information, is contrasted with the application module character library, therefrom matches the second character library information.
According to a preferred embodiment of the present invention, the mode of the second character library information is loaded from the read-only storage To replicate.
The technical scheme that the present invention is provided has the advantages that:
1st, by the design using thermal printer character library and application module character library, thermal printer module character library is lost When, the character library of loss is loaded from application module character library in terminal inner, realize the quick reparation of low cost;
2nd, compared with the design that the first character library contains much information, the application module character library is lifted by using the second character library information content Be applicable, lifting loading after using effect;
3rd, by way of retrieval matching is carried out using the key message for extracting the first character library lost, lifting matching speed Degree, beneficial to quick reparation.
In addition to objects, features and advantages described above, the present invention also has other objects, features and advantages. Below with reference to figure, the present invention is further detailed explanation.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings discussed below is only some embodiments of the present invention, for this For the those of ordinary skill of field, on the premise of not paying creative work, can also obtain other according to these accompanying drawings Accompanying drawing, wherein:
Fig. 1 is the process step schematic diagram that the thermal printer that the present invention is provided loses character library restoration methods;
Fig. 2 is that the thermal printer that the present invention is provided loses the structured flowchart that character library recovers terminal;
Fig. 3 is that the thermal printer that the present invention is provided loses the structural representation that character library recovers terminal.
Specific embodiment
With reference to accompanying drawing of the invention, clear, complete description is carried out to the technical scheme in the embodiment of the present invention, shown So, described embodiment is only a part of embodiment of the invention, rather than whole embodiments.
Fig. 1 is referred to, is the process step schematic diagram of the thermal printer loss character library restoration methods that the present invention is provided;
The thermal printer loses character library restoration methods, including thermal printer and application module, and the two is connected, wraps Include in intelligent POS terminal, the thermal printer includes thermal printer character library, the application module includes application module word Storehouse, the application module character library is stored in its read-only storage.
The word-base amount of the application module character library is more than the word-base amount in the thermal printer character library, the thermal printing Machine character library is provided by thermal printer manufacturer, and the application module character library includes that the thermal printer character library and energy are compatible Other character libraries of the thermal printer, other in the thermal printer character library needs the burned application module character library During compatible character library, can be carried out by the application module burned.
The thermal printer is lost character library restoration methods and is comprised the following steps:
The first character library information that S1 detection generation thermal printer character libraries are lost;
When the thermal printer normally runs, loading character library is printed from the thermal printer character library, is beneficial to Printing effect.
Whether the thermal printing machine testing character library loses, and can carry out routine testing for the thermal printer, also may be used Think that the thermal printer is detected when printing occurs abnormal.
In the embodiment of the present invention, occur abnormal illustrating in print procedure with the thermal printer.The temperature-sensitive Printer during printing is carried out, occur stop printing, then the thermal printer to cause stop print the reason for carry out Detection, if being detected as losing character library, on the one hand points out user to lose character library, separately by the interactive interface of the application module On the one hand, the thermal printer is searched the information that character library is lost, retrieved, and is such as searched character library the reason for lose, is searched Whether its own has character library to carry out replacement completes printing, the title of retrieval loss character library, the entitled industry of the loss character library Field Uniform Name title, or the thermal printer manufacturer oneself name into title.
According to search and retrieval information, when judging that needs carry out extraneous recovery, will search and the information of retrieval will generate the One character library information, the first character library information at least includes the name lost the memory size of character library bag, store path, lose character library Claim, an example of character library can also be included.
Central processing unit in S2 application modules obtains the first character library information that thermal printer is lost;
The central processing unit is included in the application module, the central processing unit by with the thermal printer Connection, obtain the first character library information that the thermal printer is lost.
Read-write memory in S3 application modules is processed according to central processing unit instruction, to the first character library letter lost Breath is matched, and matches the second character library information;
The read-write memory is included in the application module, and with the central processing unit, the read-only storage It is connected.The central processing unit sends operating instruction according to the first character library information for receiving to the read-write memory, instructs institute Stating read-write memory carries out the matching of the first character library information, and the read-write memory extracts key from the first character library information Information, such as extract lose character library title, further according to the first character library information key message in the read-only storage Application module character library carry out lookup matching, such as character library title in the first character library information, if retrieving same word library name Claim, then the second character library information of matching generation;If not retrieving same word library name, the compatible thermal printer and word are retrieved The similar character library of storehouse type, matching the second character library information of generation, by the second character library information transfer to the thermal printer Judged, if meet.Matching the second character library information of generation includes that the first character library information, the character library of matching are deposited Storage path and the character library bag of matching, i.e., described second character library contain much information in the first character library information content.
S4 loads the second character library information of loss to thermal printer character library from read-only storage;
Store path in the second character library information is the store path in the read-only storage, when the temperature-sensitive is beaten When print machine judges that the second character library information meets, the central processing unit receives the loading described second of the thermal printer The instruction of character library information, the central processing unit sends the instruction for loading the second character library information to the read-write memory, The read-write memory is loaded the second character library information from the read-only storage.
The mode of the second character library information is loaded from the read-only storage to replicate, the content of duplication is matching Character library bag.
It is that the thermal printer that the present invention is provided loses the structure that character library recovers terminal also referring to Fig. 2 and Fig. 3, Fig. 2 Block diagram;Fig. 3 is that the thermal printer that the present invention is provided loses the structural representation that character library recovers terminal.
The thermal printer loses character library recovery terminal 1 includes thermal printer 11 and application module 13, and the two is connected Connect.The thermal printer 11 is used to be printed and be detected printing abnormal cause to the data message of the application module 13, The application module 13 is carried on the work for trade company and manages and produce data message.
The thermal printer 11 includes thermal printer character library, is it when the thermal printer 11 is printed Character library needed for printing is provided.
When printing exception occurs in print procedure in the thermal printer 11, the detection printing of the thermal printer 11 is different Often the reason for, if detecting, the reason for printing is abnormal is that the thermal printer character library is lost, on the one hand by the application The interactive interface prompting user of module 13 is loss character library, on the other hand, the information that the thermal printer 11 is lost to character library Searched, retrieved, such as searched character library the reason for lose, search its own and whether there is the character library substitute and complete printing, retrieval Lose the title of character library, the entitled industry field Uniform Name title of the loss character library, or the thermal printing The name of the manufacturer oneself of machine 11 into title.
Wherein, the word-base amount in the application module character library is more than the word-base amount in the thermal printer character library
According to search and retrieval information, when judging that needs carry out extraneous recovery, will search and the information of retrieval will generate the One character library information, the first character library information at least includes the name lost the memory size of character library bag, store path, lose character library Claim, an example of character library can also be included.
The application module 13 includes central processing unit 131, read-write memory 133 and read-only storage 135, and three is mutual It is connected.
The central processing unit 131 is used to obtain the first character library information from the thermal printer 11, after being processed, to The read-write memory 133 sends process instruction, and the read-write memory 133 extracts the crucial letter in the first character library information Breath, such as loses character library title, and key message is matched with the application module character library in the read-only storage 135, The second character library information of matching is generated, the second character library information is more than the first character library information, specifically includes described first The character library bag of character library information, the character library store path of matching and matching, the second character library information is sent to the temperature-sensitive and is beaten Print machine 11 carries out accordance judgement, if judgement meets, return meets result, and the central processing unit 131 receives result, by institute State read-write memory 133 and the second character library information to the thermal printer character library loaded from the read-only storage 135, The mode of the second character library information is loaded to replicate from the read-only storage 135.
The word-base amount of the application module character library is more than the word-base amount in the thermal printer character library, the thermal printing Machine character library is provided by the manufacturer of the thermal printer 11, the application module character library include the thermal printer character library and Other character libraries of the compatible thermal printer of energy, in the thermal printer character library needs the burned application module character library Other compatible character libraries when, can be carried out by the application module 13 burned.
The device have the advantages that:
1st, by the design using thermal printer character library and application module character library, thermal printer module character library is lost When, the character library of loss is loaded from application module character library in terminal inner, realize the quick reparation of low cost;
2nd, compared with the design that the first character library contains much information, the application module character library is lifted by using the second character library information content Be applicable, lifting loading after using effect;
3rd, by way of retrieval matching is carried out using the key message for extracting the first character library lost, lifting matching speed Degree, beneficial to quick reparation.
Embodiments of the invention are the foregoing is only, scope of patent protection of the invention, every utilization is not thereby limited Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, are directly or indirectly used in other correlations Technical field, is included within the scope of the present invention.

Claims (12)

1. thermal printer loses character library restoration methods, it is characterised in that including thermal printer and application module, the two phase Even, thermal printer includes thermal printer character library, and application module includes application module character library, the application module character library It is stored in its read-only storage:
The first character library information that detection generation thermal printer character library is lost;
Central processing unit in application module obtains the first character library information that thermal printer is lost;
Read-write memory in application module is processed according to central processing unit instruction, and the first character library information to losing is carried out Matching, matches the second character library information;
The second character library information of loss to thermal printer character library is loaded from read-only storage.
2. thermal printer according to claim 1 loses character library restoration methods, it is characterised in that in application module character library Word-base amount more than the word-base amount in thermal printer character library.
3. thermal printer according to claim 1 loses character library restoration methods, it is characterised in that thermal printer is carried out During printing character library is loaded from thermal printer character library.
4. thermal printer according to claim 1 loses character library restoration methods, it is characterised in that the second character library information content More than the first character library information content.
5. thermal printer according to claim 1 loses character library restoration methods, it is characterised in that matching the second character library letter During breath, the key message of the first character library information lost is extracted, contrasted with application module character library, therefrom match the second word Storehouse information.
6. thermal printer according to claim 1 loses character library restoration methods, it is characterised in that from read-only storage plus The mode of the second character library information is carried to replicate.
7. thermal printer loses character library recovery terminal, it is characterised in that including thermal printer and application module, the two phase Even, the thermal printer includes thermal printer character library, and the application module includes central processing unit, read-write memory and only Read memory, the application module character library is stored in the read-only storage:
The thermal printer is used to detect the first character library information that its character library is lost that generates;
The central processing unit is used to obtain the first character library information that the thermal printer character library is lost;
The read-write memory is used to be processed according to central processing unit instruction, and the first character library information to losing is carried out Matching, matches the second character library information;
The second character library information of loss to the thermal printer character library is loaded from the read-only storage.
8. thermal printer according to claim 7 loses character library recovery terminal, it is characterised in that the application module word Word-base amount in storehouse is more than the word-base amount in the thermal printer character library.
9. thermal printer according to claim 7 loses character library recovery terminal, it is characterised in that the thermal printer When being printed character library is loaded from the thermal printer character library.
10. thermal printer according to claim 7 loses character library recovery terminal, it is characterised in that second character library Contain much information in the first character library information content.
11. thermal printers according to claim 7 lose character library and recover terminal, it is characterised in that matching described second During character library information, the key message of the first character library information lost is extracted, contrasted with the application module character library, from In match the second character library information.
12. thermal printers according to claim 7 lose character libraries and recover terminals, it is characterised in that read-only deposited from described Reservoir loads the mode of the second character library information to replicate.
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 true CN106781115A (en) 2017-05-31
CN106781115B 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 (7)

* 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
US20130063734A1 (en) * 2011-09-09 2013-03-14 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
CN104246686A (en) * 2013-03-21 2014-12-24 文雅科一番株式会社 Printing system and printing control program

Patent Citations (7)

* 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
US20130063734A1 (en) * 2011-09-09 2013-03-14 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
CN104246686A (en) * 2013-03-21 2014-12-24 文雅科一番株式会社 Printing system and printing control program

Also Published As

Publication number Publication date
CN106781115B (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN106383852A (en) Docker container-based log acquisition method and apparatus
CN112487149B (en) Text auditing method, model, equipment and storage medium
CN105955846A (en) Method and system for carrying out recovery after upgrade failure of mobile terminal on basis of network
CN102193948A (en) Feature matching method and device
CN101339515A (en) Sensor process management methods and systems
CN105809001A (en) Screen unlocking method and device and mobile terminal
CN109766064A (en) Electronic surface singles' die plate conversion method, electronic surface singles' die plate conversion equipment
CN102147811B (en) System performance analyzing method based on logs and device
CN104915252B (en) A kind of process port management means and method
CN109144754A (en) A kind of method for testing reliability and device
CN106781115A (en) Thermal printer loses character library restoration methods and terminal
CN104750814B (en) The automatic storage method of polynary heterogeneous data flow based on multisensor
CN104484211B (en) The method and device of shared image file
CN107292171A (en) Method, method for detecting virus and device for recognizing compressed file subtype
CN107102831A (en) Data-printing method and apparatus
CN100349424C (en) Detecting method for Link routine state
CN105871560A (en) Router starting method and device
CN106775810A (en) The wiring method and device of configuration file in distributed file system
CN109062890A (en) A kind of label switching method and apparatus, computer readable storage medium
CN113075992B (en) Memory power-on method, device, equipment and computer readable storage medium
CN104494318B (en) A kind of printing consumables control device and self-adaptation control method
CN107608879A (en) A kind of fault detection method, device and storage medium
CN107678878A (en) A kind of processing method and processing device of abnormal process
CN102681910B (en) Recognition method, computer and recognition system
CN106993222A (en) The method and apparatus that visual automation tools are write based on android set top box

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