CN106228680A - A kind of based on bill module multithreading driving method - Google Patents
A kind of based on bill module multithreading driving method Download PDFInfo
- Publication number
- CN106228680A CN106228680A CN201610596595.0A CN201610596595A CN106228680A CN 106228680 A CN106228680 A CN 106228680A CN 201610596595 A CN201610596595 A CN 201610596595A CN 106228680 A CN106228680 A CN 106228680A
- Authority
- CN
- China
- Prior art keywords
- thread
- driving
- ticket
- interface
- upper layer
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F9/00—Details other than those peculiar to special kinds or types of apparatus
- G07F9/006—Details of the software used for the vending machines
Abstract
The present invention be more particularly directed to a kind of based on bill module multithreading driving method.Should be based on bill module multithreading driving method, each driving interface internal driving layer all sets up the thread of correspondence, upper layer application sends functional command according to the demand of the asynchronous return information in upper strata, after driving layer to receive functional command, perform to drive accordingly interface, drive interface function to start the thread of correspondence while return function value immediately;After driving interface to perform the bottom hardware function of correspondence in thread, result notifying upper layer application, upper layer application performs follow-up flow process according to the time and result that receive event.Should be based on bill module multithreading driving method, relative to existing single-threaded processing mode, the process framework execution efficiency of multithreading is more efficient, and much sooner, handling process is more reasonable in response;For upper layer application, method of calling is more flexibly, conveniently, it is simple to the control of logic flow, adds the motility that bill processes.
Description
Technical field
The present invention relates to finance self-help end product development technique field, particularly to one based on bill module multithreading
Driving method.
Background technology
Along with increasing of bank money Possum, bank is to the functional realiey of upper layer application and logical process demand progressively
Increase, also imply that the functional realiey to driving layer is had higher requirement.
In existing project, synchronize to return the condition of execution result because being limited to upper layer application, use in interface
Single-threaded processing mode.But under the demand of current most of projects, use existing driving framework, can exist in part
The drawback of layer application call mode underaction.
Based on the problems referred to above, the present invention proposes a kind of based on bill module multithreading driving method.It is intended to improve bill
Machine drives function, improves equipment operating efficiency, the various method of calling of reply application flow.
Summary of the invention
The present invention is in order to make up the defect of prior art, it is provided that one is simply driven based on bill module multithreading efficiently
Dynamic method.
The present invention is achieved through the following technical solutions:
It is a kind of based on bill module multithreading driving method, it is characterised in that: drive each driving interface internal of layer all to set up
Corresponding thread, upper layer application sends functional command according to the demand of the asynchronous return information in upper strata, drives layer to receive function
After operational order, perform to drive accordingly interface, drive interface function while return function value, correspondence can be started immediately
Thread;After driving interface to perform the bottom hardware function of correspondence in thread, by result by the way of ocx control is with event
Notice upper layer application, upper layer application performs follow-up flow process according to the time and result that receive event.
Each multiple cross-threads driving interface internal to set up of described driving layer are separate, it is simple to upper-layer functionality
Use and the control of logic flow;Each drives interface asynchronous return value, and it is real by each thread that particular hardware performs process
Existing, including entering ticket thread, scan thread, enter ballot box thread, returned ticket thread, enter used-ticket box thread and termination and cancellation thread,
Each thread performs result and is uploaded to upper layer application by the way of ocx control is with event.
Multiple threads that each driving interface internal of described driving layer is set up, can be single in the case of bottom hardware is supported
Solely it is called and performs in order, it is possible to executed in parallel;Described termination and cancellation thread can terminate or cancel into ticket thread, scan line
Journey, enters ballot box thread, returned ticket thread and the execution entering used-ticket box thread.
Described termination and cancel thread and can interrupt the execution of other threads, drive layer after start-stop and cancelling thread,
Can terminate or cancel other threads being carrying out, or the characteristic operated according to each hardware capability at once, slightly make time delay so that
After completing current hardware action, then terminate or cancel the thread being currently executing.
The invention has the beneficial effects as follows: should be based on bill module multithreading driving method, relative to existing single-threaded place
Reason mode, the process framework execution efficiency of multithreading is more efficient, and much sooner, handling process is more reasonable in response;To upper strata
For application, method of calling is more flexibly, conveniently, it is simple to the control of logic flow, adds the motility that bill processes.
Accompanying drawing explanation
Accompanying drawing 1 is that the present invention is based on bill module drive layer multiple threads configuration diagram.
Detailed description of the invention
In order to make the technical problem to be solved, technical scheme and beneficial effect clearer, below tie
Closing drawings and Examples, the present invention will be described in detail.It should be noted that, specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
Each driving interface internal of layer based on bill module multithreading driving method, should be driven all to set up the line of correspondence
Journey, upper layer application sends functional command according to the demand of the asynchronous return information in upper strata, drives layer to receive functional command
After, perform to drive accordingly interface, drive interface function while return function value, the thread of correspondence can be started immediately;Drive
After mobile interface has performed the bottom hardware function of correspondence in thread, result is notified by the way of ocx control is with event
Layer application, upper layer application performs follow-up flow process according to the time and result that receive event.
Each multiple cross-threads driving interface internal to set up of described driving layer are separate, it is simple to upper-layer functionality
Use and the control of logic flow;Each drives interface asynchronous return value, and it is real by each thread that particular hardware performs process
Existing, including entering ticket thread, scan thread, enter ballot box thread, returned ticket thread, enter used-ticket box thread and termination and cancellation thread,
Each thread performs result and is uploaded to upper layer application by the way of ocx control is with event.
In the present embodiment, the execution process of each thread is as follows:
Enter ticket thread: sweep parameter is set, and inquires about whether state ticket mouth has ticket, if there being ticket, opening gate mouth and entering ticket, if nothing
Ticket then judges to ask whether time-out, if time-out, thread terminates, if having not timed out, returns whether inquiry state ticket mouth has ticket;
Scanning thread: above tap into ticket thread, image parameter scanogram, arithmetic analysis are set after entering ticket;
Entering ballot box thread: above connect scan procedure, after scanning, judge that scanning completes whether to receive ticket, if receiving ticket, then taking in into ballot box;
Returned ticket thread: above tap into ballot box thread, if not receiving ticket after having scanned, opens Reject, returns ticket;Judge returned ticket mouth
Ticket is the most removed, if taking away, then closes Reject, and thread terminates, if not taking away, judges that the ticket of returned ticket mouth is the most overtime, if
Have not timed out then to return and judge that the ticket of returned ticket mouth is the most removed;
Enter used-ticket box thread: above connect returned ticket thread, if the ticket of returned ticket mouth has timed out, then close Reject, and ticket is taken in invalidated ticket
Case, thread terminates.
Above-mentioned thread can individually be called and perform in order, it is possible to executed in parallel simultaneously;Single thread can be simultaneously by upper strata
Application is repeatedly called, and forms single interface multithreading and performs simultaneously.Above-mentioned several thread executive mode, at bottom hardware and bottom
In the case of API supports, current driving layer all can realize.
Multiple threads that each driving interface internal of described driving layer is set up, can be single in the case of bottom hardware is supported
Solely it is called and performs in order, it is possible to executed in parallel;Described termination and cancellation thread can terminate or cancel into ticket thread, scan line
Journey, enters ballot box thread, returned ticket thread and the execution entering used-ticket box thread.
Described termination and cancel thread and can interrupt the execution of other threads, drive layer after start-stop and cancelling thread,
Can terminate or cancel other threads being carrying out, or the characteristic operated according to each hardware capability at once, slightly make time delay so that
After completing current hardware action, then terminate or cancel the thread being currently executing.
Claims (3)
1. one kind based on bill module multithreading driving method, it is characterised in that: each driving layer drives interface internal all to build
Vertical corresponding thread, upper layer application sends functional command according to the demand of the asynchronous return information in upper strata, drives layer to receive merit
After energy operational order, perform to drive accordingly interface, drive interface function while return function value, correspondence can be started immediately
Thread;After driving interface to perform the bottom hardware function of correspondence in thread, result is passed through the ocx control side with event
Formula notice upper layer application, upper layer application performs follow-up flow process according to the time and result that receive event.
It is the most according to claim 1 based on bill module multithreading driving method, it is characterised in that: described driving layer each
Multiple cross-threads that individual driving interface internal is set up are separate, it is simple to the use of upper-layer functionality and the control of logic flow
System;Each drives interface asynchronous return value, and particular hardware is performed process and realized by each thread, including entering ticket thread, and scanning
Thread, enters ballot box thread, returned ticket thread, enters used-ticket box thread and termination and cancellation thread, and each thread performs result and passes through ocx
Control is uploaded to upper layer application in the way of event.
It is the most according to claim 2 based on bill module multithreading driving method, it is characterised in that: described driving layer each
Multiple threads that individual driving interface internal is set up, in the case of bottom hardware is supported, can individually be called and perform in order, also
Can executed in parallel;Described termination and cancellation thread can terminate or cancel into ticket thread, scan thread, enter ballot box thread, returned ticket line
Journey and the execution entering used-ticket box thread.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610596595.0A CN106228680A (en) | 2016-07-27 | 2016-07-27 | A kind of based on bill module multithreading driving method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610596595.0A CN106228680A (en) | 2016-07-27 | 2016-07-27 | A kind of based on bill module multithreading driving method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106228680A true CN106228680A (en) | 2016-12-14 |
Family
ID=57534735
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610596595.0A Pending CN106228680A (en) | 2016-07-27 | 2016-07-27 | A kind of based on bill module multithreading driving method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106228680A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106530525A (en) * | 2016-11-07 | 2017-03-22 | 浪潮(苏州)金融技术服务有限公司 | Massage processing method, interaction module and driving device of driver layer |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6205465B1 (en) * | 1998-07-22 | 2001-03-20 | Cisco Technology, Inc. | Component extensible parallel execution of multiple threads assembled from program components specified with partial inter-component sequence information |
CN1841332A (en) * | 2005-03-18 | 2006-10-04 | 马维尔国际贸易有限公司 | Real-time control apparatus having a multi-thread processor |
CN101799764A (en) * | 2009-12-31 | 2010-08-11 | 芯通科技(成都)有限公司 | Realization method of instrument module common port |
CN101916208A (en) * | 2010-08-30 | 2010-12-15 | 芯通科技(成都)有限公司 | System and method for calling driver module in multithreading |
CN102147722A (en) * | 2011-04-08 | 2011-08-10 | 深圳中微电科技有限公司 | Multithreading processor realizing functions of central processing unit and graphics processor and method |
CN103034478A (en) * | 2011-09-29 | 2013-04-10 | 北京神州泰岳软件股份有限公司 | Independent service thread model realization method of IM (instant messaging) system |
-
2016
- 2016-07-27 CN CN201610596595.0A patent/CN106228680A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6205465B1 (en) * | 1998-07-22 | 2001-03-20 | Cisco Technology, Inc. | Component extensible parallel execution of multiple threads assembled from program components specified with partial inter-component sequence information |
CN1841332A (en) * | 2005-03-18 | 2006-10-04 | 马维尔国际贸易有限公司 | Real-time control apparatus having a multi-thread processor |
CN101799764A (en) * | 2009-12-31 | 2010-08-11 | 芯通科技(成都)有限公司 | Realization method of instrument module common port |
CN101916208A (en) * | 2010-08-30 | 2010-12-15 | 芯通科技(成都)有限公司 | System and method for calling driver module in multithreading |
CN102147722A (en) * | 2011-04-08 | 2011-08-10 | 深圳中微电科技有限公司 | Multithreading processor realizing functions of central processing unit and graphics processor and method |
CN103034478A (en) * | 2011-09-29 | 2013-04-10 | 北京神州泰岳软件股份有限公司 | Independent service thread model realization method of IM (instant messaging) system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106530525A (en) * | 2016-11-07 | 2017-03-22 | 浪潮(苏州)金融技术服务有限公司 | Massage processing method, interaction module and driving device of driver layer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104233701B (en) | Washing machine and its power-fail memory function control method and device | |
CN104102181B (en) | Intelligent home control method, device and system | |
CN105603678A (en) | Washing machine and control method thereof | |
CN107227582A (en) | A kind of generation method of washing procedure, device and washing machine | |
CN106228680A (en) | A kind of based on bill module multithreading driving method | |
CN106835611A (en) | Washing machine and its control method and device | |
CN205405645U (en) | Go out entry control channel gate machine based on visitor's discernment of expressing one's feelings | |
CN103945124B (en) | Control method for intelligent camera | |
CN102359007A (en) | Circuit for circularly using water of washing machine and control method thereof | |
CN105979254A (en) | Intelligent black screen fault detection method and television using same | |
CN103345541B (en) | A kind of semantic Web service combination method based on extended L system model | |
CN105488874A (en) | Biological recognition method and apparatus based on multi-thread control | |
CN110148391A (en) | A kind of method and terminal device avoiding image display tearing | |
CN104088113B (en) | A kind of roller washing machine load recognition methods | |
CN102364525A (en) | Card port system | |
CN110020587A (en) | Method, system, device and the equipment that identifying system intelligently raises speed | |
CN205604118U (en) | Channel gate machine based on visitor management | |
CN109137401A (en) | Control method and washing machine for washing machine | |
CN104680137B (en) | Embedded monocular iris identification device, system and method | |
CN106980832A (en) | fingerprint identification method and device | |
CN107551651A (en) | A kind of intelligently filters device | |
CN108978064B (en) | Informationized intelligent embroidery processing system | |
CN105184244A (en) | Video face detection method and apparatus | |
CN110321807A (en) | A kind of convolutional neural networks based on multilayer feature fusion are yawned Activity recognition method and device | |
CN204138960U (en) | There is the washing machine cover lid of yarn guide channel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Wusong Industrial Park, Wuzhong Development District of Suzhou City, Jiangsu province 215100 Wusong Road No. 818 Applicant after: Tide Financial Information Technology Co Ltd Address before: Wuzhong Economic Development Zone in Suzhou City, Jiangsu Province, the River Street 215104 tower rhyme Road No. 178 Building 2 layer 1 Applicant before: Tide (Suzhou) Financial Technology Service Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161214 |
|
RJ01 | Rejection of invention patent application after publication |