CN109460196B - Method for realizing printing and stamping general function based on new driving platform - Google Patents

Method for realizing printing and stamping general function based on new driving platform Download PDF

Info

Publication number
CN109460196B
CN109460196B CN201811260337.0A CN201811260337A CN109460196B CN 109460196 B CN109460196 B CN 109460196B CN 201811260337 A CN201811260337 A CN 201811260337A CN 109460196 B CN109460196 B CN 109460196B
Authority
CN
China
Prior art keywords
printing
stamping
application
function
field
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
CN201811260337.0A
Other languages
Chinese (zh)
Other versions
CN109460196A (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.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN201811260337.0A priority Critical patent/CN109460196B/en
Publication of CN109460196A publication Critical patent/CN109460196A/en
Application granted granted Critical
Publication of CN109460196B publication Critical patent/CN109460196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F3/1242Image or content composition onto a page
    • G06F3/1243Variable data printing, e.g. document forms, templates, labels, coupons, advertisements, logos, watermarks, transactional printing, fixed content versioning
    • 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
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1254Automatic configuration, e.g. by driver
    • 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/1275Print workflow management, e.g. defining or changing a workflow, cross publishing
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/26Coin-freed apparatus for hiring articles; Coin-freed facilities or services for printing, stamping, franking, typing or teleprinting apparatus

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)

Abstract

The invention discloses a method for realizing a universal function of printing and stamping based on a new driving platform.A driving layer adapts to the function switching among different upper layer callers of each project and realizes whether to use the stamping function or not in a configurable mode; defining and driving a plurality of modules with independent single functions inside, and meeting different business logic processing requirements of upper layer callers through the logic combination of the modules with the single functions; defining a drive internal general data storage structure body to meet the stability of drive internal functions and logic processing; in the aspect of exception processing, the printer state is monitored through another thread, and recovery and immediate updating of the printer state are completed. Through the mode, the invention has high degree of functional modularization, solidified functions of all modules and stable processing, realizes all functions according to the characteristics of bottom hardware, has comprehensive processing, strong independence and more flexible and reasonable exception handling mode, and meets various cases of customer service logic processing.

Description

Method for realizing printing and stamping general function based on new driving platform
Technical Field
The invention relates to the field of self-service terminal products, in particular to a method for realizing a printing and stamping universal function based on a new driving platform.
Background
In the field of current self-service terminal equipment, a laser printer and a stamping machine module have no standard interface in an XFS (financial service extension) interface specification, an application definition interface generally uses a PTR printer standard interface, but each application has a format for each interface and parameter, so that when a driving layer processes commands and parameters issued by upper-layer applications, different processing modes are required for different application projects.
Although the functions of each item can be realized by the existing driving platform, the overall design and planning are not available at the beginning of the development of the printing and stamping module, so that each item needs to be greatly changed on the basis of the original program during the development of the module, and the function processing is not comprehensive enough.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method for realizing the universal function of printing and stamping based on a new driving platform, the driving of the module is designed on the new platform, and the printing and stamping function of the project can be finished only by completing the character string analysis of the input parameters and the logic calling of each module in the driving layer according to the applied logic for the printing function of each project, so that the development amount is small, and the development efficiency is improved. The degree of modularization of the internal functions of the driver is high, the functions of all the modules are solidified, the processing is stable, all the functions are realized according to the characteristics of bottom hardware, the processing is comprehensive, the independence is strong, the exception handling mode is more flexible and reasonable, and various cases of customer service logic processing are met.
In order to solve the technical problems, the invention adopts a technical scheme that: the utility model provides a method for realize printing general function of stamping based on drive new platform, carries out printing stamp according to the order and the parameter that different drive callers issued, at first turns into the order and the parameter that the application was issued into the inside general parameter of drive, for the application interface is nimble to be called each drive internal function and reduce the coupling nature between each functional module, according to printing stamp module hardware attribute, will print stamp logic flow and split into roughly: the system comprises an internal universal variable initialization function module, a printing module, a stamping module and a printing (stamping) judging and finishing module, wherein the modules are combined and repeatedly called according to the logic function requirements of command combination to realize the function of batch printing and stamping; if the application service does not need a stamping module, the interior of the driver is driven to not call a stamping function according to the adjustment of the configuration;
further, the process of converting the commands and parameters issued by the application into the drive internal general parameter processing comprises the following steps:
A. firstly, judging whether an application access parameter is empty or not, and if the application access parameter is empty, directly returning to failure; if not, judging whether the length of the input parameter is less than 0? If < 0, returning failure;
B. enabling the input parameters issued by the application to be valid, clearing internal general parameter variables, initializing assignment to all the variables, analyzing each field issued by the application, assigning the printer driver to the structure variable according to a defined driver naming mode according to the information of the specified field, assigning the printer driver to the structure variable according to the information of the specified field, and assigning all other fields to the variables corresponding to the structure;
C. the processing mode of each field of the structure is as follows: analyzing the field before the field is specified, and assigning values to the field without changing the value; analyzing the fields after the fields are designated, and assigning values to variables corresponding to all arrays uniformly after corresponding data are obtained;
D. the processing of printing the file field is as follows: when the specified field is analyzed, the file information is assigned to the structure variable and is pressed into the internal universal array variable, the number of the files to be printed by the application can be known through the length of the array, and the storage sequence of the files in the variable array, namely the printing sequence of the files, is completely arranged and printed according to the application issuing sequence;
E. and all the parameters are analyzed and stored in the general array in the drive, the printing function is started to be executed, and the printing of the file is completed according to the printing stamping information stored in the array.
The invention has the beneficial effects that: the invention designs the drive of the module on a new platform, and only for the printing function of each project, the printing and stamping functions of the project can be completed only by completing the character string analysis of the input parameters and the logic call of each module in the drive layer according to the applied logic, so that the development amount is small, and the development efficiency is improved. The degree of modularization of the internal functions of the driver is high, the functions of all the modules are solidified, the processing is stable, all the functions are realized according to the characteristics of bottom hardware, the processing is comprehensive, the independence is strong, the exception handling mode is more flexible and reasonable, and various cases of customer service logic processing are met.
Drawings
FIG. 1 is a method architecture diagram for implementing a general function of printing and stamping based on driving a new platform according to the present invention;
FIG. 2 is a flowchart illustrating a process of converting application issued parameters into driving internal general parameters in a method for implementing a general function of printing and stamping based on a new driving platform.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Referring to fig. 1 and 2, an embodiment of the present invention includes:
a method for realizing printing and stamping universal functions based on a new driving platform is characterized in that a driving layer adapts to the function switching among different upper layer callers of each project and realizes whether the stamping function is used or not in a configurable mode; defining and driving a plurality of modules with independent single functions inside, and meeting different business logic processing requirements of upper layer callers through the logic combination of the modules with the single functions; defining a drive internal general data storage structure body to meet the stability of drive internal functions and logic processing; in the aspect of exception processing, the printer state is monitored through another thread, and recovery and immediate updating of the printer state are completed.
In the invention, one set of driving program of the new platform can meet the calling of different upper-layer applications. For example, fig. 1 is a design diagram of a general functional architecture for driving printing and sealing by a new platform, and the printing and sealing functions with the same hardware are realized according to different application calling interfaces and issued parameters. The commands and parameters issued by the application are explained as follows: the CmdRawData 1-N and the controlMediaA-B are the same command combination respectively issued by different applications for realizing batch printing stamping, and the Param 1-N and the paramA-B are parameters respectively issued by the applications for different printing stamping functions; in some projects, only CmdRawData 1-N and Param 1-N are used, and the control mediaA-B and Parama-B of the dashed box are not used, according to the definition of the upper layer application itself.
Firstly, commands and parameters issued by an application need to be converted into drive internal general parameters, so that the application interface flexibly calls each drive internal function and reduces the coupling between each function module, and according to the hardware attribute of the printing and stamping module, the printing and stamping logic flow is roughly split into: the system comprises an internal universal variable initialization function module, a printing module, a stamping module and a judging printing (stamping) ending module, wherein the modules are combined and called for many times according to the logic function requirements of CmdRawDataN and ControlMediaN to realize the function of printing and stamping in batches. If the application service does not need a stamping module, the internal stamping function of the dashed frame is not called according to the adjustment of the configuration.
Taking a certain embodiment as an example, fig. 2 is a flow processing diagram of converting application issuing parameters into driving internal general parameters, where the format of the application issuing parameters is:
“pagesource=A4;copies=2;file[0]=
C:\pr_A4.html;file[1]=C:\pr_1/3A4.html;stamp=0;duplex=2;color=0;direction=0;”
to facilitate understanding of the flow chart, the variables used in the figure are illustrated as follows:
charlpbData is a parameter issued by an application;
int nLen is the length of the parameter lpbData;
PRINTINFO m _ STPrintInfo, storing single file print task driving internal general structure;
the individual file print information structure is defined as follows:
Figure BDA0001843748950000041
Figure BDA0001843748950000051
the stamp information structure is defined as follows:
Figure BDA0001843748950000052
vector < PRINTINFO > m _ vecInfo, storing internal general array of batch (multiple files) printing task driver;
pushBack (), pressing the current printing information structure into an array;
clear RawData (), emptying initialization variables;
the printer realizes the printing (stamping) function;
the following will describe the process of issuing parameters by the application, analyzing and converting into driving the internal general parameter processing:
A. firstly, judging whether an application access parameter is empty or not, and if the application access parameter is empty, directly returning to failure; if not, judging whether the length of the input parameter is less than 0? If < 0, returning failure;
B. the method comprises the steps that an input parameter is valid under an application, an internal general parameter variable is cleared, all variables are initialized and assigned, each field issued by the application is analyzed, a printer driver is assigned to a structural body variable m _ stprintinfo.
C. The method is characterized in that a plurality of files to be printed in each application are unknown and uncertain, the parameters are issued through the application, all printing and stamping information is the same except for different files in each task, and the processing mode of each field of a structure body is as follows: resolving the field before the field of 'file [', and the value is not changed after assignment; and after the fields of the file are analyzed, assigning values to variables corresponding to all the arrays uniformly after corresponding data are obtained, so that the application is ensured to issue tasks once, and all the printing tasks except for printing files and other printing and stamping information can be kept consistent.
D. The processing of printing the file field is as follows: each time the field 'file [' is resolved, the file information is assigned to a structure variable m _ stprintinfo.
E. And all the parameters are analyzed and stored in a general array in the drive, the printing function PrintRawData () is started to be executed, and the file is printed according to the printing stamping information stored in the array.
In the aspect of exception handling, because some exceptions need to be manually solved, and manual solving time is often uncertain, under the condition of following the characteristics of hardware and an application business process, another thread is started to specially monitor the state of the printer, and after the exception occurs, a driving layer deletes a printing task, and when the equipment state is in a recoverable state, the printer printing function is recovered.
The invention designs the drive of the module on a new platform, and only for the printing function of each project, the printing and stamping functions of the project can be completed only by completing the character string analysis of the input parameters and the logic call of each module in the drive layer according to the applied logic, so that the development amount is small, and the development efficiency is improved. The degree of modularization of the internal functions of the driver is high, the functions of all the modules are solidified, the processing is stable, all the functions are realized according to the characteristics of bottom hardware, the processing is comprehensive, the independence is strong, the exception handling mode is more flexible and reasonable, and various cases of customer service logic processing are met.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (1)

1. A method for realizing a printing and stamping universal function based on a new driving platform is characterized by comprising the following steps: printing and stamping according to commands and parameters issued by different driving callers; firstly, commands and parameters issued by an application are converted into general parameters inside the driver, so that the application interface can flexibly call the internal functions of each driver and the coupling among the functional modules is reduced;
according to the hardware attribute of the printing and stamping module, splitting the printing and stamping logic flow into: the system comprises an internal universal variable initialization function module, a printing module, a stamping module and a module for judging printing and stamping ending, wherein the modules are combined and repeatedly called according to the logic function requirements of command combination to realize the function of batch printing and stamping; if the application service does not need a stamping module, the interior of the device can be driven to not call a stamping function according to the adjustment of the configuration;
the process of converting the commands and parameters issued by the application into the drive internal general parameter processing comprises the following steps:
A. firstly, judging whether an application access parameter is empty or not, and if the application access parameter is empty, directly returning to failure; if not, judging whether the length of the input parameter is less than or equal to 0, and if not, returning to fail;
B. enabling the input parameters issued by the application to be valid, clearing internal general parameter variables, initializing assignment to all the variables, analyzing each field issued by the application, assigning the printer driver to the structure variable according to a defined driver naming mode according to the information of the specified field, assigning the printer driver to the structure variable according to the information of the specified field, and assigning all other fields to the variables corresponding to the structure;
C. the processing mode of each field of the structure is as follows: analyzing the field before the field is specified, and assigning values to the field without changing the value; analyzing the fields after the fields are designated, and assigning values to variables corresponding to all arrays uniformly after corresponding data are obtained;
D. the processing of printing the file field is as follows: when the specified field is analyzed, the file information is assigned to the structure variable and is pressed into the internal universal array variable, the number of the files to be printed by the application can be known through the length of the array, and the storage sequence of the files in the variable array, namely the printing sequence of the files, is completely arranged and printed according to the application issuing sequence;
E. and all the parameters are analyzed and stored in the general array in the drive, the printing function is started to be executed, and the printing of the file is completed according to the printing stamping information stored in the array.
CN201811260337.0A 2018-10-26 2018-10-26 Method for realizing printing and stamping general function based on new driving platform Active CN109460196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811260337.0A CN109460196B (en) 2018-10-26 2018-10-26 Method for realizing printing and stamping general function based on new driving platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811260337.0A CN109460196B (en) 2018-10-26 2018-10-26 Method for realizing printing and stamping general function based on new driving platform

Publications (2)

Publication Number Publication Date
CN109460196A CN109460196A (en) 2019-03-12
CN109460196B true CN109460196B (en) 2021-11-09

Family

ID=65608574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811260337.0A Active CN109460196B (en) 2018-10-26 2018-10-26 Method for realizing printing and stamping general function based on new driving platform

Country Status (1)

Country Link
CN (1) CN109460196B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078162B (en) * 2019-12-03 2022-08-05 浪潮金融信息技术有限公司 Method for counting electronic seals of driving layer based on printer

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4710886A (en) * 1984-10-24 1987-12-01 International Business Machines Corporation Table driven print formatting
JP2002321392A (en) * 2001-03-02 2002-11-05 Oce Technologies Bv Constitution method for printer and ink cartridge
CN101539903A (en) * 2008-03-18 2009-09-23 北京书生国际信息技术有限公司 Method for realizing software compatible with documents in various formats
DE102008059009A1 (en) * 2008-11-26 2010-05-27 Francotyp-Postalia Gmbh Universal electronic hand stamping device
CN102117185A (en) * 2009-12-31 2011-07-06 北京东方开元信息科技有限责任公司 Bar code print control method and device
CN103116851A (en) * 2013-03-11 2013-05-22 深圳市京兆电子商务有限公司 Electronic contract on-line signing method and system
CN104020967A (en) * 2014-06-16 2014-09-03 浪潮软件股份有限公司 WEB batch-printing method based on fully-domestic CPU and OS and commonly used for multiple browsers
CN104834507A (en) * 2014-02-10 2015-08-12 广东天心天思软件有限公司 Frame driving method of application construction platform
JP2016018285A (en) * 2014-07-04 2016-02-01 コニカミノルタ株式会社 Portable terminal equipment, print setting method, and print setting program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7508535B2 (en) * 2003-09-25 2009-03-24 Ricoh Co., Ltd. Stand alone multimedia printer with user interface for allocating processing
US8498002B2 (en) * 2005-03-29 2013-07-30 Canon Kabushiki Kaisha Information processing apparatus capable of customizing device driver, information processing method, and control program
FR2906057B1 (en) * 2006-09-15 2008-12-26 Neopost Technologies Sa METHOD OF UNSURFECTED POSTAGE OF LOGO STAMPS
CN103294422B (en) * 2013-06-26 2016-09-28 广州市尊网商通资讯科技有限公司 A kind of utilize vectogram segmentation and the document Method of printing of superimposing technique and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4710886A (en) * 1984-10-24 1987-12-01 International Business Machines Corporation Table driven print formatting
JP2002321392A (en) * 2001-03-02 2002-11-05 Oce Technologies Bv Constitution method for printer and ink cartridge
CN101539903A (en) * 2008-03-18 2009-09-23 北京书生国际信息技术有限公司 Method for realizing software compatible with documents in various formats
DE102008059009A1 (en) * 2008-11-26 2010-05-27 Francotyp-Postalia Gmbh Universal electronic hand stamping device
CN102117185A (en) * 2009-12-31 2011-07-06 北京东方开元信息科技有限责任公司 Bar code print control method and device
CN103116851A (en) * 2013-03-11 2013-05-22 深圳市京兆电子商务有限公司 Electronic contract on-line signing method and system
CN104834507A (en) * 2014-02-10 2015-08-12 广东天心天思软件有限公司 Frame driving method of application construction platform
CN104020967A (en) * 2014-06-16 2014-09-03 浪潮软件股份有限公司 WEB batch-printing method based on fully-domestic CPU and OS and commonly used for multiple browsers
JP2016018285A (en) * 2014-07-04 2016-02-01 コニカミノルタ株式会社 Portable terminal equipment, print setting method, and print setting program

Also Published As

Publication number Publication date
CN109460196A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
DE69500885T2 (en) METHOD AND DEVICE FOR PROCESSING A DOCUMENT
DE69621197T2 (en) Peripheral control system with a majority of objects
CN100555275C (en) A kind of imposition method and device
DE102020110688A1 (en) HARDWARE-AGNOSTIC COMPILER FOR DEEP NEURAL NETWORKS
DE69528210T2 (en) Printer control system that handles copier-type documents
CN100368981C (en) Function converting apparatus and function converting method
CN1103955C (en) Method for processing print data
CN109460196B (en) Method for realizing printing and stamping general function based on new driving platform
CN105260293B (en) Output method, device and the terminal device of log information
US20130179797A1 (en) Shared user interface services framework
CN114173355B (en) Method and system for dynamically executing network instruction with separated design running states
DE69709650T2 (en) HUMAN MACHINE INTERFACE FOR CARD READERS
DE60035092T2 (en) Image conversion apparatus, storage medium, and image conversion method
CN213213488U (en) Automatic test system
CN113505054A (en) Network data static test system and test method for unmanned aerial vehicle control station
CN116860209A (en) Airborne embedded display software development system and method based on QT and SCADE
EP0303869A1 (en) Digital communication system with a modular structure comprising technical operation communication means
CN114757159A (en) Packaging development method and system of multifunctional data table component
DE69531974T2 (en) Printer system and method for displaying the required printing time of the printer
CN112540988A (en) Service processing device, processing method and readable storage medium
CA1172371A (en) System for converting data processing information to text processing format and vice versa
CN113779231A (en) Big data visualization analysis method, device and equipment based on knowledge graph
CN111722843A (en) HMI system, HMI component thereof, HMI component development method and vehicle-mounted display equipment
CN117668231A (en) Intelligent file processing system and method based on large language model
KR20050057822A (en) Method for realization gui using xml

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210820

Address after: 215100 818 Wusong Road, Wusong River Industrial Park, Wuzhong development area, Suzhou, Jiangsu

Applicant after: INSPUR FINANCIAL INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 215100 Building 1, 178 Tayun Road, Yuexi street, Wuzhong District, Suzhou City, Jiangsu Province

Applicant before: SUZHOU INSPUR INTELLIGENT SOFTWARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant