CN110764628B - Method for using metal cipher keyboard as system keyboard - Google Patents

Method for using metal cipher keyboard as system keyboard Download PDF

Info

Publication number
CN110764628B
CN110764628B CN201911055566.3A CN201911055566A CN110764628B CN 110764628 B CN110764628 B CN 110764628B CN 201911055566 A CN201911055566 A CN 201911055566A CN 110764628 B CN110764628 B CN 110764628B
Authority
CN
China
Prior art keywords
keyboard
key
password
wosa
password keyboard
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
CN201911055566.3A
Other languages
Chinese (zh)
Other versions
CN110764628A (en
Inventor
高强
张绍苇
李景涛
生伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN201911055566.3A priority Critical patent/CN110764628B/en
Publication of CN110764628A publication Critical patent/CN110764628A/en
Application granted granted Critical
Publication of CN110764628B publication Critical patent/CN110764628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a method for using a metal password keyboard as a system keyboard, which comprises the following steps of S1: modifying the configuration file, and configuring the key values according to the shift sequence of the key values defined by WOSA/XFS specifications according to the equipment model; step S2: starting a sub-thread, and detecting whether the cipher keyboard is in an idle state, namely, not executing the cipher keyboard command; step S3: when the password keyboard is detected to be in an idle state, the password keyboard is set to be in a plaintext input mode, no stop key is provided, the password keyboard is not automatically ended, a WOSA/XFS event is not reported, and all keys required are activated; step S4: receiving a user key, and converting a key value returned by the password keyboard into a corresponding key value defined by WOSA/XFS specification; step S5: virtualizing the obtained key value out of the corresponding system keyboard key event; step S6: detecting whether a password keyboard command comes or not; the invention realizes the compatibility of different types of password keyboards by modifying the configuration file, and is simple and convenient only by modifying the configuration file, and has universality.

Description

Method for using metal cipher keyboard as system keyboard
Technical Field
The invention relates to a method for using a metal password keyboard as a system keyboard, belonging to the technical field of self-service terminals.
Background
The metal cipher keyboard is used as common and important equipment in the financial field, is widely applied to financial equipment such as ATM (automatic teller machine), CDM (code division multiple access) machine, self-service card sender, intelligent teller machine and the like, is mainly used for inputting account numbers, passwords and the like, the development of the metal cipher keyboard generally follows the WOSA/XFS specification, the application of the cipher keyboard in the financial field is specified by the WOSA/XFS specification, a series of commands, events and the like are formulated, and when some applications need the cipher keyboard to be in an idle state, the metal cipher keyboard can be used as a system keyboard, namely, when no standard command is executed, the metal cipher keyboard can be used as the system keyboard to provide functions outside the specification, but because the cipher keyboards designed by different manufacturers are different, and not all the cipher keyboards are supported to be used as the system keyboard.
Disclosure of Invention
Aiming at the technical problems, the invention aims at: the paper guide device for the automatic separation type printer and the stamping machine is low in paper jam rate and convenient to maintain.
The technical solution of the invention is realized as follows: a method for using a metal password keyboard as a system keyboard comprises the following steps of S1: modifying the configuration file, and configuring the key values according to the shift sequence of the key values defined by WOSA/XFS specifications according to the equipment model; step S2: starting a sub-thread, and detecting whether the cipher keyboard is in an idle state, namely, not executing the cipher keyboard command; step S3: when the password keyboard is detected to be in an idle state, the password keyboard is set to be in a plaintext input mode, no stop key is provided, the password keyboard is not automatically ended, a WOSA/XFS event is not reported, and all keys required are activated; step S4: receiving a user key, and converting a key value returned by the password keyboard into a corresponding key value defined by WOSA/XFS specification; step S5: virtualizing the obtained key value out of the corresponding system keyboard key event; step S6: detecting whether a password keyboard command comes or not, if so, stopping the input, executing the password keyboard command, and waiting for the password keyboard to be in an idle state again.
Preferably, in step S3, the maximum input length is set to 0, i.e. the maximum input length is not limited.
Preferably, in step S5, the key event is generated by calling the API function keybd_event () of Windows.
Due to the application of the technical scheme, compared with the prior art, the invention has the following advantages:
the method for using the metal cipher keyboard as the system keyboard of the invention sets the key values according to the key value shift sequence defined by the WOSA/XFS specification by modifying the configuration file, thereby converting the key values of the cipher keyboards of different types into the key values defined by the unified WOSA/XFS specification, thereby shielding the difference between the hardware of the cipher keyboard, realizing the compatibility of the cipher keyboards of different types, and having the advantages of simplicity, convenience and universality by only modifying the configuration file.
Drawings
The technical scheme of the invention is further described below with reference to the accompanying drawings:
FIG. 1 is a flow chart of a method of using a metal code keyboard as a system keyboard according to the present invention.
Detailed Description
The invention is described below with reference to the accompanying drawings.
Referring to fig. 1, a method for using a metal password keyboard as a system keyboard according to the present invention includes the following steps, step S1: modifying the configuration file, and configuring the key values according to the shift sequence of the key values defined by WOSA/XFS specifications according to the equipment model; step S2: starting a sub-thread, and detecting whether the cipher keyboard is in an idle state, namely, not executing the cipher keyboard command; step S3: when the password keyboard is detected to be in an idle state, the password keyboard is set to be in a plaintext input mode, no stop key is provided, the password keyboard is not automatically ended, a WOSA/XFS event is not reported, and all keys required are activated; step S4: receiving a user key, and converting a key value returned by the password keyboard into a corresponding key value defined by WOSA/XFS specification; step S5: virtualizing the obtained key value out of the corresponding system keyboard key event; step S6: detecting whether a password keyboard command comes or not, if so, stopping the input, executing the password keyboard command, and waiting for the password keyboard to be in an idle state again.
In step S3, in order to achieve the effect of simulating the system keyboard, special settings are required for parameters, and the maximum input length is set to 0, i.e. the maximum input length is not limited.
In step S5, by calling the API function keybd_event () of Windows, a key event is generated by simulation, for example: the analog-to-digital 1 key is pressed, which can be accomplished by calling the following functions:
keybd_event(31,0,0,0);
keybd_event(31,0,KEYEVENTF_KEYUP,0)。
the function of using the password keyboard as a system keyboard is realized by software design on the basis of the password keyboard, and the specific flow is as follows:
step S1: modifying the configuration file, and configuring the key values according to the shift sequence of the key values defined by WOSA/XFS specifications according to the equipment model;
step S2: starting a sub-thread, and detecting whether the cipher keyboard is in an idle state, namely, not executing the cipher keyboard command;
step S3: when the password keyboard is detected to be in an idle state, the password keyboard is set to be in a plaintext input mode, and similar to the implementation of a WFS_CMD_PIN_GET_DATA command in WOSA/XFS specification, interfaces can be shared, the maximum input length is set to be 0 (namely, the maximum input length is not limited), no stop key is provided, the automatic ending is not performed, the WOSA/XFS event is not reported, and all required keys are activated;
step S4: receiving a user key, and converting a key value returned by the password keyboard into a corresponding key value defined by WOSA/XFS specification;
step S5: virtualizing the obtained key value out of the corresponding system keyboard key event;
step S6: detecting whether a password keyboard command comes or not, if so, stopping the input, executing the password keyboard command, and waiting for the password keyboard to be in an idle state again.
The method for using the metal cipher keyboard as the system keyboard of the invention sets the key values according to the key value shift sequence defined by the WOSA/XFS specification by modifying the configuration file, thereby converting the key values of the cipher keyboards of different types into the key values defined by the unified WOSA/XFS specification, thereby shielding the difference between the hardware of the cipher keyboard, realizing the compatibility of the cipher keyboards of different types, and having the advantages of simplicity, convenience and universality by only modifying the configuration file.
The above embodiments are only for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and to implement the same, but are not intended to limit the scope of the present invention, and all equivalent changes or modifications made according to the spirit of the present invention should be included in the scope of the present invention.

Claims (3)

1. A method of using a metal code keyboard as a system keyboard, characterized by: the method comprises the following steps of S1: modifying the configuration file, and configuring the key values according to the shift sequence of the key values defined by WOSA/XFS specifications according to the equipment model; step S2: starting a sub-thread, and detecting whether the cipher keyboard is in an idle state, namely, not executing the cipher keyboard command; step S3: when the password keyboard is detected to be in an idle state, the password keyboard is set to be in a plaintext input mode, no stop key is provided, the password keyboard is not automatically ended, a WOSA/XFS event is not reported, and all keys required are activated; step S4: receiving a user key, and converting a key value returned by the password keyboard into a corresponding key value defined by WOSA/XFS specification; step S5: virtualizing the obtained key value out of the corresponding system keyboard key event; step S6: detecting whether a password keyboard command comes or not, if so, stopping the input, executing the password keyboard command, and waiting for the password keyboard to be in an idle state again.
2. A method of using a metal code keypad as a system keypad as claimed in claim 1, wherein: in step S3, the maximum input length is set to 0, i.e., the maximum input length is not limited.
3. A method of using a metal code keypad as a system keypad as claimed in claim 1, wherein: in step S5, the key event is generated by calling the API function keybd_event () of Windows.
CN201911055566.3A 2019-10-31 2019-10-31 Method for using metal cipher keyboard as system keyboard Active CN110764628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055566.3A CN110764628B (en) 2019-10-31 2019-10-31 Method for using metal cipher keyboard as system keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055566.3A CN110764628B (en) 2019-10-31 2019-10-31 Method for using metal cipher keyboard as system keyboard

Publications (2)

Publication Number Publication Date
CN110764628A CN110764628A (en) 2020-02-07
CN110764628B true CN110764628B (en) 2023-06-27

Family

ID=69335811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055566.3A Active CN110764628B (en) 2019-10-31 2019-10-31 Method for using metal cipher keyboard as system keyboard

Country Status (1)

Country Link
CN (1) CN110764628B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465018A (en) * 2009-01-12 2009-06-24 浪潮(山东)电子信息有限公司 Self-learning financial cipher keyboard
CN103268668A (en) * 2013-05-10 2013-08-28 广州广电运通金融电子股份有限公司 Password input system and input method for self-service terminal
CN104965599A (en) * 2015-05-21 2015-10-07 浪潮软件集团有限公司 Method for applying metal password keyboard in system
CN107657187A (en) * 2017-09-29 2018-02-02 百富计算机技术(深圳)有限公司 A kind of keyboard and input method and system applied to android system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8456429B2 (en) * 2009-07-30 2013-06-04 Ncr Corporation Encrypting touch-sensitive display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465018A (en) * 2009-01-12 2009-06-24 浪潮(山东)电子信息有限公司 Self-learning financial cipher keyboard
CN103268668A (en) * 2013-05-10 2013-08-28 广州广电运通金融电子股份有限公司 Password input system and input method for self-service terminal
CN104965599A (en) * 2015-05-21 2015-10-07 浪潮软件集团有限公司 Method for applying metal password keyboard in system
CN107657187A (en) * 2017-09-29 2018-02-02 百富计算机技术(深圳)有限公司 A kind of keyboard and input method and system applied to android system

Also Published As

Publication number Publication date
CN110764628A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN103744593B (en) Mobile terminal and method for preventing mis-operation of mobile terminal
US8042042B2 (en) Touch screen-based document editing device and method
US20090077467A1 (en) Mobile television and multimedia player key presentations
US20090073126A1 (en) Standardized method and systems for providing configurable keypads
CN102819431A (en) Setting method of logical orders, calling method of application program and mobile terminal
CN101316402A (en) Method for managing task on mobile phone
US20070073940A1 (en) Interface mediator for a computing device
CN110764628B (en) Method for using metal cipher keyboard as system keyboard
CN106027631A (en) Data transmission method and device
CN105681533A (en) Call content recording method and apparatus
EP2307941B1 (en) Mobile television and multimedia player key presentations
CN108572594A (en) Generation method, device and the terminal device of smart machine control instruction
CN105138419B (en) Setting value recovery system
CN102096480A (en) Cascading method for KVM system based on PS2 interface
CN101236581A (en) Information safety apparatus and its processing method
CN201166888Y (en) Automatic counter machine operated by a mobile telephone
US20120259591A1 (en) Keyboard testing method
CN108490824B (en) Intelligent electric appliance control method, device and mobile terminal
CN105867772A (en) Method and device for quickly closing application notice and user equipment
CN101893986A (en) Input method and device of touch screen
CN102736833A (en) Electromechanical device control system and method
CN201893794U (en) Network equipment with touch screen
EP3244333B1 (en) Method and device for concealing personal information on calling interface
EP2368185A1 (en) Coding for non functional keys of a keyboard or keypad
CN107396201B (en) Five-key operation method for television set

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
GR01 Patent grant
GR01 Patent grant