A method and device for implementing input for the blind
By using sound prompts and state machine mechanisms in POS devices, the problem of insufficient tactile feedback and safety for blind and partially sighted people when inputting on the touch screen is solved, and the safety, reliability and privacy protection of blind input are achieved.
Patent Information
- Application Number
- CN202410924463.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Blind and visually impaired people lack tactile feedback when using touch screens for input, making it difficult to know the input status. Especially when confidentiality is required, the existing technology through voice feedback is not enough to meet security needs.
By implementing an input method and device for blind people in POS equipment, using sound prompts and state machine mechanisms, users can perform input operations through different sound prompts, including long press, lift, press, double-click and other operations, and determine the key type and record it. Coordinate data to ensure the safe input of information such as PIN codes.
It realizes safe and reliable input for blind and partially sighted people, protects user privacy, and prompts different operations through sound, making it convenient to use and ensuring the accuracy and privacy of input operations.
Smart Images

Figure CN118466893B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic equipment, and in particular to a method and device for implementing input for the blind. Background Art
[0002] With the development and progress of science and technology, more and more physical buttons on terminal devices (such as POS devices) are replaced by "soft" buttons (i.e., soft keyboards) on touch screens. However, the input process after the replacement has brought difficulties to some users, including the lack of tactile buttons and the lack of feedback when pressing buttons. For example, for the blind and the visually impaired, they cannot navigate on the touch screen like using a physical keyboard, and cannot know whether the input is completed. Although these problems can be fed back to the blind and the visually impaired through voice feedback, some private occasions and information that needs to be kept confidential are not suitable for voice reminders, such as the process of entering a password. Therefore, there is an urgent need to provide a safe and reliable input method suitable for the blind. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method and device for implementing input for the blind.
[0004] In a first aspect, an embodiment of the present invention provides a method for implementing input for a blind person, comprising:
[0005] Step S1: When the POS device receives the blind input method selected by the merchant, it prompts the blind user to perform input operations through sound;
[0006] Step S2: the state of the POS device initialization state machine is moving, and when a long press operation is detected, step S3 is executed;
[0007] Step S3: The POS device determines the state of the state machine, and if it is moving, executes step S4; if it is lifted, executes step S5; if it is pressed, executes step S8;
[0008] Step S4: the POS device sets the state of the state machine to raised, and returns to step S3;
[0009] Step S5: The POS device determines whether the user operation is lifting, if yes, sets the state of the state machine to pressing, and returns to step S3, otherwise, executes step S6;
[0010] Step S6: The POS device determines whether the user operation is within the blind keyboard area, if yes, then executes step S7; otherwise, it prompts through a sound that the current operation is outside the blind keyboard area, and then returns to step S3;
[0011] Step S7: the POS device determines the type of key touched by the user. If it is a confirmation key, a sound prompt is given to indicate that the key is currently being touched, the coordinate data of the position touched by the user is recorded, and the process returns to step S3. If it is a cancel key, a sound prompt is given to indicate that the key is currently being touched, the coordinate data of the position touched by the user is recorded, and the process returns to step S3. If it is a character key, a prompt sound prompt is given to indicate that the current operation is in the character area of the blind keyboard, the coordinate data of the position touched by the user is recorded, and the process returns to step S3.
[0012] Step S8: The POS device determines whether the user operation is a double click, if yes, sets the state of the state machine to move, and executes step S9, otherwise returns to step S3;
[0013] Step S9: The POS device determines the key type corresponding to the recorded coordinate data according to the coordinate range of the keys on the blind keyboard. If it is a confirmation key, it determines whether the length of the data in the password storage area meets the requirement. If it is, the input operation is completed through a sound prompt and the process ends. If it is a cancel key, the input operation is canceled through a sound prompt, the data in the password storage area is cleared and the process ends. If it is a character key, the character key value is saved in the password storage area and the serial number of the character key value in the password storage area is prompted through a sound prompt, and the process returns to step S3.
[0014] In a second aspect, an embodiment of the present invention provides a device for implementing input for a blind person, including:
[0015] A receiving prompt module, used to prompt the blind user to perform input operation through sound when receiving the blind input method selected by the merchant;
[0016] An initialization detection module, used to initialize the state of the state machine to moving, and also used to trigger the first judgment module when a long press operation is detected;
[0017] The first judgment module is used to judge the state of the state machine, and if it is moving, the first setting module is triggered; if it is lifted, the first judgment setting module is triggered; if it is pressed, the second judgment setting module is triggered;
[0018] The first setting module is used to set the state of the state machine to be lifted, triggering the first judgment module;
[0019] The first judgment setting module is used to judge whether the user operation is lifting, and if so, set the state of the state machine to pressing to trigger the first judgment module, otherwise, trigger the first judgment prompt module;
[0020] The first judgment prompting module is used to judge whether the user operation is within the blind keyboard area, and if so, trigger the second judgment prompting module; otherwise, a sound prompt is given that the current operation is outside the blind keyboard area, and the first judgment module is triggered;
[0021] The second judgment prompt module is used to judge the type of the key touched by the user. If it is a confirmation key, it prompts through sound that the confirmation key is currently being touched, records the coordinate data of the user's touch position, and triggers the first judgment module. If it is a cancel key, it prompts through sound that the cancel key is currently being touched, records the coordinate data of the user's touch position, and triggers the first judgment module. If it is a character key, it prompts through sound that the current operation is in the character area of the blind keyboard, records the coordinate data of the user's touch position, and triggers the first judgment module.
[0022] The second judgment setting module is used to judge whether the user operation is a double click, and if so, set the state of the state machine to move to trigger the judgment processing module, otherwise, trigger the first judgment module;
[0023] The judgment processing module is used to judge the key type corresponding to the recorded coordinate data according to the coordinate range of the keys on the blind keyboard. If it is a confirmation key, it is used to judge whether the length of the data in the password storage area meets the requirements. If it is, the input operation is completed through a sound prompt and the end is completed. If it is a cancel key, the input operation is canceled through a sound prompt, the data in the password storage area is cleared and the end is completed. If it is a character key, the character key value is saved in the password storage area and the serial number of the character key value in the password storage area is prompted by a sound to trigger the first judgment module.
[0024] In a third aspect, an embodiment of the present invention further provides a POS device, comprising at least one processor, a memory, and instructions stored in the memory and executable by the at least one processor, wherein the at least one processor executes the instructions to implement the aforementioned blind input implementation method.
[0025] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a computer program. When the computer program is executed on a POS device, the POS device executes the aforementioned method for implementing blind input.
[0026] In a fifth aspect, an embodiment of the present invention further provides a chip system, including a chip, wherein the chip is coupled to a memory and is used to execute a computer program stored in the memory to execute the aforementioned blind input implementation method.
[0027] Compared with the prior art, the present invention has the following advantages: the scheme of the present invention is suitable for the blind and the visually impaired, prompts different operations through different sounds, realizes the safe input of information such as PIN codes, protects user privacy, and is convenient to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A flow chart of a method for implementing input for the blind provided in Embodiment 1 of the present invention;
[0029] Figure 2 A schematic diagram of an interrupt processing flow in a method for implementing input for the blind provided in Embodiment 2 of the present invention;
[0030] Figure 3 A schematic diagram of a flow chart of setting an event flag in a method for implementing blind input provided in Embodiment 2 of the present invention;
[0031] Figures 4 to 6 A schematic diagram of the main process of a method for implementing input for the blind provided in Embodiment 2 of the present invention;
[0032] Figure 7 This is a schematic diagram of a keyboard for the blind on a POS device in Embodiment 2 of the present invention;
[0033] Figure 8 This is a block diagram of a device for implementing input for the blind provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0034] The present application proposes a method and device for implementing input for the blind. The specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. Examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0035] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0036] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0037] Embodiment 1
[0038] Embodiment 1 of the present invention provides a method for implementing input for the blind. Figure 1 As shown, including:
[0039] Step S1: When the POS device receives the blind input method selected by the merchant, it prompts the blind user to input the PIN code through sound;
[0040] In this embodiment, the POS device includes an application chip, a security chip and a touch chip, and step S1 includes:
[0041] Step S11: When the application chip receives the blind input mode selected by the merchant, it sends a blind mode instruction including the coordinate range of the keys on the blind keyboard to the security chip;
[0042] Optionally, before step S11, the method further includes: when the POS device receives a request from the merchant to start an application and needs to input information, prompting the merchant to select an input method, if the blind input method is selected, executing step S11, otherwise entering a normal input process;
[0043] Step S12: The security chip receives and parses the blind mode instruction, saves the coordinate range of the keys on the blind keyboard obtained by the parsing, and controls the switching circuit to switch the control mode of the input data of the touch chip from the application chip to the security chip;
[0044] Step S13: The security chip prompts the blind user to perform input operations through the application chip sound.
[0045] Optionally, between step S1 and step S2 in this embodiment, the following steps are further included: setting a timeout period;
[0046] Step S2: The POS device initializes the state of the state machine to moving, and executes step S3 when a long press operation is detected;
[0047] Specifically, in this embodiment, step S2 includes: the state of the POS device initialization state machine is moving, and when the event flag is detected to be sliding, step S3 is executed;
[0048] Optionally, when it is detected that the event flag is not sliding, the POS device further includes: determining whether the waiting time is greater than the timeout time, and reporting an error if it is, otherwise continuing to detect whether the event flag is sliding;
[0049] Step S3: The POS device determines the state of the state machine. If it is moving, it executes step S4; if it is lifted, it executes step S5; if it is pressed, it executes step S8;
[0050] Step S4: The POS device sets the state of the state machine to raised, and returns to step S3;
[0051] Step S5: The POS device determines whether the user operation is lifting, if yes, sets the state of the state machine to pressing, and returns to step S3, otherwise, executes step S6;
[0052] Specifically, in this embodiment, step S5 includes: the POS device determines whether the event flag is lifted, if yes, sets the state of the state machine to pressed, and returns to step S3, otherwise returns to step S6;
[0053] Step S6: The POS device determines whether the user's sliding operation is within the blind keyboard area. If yes, the POS device executes step S7. Otherwise, the POS device prompts the user that the current operation is outside the blind keyboard area through a sound, and the POS device returns to step S3.
[0054] Specifically, in this embodiment, step S6 includes:
[0055] Step S61: The POS device reads the coordinate data in the register and determines whether the read coordinate data is within the coordinate range of the key on the blind keyboard. If yes, execute step S7; otherwise, execute step S62;
[0056] Step S62: The POS device determines whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the stored coordinate data. If yes, the POS device returns to step S3; otherwise, the POS device executes step S63.
[0057] Step S63: The POS device prompts through sound that the current operation is outside the blind keyboard area, and returns to step S3;
[0058] Step S7: The POS device determines the type of key touched by the user. If it is a confirmation key, it prompts through sound that the confirmation key is currently being touched, records the coordinate data of the user's touch position, and returns to step S3. If it is a cancel key, it prompts through sound that the cancel key is currently being touched, records the coordinate data of the user's touch position, and returns to step S3. If it is a character key, it prompts through sound that the current operation is in the character area of the blind keyboard, records the coordinate data of the user's touch position, and returns to step S3.
[0059] Optionally, the POS device in step S7 of this embodiment determines the type of key touched by the user during sliding, including: the POS device determines whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the saved coordinate data, and if so, returns to step S3; otherwise, determines the type of the key value corresponding to the read coordinate data according to the coordinate range of the key on the blind keyboard;
[0060] The coordinate data of the user's touch position is recorded, specifically: updating the stored coordinate data with the read coordinate data;
[0061] Step S8: The POS device determines whether the user operation is a double click, if yes, sets the state of the state machine to move and executes step S9, otherwise returns to step S3;
[0062] Specifically, in this embodiment, step S8 includes:
[0063] Step S81: The POS device determines whether the event flag is pressed, if yes, executes step S82, otherwise returns to step S3;
[0064] Optionally, before returning to step S3 after step S81 in this embodiment determines that the waiting time is greater than the timeout time, the POS device reports an error if the waiting time is greater than the timeout time, otherwise returns to step S3;
[0065] Step S82: The POS device determines whether the event flag is a press followed by a lift, if yes, then executes step S83, otherwise, returns to step S3;
[0066] Step S83: The POS device sets the state of the state machine to mobile, and executes step S9;
[0067] Step S9: The POS device determines the key type corresponding to the recorded coordinate data according to the coordinate range of the key on the blind keyboard. If it is a confirmation key, it determines whether the length of the data in the password storage area meets the requirement. If it is, it prompts the input operation to be completed through sound, and ends. If it is a cancel key, it prompts the input operation to be canceled through sound, clears the data in the password storage area, and ends. If it is a character key, it saves the character key value in the password storage area and prompts the sequence number of the character key value in the password storage area through sound, and returns to step S4;
[0068] Optionally, in this embodiment, before step S9, the step further includes: the POS device determines whether the saved coordinate data is within the coordinate range of the keys on the blind keyboard, and if so, executes step 9, otherwise returns to step S3.
[0069] In this embodiment, between step S1 and step S2, the following steps are further included: the POS device turns on the interrupt enable of the touch chip;
[0070] The method of this embodiment also includes: when the user touches the screen of the POS device, the POS device generates an interrupt at a preset time interval, and updates the data cached in the register with the coordinate data of the touch position and the valid data judgment bit, and enters the interrupt processing flow;
[0071] If the POS device generates an interrupt for the first time, the coordinate data of the touch position and the valid data judgment bit are directly cached in the register, and the counter is started;
[0072] The interrupt processing flow of this embodiment includes:
[0073] Step A1: The POS device sets the interrupt detection flag;
[0074] Step A2: The POS device determines whether the time difference between the generation time of the current interrupt and the generation time of the last interrupt exceeds the maximum reporting rate time. If yes, the counter is initialized and updated, and the interrupt processing flow is exited. Otherwise, the counter is updated, and the interrupt processing flow is exited.
[0075] The method in this embodiment also includes a process of setting an event flag, which specifically includes:
[0076] Step B1: The POS device determines whether the interrupt detection flag is set, if yes, executes step B3, otherwise executes step B2;
[0077] Step B2: The POS device determines whether the waiting time exceeds the first preset value, if yes, sets the event flag to raised and returns to step B1, otherwise returns to step B1;
[0078] Step B3: The POS device resets the interrupt detection flag and determines whether the value of the counter is the initial value. If yes, it returns to step B1, otherwise, it executes step B4;
[0079] Step B4: The POS device reads the valid data judgment bit in the register and determines whether the valid data judgment bit is valid. If so, execute step B5, otherwise return to step B1;
[0080] Optionally, in this embodiment, before returning to step B1 after judging whether it is no in step B4, the POS device further includes: reading the valid data judgment bit in the register again after a preset delay, and judging whether the valid data judgment bit is valid, and if so, executing step B5, otherwise returning to step B1;
[0081] Specifically, judging whether the valid data judgment bit is valid includes: the POS device judging whether the first byte data read from the register is the first preset data, if yes, the valid data judgment bit is valid, otherwise, the valid data judgment bit is invalid;
[0082] Step B5: The POS device determines whether the user operation is a valid touch point, if yes, executes step B6, otherwise returns to step B1;
[0083] Specifically, in this embodiment, step B5 includes: the POS device determines whether the user operation is a single-point touch, and if so, executes step B6, otherwise returns to step B1;
[0084] Step B6: The POS device determines whether the value of the counter reaches the threshold value, if yes, executes step B7, otherwise returns to step B8;
[0085] Step B7: The POS device sets the event flag to slide, reads the coordinate data in the register and uses it to update the saved coordinate data, and returns to step B1;
[0086] Step B8: The POS device sets the event flag to pressed and returns to step B1.
[0087] The method of this embodiment is suitable for blind people and people with low vision. It prompts different operations through different sounds, realizes the safe input of information such as PIN codes, protects user privacy, and is convenient to use.
[0088] Embodiment 2
[0089] Embodiment 2 of the present invention provides a method for implementing blind input, which is applicable to a POS device including a security chip (SP for short), an application chip (AP for short) and a touch chip (TP for short). The method of this embodiment includes a main process, a process for setting an event flag bit and an interrupt processing process. The three processes are three independent threads.
[0090] In this embodiment, when the user touches the screen of the POS device, the TP generates an interrupt every first preset time, updates the data cached in the register with the coordinate data of the touch position and the valid data judgment bit, and sends an interrupt signal to the SP. After receiving the interrupt signal, the SP enters the interrupt processing flow;
[0091] In this embodiment, if the TP obtains valid coordinate data, the valid data bit flag is set to the first preset data. If the user accidentally touches the screen of the POS device or the TP does not obtain a valid keyboard value, the valid data bit flag is set to non-first preset data, for example, the first preset data is 80;
[0092] If TP generates an interrupt for the first time, the coordinate data of the touch position and the valid data judgment bit are directly cached in the register, and the counter is started;
[0093] Specifically, when a user touches the screen of a POS device, a square wave is generated, and the TP detects a rising edge of the square wave indicating an interrupt is generated;
[0094] For example, the first preset duration is 10ms;
[0095] like Figure 2 As shown in the figure, the interrupt handling process specifically includes:
[0096] Step 201: SP sets the interrupt detection flag;
[0097] Step 202: The SP determines whether the time difference between the generation time of the current interrupt and the generation time of the last interrupt exceeds the maximum reporting rate time. If yes, the counter is initialized and updated, and the interrupt processing flow is exited. Otherwise, the counter is updated, and the interrupt processing flow is exited.
[0098] Preferably, updating the counter specifically includes: increasing the value of the counter by 1;
[0099] In this embodiment, the process of setting the event flag is as follows: Figure 3 As shown, including:
[0100] Step 301: SP determines whether the interrupt detection flag is set, if yes, execute step 303, otherwise execute step 302;
[0101] Step 302: The SP determines whether the waiting time exceeds the first preset value. If yes, the event flag is set to raised and the process returns to step 301. Otherwise, the process returns to step 301.
[0102] In this embodiment, if the SP determines in step 302 that the waiting time from the start of step 301 exceeds the first preset value, it means that no key is pressed or the user's finger has been lifted; for example, the first preset value is 100ms;
[0103] Step 303: SP resets the interrupt detection flag and determines whether the value of the counter is the initial value. If yes, it returns to step 301, otherwise, it executes step 304;
[0104] Optionally, if the judgment in step 303 is yes, the SP further includes returning invalid key information to the AP;
[0105] Step 304: SP reads the valid data judgment bit in the register to determine whether the read valid data judgment bit is valid. If so, execute step 306; otherwise, execute step 305;
[0106] Step 305: After the SP delays for a preset time, it reads the valid data judgment bit in the register again to determine whether the read valid data judgment bit is valid. If so, it executes step 306, otherwise it returns to step 301;
[0107] Specifically, judging whether the read valid data judgment bit is valid includes: the SP judges whether the first byte data read from the register is the first preset data, if so, the valid data judgment bit is valid, otherwise, the valid data judgment bit is invalid, for example, the first preset data is 80;
[0108] Step 306: SP determines whether the user operation is a valid touch point, if yes, executes step 307, otherwise returns to step 301;
[0109] Specifically, in this embodiment, step 306 includes: the SP determines whether the user operation is a single-point touch, if so, the user operation is a valid touch point, and step 307 is executed; otherwise, the user operation is an invalid touch point, and step 301 is returned;
[0110] Step 307: SP determines whether the value of the counter reaches the threshold, if yes, executes step 308, otherwise returns to step 309;
[0111] Step 308: SP sets the event flag to sliding, reads the coordinate data in the register and uses it to update the saved coordinate data, and returns to step 301;
[0112] In this embodiment, if it is the first time to read the coordinate data in the register in step 308, it is directly saved;
[0113] Step 309: SP sets the event flag to pressed, and returns to step 301;
[0114] The main process in this embodiment is as follows Figures 4 to 6 As shown, including:
[0115] Step 401: The AP receives a request for an online PIN sent by a POS device;
[0116] Specifically, the merchant operates on the POS device, and the POS device generates an online PIN request when receiving information that the merchant needs to input when starting an application, and sends the online PIN request to the AP;
[0117] Step 402: The AP prompts the merchant whether to select the blind input method. If yes, the merchant executes step 403; otherwise, the merchant enters the normal input process.
[0118] Step 403: The AP sends the blind mode instruction including the coordinate range of the keys on the blind keyboard to the SP through the API;
[0119] For example, the schematic diagram of the blind keyboard on the POS device in this embodiment is as follows: Figure 7 As shown, optionally, the keyboard for the blind may have other character keys besides the numeric keys, such as letter keys and symbol keys;
[0120] Step 404: SP parses the received blind mode instruction, saves the coordinate range of the keys on the blind keyboard obtained by the parsing, and controls the switching circuit to switch the control mode of TP input data from AP to SP;
[0121] In this embodiment, the TP is connected to the SP and the AP respectively, and the control right of the TP is switched through a switch (i.e., a switching circuit). For example, when inputting a password, the control right of the TP inputting data is switched from the AP to the SP through the switch;
[0122] Step 405: The SP calls the interface for obtaining the online PIN, and prompts the blind user to input the PIN code through the AP voice;
[0123] In this embodiment, when the blind user starts an operation (long presses the POS device screen), the operation of the blind user will be broadcasted in real time through the AP. For example, if the blind user touches outside the keyboard area on the POS device screen, the AP broadcasts the information of the operation outside the keyboard area. If the blind user touches the cancel key, the AP broadcasts the cancel key. If the blind user touches the confirmation key, the AP broadcasts the confirmation key. If the blind user touches a new character key in the keyboard area, the AP broadcasts a prompt tone, such as "beep".
[0124] Step 406: SP turns on TP interrupt enable, the rising edge of the level is valid, and sets the timeout time;
[0125] Step 407: The state of the SP initialization state machine is moving;
[0126] Step 408: The SP determines whether the event flag is sliding, if yes, executes step 410, otherwise, executes step 409;
[0127] Step 409: SP determines whether the waiting time is greater than the timeout time, if yes, an error is reported, otherwise, it returns to step 408;
[0128] In this embodiment, the waiting time in step 409 is the time from the start of step 408;
[0129] Step 410: SP determines the state of the state machine, if it is moving, execute step 411, if it is lifting, execute step 412, if it is pressing, execute step 422;
[0130] Step 411: SP sets the state of the state machine to lifted, and returns to step 410;
[0131] Step 412: SP determines whether the event flag is lifted, if yes, execute step 413, otherwise execute step 414;
[0132] Step 413: SP sends a lift operation message to AP through the data serial port, sets the state of the state machine to press, and returns to step 410;
[0133] Step 414: SP reads the coordinate data in the register and determines whether the read coordinate data is within the coordinate range of the key on the blind keyboard. If yes, execute step 417; otherwise, execute step 415;
[0134] Step 415: The SP determines whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the stored coordinate data. If yes, the SP returns to step 410; otherwise, the SP executes step 416;
[0135] Step 416: SP sends the information indicating that the operation is outside the keyboard area to AP through the data serial port, and returns to step 410;
[0136] In this embodiment, after receiving the information that the operation is outside the keyboard area, the AP broadcasts the corresponding voice information, such as voice broadcasting "outside the area";
[0137] Step 417: SP determines whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the stored coordinate data, if yes, returns to step 410, otherwise, executes step 418;
[0138] Step 418: SP determines the type of the key value corresponding to the read coordinate data, if it is a confirmation key, execute step 419, if it is a cancel key, execute step 420, if it is a character key, execute step 421;
[0139] Optionally, the character keys in this embodiment include numeric keys and / or letter keys and / or symbol keys;
[0140] Step 419: The SP sends information indicating that the operation is to touch the confirmation key to the AP through the data serial port, and updates the stored coordinate data with the read coordinate data, and returns to step 410;
[0141] In this embodiment, when the AP receives information that the operation is to touch the confirmation key, the AP announces "confirmation key" by voice;
[0142] Step 420: The SP sends information indicating that the operation is to touch the cancel key to the AP through the data serial port, and updates the saved coordinate data with the read coordinate data, and returns to step 410;
[0143] In this embodiment, when the AP receives information that the operation is to touch the cancel key, the AP announces “cancel key” by voice;
[0144] Step 421: The SP sends information indicating that the operation is to touch a character key to the AP through the data serial port, and updates the stored coordinate data with the read coordinate data, and returns to step 410;
[0145] In this embodiment, when the AP receives information that the operation is to touch a character key, it broadcasts a corresponding prompt tone, such as "beep";
[0146] Step 422: SP determines whether the event flag is pressed, if yes, execute step 424, otherwise execute step 423;
[0147] Step 423: SP determines whether the waiting time is greater than the timeout time, if yes, an error is reported, otherwise, it returns to step 410;
[0148] In this embodiment, the waiting time in step 423 is the time from the start of step 422.
[0149] Step 424: SP determines whether the event flag is a press after a press and release, if yes, execute step 425, otherwise execute step 410;
[0150] Step 425: the SP sets the state of the state machine to moving, determines whether the saved coordinate data is within the coordinate range of the key on the blind keyboard, if yes, confirms the key value corresponding to the saved coordinate data according to the coordinate range of the key on the blind keyboard, sends the valid key information and the corresponding key value to the AP through the data serial port, and returns to step 410, otherwise, returns to step 410;
[0151] In this embodiment, when the AP receives valid key information and the corresponding key value, it determines the key type corresponding to the key value. If it is a cancel key, it will give a voice prompt "cancel operation", clear the data in the password storage area, and end. If it is a character key, it will save the received key value in the password storage area in sequence and display * accordingly (other characters or graphics can also be displayed, that is, the PIN code entered by the user is not directly displayed), and broadcast the sequence number of the key value in the password storage area (such as the sixth one, after hearing it, the blind user knows that the confirmation key needs to be pressed to confirm that the PIN code input is completed). If it is a confirmation key, the AP determines whether the length of the data in the password storage area meets the requirements (such as determining whether the length of the data in the password storage area is 6). If yes, it will give a voice prompt "input completed", otherwise it will report an error. After the method flow of this embodiment ends, the AP can use the data in the password storage area to perform other operations, such as identity authentication for blind users (that is, determining whether the data in the password storage area is consistent with the saved password), etc.
[0152] An example of a practical application scenario of this embodiment is that the merchant selects an application on the POS device, and the application chip voice prompts to insert a bank card. When the application chip detects that a bank card is inserted into the POS device, it prompts the merchant to enter the amount on the POS device. When the POS device receives the amount entered by the merchant, it generates an online PIN request and sends it to the application chip. The application chip notifies the POS device to display a blind input mode button on the screen. When the merchant clicks the blind input mode button, the application chip sends a blind mode instruction containing a blind input mode flag and a coordinate range of the keys on the blind keyboard to the security chip of the POS device through a security API; the security chip parses the blind mode instruction and saves the parsed coordinate range of the keys on the blind keyboard, and the control switching circuit switches the control mode of the touch chip input data from the application chip to the security chip; the application chip voice prompts When a blind user inputs a password, the application chip announces "Operation outside the keyboard area" when the blind user's finger touches a blank area. When the user's finger slides from outside the keyboard area to a character key in the keyboard area, the application chip announces a "beep" prompt sound. The user's finger continues to slide in the keyboard area, and when it slides from one character key to another, the application chip announces a "beep" prompt sound. When the user lifts his finger and double-clicks the screen of the POS device, * is displayed on the screen, and the sequence number of * (such as the third one) is announced. If the blind user hears the sequence number is different from the password length, he will continue to input the operation; when the blind user hears that the sequence number is equal to the password length, he slides his finger in the keyboard area and hears the "confirm key", then he lifts his finger and double-clicks the screen, and the application chip announces "input completed". After the password is entered, the application chip uses the password in the storage area to authenticate the blind user. If the authentication is successful, the application operation continues. If the blind user wants to cancel the operation, he slides his finger in the keyboard area and hears the "cancel key", lifts his finger and double-clicks the screen, and the application chip announces that the input operation is canceled and the password storage area is cleared.
[0153] Embodiment 3
[0154] Embodiment 3 of the present invention provides a device for implementing input for the blind, which is arranged in a POS device, such as Figure 8 As shown, the device of this embodiment includes:
[0155] A receiving prompt module 71, configured to prompt the blind user to perform input operation through sound when receiving the blind input mode selected by the merchant;
[0156] In this embodiment, the POS device includes an application chip, a security chip and a touch chip. The receiving prompt module 71 is specifically used to send a blind mode instruction including a coordinate range of keys on a blind keyboard to the security chip when the application chip receives the blind input mode selected by the merchant. The security chip receives the blind mode instruction and parses it, saves the coordinate range of keys on the blind keyboard obtained by parsing, and controls the switching circuit to switch the control mode of the input data of the touch chip from the application chip to the security chip.
[0157] Optionally, the device of this embodiment further includes: a receiving prompt module, which is used to prompt the merchant to select an input method when receiving a request from the merchant to start an application and need to input information, and if the blind input method is selected, the receiving prompt module 71 is triggered, otherwise the normal input process is entered;
[0158] Optionally, the receiving prompt module 71 is also used to set a timeout period;
[0159] An initialization detection module 72, used to initialize the state of the state machine to moving, and also used to trigger the first judgment module 73 when a long press operation is detected;
[0160] In this embodiment, the initialization detection module 72 is specifically used to initialize the state of the state machine to moving, and is also used to detect whether the event flag is sliding. If the event flag is detected to be sliding, it means that a long press operation of the blind user is detected;
[0161] Optionally, the device of this embodiment further includes a timeout judgment module, which is used to judge whether the waiting time is greater than the timeout time when the initialization detection module 72 detects that the event flag is not sliding, and if so, an error is reported, otherwise the initialization detection module 72 is triggered;
[0162] A first judging module 73 is used to judge the state of the state machine. If it is moving, the first setting module 74 is triggered; if it is lifted, the first judging setting module 75 is triggered; if it is pressed, the second judging setting module 78 is triggered;
[0163] A first setting module 74, used to set the state of the state machine to be lifted, triggering the first judgment module 73;
[0164] The first judgment setting module 75 is used to judge whether the user operation is lifting, if yes, set the state of the state machine to pressing, triggering the first judgment module 73, otherwise triggering the first judgment prompt module 76;
[0165] In this embodiment, the first judgment setting module 75 is specifically used to judge whether the event flag is lifted, if yes, set the state of the state machine to pressed, triggering the first judgment module 73, otherwise triggering the first judgment prompt module 76;
[0166] The first judgment prompting module 76 is used to judge whether the user's sliding operation is within the blind keyboard area, and if so, trigger the second judgment prompting module 77; otherwise, it prompts through sound that the current operation is outside the blind keyboard area, and if so, triggers the first judgment module 73;
[0167] Specifically, in this embodiment, the first judgment prompt module 76 includes:
[0168] A first reading and judging unit is used to read the coordinate data in the register and judge whether the read coordinate data is within the coordinate range of the key on the blind keyboard. If yes, the second judging and prompting module 77 is triggered, otherwise, the first judging unit is triggered;
[0169] A first judgment unit, used to judge whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the stored coordinate data, and if so, trigger the first judgment module 73, otherwise, trigger the first prompt unit;
[0170] A first prompting unit, used to prompt by sound that the current operation is outside the blind keyboard area, triggering the first judgment module 73;
[0171] The second judgment prompting module 77 is used to judge the type of the key touched by the user. If it is a confirmation key, it prompts through sound that the current touch is the confirmation key, records the coordinate data of the user's touch position, and triggers the first judgment module 73. If it is a cancel key, it prompts through sound that the current touch is the cancel key, records the coordinate data of the user's touch position, and triggers the first judgment module 73. If it is a character key, it prompts through sound that the current operation is in the character area of the blind keyboard, records the coordinate data of the user's touch position, and triggers the first judgment module 73.
[0172] In this embodiment, the second judgment prompt module 77 is used to judge the type of the key touched by the user, specifically: the second judgment prompt module 77 judges whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the stored coordinate data, and if so, triggers the first judgment module 73, otherwise, judges the type of the key value corresponding to the read coordinate data according to the coordinate range of the key on the blind keyboard;
[0173] The second judgment prompt module 77 records the coordinate data of the user's touch position, specifically: the second judgment prompt module 77 updates the stored coordinate data with the read coordinate data;
[0174] The second judgment setting module 78 is used to judge whether the user operation is a double click, and if so, the state of the state machine is set to move, triggering the judgment processing module 79, otherwise, the first judgment module 73 is triggered;
[0175] Specifically, in this embodiment, the second judgment setting module 78 includes:
[0176] A third judgment unit, used to judge whether the event flag is pressed, and if so, trigger the fourth judgment unit, otherwise, trigger the first judgment module 73;
[0177] A fourth judgment unit, used to judge whether the event flag is a press after a press and a lift, and if so, trigger the setting judgment unit, otherwise, trigger the first judgment module 73;
[0178] Setting a judgment unit, used to set the state of the state machine to move, triggering the judgment processing module 79;
[0179] Optionally, the second judgment module 78 in this embodiment further includes: a second timeout judgment unit, which is used to judge whether the waiting time is greater than the timeout time when the third judgment unit judges to be no, and report an error if it is, otherwise trigger the first judgment module 73;
[0180] The judgment processing module 79 is used to judge the key type corresponding to the recorded coordinate data according to the coordinate range of the key on the blind keyboard. If it is a confirmation key, it is judged whether the length of the data in the password storage area meets the requirement. If it is, it prompts the input operation to be completed through sound and ends. If it is a cancel key, it prompts the input operation to be canceled through sound, clears the data in the password storage area and ends. If it is a character key, it saves the character key value in the password storage area and prompts the sequence number of the character key value in the password storage area through sound, triggering the first judgment module 73;
[0181] In this embodiment, the judgment processing module 79 is also used to judge whether the saved coordinate data is within the coordinate range of the keys on the blind keyboard. If so, the key type corresponding to the saved coordinate data is judged according to the coordinate range of the keys on the blind keyboard; otherwise, the first judgment module 73 is triggered.
[0182] In this embodiment, the receiving prompt module 71 is also used to enable the interruption of the touch chip;
[0183] Correspondingly, the device of this embodiment further includes a cache generation module and an interrupt processing module;
[0184] A cache generation module is used to generate an interrupt at a preset time interval when the user touches the POS device screen, and update the data cached in the register with the coordinate data of the touch position and the valid data judgment bit, triggering the interrupt processing module;
[0185] Wherein, if the POS device generates an interrupt for the first time, the cache module is also used to directly cache the coordinate data of the touch position and the valid data judgment bit in the register, and start the counter;
[0186] The interrupt processing module is used to set the interrupt detection flag to the position, determine whether the time difference between the generation time of this interrupt and the generation time of the last interrupt exceeds the maximum reporting rate time, if so, initialize the counter and update the counter, and end, otherwise update the counter and end.
[0187] The device in this embodiment also includes an event flag setting module, which specifically includes:
[0188] A fifth judgment unit, used for judging whether the interrupt detection flag is set, and if so, triggering the reset judgment unit, otherwise triggering the first judgment setting unit;
[0189] A first judgment setting unit is used to judge whether the waiting time exceeds a first preset value, and if so, the event flag is set to be lifted to trigger the fifth judgment unit, otherwise, the fifth judgment unit is triggered;
[0190] A reset judgment unit, used for resetting the interrupt detection flag and judging whether the value of the counter is the initial value, and triggering the fifth judgment unit if it is, otherwise triggering the read judgment unit;
[0191] A reading judgment unit is used to read the valid data judgment bit in the register and judge whether the valid data judgment bit is valid. If so, the sixth judgment unit is triggered, otherwise, the fifth judgment unit is triggered;
[0192] Optionally, the event flag setting module of this embodiment further includes a waiting delay unit, which is used to trigger the reading judgment unit after delaying for a preset time when the reading judgment unit judges that the reading judgment unit is no;
[0193] Specifically, the reading judgment unit judges whether the valid data judgment bit is valid, including: the reading judgment unit judges whether the first byte data read from the register is the first preset data, if yes, the valid data judgment bit is valid, otherwise, the valid data judgment bit is invalid;
[0194] A sixth judgment unit, used to judge whether the user operation is a valid touch point, and if so, trigger the seventh judgment unit, otherwise, trigger the fifth judgment unit;
[0195] In this embodiment, the sixth judgment unit is specifically used to judge whether the user operation is a single-point touch, and if so, the seventh judgment unit is triggered, otherwise, the fifth judgment unit is triggered;
[0196] A seventh judgment unit, used for judging whether the value of the counter reaches a threshold value, and triggering the first setting update unit if so, and triggering the second setting update unit if otherwise;
[0197] A first setting and updating unit, used for setting the event flag bit to sliding, reading the coordinate data in the register and using it to update the saved coordinate data, triggering the fifth judgment unit;
[0198] The second setting and updating unit is used to set the event flag to pressed, thereby triggering the fifth judging unit.
[0199] The method of this embodiment is suitable for blind people and people with low vision. It prompts different operations through different sounds, realizes the safe input of information such as PIN codes, protects user privacy, and is convenient to use.
[0200] Optionally, an embodiment of the present application further provides a POS device, the POS device includes at least one processor, a memory, and instructions stored in the memory and executable by at least one processor, and at least one processor executes the instructions to implement the blind input implementation method in the above embodiment. When the POS device is a chip system, it can be composed of a chip, or it can include a chip and other discrete devices, which is not specifically limited in the embodiment of the present application; the chip is coupled to the memory, and is used to execute the computer program stored in the memory to execute the blind input implementation method disclosed in the above embodiment.
[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. When the computer program is loaded and executed on the POS device, the process or function described in the embodiment of the present application is generated in whole or in part. The computer program can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a base station, a POS device, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another base station, POS device, server or data center. The computer-readable storage medium can be any available medium that can be accessed by the POS device or a data storage device such as a server, a data center, etc. that can be integrated with one or more media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. In the embodiment of the present application, the POS device may include the device described above.
[0202] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in a claim. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0203] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for implementing input for the blind. It is characterized in that include: Step S1: When the POS device receives the blind input method selected by the merchant, it prompts the blind user to perform input operations through sound; Step S2: the state of the POS device initialization state machine is moving, and when a long press operation is detected, step S3 is executed; Step S3: The POS device determines the state of the state machine, and if it is moving, executes step S4; if it is lifted, executes step S5; if it is pressed, executes step S8; Step S4: the POS device sets the state of the state machine to raised, and returns to step S3; Step S5: The POS device determines whether the user operation is lifting, if yes, sets the state of the state machine to pressing, and returns to step S3, otherwise, executes step S6; Step S6: The POS device determines whether the user operation is within the blind keyboard area, if yes, then executes step S7; otherwise, it prompts through a sound that the current operation is outside the blind keyboard area, and then returns to step S3; Step S7: the POS device determines the type of key touched by the user. If it is a confirmation key, a sound prompt is given to indicate that the key is currently being touched, the coordinate data of the position touched by the user is recorded, and the process returns to step S3. If it is a cancel key, a sound prompt is given to indicate that the key is currently being touched, the coordinate data of the position touched by the user is recorded, and the process returns to step S3. If it is a character key, a prompt sound prompt is given to indicate that the current operation is in the character area of the blind keyboard, the coordinate data of the position touched by the user is recorded, and the process returns to step S3. Step S8: The POS device determines whether the user operation is a double click, if yes, sets the state of the state machine to move, and executes step S9, otherwise returns to step S3; Step S9: The POS device determines the key type corresponding to the recorded coordinate data according to the coordinate range of the key on the blind keyboard. If it is a confirmation key, it determines whether the length of the data in the password storage area meets the requirement. If it is, it prompts the input operation to be completed through sound, and ends. If it is a cancel key, it prompts the input operation to be canceled through sound, clears the data in the password storage area, and ends. If it is a character key, it saves the character key value in the password storage area and prompts the sequence number of the character key value in the password storage area through sound, and returns to step S3; The step S1 and the step S2 further include: the POS device turns on the interrupt enable of the touch chip; The method further includes: when the user touches the screen of the POS device, the POS device generates an interrupt at a preset time interval, and updates the data cached in the register with the coordinate data of the touch position and the valid data judgment bit, and enters the interrupt processing flow; The method further comprises: starting a counter when the POS device generates an interrupt for the first time; The interrupt processing process includes: Step A1: The POS device sets an interrupt detection flag; Step A2: the POS device determines whether the time difference between the generation time of the current interrupt and the generation time of the last interrupt exceeds the maximum reporting rate time, if yes, then the counter is initialized and then updated, and the interrupt processing flow is exited; otherwise, the counter is updated, and the interrupt processing flow is exited; The method also includes a process of setting an event flag, specifically including: Step B1: The POS device determines whether the interrupt detection flag is set, if yes, executes step B3, otherwise executes step B2; Step B2: The POS device determines whether the waiting time exceeds a first preset value, and if so, sets the event flag to be lifted, and returns to step B1; otherwise, returns to step B1; Step B3: the POS device resets the interrupt detection flag and determines whether the value of the counter is the initial value. If yes, it returns to step B1, otherwise, it executes step B4; Step B4: the POS device reads the valid data judgment bit in the register to determine whether the valid data judgment bit is valid, if so, execute step B5, otherwise, return to step B1; Step B5: The POS device determines whether the user operation is a valid touch point, if yes, executes step B6, otherwise returns to step B1; Step B6: The POS device determines whether the value of the counter reaches the threshold value, if yes, executes step B7, otherwise executes step B8; Step B7: the POS device sets the event flag to sliding, reads the coordinate data in the register and uses it to update the stored coordinate data, and returns to step B1; Step B8: The POS device sets the event flag to pressed and returns to step B1.
2. The method for implementing blind input as claimed in claim 1, It is characterized in that The POS device includes an application chip, a security chip and a touch chip, and step S1 includes: Step S11: When the application chip receives the blind input mode selected by the merchant, it sends a blind mode instruction including the coordinate range of the keys on the blind keyboard to the security chip; Step S12: the security chip receives and parses the blind mode instruction, saves the coordinate range of the keys on the blind keyboard obtained by the parsing, and controls the switching circuit to switch the control mode of the input data of the touch chip from the application chip to the security chip; Step S13: the security chip prompts the blind user to perform input operations through the sound of the application chip.
3. The method for implementing blind input as claimed in claim 2, It is characterized in that Before step S11, the process also includes: when the POS device receives information that needs to be input when the merchant starts an application, prompting the merchant to select an input method; if the blind input method is selected, step S11 is executed; otherwise, the normal input process is entered.
4. The method for implementing input for the blind as claimed in claim 1, It is characterized in that Before returning to step B1 if the determination in step B4 is no, the method further includes: the POS device reads the valid data judgment bit in the register again after a preset delay to determine whether the valid data judgment bit is valid, and if so, executes step B5, otherwise returns to step B1.
5. The method for implementing input for the blind as claimed in claim 1 or 4, It is characterized in that The determining whether the valid data determination bit is valid includes: the POS device determining whether the first byte data read from the register is the first preset data, if so, the valid data determination bit is valid, otherwise, the valid data determination bit is invalid.
6. The method for implementing input for the blind as claimed in claim 1, It is characterized in that The step B5 includes: the POS device determines whether the user operation is a single-point touch, and if so, executes step B6, otherwise returns to step B1.
7. The method for implementing input for the blind as claimed in claim 1, It is characterized in that The step S2 includes: the POS device initializes the state of the state machine to moving, and executes step S3 when it is detected that the event flag is sliding.
8. The method for implementing input for the blind as claimed in claim 7, It is characterized in that The step S1 and the step S2 further include: setting a timeout period; When it is detected in step S2 that the event flag is not sliding, the POS device further includes: determining whether the waiting time is greater than the timeout time, and reporting an error if it is, otherwise continuing to detect whether the event flag is sliding.
9. The method for implementing input for the blind as claimed in claim 1, It is characterized in that The step S6 comprises: Step S61: the POS device reads the coordinate data in the register and determines whether the read coordinate data is within the coordinate range of the keys on the blind keyboard. If yes, execute step S7; otherwise, execute step S62; Step S62: the POS device determines whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the stored coordinate data, if yes, returns to step S3, otherwise, executes step S63; Step S63: the POS device prompts through sound that the current operation is outside the blind keyboard area, and returns to step S3; The POS device in step S7 determines the type of the key touched by the user, including: the POS device determines whether the key value corresponding to the read coordinate data is consistent with the key value corresponding to the stored coordinate data, and if so, returns to step S3; otherwise, determines the type of the key value corresponding to the read coordinate data according to the coordinate range of the key on the blind keyboard; The recording of the coordinate data of the user's touch position specifically includes: updating the stored coordinate data with the read coordinate data.
10. The method for implementing input for the blind as claimed in claim 1, It is characterized in that The step S5 comprises: Step S51: The POS device determines whether the event flag is lifted, if yes, executes step S52, otherwise executes step S6; Step S52: The POS device sets the state of the state machine to pressed, and returns to step S3.
11. The method for implementing input for the blind according to claim 1, It is characterized in that The step S8 comprises: Step S81: The POS device determines whether the event flag is pressed, if yes, executes step S82, otherwise returns to step S3; Step S82: the POS device determines whether the event flag is a press followed by a lift, if yes, then executes step S83, otherwise, returns to step S3; Step S83: The POS device sets the state of the state machine to mobile, and executes step S9.
12. The method for implementing input for the blind according to claim 11, It is characterized in that The step S1 and the step S2 further include: setting a timeout period; Before the step S81 is judged as no and returns to the step S3, the POS device also includes: the POS device determines whether the waiting time is greater than the timeout time, and reports an error if it is, otherwise returns to the step S3.
13. The method for implementing input for the blind as claimed in claim 9, It is characterized in that Before step S9, the POS device further includes: determining whether the stored coordinate data is within the coordinate range of the keys on the blind keyboard; if so, executing step S9; otherwise, returning to step S3.
14. A device for realizing input for the blind, It is characterized in that include: A receiving prompt module, used to prompt the blind user to perform input operation through sound when receiving the blind input method selected by the merchant; An initialization detection module, used to initialize the state of the state machine to moving, and also used to trigger the first judgment module when a long press operation is detected; The first judgment module is used to judge the state of the state machine, and if it is moving, the first setting module is triggered; if it is lifted, the first judgment setting module is triggered; if it is pressed, the second judgment setting module is triggered; The first setting module is used to set the state of the state machine to be lifted, triggering the first judgment module; The first judgment setting module is used to judge whether the user operation is lifting, and if so, set the state of the state machine to pressing to trigger the first judgment module, otherwise, trigger the first judgment prompt module; The first judgment prompting module is used to judge whether the user operation is within the blind keyboard area, and if so, trigger the second judgment prompting module; otherwise, a sound prompt is given that the current operation is outside the blind keyboard area, and the first judgment module is triggered; The second judgment prompt module is used to judge the type of the key touched by the user. If it is a confirmation key, it prompts through sound that the confirmation key is currently being touched, records the coordinate data of the user's touch position, and triggers the first judgment module. If it is a cancel key, it prompts through sound that the cancel key is currently being touched, records the coordinate data of the user's touch position, and triggers the first judgment module. If it is a character key, it prompts through sound that the current operation is in the character area of the blind keyboard, records the coordinate data of the user's touch position, and triggers the first judgment module. The second judgment setting module is used to judge whether the user operation is a double click, and if so, set the state of the state machine to move to trigger the judgment processing module, otherwise, trigger the first judgment module; The judgment processing module is used to judge the key type corresponding to the recorded coordinate data according to the coordinate range of the keys on the blind keyboard. If it is a confirmation key, it is used to judge whether the length of the data in the password storage area meets the requirement. If it is, it prompts the input operation to be completed and ends through sound. If it is a cancel key, it prompts the input operation to be cancelled through sound, clears the data in the password storage area and ends. If it is a character key, it saves the character key value in the password storage area and prompts the sequence number of the character key value in the password storage area through sound to trigger the first judgment module. The receiving prompt module is also used to enable the interrupt of the touch chip; The device also includes a cache generation module and an interrupt processing module; The buffer generation module is used to generate an interrupt at a preset time interval when the user touches the POS device screen, and update the data cached in the register with the coordinate data of the touch position and the valid data judgment bit, thereby triggering the interrupt processing module; When the POS device generates an interrupt for the first time, the cache generation module is further used to cache the coordinate data of the touch position and the valid data judgment bit directly in the register, and start the counter; The interrupt processing module is used to set the interrupt detection flag to a position, determine whether the time difference between the generation time of the current interrupt and the generation time of the previous interrupt exceeds the maximum reporting rate time, and if so, initialize the counter and then update the counter, and end; otherwise, update the counter and end; The device further includes an event flag setting module, and the event flag setting module specifically includes: A fifth judgment unit, used for judging whether the interrupt detection flag is set, and if so, triggering the reset judgment unit, otherwise triggering the first judgment setting unit; The first judgment setting unit is used to judge whether the waiting time exceeds a first preset value, and if so, set the event flag to be raised to trigger the fifth judgment unit, otherwise, trigger the fifth judgment unit; The reset judgment unit is used to reset the interrupt detection flag and judge whether the value of the counter is the initial value, and if so, trigger the fifth judgment unit, otherwise, trigger the read judgment unit; A reading judgment unit, used for reading the valid data judgment bit in the register, and judging whether the valid data judgment bit is valid, and if so, triggering the sixth judgment unit, otherwise, triggering the fifth judgment unit; The sixth judgment unit is used to judge whether the user operation is a valid touch point, and if so, trigger the seventh judgment unit, otherwise, trigger the fifth judgment unit; The seventh judgment unit is used to judge whether the value of the counter reaches a threshold value, and if so, trigger the first setting update unit, otherwise, trigger the second setting update unit; The first setting and updating unit is used to set the event flag to sliding, read the coordinate data in the register and use it to update the saved coordinate data, thereby triggering the fifth judgment unit; The second setting and updating unit is used to set the event flag to pressed, so as to trigger the fifth judging unit.
15. A POS device, It is characterized in that The POS device includes at least one processor, a memory, and instructions stored in the memory and executable by the at least one processor, and the at least one processor executes the instructions to implement the blind input implementation method according to any one of claims 1 to 13.
16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a computer program. When the computer program is executed on a POS device, the POS device executes the method for implementing blind input according to any one of claims 1 to 13.
17. A chip system, It is characterized in that The invention comprises a chip, wherein the chip is coupled to a memory and is used to execute a computer program stored in the memory to execute the method for implementing input for the blind according to any one of claims 1 to 13.
