CN107315695A - Input and output driving method and device, computer-readable recording medium, terminal - Google Patents

Input and output driving method and device, computer-readable recording medium, terminal Download PDF

Info

Publication number
CN107315695A
CN107315695A CN201710504462.0A CN201710504462A CN107315695A CN 107315695 A CN107315695 A CN 107315695A CN 201710504462 A CN201710504462 A CN 201710504462A CN 107315695 A CN107315695 A CN 107315695A
Authority
CN
China
Prior art keywords
input
output
driver
interface
driving
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
Application number
CN201710504462.0A
Other languages
Chinese (zh)
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 CN201710504462.0A priority Critical patent/CN107315695A/en
Publication of CN107315695A publication Critical patent/CN107315695A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of input and output driving method and device, computer-readable recording medium, terminal, methods described include:Corresponding driving interface is configured for input-output equipment;When passing through created driving interface and receiving driver recalls information, default driver is called to carry out input and output control to corresponding input-output equipment.Above-mentioned scheme, it is possible to achieve the versatility of input and output driving.

Description

Input and output driving method and device, computer-readable recording medium, terminal
Technical field
The present invention relates to actuation techniques field, more particularly to a kind of input and output driving method and device, computer can Read storage medium, terminal.
Background technology
Self-aided terminal has been widely used in every field, such as finance, transport, medical treatment, mobile communication, food and drink.With Family can handle a variety of self-service business by self-aided terminal, without going to window queuing to wait, save human resources, improve The efficiency of business handling.
With the development in self-service device market and increasing for "smart" products function, requirement of the client to each details of product More and more higher.
Existing input and output control device, when carrying out input and output control, it is necessary to be different input-output equipment Corresponding driver is worked out, accordingly, there exist the problem of poor universality.
The content of the invention
The technical problem that the embodiment of the present invention is solved is how to realize the versatility of input and output driving.
To solve the above problems, the embodiments of the invention provide a kind of input and output driving method, methods described includes:
Corresponding driving interface is configured for input-output equipment;
When passing through created driving interface and receiving driver recalls information, default driver is called to corresponding Input-output equipment carries out input and output control.
Alternatively, the driver uses default time interval poll com-state, to obtain the recalls information.
Alternatively, the driving interface includes standard drive interface and non-standard driving interface.
Alternatively, the implementing result of the driver, is connect using the standard drive interface or the non-standard driving The corresponding result of mouth returns to form and returned.
The embodiment of the present invention additionally provides a kind of input and output drive device, including:
Dispensing unit, is suitable for input-output equipment and configures corresponding driving interface;
Driver element, suitable for when passing through created driving interface and receiving driver recalls information, calling default drive Dynamic program carries out input and output control to corresponding input-output equipment.
Alternatively, the driver uses default time interval poll com-state, to obtain the recalls information.
Alternatively, the driving interface includes standard drive interface and non-standard driving interface.
Alternatively, the implementing result of the driver, is connect using the standard drive interface or the non-standard driving The corresponding result of mouth returns to form and returned.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer instruction, described The step of input and output driving method described in any of the above-described is performed when computer instruction is run.
The embodiment of the present invention additionally provides and stores energy on a kind of terminal, including memory and processor, the memory Enough computer instructions run on the processor, the processor performs any of the above-described when running the computer instruction The step of described input and output driving method.
Compared with prior art, technical scheme has the following advantages that:
Above-mentioned scheme, by configuring corresponding driving interface for input-output equipment, corresponding upper layer application can pass through institute The driving interface call driver of configuration carries out input and output control to input-output equipment, does not change driver, just may be used To realize that the input and output to different input-output equipment are controlled, therefore the versatility of input and output driving can be improved.
Brief description of the drawings
Fig. 1 is a kind of flow chart of input and output driving method in the embodiment of the present invention;
Fig. 2 is a kind of structural representation of input and output drive device in the embodiment of the present invention.
Embodiment
To solve the above-mentioned problems in the prior art, the technical scheme that the embodiment of the present invention is used passes through first to be defeated Enter output equipment and configure corresponding driving interface, and pass through configured driving interface call driver to input-output equipment Input and output control is carried out, driver is not changed, just can realize that the input and output to different input-output equipment are controlled, Therefore the versatility of input and output driving can be improved.
It is understandable to enable the above objects, features and advantages of the present invention to become apparent, below in conjunction with the accompanying drawings to the present invention Specific embodiment be described in detail.
Fig. 1 shows a kind of flow chart of input and output driving method in the embodiment of the present invention.One kind as shown in Figure 1 Input and output driving method, suitable for carrying out input and output control to input-output equipment, can specifically include the steps:
Step S101:Corresponding driving interface is configured for input-output equipment.
In specific implementation, driving interface is the interface of upper layer application call driver, namely upper layer application passes through institute The corresponding driving interface call driver of configuration.
In specific implementation, there is default corresponding relation between the driving interface and input-output equipment that are configured.With Exemplified by input and output control panel, its output function primarily inputs the indicator lamp of the corresponding each module of output control panel output, Input function is mainly sensor.Therefore, for the versatility of driver, the basis of set driving function can realized On, all input and output items are both configured to configurable item.For example, for the sensor of input and output control panel, no With the sensor of producer's different model, logical value is also uncertain, by being set to the logical value of input pickup to match somebody with somebody The mode of item is put, driving interface is adjusted.
By such a mode, when call driver carries out input and output control to different input-output equipment, drive Dynamic program need not be adjusted, it is only necessary to different driving interfaces are created for different input-output equipment, just can be used same One driver carries out input and output control to different input-output equipment, it is possible to achieve the versatility of driver.
Step S102:When passing through created driving interface and receiving driver recalls information, default drive is called Dynamic program carries out input and output control to corresponding input-output equipment.
In specific implementation, upper layer application can according to the actual needs by the corresponding driving interface being pre-created, Default driver is called to carry out input and output control to corresponding input-output equipment.
Specifically, upper layer application is when needing call driver, can be by corresponding driving interface to driving journey Sequence sends corresponding call request.Driver is asked by being called described in reception first when receiving corresponding call request The information for the interface asked, determines corresponding input-output equipment;When it is determined that during corresponding input-output equipment, driver operation To realize that the input and output to corresponding input-output equipment are controlled.
In specific implementation, driver can obtain the recalls information of itself by way of poll.In the present invention one In embodiment, in order to effectively improve the execution efficiency of driving layer, it is to avoid also doing poll processing under idle condition always, drive Program can use default time interval poll com-state, to obtain itself corresponding recalls information.Wherein, when default Between be spaced and can be configured according to the actual needs, as long as set time interval can take into account driver perform effect The service efficiency of rate and shared system resource, while the execution efficiency of driver is improved, to reduce as far as possible System resource shared by driver.
In an embodiment of the present invention, in order to ensure different upper layer applications is in call driver, standard can be obtained True driving implementing result, driver can return to form using result corresponding with the driving interface configured will be corresponding Implementing result returns to different upper layer applications.
For example, for input and output control panel, driving is called using standard drive interface and non-standard driving interface During program, driver can use identical implementing result different results to return to form by usable interface(Parameter)With disappear Breath is returned to upper layer application.Upper layer application can obtain the execution knot that driver is sent using corresponding result acquisition modes Really.Such a mode, it can be ensured that versatility of the different upper layer applications when calling same driver, should to improve upper strata With the accuracy of acquired driver implementing result.
The above-mentioned method in the embodiment of the present invention is described in detail, below by the corresponding dress of above-mentioned method Put and be introduced.
Fig. 2 shows a kind of structural representation of input and output drive device in the embodiment of the present invention.Referring to Fig. 2, sheet A kind of input and output drive device 20 in inventive embodiments can include dispensing unit 201 and driver element 202, wherein:
The dispensing unit 201, is suitable for input-output equipment and configures corresponding driving interface.
The driver element 202, suitable for when passing through created driving interface and receiving driver recalls information, adjusting Input and output control is carried out to corresponding input-output equipment with default driver.
In an embodiment of the present invention, the driver uses default time interval poll com-state, to obtain The recalls information.
In an embodiment of the present invention, the driving interface includes standard drive interface and non-standard driving interface.Wherein, To improve accurate, the implementing result of the driver, using described of the driver implementing result acquired in upper layer application Standard drive interface or the corresponding result of the non-standard driving interface return to form and returned.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer instruction, described The step of described input and output driving method being performed when computer instruction is run.Wherein, the input and output driving method please Referring to foregoing introduction, it will not be repeated here.
The embodiment of the present invention additionally provides and stores energy on a kind of terminal, including memory and processor, the memory Enough computer instructions run on the processor, the processor performs any of the above-described when running the computer instruction The step of described input and output driving method.Wherein, the input and output driving method refers to foregoing introduction, herein not Repeat again.
Using the such scheme in the embodiment of the present invention, by being that the corresponding driving of input-output equipment configuration connects first Mouthful, and pass through configured driving interface call driver to input-output equipment progress input and output control, it can not repair Change driver, just can realize that the input and output to different input-output equipment are controlled, therefore input and output drive can be improved Dynamic versatility.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in computer-readable recording medium, and storage is situated between Matter can include:ROM, RAM, disk or CD etc..
The method and system to the embodiment of the present invention have been described in detail above, and the present invention is not limited thereto.Any Art personnel, without departing from the spirit and scope of the present invention, can make various changes or modifications, therefore the guarantor of the present invention Shield scope should be defined by claim limited range.

Claims (10)

1. a kind of input and output driving method, it is characterised in that including:
Corresponding driving interface is configured for input-output equipment;
When passing through created driving interface and receiving driver recalls information, default driver is called to corresponding Input-output equipment carries out input and output control.
2. input and output driving method according to claim 1, it is characterised in that when the driver uses default Between be spaced poll com-state, to obtain the recalls information.
3. input and output driving method according to claim 1, it is characterised in that the driving interface drives including standard Interface and non-standard driving interface.
4. input and output driving method according to claim 3, it is characterised in that the implementing result of the driver, Form is returned to using the standard drive interface or the corresponding result of the non-standard driving interface to return.
5. a kind of input and output drive device, it is characterised in that including:
Dispensing unit, is suitable for input-output equipment and configures corresponding driving interface;
Driver element, suitable for when passing through created driving interface and receiving driver recalls information, calling default drive Dynamic program carries out input and output control to corresponding input-output equipment.
6. input and output drive device according to claim 5, it is characterised in that when the driver uses default Between be spaced poll com-state, to obtain the recalls information.
7. input and output drive device according to claim 5, it is characterised in that the driving interface drives including standard Interface and non-standard driving interface.
8. input and output drive device according to claim 7, it is characterised in that the implementing result of the driver, Form is returned to using the standard drive interface or the corresponding result of the non-standard driving interface to return.
9. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the computer instruction fortune The step of perform claim requires the input and output driving method described in 1 to 4 any one during row.
Can be at the place 10. being stored on a kind of terminal, it is characterised in that including memory and processor, the memory The computer instruction run on reason device, any one of perform claim requirement 1 to 4 institute when the processor runs the computer instruction The step of input and output driving method stated.
CN201710504462.0A 2017-06-28 2017-06-28 Input and output driving method and device, computer-readable recording medium, terminal Pending CN107315695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710504462.0A CN107315695A (en) 2017-06-28 2017-06-28 Input and output driving method and device, computer-readable recording medium, terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710504462.0A CN107315695A (en) 2017-06-28 2017-06-28 Input and output driving method and device, computer-readable recording medium, terminal

Publications (1)

Publication Number Publication Date
CN107315695A true CN107315695A (en) 2017-11-03

Family

ID=60181275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710504462.0A Pending CN107315695A (en) 2017-06-28 2017-06-28 Input and output driving method and device, computer-readable recording medium, terminal

Country Status (1)

Country Link
CN (1) CN107315695A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979416A (en) * 2005-12-09 2007-06-13 英业达股份有限公司 Drive program loading system and system
CN101566923A (en) * 2008-04-25 2009-10-28 中兴通讯股份有限公司 Unified driving module of target end SCSI equipment and method thereof
CN101593164A (en) * 2009-07-13 2009-12-02 中国船舶重工集团公司第七○九研究所 Based on built-in Linux from USB HID device and firmware implementation method
CN103902480A (en) * 2013-05-03 2014-07-02 哈尔滨安天科技股份有限公司 Android phone driving method and system
CN104102512A (en) * 2014-07-17 2014-10-15 哈尔滨工业大学 Embedded platform IO equipment dynamic identification system based on external interruption and IO equipment dynamic identification method of system
CN104991872A (en) * 2015-06-19 2015-10-21 上海卓易科技股份有限公司 Method and apparatus for implementing driving of intelligent device on peripheral device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979416A (en) * 2005-12-09 2007-06-13 英业达股份有限公司 Drive program loading system and system
CN101566923A (en) * 2008-04-25 2009-10-28 中兴通讯股份有限公司 Unified driving module of target end SCSI equipment and method thereof
CN101593164A (en) * 2009-07-13 2009-12-02 中国船舶重工集团公司第七○九研究所 Based on built-in Linux from USB HID device and firmware implementation method
CN103902480A (en) * 2013-05-03 2014-07-02 哈尔滨安天科技股份有限公司 Android phone driving method and system
CN104102512A (en) * 2014-07-17 2014-10-15 哈尔滨工业大学 Embedded platform IO equipment dynamic identification system based on external interruption and IO equipment dynamic identification method of system
CN104991872A (en) * 2015-06-19 2015-10-21 上海卓易科技股份有限公司 Method and apparatus for implementing driving of intelligent device on peripheral device

Similar Documents

Publication Publication Date Title
WO2018196863A1 (en) Convolution acceleration and calculation processing methods and apparatuses, electronic device and storage medium
US10120820B2 (en) Direct memory access transmission control method and apparatus
US20220326825A1 (en) File processing method, electronic device, system, and storage medium
US10165566B2 (en) Transmitter and method using carrier aggregation
US10785052B2 (en) Remote control with muscle sensor and alerting sensor
WO2016070726A1 (en) Method, device, and browser client for loading page label
US20170277614A1 (en) Intelligent test robot system
CN107679563A (en) Image processing method and device, system, computer equipment
WO2019177790A2 (en) Automated dispatch optimization
WO2006032302A1 (en) Voice xml web console
CN107315695A (en) Input and output driving method and device, computer-readable recording medium, terminal
US10033781B2 (en) Streaming data on data processes
CN104221310A (en) Dynamically adaptive frequency adjustments
CN105700756A (en) Information input apparatus and information input method
WO2018119795A1 (en) Robot instruction processing method and device, and electronic apparatus
CN107818537A (en) Data processing method and device
AU2014349181A1 (en) Techniques to rate-adjust data usage with a virtual private network
CN115002885B (en) Label data acquisition method and device, electronic equipment and storage medium
CN108415655B (en) Touch data processing method and device, all-in-one machine and storage medium
CN106411712A (en) Electronic gift display method and device
CN109711367A (en) Operation method, device and Related product
CN103902268B (en) A kind of ETL process execution system and method
CN106257379A (en) Frequency selection module, related operation device and frequency selection method
CN105897090B (en) Stepper motor driver and its processing method for receiving pulse
CN105100639B (en) A kind of display methods and display device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171103

RJ01 Rejection of invention patent application after publication