CN107729164A - The method that intelligent key disk is accessed based on inter-process communication techniques - Google Patents
The method that intelligent key disk is accessed based on inter-process communication techniques Download PDFInfo
- Publication number
- CN107729164A CN107729164A CN201710942910.5A CN201710942910A CN107729164A CN 107729164 A CN107729164 A CN 107729164A CN 201710942910 A CN201710942910 A CN 201710942910A CN 107729164 A CN107729164 A CN 107729164A
- Authority
- CN
- China
- Prior art keywords
- layer
- key disk
- intelligent key
- applied business
- class
- 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
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of method that intelligent key disk is accessed based on inter-process communication techniques, applied business layer separates with hardware driving layer and carries out data interaction by inter-process communication techniques, all business related to intelligent key disk are handled with multithreading by key disk management class, intelligent key dish driving is loaded in key disk management class, data transfer class is created in main program, application interface class is created in the main program of applied business layer, allows the application interface class that the demand of applied business is converted into data format;Data transmission module is created in the main program of applied business layer, carries out data transmission applied business layer.The present invention separates applied business layer and hardware driving layer, make two parts non-interference, the data of acquisition intelligent key disk are realized by using inter-process communication techniques, applied business layer is realized and more efficiently accesses intelligent key disk, expansible real-time acquisition intelligent key disk information.
Description
Technical field
It is more particularly to a kind of to be visited based on inter-process communication techniques the present invention relates to data exchange control technology in the communications field
The method for asking intelligent key disk.
Background technology
With propulsion of the country to non-support cable and the popularization to electronic document system, carried out using intelligent key disk public
Text examination & approval, the functional requirement also more and more higher of document stamped signature.Tradition accesses the mode of intelligent key disk at present, is all each application layer
Directly accessed by the driver of key disk manufacturer, under the application environment of complexity, will produced various because calling intelligence
Key disk Vendor Interface fails, and the data message for cause applied business layer can not continue normal work, getting is abnormal, obtains intelligence
The problem of energy key disk data are slow.
Solves the method for these problems at present, a kind of is that the costly manpower of each application vendor oneself is debugged or pin repeatedly
Customized version is developed to special applications scene, another kind is exactly to require that intelligent key disk manufacturer provides customization version for particular demands
This intelligent key disk hardware drive program.
Both the above solution, none is not labor intensive cost and time cost, and the product maintenance to the later stage also has
Many workloads, the driving manufacturer to application vendor and intelligent key disk all bring many burdens virtually, waste of resource.
Therefore, there is problems with prior art:
1st, it is more to system running environment dependence during access intelligent key disk, it is not convenient to use and safeguards.
2nd, using meeting extreme influence Consumer's Experience when running slower intelligent key disk, and without more effective solution.
3rd, the service condition of intelligent key disk is unable to estimate, it is necessary to constantly call the fixed interface of key disk manufacturer to carry out
Condition adjudgement, influence operational efficiency.
4th, in addition to the access to intelligent key disk, autgmentability is poor, is unfavorable for the arrangement of total solution.
5th, customized version is excessive, development efficiency bottom, and maintenance cost is high.
The content of the invention
The technical problems to be solved by the invention are effective by the access applied business layer and to intelligent key disk
Separate, and the transmission of data is carried out using the specification protocol of a set of existing standardization, solve because system environments factor
The problem of caused applied business layer and hardware driving layer can not carry out normal data interaction, make the service environment of complexity simple
Change.It is that great amount of cost is saved in the exploitation of applied business layer so as to improve the accuracy and real-time that obtain intelligent key disk data.
The present invention realizes above-mentioned purpose using following technical scheme.Intelligent key disk is accessed based on inter-process communication techniques
Method, including applied business layer, data transfer layer and hardware driving layer, it is characterised in that the applied business layer with it is described hard
Part driving layer separation carries out data interaction by inter-process communication techniques;Its flow is as follows:
1)Start hardware driving layer:For running the main program of hardware driving layer;
2)Create key disk management class:Key disk management class is created in the main program, by the key disk management class with multi-thread
Journey mode handles all business related to intelligent key disk;
3)Load the intelligent key dish driving:The intelligent key dish driving, realization pair are loaded in the key disk management class
The access of the intelligent key disk;
4)Create data transfer class:Data transfer class is created in the main program, the hardware driving layer is carried out data
Transmission;
5)Start the applied business layer:Run the applied business layer entry program;
6)Create application interface class:Application interface class is created in the applied business layer entry program, makes the application interface class can
So that the demand of applied business is converted into data format;
7)Create data transfer class:Data transmission module is created in the applied business layer entry program, makes the applied business
Layer can carry out data transmission;
The applied business layer:It is responsible for collecting the operational requirements of application software, and demand is switched to what data transfer layer can recognize that
Data format;The response results of data transfer layer return are received simultaneously;
The data transfer layer:It is responsible for the transmission of data, is carried out data transmission with inter-process communication techniques;
The hardware driving layer:It is responsible for the access to intelligent key disk, while intelligent key disk data is switched into data transfer layer
Recognizable data format.
The present invention separates applied business layer and hardware driving layer, makes two parts non-interference, leads to by using between process
Letter technology obtains the data of intelligent key disk to realize, realizes applied business layer and more efficiently accesses intelligent key disk, can
The real-time acquisition intelligent key disk information of extension.
Brief description of the drawings
Fig. 1 is the flow chart of the present invention;
Fig. 2 is the Organization Chart of the present invention.
Embodiment
Below in conjunction with drawings and examples, the invention will be further described.Referring to Fig. 1 and Fig. 2.One kind is based between process
The method that the communication technology accesses intelligent key disk, including applied business layer 2, data transfer layer 3 and hardware driving layer 1, its feature
It is, the applied business layer 2 is separated with the hardware driving layer 1, and data interaction is carried out by inter-process communication techniques;It flows
Journey is as follows:
1)Start hardware driving layer 1:For running the main program of hardware driving layer 1;
2)Create key disk management class:Key disk management class is created in the main program, by the key disk management class with multi-thread
Journey mode handles all business related to intelligent key disk;
3)Load the intelligent key dish driving:The intelligent key dish driving, realization pair are loaded in the key disk management class
The access of the intelligent key disk;
4)Create data transfer class:Data transfer class is created in the data transfer layer of the main program, makes the hardware driving
Layer 1 can carry out data transmission;
5)Start the applied business layer 2:Run the entry program of applied business layer 2;
6)Create application interface class:Application interface class is created in the entry program of applied business layer 2, makes the application interface class can
So that the demand of applied business is converted into data format;
7)Create data transfer class:Data transfer class is created in the data transfer layer of the entry program of applied business layer 2, is made
The applied business layer 2 can carry out data transmission;
The applied business layer 2:It is responsible for collecting the operational requirements of application software, and demand is switched to what data transfer layer can recognize that
Data format;The response results of data transfer layer return are received simultaneously;
The data transfer layer 3:It is responsible for the transmission of data, is carried out data transmission with inter-process communication techniques;
The hardware driving layer 1:It is responsible for the access to intelligent key disk, while intelligent key disk data is switched into data transfer layer
Recognizable data format.
As shown in figure 1, when starting the main thread of the main program of hardware driving layer 1, while start sub-line journey;In main thread,
Key disk management class is created, then creates data transfer class;Intelligent key dish driving is loaded in sub-line journey, starts simultaneously at monitoring
USB variable condition, the key disk management class intelligent key disk data after renewal being sent in main thread;In applied business
In layer 2, application interface class is created by the entry program of applied business layer 2, data transfer class is then created, data is passed by data
Defeated class interacts with hardware driving layer.
As shown in Fig. 2 hardware driving layer 1 is by hardware driving main program, key disk management class, intelligent key dish driving, intelligence
Can key disk and data transfer class this five functional module composition;Applied business layer 2 is by applied business entry program, application interface
Class, data transfer class this three zones module composition.
Embodiment:Now it is applied to golden lattice Electronic Signature V9210 versions-iWebPDF stamped signatures using the present invention as case study on implementation to make
Illustrate.The previous versions of golden lattice Electronic Signature iWebPDF (V9006 versions) use example:
User environment:User has an intelligent key disk, model on hand:Haitai H1, user computer also successfully install this intelligence
Intelligent key dish driving corresponding to key disk.
User's request:It is intelligently close using Haitai H1 types in PDF document using golden lattice Electronic Signature-iWebPDF stamped signatures
Key disk is capped Electronic Signature.
Performance specification:Due to intelligent key dish driving performance, intelligent key dish driving is called to obtain in connection intelligent key disk
When taking intelligent key disk data, time loss is had, and this time is far longer than the time loss of data transfer.
V9006 version flows:IWebPDF stamped signatures, the interface for calling producer's intelligent key dish driving to provide, connection intelligence are close
Key disk, the sequence number of intelligent key disk is obtained, obtain stamped signature picture file data, Electronic Signature is capped in PDF.
Use the flow after the present invention:The hardware driving layer of the inventive method is run first, creates key disk management class, wound
Data transfer class is built, while starts sub-line journey in hardware driving layer, intelligent key dish driving is loaded in sub-line journey, and monitor
USB states, after intelligent key disk state change, update the data of intelligent key disk;IWebPDF stamped signatures start, and call this hair
The applied business layer interface of bright method, application interface class is created, then create data transfer class, make applied business layer and hardware driving
Layer can carry out data interaction, call the interface of application interface class, connect intelligent key disk, obtain the sequence of intelligent key disk
Number, stamped signature picture file data is obtained, Electronic Signature is capped in PDF.
Contrast on effect:1)Affix one's seal first operation:Without significant difference.2)Follow-up operation of affixing one's seal:The inventive method passes through monitoring
This operation of USB states, reaches in the case where intelligent key disk does not plug, remains initial data, then just not
Need frequently to call intelligent key dish driving program to access the data of intelligent key disk, but from the key in the inventive method
In disk management class, directly the data general-purpose data transfer class that applied business layer needs is transmitted, saves and accesses intelligent key
The time loss of disk.Performance is obviously improved.
Traditional applied business layer is directly invoked intelligent key dish driving by the present invention using inter-process communication techniques as core
Interface is changed to applied business layer by interprocess communication transmission request of data to access the mode of intelligent key disk, by hardware driving
Layer receives the mode of access intelligent key disk after request.
The present invention demarcates applied business layer with accessing the hardware driving layer of intelligent key disk, and both are only by between process
The communication technology carries out data interaction, makes both business functions clearer and more definite, will not cause entirely to solve because of the problem of wherein side
There is operation troubles in scheme, influences Consumer's Experience.
The inter-process communication techniques that the present invention uses, the scalability of total solution is added, save follow-up maintenance
Cost.
The implementing procedure of the inventive method:Hardware driving layer is run, key disk management class is created in main thread, then create
Data transfer class;Sub-line journey is created, intelligent key dish driving is loaded in sub-line journey, while monitors USB device change feelings in real time
Condition, listening state is kept if unchanged, intelligent key disk information is updated if changing, and continue to keep listening state, together
Key disk management class in Shi Tongzhi main threads, update key disk information.
Applied business layer is run, creates application interface class, then create data transfer class;Application interface class is by applied business layer
The service request of transmission, the data transfer class of hardware driving layer is sent to by data transfer class, and waits hardware driving layer to return
The request results returned.
The present invention carries out the access of intelligent key disk using inter-process communication techniques, is detected by multithreading, can be real-time
Update the update status of intelligent key disk.The separation for accessing key disk and applied business layer is realized, side's failure does not influence separately
One side's operation flow.Using inter-process communication techniques, make the update status of hardware driving layer voluntarily active process intelligent key disk,
And the unconventional passive calling for receiving applied business layer;, can be in hardware driving after hardware driving layer separates with applied business layer
Layer does more expanded functions, and expanded function does not influence the logic of applied business layer;At renewal of the later stage to intelligent key disk
Reason, all by hardware driving layer complete independently, applied business layer, which need not be changed, can be used, easy maintenance.
Claims (1)
1. the method for intelligent key disk is accessed based on inter-process communication techniques, including applied business layer, data transfer layer and hardware
Drive layer, it is characterised in that the applied business layer separates with the hardware driving layer enters line number by inter-process communication techniques
According to interaction;Its flow is as follows:
1)Start hardware driving layer:For running the main program of hardware driving layer;
2)Create key disk management class:Key disk management class is created in the main program, by the key disk management class with multi-thread
Journey mode handles all business related to intelligent key disk;
3)Load the intelligent key dish driving:The intelligent key dish driving, realization pair are loaded in the key disk management class
The access of the intelligent key disk;
4)Create data transfer class:Data transfer class is created in the main program, the hardware driving layer is carried out data
Transmission;
5)Start the applied business layer:Run the applied business layer entry program;
6)Create application interface class:Application interface class is created in the applied business layer entry program, makes the application interface class can
So that the demand of applied business is converted into data format;
7)Create data transfer class:Data transmission module is created in the applied business layer entry program, makes the applied business
Layer can carry out data transmission;
The applied business layer:It is responsible for collecting the operational requirements of application software, and demand is switched to what data transfer layer can recognize that
Data format;The response results of data transfer layer return are received simultaneously;
The data transfer layer:It is responsible for the transmission of data, is carried out data transmission with inter-process communication techniques;
The hardware driving layer:It is responsible for the access to intelligent key disk, while intelligent key disk data is switched into data transfer layer
Recognizable data format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710942910.5A CN107729164A (en) | 2017-10-11 | 2017-10-11 | The method that intelligent key disk is accessed based on inter-process communication techniques |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710942910.5A CN107729164A (en) | 2017-10-11 | 2017-10-11 | The method that intelligent key disk is accessed based on inter-process communication techniques |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107729164A true CN107729164A (en) | 2018-02-23 |
Family
ID=61210907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710942910.5A Pending CN107729164A (en) | 2017-10-11 | 2017-10-11 | The method that intelligent key disk is accessed based on inter-process communication techniques |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729164A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030229768A1 (en) * | 2002-06-07 | 2003-12-11 | Seiichi Kawano | Process, apparatus, and system for passing data between partitions in a storage device |
CN105760779A (en) * | 2016-02-18 | 2016-07-13 | 武汉理工大学 | Bidirectional file encryption system based on FUSE |
CN106506672A (en) * | 2016-11-25 | 2017-03-15 | 江西金格科技股份有限公司 | The non-assembly access method of browser intelligent key disk |
CN106775656A (en) * | 2016-11-28 | 2017-05-31 | 江西金格科技股份有限公司 | A kind of dispatching method based on many intelligent key disks |
-
2017
- 2017-10-11 CN CN201710942910.5A patent/CN107729164A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030229768A1 (en) * | 2002-06-07 | 2003-12-11 | Seiichi Kawano | Process, apparatus, and system for passing data between partitions in a storage device |
CN105760779A (en) * | 2016-02-18 | 2016-07-13 | 武汉理工大学 | Bidirectional file encryption system based on FUSE |
CN106506672A (en) * | 2016-11-25 | 2017-03-15 | 江西金格科技股份有限公司 | The non-assembly access method of browser intelligent key disk |
CN106775656A (en) * | 2016-11-28 | 2017-05-31 | 江西金格科技股份有限公司 | A kind of dispatching method based on many intelligent key disks |
Non-Patent Citations (2)
Title |
---|
孙冀川: "面向PDF的电子印章应用系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》 * |
张悦,: "基于倾角传感器的大型户外广告监测", 《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Karnouskos et al. | Integration of SOA-ready networked embedded devices in enterprise systems via a cross-layered web service infrastructure | |
CN103077024A (en) | Device and method for supporting customization and running of software-as-a-service (SaaS) application processes | |
CN101605056A (en) | A kind of J2EE server monitoring device and adopt the method for supervising of this device | |
KR100880536B1 (en) | Open framework system for heterogeneous computing and service integration | |
CN103699386A (en) | OSGI-based universal data conversion engine system | |
CN102866925B (en) | Communication method and system for middleware and user interface | |
US7499899B2 (en) | Dynamic software integration architecture | |
CN108810164A (en) | Device supporting SaaS application flow customization and operation as required | |
US8732308B1 (en) | Coordinated management in virtualized systems using management brokers and management channels | |
DE102019135572A1 (en) | PERFORMANCE STATE MANAGEMENT FOR COMMUNICATION CONNECTION LINES | |
US6658466B1 (en) | Method and apparatus for integrating remote human interactive assistance function into software systems | |
CN103529816B (en) | A kind of upper computer control system based on Qt | |
CN105812241A (en) | Enterprise application integration method and system based on Spring Integration | |
CN107729164A (en) | The method that intelligent key disk is accessed based on inter-process communication techniques | |
CN114900558B (en) | Universal equipment management protocol control method and device | |
CN110691128A (en) | Communication method, system, medium and device based on IPMI system health management middleware | |
CN101246421A (en) | Universal frame work based on workflow engine | |
CN106354486B (en) | The method and system of nand flash equipment management | |
Zhao et al. | SOA-based remote condition monitoring and fault diagnosis system | |
CN116414367A (en) | Method, device, chip, equipment and storage medium for generating embedded software system | |
CN114385541A (en) | Intelligent manufacturing-oriented OPC UA aggregation server and design method thereof | |
CN106951264A (en) | A kind of available machine time optimization method and device | |
CN108804236A (en) | A kind of sharing method and system of AIDL files | |
CN111090430A (en) | Application software development system under embedded system | |
Baldwin et al. | Economic dispatch of electric power systems with line losses |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180223 |