PIN input method and system based on dual-chip sales terminal

Through the PIN input method of the dual-chip sales terminal, the communication connection between the application chip AP and the security chip SP is used to monitor and process the function key signals, solving the problems of hardware complexity, high cost and low input efficiency in the prior art, and achieving a more efficient and secure PIN input process.

CN113177238BActive Publication Date: 2025-04-01NEW POS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011059279.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2025-04-01
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

The existing PIN input methods have problems with hardware structure complexity, high cost, long information delay and low input efficiency.

Method used

Using the PIN input method of a dual-chip sales terminal, the communication connection between the application chip AP and the security chip SP is monitored and sent to the security chip SP for processing, the PIN input in the secure keyboard mode is realized, and the digital key signal is fed back to the application layer when the PIN input is finished.

Benefits of technology

The delay and CPU load of the key signal are reduced, the number of communications between the two chips is reduced, and the security of information and input efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113177238B_ABST
    Figure CN113177238B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of sales terminal security technology, and provides a PIN input method based on a dual-chip sales terminal. The method is applied to an application chip, the application chip and the security chip are connected in communication, the application chip is connected to the function key, and the security chip is connected to the numeric key; including: when a PIN input request is detected, the security keyboard mode is entered, and the function key monitoring function is started, and the monitored function key signal is sent to the security chip, so that the security chip processes the numeric key signal according to the function key signal, and when the PIN input is detected to be completed, the security keyboard mode is exited and the normal mode is entered to feed back the numeric key signal and the function key signal to the application layer. By starting the monitoring function, when a key is pressed at one end, the key information can be immediately received at the other end, which reduces the delay of the key signal and the CPU load, while reducing the number of communications between the two chips, and improving the security of the information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of sales terminal security technology, and in particular, relates to a PIN input method and system based on a dual-chip sales terminal, a dual-chip sales terminal and a readable storage medium. Background Art

[0002] In the existing field of point of sale (POS) technology, there are two commonly used PIN input methods:

[0003] The first PIN input method is based on the traditional PIN input method of the point of sale (POS), which usually implements PIN input through physical keys, and the security chip processes the signals of all physical keys. This method cannot directly obtain the function key value through the AP chip.

[0004] The second PIN input method is based on a smart sales terminal (POS) and implements PIN input through a touch screen. The touch screen input signal is received by the application processing chip, and when the PIN input is detected, the touch screen input signal is sent to the security chip. The PIN data is processed by the security chip, and when the PIN input is detected, the touch screen input signal is sent to the application processing chip for processing. The hardware structure complexity and cost of this method are relatively high. Summary of the invention

[0005] The embodiments of the present application provide a PIN input method, system, dual-chip sales terminal and readable storage medium based on a dual-chip sales terminal, which can solve the problems of complex hardware structure, high cost or long information delay and low input efficiency of existing PIN input methods.

[0006] In a first aspect, an embodiment of the present 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 communicatively connected to a security chip SP, wherein the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key;

[0007] The method comprises:

[0008] When a PIN input request is detected, the secure keyboard mode is entered and the function key monitoring function is started;

[0009] Sending the monitored function key signal to the security chip SP so that the security chip SP processes the function key signal;

[0010] Sending an input status monitoring instruction to the security chip SP, and receiving the input status returned by the security chip SP;

[0011] When detecting that the input state is the PIN input end state, exiting the security keyboard mode, and receiving a digital key signal sent by the security chip SP;

[0012] Entering into the normal keyboard mode, the numeric key signal and the function key signal are fed back to the application program layer.

[0013] In a second aspect, an embodiment of the present 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 communicatively connected to an application chip AP, the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key;

[0014] The method comprises:

[0015] When receiving the PIN input command, enter the secure keyboard mode and start the numeric key monitoring function;

[0016] Receive the function key signal sent by the application chip AP, and process the monitored digital key signal according to the function key signal;

[0017] When the PIN input is detected to be finished, the secure keyboard mode is exited, and the digital key signal is sent to the application chip AP;

[0018] Entering into the common keyboard mode, the application chip AP feeds back the numeric key signal and the function key signal to the application program layer.

[0019] In a third aspect, an embodiment of the present 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 communicatively connected to a security chip SP, wherein the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key;

[0020] The system comprises:

[0021] A first detection module, configured to enter a secure keyboard mode and start a function key monitoring function when a PIN input request is detected;

[0022] A first sending module, used for sending the monitored function key signal to the security chip SP, so that the security chip SP processes according to the function key signal;

[0023] A second sending module, used for sending an input status monitoring instruction to the security chip SP, and receiving an input status returned by the security chip SP;

[0024] A second detection module is used to exit the security keyboard mode and receive a digital key signal sent by the security chip SP when detecting that the input state is a PIN input end state;

[0025] The first feedback module is used to enter the common keyboard mode and feed back the numeric key signal and the function key signal to the application layer.

[0026] In a fourth aspect, an embodiment of the present 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 communicatively connected to an application chip AP, the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key;

[0027] The system comprises:

[0028] The first receiving module is used to enter the security keyboard mode and start the numeric key monitoring function when receiving the PIN input command;

[0029] A second receiving module is used to receive the function key signal sent by the application chip AP, and process the monitored digital key signal according to the function key signal;

[0030] A third detection module is used to exit the security keyboard mode and send the digital key signal to the application chip AP when detecting that the PIN input is completed;

[0031] The second feedback module is used to enter the common keyboard mode so that the application chip AP feeds back the numeric key signal and the function key signal to the application program layer.

[0032] In the fifth aspect, an embodiment of the present application provides a dual-chip sales terminal, including a security chip, an application chip, and a computer program stored on the security chip or the application chip and executable on the security chip or the application chip, characterized in that when the application chip executes the computer program, the method described in the first aspect above is implemented, and when the security chip executes the computer program, the method described in the second aspect above is implemented.

[0033] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the PIN input method based on the dual-chip sales terminal as described in the first aspect or the second aspect above is implemented.

[0034] In a seventh aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the PIN input method based on a dual-chip sales terminal as described in the first or second aspect above.

[0035] By connecting the application chip AP to the security chip SP, connecting the application chip AP to the function keys, connecting the security chip SP to the numeric keys, and starting the monitoring function, when a key is pressed at one end, the other end can immediately receive the key information, reducing the key signal delay and CPU load, while reducing the number of communications between the two chips and improving information security.

[0036] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 It is a flowchart of a PIN input method based on a dual-chip sales terminal provided in an embodiment of the present application;

[0039] Figure 2 It is a flowchart of a PIN input method based on a dual-chip sales terminal provided in an embodiment of the present application;

[0040] Figure 3 It is a structural diagram of a PIN input system based on a dual-chip sales terminal provided in an embodiment of the present application;

[0041] Figure 4 It is a structural diagram of a PIN input system based on a dual-chip sales terminal provided in an embodiment of the present application;

[0042] Figure 5 It is a structural schematic diagram of a dual-chip sales terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0044] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0045] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0046] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0047] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0048] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0049] The PIN input method based on the dual-chip sales terminal provided in the embodiment of the present application can be applied to terminal devices such as dual-chip sales terminals. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices.

[0050] Embodiment 1

[0051] Figure 1A schematic flowchart of a PIN input method based on a dual-chip sales terminal provided in the present application is shown. As an example but not a limitation, the method can be applied to an application chip AP, the application chip AP and the security chip SP are communicatively connected, the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key.

[0052] S101. When a PIN input request is detected, enter a secure keyboard mode and start a function key monitoring function.

[0053] In a specific application, when the application processor (AP) detects a PIN (Personal Identification Number) input request, it enters the secure keyboard mode and starts the function key monitoring mode. The function key monitoring function refers to the function of sending the monitored function key signal to the security processor (SP) in real time during the PIN input process. The secure keyboard mode refers to a mode in which key information is processed inside the security chip so that the user cannot obtain the key information. The PIN input request can be a request to start PIN input sent by other terminal devices, or it can be an input request generated by the user opening the PIN input keyboard by pressing a key. The communication between the application chip AP and the security chip SP can be achieved through high-speed serial communication.

[0054] S102: Send the monitored function key signal to the security chip SP, so that the security chip SP processes according to the function key signal.

[0055] In specific applications, after entering the secure 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 digital key signals monitored by the security chip SP according to the function key signals, so that all key information is processed only in the security chip, thereby improving the security of information. Among them, the digital key signals include 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9; the function key signals refer to non-digital key signals, including but not limited to the power key, the confirmation key and the cancel key.

[0056] S103: Send an input status monitoring instruction to the security chip SP, and receive the input status returned by the security chip SP.

[0057] In a specific application, the input state refers to the PIN input state of the security chip SP, which includes but is not limited to the inputting state and the PIN input ending state. To determine the PIN input state of the security chip SP, an input state monitoring instruction is generated and sent to the security chip SP, so that the security chip SP can feedback the input state according to the PIN input state monitoring instruction, and then receive the input state fed back by the security chip SP in real time, and at the same time, display the above input state on the display screen; it can be understood that when the security chip SP receives the PIN input command, the PIN input state of the security chip SP is updated to the inputting state.

[0058] S104: When it is detected that the input state is the PIN input end state, exit the security keyboard mode and receive a digital key signal sent by the security chip SP.

[0059] In a specific application, when it is detected that the input state sent by the security chip SP is the PIN input end state, the security keyboard mode is exited, and a digital key signal sent by the security chip SP is received.

[0060] In this embodiment, the digital key signal received from the security chip SP is a digital key signal encrypted by a preset PIN key. After receiving the encrypted digital key signal, the encrypted digital key signal is decrypted by the master key and then verified. After the verification passes, the PIN key is stored in a dedicated key protection chip, that is, SE.

[0061] Step S105, entering the normal keyboard mode, and feeding back the numeric key signal and the function key signal to the application layer.

[0062] In a specific application, after exiting the secure keyboard mode, the normal keyboard mode is entered, and the received numeric key signals and function key signals are fed back to the application layer. The normal keyboard mode refers to a mode in which key information is processed inside the application chip AP so that the user can obtain key information through the application layer.

[0063] In one embodiment, after step S101, the method further includes:

[0064] A PIN input command is generated and sent to the security chip SP, so that the security chip SP enters the security keyboard mode.

[0065] In a specific application, after entering the secure keyboard mode, a PIN input command should be generated and sent to the security chip SP to enable the security chip SP to enter the secure keyboard mode. The PIN input command refers to a command used to control the security chip SP to enter the secure keyboard mode and receive a PIN input signal. The PIN input signal includes but is not limited to a numeric key signal and a function key signal.

[0066] In one embodiment, step S105 includes:

[0067] Enter the normal keyboard mode, send a numeric key monitoring command to the security chip SP, and receive the numeric key signal sent by the security chip SP;

[0068] The function key signal and the digital key signal are processed, and the processed function key signal and the digital key signal are fed back to the application layer.

[0069] In specific applications, in normal keyboard mode, the application chip AP generates a digital key monitoring command and sends it to the security chip SP. After receiving the digital key monitoring command, the security chip SP will immediately report the digital key signal to the application chip AP once it monitors the digital key signal. After receiving the digital key signal, the application chip AP generates a digital key monitoring command again and sends it to the security chip SP to facilitate receiving the next digital key signal. The received digital key signal and the monitored function key signal are processed, and when the application layer sends a signal acquisition command, the processed function key signal and digital key signal are fed back to the application layer.

[0070] The processing of the received digital key signal and the monitored function key signal is specifically as follows: the received digital key signal is processed according to the monitored function key signal. For example, when the function key signal is detected as a cancel key, all digital key signals monitored at the current moment are cleared; when the function key signal is detected as a clear key signal, the last digital key signal received at the current moment is cleared.

[0071] By connecting the application chip AP to the security chip SP, connecting the application chip AP to the function keys, connecting the security chip SP to the numeric keys, and starting the monitoring function, when a key is pressed at one end, the other end can immediately receive the key information, reducing the key signal delay and CPU load, while reducing the number of communications between the two chips and improving information security.

[0072] Embodiment 2

[0073] Figure 2 A schematic flow chart of another PIN input method based on a dual-chip sales terminal provided by the present application is shown. As an example but not a limitation, the method can be applied to a security chip SP, the security chip SP is communicatively connected to an application chip AP, the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key;

[0074] The method comprises:

[0075] S201. When a PIN input command is received, enter the secure keyboard mode and start the numeric key monitoring function.

[0076] In a specific application, when a PIN input command is received from an application processor (AP), the secure keyboard mode is entered and the digital key monitoring function is started. At this time, the PIN input state is updated to the inputting state. The number of digital key signals monitored is calculated, and the number of digital key signals monitored is sent to the application chip AP in real time. The PIN input command refers to a command generated and sent by the application chip AP to control the security chip (Security processor, SP) to enter the secure keyboard mode and receive the PIN input signal. The digital key monitoring function refers to the function of monitoring the digital key signals generated by the user by pressing the data key during the PIN input process. The secure keyboard mode refers to a mode in which key information is processed inside the security chip SP so that the user cannot obtain the key information.

[0077] In one embodiment, after S202, the method further includes:

[0078] When receiving the input status monitoring instruction sent by the application chip AP, sending the input status to the application chip AP;

[0079] When an input status update is detected, the updated input status is sent to the application chip AP.

[0080] In specific applications, the input state refers to the PIN input state of the security chip SP, which includes but is not limited to the input state and the PIN input end state. When receiving the input state monitoring instruction sent by the application chip AP, the current PIN input state is sent to the application chip AP, and when the input state update is detected, the updated input state is sent to the application chip AP; the PIN input state monitoring instruction refers to the instruction generated and sent by the application chip AP to control the security chip SP to feedback the PIN input state.

[0081] S202: Receive a function key signal sent by the application chip AP, and process the monitored digital key signal according to the function key signal.

[0082] In a specific application, a function key signal sent by the application chip AP is received, and the monitored digital key signal is processed accordingly according to the function key signal.

[0083] S203: When the PIN input is detected to be finished, exit the security keyboard mode and send the digital key signal to the application chip AP.

[0084] In a specific application, when the end of PIN input is detected, the digital key signal is processed, the security keyboard mode is exited, and the processed digital key signal is sent to the application chip AP, and the PIN input state is updated to the PIN input end state.

[0085] S204: Entering a normal keyboard mode, so that the application chip AP feeds back the numeric key signal and the function key signal to the application program layer.

[0086] In a specific application, after exiting the secure keyboard mode, the normal keyboard mode is entered so that the application chip AP feeds back the function key signal and the numeric key signal to the user terminal. The normal keyboard mode refers to a mode in which key information is processed inside the application chip AP so that the user can obtain the key information through the application layer.

[0087] In one embodiment, the step S203 includes:

[0088] When it is detected that the function key signal is a confirmation key signal and the number of monitored digital key signals reaches a preset value, it is determined that the PIN input is completed and the input state is updated to the PIN input completion state;

[0089] The monitored digital key signal is encrypted according to the preset PIN key, the secure keyboard mode is exited, and the encrypted digital key signal is sent to the application chip AP.

[0090] In a specific application, when it is detected that the function key signal sent by the application chip AP is a confirmation key signal and the number of digital key signals that have been monitored at the current moment reaches a preset value, it is determined that the PIN input is completed and the PIN input state is updated to the PIN input end state. At this time, the updated PIN input state needs to be sent to the application chip AP; wherein the preset value can be specifically set according to the actual situation. Generally, the preset value is set to 6 digits. The number of digital key signals is the number of digital key signals that the security chip SP has monitored at the current moment calculated by the security chip SP.

[0091] In specific applications, after the input state is updated to the PIN input end state, the monitored digital key signal needs to be encrypted by the preset PIN key, the secure keyboard mode is exited, and the encrypted digital key signal is sent to the application chip AP. Among them, the PIN key (Terminal PIN encryption Key, TPK) is the key used to calculate the encrypted PIN. The PIN key can be set according to the actual situation. In specific applications, the PIN key needs to be changed regularly, usually once a day.

[0092] In one embodiment, the method further comprises:

[0093] When the PIN input command is received, the timing function is started, the timing duration is obtained and sent to the application chip AP.

[0094] In a specific application, upon receiving a PIN input command, the secure keyboard mode is entered, and the timing function is started at the same time to obtain the timing duration of the PIN input, and the obtained timing duration of the PIN input is returned to the application chip AP, so that the application chip AP displays the above timing duration. Among them, the preset PIN input duration can be specifically set according to user needs, for example, set to 60s.

[0095] In one embodiment, the step S203 further includes:

[0096] When it is detected that the function key signal is a cancel key or it is detected that the timing duration reaches the preset PIN input duration, it is determined that the PIN input is completed, the input state is updated to the PIN input completion state, and the security keyboard mode is exited.

[0097] In a specific application, when it is detected that the function key signal sent by the application chip AP is a cancel key, all digital key signals that have been monitored at the current moment are cleared, the PIN input is determined to be completed, and the input state is updated to the PIN input completion state. Alternatively, it is determined in real time whether the timing duration reaches the preset PIN input duration, and when it is detected that the timing duration reaches the preset PIN input duration, the PIN input is determined to be completed, and the input state is updated to the PIN input completion state.

[0098] Among them, the preset PIN input time can be specifically set according to user needs. For example, it is set to 60s. When the timing time is detected to be 60s, the PIN input is determined to be completed and the input state is updated to the PIN input completion state.

[0099] In one embodiment, step S202 includes:

[0100] A function key signal sent by the application chip AP is received, and when it is detected that the function key signal is a clear key signal, digital key signals satisfying a preset condition among all monitored digital key signals are cleared.

[0101] In a specific application, the preset condition is set to select the condition of the digital key signal with the smallest time interval between the monitoring time and the current moment among the monitored digital key signals. That is, when it is detected that the function key signal is a clear key signal, the digital key signal with the smallest time interval between the monitored digital key signals and the current moment is deleted, and the remaining digital key signals are saved; for example, if the monitored digital key signal is 123456, then "6" is the last digital key signal among the monitored function key signals (that is, the interval between the time when "6" is monitored and the current moment is the smallest), therefore, "6" is deleted, and the monitored digital key signal "12345" is saved.

[0102] In one embodiment, the step S204 includes:

[0103] Entering the normal keyboard mode, upon receiving the 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 the application program layer.

[0104] In a specific application, after exiting the secure keyboard mode, entering the normal keyboard mode, upon receiving the digital key monitoring command 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 the digital key signal back to the application layer. Among them, the digital key monitoring command is generated and sent by the application chip AP, and is used to control the security chip SP to send the monitored digital keys to the application chip AP.

[0105] By connecting the application chip AP to the security chip SP, connecting the application chip AP to the function keys, connecting the security chip SP to the numeric keys, and starting the monitoring function, when a key is pressed at one end, the other end can immediately receive the key information, reducing the key signal delay and CPU load, while reducing the number of communications between the two chips and improving information security.

[0106] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0107] Embodiment 3

[0108] Corresponding to the PIN input method based on the dual-chip sales terminal described in the first embodiment above, Figure 3 The structural block diagram of the PIN input system based on the dual-chip sales terminal provided in the embodiment of the present application is shown. The PIN input system based on the dual-chip sales terminal is applied to the application chip AP, the application chip AP and the security chip SP are communicatively connected, the application chip AP is connected to the function key, and the security chip SP is connected to the numeric key;

[0109] The PIN input system 100 based on the dual-chip sales terminal includes:

[0110] The first detection module 101 is used to enter the security keyboard mode and start the function key monitoring function when a PIN input request is detected;

[0111] A first sending module 102, configured to send the monitored function key signal to the security chip SP, so that the security chip SP processes the function key signal;

[0112] The second sending module 103 is used to send an input status monitoring instruction to the security chip SP and receive the input status returned by the security chip SP;

[0113] The second detection module 104 is used to exit the security keyboard mode and receive a digital key signal sent by the security chip SP when detecting that the input state is the PIN input end state;

[0114] The first feedback module 105 is used to enter the common keyboard mode and feed back the numeric key signal and the function key signal to the application layer.

[0115] In one embodiment, the PIN input system 100 based on a dual-chip sales terminal further includes:

[0116] The first generating module is used to generate a PIN input command and send the command to the security chip SP, so that the security chip SP enters the security keyboard mode.

[0117] In one embodiment, the first feedback module 105 further includes:

[0118] A first sending unit, used to enter the normal keyboard mode, send a digital key monitoring instruction to the security chip SP, and receive a digital key signal sent by the security chip SP;

[0119] The first feedback unit is used to process the function key signal and the digital key signal, and feed back the processed function key signal and the digital key signal to the application layer.

[0120] By connecting the application chip AP to the security chip SP, connecting the application chip AP to the function keys, connecting the security chip SP to the numeric keys, and starting the monitoring function, when a key is pressed at one end, the other end can immediately receive the key information, reducing the key signal delay and CPU load, while reducing the number of communications between the two chips and improving information security.

[0121] Embodiment 4

[0122] Corresponding to the PIN input method based on the dual-chip sales terminal described in the second embodiment above, Figure 4 The structural block diagram of the PIN input system based on the dual-chip sales terminal provided in the embodiment of the present application is shown. The PIN input system based on the dual-chip sales terminal 200 is applied to the security chip, the security chip SP and the application chip AP are communicatively connected, the application chip AP is connected to the function key, and the security chip SP is connected to the numeric key;

[0123] The PIN input system 200 based on the dual-chip sales terminal includes:

[0124] The first receiving module 201 is used to enter the security keyboard mode and start the numeric key monitoring function when receiving the PIN input command;

[0125] The second receiving module 202 is used to receive the function key signal sent by the application chip AP, and process the monitored digital key signal according to the function key signal;

[0126] The third detection module 203 is used to exit the security keyboard mode and send the digital key signal to the application chip AP when the PIN input is detected to be finished;

[0127] The second feedback module 204 is used to enter the common keyboard mode so that the application chip AP feeds back the numeric key signal and the function key signal to the application program layer.

[0128] In one embodiment, the third detection module 203 includes:

[0129] A first updating unit is used to determine that the PIN input is finished and update the input state to the PIN input finished state when it is detected that the function key signal is a confirmation key signal and the number of monitored digital key signals reaches a preset value;

[0130] The encryption unit is used to encrypt the monitored digital key signal according to a preset PIN key, exit the security keyboard mode, and send the encrypted digital key signal to the application chip AP.

[0131] In one embodiment, the third detection module 203 further includes:

[0132] The second updating unit is used to determine that the PIN input is finished, update the input state to the PIN input end state, and exit the security keyboard mode when it is detected that the function key signal is a cancel key or the timing duration reaches a preset PIN input duration.

[0133] In one embodiment, the PIN input system 200 based on a dual-chip sales terminal further includes:

[0134] A third receiving module is used to send the input status to the application chip AP when receiving the input status monitoring instruction sent by the application chip AP;

[0135] The third sending module is used to send the updated input state to the application chip AP when detecting that the input state is updated.

[0136] In one embodiment, the second feedback module 204 includes:

[0137] The second feedback unit is used to enter the normal keyboard mode, and when receiving the 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 the application program layer.

[0138] In one embodiment, the second receiving module 202 includes:

[0139] The clearing module is used to receive the function key signal sent by the application chip AP, and when it is detected that the function key signal is a clear key signal, clear the digital key signals that meet the preset conditions among all the monitored digital key signals.

[0140] By connecting the application chip AP to the security chip SP, connecting the application chip AP to the function keys, connecting the security chip SP to the numeric keys, and starting the monitoring function, when a key is pressed at one end, the other end can immediately receive the key information, reducing the key signal delay and CPU load, while reducing the number of communications between the two chips and improving information security.

[0141] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0142] Figure 5 This is a schematic diagram of the structure of a dual-chip point of sale (POS) terminal provided in one embodiment of the present application. Figure 5 As shown, the dual-chip sales terminal 5 of this embodiment includes: a security chip 50, an application chip 51, a computer program 52 stored and executable on the security chip 50, and a computer program 53 stored and executable on the application chip 51. When the application chip 51 executes the computer program 53, the steps of the PIN input method based on the dual-chip sales terminal in the above-mentioned embodiment 1 are implemented. When the security chip 50 executes the computer program 52, the steps of the PIN input method based on the dual-chip sales terminal in the above-mentioned embodiment 2 are implemented.

[0143] The dual-chip sales terminal 5 can be a sales terminal or other equipment. The dual-chip sales terminal can include, but is not limited to, a security chip 50 and an application chip 51. Those skilled in the art will appreciate that Figure 5 It is only an example of the dual-chip sales terminal 5 and does not constitute a limitation on the dual-chip sales terminal 5. It can include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it can also include input and output devices, network access devices, etc.

[0144] The so-called security chip 50 may be a security processor (SP); the so-called application chip 51 may be an application processor (AP).

[0145] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0146] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0147] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / dual-chip sales terminal, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0149] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0150] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0151] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A PIN input method based on a dual-chip sales terminal, characterized in that: Applied to application chip AP, the application chip AP is connected to the security chip SP in communication, the application chip AP is connected to the function keys, the security chip SP is connected to the numeric keys, the function keys include confirm, cancel, function, clear, flip up, flip down, the numeric keys refer to 0-9, a total of 10 numeric keys; The method comprises: When a PIN input request is detected, the secure keyboard mode is entered and the function key monitoring function is started; Sending the monitored function key signal to the security chip SP so that the security chip SP processes the function key signal; Sending an input status monitoring instruction to the security chip SP, and receiving the input status returned by the security chip SP; When detecting that the input state is the PIN input end state, exiting the security keyboard mode, and receiving a digital key signal sent by the security chip SP; Entering into the normal keyboard mode, feeding back the numeric key signal and the function key signal to the application layer; The step of entering the normal keyboard mode and feeding back the numeric key signal and the function key signal to the application layer includes: Enter the normal keyboard mode, send a numeric key monitoring command to the security chip SP, and receive the numeric key signal sent by the security chip SP; The function key signal and the digital key signal are processed, and the processed function key signal and the digital key signal are fed back to the application layer.

2. The PIN input method based on the dual-chip sales terminal according to claim 1, characterized in that: When a PIN input request is detected, the secure keyboard mode is entered and the function key monitoring function is started, and the following is also included: A PIN input command is generated and sent to the security chip SP, so that the security chip SP enters the security keyboard mode.

3. A PIN input method based on a dual-chip sales terminal, characterized in that: Applied to a security chip, the security chip SP is connected to an application chip AP for communication, the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key; The method comprises: When receiving the PIN input command, enter the secure keyboard mode and start the numeric key monitoring function; Receive the function key signal sent by the application chip AP, and process the monitored digital key signal according to the function key signal; When the PIN input is detected to be finished, the secure keyboard mode is exited, and the digital key signal is sent to the application chip AP; Entering into a normal keyboard mode, so that the application chip AP feeds back the numeric key signal and the function key signal to the application program layer; The step of entering the normal keyboard mode so that the application chip AP feeds back the numeric key signal and the function key signal to the application program layer includes: Entering the normal keyboard mode, when receiving the digital key monitoring command sent by the application chip AP, the monitored digital key signal is sent to the application chip AP, so that the application chip AP processes the function key signal and the digital key signal, and feeds back the processed function key signal and the digital key signal to the application layer.

4. The PIN input method based on the dual-chip sales terminal as claimed in claim 3, characterized in that: The step of exiting the secure keyboard mode upon detecting that the PIN input is completed comprises: When it is detected that the function key signal is a confirmation key signal and the number of monitored digital key signals reaches a preset value, it is determined that the PIN input is completed and the input state is updated to the PIN input completion state; The monitored digital key signal is encrypted according to the preset PIN key, the secure keyboard mode is exited, and the encrypted digital key signal is sent to the application chip AP.

5. The PIN input method based on the dual-chip sales terminal as claimed in claim 3, characterized in that: The step of exiting the secure keyboard mode upon detecting that the PIN input is completed further comprises: When it is detected that the function key signal is a cancel key or it is detected that the timing duration reaches the preset PIN input duration, it is determined that the PIN input is completed, the input state is updated to the PIN input completion state, and the security keyboard mode is exited.

6. The PIN input method based on the dual-chip sales terminal as claimed in claim 3, characterized in that: After receiving the function key signal sent by the application chip AP and processing the monitored digital key signal according to the function key signal, it also includes: When receiving the input status monitoring instruction sent by the application chip AP, sending the input status to the application chip AP; When an input status update is detected, the updated input status is sent to the application chip AP.

7. The PIN input method based on a dual-chip sales terminal as claimed in claim 3, characterized in that: The receiving the function key signal sent by the application chip AP and processing according to the function key signal includes: A function key signal sent by the application chip AP is received, and when it is detected that the function key signal is a clear key signal, digital key signals satisfying a preset condition among all monitored digital key signals are cleared.

8. A PIN input system based on a dual-chip sales terminal, characterized in that: Applied to an application chip AP, the application chip AP is communicatively connected to a security chip SP, the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key; The system comprises: A first detection module, configured to enter a secure keyboard mode and start a function key monitoring function when a PIN input request is detected; A first sending module, used for sending the monitored function key signal to the security chip SP, so that the security chip SP processes according to the function key signal; A second sending module, used for sending an input status monitoring instruction to the security chip SP, and receiving an input status returned by the security chip SP; A second detection module is used to exit the security keyboard mode and receive a digital key signal sent by the security chip SP when detecting that the input state is a PIN input end state; A first feedback module, used for entering a normal keyboard mode, and feeding back the numeric key signal and the function key signal to an application layer; Among them, the first feedback module is specifically used to enter the normal keyboard mode, send a digital key monitoring instruction to the security chip SP, receive the digital key signal sent by the security chip SP; process the function key signal and the digital key signal, and feed back the processed function key signal and the digital key signal to the application layer.

9. A PIN input system based on a dual-chip sales terminal, characterized in that: Applied to a security chip, the security chip SP is connected to an application chip AP for communication, the application chip AP is connected to a function key, and the security chip SP is connected to a numeric key; The system comprises: The first receiving module is used to enter the security keyboard mode and start the numeric key monitoring function when receiving the PIN input command; A second receiving module is used to receive the function key signal sent by the application chip AP, and process the monitored digital key signal according to the function key signal; A third detection module is used to exit the security keyboard mode and send the digital key signal to the application chip AP when detecting that the PIN input is completed; A second feedback module, used for entering a normal keyboard mode, so that the application chip AP feeds back the numeric key signal and the function key signal to the application program layer; The second feedback module is specifically used to: enter the normal keyboard mode, and when receiving the digital key monitoring instruction sent by the application chip AP, send the monitored digital key signal to the application chip AP, so that the application chip AP processes the function key signal and the digital key signal, and feeds back the processed function key signal and the digital key signal to the application layer.

10. A dual-chip sales terminal, comprising a security chip, an application chip, and a computer program stored in the security chip and the application chip and operable on the security chip or the application chip, characterized in that: When the application chip executes the computer program, the method according to any one of claims 1 to 2 is implemented; when the security chip executes the computer program, the method according to any one of claims 3 to 7 is implemented.

Citation Information

Patent Citations

  • Information security middleware and use method

    CN101540738A

  • Android system-based intelligent POS security system, starting method and data management control method

    CN105957276A