CN113177238A - PIN input method and system based on double-chip sales terminal - Google Patents

PIN input method and system based on double-chip sales terminal Download PDF

Info

Publication number
CN113177238A
CN113177238A CN202011059279.2A CN202011059279A CN113177238A CN 113177238 A CN113177238 A CN 113177238A CN 202011059279 A CN202011059279 A CN 202011059279A CN 113177238 A CN113177238 A CN 113177238A
Authority
CN
China
Prior art keywords
chip
application
key
key signal
pin input
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
CN202011059279.2A
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.)
New Pos Technology Ltd
Original Assignee
New Pos Technology 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 New Pos Technology Ltd filed Critical New Pos Technology Ltd
Priority to CN202011059279.2A priority Critical patent/CN113177238A/en
Publication of CN113177238A publication Critical patent/CN113177238A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/83Protecting input, output or interconnection devices input devices, e.g. keyboards, mice or controllers thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/72Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information in cryptographic circuits
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The application is suitable for the technical field of sales terminal safety, and provides a PIN input method based on a double-chip sales terminal, which is applied to an application chip, wherein the application chip is in communication connection with a safety chip, the application chip is connected with a functional key, and the safety chip is connected with a number key; the method comprises the following steps: when a PIN input request is detected, entering a safe keyboard mode, starting a function key monitoring function, sending monitored function key signals to a safe chip so that the safe chip processes digital key signals according to the function key signals, exiting the safe keyboard mode when PIN input is detected to be completed, and entering a common mode so as to feed back the digital key signals and the function key signals to an application program layer. By starting the monitoring function, the key information can be immediately received by the other end when a key is generated at one end, so that the time delay and the CPU load of the key signal are reduced, the communication times between two chips are reduced, and the information safety is improved.

Description

PIN input method and system based on double-chip sales terminal
Technical Field
The application belongs to the technical field of sales terminal safety, and particularly relates to a PIN input method and system based on a dual-chip sales terminal, the dual-chip sales terminal and a readable storage medium.
Background
In the technical field of the existing point-of-sale (POS), there are two common PIN input methods:
the first PIN input method is a PIN input method based on a traditional point of sale (POS), which generally implements PIN input through physical keys, and a security chip processes signals of all the physical keys. The method cannot directly acquire the function key value through the AP chip.
The second PIN input method is a method for realizing PIN input through a touch screen based on a smart point of sale (POS). The method comprises the steps that an input signal of the touch screen is received through an application processing chip, the input signal of the touch screen is sent to a safety chip when PIN input is detected, PIN data are processed through the safety chip, and the input signal of the touch screen is sent to the application processing chip to be processed when the PIN input is detected to be finished. The hardware architecture complexity and cost of this approach is high.
Disclosure of Invention
The embodiment of the application provides a PIN input method and system based on a double-chip sales terminal, the double-chip sales terminal and a readable storage medium, and can solve the problems of complex hardware structure, high cost, long information delay and low input efficiency of the conventional PIN input method.
In a first aspect, the embodiment of the application provides a PIN input method based on a dual-chip sales terminal, which is applied to an application chip AP, wherein the application chip AP is in communication connection with a security chip SP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the method comprises the following steps:
when a PIN input request is detected, entering a safe keyboard mode and starting a function key monitoring function;
sending the monitored function key signals to the security chip SP so that the security chip SP can process according to the function key signals;
sending an input state monitoring instruction to the security chip SP, and receiving an input state returned by the security chip SP;
when the input state is detected to be a PIN input ending state, exiting the safe keyboard mode, and receiving a number key signal sent by the safe chip SP;
and entering a common keyboard mode, and feeding back the number key signal and the function key signal to an application program layer.
In a second aspect, the embodiment of the application provides a PIN input method based on a dual-chip sales terminal, which is applied to a security chip, wherein the security chip SP is in communication connection with an application chip AP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the method comprises the following steps:
when a PIN input command is received, entering a safe keyboard mode and starting a numeric key monitoring function;
receiving a function key signal sent by the application chip AP, and processing the monitored number key signal according to the function key signal;
when the PIN input is detected to be finished, the safe keyboard mode is exited, and the number key signal is sent to the application chip AP;
and entering a common keyboard mode to enable the application chip AP to feed back the number key signal and the function key signal to an application program layer.
In a third aspect, the embodiment of the application provides a PIN input system based on a dual-chip sales terminal, which is applied to an application chip AP, wherein the application chip AP is in communication connection with a security chip SP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the system, comprising:
the first detection module is used for entering a safe keyboard mode and starting a function key monitoring function when a PIN input request is detected;
the first sending module is used for sending the monitored function key signals to the security chip SP so that the security chip SP can process according to the function key signals;
the second sending module is used for sending an input state monitoring instruction to the security chip SP and receiving an input state returned by the security chip SP;
the second detection module is used for exiting the safe keyboard mode and receiving a numeric key signal sent by the safety chip SP when the input state is detected to be a PIN input ending state;
and the first feedback module is used for entering a common keyboard mode and feeding back the number key signals and the function key signals to an application program layer.
In a fourth aspect, the embodiment of the application provides a PIN input system based on a dual-chip sales terminal, which is applied to a security chip, wherein the security chip SP is in communication connection with an application chip AP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the system, comprising:
the first receiving module is used for entering a safe keyboard mode and starting a digital key monitoring function when a PIN input command is received;
the second receiving module is used for receiving the function key signals sent by the application chip AP and processing the monitored number key signals according to the function key signals;
the third detection module is used for exiting the safe keyboard mode and sending the number key signal to the application chip AP when the PIN input is detected to be finished;
and the second feedback module is used for entering a common keyboard mode so that the application chip AP feeds the number key signal and the function key signal back to an application program layer.
In a fifth aspect, an embodiment of the present application provides a dual-chip sales terminal, including a secure chip, an application chip, and a computer program stored in and executable on the secure chip or the application chip, where the method according to the first aspect is implemented when the computer program is executed by the application chip, and the method according to the second aspect is implemented when the computer program is executed by the secure chip.
In a sixth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the PIN input method based on a dual-chip sales terminal according to the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the PIN input method based on a dual-chip sales terminal according to the first aspect or the second aspect.
Through application chip AP and security chip SP communication connection, connect application chip AP and function key, connect security chip SP and digital key, start the monitoring function, realize when there is the button to take place in one end, the other end can receive the button information immediately, has reduced the time delay and the CPU load of button signal, has reduced the number of times of communication between two kinds of chips simultaneously, has improved the security of information.
It is to be understood that, the beneficial effects of the second to seventh aspects may be referred to the relevant description of the first aspect, and are not repeated herein.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a PIN input method based on a dual-chip sales terminal according to an embodiment of the present application;
FIG. 2 is a schematic flowchart of a PIN input method based on a dual-chip sales terminal according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a PIN input system based on a dual-chip sales terminal according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a PIN input system based on a dual-chip sales terminal according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a dual-chip sales terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The PIN input method based on the double-chip sales terminal can be applied to terminal equipment such as the double-chip sales terminal, and the specific type of the terminal equipment is not limited in any way in the embodiment of the application.
Example one
Fig. 1 shows a schematic flow chart of a PIN input method based on a dual-chip sales terminal provided by the present application, and by way of example and not limitation, the method may be applied to an application chip AP, the application chip AP and a security chip SP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key.
S101, when a PIN input request is detected, entering a safe keyboard mode, and starting a function key monitoring function.
In a specific Application, when detecting a pin (personal Identification number) input request, an Application chip (AP) enters a secure keyboard mode and starts a function key listening mode. The function key monitoring function is a function of transmitting a monitored function key signal to a Security Processor (SP) in real time during a PIN input process. The secure keyboard mode is a mode in which key information is processed inside the secure chip, so that a user cannot acquire the key information. The PIN input request may be a request for starting PIN input sent by other terminal devices, or an input request generated by a user opening a PIN input keyboard through a key. The communication between the application chip AP and the security chip SP can be realized through a high-speed serial port communication mode.
S102, sending the monitored function key signals to the security chip SP so that the security chip SP can process according to the function key signals.
In specific application, after entering the security keyboard mode, the monitored function key signals are sent to the security chip SP in real time, so that the security chip SP processes the number key signals monitored by the security chip SP according to the function key signals, all key information is processed only in the security chip, and the information security is improved. Wherein, the number key signals comprise 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9; the function key signals refer to non-numeric key signals including, but not limited to, a power key, an enter key, and a cancel key.
S103, sending an input state monitoring instruction to the security chip SP, and receiving an input state returned by the security chip SP.
In a specific application, the input state refers to a PIN input state of the secure chip SP, which includes, but is not limited to, an in-input state and a PIN input end state. In order to determine the PIN input state of the security chip SP, generating an input state monitoring instruction, and sending the input state monitoring instruction to the security chip SP, so that the security chip SP feeds back the input state according to the PIN input state monitoring instruction, then receives the input state fed back by the security chip SP in real time, and simultaneously displays the input state on a display screen; it is understood that the PIN input state of the secure chip SP is updated to the entering state when the secure chip SP receives the PIN input command.
And S104, when the input state is detected to be a PIN input ending state, exiting the safe keyboard mode, and receiving a number key signal sent by the safe chip SP.
In specific application, when the input state sent by the security chip SP is detected to be the PIN input end state, the security keyboard mode is exited, and a number key signal sent by the security chip SP is received.
In this embodiment, the received number key signal sent by the security chip SP is a number key signal encrypted by a preset PIN key. After receiving the digital key signal after encryption processing, the digital key signal after encryption processing is decrypted through the main key, then verification is carried out, and after the verification is passed, the PIN key is stored in a special key protection chip, namely an SE.
And S105, entering a common keyboard mode, and feeding back the number key signals and the function key signals to an application program layer.
In specific application, after exiting the safe keyboard mode, the normal keyboard mode is entered, and the received number key signal and function key signal are fed back to the application program layer. The normal keyboard mode is a mode in which the key information is processed inside the application chip AP, so that a user can obtain the key information through the application layer.
In one embodiment, after step S101, the method further includes:
and generating a PIN input command and sending the PIN input command to the security chip SP so as to enable the security chip SP to enter a security keyboard mode.
In a specific application, after entering the secure keyboard mode, a PIN input command is generated and sent to the secure chip SP, so that the secure chip SP enters the secure keyboard mode. The PIN input command is a command for controlling the security chip SP to enter a security keyboard mode and receiving a PIN input signal. The PIN input signal includes, but is not limited to, a number key signal and a function key signal.
In one embodiment, step S105 includes:
entering a common keyboard mode, sending a numerical key monitoring instruction to the security chip SP, and receiving a numerical key signal sent by the security chip SP;
and processing the function key signals and the number key signals, and feeding back the processed function key signals and the processed number key signals to an application program layer.
In a specific application, in a common keyboard mode, the application chip AP generates a numerical key monitoring instruction and sends the numerical key monitoring instruction to the security chip SP, and after receiving the numerical key monitoring instruction, the security chip SP immediately reports a numerical key signal to the application chip AP when monitoring a numerical key signal. After receiving the digital key signal, the application chip AP generates a digital key monitoring instruction again and sends the instruction to the security chip SP, so as to receive the next digital key signal. And processing the received number key signals and the monitored function key signals, and feeding back the processed function key signals and the processed number key signals to the application program layer when the application program layer sends a signal acquisition instruction.
Wherein, the processing of the received number key signal and the monitored function key signal is specifically as follows: and processing the received number key signal according to the monitored function key signal. For example, when the function key signal is detected to be a cancel key, all the number key signals which are monitored at the current moment are cleared; and when the function key signal is detected to be a clearing key signal, clearing the last number key signal received at the current moment.
Through application chip AP and security chip SP communication connection, connect application chip AP and function key, connect security chip SP and digital key, start the monitoring function, realize when there is the button to take place in one end, the other end can receive the button information immediately, has reduced the time delay and the CPU load of button signal, has reduced the number of times of communication between two kinds of chips simultaneously, has improved the security of information.
Example two
Fig. 2 shows a schematic flow chart of another PIN input method based on a dual-chip sales terminal, which can be applied to a secure chip SP, which is communicatively connected to an application chip AP, which is connected to a functional key, and a digital key, by way of example and not limitation;
the method comprises the following steps:
s201, when a PIN input command is received, entering a safe keyboard mode, and starting a digital key monitoring function.
In specific Application, when a PIN input command sent by an Application Processor (AP) is received, a secure keyboard mode is entered, and a numeric key monitoring function is started, at this time, the PIN input state is updated to be the input state. And calculating the number of the monitored number key signals, and transmitting the number of the monitored number key signals to the application chip AP in real time. The PIN input command is a command generated and sent by the application chip AP, and is used to control the Security chip (SP) to enter the secure keyboard mode and receive a PIN input signal. The digital key monitoring function is a function of monitoring digital key signals generated by pressing data keys by a user in the process of PIN input. The security keyboard mode is a mode in which key information is processed inside the security chip SP so that a user cannot acquire the key information.
In one embodiment, after S202, the method further includes:
when receiving an input state monitoring instruction sent by the application chip AP, sending an input state to the application chip AP;
and when detecting that the input state is updated, sending the updated input state to the application chip AP.
In a specific application, the input state refers to a PIN input state of the secure chip SP, which includes, but is not limited to, an in-input state and a PIN input end state. When an input state monitoring instruction sent by an application chip AP is received, the PIN input state at the current moment is sent to the application chip AP, and when the input state updating is detected, the updated input state is sent to the application chip AP; the PIN input state monitoring instruction is generated and sent by the application chip AP and is used for controlling the security chip SP to feed back the PIN input state.
S202, receiving the function key signal sent by the application chip AP, and processing the monitored number key signal according to the function key signal.
In specific application, a function key signal sent by the application chip AP is received, and the monitored number key signal is correspondingly processed according to the function key signal.
S203, when the PIN input is detected to be finished, the safe keyboard mode is exited, and the number key signal is sent to the application chip AP.
In specific application, when the PIN input is detected to be finished, the digital key signals are processed, the safe keyboard mode is exited, the processed digital key signals are sent to the application chip AP, and the PIN input state is updated to be the PIN input finishing state.
And S204, entering a common keyboard mode to enable the application chip AP to feed back the number key signal and the function key signal to an application program layer.
In specific application, after exiting the secure keyboard mode, the application chip AP enters a normal keyboard mode to feed back the function key signal and the number key signal to the user terminal. The normal keyboard mode is a mode in which key information is processed inside the application chip AP, so that a user can acquire the key information through the application layer.
In one embodiment, the step S203 includes:
when the functional key signal is detected to be a confirmation key signal and the number of the monitored number key signals reaches a preset value, judging that PIN input is finished, and updating the input state into a PIN input finishing state;
and encrypting the monitored number key signal according to a preset PIN key, exiting the safe keyboard mode, and sending the encrypted number key signal to the application chip AP.
In specific application, when detecting that a function key signal sent by an application chip AP is a confirmation key signal and detecting that the number of monitored number key signals at the current moment reaches a preset value, judging that PIN input is finished, updating a PIN input state into a PIN input finished state, and at the moment, sending the updated PIN input state to the application chip AP; the preset value can be specifically set according to the actual situation. Typically, the default value is set to 6 bits. The number of the number key signals is the number of the number key signals which are obtained by the safety chip SP through calculation and are monitored by the safety chip SP at the current moment.
In specific application, after the input state is updated to the PIN input end state, the monitored number key signal needs to be encrypted by a preset PIN key, the security keyboard mode is exited, and the encrypted number key signal is sent to the application chip AP. Wherein, a PIN encryption Key (TPK) is a Key used for calculating an encrypted PIN. The PIN key can be specifically set according to actual conditions, and in specific applications, the PIN key needs to be replaced regularly, usually once a day.
In one embodiment, the method further comprises:
and when a PIN input command is received, starting a timing function, acquiring timing duration and sending the timing duration to the application chip AP.
In specific application, the security keyboard mode is entered when a PIN input command is received, a timing function is started at the same time, the timing duration of PIN input is obtained, and the obtained timing duration of PIN input is returned to the application chip AP, so that the application chip AP displays the timing duration. The preset PIN input duration can be specifically set according to the user requirement, for example, set to 60 s.
In one embodiment, the step S203 further includes:
and when the functional key signal is detected to be a cancel key or the timing duration is detected to reach the preset PIN input duration, judging that the PIN input is ended, updating the input state to be the PIN input ending state, and exiting the safe keyboard mode.
In specific application, when detecting that a function key signal sent by an application chip AP is a cancel key, clearing all monitored numeric key signals at the current moment, judging that PIN input is finished, and updating an input state to a PIN input finished state. Or, judging whether the timing time reaches the preset PIN input time in real time, judging that the PIN input is ended when the timing time reaches the preset PIN input time, and updating the input state into the PIN input end state.
The preset PIN input duration may be specifically set according to a user requirement, for example, set to 60s, and when the timing duration is detected to be 60s, determine that the PIN input is ended, and update the input state to the PIN input ended state.
In one embodiment, step S202 includes:
and receiving a function key signal sent by the application chip AP, and clearing the number key signals meeting preset conditions in all the monitored number key signals when detecting that the function key signal is a clear key signal.
In a specific application, the preset condition is set as a condition for selecting the numeric key signal with the smallest time interval between the monitoring time and the current time from the monitored numeric key signals. That is, when the function key signal is detected to be a clear key signal, the number key signal with the smallest time interval with the current time in the monitored number key signals is deleted, and the rest number key signals are stored; for example, if the monitored numeric key signal is 123456, then "6" is the last numeric key signal in the function key signals that was monitored (i.e., the interval between the time when "6" was monitored and the current time is the smallest), and therefore "6" is deleted and the monitored numeric key signal "12345" is saved.
In one embodiment, the step S204 includes:
and entering a common keyboard mode, and when receiving a numerical key monitoring instruction sent by the application chip AP, sending the monitored numerical key signal to the application chip AP so that the application chip AP feeds back the numerical key signal to an application program layer.
In specific application, after exiting from the safe keyboard mode, the application chip enters into a common keyboard mode, and when receiving a digital key monitoring instruction sent by the application chip AP, the monitored digital key signal is sent to the application chip AP, so that the application chip AP feeds back the digital key signal to an application program layer. The digital key monitoring instruction is generated and sent by the application chip AP and used for controlling the security chip SP to send the monitored digital key to the application chip AP.
Through application chip AP and security chip SP communication connection, connect application chip AP and function key, connect security chip SP and digital key, start the monitoring function, realize when there is the button to take place in one end, the other end can receive the button information immediately, has reduced the time delay and the CPU load of button signal, has reduced the number of times of communication between two kinds of chips simultaneously, has improved the security of information.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
Corresponding to the PIN input method based on the dual-chip sales terminal described in the first embodiment, fig. 3 shows a structural block diagram of the PIN input system based on the dual-chip sales terminal provided in the first embodiment of the present application, where the PIN input system based on the dual-chip sales terminal is applied to an application chip AP, the application chip AP is in communication connection with a security chip SP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the PIN input system 100 based on the dual-chip sales terminal comprises:
the first detection module 101 is configured to enter a secure keyboard mode and start a function key monitoring function when a PIN input request is detected;
the first sending module 102 is configured to send the monitored function key signal to the secure chip SP, so that the secure chip SP performs processing according to the function key signal;
a second sending module 103, configured to send an input state monitoring instruction to the security chip SP, and receive an input state returned by the security chip SP;
the second detection module 104 is configured to exit the secure keyboard mode and receive a numeric key signal sent by the secure chip SP when the input state is detected to be a PIN input end state;
the first feedback module 105 is configured to enter a normal keyboard mode, and feed back the number key signal and the function key signal to the application layer.
In one embodiment, the PIN entry system 100 based on a dual-chip sales terminal further includes:
and the first generation module is used for generating a PIN input command and sending the PIN input command to the secure chip SP so as to enable the secure chip SP to enter a secure keyboard mode.
In one embodiment, the first feedback module 105 further includes:
the first sending unit is used for entering a common keyboard mode, sending a numerical key monitoring instruction to the security chip SP and receiving a numerical key signal sent by the security chip SP;
and the first feedback unit is used for processing the function key signal and the number key signal and feeding back the processed function key signal and the processed number key signal to an application program layer.
Through application chip AP and security chip SP communication connection, connect application chip AP and function key, connect security chip SP and digital key, start the monitoring function, realize when there is the button to take place in one end, the other end can receive the button information immediately, has reduced the time delay and the CPU load of button signal, has reduced the number of times of communication between two kinds of chips simultaneously, has improved the security of information.
Example four
Corresponding to the PIN input method based on the dual-chip sales terminal described in the second embodiment, fig. 4 shows a structural block diagram of the PIN input system based on the dual-chip sales terminal provided in the embodiment of the present application, where the PIN input system 200 based on the dual-chip sales terminal is applied to a security chip, a security chip SP is in communication connection with an application chip AP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the PIN input system 200 based on the dual-chip sales terminal comprises:
the first receiving module 201 is configured to enter a secure keyboard mode and start a numeric key monitoring function when receiving a PIN input command;
a second receiving module 202, configured to receive a function key signal sent by the application chip AP, and process the monitored number key signal according to the function key signal;
the third detection module 203 is configured to exit the secure keyboard mode and send the number key signal to the application chip AP when detecting that the PIN input is finished;
the second feedback module 204 is configured to enter a normal keyboard mode, so that the application chip AP feeds back the number key signal and the function key signal to an application layer.
In one embodiment, the third detection module 203 includes:
the first updating unit is used for judging that PIN input is finished and updating the input state into a PIN input finishing state when the functional key signal is detected to be a confirmation key signal and the number of the monitored number key signals reaches a preset value;
and the encryption unit is used for encrypting the monitored digital key signals according to a preset PIN key, exiting the safe keyboard mode and sending the encrypted digital key signals to the application chip AP.
In one embodiment, the third detecting module 203 further includes:
and the second updating unit is used for judging that the PIN input is ended when the functional key signal is detected to be a cancel key or the timing duration reaches the preset PIN input duration, updating the input state to be the PIN input ending state, and exiting the safe keyboard mode.
In one embodiment, the PIN entry system 200 based on the dual-chip sales terminal further includes:
the third receiving module is used for sending the input state to the application chip AP when receiving the input state monitoring instruction sent by the application chip AP;
and the third sending module is used for sending the updated input state to the application chip AP when the input state update is detected.
In one embodiment, the second feedback module 204 includes:
and the second feedback unit is used for entering a common keyboard mode, and sending the monitored digital key signals to the application chip AP when receiving a digital key monitoring instruction sent by the application chip AP so that the application chip AP feeds the digital key signals back to an application program layer.
In one embodiment, the second receiving module 202 includes:
and the clearing module is used for receiving the function key signals sent by the application chip AP and clearing the numerical key signals meeting the preset conditions in all the monitored numerical key signals when the function key signals are detected to be the clearing key signals.
Through application chip AP and security chip SP communication connection, connect application chip AP and function key, connect security chip SP and digital key, start the monitoring function, realize when there is the button to take place in one end, the other end can receive the button information immediately, has reduced the time delay and the CPU load of button signal, has reduced the number of times of communication between two kinds of chips simultaneously, has improved the security of information.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 5 is a schematic structural diagram Of a Point Of Sale (POS) according to an embodiment Of the present application. As shown in fig. 5, the dual chip sales terminal 5 of this embodiment includes: a secure chip 50, an application chip 51, a computer program 52 stored and executable in the secure chip 50, and a computer program 53 stored and executable in the application chip 51, wherein the steps of the PIN input method based on the dual-chip sales terminal in the first embodiment are implemented when the application chip 51 executes the computer program 53, and the steps of the PIN input method based on the dual-chip sales terminal in the second embodiment are implemented when the secure chip 50 executes the computer program 52.
The dual chip sales terminal 5 may be a sales terminal or the like. The dual chip point-of-sale terminal may include, but is not limited to, a security chip 50 and an application chip 51. It will be understood by those skilled in the art that fig. 5 is merely an example of the dual chip sales terminal 5, and does not constitute a limitation to the dual chip sales terminal 5, and may include more or less components than those shown, or combine some components, or different components, such as input-output devices, network access devices, and the like.
The secure chip 50 may be a Security Processor (SP); the Application chip 51 may be an Application Processor (AP).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/dual chip point of sale terminal, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (12)

1. A PIN input method based on a double-chip sale terminal is characterized by being applied to an application chip AP, wherein the application chip AP is in communication connection with a security chip SP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the method comprises the following steps:
when a PIN input request is detected, entering a safe keyboard mode and starting a function key monitoring function;
sending the monitored function key signals to the security chip SP so that the security chip SP can process according to the function key signals;
sending an input state monitoring instruction to the security chip SP, and receiving an input state returned by the security chip SP;
when the input state is detected to be a PIN input ending state, exiting the safe keyboard mode, and receiving a number key signal sent by the safe chip SP;
and entering a common keyboard mode, and feeding back the number key signal and the function key signal to an application program layer.
2. The PIN entry method based on a dual chip sales terminal of claim 1, wherein after entering a secure keypad mode and starting a function key listening function upon detecting a PIN entry request, further comprising:
and generating a PIN input command and sending the PIN input command to the security chip SP so as to enable the security chip SP to enter a security keyboard mode.
3. The PIN entry method based on a dual chip sales terminal of claim 1, wherein the entering into the normal keypad mode and the feeding back the number key signal and the function key signal to the application layer comprise:
entering a common keyboard mode, sending a numerical key monitoring instruction to the security chip SP, and receiving a numerical key signal sent by the security chip SP;
and processing the function key signals and the number key signals, and feeding back the processed function key signals and the processed number key signals to an application program layer.
4. A PIN input method based on a double-chip sale terminal is characterized in that the method is applied to a security chip, a security chip SP is in communication connection with an application chip AP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the method comprises the following steps:
when a PIN input command is received, entering a safe keyboard mode and starting a numeric key monitoring function;
receiving a function key signal sent by the application chip AP, and processing the monitored number key signal according to the function key signal;
when the PIN input is detected to be finished, the safe keyboard mode is exited, and the number key signal is sent to the application chip AP;
and entering a common keyboard mode to enable the application chip AP to feed back the number key signal and the function key signal to an application program layer.
5. The PIN entry method based on a dual chip point-of-sale terminal of claim 4, wherein said exiting said secure keypad mode upon detection of the end of PIN entry comprises:
when the functional key signal is detected to be a confirmation key signal and the number of the monitored number key signals reaches a preset value, judging that PIN input is finished, and updating the input state into a PIN input finishing state;
and encrypting the monitored number key signal according to a preset PIN key, exiting the safe keyboard mode, and sending the encrypted number key signal to the application chip AP.
6. The PIN entry method based on a dual chip point-of-sale terminal as recited in claim 4, wherein said exiting said secure keypad mode upon detection of the end of PIN entry further comprises:
and when the functional key signal is detected to be a cancel key or the timing duration is detected to reach the preset PIN input duration, judging that the PIN input is ended, updating the input state to be the PIN input ending state, and exiting the safe keyboard mode.
7. The PIN entry method based on a dual-chip sales terminal according to claim 4, wherein after receiving the function key signal sent by the application chip AP and processing the monitored number key signal according to the function key signal, further comprising:
when receiving an input state monitoring instruction sent by the application chip AP, sending an input state to the application chip AP;
and when detecting that the input state is updated, sending the updated input state to the application chip AP.
8. The PIN entry method based on a dual-chip sales terminal of claim 4, wherein the entering into a normal keypad mode to cause the application chip AP to feed back the number key signals and the function key signals to an application layer comprises:
and entering a common keyboard mode, and when receiving a numerical key monitoring instruction sent by the application chip AP, sending the monitored numerical key signal to the application chip AP so that the application chip AP feeds back the numerical key signal to an application program layer.
9. The PIN entry method according to claim 4, wherein the receiving the function key signal sent by the application chip AP and performing the processing according to the function key signal comprises:
and receiving a function key signal sent by the application chip AP, and clearing the number key signals meeting preset conditions in all the monitored number key signals when detecting that the function key signal is a clear key signal.
10. A PIN input system based on a double-chip sales terminal is characterized in that the PIN input system is applied to an application chip AP, the application chip AP is in communication connection with a security chip SP, the application chip AP is connected with a functional key, and the security chip SP is connected with a digital key;
the system, comprising:
the first detection module is used for entering a safe keyboard mode and starting a function key monitoring function when a PIN input request is detected;
the first sending module is used for sending the monitored function key signals to the security chip SP so that the security chip SP can process according to the function key signals;
the second sending module is used for sending an input state monitoring instruction to the security chip SP and receiving an input state returned by the security chip SP;
the second detection module is used for exiting the safe keyboard mode and receiving a numeric key signal sent by the safety chip SP when the input state is detected to be a PIN input ending state;
and the first feedback module is used for entering a common keyboard mode and feeding back the number key signals and the function key signals to an application program layer.
11. A PIN input system based on a double-chip sales terminal is characterized in that the PIN input system is applied to a security chip, a security chip SP is in communication connection with an application chip AP, the application chip AP is in key connection with a function key, and the security chip SP is in key connection with a digital key;
the system, comprising:
the first receiving module is used for entering a safe keyboard mode and starting a digital key monitoring function when a PIN input command is received;
the second receiving module is used for receiving the function key signals sent by the application chip AP and processing the monitored number key signals according to the function key signals;
the third detection module is used for exiting the safe keyboard mode and sending the number key signal to the application chip AP when the PIN input is detected to be finished;
and the second feedback module is used for entering a common keyboard mode so that the application chip AP feeds the number key signal and the function key signal back to an application program layer.
12. A dual chip sales terminal comprising a security chip, an application chip and a computer program stored on and executable on said security chip and application chip, characterized in that said application chip implements the method according to any of claims 1 to 3 when executing said computer program, and said security chip implements the method according to any of claims 4 to 9 when executing said computer program.
CN202011059279.2A 2020-09-30 2020-09-30 PIN input method and system based on double-chip sales terminal Pending CN113177238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011059279.2A CN113177238A (en) 2020-09-30 2020-09-30 PIN input method and system based on double-chip sales terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011059279.2A CN113177238A (en) 2020-09-30 2020-09-30 PIN input method and system based on double-chip sales terminal

Publications (1)

Publication Number Publication Date
CN113177238A true CN113177238A (en) 2021-07-27

Family

ID=76921532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011059279.2A Pending CN113177238A (en) 2020-09-30 2020-09-30 PIN input method and system based on double-chip sales terminal

Country Status (1)

Country Link
CN (1) CN113177238A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296860A (en) * 2021-12-31 2022-04-08 飞天诚信科技股份有限公司 Method and apparatus for preventing processing of a secure processor from being interrupted
CN114296625A (en) * 2021-12-28 2022-04-08 深圳市百富智能新技术有限公司 Data input method and device, double-chip sales terminal and storage medium
CN114489374A (en) * 2021-12-28 2022-05-13 深圳市百富智能新技术有限公司 Multi-point touch data input method and device, sales terminal and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296625A (en) * 2021-12-28 2022-04-08 深圳市百富智能新技术有限公司 Data input method and device, double-chip sales terminal and storage medium
CN114489374A (en) * 2021-12-28 2022-05-13 深圳市百富智能新技术有限公司 Multi-point touch data input method and device, sales terminal and storage medium
WO2023124419A1 (en) * 2021-12-28 2023-07-06 深圳市百富智能新技术有限公司 Data input method, apparatus, dual-chip sales terminal, and storage medium
WO2023124418A1 (en) * 2021-12-28 2023-07-06 深圳市百富智能新技术有限公司 Multi-touch data input method and apparatus, sales terminal, and storage medium
CN114296860A (en) * 2021-12-31 2022-04-08 飞天诚信科技股份有限公司 Method and apparatus for preventing processing of a secure processor from being interrupted
WO2023124589A1 (en) * 2021-12-31 2023-07-06 飞天诚信科技股份有限公司 Method and apparatus for preventing processing by security processor from being interrupted
CN114296860B (en) * 2021-12-31 2024-04-16 飞天诚信科技股份有限公司 Method and apparatus for preventing disruption of processing by a secure processor

Similar Documents

Publication Publication Date Title
CN113177238A (en) PIN input method and system based on double-chip sales terminal
CN107730196B (en) Project progress management method and terminal equipment
CN104598793A (en) Fingerprint authentication method and fingerprint authentication device
US20190340348A1 (en) Security verification method and device
EP3816909A1 (en) Payment processing method for offline scenario, server, and readable storage medium
CN108596588A (en) A kind of processing method of block data, device, computing device and storage medium
US8171546B2 (en) Keyboard security status check module and method
CN108665272A (en) Block chain data processing method, device, equipment and storage medium
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN106485803A (en) A kind of offline punch card method, terminal, server and system
CN108183889A (en) Identity identifying method and identification authentication system
CN109166199B (en) Password generation method, device and equipment
CN110659899A (en) Offline payment method, device and equipment
CN113282490A (en) Intelligent door lock testing method and electronic equipment
CN103020824A (en) Mobile payment method and device
CN105653054A (en) Code processing method and apparatus
CN111553668A (en) Big data-based cash withdrawal method and device, electronic equipment and medium
CN110728504A (en) Data processing method, device and equipment of block chain and readable storage medium
CN114285657B (en) Firewall security policy change verification method and device
KR20200010761A (en) System and method for generating security code or virtual account
CN114266659A (en) Account checking file full-flow processing method, device, equipment and medium
CN113704106A (en) Off-line detection system, method, equipment and medium for automobile digital key
CN112862497A (en) Information processing method and device
CN107231603B (en) Intelligent terminal and method for opening intelligent Bluetooth card online
CN105787735A (en) Payment processing method and device, and terminal

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