Movatterモバイル変換


[0]ホーム

URL:


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
CN109460196BCN201811260337.0ACN201811260337ACN109460196BCN 109460196 BCN109460196 BCN 109460196BCN 201811260337 ACN201811260337 ACN 201811260337ACN 109460196 BCN109460196 BCN 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 LtdfiledCriticalInspur Financial Information Technology Co Ltd
Priority to CN201811260337.0ApriorityCriticalpatent/CN109460196B/en
Publication of CN109460196ApublicationCriticalpatent/CN109460196A/en
Application grantedgrantedCritical
Publication of CN109460196BpublicationCriticalpatent/CN109460196B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

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.0A2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platformActiveCN109460196B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811260337.0ACN109460196B (en)2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platform

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811260337.0ACN109460196B (en)2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platform

Publications (2)

Publication NumberPublication Date
CN109460196A CN109460196A (en)2019-03-12
CN109460196Btrue CN109460196B (en)2021-11-09

Family

ID=65608574

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811260337.0AActiveCN109460196B (en)2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platform

Country Status (1)

CountryLink
CN (1)CN109460196B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111078162B (en)*2019-12-032022-08-05浪潮金融信息技术有限公司Method for counting electronic seals of driving layer based on printer

Citations (9)

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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7508535B2 (en)*2003-09-252009-03-24Ricoh Co., Ltd.Stand alone multimedia printer with user interface for allocating processing
US8498002B2 (en)*2005-03-292013-07-30Canon Kabushiki KaishaInformation processing apparatus capable of customizing device driver, information processing method, and control program
FR2906057B1 (en)*2006-09-152008-12-26Neopost Technologies Sa METHOD OF UNSURFECTED POSTAGE OF LOGO STAMPS
CN103294422B (en)*2013-06-262016-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 numberPriority datePublication dateAssigneeTitle
US4710886A (en)*1984-10-241987-12-01International Business Machines CorporationTable driven print formatting
JP2002321392A (en)*2001-03-022002-11-05Oce Technologies BvConstitution method for printer and ink cartridge
CN101539903A (en)*2008-03-182009-09-23北京书生国际信息技术有限公司Method for realizing software compatible with documents in various formats
DE102008059009A1 (en)*2008-11-262010-05-27Francotyp-Postalia Gmbh Universal electronic hand stamping device
CN102117185A (en)*2009-12-312011-07-06北京东方开元信息科技有限责任公司Bar code print control method and device
CN103116851A (en)*2013-03-112013-05-22深圳市京兆电子商务有限公司Electronic contract on-line signing method and system
CN104834507A (en)*2014-02-102015-08-12广东天心天思软件有限公司Frame driving method of application construction platform
CN104020967A (en)*2014-06-162014-09-03浪潮软件股份有限公司WEB batch-printing method based on fully-domestic CPU and OS and commonly used for multiple browsers
JP2016018285A (en)*2014-07-042016-02-01コニカミノルタ株式会社 Portable terminal device, print setting method, and print setting program

Also Published As

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

Similar Documents

PublicationPublication DateTitle
DE69500885T2 (en) METHOD AND DEVICE FOR PROCESSING A DOCUMENT
DE69621197T2 (en) Peripheral control system with a majority of objects
DE69528210T2 (en) Printer control system that handles copier-type documents
DE10158984A1 (en) Printing system and method for individualizing a print job
DE60033164T2 (en) Server-side execution of application modules in a client / server system
CN115794913B (en)Data processing method and device in artificial intelligence system
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
CN1172301A (en) Methods of Handling Print Data
CN110780971A (en)Method and system for realizing visual medical data mapping and converting tool
DE19957235A1 (en)Arrangement for accessing Java applications, converts routine calls and data into Java data types, calls and runs Java routines, generates response in transfer format, and transfers to application
CN213213488U (en) automated test system
CN113505054A (en)Network data static test system and test method for unmanned aerial vehicle control station
LordImproving the application development process with modular visualization environments
CN112540988A (en)Service processing device, processing method and readable storage medium
DE69709650T2 (en) HUMAN MACHINE INTERFACE FOR CARD READERS
DE60035092T2 (en) Image conversion apparatus, storage medium, and image conversion method
CN111722843A (en)HMI system, HMI component thereof, HMI component development method and vehicle-mounted display equipment
CN109388770A (en)Web page generation method and device
DE4027348A1 (en)Construction model for human interface - uses functionally distributed agents working in conjunction with information generating studio
US7831955B2 (en)Development and execution platform
CN114757159A (en)Packaging development method and system of multifunctional data table component
CN116860209A (en)Airborne embedded display software development system and method based on QT and SCADE
EP0687972B1 (en)Print system and method for presenting required record time of print system
JPH04128068A (en)Page description language processing and printing apparatus

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right
TA01Transfer 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.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp